/* ==========================================================================
   ENGLISHMASTER - UNIFIED DESIGN SYSTEM
   Mobile-first, professional learning platform design
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Primary Brand Colors */
    --brand-primary: #6366f1;
    --brand-primary-light: #818cf8;
    --brand-primary-dark: #4f46e5;
    --brand-secondary: #8b5cf6;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-light: #34d399;
    --color-warning: #f59e0b;
    --color-warning-light: #fbbf24;
    --color-danger: #ef4444;
    --color-danger-light: #f87171;
    --color-info: #3b82f6;

    /* Background Colors */
    --bg-body: #0f172a;
    --bg-elevated: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.85);
    --bg-card-solid: #1e293b;
    --bg-input: rgba(15, 23, 42, 0.8);

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-accent: #a5b4fc;

    /* Borders */
    --border-subtle: rgba(148, 163, 184, 0.15);
    --border-default: rgba(148, 163, 184, 0.25);
    --border-strong: rgba(148, 163, 184, 0.4);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 1000;
}

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   COMPACT HEADER - Non-sticky, minimal footprint
   -------------------------------------------------------------------------- */
.platform-header {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-3) var(--space-4);
    position: relative; /* NOT sticky - scrolls with content */
    z-index: 10000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Brand - Compact */
.header-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.brand-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    color: white;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.brand-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-tagline {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation - Horizontal scrollable on mobile */
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--space-1) 0;
    margin: 0 calc(-1 * var(--space-4));
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.header-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
    border-color: var(--border-default);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.nav-item-icon {
    font-size: 1em;
    line-height: 1;
}

/* Nav item color variants */
.nav-item--home { --item-color: var(--brand-primary-light); }
.nav-item--test { --item-color: var(--color-success-light); }
.nav-item--unittest { --item-color: #c084fc; }
.nav-item--practice { --item-color: var(--color-danger-light); }
.nav-item--timetrial { --item-color: var(--color-warning-light); }
.nav-item--stats { --item-color: var(--color-info); }
.nav-item--homework { --item-color: #f472b6; }
.nav-item--gallery { --item-color: #60a5fa; }
.nav-item--logout { --item-color: var(--color-danger-light); }

.nav-item--home:hover,
.nav-item--test:hover,
.nav-item--unittest:hover,
.nav-item--practice:hover,
.nav-item--timetrial:hover,
.nav-item--stats:hover,
.nav-item--homework:hover,
.nav-item--gallery:hover,
.nav-item--logout:hover {
    color: var(--item-color);
    border-color: color-mix(in srgb, var(--item-color) 40%, transparent);
}

/* User badge - Compact */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-light) 100%);
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.user-role--teacher {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
}

/* Page title area - Only shown on non-test pages */
.page-header {
    text-align: center;
    padding: var(--space-6) var(--space-4) var(--space-4);
}

.page-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.025em;
}

.page-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   MAIN CONTENT AREA
   -------------------------------------------------------------------------- */
.main-content {
    padding: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.content-narrow {
    max-width: 800px;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    backdrop-filter: blur(8px);
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn--secondary {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
}

.btn--secondary:hover:not(:disabled) {
    background: var(--bg-card-solid);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.btn--success {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-light) 100%);
}

.btn--danger {
    background: linear-gradient(135deg, var(--color-danger) 0%, var(--color-danger-light) 100%);
}

.btn--lg {
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
    border-radius: var(--radius-xl);
}

.btn--sm {
    padding: var(--space-2) var(--space-3);
    font-size: 0.8125rem;
}

.btn--full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   FORM ELEMENTS
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-input,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

/* --------------------------------------------------------------------------
   TABLES
   -------------------------------------------------------------------------- */
.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    text-align: left;
    padding: var(--space-3) var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

.table tr:last-child td {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   STAT CARDS
   -------------------------------------------------------------------------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-3);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--border-default);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--space-1);
}

/* --------------------------------------------------------------------------
   GRADE COLORS
   -------------------------------------------------------------------------- */
