/* ============================================================
   CELENGAN TARGET AI — GLOBAL DESIGN SYSTEM
   Dark Mode Premium | Glassmorphism | Inter Font
   ============================================================ */

/* ── 1. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Colors */
    --bg-primary:       #080d1a;
    --bg-secondary:     #0f1629;
    --bg-card:          rgba(255, 255, 255, 0.04);
    --bg-card-hover:    rgba(255, 255, 255, 0.07);
    --bg-glass:         rgba(15, 22, 41, 0.8);
    --border-subtle:    rgba(255, 255, 255, 0.08);
    --border-accent:    rgba(6, 182, 212, 0.35);

    /* Accent */
    --cyan:             #06b6d4;
    --cyan-light:       #22d3ee;
    --cyan-dark:        #0891b2;
    --emerald:          #10b981;
    --emerald-light:    #34d399;
    --amber:            #f59e0b;
    --amber-light:      #fbbf24;
    --rose:             #f43f5e;
    --violet:           #7c3aed;

    /* Text */
    --text-primary:     #f1f5f9;
    --text-secondary:   #94a3b8;
    --text-muted:       #475569;
    --text-accent:      var(--cyan);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--cyan) 0%, var(--emerald) 100%);
    --gradient-card:    linear-gradient(145deg, rgba(6,182,212,0.1) 0%, rgba(16,185,129,0.05) 100%);
    --gradient-dark:    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;

    /* Radius */
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-full: 9999px;

    /* Shadow */
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 20px rgba(6,182,212,0.3);
    --shadow-glow-emerald: 0 0 20px rgba(16,185,129,0.3);

    /* Transition */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Navbar */
    --navbar-height: 70px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Background Orbs */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}
body::before {
    width: 600px; height: 600px;
    background: var(--cyan);
    top: -200px; left: -200px;
}
body::after {
    width: 500px; height: 500px;
    background: var(--emerald);
    bottom: -150px; right: -150px;
}

/* ── 2. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cyan-light); }

/* ── 3. LAYOUT ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.main-content {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--navbar-height) - 80px);
    padding-top: var(--navbar-height);
    padding-bottom: var(--space-2xl);
}

.page-wrapper {
    padding: var(--space-xl) 0;
}

/* ── 4. NAVBAR ────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(8, 13, 26, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

/* Logo */
.nav-logo {
    display: flex; align-items: center; gap: var(--space-sm);
    text-decoration: none; flex-shrink: 0;
}
.logo-icon { font-size: 1.6rem; }
.logo-text  {
    font-size: 1.25rem; font-weight: 800;
    color: var(--text-primary); letter-spacing: -0.5px;
}
.logo-accent { color: var(--cyan); }

/* Nav Links */
.nav-links {
    display: flex; align-items: center; gap: var(--space-xs);
    list-style: none; flex: 1;
}
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius-full);
    color: var(--text-secondary); font-weight: 500; font-size: 0.9rem;
    text-decoration: none; transition: var(--transition); white-space: nowrap;
    position: relative;
}
.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}
.nav-link.active {
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.12);
}
.nav-link .nav-icon { font-size: 1rem; }

/* AI Link Special */
.ai-link {
    background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(16,185,129,0.15));
    border: 1px solid var(--border-accent);
}
.ai-link:hover {
    background: linear-gradient(135deg, rgba(6,182,212,0.25), rgba(16,185,129,0.25));
    box-shadow: var(--shadow-glow);
}
.ai-badge {
    font-size: 0.65rem; font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: 0.5px;
}

/* User Menu */
.nav-user { position: relative; margin-left: auto; flex-shrink: 0; }
.user-btn {
    display: flex; align-items: center; gap: var(--space-sm);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full); padding: 6px 14px 6px 6px;
    cursor: pointer; transition: var(--transition); color: var(--text-primary);
}
.user-btn:hover { border-color: var(--border-accent); background: var(--bg-card-hover); }
.user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: #fff; flex-shrink: 0;
}
.user-name { font-size: 0.88rem; font-weight: 500; }
.chevron { font-size: 0.7rem; color: var(--text-secondary); transition: var(--transition); }
.user-btn.open .chevron { transform: rotate(180deg); }

