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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 80px; /* Space for top banner + margin */
}

/* Top Banner Styles */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    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;
}

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

.language-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-dropdown:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-dropdown option {
    background: rgba(30, 30, 50, 0.95);
    color: white;
    border: none;
    padding: 8px 12px;
}

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

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

.auth-btn {
    background: linear-gradient(45deg, #4a5568, #2d3748);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.5px;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 40px rgba(74, 85, 104, 0.4);
    text-decoration: none;
}

.auth-btn:focus,
.auth-btn:active,
.auth-btn:visited {
    text-decoration: none;
    color: white;
}

.login-btn {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(45deg, #16a34a, #15803d);
}

.login-btn:hover {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
}

.register-btn {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(45deg, #3b82f6, #2563eb);
}

.register-btn:hover {
    background: linear-gradient(45deg, #60a5fa, #3b82f6);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="60" r="0.5" fill="%23ffffff" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    bottom: 30%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.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;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3)); }
    100% { filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5)); }
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5)); }
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

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

.toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.toggle-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
}

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

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

.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: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.glass-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.glass-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

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

.btn-primary {
    background: linear-gradient(45deg, #4a5568, #2d3748);
    border: none;
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(74, 85, 104, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.response-container {
    margin-top: 40px;
    display: none;
    animation: slideUp 0.4s ease-out;
}

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

/* Error Container Styles */
.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;
    justify-content: center;
}

.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: 500px;
    width: 100%;
}

.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;
}

.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;
    }
    
    .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;
    }
}

/* 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);
    }
}

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

.response-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    font-weight: 600;
}

.copy-btn {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: scale(1.05);
}

.response-output {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    color: #e5e7eb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    max-height: 400px;
    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);
}

.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: #60a5fa;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
}

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

.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: 10px;
    margin-top: 10px;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 120px;
    justify-content: center;
}

.action-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

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

.download-btn.action-btn {
    background: linear-gradient(45deg, #2d3748, #1a202c);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: auto;
    height: auto;
    margin-left: 0;
    padding: 10px 16px;
    min-width: 120px;
}

.download-btn.action-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.play-btn {
    background: linear-gradient(45deg, #2d3748, #1a202c);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.play-btn:hover {
    box-shadow: 0 6px 20px rgba(87, 245, 87, 0.2);
    color: white;
}

@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: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    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);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.feature-item i {
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

/* Couleurs spécifiques par icône */
.feature-item .fa-lock {
    color: #10b981; /* Vert pour sécurité */
}

.feature-item .fa-bolt {
    color: #f59e0b; /* Orange pour vitesse */
}

.feature-item .fa-download {
    color: #3b82f6; /* Bleu pour téléchargement */
}

.feature-item .fa-play {
    color: #ec4899; /* Rose pour streaming */
}

.feature-item .fa-infinity {
    color: #8b5cf6; /* Violet pour illimité */
}

.feature-item .fa-check {
    color: #22c55e; /* Vert pour validation */
}

.feature-item .fa-ban {
    color: #ef4444; /* Rouge pour interdiction/blocage */
}

.feature-item .fa-link {
    color: #06b6d4; /* Cyan pour liens */
}

/* 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 15px;
    }
    
    .auth-buttons {
        gap: 8px;
    }
    
    .auth-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .auth-btn span {
        display: none;
    }
    
    .language-dropdown {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .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: #22c55e;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.download-link:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: translateY(-1px);
}

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

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

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

.play-btn {
    border-color: rgba(59, 130, 246, 0.5);
}

.play-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.download-btn {
    border-color: rgba(37, 37, 37, 0.5);
}

.download-btn:hover {
    background: rgba(34, 197, 94, 0.2);
}

@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);
}

.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(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-items: center;
}

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

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

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 5px 0;
}

.plan-duration {
    color: #FFD700;
    font-weight: 600;
    font-size: 0.9rem;
}

.plan-price {
    text-align: center;
    margin-bottom: 20px;
}

.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;
}

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

.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: 0;
}

.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 {
    border-color: rgba(239, 68, 68, 0.5) !important;
    background: linear-gradient(45deg, #ef4444, #dc2626) !important;
}

.logout-btn:hover {
    background: linear-gradient(45deg, #f87171, #ef4444) !important;
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4) !important;
}

/* Bouton Mon compte avec style doré */
.auth-btn[href*="account.php"] {
    background: linear-gradient(45deg, #f59e0b, #d97706) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
}

.auth-btn[href*="account.php"]:hover {
    background: linear-gradient(45deg, #fbbf24, #f59e0b) !important;
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4) !important;
}

/* Bouton Accueil avec style neutre mais plus prononcé */
.auth-btn[href*="index.php"] {
    background: linear-gradient(45deg, #6b7280, #4b5563) !important;
    border-color: rgba(107, 114, 128, 0.5) !important;
}

.auth-btn[href*="index.php"]:hover {
    background: linear-gradient(45deg, #9ca3af, #6b7280) !important;
    box-shadow: 0 15px 40px rgba(107, 114, 128, 0.4) !important;
}
/* Bouton Offre premium avec style gem */
.auth-btn.premium-btn {
    background: linear-gradient(45deg, #a855f7, #7c3aed) !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
}

.auth-btn.premium-btn:hover {
    background: linear-gradient(45deg, #c084fc, #a855f7) !important;
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4) !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: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(168, 85, 247, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.btn-premium-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .auth-card {
        margin: 0 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .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: 0.9rem;
    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(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.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;
}

.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: 0.9rem;
    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: 0;
}

.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, #667eea, #764ba2);
    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: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    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: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-link:hover {
    color: #FFD700;
    background: rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@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: "▸";
    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;
    }
}

@media (max-width: 768px) {
    .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;
    }
}
