:root {
    --french-pass: #B9F2FF;
    --mercury: #E5E5E5;
    --ocean-green: #44998e;
    --lotus: #82393C;
    --white: #FFFFFF;
    --pliant-black: #040404;
    --gradient-primary: linear-gradient(135deg, #44998e 0%, #2d7068 100%);
    --gradient-premium: linear-gradient(135deg, #B9F2FF 0%, #44998e 100%);
    --shadow-sm: 0 2px 4px rgba(4, 4, 4, 0.1);
    --shadow-md: 0 4px 12px rgba(4, 4, 4, 0.15);
    --shadow-lg: 0 8px 24px rgba(4, 4, 4, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--pliant-black);
    background-image: url('https://pliant.bot/img/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--french-pass);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--ocean-green);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 120px;
    height: auto;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card {
    background: rgba(4, 4, 4, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(185, 242, 255, 0.1);
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--mercury);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(185, 242, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--ocean-green);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(68, 153, 142, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ocean-green);
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--french-pass);
    border: 2px solid var(--french-pass);
}

.btn-secondary:hover {
    background: rgba(185, 242, 255, 0.1);
}

.btn-premium {
    background: var(--gradient-premium);
    color: var(--pliant-black);
}

.btn-danger {
    background: var(--lotus);
    color: var(--white);
}

.btn-danger:hover {
    background: #6b2f32;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(68, 153, 142, 0.2);
    border: 1px solid var(--ocean-green);
    color: var(--french-pass);
}

.alert-error {
    background: rgba(130, 57, 60, 0.2);
    border: 1px solid var(--lotus);
    color: #ff9999;
}

.alert-info {
    background: rgba(185, 242, 255, 0.1);
    border: 1px solid var(--french-pass);
    color: var(--french-pass);
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.video-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.video-box {
    position: relative;
    background: rgba(4, 4, 4, 0.9);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(185, 242, 255, 0.1);
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.video-placeholder img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.video-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--french-pass);
}

.video-placeholder .online-count {
    color: var(--ocean-green);
    font-size: 1rem;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(4, 4, 4, 0.9));
}

.video-overlay .username {
    color: var(--white);
    font-weight: 600;
}

.video-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(4, 4, 4, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.video-icon:hover {
    background: var(--ocean-green);
}

.video-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.chat-section {
    margin-top: 20px;
    display: none;
}

.chat-section.active {
    display: block;
}

.chat-messages {
    height: 200px;
    background: rgba(4, 4, 4, 0.8);
    border-radius: var(--radius-md);
    padding: 15px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid rgba(185, 242, 255, 0.1);
}

.message {
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    max-width: 80%;
}

.message.sent {
    background: var(--ocean-green);
    margin-left: auto;
}

.message.received {
    background: rgba(185, 242, 255, 0.15);
}

.message .sender {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 4px;
}

.message .text {
    word-break: break-word;
}

.message .time {
    font-size: 0.7rem;
    opacity: 0.6;
    text-align: right;
    margin-top: 4px;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
}

.controls-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.welcome-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--french-pass);
}

.welcome-section p {
    font-size: 1.1rem;
    color: var(--mercury);
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.feature-item svg {
    width: 40px;
    height: 40px;
    fill: var(--ocean-green);
    margin-bottom: 10px;
}

.feature-item h4 {
    color: var(--french-pass);
    margin-bottom: 8px;
}

.settings-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.settings-section {
    background: rgba(4, 4, 4, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(185, 242, 255, 0.1);
}

.settings-section h3 {
    color: var(--french-pass);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item label {
    font-weight: 500;
}

.settings-item .description {
    font-size: 0.85rem;
    color: var(--mercury);
    opacity: 0.7;
}

.premium-badge {
    display: inline-block;
    background: var(--gradient-premium);
    color: var(--pliant-black);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
}

.premium-locked {
    opacity: 0.5;
    pointer-events: none;
}

.premium-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.premium-header {
    margin-bottom: 40px;
}

.premium-header h1 {
    font-size: 2.5rem;
    color: var(--french-pass);
    margin-bottom: 15px;
}

.premium-header p {
    color: var(--mercury);
    font-size: 1.1rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.pricing-card {
    background: rgba(4, 4, 4, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    border: 2px solid rgba(185, 242, 255, 0.1);
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--ocean-green);
    transform: translateY(-5px);
}

.pricing-card.popular {
    border-color: var(--french-pass);
    position: relative;
}

.pricing-card.popular::before {
    content: 'Best Value';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-premium);
    color: var(--pliant-black);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card h3 {
    color: var(--french-pass);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--mercury);
}

.pricing-card .savings {
    color: var(--ocean-green);
    font-size: 0.9rem;
    margin: 10px 0 20px;
}

.features-list {
    text-align: left;
    margin: 30px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--mercury);
}

.features-list li svg {
    width: 20px;
    height: 20px;
    fill: var(--ocean-green);
    flex-shrink: 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 4, 4, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(4, 4, 4, 0.95);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(185, 242, 255, 0.2);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    color: var(--french-pass);
    font-size: 1.5rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--lotus);
}

.modal-close svg {
    width: 16px;
    height: 16px;
    fill: var(--white);
}

.ban-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(130, 57, 60, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ban-modal .ban-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

.ban-modal h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 20px;
}

.ban-modal p {
    color: var(--mercury);
    margin-bottom: 15px;
}

.ban-modal .ban-reason {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.footer {
    background: rgba(4, 4, 4, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    margin-top: auto;
    border-top: 1px solid rgba(185, 242, 255, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-description {
    color: var(--mercury);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-creators {
    color: var(--french-pass);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mercury);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--french-pass);
}

.footer-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-legal a {
    color: var(--ocean-green);
}

.footer-copyright {
    color: var(--mercury);
    opacity: 0.7;
    font-size: 0.85rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(185, 242, 255, 0.2);
    border-top-color: var(--french-pass);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 4, 4, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.page-header .back-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.page-header .back-btn:hover {
    background: var(--ocean-green);
}

.page-header h1 {
    color: var(--french-pass);
    font-size: 1.75rem;
}

.admin-page {
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(4, 4, 4, 0.85);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(185, 242, 255, 0.1);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--french-pass);
}

.stat-card .stat-label {
    color: var(--mercury);
    font-size: 0.9rem;
    margin-top: 5px;
}

.data-table {
    width: 100%;
    background: rgba(4, 4, 4, 0.85);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(185, 242, 255, 0.1);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
    background: rgba(68, 153, 142, 0.2);
    color: var(--french-pass);
    font-weight: 600;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(68, 153, 142, 0.3);
    color: var(--ocean-green);
}

.status-badge.banned {
    background: rgba(130, 57, 60, 0.3);
    color: #ff9999;
}

.status-badge.premium {
    background: rgba(185, 242, 255, 0.2);
    color: var(--french-pass);
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    max-width: 400px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-content {
    background: rgba(4, 4, 4, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 50px;
    border: 1px solid rgba(185, 242, 255, 0.1);
}

.legal-content h1 {
    color: var(--french-pass);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.legal-content .last-updated {
    color: var(--mercury);
    margin-bottom: 40px;
}

.legal-content h2 {
    color: var(--french-pass);
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content h3 {
    color: var(--ocean-green);
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-content p {
    color: var(--mercury);
    margin-bottom: 15px;
}

.legal-content ul, .legal-content ol {
    color: var(--mercury);
    margin-left: 25px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 8px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

@media (max-width: 768px) {
    .video-section {
        grid-template-columns: 1fr;
    }
    
    .video-box {
        min-height: 250px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .controls-section {
        flex-direction: column;
    }
    
    .controls-section .btn {
        width: 100%;
    }
    
    .card {
        padding: 25px;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 80px;
    }
    
    .pricing-card .price {
        font-size: 2rem;
    }
}