/* Dropdown */
.user-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: 240px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: var(--transition); z-index: 100;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: var(--space-md);
}
.dropdown-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; flex-shrink: 0;
}
.dropdown-name { font-weight: 600; font-size: 0.9rem; }
.dropdown-email { font-size: 0.78rem; color: var(--text-secondary); }
.dropdown-divider { height: 1px; background: var(--border-subtle); }
.dropdown-item {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: 10px var(--space-md); color: var(--text-secondary);
    font-size: 0.88rem; transition: var(--transition); border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.dropdown-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.logout-item:hover { color: var(--rose) !important; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.6); z-index: 900;
}

/* ── 5. CARDS ─────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.card-sm { padding: var(--space-lg); border-radius: var(--radius-md); }
.card-glow { box-shadow: var(--shadow-glow); border-color: var(--border-accent); }

/* ── 6. BUTTONS ───────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--space-sm); padding: 10px 22px;
    border-radius: var(--radius-full); font-weight: 600; font-size: 0.9rem;
    cursor: pointer; border: none; transition: var(--transition-bounce);
    text-decoration: none; white-space: nowrap; line-height: 1;
    letter-spacing: 0.2px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6,182,212,0.4);
}
.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(6,182,212,0.6);
    transform: translateY(-1px) scale(1.02);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    color: var(--cyan);
}

.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--border-accent);
}
.btn-outline:hover:not(:disabled) {
    background: rgba(6,182,212,0.1);
    box-shadow: var(--shadow-glow);
}

.btn-danger {
    background: rgba(244,63,94,0.15);
    color: var(--rose);
    border: 1px solid rgba(244,63,94,0.3);
}
.btn-danger:hover { background: rgba(244,63,94,0.25); }

.btn-sm  { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* Loading spinner in btn */
.btn .spinner {
    width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ── 7. FORM ELEMENTS ─────────────────────────────────────── */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
    display: block; margin-bottom: var(--space-sm);
    font-weight: 500; font-size: 0.88rem; color: var(--text-secondary);
    letter-spacing: 0.3px;
}
.form-label .required { color: var(--rose); margin-left: 2px; }

.form-control, .form-select {
    width: 100%; padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit; font-size: 0.93rem;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
}
.form-control:focus, .form-select:focus {
    border-color: var(--cyan);
    background: rgba(6,182,212,0.06);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}
.form-control::placeholder { color: var(--text-muted); }

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394a3b8' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l3-3 3 3M7 13l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}
.form-select option { background: var(--bg-secondary); }

.form-text { font-size: 0.8rem; color: var(--text-muted); margin-top: var(--space-xs); }
.form-error { font-size: 0.8rem; color: var(--rose); margin-top: var(--space-xs); }

.input-group { position: relative; }
.input-prefix {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-secondary); font-size: 0.88rem; font-weight: 600;
    pointer-events: none;
}
.input-group .form-control { padding-left: 70px; }

/* ── 8. PROGRESS BAR ──────────────────────────────────────── */
.progress-wrap {
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    height: 8px; overflow: hidden;
    position: relative;
}
.progress-bar {
    height: 100%; border-radius: var(--radius-full);
    background: var(--gradient-primary);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.progress-bar::after {
    content: '';
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
    animation: shimmer 1.5s infinite;
}
.progress-wrap.lg { height: 12px; }
.progress-wrap.xl { height: 16px; border-radius: var(--radius-md); }

/* ── 9. BADGES / PILLS ────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.4px;
}
.badge-cyan    { background: rgba(6,182,212,0.15);  color: var(--cyan); }
.badge-emerald { background: rgba(16,185,129,0.15); color: var(--emerald); }
.badge-amber   { background: rgba(245,158,11,0.15); color: var(--amber); }
.badge-rose    { background: rgba(244,63,94,0.15);  color: var(--rose); }
.badge-violet  { background: rgba(124,58,237,0.15); color: var(--violet); }

/* ── 10. ALERTS ───────────────────────────────────────────── */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem; margin-bottom: var(--space-lg);
    display: flex; align-items: flex-start; gap: var(--space-sm);
    animation: slideDown 0.3s ease;
}
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: var(--emerald-light); }
.alert-danger  { background: rgba(244,63,94,0.12);  border: 1px solid rgba(244,63,94,0.3);  color: #fb7185; }
.alert-warning { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: var(--amber-light); }
.alert-info    { background: rgba(6,182,212,0.12);  border: 1px solid rgba(6,182,212,0.3);  color: var(--cyan-light); }

/* ── 11. EMPTY STATE ──────────────────────────────────────── */
.empty-state {
    text-align: center; padding: var(--space-2xl) var(--space-xl);
}
.empty-icon  { font-size: 4rem; margin-bottom: var(--space-md); opacity: 0.6; }
.empty-title { font-size: 1.2rem; font-weight: 600; margin-bottom: var(--space-sm); }
.empty-desc  { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: var(--space-xl); }

/* ── 12. PAGE HEADER ──────────────────────────────────────── */
.page-header {
    padding: var(--space-xl) 0 var(--space-lg);
}
.page-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-md); flex-wrap: wrap;
}
.page-title { margin-bottom: 4px; }
.page-subtitle { color: var(--text-secondary); font-size: 0.9rem; }
.page-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ── 13. FOOTER ───────────────────────────────────────────── */
.footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-lg) 0;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-md); flex-wrap: wrap;
}
.footer-brand {
    display: flex; align-items: center; gap: var(--space-sm);
    font-weight: 700; font-size: 1rem;
}
.footer-copy { color: var(--text-secondary); font-size: 0.82rem; }
.footer-version { color: var(--text-muted); font-size: 0.78rem; }
.gemini-badge {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; font-weight: 600;
}

