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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary, #0f1117);
    color: var(--text-primary, #e8e9ed);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Top Banner Styles */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-card, #1a1d2e);
    border-bottom: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    z-index: 1000;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Groupe des contrÃ´les gauche (langue + thÃ¨mes) */
.left-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-selector {
    display: flex;
    align-items: center;
}

.language-dropdown {
    background: var(--bg-input, #141625);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    color: var(--text-primary, #e8e9ed);
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-dropdown:hover {
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14));
}

.language-dropdown option {
    background: var(--bg-card, #1a1d2e);
    color: var(--text-primary, #e8e9ed);
    border: none;
    padding: 8px 12px;
}

.language-dropdown option:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* Theme Toggle Styles */
.theme-toggle-container {
    display: flex;
    align-items: center;
}

.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    cursor: pointer;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 34px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 3px;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-slider .icon-light,
.toggle-slider .icon-dark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toggle-slider .icon-light {
    left: 3.5px;
    color: #fbbf24;
    opacity: 1;
}

.toggle-slider .icon-dark {
    right: 2.5px;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ã‰tat cochÃ© (thÃ¨me sombre) */
input:checked+.toggle-slider {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(148, 163, 184, 0.3);
}

input:checked+.toggle-slider::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

input:checked+.toggle-slider .icon-light {
    opacity: 0.3;
    color: rgba(251, 191, 36, 0.5);
}

input:checked+.toggle-slider .icon-dark {
    opacity: 1;
    color: #1e293b;
}

/* Hover effect */
.theme-toggle:hover .toggle-slider {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

input:checked+.toggle-slider:hover {
    background: rgba(30, 41, 59, 0.5);
}

/* Active/Focus states */
.theme-toggle:active .toggle-slider::before {
    width: 28px;
}

input:focus+.toggle-slider {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

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

.auth-btn {
    background: var(--bg-input, #141625);
    color: var(--text-primary, #e8e9ed);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

.auth-btn:hover {
    background: var(--bg-card-hover, #1f2337);
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14));
    text-decoration: none;
}

.auth-btn:focus,
.auth-btn:active,
.auth-btn:visited {
    text-decoration: none;
    color: var(--text-primary, #e8e9ed);
}

.login-btn {
    background: var(--btn-login-bg, #22c55e);
    border-color: transparent;
    color: white;
}

.login-btn:hover {
    background: var(--btn-login-hover, #4ade80);
    color: white;
}

.register-btn {
    background: var(--btn-register-bg, var(--accent-primary));
    border-color: transparent;
    color: white;
}

.register-btn:hover {
    background: var(--btn-register-hover, var(--accent-primary-hover));
    color: white;
}

/* Active page indicator - Same as hover state */
.auth-btn.active-page {
    background: var(--bg-card-hover, #1f2337) !important;
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14)) !important;
    color: var(--text-primary, #e8e9ed) !important;
}

/* Premium highlight for non-subscribers */
.auth-btn.premium-highlight {
    background: var(--accent-primary) !important;
    border-color: transparent !important;
    color: white !important;
}

.auth-btn.premium-highlight:hover {
    background: var(--accent-primary-hover) !important;
}

.auth-btn.premium-highlight.active-page {
    background: var(--accent-primary) !important;
    box-shadow: 0 0 0 2px var(--accent-primary-hover) !important;
}

/* Decorative elements hidden for clean look */
body::before {
    display: none;
}

.floating-shapes {
    display: none;
}

.shape {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: var(--bg-card, #1a1d2e);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.4));
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    display: none;
}

.glass-card:hover::before {
    display: none;
}

.glass-card:hover {
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14));
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
}


.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary, #e8e9ed);
    margin: 0;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted, #8b8fa3);
    font-weight: 400;
}

.mode-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.toggle-btn {
    background: var(--bg-input, #141625);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    color: var(--text-muted, #8b8fa3);
    padding: 10px 22px;
    margin: 0 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.toggle-btn i {
    color: inherit;
}

.toggle-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    transition: width 0.3s ease;
}

.toggle-btn:hover::before {
    width: 100%;
}

.toggle-btn:hover:not(.active) {
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14));
    color: var(--text-primary, #e8e9ed);
}

.mode-section {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-button-group {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.input-button-group .glass-input {
    flex: 1;
}

.btn-inline {
    flex-shrink: 0;
    margin: 0;
    white-space: nowrap;
}

.input-label {
    display: block;
    color: var(--text-secondary, #c4c7d0);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.glass-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input, #141625);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    color: var(--text-primary, #e8e9ed);
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
}

.glass-input::placeholder {
    color: var(--text-placeholder, #4a4e63);
}

.glass-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.glass-textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.btn-primary {
    background: var(--btn-primary-bg, var(--accent-primary));
    border: none;
    color: white;
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--btn-primary-shadow, 0 4px 14px rgba(20, 184, 166, 0.25));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--btn-primary-hover, var(--accent-primary-hover));
    box-shadow: var(--btn-primary-hover-shadow, 0 6px 20px rgba(20, 184, 166, 0.35));
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-input, #141625);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    color: var(--text-secondary, #c4c7d0);
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14));
    color: var(--text-primary, #e8e9ed);
}

.button-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.response-container {
    margin-top: 40px;
    display: none;
    animation: slideUp 0.4s ease-out;
    background: var(--bg-surface, #161829);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.4));
}

body[data-theme="purple"] .response-container {
    background: rgba(0, 0, 0, 0.16);
    border-color: rgba(255, 255, 255, 0.14);
}

.response-container.show {
    display: block;
}

.response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 16px 20px;
    background: var(--accent-primary-muted, rgba(20, 184, 166, 0.15));
    border-bottom: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
}

body[data-theme="purple"] .response-header {
    background: rgba(0, 0, 0, 0.10);
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

.response-title {
    color: var(--text-primary, #e8e9ed);
    font-size: 1.1rem;
    font-weight: 600;
}

.copy-btn {
    background: var(--accent-primary-muted, rgba(20, 184, 166, 0.15));
    border: 1px solid var(--accent-primary-border, rgba(20, 184, 166, 0.3));
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

body[data-theme="purple"] .copy-btn {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
}

.copy-btn:hover {
    background: rgba(20, 184, 166, 0.25);
    transform: scale(1.05);
}

body[data-theme="purple"] .copy-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.response-output {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 18px 20px;
    color: #e5e7eb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    max-height: 430px;
    overflow-y: auto;
}

/* Styles pour les rÃ©sultats */
.result-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="purple"] .response-container .result-item {
    background: rgba(0, 0, 0, 0.10);
    border-color: rgba(255, 255, 255, 0.10);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 16px;
}

.success-icon {
    color: #22c55e;
}

.error-icon {
    color: #ef4444;
}

.result-title {
    color: #ffffff;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.detail-value {
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
}

.error-text {
    color: #fca5a5;
}

/* Container pour les liens de tÃ©lÃ©chargement */
.download-link-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="purple"] .response-container .download-link-container {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.10);
}

.download-link {
    flex: 1;
    color: #60a5fa;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
}

body[data-theme="purple"] .response-container .download-link {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    padding: 8px 12px;
}

.download-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

body[data-theme="purple"] .response-container .download-link:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.26);
    text-decoration: none;
}

.download-btn {
    background: linear-gradient(45deg, #4a5568, #2d3748);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    box-shadow: 0 2px 8px rgba(74, 85, 104, 0.3);
}

.download-btn:hover {
    background: linear-gradient(45deg, #2d3748, #1a202c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.4);
}

.download-btn i {
    font-size: 14px;
}

/* Styles pour les boutons d'action */
.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 120px;
    justify-content: center;
    background: var(--bg-input, #141625);
    color: var(--text-primary, #e8e9ed);
}

.action-btn:hover {
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14));
    text-decoration: none;
    background: var(--bg-card-hover, #1f2337);
}

.action-btn i {
    font-size: 14px;
    color: var(--accent-primary);
}

.download-btn.action-btn {
    background: var(--btn-primary-bg, var(--accent-primary));
    color: white;
    border-color: transparent;
    width: auto;
    height: auto;
    margin-left: 0;
    padding: 10px 18px;
    min-width: 120px;
}

.download-btn.action-btn i {
    color: white;
}

.download-btn.action-btn:hover {
    background: var(--btn-primary-hover, var(--accent-primary-hover));
    color: white;
}

.play-btn {
    background: var(--bg-input, #141625);
    color: var(--text-primary, #e8e9ed);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
}

.play-btn:hover {
    border-color: var(--accent-primary-border, rgba(20, 184, 166, 0.3));
    color: var(--text-primary, #e8e9ed);
}

/* Styles pour les boutons de Cast */
.cast-btn {
    background: var(--bg-input, #141625);
    color: var(--text-primary, #e8e9ed);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
}

.cast-btn:hover {
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14));
    background: var(--bg-card-hover, #1f2337);
    color: var(--text-primary, #e8e9ed);
}

.cast-btn i {
    font-size: 16px;
}

/* Bouton Cast dÃ©sactivÃ© (formats incompatibles) */
.cast-btn-disabled {
    background: linear-gradient(45deg, #6b7280, #4b5563);
    opacity: 0.7;
    cursor: not-allowed;
}

.cast-btn-disabled:hover {
    background: linear-gradient(45deg, #6b7280, #4b5563);
    transform: none;
}

/* Bouton VLC Cast (Firefox) */
.vlc-cast-btn {
    background: linear-gradient(45deg, #ff6b35, #f77737);
}

.error-container {
    margin-top: 40px;
    display: none;
    animation: slideUp 0.4s ease-out;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.error-container.show {
    display: block;
}

.error-header {
    background: rgba(239, 68, 68, 0.2);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.error-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-error-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-error-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.error-message {
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.1);
}

/* Download Error Container Styles */
.download-error-container {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(20px);
    animation: slideDown 0.3s ease-out;
    position: relative;
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-error-container.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.download-error-container.warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.error-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.download-error-container.error .error-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.download-error-container.warning .error-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.2);
}

.error-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    width: 100%;
}

.download-error-container .error-title {
    font-weight: 700;
    color: white;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
    text-align: center !important;
    width: 100%;
    display: block;
}

.download-error-container .error-message {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    padding: 0;
    background: none;
    font-weight: 500;
}

.error-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.error-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.error-close i {
    font-size: 0.9rem;
}

/* Usage Status Indicator Styles */
.usage-status-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.usage-status {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    max-width: 550px;
    width: 100%;
    flex-wrap: wrap;
}

.usage-status.premium {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.usage-status.free {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.usage-status.guest {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
}

.usage-status.guest .status-icon {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.2);
}

.subscription-time-remaining {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.subscription-time-remaining strong {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 700;
}

.subscription-extension-note {
    margin-top: 10px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-extension-note i {
    color: #3b82f6;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.status-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.points-badge-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.points-badge-inline i {
    color: #ffd700;
    font-size: 1rem;
}

.points-badge-inline strong {
    color: #ffd700;
    font-size: 1.05rem;
    font-weight: 700;
}

.usage-status.free .points-badge-inline {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.usage-status.free .points-badge-inline i,
.usage-status.free .points-badge-inline strong {
    color: #ffd700;
    font-size: 1rem;
}

.status-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.usage-status.premium .status-icon {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
}

.usage-status.free .status-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
}

.status-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-label {
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.status-detail {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.upgrade-hint {
    display: flex;
    align-items: center;
}

.upgrade-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upgrade-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive design for usage status */
@media (max-width: 768px) {
    .usage-status {
        padding: 12px 15px;
        gap: 12px;
        max-width: 100%;
    }

    .status-icon {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .status-label {
        font-size: 0.9rem;
    }

    .status-detail {
        font-size: 0.8rem;
    }

    .upgrade-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .status-badges {
        width: 100%;
        justify-content: flex-start;
    }

    .points-badge-inline,
    .subscription-time-remaining {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .subscription-extension-note {
        font-size: 0.85rem;
        padding: 10px 12px;
        max-width: 100%;
    }
}

/* Points Plans Styles */
.points-plan {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.15) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.points-price {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.points-plan-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #1a1a2e;
    font-weight: 600;
    border: none;
}

.points-plan-btn:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffc107 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.points-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.points-info strong {
    color: #ffd700;
    font-size: 1.1rem;
}

/* Success/Error Messages for Points Purchase */
.purchase-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
}

.purchase-message.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.purchase-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Account Page Messages */
.account-message {
    margin: 20px 0;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    animation: slideDown 0.3s ease-out;
    z-index: 1000;
}

/* Message fixe en haut de l'Ã©cran (toast style) */
.account-message.fixed-top {
    position: fixed;
    top: 80px;
    /* Sous la banniÃ¨re */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.account-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.account-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.account-message.info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.message-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 12px;
    color: white;
    font-size: 1rem;
}

.account-message.error .message-content i {
    color: #ef4444;
}

.account-message.success .message-content i {
    color: #22c55e;
}

.account-message.info .message-content i {
    color: #3b82f6;
}

.message-content span {
    flex: 1;
}

.close-message-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.close-message-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Confirmation Dialog Styles */
.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.dialog-content {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    max-width: 500px;
    width: 90%;
    animation: dialogSlideIn 0.3s ease-out;
}

.dialog-header {
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dialog-header h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
}

.dialog-header h3 i {
    color: #3b82f6;
}

.dialog-body {
    padding: 20px;
}

.dialog-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.dialog-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.dialog-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.dialog-footer button {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dialog-footer .btn-secondary {
    background: rgba(107, 114, 128, 0.2);
    color: white;
}

.dialog-footer .btn-secondary:hover {
    background: rgba(107, 114, 128, 0.3);
    transform: translateY(-1px);
}

.dialog-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dialog-footer .btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 16px;
}

.success-icon {
    color: #22c55e;
}

.error-icon {
    color: #ef4444;
}

.result-title {
    color: #ffffff;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.detail-value {
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
}

.error-text {
    color: #fca5a5;
}

/* Container pour les liens de tÃ©lÃ©chargement */
.download-link-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-link {
    flex: 1;
    color: var(--accent-primary);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.download-link:hover {
    color: var(--accent-primary-hover);
    text-decoration: underline;
}

.download-btn {
    background: var(--bg-input, #141625);
    color: var(--text-primary, #e8e9ed);
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
}

.download-btn:hover {
    background: var(--bg-card-hover, #1f2337);
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14));
}

.download-btn i {
    font-size: 14px;
}

/* Styles pour les boutons d'action (duplicate inherited - use design tokens) */
.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 120px;
    justify-content: center;
    background: var(--bg-input, #141625);
    color: var(--text-primary, #e8e9ed);
}

.action-btn:hover {
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14));
    text-decoration: none;
    background: var(--bg-card-hover, #1f2337);
}

.action-btn i {
    font-size: 14px;
    color: var(--accent-primary);
}

.download-btn.action-btn {
    background: var(--btn-primary-bg, var(--accent-primary));
    color: white;
    border-color: transparent;
    width: auto;
    height: auto;
    margin-left: 0;
    padding: 10px 18px;
    min-width: 120px;
}

.download-btn.action-btn i {
    color: white;
}

.download-btn.action-btn:hover {
    background: var(--btn-primary-hover, var(--accent-primary-hover));
    color: white;
}

.play-btn {
    background: var(--bg-input, #141625);
    color: var(--text-primary, #e8e9ed);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
}

.play-btn:hover {
    border-color: var(--accent-primary-border, rgba(20, 184, 166, 0.3));
    color: var(--text-primary, #e8e9ed);
}

/* Styles pour les boutons de Cast */
.cast-btn {
    background: var(--bg-input, #141625);
    color: var(--text-primary, #e8e9ed);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
}

.cast-btn:hover {
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14));
    background: var(--bg-card-hover, #1f2337);
    color: var(--text-primary, #e8e9ed);
}

.cast-btn i {
    font-size: 16px;
}

/* Bouton Cast dÃ©sactivÃ© (formats incompatibles) */
.cast-btn-disabled {
    background: linear-gradient(45deg, #6b7280, #4b5563);
    opacity: 0.7;
    cursor: not-allowed;
}

.cast-btn-disabled:hover {
    background: linear-gradient(45deg, #6b7280, #4b5563);
    transform: none;
}

/* Bouton VLC Cast (Firefox) */
.vlc-cast-btn {
    background: linear-gradient(45deg, #ff6b35, #f77737);
}

.vlc-cast-btn:hover {
    background: linear-gradient(45deg, #f77737, #ff6b35);
}

/* Bouton Chrome (Firefox) */
.chrome-btn {
    background: linear-gradient(45deg, #4285f4, #357ae8);
}

.chrome-btn:hover {
    background: linear-gradient(45deg, #357ae8, #4285f4);
}

/* Bouton AirPlay (Safari/iOS) */
.airplay-btn {
    background: linear-gradient(45deg, #000000, #1c1c1e);
}

.airplay-btn:hover {
    background: linear-gradient(45deg, #1c1c1e, #2c2c2e);
}


/* Forcer l'affichage des boutons sous-titres et audio */
.vjs-subs-caps-button,
.vjs-audio-button {
    display: block !important;
}

/* S'assurer que les menus sont visibles */
.vjs-subs-caps-button .vjs-menu,
.vjs-audio-button .vjs-menu {
    display: block;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .action-btn {
        width: 100%;
        min-width: unset;
    }

    .action-btn span {
        display: inline;
    }
}

/* Styles pour les rÃ©sultats multiples */
.results-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.results-icon {
    font-size: 18px;
}

.results-title {
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item.success,
.result-item.error {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.result-number {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    min-width: 25px;
    margin-top: 2px;
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-filename {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #ffffff;
}

.original-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* Styles pour le jeu dinosaure */
.dino-game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.game-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

#dinoGame {
    width: 100%;
    max-width: 800px;
    height: 200px;
    background: #f7f7f7;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

.game-score {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Responsive pour les liens de tÃ©lÃ©chargement */
@media (max-width: 768px) {
    .download-link-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .download-btn {
        align-self: flex-end;
        min-width: auto;
        padding: 10px 15px;
    }

    .result-item.success,
    .result-item.error {
        flex-direction: column;
        gap: 10px;
    }

    .result-number {
        min-width: auto;
    }

    .dino-game-container {
        padding: 0 10px;
    }

    #dinoGame {
        height: 150px;
    }

    .game-score {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loading.show {
    display: block;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.error-container {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    width: 400px;
    max-width: calc(100% - 40px);
    z-index: 1002;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.9));
    border: 2px solid rgba(239, 68, 68, 0.8);
    border-radius: 12px;
    padding: 20px;
    animation: slideInRight 0.4s ease-out;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
    backdrop-filter: blur(10px);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-container.show {
    display: block;
}

.error-container .error-icon {
    font-size: 1.8rem;
    color: #ef4444;
    margin-bottom: 10px;
    text-align: center;
}

.error-container .error-message {
    color: white;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
}

.error-container .error-message p {
    margin: 0 0 15px 0;
}

.error-container .auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.error-container .login-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.error-container .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.error-container .register-btn {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
}

.error-container .register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Notification system - Success variant */
.notification-container {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    width: 400px;
    max-width: calc(100% - 40px);
    z-index: 1002;
    border-radius: 12px;
    padding: 20px;
    animation: slideInRight 0.4s ease-out;
    backdrop-filter: blur(10px);
}

.notification-container.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.9));
    border: 2px solid rgba(34, 197, 94, 0.8);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5);
}

.notification-container.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.9));
    border: 2px solid rgba(239, 68, 68, 0.8);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
}

.notification-container.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.9));
    border: 2px solid rgba(245, 158, 11, 0.8);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

.notification-container.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.9));
    border: 2px solid rgba(59, 130, 246, 0.8);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

.notification-container.show {
    display: block;
}

.notification-container .notification-icon {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

.notification-container .notification-message {
    color: white;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
}

.notification-container .notification-message p {
    margin: 0;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .glass-card {
        padding: 20px;
        border-radius: 20px;
    }

    .title {
        font-size: 2.5rem;
    }

    .mode-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .toggle-btn {
        margin: 5px 0;
    }

    .response-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* Features Container */
.features-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.features-header {
    text-align: center;
    margin-bottom: 25px;
}

.features-header h3 {
    color: var(--text-primary, #e8e9ed);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    padding: 20px;
    background: var(--bg-surface, #161829);
    border-radius: 12px;
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary, #c4c7d0);
}

.feature-item i {
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
    color: var(--accent-primary);
}

/* All feature icons use accent color */
.feature-item .fa-lock,
.feature-item .fa-bolt,
.feature-item .fa-download,
.feature-item .fa-play,
.feature-item .fa-infinity,
.feature-item .fa-check,
.feature-item .fa-ban,
.feature-item .fa-link,
.feature-item .fa-folder {
    color: var(--accent-primary);
}

/* Colorisation des icÃ´nes dans les pages (plans, account, etc.) */
/* IcÃ´nes premium et statut (sauf boutons) */
.features-header .fa-gem,
.glass-card .fa-gem:not(.auth-btn .fa-gem):not(.btn-primary .fa-gem) {
    color: #a855f7;
    /* Violet pour premium/gem */
}

.status-icon .fa-crown,
.info-label .fa-crown {
    color: #ffd700;
    /* Or pour couronne premium */
}

.points-badge-inline .fa-star,
.info-label .fa-star,
.stat-icon .fa-star,
.bonus-feature .fa-star,
.features-header .fa-star {
    color: #ffd700;
    /* Or pour Ã©toiles/points */
}

/* IcÃ´nes de fonctionnalitÃ©s dans les plans */
.plan-features .fa-check {
    color: #22c55e;
    /* Vert pour validation */
}

.bonus-feature .fa-star {
    color: #ffd700;
    /* Or pour bonus points */
}

/* IcÃ´nes dans account.php */
.info-label .fa-crown {
    color: #ffd700;
    /* Or pour statut premium */
}

.info-label .fa-star {
    color: #ffd700;
    /* Or pour points */
}

.info-label .fa-calendar-alt {
    color: #3b82f6;
    /* Bleu pour dates */
}

.info-label .fa-envelope {
    color: #06b6d4;
    /* Cyan pour email */
}

.info-label .fa-user {
    color: #8b5cf6;
    /* Violet pour utilisateur */
}

.info-label .fa-clock {
    color: #f59e0b;
    /* Orange pour temps */
}

.stat-icon .fa-star {
    color: #ffd700;
    /* Or pour points stats */
}

.stat-icon .fa-download {
    color: #3b82f6;
    /* Bleu pour tÃ©lÃ©chargements */
}

.stat-icon .fa-coins {
    color: #f59e0b;
    /* Orange pour transactions */
}

.stat-icon .fa-chart-line {
    color: #10b981;
    /* Vert pour graphiques */
}

/* Icônes dans les titres de sections */
.features-header .fa-gem {
    color: var(--accent-primary);
}

.features-header .fa-star {
    color: #ffd700;
    /* Gold stays gold */
}

/* IcÃ´nes dans les boutons de dialogue */
.dialog-confirm .fa-check {
    color: #22c55e;
    /* Vert pour confirmation */
}

.dialog-cancel .fa-times {
    color: #ef4444;
    /* Rouge pour annulation */
}

.dialog-header .fa-question-circle {
    color: #3b82f6;
    /* Bleu pour questions */
}

/* IcÃ´nes d'information et aide */
.fa-info-circle {
    color: #3b82f6;
    /* Bleu pour information */
}

.subscription-extension-note .fa-info-circle {
    color: #3b82f6;
    /* Bleu pour notes d'info */
}

/* IcÃ´nes de navigation et actions (sauf banniÃ¨re) */
.glass-card .fa-home,
.container .fa-home {
    color: #10b981;
    /* Vert pour accueil */
}

.info-label .fa-user,
.stat-icon .fa-user {
    color: #8b5cf6;
    /* Violet pour utilisateur */
}

.glass-card .fa-user-plus,
.container .fa-user-plus {
    color: #ec4899;
    /* Rose pour inscription */
}

.glass-card .fa-sign-in-alt,
.container .fa-sign-in-alt {
    color: #3b82f6;
    /* Bleu pour connexion */
}

.glass-card .fa-sign-out-alt,
.container .fa-sign-out-alt {
    color: #ef4444;
    /* Rouge pour dÃ©connexion */
}

.glass-card .fa-puzzle-piece,
.container .fa-puzzle-piece {
    color: #10b981;
    /* Vert pour extensions */
}

/* IcÃ´nes de formulaires */
.fa-envelope {
    color: #06b6d4;
    /* Cyan pour email */
}

.fa-paper-plane {
    color: #3b82f6;
    /* Bleu pour envoi */
}

/* IcÃ´nes de tÃ©lÃ©chargement et actions */
.fa-shopping-cart {
    color: #a855f7;
    /* Violet pour panier */
}

.fa-copy {
    color: #06b6d4;
    /* Cyan pour copier */
}

.fa-times {
    color: #ef4444;
    /* Rouge pour fermer */
}

/* IcÃ´nes de calendrier et temps */
.fa-calendar {
    color: #3b82f6;
    /* Bleu pour calendrier */
}

.fa-calendar-alt {
    color: #3b82f6;
    /* Bleu pour calendrier alternatif */
}

/* IcÃ´nes des titres de sections (account.php) */
.section-title .fa-user {
    color: var(--accent-primary);
}

.section-title .fa-key {
    color: var(--accent-primary);
}

.section-title .fa-history {
    color: var(--accent-primary);
}

.section-title .fa-chart-bar {
    color: var(--accent-primary);
}

.section-title .fa-envelope {
    color: var(--accent-primary);
}

/* IcÃ´nes des sections lÃ©gales (privacy, legal, terms) */
.legal-section h2 .fa-shield-alt {
    color: #10b981;
    /* Vert pour sÃ©curitÃ©/protection */
}

.legal-section h2 .fa-database {
    color: #3b82f6;
    /* Bleu pour donnÃ©es */
}

.legal-section h2 .fa-cogs {
    color: #8b5cf6;
    /* Violet pour paramÃ¨tres/utilisation */
}

.legal-section h2 .fa-lock {
    color: #10b981;
    /* Vert pour sÃ©curitÃ© */
}

.legal-section h2 .fa-share-alt {
    color: #06b6d4;
    /* Cyan pour partage */
}

.legal-section h2 .fa-user-shield {
    color: #8b5cf6;
    /* Violet pour droits utilisateur */
}

.legal-section h2 .fa-cookie-bite {
    color: #f59e0b;
    /* Orange pour cookies */
}

.legal-section h2 .fa-edit {
    color: #3b82f6;
    /* Bleu pour modification */
}

.legal-section h2 .fa-balance-scale {
    color: #a855f7;
    /* Violet pour justice/loi */
}

.legal-section h2 .fa-envelope-open-text {
    color: #06b6d4;
    /* Cyan pour contact */
}

.legal-section h2 .fa-building {
    color: #8b5cf6;
    /* Violet pour entreprise */
}

.legal-section h2 .fa-server {
    color: #3b82f6;
    /* Bleu pour serveur/hÃ©bergement */
}

.legal-section h2 .fa-copyright {
    color: #f59e0b;
    /* Orange pour copyright */
}

.legal-section h2 .fa-gavel {
    color: #a855f7;
    /* Violet pour justice */
}

.legal-section h2 .fa-link {
    color: #06b6d4;
    /* Cyan pour liens */
}

.legal-section h2 .fa-file-contract {
    color: #3b82f6;
    /* Bleu pour contrat */
}

.legal-section h2 .fa-user-check {
    color: #10b981;
    /* Vert pour validation utilisateur */
}

.legal-section h2 .fa-handshake {
    color: #ec4899;
    /* Rose pour accord/utilisation */
}

.legal-section h2 .fa-credit-card {
    color: #f59e0b;
    /* Orange pour paiement */
}

.legal-section h2 .fa-coins {
    color: #ffd700;
    /* Or pour points/monnaie */
}

.legal-section h2 .fa-ban {
    color: #ef4444;
    /* Rouge pour interdiction */
}

/* IcÃ´nes info-label supplÃ©mentaires */
.info-label .fa-id-card {
    color: #3b82f6;
    /* Bleu pour identitÃ© */
}

/* Supported Hosts Accordion */
.supported-hosts {
    margin-top: 30px;
}

.hosts-toggle-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.hosts-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hosts-toggle-btn i:first-child {
    margin-right: 10px;
}

.hosts-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 15px;
}

.hosts-dropdown.show {
    max-height: 500px;
}

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.host-item {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.host-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.host-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

#hostsChevron {
    transition: transform 0.3s ease;
}

#hostsChevron.rotate {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    body {
        padding-top: 90px;
        /* Augmenter l'espacement pour mobile */
    }

    .banner-content {
        padding: 0 10px;
        gap: 8px;
    }

    .left-controls {
        gap: 6px;
    }

    .auth-buttons {
        gap: 6px;
    }

    .auth-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .auth-btn span {
        display: none;
    }

    .language-dropdown {
        padding: 6px 8px;
        font-size: 0.75rem;
        min-width: 50px;
        max-width: 55px;
        text-align: center;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .language-dropdown option {
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    .theme-selector {
        gap: 4px;
    }

    .theme-btn {
        padding: 6px 8px;
        font-size: 0.9rem;
    }

    .input-button-group {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .btn-inline {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 15px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .hosts-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
        padding: 15px;
    }

    .host-item {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}

/* Video Player Overlay Styles */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(10px);
}

.video-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.video-container {
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.close-video-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.close-video-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#videoPlayer {
    width: 100% !important;
    height: calc(100% - 70px) !important;
}

.video-js {
    background-color: transparent;
}

/* Styles pour les boutons de lecture dans les rÃ©sultats */
.download-link-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-link {
    flex: 1;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    padding: 8px 12px;
    background: var(--accent-primary-muted, rgba(20, 184, 166, 0.1));
    border-radius: 6px;
    border: 1px solid var(--accent-primary-border, rgba(20, 184, 166, 0.2));
    transition: all 0.2s ease;
}

.download-link:hover {
    background: var(--accent-primary-muted, rgba(20, 184, 166, 0.15));
}

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

.action-btn {
    background: var(--bg-input, #141625);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    color: var(--text-primary, #e8e9ed);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--bg-card-hover, #1f2337);
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14));
}

.play-btn {
    border-color: var(--border-primary, rgba(255, 255, 255, 0.08));
}

.play-btn:hover {
    border-color: var(--accent-primary-border, rgba(20, 184, 166, 0.3));
}

.download-btn {
    border-color: var(--border-primary, rgba(255, 255, 255, 0.08));
}

.download-btn:hover {
    border-color: var(--border-hover, rgba(255, 255, 255, 0.14));
}

@media (max-width: 768px) {
    .video-container {
        width: 95%;
        height: 95%;
    }

    .video-header {
        padding: 10px 15px;
    }

    .video-title {
        font-size: 1rem;
    }

    .download-link-container {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons {
        width: 100%;
        justify-content: center;
    }

    .action-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Authentication Styles */
.auth-card {
    max-width: 500px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-top: 10px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-help {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 5px;
}

.auth-btn-submit {
    margin-top: 10px;
    width: 100%;
}

.auth-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-links p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.auth-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #FFA500;
    text-decoration: underline;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Account Page Styles */
.account-header {
    margin-bottom: 30px;
}

.account-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-small {
    width: 60px;
    height: 60px;
    margin-right: 20px;
}

.welcome-text h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.welcome-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0 0 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title i {
    color: #FFD700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 60px;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.info-label i {
    color: #FFD700;
    width: 20px;
}

.info-value {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-free {
    background: rgba(156, 163, 175, 0.2);
    color: #d1d5db;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.status-expired {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.points-badge {
    padding: 5px 12px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.9rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

.plan-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    padding-top: 45px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-header {
    text-align: center;
    margin-bottom: 20px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 5px 0;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-duration {
    color: #FFD700;
    font-weight: 600;
    font-size: 1.2rem;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.plan-duration .duration-days {
    display: block;
}

.plan-price {
    text-align: center;
    margin-bottom: 20px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFD700;
}

.price-period {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.plan-description {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    min-height: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.plan-features {
    margin-bottom: 25px;
    flex-grow: 1;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.feature i {
    color: #22c55e;
    font-size: 0.9rem;
}

.plan-btn {
    width: 100%;
    margin-top: auto;
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.2rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.logout-btn {
    background: #ef4444 !important;
    border-color: transparent !important;
    color: white !important;
}

.logout-btn:hover {
    background: #f87171 !important;
}



/* Section upgrade premium dans account.php */
.upgrade-premium-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-premium-upgrade {
    background: var(--btn-primary-bg, var(--accent-primary));
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--btn-primary-shadow, 0 4px 14px rgba(20, 184, 166, 0.25));
}

.btn-premium-upgrade:hover {
    background: var(--btn-primary-hover, var(--accent-primary-hover));
    text-decoration: none;
}

.btn-premium-upgrade i {
    font-size: 1.1rem;
}

/* Tablette - 2 colonnes */
@media (max-width: 1023px) and (min-width: 768px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .plan-card {
        max-width: none;
    }
}

/* Mobile - 1 colonne */
@media (max-width: 767px) {
    .auth-card {
        margin: 0 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .plan-card {
        max-width: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .account-welcome {
        flex-direction: column;
        text-align: center;
    }

    .logo-small {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Subscription Plans Styles for Index Page */
.subscription-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.subscription-plan-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subscription-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.subscription-plan-card .plan-header {
    margin-bottom: 20px;
}

.subscription-plan-card .plan-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.subscription-plan-card .plan-duration {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.subscription-plan-card .plan-price {
    margin-bottom: 20px;
}

.subscription-plan-card .price-amount {
    color: #ffd700;
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
}

.subscription-plan-card .price-period {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.subscription-plan-card .plan-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.subscription-plan-card .plan-features {
    margin-bottom: 25px;
}

.subscription-plan-card .plan-features .feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.subscription-plan-card .plan-features .feature-item i {
    color: #22c55e;
    margin-right: 10px;
    font-size: 0.8rem;
}

.subscription-plan-card .plan-features .bonus-feature i {
    color: #ffd700;
}

.subscription-plan-card.plan-points {
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

.subscription-plan-card.plan-points:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
}

.subscription-plan-card .points-price {
    color: #ffd700;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Styles pour la page account.php */
.plan-card.plan-points {
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

.plan-card.plan-points:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
}

.plan-card .points-price {
    color: #ffd700;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-card .feature.bonus-feature i {
    color: #ffd700;
}

/* Plans grid dans features-container (index.php) */
.features-container .plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.features-container .plan-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.features-container .plan-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.features-container .plan-card .plan-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.features-container .plan-card .plan-duration {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.features-container .plan-card .plan-price {
    margin-bottom: 20px;
}

.features-container .plan-card .price-amount {
    color: #ffd700;
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
}

.features-container .plan-card .price-period {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.features-container .plan-card .plan-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.features-container .plan-card .plan-features {
    margin-bottom: 25px;
}

.features-container .plan-card .plan-features .feature {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.features-container .plan-card .plan-features .feature i {
    color: #22c55e;
    margin-right: 10px;
    font-size: 0.8rem;
}

.features-container .plan-card .plan-features .bonus-feature i {
    color: #ffd700;
}

.features-container .plan-btn {
    width: 100%;
    margin-top: auto;
}

.subscription-plan-btn {
    width: 100%;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: linear-gradient(45deg, #4a5568, #2d3748);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.15);
}

.subscription-plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 85, 104, 0.4);
}

.subscription-plan-btn:active {
    transform: translateY(-1px);
}

.current-points-info {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.points-badge i {
    color: #ffd700;
}

.points-badge strong {
    color: #ffd700;
    font-weight: 700;
}

/* Password Change Styles */
.password-change-section {
    margin-top: 30px;
}

.password-form {
    max-width: 500px;
    margin: 20px 0;
}

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

.password-form label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.password-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.password-form input[type="password"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-form small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 5px;
}

.password-form .btn-primary {
    margin-top: 10px;
    padding: 12px 30px;
    background: linear-gradient(45deg, #4a5568, #2d3748);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.password-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.password-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer Styles */
.site-footer {
    background: var(--bg-card, #1a1d2e);
    border-top: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    padding: 30px 20px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-link {
    color: var(--text-muted, #8b8fa3);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-link:hover {
    color: var(--text-primary, #e8e9ed);
}

.footer-copyright {
    color: var(--text-light, #6b7084);
    font-size: 0.85rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light, rgba(255, 255, 255, 0.04));
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Legal Pages Styles */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h2 i {
    color: #FFD700;
    font-size: 1.2rem;
}

.legal-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.legal-section ul li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.legal-section ul li:before {
    content: "\25B8";
    color: #FFD700;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.legal-section a {
    color: #FFD700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: #FFA500;
    text-decoration: underline;
}

/* Support Form Styles */
.support-content {
    max-width: 600px;
    margin: 0 auto;
}

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

.support-content label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.support-content label i {
    margin-right: 8px;
    color: #FFD700;
}

.support-content .input-field,
.support-content input[type="text"],
.support-content input[type="email"],
.support-content textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.support-content .input-field:focus,
.support-content input[type="text"]:focus,
.support-content input[type="email"]:focus,
.support-content textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.support-content textarea.input-field,
.support-content textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

.support-content .input-field::placeholder,
.support-content input::placeholder,
.support-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Payment History Styles */
.payment-history-section {
    margin-top: 30px;
}

.payment-history-table {
    overflow-x: auto;
    margin-top: 20px;
}

.payment-history-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.payment-history-table thead {
    background: rgba(102, 126, 234, 0.3);
}

.payment-history-table th {
    padding: 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-history-table td {
    padding: 15px;
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-history-table tbody tr {
    transition: background 0.3s ease;
}

.payment-history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.payment-history-table .transaction-id {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: help;
}

.payment-history-table i {
    margin-right: 5px;
}

.no-history {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .payment-history-table {
        font-size: 0.85rem;
    }

    .payment-history-table th,
    .payment-history-table td {
        padding: 10px 8px;
    }

    .payment-history-table .transaction-id {
        font-size: 0.75rem;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
}

/* Tablette - 2 colonnes pour features-container */
@media (max-width: 1023px) and (min-width: 768px) {
    .features-container .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile - 1 colonne */
@media (max-width: 767px) {
    .subscription-plans-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .subscription-plan-card {
        padding: 20px;
    }

    .subscription-plan-card .plan-name {
        font-size: 1.2rem;
    }

    .subscription-plan-card .price-amount {
        font-size: 1.8rem;
    }

    /* Responsive pour les plans dans features-container */
    .features-container .plans-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .features-container .plan-card {
        padding: 20px;
    }

    .features-container .plan-card .planname {
        font-size: 1.2rem;
    }

    .features-container .plan-card .price-amount {
        font-size: 1.8rem;
    }
}



/* ========================================
   TORRENT DEBRID STYLES
   ======================================== */

.torrent-input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-upload-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.file-upload-label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.file-upload-label i {
    font-size: 1.1rem;
}

.file-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-style: italic;
    display: none;
}

/* Torrent Results Display */
.torrent-results {
    width: 100%;
}

.torrent-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.torrent-header h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.torrent-header h3 i {
    color: #a78bfa;
}

.torrent-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.torrent-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.torrent-info i {
    color: rgba(255, 255, 255, 0.5);
}

.cache-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.85rem;
}

.torrent-files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.torrent-file-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.torrent-file-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.file-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.file-info i {
    color: #a78bfa;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.file-name {
    color: white;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.file-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-copy-link,
.btn-play {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy-link:hover,
.btn-play:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-play {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: transparent;
}

.btn-play:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Responsive pour torrent */
@media (max-width: 768px) {
    .torrent-file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-info {
        width: 100%;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .btn-download {
        flex: 1;
    }

    .torrent-info {
        flex-direction: column;
        gap: 8px;
    }

    .file-upload-section {
        flex-direction: column;
        align-items: stretch;
    }

    .file-upload-label {
        justify-content: center;
    }
}

/* Dialog de confirmation personnalisÃ© */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.confirm-dialog {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.confirm-dialog-icon {
    text-align: center;
    margin-bottom: 20px;
}

.confirm-dialog-icon i {
    font-size: 64px;
    color: #667eea;
}

.confirm-dialog-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.confirm-dialog-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 30px;
}

.confirm-dialog-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-dialog-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.confirm-btn-cancel {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.confirm-btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.confirm-btn-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.confirm-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Restored Loading Styles */
.loading {

    .btn-copy-link,
    .btn-play {
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-copy-link:hover,
    .btn-play:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    .btn-play {
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
        border-color: transparent;
    }

    .btn-play:hover {
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    }

    /* Responsive pour torrent */
    @media (max-width: 768px) {
        .torrent-file-item {
            flex-direction: column;
            align-items: flex-start;
        }

        .file-info {
            width: 100%;
        }

        .file-actions {
            width: 100%;
            justify-content: flex-start;
        }

        .btn-download {
            flex: 1;
        }

        .torrent-info {
            flex-direction: column;
            gap: 8px;
        }

        .file-upload-section {
            flex-direction: column;
            align-items: stretch;
        }

        .file-upload-label {
            justify-content: center;
        }
    }

    /* Dialog de confirmation personnalisÃ© */
    .confirm-dialog-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        animation: fadeIn 0.2s ease;
    }

    .confirm-dialog {
        background: linear-gradient(135deg, rgba(30, 30, 60, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 40px;
        max-width: 500px;
        width: 90%;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        animation: slideUp 0.3s ease;
    }

    .confirm-dialog-icon {
        text-align: center;
        margin-bottom: 20px;
    }

    .confirm-dialog-icon i {
        font-size: 64px;
        color: #667eea;
    }

    .confirm-dialog-title {
        color: white;
        font-size: 24px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 15px;
    }

    .confirm-dialog-message {
        color: rgba(255, 255, 255, 0.8);
        font-size: 16px;
        text-align: center;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .confirm-dialog-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    .confirm-dialog-btn {
        padding: 14px 32px;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s ease;
        min-width: 140px;
        justify-content: center;
    }

    .confirm-btn-cancel {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: white;
    }

    .confirm-btn-cancel:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
    }

    .confirm-btn-confirm {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
    }

    .confirm-btn-confirm:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes slideUp {
        from {
            transform: translateY(30px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* Restored Loading Styles */
    .loading {
        display: none;
        text-align: center;
        margin: 20px 0;
    }

    .loading.show {
        display: block;
    }

    /* ============================================
   ARC RAIDERS THEME SPECIFIC STYLES
   ============================================ */

    /* Global Font Overrides for Arc Theme */
    [data-theme="arc"] body {
        font-family: var(--font-body, 'Barlow', sans-serif);
        letter-spacing: 0.3px;
    }

    /* Background Grid & Noise Pattern */
    [data-theme="arc"] body::before {
        /* Grid */
        background-image:
            linear-gradient(rgba(236, 169, 37, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(236, 169, 37, 0.03) 1px, transparent 1px);
        background-size: 40px 40px;
        background-position: center top;
        opacity: 0.4;
        z-index: -2;
    }

    /* Add a noise overlay */
    [data-theme="arc"] body::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
        pointer-events: none;
        z-index: -1;
        opacity: 0.4;
    }

    /* Tech Borders / Corner Brackets for Cards */
    [data-theme="arc"] .glass-card {
        border: 1px solid rgba(236, 169, 37, 0.15);
        border-radius: 2px;
        /* Sharper corners */
        position: relative;
        background: rgba(20, 18, 18, 0.85);
        /* Darker, warmer, more solid */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
    }

    /* Corner accents - Top Left */
    [data-theme="arc"] .glass-card::after {
        content: '';
        position: absolute;
        top: -1px;
        left: -1px;
        width: 12px;
        height: 12px;
        border-top: 2px solid var(--accent-gold);
        border-left: 2px solid var(--accent-gold);
        border-top-left-radius: 0;
        pointer-events: none;
    }

    /* Corner accents - Bottom Right */
    [data-theme="arc"] .glass-card::before {
        background: none;
        content: '';
        position: absolute;
        bottom: -1px;
        right: -1px;
        width: 12px;
        height: 12px;
        border-bottom: 2px solid var(--accent-gold);
        border-right: 2px solid var(--accent-gold);
        border-bottom-right-radius: 0;
        pointer-events: none;
        left: auto;
        top: auto;
        transition: none;
    }

    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.confirm-dialog {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.confirm-dialog-icon {
    text-align: center;
    margin-bottom: 20px;
}

.confirm-dialog-icon i {
    font-size: 64px;
    color: #667eea;
}

.confirm-dialog-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.confirm-dialog-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 30px;
}

.confirm-dialog-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-dialog-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.confirm-btn-cancel {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.confirm-btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.confirm-btn-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.confirm-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Restored Loading Styles */
.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loading.show {
    display: block;
}

/* ============================================
   ARC RAIDERS THEME SPECIFIC STYLES
   ============================================ */

/* Global Font Overrides for Arc Theme */
[data-theme="arc"] body {
    font-family: var(--font-body, 'Barlow', sans-serif);
    letter-spacing: 0.3px;
}

/* Background Grid & Noise Pattern */
[data-theme="arc"] body::before {
    /* Grid */
    background-image:
        linear-gradient(rgba(236, 169, 37, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 169, 37, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    opacity: 0.4;
    z-index: -2;
}

/* Add a noise overlay */
[data-theme="arc"] body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

/* Tech Borders / Corner Brackets for Cards */
[data-theme="arc"] .glass-card {
    border: 1px solid rgba(236, 169, 37, 0.15);
    border-radius: 2px;
    /* Sharper corners */
    position: relative;
    background: rgba(20, 18, 18, 0.85);
    /* Darker, warmer, more solid */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Corner accents - Top Left */
[data-theme="arc"] .glass-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--accent-gold);
    border-left: 2px solid var(--accent-gold);
    border-top-left-radius: 0;
    pointer-events: none;
}

/* Corner accents - Bottom Right */
[data-theme="arc"] .glass-card::before {
    background: none;
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--accent-gold);
    border-right: 2px solid var(--accent-gold);
    border-bottom-right-radius: 0;
    pointer-events: none;
    left: auto;
    top: auto;
    transition: none;
}

/* Remove the hover shine effect from original styles for Arc theme */
[data-theme="arc"] .glass-card:hover::before {
    left: auto;
}

/* Input Styles */
[data-theme="arc"] .glass-input {
    border-radius: 2px;
    border: 1px solid rgba(236, 169, 37, 0.2);
    background: rgba(10, 8, 8, 0.6);
    font-family: var(--font-tech, 'JetBrains Mono', monospace);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

[data-theme="arc"] .glass-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(236, 169, 37, 0.1);
    background: rgba(20, 18, 18, 0.9);
}

/* Button Styles - Mimic "PLAY" button */
[data-theme="arc"] .btn-primary {
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    font-size: 1.2rem;
    font-family: var(--font-heading, 'Rajdhani', sans-serif);
    border: none;
    position: relative;
    overflow: hidden;
    background: #ffcc00;
    color: #000000;
    padding: 15px 40px 15px 60px;
    /* Extra left padding for arrow */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
    /* Tech cut */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

/* Chevron Arrow on Play Button */
[data-theme="arc"] .btn-primary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-right: 2px solid rgba(0, 0, 0, 0.2);
    transform: skewX(-15deg) translateX(-10px);
}

[data-theme="arc"] .btn-primary::after {
    content: '\f054';
    /* FontAwesome chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #000000;
}

[data-theme="arc"] .btn-primary:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
}

/* Toggle Buttons - Mimic "QUEST/CHALLENGE" Cards */
[data-theme="arc"] .toggle-group {
    background: transparent;
    gap: 10px;
    padding: 5px;
}

[data-theme="arc"] .toggle-btn {
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-heading, 'Rajdhani', sans-serif);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    background: rgba(20, 20, 20, 0.8);
    color: #888;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
}

/* Active State - High Contrast Header Style */
[data-theme="arc"] .toggle-btn.active {
    background: #e3dbcb;
    /* Off-white header */
    color: #000000;
    border-color: #e3dbcb;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Colored Accent Strips for Modes */
[data-theme="arc"] .toggle-btn[data-mode="single"].active {
    border-left: 4px solid #3498db;
    /* Blue for Single */
}

[data-theme="arc"] .toggle-btn[data-mode="multiple"].active {
    border-left: 4px solid #ffcc00;
    /* Yellow for Multiple */
}

[data-theme="arc"] .toggle-btn[data-mode="torrent"].active {
    border-left: 4px solid #e74c3c;
    /* Red for Torrent */
}

/* Icon styling in toggle buttons */
[data-theme="arc"] .toggle-btn i {
    margin-right: 8px;
}

[data-theme="arc"] .toggle-btn.active i {
    color: inherit;
    /* Icon takes text color (black) */
}

/* Titles */
[data-theme="arc"] .title {
    font-family: var(--font-heading, 'Rajdhani', sans-serif);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    background: transparent;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
    text-shadow: 0 0 20px rgba(236, 169, 37, 0.3);
    filter: none;
    animation: none;
}

/* Subtitles */
[data-theme="arc"] .subtitle {
    font-family: var(--font-tech, 'JetBrains Mono', monospace);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(236, 169, 37, 0.3) !important;
}




/* Floating Shapes - Make them more techy/geometric */
[data-theme="arc"] .shape {
    border-radius: 0;
    border: 1px solid rgba(236, 169, 37, 0.05);
    background: transparent;
}

/* Theme Buttons - Arc Style */
[data-theme="arc"] .theme-btn {
    border-radius: 2px !important;
    /* Sharp corners */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(20, 20, 20, 0.8) !important;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%) !important;
    /* Tech shape */
    transition: all 0.2s ease !important;
}

[data-theme="arc"] .theme-btn:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 10px rgba(236, 169, 37, 0.2) !important;
    border-color: var(--accent-gold) !important;
}

[data-theme="arc"] .theme-btn.active {
    background: rgba(236, 169, 37, 0.15) !important;
    border-color: var(--accent-gold) !important;
    color: var(--accent-gold) !important;
    box-shadow: 0 0 15px rgba(236, 169, 37, 0.3) !important;
}

/* Auth Buttons - Arc Style */
[data-theme="arc"] .auth-btn {
    border-radius: 2px !important;
    font-family: var(--font-heading, 'Rajdhani', sans-serif) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 95% 100%, 0 100%) !important;
    /* Subtle tech cut */
}

/* Login Button specific override */
[data-theme="arc"] .login-btn {
    background: linear-gradient(45deg, #1a4d2e, #2d8a4e) !important;
    /* Keep green but darker/tech */
    border-color: rgba(45, 138, 78, 0.5) !important;
}

[data-theme="arc"] .login-btn:hover {
    box-shadow: 0 0 15px rgba(45, 138, 78, 0.4) !important;
    border-color: #3cb371 !important;
}

/* Register Button specific override */
[data-theme="arc"] .register-btn {
    background: linear-gradient(45deg, #1e3a8a, #2563eb) !important;
    /* Keep blue but darker/tech */
    border-color: rgba(37, 99, 235, 0.5) !important;
}

[data-theme="arc"] .register-btn:hover {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4) !important;
    border-color: #3b82f6 !important;
}

/* Account Button specific override */
[data-theme="arc"] .auth-btn[href*="account.php"] {
    background: linear-gradient(45deg, #b8860b, #d4a017) !important;
    border-color: rgba(212, 160, 23, 0.5) !important;
}

[data-theme="arc"] .auth-btn[href*="account.php"]:hover {
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.4) !important;
    border-color: #eca925 !important;
}

/* Index/Home Button specific override */
[data-theme="arc"] .auth-btn[href*="index.php"] {
    background: linear-gradient(45deg, #4a5568, #2d3748) !important;
    border-color: rgba(74, 85, 104, 0.5) !important;
}

[data-theme="arc"] .auth-btn[href*="index.php"]:hover {
    box-shadow: 0 0 15px rgba(74, 85, 104, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Extensions Button specific override */
[data-theme="arc"] .auth-btn.extension-btn {
    background: linear-gradient(45deg, #2d5a40, #3d7a55) !important;
    border-color: rgba(61, 122, 85, 0.5) !important;
}

[data-theme="arc"] .auth-btn.extension-btn:hover {
    box-shadow: 0 0 15px rgba(61, 122, 85, 0.4) !important;
    border-color: var(--accent-green) !important;
}

/* Premium Button specific override */
[data-theme="arc"] .auth-btn.premium-btn {
    background: linear-gradient(45deg, #7c3aed, #6d28d9) !important;
    border-color: rgba(124, 58, 237, 0.5) !important;
}

[data-theme="arc"] .auth-btn.premium-btn:hover {
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4) !important;
    border-color: #a855f7 !important;
}

/* ============================================
   FAQ PAGE STYLES
   ============================================ */

/* FAQ Hero Section */
.faq-hero {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.faq-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.faq-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    color: white;
}

/* How It Works Section */
.how-it-works-section {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin-bottom: 60px;
}

.how-it-works-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 50px;
    color: white;
}

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

.step-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color, #667eea);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.step-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    color: white;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--primary-color, #667eea);
}

.benefit-item span {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

/* FAQ Section */
.faq-section {
    padding: 60px 20px;
    margin-bottom: 60px;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: white;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    opacity: 0.7;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    color: white;
    margin-bottom: 15px;
}

.faq-answer ul {
    margin: 15px 0;
    padding-left: 25px;
}

.faq-answer li {
    margin-bottom: 10px;
    line-height: 1.6;
    opacity: 0.9;
    color: white;
}

.faq-answer strong {
    color: var(--primary-color, #667eea);
    font-weight: 600;
}

/* Supported Hosters Section */
.supported-hosters-section {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin-bottom: 60px;
}

.supported-hosters-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.hosters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.hoster-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.hoster-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.hoster-badge.featured {
    border: 2px solid var(--primary-color, #667eea);
    background: rgba(102, 126, 234, 0.1);
}

.hoster-badge img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: brightness(1.2);
}

.hoster-badge span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.hosters-note {
    text-align: center;
    margin-top: 30px;
    font-size: 1rem;
    opacity: 0.7;
    color: white;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    margin-bottom: 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    color: white;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: white;
    color: var(--primary-color, #667eea);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 2rem;
    }

    .faq-hero p {
        font-size: 1.1rem;
    }

    .how-it-works-section h2,
    .faq-section h2,
    .supported-hosters-section h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .hosters-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .faq-question {
        font-size: 1rem;
        padding: 20px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
}

/* Arc Theme Overrides for FAQ Page */
[data-theme="arc"] .faq-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-theme="arc"] .step-icon {
    color: var(--accent-green);
}

[data-theme="arc"] .step-number {
    background: linear-gradient(45deg, var(--accent-green), #3cb371);
}

[data-theme="arc"] .benefit-item i {
    color: var(--accent-green);
}

[data-theme="arc"] .faq-answer strong {
    color: var(--accent-green);
}

[data-theme="arc"] .hoster-badge.featured {
    border-color: var(--accent-green);
    background: rgba(45, 138, 78, 0.1);
}

[data-theme="arc"] .cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-theme="arc"] .cta-button {
    background: var(--accent-green);
    color: white;
}

[data-theme="arc"] .cta-button:hover {
    background: #3cb371;
}

/* ── Torrent async status card ── */
.torrent-status-card {
    background: var(--glass-bg, rgba(255,255,255,0.05));
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.torrent-status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-primary, #e0e0e0);
}

.torrent-status-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}

.torrent-status-label {
    font-size: 13px;
    color: var(--text-secondary, #aaa);
    margin-bottom: 10px;
}

.torrent-progress-bar {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.torrent-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #6c63ff), #a78bfa);
    border-radius: 6px;
    transition: width 0.8s ease;
}

.torrent-status-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary, #aaa);
    flex-wrap: wrap;
}

.torrent-no-seeders {
    margin-top: 10px;
    font-size: 12px;
    color: #f59e0b;
    display: none;
}
/* ── Torrent history section ── */
.torrent-history-section {
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 12px;
    overflow: hidden;
}
.torrent-history-title {
    margin: 0;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #aaa);
    background: var(--glass-bg, rgba(255,255,255,0.03));
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}
.torrent-history-title i { margin-right: 6px; }
.torrent-history-list { padding: 4px 0; }
.torrent-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06));
}
.torrent-history-item:last-child { border-bottom: none; }
.torrent-history-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.torrent-history-name {
    font-size: 13px;
    color: var(--text-primary, #e0e0e0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}
.torrent-history-meta {
    font-size: 11px;
    color: var(--text-secondary, #888);
    white-space: nowrap;
}
.torrent-history-actions { flex-shrink: 0; }
.btn-history-view,
.btn-history-resume {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.btn-history-view { background: var(--primary, #6c63ff); color: #fff; }
.btn-history-resume { background: rgba(255,255,255,0.1); color: var(--text-primary, #e0e0e0); }
.btn-history-view:hover,
.btn-history-resume:hover { opacity: 0.85; }
.btn-history-delete {
    background: transparent;
    border: none;
    color: var(--text-secondary, #888);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
    margin-left: 4px;
    transition: color 0.15s, background 0.15s;
}
.btn-history-delete:hover { color: #ef4444; background: rgba(239,68,68,0.1); }
.btn-history-delete:disabled { opacity: 0.4; cursor: default; }