.grade-1 { color: #4ade80; font-weight: 700; }
.grade-2 { color: #86efac; font-weight: 700; }
.grade-3 { color: #fbbf24; font-weight: 700; }
.grade-4 { color: #fb923c; font-weight: 700; }
.grade-5 { color: #f87171; font-weight: 700; }
.grade-6 { color: #ef4444; font-weight: 700; }

/* --------------------------------------------------------------------------
   ALERTS / NOTICES
   -------------------------------------------------------------------------- */
.notice {
    padding: var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.notice--info {
    border-left: 3px solid var(--color-info);
    background: rgba(59, 130, 246, 0.1);
}

.notice--success {
    border-left: 3px solid var(--color-success);
    background: rgba(16, 185, 129, 0.1);
}

.notice--warning {
    border-left: 3px solid var(--color-warning);
    background: rgba(245, 158, 11, 0.1);
}

.notice--danger {
    border-left: 3px solid var(--color-danger);
    background: rgba(239, 68, 68, 0.1);
}

/* --------------------------------------------------------------------------
   DECORATIVE ELEMENTS - Subtle, not intrusive
   -------------------------------------------------------------------------- */
.bg-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
}

.bg-glow--1 {
    background: var(--brand-primary);
    top: -150px;
    right: -100px;
}

.bg-glow--2 {
    background: var(--color-success);
    bottom: -150px;
    left: -100px;
}

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

/* Tablet and up */
@media (min-width: 640px) {
    .header-nav {
        margin: 0;
        padding: 0;
        overflow-x: visible;
    }

    .nav-item {
        padding: var(--space-2) var(--space-4);
    }

    .stats-row {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .platform-header {
        padding: var(--space-4) var(--space-6);
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 0.9375rem;
    }

    .brand-name {
        font-size: 1.125rem;
    }

    .main-content {
        padding: var(--space-6);
    }
}

/* Mobile specific - Extra compact */
@media (max-width: 480px) {
    .platform-header {
        padding: var(--space-2) var(--space-3);
    }

    .brand-info {
        display: none; /* Hide text, show only logo on very small screens */
    }

    .user-info {
        padding: var(--space-1) var(--space-2);
    }

    .user-role {
        display: none;
    }

    .nav-item {
        padding: var(--space-2);
    }

    .nav-item-text {
        display: none;
    }

    .nav-item-icon {
        font-size: 1.125rem;
    }

    .page-header {
        padding: var(--space-4) var(--space-3) var(--space-3);
    }

    .content-card {
        padding: var(--space-4);
        border-radius: var(--radius-lg);
    }
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------------------------- */
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center { text-align: center; }
.text-success { color: var(--color-success-light); }
.text-danger { color: var(--color-danger-light); }
.text-warning { color: var(--color-warning-light); }
.text-muted { color: var(--text-muted); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

/* --------------------------------------------------------------------------
   BOTTOM NAVIGATION BAR (Mobile App Style)
   -------------------------------------------------------------------------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 4px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 4px 2px;
    min-width: 40px;
    flex: 1;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:hover {
    color: #9ca3af;
}

.bottom-nav-item.active {
    color: #ffffff;
}

.bottom-nav-icon {
    font-size: 1.25rem;
    margin-bottom: 2px;
    line-height: 1;
}

.bottom-nav-label {
    line-height: 1;
    letter-spacing: -0.01em;
}

/* Fix: "Test" label slightly left to align with emoji */
.bottom-nav-item[href="test.php"] .bottom-nav-label {
    margin-left: -5px;
}

/* Body padding for bottom nav */
body.has-bottom-nav {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
}

/* Simplified top header when using bottom nav */
.header-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.header-minimal .brand-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--text-primary);
}

.header-minimal .brand-logo {
    font-size: 1.5rem;
}

.header-minimal .brand-info-mobile {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-minimal .brand-name {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-minimal .brand-tagline {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-minimal .logout-btn {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.header-minimal .logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--color-danger);
    color: var(--color-danger-light);
}

/* Hide old nav on mobile when bottom nav is active */
@media (max-width: 768px) {
    body.has-bottom-nav .header-nav {
        display: none;
    }

    body.has-bottom-nav .platform-header {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   HAMBURGER MENU & THEME SWITCHER
   -------------------------------------------------------------------------- */

.hamburger-wrapper {
    position: relative;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.hamburger-line {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hamburger-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.2s ease;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hamburger-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-section {
    margin-bottom: 8px;
}

.menu-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, rgba(255,255,255,0.4));
    padding: 0 8px 6px;
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.theme-option.active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.theme-option.active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #818cf8;
    flex-shrink: 0;
}

.menu-logout {
    display: block;
    padding: 8px 10px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    color: var(--color-danger-light, #f87171);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.menu-logout:hover {
    background: rgba(239, 68, 68, 0.12);
}

/* Desktop hamburger positioning */
.hamburger-desktop {
    margin-left: 8px;
}

/* Show bottom nav only on mobile/tablet */
@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }

    .header-minimal {
        display: none;
    }

    body.has-bottom-nav {
        padding-bottom: 0;
    }
}