/* ── 14. AUTH PAGES ───────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-xl) var(--space-lg);
}
.auth-card {
    width: 100%; max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}
.auth-logo {
    text-align: center; margin-bottom: var(--space-xl);
}
.auth-logo-icon { font-size: 3.5rem; }
.auth-logo-text {
    font-size: 1.6rem; font-weight: 800;
    margin-top: var(--space-sm);
}
.auth-title {
    font-size: 1.4rem; font-weight: 700;
    margin-bottom: var(--space-xs); text-align: center;
}
.auth-subtitle {
    text-align: center; color: var(--text-secondary);
    font-size: 0.88rem; margin-bottom: var(--space-xl);
}
.auth-footer {
    text-align: center; margin-top: var(--space-xl);
    color: var(--text-secondary); font-size: 0.88rem;
}
.auth-divider {
    text-align: center; color: var(--text-muted);
    font-size: 0.8rem; margin: var(--space-lg) 0;
    position: relative;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute; top: 50%;
    width: 40%; height: 1px;
    background: var(--border-subtle);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* Password toggle */
.password-wrap { position: relative; }
.password-toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 1.1rem; padding: 4px;
    transition: var(--transition);
}
.password-toggle:hover { color: var(--cyan); }

/* ── 15. TOAST NOTIFICATIONS ──────────────────────────────── */
.toast-container {
    position: fixed; top: calc(var(--navbar-height) + 16px); right: 16px;
    z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
    min-width: 280px; max-width: 380px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: var(--space-sm);
    font-size: 0.88rem; font-weight: 500;
    animation: slideInRight 0.3s ease;
}
.toast.success { border-color: rgba(16,185,129,0.4); color: var(--emerald-light); }
.toast.error   { border-color: rgba(244,63,94,0.4);  color: #fb7185; }
.toast.info    { border-color: rgba(6,182,212,0.4);  color: var(--cyan-light); }

/* ── 16. ANIMATIONS ───────────────────────────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(6,182,212,0.3); }
    50%       { box-shadow: 0 0 25px rgba(6,182,212,0.6); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.animate-fade-up   { animation: fadeInUp 0.5s ease both; }
.animate-float     { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── 17. UTILITY CLASSES ──────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent  { color: var(--cyan); }
.text-success { color: var(--emerald); }
.text-warning { color: var(--amber); }
.text-danger  { color: var(--rose); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-sm  { font-size: 0.82rem; }
.fs-lg  { font-size: 1.1rem; }
.mt-0   { margin-top: 0 !important; }
.mb-0   { margin-bottom: 0 !important; }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ── 18. SCROLLBAR ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(6,182,212,0.4); }

/* ── 19. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 var(--space-md); }

    /* Navbar Mobile */
    .nav-links {
        display: none; position: fixed;
        top: var(--navbar-height); left: 0; right: 0; bottom: 0;
        background: var(--bg-secondary);
        flex-direction: column; align-items: flex-start;
        padding: var(--space-xl) var(--space-lg);
        gap: var(--space-sm);
        z-index: 950; overflow-y: auto;
        transform: translateX(-100%); transition: transform 0.3s ease;
    }
    .nav-links.open { display: flex; transform: translateX(0); }
    .nav-link { width: 100%; font-size: 1rem; padding: 12px 16px; }
    .hamburger { display: flex; }
    .nav-overlay.open { display: block; }
    .nav-user .user-name { display: none; }

    /* Auth */
    .auth-card { padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-lg); }

    /* Page header */
    .page-header-inner { flex-direction: column; align-items: flex-start; }
}
