/* ================================================
   ANALYSEUR EMAIL — CSS v2
   Modern, glassmorphism dark UI
   ================================================ */

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

:root {
    --bg-primary: #06060e;
    --bg-card: rgba(255,255,255,0.025);
    --bg-card-hover: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --accent: #6C5CE7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.25);
    --cyan: #00cec9;
    --cyan-glow: rgba(0, 206, 201, 0.2);
    --text-primary: #f0f0f5;
    --text-secondary: #9a9ab0;
    --text-muted: #5a5a72;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #ff6b6b;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-card: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--border);
    --shadow-glow: 0 0 60px var(--accent-glow);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 600px 400px at 20% 20%, rgba(108, 92, 231, 0.06), transparent),
        radial-gradient(ellipse 500px 350px at 80% 80%, rgba(0, 206, 201, 0.04), transparent),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(108, 92, 231, 0.03), transparent);
    pointer-events: none;
    z-index: 0;
}

/* Subtle grid overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

/* ---- HERO ---- */

.hero {
    text-align: center;
    padding: 60px 20px 48px;
}

.hero-icon {
    margin-bottom: 20px;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px var(--accent-glow));
}

.hero-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(108, 92, 231, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 50%, var(--cyan) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-sub {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 400px;
    margin: 0 auto;
}

/* ---- UPLOAD CARD ---- */

.upload-card {
    background: linear-gradient(145deg, rgba(16, 16, 40, 0.8), rgba(12, 12, 30, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.upload-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-light), var(--cyan), transparent);
    opacity: 0.3;
}

/* Drop zone */

.drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    border: 2px dashed rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.01);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.drop-zone::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 2px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: transparent;
    background: rgba(108, 92, 231, 0.04);
}

.drop-zone:hover::before,
.drop-zone.dragover::before {
    opacity: 0.5;
}

.drop-icon {
    margin-bottom: 16px;
    color: var(--accent-light);
}

.drop-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

.drop-text {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.drop-or {
    font-size: 12px;
    color: var(--text-muted);
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.browse-btn {
    display: inline-block;
    padding: 11px 32px;
    background: linear-gradient(135deg, var(--accent), #5a4bd1);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

.browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.drop-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 16px;
    letter-spacing: 0.2px;
}

/* File input hidden */
#fileInput { display: none; }

/* ---- FILE INFO ---- */

.file-info {
    display: none;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(108, 92, 231, 0.06);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-md);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
}

.file-icon svg {
    width: 22px;
    height: 22px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.file-size {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.file-remove {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: var(--danger);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.05);
}

.file-remove svg {
    width: 16px;
    height: 16px;
}

/* ---- BOUTON ANALYSER ---- */

.analyze-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
    padding: 17px 32px;
    background: linear-gradient(135deg, var(--accent), #5341c9);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

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

.analyze-btn:hover:not(:disabled)::before {
    left: 100%;
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px var(--accent-glow);
}

.analyze-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
    display: inline-flex;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.analyze-btn:hover:not(:disabled) .btn-icon {
    transform: translateX(4px);
}

/* ---- LOADING OVERLAY ---- */

.loading-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 36px 0 10px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.05);
    border-top-color: var(--accent);
    border-right-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 24px;
}

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

.loading-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.loading-steps {
    width: 100%;
    max-width: 340px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.5s ease;
    border-left: 2px solid rgba(255,255,255,0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 2px;
}

.step svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke-width: 2;
}

.step.active {
    color: var(--accent-light);
    border-left-color: var(--accent);
    background: rgba(108, 92, 231, 0.05);
}

.loading-hint {
    margin-top: 28px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* ---- FEATURES ---- */

.features-section {
    margin-bottom: 56px;
}

.features-section h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.features-section > p {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 22px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.feature-card:hover::before {
    opacity: 0.5;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(0, 206, 201, 0.08));
    border: 1px solid rgba(108, 92, 231, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent-light);
    transition: var(--transition);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.15));
    border-color: rgba(108, 92, 231, 0.2);
    transform: scale(1.05);
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- FAQ ---- */

.faq-section {
    margin-bottom: 56px;
}

.faq-section h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.faq-q:hover {
    color: var(--text-primary);
}

.faq-arrow {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
    display: flex;
}

.faq-arrow svg {
    width: 18px;
    height: 18px;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent-light);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-a p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.7;
}

.faq-a p strong {
    color: var(--text-secondary);
}

/* ---- FOOTER ---- */

.footer {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* ---- NAVBAR ---- */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
}

.brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-links li a:hover,
.navbar-links li a.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.nav-btn-outline {
    border: 1px solid rgba(108, 92, 231, 0.5);
    color: var(--accent-light);
}

.nav-btn-outline:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--accent-light);
}

.nav-btn {
    background: linear-gradient(135deg, var(--accent), #5341c9);
    color: #fff;
    padding: 0.5rem 1.2rem;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.nav-user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

/* Burger menu mobile */
.navbar-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-burger.active span:nth-child(2) { opacity: 0; }
.navbar-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- FLASH MESSAGES ---- */

.flash-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 500px;
    padding: 0 16px;
}

.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(20px);
    animation: slideDown 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.flash-success {
    background: rgba(0, 184, 148, 0.15);
    border: 1px solid rgba(0, 184, 148, 0.3);
    color: var(--success);
}

.flash-danger {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--danger);
}

.flash-info {
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    color: var(--accent-light);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}

.flash-close:hover { opacity: 1; }

/* ---- AUTH FORMS ---- */

.auth-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 60px;
}

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

.auth-card h1 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--accent);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-submit {
    width: 100%;
    padding: 0.9rem;
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #5341c9);
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--accent-light);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ---- ABOUT / CONTENT PAGES ---- */

.content-page {
    padding-top: 40px;
}

.content-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-page h2 {
    font-size: 1.3rem;
    color: var(--accent-light);
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.content-page p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-page ul {
    color: var(--text-secondary);
    line-height: 2;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-page ul li strong {
    color: var(--text-primary);
}

/* ---- PROFILE PAGE ---- */

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.profile-name {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

.profile-email {
    color: var(--text-muted);
    margin-top: 0.3rem;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stat-value.accent { color: var(--accent-light); }
.stat-value.cyan { color: var(--cyan); }
.stat-value.success { color: var(--success); }

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.quick-actions {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.quick-actions h2 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.action-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
}

.action-btn-outline {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
}

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

/* ---- HISTORY PAGE ---- */

.history-empty {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
}

.history-empty p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.history-empty .hint {
    color: var(--text-muted);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
    .navbar-burger { display: flex; }

    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        gap: 0.2rem;
    }

    .navbar-links.open { display: flex; }

    .navbar-links li a {
        display: block;
        padding: 0.8rem 1rem;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero { padding: 40px 16px 32px; }

    .hero h1 { font-size: 28px; }

    .hero-logo { height: 80px; }

    .upload-card { padding: 28px 20px; }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card { padding: 24px 18px; }

    .drop-zone { padding: 36px 20px; }

    .profile-header { padding: 1.5rem; }

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