/* ==========================================================================
   ACADEMIC COMMAND CENTER — planner-styles.css  v3.0
   Theme: Premium Dark Glassmorphism & Mobile First
   Fonts: DM Sans · Space Grotesk · JetBrains Mono
========================================================================== */

/* ─────────────────────────────────────────────
   1. CSS VARIABLES & DESIGN TOKENS
───────────────────────────────────────────── */
:root {
    /* Core Backgrounds - Deep Space Glassmorphism */
    --bg-base:       #020204;
    --bg-surface:    rgba(10, 10, 15, 0.65);
    --bg-card:       rgba(18, 18, 26, 0.55);
    --bg-card-2:     rgba(25, 25, 35, 0.65);
    --bg-card-hover: rgba(30, 30, 42, 0.7);

    /* Accent Colors */
    --indigo:        #6366f1;
    --indigo-light:  #818cf8;
    --indigo-dim:    rgba(99, 102, 241, 0.15);
    --indigo-glow:   rgba(99, 102, 241, 0.3);

    --emerald:       #10b981;
    --emerald-dim:   rgba(16, 185, 129, 0.15);

    --amber:         #f59e0b;
    --amber-dim:     rgba(245, 158, 11, 0.15);

    --ruby:          #ef4444;
    --ruby-dim:      rgba(239, 68, 68, 0.15);

    /* Text */
    --text-primary:   #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary:  #475569;

    /* Borders & Shadows */
    --border:         rgba(255, 255, 255, 0.08);
    --border-subtle:  rgba(255, 255, 255, 0.04);
    --border-focus:   rgba(99, 102, 241, 0.5);
    --shadow-glow:    0 0 24px rgba(99, 102, 241, 0.18), 0 0 60px rgba(99, 102, 241, 0.06);
    --shadow-glass:   0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.15);
    --shadow-elevated: 0 12px 48px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);

    /* Gradients */
    --grad-indigo:    linear-gradient(135deg, #6366f1, #4f46e5);
    --grad-emerald:   linear-gradient(135deg, #10b981, #059669);
    --grad-amber:     linear-gradient(135deg, #f59e0b, #d97706);
    --grad-surface:   linear-gradient(180deg, rgba(99, 102, 241, 0.04), transparent 60%);

    /* Typography */
    --font-sans:      'DM Sans', sans-serif;
    --font-display:   'Space Grotesk', sans-serif;
    --font-mono:      'JetBrains Mono', monospace;

    /* Layout */
    --sidebar-width:  280px;
    --header-height:  70px;
    --radius-sm:      0.5rem;
    --radius-md:      1rem;
    --radius-lg:      1.5rem;
    --radius-xl:      2rem;
    --bottom-nav-height: 80px;

    /* Transitions */
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    transition: all 0.25s var(--ease-smooth);
}
button:active {
    transform: scale(0.96);
}

ul   { list-style: none; }
a    { text-decoration: none; color: inherit; }
code { font-family: var(--font-mono); font-size: 0.85em; }

/* Utilities */
.hidden          { display: none !important; }
.mt-2            { margin-top: 1rem; }
.mt-3            { margin-top: 1.5rem; }
.mt-4            { margin-top: 2rem; }
.mb-2            { margin-bottom: 1rem; }
.mb-3            { margin-bottom: 1.5rem; }
.mb-4            { margin-bottom: 2rem; }
.pt-3            { padding-top: 1.5rem; }
.pt-4            { padding-top: 2rem; }
.w-100           { width: 100%; }
.border-top-subtle { border-top: 1px solid var(--border-subtle); }
.max-w-800       { max-width: 800px; margin: 0 auto; }
.text-center     { text-align: center; }
.justify-content-center { justify-content: center; }

/* Custom Scrollbar */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* Background & Progress */
.animated-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.1), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(16, 185, 129, 0.03), transparent 50%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(245, 158, 11, 0.02), transparent 50%);
}
.scroll-progress-bar {
    position: fixed; top: 0; left: 0; height: 3px;
    background: var(--grad-indigo); z-index: 9999;
    width: 0%; transition: width 0.15s var(--ease-smooth);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

/* ─────────────────────────────────────────────
   3. APP LAYOUT & SIDEBAR (Desktop)
───────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 10, 16, 0.8);
    backdrop-filter: blur(32px) saturate(1.2);
    -webkit-backdrop-filter: blur(32px) saturate(1.2);
    border-right: 1px solid var(--border);
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 100; display: flex; flex-direction: column;
    transition: transform 0.35s var(--ease-out);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon {
    width: 36px; height: 36px; background: var(--grad-indigo);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: white; box-shadow: var(--shadow-glow);
}
.logo-name   { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.logo-suffix { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--indigo-light); }
.close-sidebar-btn { display: none; color: var(--text-secondary); font-size: 1.25rem; }

.nav-menu {
    flex: 1; padding: 0 1rem;
    display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto;
}
.nav-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.875rem 1.25rem; border-radius: var(--radius-md);
    font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
    cursor: pointer; border: 1px solid transparent;
    transition: all 0.25s var(--ease-smooth);
    position: relative;
}
.nav-item i          { font-size: 1.1rem; width: 24px; text-align: center; transition: transform 0.25s var(--ease-spring); }
.nav-item:hover      { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-item:hover i    { transform: translateX(2px); }
.nav-item:active     { transform: scale(0.97); }
.nav-item.active     {
    background: var(--bg-card-2); border-color: var(--border);
    color: var(--indigo-light); box-shadow: 0 4px 20px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(99,102,241,0.08);
}
.nav-item.active i   { color: var(--indigo-light); }

/* Library Nav Link (external page nav) */
.nav-item-link {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.875rem 1.25rem; border-radius: var(--radius-md);
    font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
    cursor: pointer; border: 1px solid transparent;
    transition: all 0.25s var(--ease-smooth);
    text-decoration: none;
}
.nav-item-link i      { font-size: 1.1rem; width: 24px; text-align: center; transition: transform 0.25s var(--ease-spring); }
.nav-item-link:hover  { color: var(--emerald); background: var(--emerald-dim); border-color: rgba(16,185,129,0.2); }
.nav-item-link:hover i { transform: translateX(2px); color: var(--emerald); }
.nav-item-link:active { transform: scale(0.97); }
.badge-count {
    background: var(--ruby); color: white;
    font-size: 0.7rem; font-weight: 700;
    padding: 0.15rem 0.5rem; border-radius: 99px; margin-left: auto;
}

.sidebar-footer {
    padding: 1.5rem; border-top: 1px solid var(--border-subtle);
    min-height: 80px; display: flex; align-items: center;
}
.sidebar-action-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.875rem; border-radius: var(--radius-md);
    background: transparent; border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 600;
}
.sidebar-action-btn:hover { background: var(--bg-card-2); color: var(--text-primary); border-color: var(--border-focus); }
.sidebar-action-btn:active { transform: scale(0.97); }

/* ─────────────────────────────────────────────
   4. MAIN CONTENT & TOP HEADER
───────────────────────────────────────────── */
.main-content { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; }

.top-header {
    height: var(--header-height); padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(2, 2, 4, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border);
}
.hub-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 0.75rem; display: none; }
.hub-title i { color: var(--indigo-light); }

.hamburger-btn { display: none; color: var(--text-primary); font-size: 1.5rem; }
.header-status { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav-guardian-badge {
    background: rgba(30,41,59,0.4); border: 1px solid rgba(148,163,184,0.2);
    padding: 0.4rem 0.875rem; border-radius: 99px;
    font-size: 0.8rem; color: var(--indigo-light); font-weight: 600;
}
.nav-user-pill {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 99px; padding: 0.3rem 1rem 0.3rem 0.3rem;
    font-size: 0.85rem; font-weight: 600;
}
.nup-avatar {
    width: 28px; height: 28px; background: var(--grad-indigo);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: white; font-family: var(--font-display);
}

/* ─────────────────────────────────────────────
   5. MOBILE BOTTOM NAVIGATION (New)
───────────────────────────────────────────── */
.bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed; bottom: 0; left: 0; width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(8, 8, 14, 0.92);
    backdrop-filter: blur(32px) saturate(1.3);
    -webkit-backdrop-filter: blur(32px) saturate(1.3);
    border-top: 1px solid rgba(255,255,255,0.06); z-index: 100;
    padding-bottom: env(safe-area-inset-bottom); /* iOS support */
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    justify-content: space-around;
}
.bottom-nav::-webkit-scrollbar { display: none; }

.bnav-item {
    flex: 1;
    min-width: 0;
    padding: 0 0.5rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem;
    color: var(--text-secondary); font-size: 0.68rem; font-weight: 600;
    transition: all 0.25s var(--ease-smooth);
    position: relative;
    text-decoration: none;
}
.bnav-item i { font-size: 1.2rem; transition: transform 0.3s var(--ease-spring), color 0.25s; }
.bnav-item:active { transform: scale(0.9); }
.bnav-item.active { color: var(--indigo-light); }
.bnav-item.active i { transform: translateY(-3px) scale(1.1); }
.bnav-item.active::after {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px; background: var(--indigo-light); border-radius: 2px;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

/* ─────────────────────────────────────────────
   6. GLOBAL DAY NAVIGATOR & HASH BOX
───────────────────────────────────────────── */
.global-day-navigator {
    background: var(--bg-surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* Date Navigator Card */
.day-navigator-card {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem 2rem;
    margin-bottom: 1rem; box-shadow: var(--shadow-glass);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
}
.day-nav-arrow {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--bg-card-2); border: 1px solid var(--border);
    color: var(--text-secondary); display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem; flex-shrink: 0;
    transition: all 0.25s var(--ease-smooth);
}
.day-nav-arrow:hover { background: var(--indigo-dim); color: var(--indigo-light); border-color: var(--indigo-glow); transform: scale(1.08); }
.day-nav-arrow:active { transform: scale(0.94); }
.day-nav-center { text-align: center; flex: 1; padding: 0 1.5rem; }
.day-date-label {
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
    color: var(--text-primary); line-height: 1.2; margin-bottom: 0.75rem;
}
.today-jump-btn {
    background: var(--bg-card-2); border: 1px solid var(--border);
    color: var(--text-secondary); padding: 0.4rem 1.25rem;
    border-radius: 99px; font-size: 0.85rem; font-weight: 600;
    transition: all 0.25s var(--ease-smooth);
}
.today-jump-btn:hover { background: var(--text-primary); color: var(--bg-base); }
.today-jump-btn:active { transform: scale(0.95); }

/* Daily Hash Code Strip */
.daily-code-compact {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(18, 18, 26, 0.5); border: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    border-radius: var(--radius-lg); padding: 1rem 2rem; gap: 1.25rem;
    box-shadow: var(--shadow-card); flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.daily-code-compact::before {
    content: ''; position: absolute; inset: 0;
    background: var(--grad-surface); pointer-events: none;
    border-radius: inherit;
}
.dcc-label {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 700; font-size: 0.85rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.dcc-label i { color: var(--indigo-light); font-size: 1rem; }

.dcc-code {
    background: var(--bg-base); border: 1px solid var(--indigo-light);
    border-radius: var(--radius-sm); padding: 0.4rem 1.25rem;
    font-family: var(--font-mono); font-size: 1rem; font-weight: 700;
    color: var(--indigo-light); letter-spacing: 0.1em;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15); transition: all 0.3s ease;
    text-align: center; min-width: 110px;
}
.dcc-code.hash-locked { border-color: var(--text-tertiary); color: var(--text-tertiary); cursor: not-allowed; box-shadow: none; }

.dcc-pills { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dcc-token-badge {
    display: flex; align-items: center; gap: 0.4rem;
    background: var(--amber-dim); border: 1px solid rgba(245,158,11,0.3);
    color: var(--amber); padding: 0.45rem 1rem;
    border-radius: 99px; font-weight: 700; font-size: 0.9rem;
    white-space: nowrap; margin-left: auto;
}
.dcc-token-badge i { font-size: 1rem; }
.dcc-token-lbl { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.sc-req-pill {
    padding: 0.4rem 0.875rem; border-radius: var(--radius-sm);
    font-size: 0.75rem; font-weight: 600; border: 1px solid var(--border);
    color: var(--text-tertiary); display: flex; align-items: center; gap: 0.4rem; transition: all 0.3s;
}
.sc-req-pill.met { background: var(--emerald-dim); border-color: rgba(16,185,129,0.3); color: var(--emerald); }

/* ─────────────────────────────────────────────
   7. PAGE SECTIONS & REUSABLE COMPONENTS
───────────────────────────────────────────── */
.page-section { display: none; padding: 2rem 0 4rem; }
.page-section.active { display: block; animation: fadeUpIn 0.45s var(--ease-out) forwards; }
@keyframes fadeUpIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.section-header-left {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem; flex-wrap: wrap;
}
.section-header-left h2 {
    font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.75rem;
}
.section-header-left h2 i { color: var(--indigo-light); font-size: 1.5rem; }
.notes-day-label {
    background: var(--bg-card-2); border: 1px solid var(--border);
    padding: 0.3rem 0.875rem; border-radius: 99px;
    font-size: 0.8rem; color: var(--text-secondary); font-weight: 600;
}
.action-pill-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9rem;
    background: var(--bg-card-2); border: 1px solid var(--border-focus); color: var(--indigo-light);
}
.action-pill-btn:hover { background: var(--indigo-dim); }

/* Buttons */
.btn-primary {
    background: var(--text-primary); color: var(--bg-base);
    padding: 0.875rem 1.5rem; border-radius: 99px; font-weight: 700; font-size: 0.95rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: none;
    transition: all 0.25s var(--ease-smooth);
    box-shadow: 0 2px 8px rgba(255,255,255,0.08);
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,255,255,0.12); }
.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-secondary {
    background: var(--bg-card-2); border: 1px solid var(--border); color: var(--text-primary);
    padding: 0.875rem 1.5rem; border-radius: 99px; font-weight: 600; font-size: 0.95rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.25s var(--ease-smooth);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-focus); transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(0) scale(0.97); }

/* Filter Scroll Row */
.filter-scroll-row {
    display: flex; gap: 0.75rem; flex-wrap: wrap; padding-bottom: 0.5rem;
}
.filter-scroll-row::-webkit-scrollbar { display: none; }
.filter-pill {
    white-space: nowrap; padding: 0.6rem 1.25rem;
    background: var(--bg-card-2); border: 1px solid var(--border);
    border-radius: 99px; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); flex-shrink: 0;
    transition: all 0.25s var(--ease-smooth);
}
.filter-pill:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.12); }
.filter-pill:active { transform: scale(0.95); }
.filter-pill.active { background: var(--text-primary); color: var(--bg-base); border-color: transparent; box-shadow: 0 2px 10px rgba(255,255,255,0.1); }

/* Inputs & Selects */
.styled-select-container { position: relative; width: 100%; }
.styled-select {
    appearance: none; width: 100%;
    background: var(--bg-card-2); border: 1px solid var(--border); color: var(--text-primary);
    padding: 1rem 1.25rem; border-radius: var(--radius-md); font-family: var(--font-sans);
    font-size: 1rem; outline: none; cursor: pointer;
}
.styled-select:focus { border-color: var(--border-focus); }
.select-icon { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); pointer-events: none; }

/* Empty States */
.empty-state { text-align: center; padding: 4rem 2rem; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.empty-state i { font-size: 3rem; color: var(--text-tertiary); margin-bottom: 1rem; }
.empty-state p { color: var(--text-secondary); font-size: 1rem; font-weight: 500; }
.empty-state p.hint { color: var(--text-tertiary); font-size: 0.85rem; margin-top: 0.5rem; }

/* ─────────────────────────────────────────────
   8. DASHBOARD / PROFILE CARD
───────────────────────────────────────────── */
.dashboard-top-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.student-profile-card-inline {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    background: rgba(18, 18, 26, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-top: none;
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem; flex-wrap: wrap;
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(99, 102, 241, 0.15);
    position: relative; overflow: hidden;
    transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.student-profile-card-inline::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad-indigo);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.student-profile-card-inline::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.06), transparent 60%);
    pointer-events: none;
}
.student-profile-card-inline:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-elevated), inset 0 1px 0 rgba(99, 102, 241, 0.2);
}
.spc-avatar {
    width: 76px; height: 76px; border-radius: 22px; background: var(--grad-indigo);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: white;
    flex-shrink: 0; box-shadow: var(--shadow-glow);
    position: relative; z-index: 1;
    transition: transform 0.3s var(--ease-spring);
}
.student-profile-card-inline:hover .spc-avatar { transform: scale(1.05); }
.spc-stats { flex: 1; display: flex; justify-content: space-around; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }
.spc-stat  {
    text-align: center; padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    transition: background 0.25s var(--ease-smooth);
}
.spc-stat:hover { background: rgba(255,255,255,0.03); }
.spc-stat-val       {
    font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
    color: var(--indigo-light); display: block; margin-bottom: 0.35rem; line-height: 1;
    transition: transform 0.3s var(--ease-spring);
}
.spc-stat:hover .spc-stat-val { transform: scale(1.08); }
.spc-stat-val.emerald-val { color: var(--emerald); }
.spc-stat-val.amber-val   { color: var(--amber);   }
.spc-stat-lbl       { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* ─────────────────────────────────────────────
   9. TASKS & SIDEBAR WIDGETS
───────────────────────────────────────────── */
.tasks-dashboard-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; overflow: hidden; }
.tasks-main-col { background: transparent; border: none; padding: 0; min-width: 0; overflow: hidden; }
.tasks-sidebar-col { min-width: 0; overflow: hidden; }
.task-completion-badge {
    background: var(--indigo-dim); color: var(--indigo-light); padding: 0.3rem 1rem;
    border-radius: 99px; font-size: 0.9rem; font-weight: 700;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.12);
}
.task-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.25rem; width: 100%; }

.task-item {
    background: rgba(20, 20, 28, 0.65); border: 1px solid var(--border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem; padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1.25rem;
    cursor: pointer; transition: all 0.25s var(--ease-smooth); position: relative; overflow: hidden;
}
.task-item:hover { border-color: rgba(99, 102, 241, 0.25); background: rgba(30, 30, 40, 0.7); transform: translateX(4px); }
.task-item:active { transform: scale(0.99); }
.task-item.done { border-color: rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); opacity: 0.55; }
.task-item.done::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-indigo); }
.task-item.done .task-topic { text-decoration: line-through; color: #71717a; }

.task-subject-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-maths     { background: #6366f1; }
.dot-reasoning { background: #f59e0b; }
.dot-english   { background: #10b981; }
.dot-gk        { background: #06b6d4; }
.dot-revision  { background: #8b5cf6; }
.dot-mock      { background: #f43f5e; }

.task-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; margin-left: -0.25rem; }
.task-content { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.task-topic { font-size: 0.95rem; font-weight: 700; color: #ffffff; line-height: 1.3; margin-bottom: 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: #a1a1aa; font-weight: 500; }
.task-time { display: flex; align-items: center; gap: 0.35rem; }
.task-time i { font-size: 0.7rem; }
.task-subject-tag { padding: 0.15rem 0.6rem; border-radius: 9999px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.task-checkboxes { display: flex; gap: 0.75rem; flex-shrink: 0; align-items: center; margin-left: auto; }
.task-check-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.custom-check {
    width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--text-tertiary);
    display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
    transition: all 0.3s var(--ease-smooth);
}
.task-item:hover .custom-check { border-color: var(--indigo-glow); }
.task-item.done .custom-check { background: var(--grad-indigo); border-color: var(--indigo); box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }
.custom-check i { opacity: 0; transition: all 0.2s var(--ease-spring); color: white; transform: scale(0.5); }
.task-item.done .custom-check i { opacity: 1; transform: scale(1); }

.token-task-item { border-left: 3px solid var(--amber); }
.token-task-item:not(.done) { background: rgba(245,158,11,0.04); }
.tt-badge { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--amber-dim); color: var(--amber); font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 99px; margin-right: 0.5rem; border: 1px solid rgba(245,158,11,0.3); }

.tasks-empty { text-align: center; padding: 4rem 1rem; color: #71717a; }
.tasks-empty .nes-icon { font-size: 3rem; color: var(--text-tertiary); margin-bottom: 1rem; opacity: 0.5; }

.sidebar-widget, .sr-schedule-card, .glass-card {
    background: rgba(18, 18, 26, 0.5); backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}
.glass-card:hover { border-color: rgba(255,255,255,0.1); }
.sidebar-widget h4, .sr-schedule-card h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.sr-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border-subtle); font-size: 0.85rem; }
.sr-item:last-child { border-bottom: none; }
.sr-dot  { width: 10px; height: 10px; border-radius: 50%; background: var(--indigo-light); box-shadow: 0 0 10px var(--indigo-glow); flex-shrink: 0; }
.sr-topic { flex: 1; font-weight: 500; }
.sr-date  { color: var(--text-secondary); font-size: 0.75rem; background: var(--bg-card-2); padding: 0.2rem 0.5rem; border-radius: 4px; }

/* ─────────────────────────────────────────────
   10. NOTES / EVIDENCE
───────────────────────────────────────────── */
.notes-camera-cta {
    background: rgba(99, 102, 241, 0.05); border: 2px dashed var(--border-focus); backdrop-filter: blur(12px);
    border-radius: var(--radius-lg); padding: 2rem; display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.ncc-icon { width: 80px; height: 80px; background: var(--indigo-dim); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--indigo-light); flex-shrink: 0; }
.ncc-content { flex: 1; min-width: 200px; }
.ncc-title   { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.5rem; }
.ncc-desc    { color: var(--text-secondary); font-size: 0.9rem; }
.ncc-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.ncc-btn { padding: 0.75rem 1.25rem; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9rem; border: 1px solid; display: flex; align-items: center; gap: 0.5rem; }
.ncc-camera  { background: var(--text-primary); color: var(--bg-base); border-color: transparent; }
.ncc-gallery { background: var(--bg-card-2); border-color: var(--border); color: var(--text-primary); }
.camera-input-hidden { display: none; }

.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.note-card {
    background: var(--bg-card); border: 1px solid var(--border); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
    transition: transform 0.3s var(--ease-spring), border-color 0.25s, box-shadow 0.3s;
}
.note-card:hover { transform: translateY(-6px); border-color: var(--border-focus); box-shadow: var(--shadow-elevated); }
.hn-image-container { aspect-ratio: 4/3; background: #000; position: relative; overflow: hidden; }
.hn-image-container img { width: 100%; height: 100%; object-fit: cover; }
.hn-card-footer { padding: 1rem; background: var(--bg-card-2); }
.pdf-thumb { width: 100%; height: 100%; background: var(--ruby-dim); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.pdf-thumb i    { font-size: 2.5rem; color: var(--ruby); }
.pdf-thumb span { font-size: 0.75rem; color: var(--text-secondary); text-align: center; padding: 0 0.5rem; word-break: break-all; }
.pdf-thumb.large { height: 200px; }

.note-status-badge {
    position: absolute; top: 0.5rem; right: 0.5rem; padding: 0.2rem 0.6rem; border-radius: 99px;
    font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; gap: 0.3rem; backdrop-filter: blur(6px);
}
.badge-amber   { background: var(--amber-dim);   color: var(--amber);   border: 1px solid rgba(245,158,11,0.3); }
.badge-emerald { background: var(--emerald-dim); color: var(--emerald); border: 1px solid rgba(16,185,129,0.3); }
.badge-ruby    { background: var(--ruby-dim);    color: var(--ruby);    border: 1px solid rgba(239,68,68,0.3);  }

/* ─────────────────────────────────────────────
   11. TIMER SYSTEM
───────────────────────────────────────────── */
.timer-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; overflow: hidden; }
.pomodoro-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: center; backdrop-filter: blur(16px); }

.pomo-mode-btns { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.pmb { padding: 0.5rem 1.25rem; border-radius: 99px; font-size: 0.85rem; font-weight: 600; background: var(--bg-card-2); color: var(--text-secondary); border: 1px solid var(--border); }
.pmb.active { background: var(--text-primary); color: var(--bg-base); border-color: transparent; }

.pomo-subject-row  { margin: 1.5rem 0; color: var(--text-secondary); font-size: 0.9rem; }

.pomo-ring-wrap { position: relative; width: 260px; height: 260px; margin: 2rem auto; }
.pomo-svg     { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 0 10px rgba(99,102,241,0.2)); }
.pomo-ring-bg { fill: none; stroke: var(--bg-card-2); stroke-width: 8; }
.pomo-ring-fill { fill: none; stroke: var(--indigo-light); stroke-width: 8; stroke-dasharray: 597; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; stroke-linecap: round; }
.pomo-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pomo-time-display { font-family: var(--font-mono); font-size: 3.75rem; font-weight: 700; line-height: 1; letter-spacing: -2px; }

.pomo-controls { display: flex; gap: 1.5rem; justify-content: center; align-items: center; margin-top: 1rem; }
.pomo-ctrl-btn {
    width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--bg-card-2); color: var(--text-secondary); font-size: 1.1rem;
    transition: all 0.25s var(--ease-smooth);
}
.pomo-ctrl-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: rgba(255,255,255,0.12); }
.pomo-ctrl-btn:active { transform: scale(0.9); }
.pomo-main-btn {
    width: 70px; height: 70px; border-radius: 50%; background: var(--grad-indigo);
    color: white; font-size: 1.5rem; box-shadow: var(--shadow-glow);
    transition: all 0.3s var(--ease-smooth);
}
.pomo-main-btn:hover { transform: scale(1.06); }
.pomo-main-btn:active { transform: scale(0.94); }
.pomo-main-btn.running { background: linear-gradient(135deg, var(--ruby), #c62828); box-shadow: 0 0 24px rgba(239,68,68,0.35); }

.fm-trigger-btn { background: transparent; border: 1px solid var(--border-focus); color: var(--indigo-light); padding: 0.75rem 1.5rem; border-radius: 99px; font-weight: 600; font-size: 0.85rem; }
.fm-trigger-btn:hover { background: var(--indigo-dim); }

.study-log-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; backdrop-filter: blur(16px); }
.study-log-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.pomo-stats-row { text-align: center; }
.pomo-stat-val  { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--emerald); display: block; line-height: 1; }
.pomo-stat-lbl  { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }

/* ─────────────────────────────────────────────
   12. JOURNAL & CONFIDENCE
───────────────────────────────────────────── */
.cj-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; backdrop-filter: blur(16px); }
.cj-section-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.confidence-rating-row { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.conf-current-label { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--indigo-light); min-width: 80px; }
.conf-scale { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.conf-dot {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--bg-card-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; cursor: pointer; transition: 0.2s;
}
.conf-dot:hover  { border-color: var(--text-tertiary); background: var(--border-subtle); }
.conf-dot.selected { background: var(--text-primary); color: var(--bg-base); border-color: transparent; transform: scale(1.1); }

.cj-questions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.cj-q-block   { display: flex; flex-direction: column; }
.cj-q-label   { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }
.cj-textarea  {
    width: 100%; background: var(--bg-card-2); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.25rem; color: var(--text-primary);
    font-family: var(--font-sans); font-size: 0.95rem; resize: vertical; min-height: 120px; outline: none;
}
.cj-textarea:focus { border-color: var(--border-focus); background: var(--bg-base); }
.cj-save-btn { background: var(--text-primary); color: var(--bg-base); padding: 1rem 2rem; border-radius: 99px; font-weight: 700; font-size: 1rem; }
.cj-save-btn:hover  { opacity: 0.9; }
.cj-save-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─────────────────────────────────────────────
   13. TOKEN EXCHANGE / REWARDS
───────────────────────────────────────────── */
.token-balance-card {
    background: var(--amber-dim); border: 1px solid rgba(245,158,11,0.3);
    padding: 2rem 2.5rem; border-radius: var(--radius-lg); display: flex; align-items: center; gap: 1.5rem;
}
.tbc-icon { font-size: 2.5rem; color: var(--amber); }
.tbc-val  { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--amber); line-height: 1; }
.tbc-lbl  { color: var(--amber); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

.bounty-rewards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.reward-card {
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; text-align: center;
    display: flex; flex-direction: column; gap: 0.75rem;
    transition: all 0.3s var(--ease-smooth);
}
.reward-card:hover { transform: translateY(-5px); border-color: var(--border-focus); box-shadow: var(--shadow-elevated); }
.rc-icon {
    width: 56px; height: 56px; border-radius: 16px; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto;
    transition: transform 0.3s var(--ease-spring);
}
.reward-card:hover .rc-icon { transform: scale(1.1) rotate(-3deg); }
.rc-icon.ruby    { background: var(--ruby-dim);    color: var(--ruby);    }
.rc-icon.indigo  { background: var(--indigo-dim);  color: var(--indigo-light); }
.rc-icon.emerald { background: var(--emerald-dim); color: var(--emerald); }
.rc-icon.amber   { background: var(--amber-dim);   color: var(--amber);   }
.rc-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.rc-cost { font-size: 0.85rem; color: var(--amber); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 0.35rem; }
.rc-btn {
    background: var(--bg-card-2); border: 1px solid var(--border); padding: 0.6rem 1.25rem;
    border-radius: 99px; font-weight: 700; font-size: 0.85rem; color: var(--text-primary); margin-top: auto;
    transition: all 0.25s var(--ease-smooth);
}
.rc-btn:hover { background: var(--text-primary); color: var(--bg-base); border-color: transparent; transform: translateY(-1px); }
.rc-btn:active { transform: scale(0.95); }
.rc-btn.ruby:hover { background: var(--ruby); border-color: transparent; color: white; }

.add-reward-card {
    background: var(--bg-card); border: 2px dashed var(--border-focus); backdrop-filter: blur(8px);
    border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; cursor: pointer; color: var(--indigo-light); font-weight: 600; transition: background 0.2s;
}
.add-reward-card:hover { background: var(--indigo-dim); }
.add-reward-card i { font-size: 2rem; }

/* ─────────────────────────────────────────────
   14. GUARDIAN VIEWS
───────────────────────────────────────────── */
.vq-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.vq-header h2 { font-family: var(--font-display); font-size: 1.75rem; }
.vq-filter-row { display: flex; gap: 0.5rem; background: var(--bg-card-2); padding: 0.4rem; border-radius: 99px; border: 1px solid var(--border); }
.vq-filter-btn { padding: 0.5rem 1.25rem; border-radius: 99px; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.vq-filter-btn.active { background: var(--text-primary); color: var(--bg-base); }

.verification-gallery { display: flex; flex-direction: column; gap: 1.25rem; }
.verify-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 280px 1fr; transition: border-color 0.2s; backdrop-filter: blur(8px); }
.verify-card:hover { border-color: var(--border-focus); }
.vc-image { position: relative; background: var(--bg-card-2); overflow: hidden; }
.vc-image img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; max-height: 240px; }
.vc-info { padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.vc-meta { display: flex; flex-direction: column; gap: 0.25rem; }
.vc-subj { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.vc-date { font-size: 0.8rem; color: var(--text-secondary); }
.vc-desc { font-size: 0.9rem; color: var(--text-secondary); font-style: italic; }
.vc-hash-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.vc-hash-label { font-size: 0.8rem; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; }
.vc-hash-val { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--emerald); background: var(--bg-base); border: 1px solid var(--emerald); border-radius: var(--radius-sm); padding: 0.2rem 0.75rem; letter-spacing: 0.15em; }
.vc-actions { display: flex; gap: 0.75rem; margin-top: auto; flex-wrap: wrap; }
.vc-approve, .vc-reject { padding: 0.6rem 1.25rem; border-radius: var(--radius-md); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.vc-approve { background: var(--emerald-dim); color: var(--emerald); border: 1px solid rgba(16,185,129,0.3); }
.vc-approve:hover { background: var(--emerald); color: var(--bg-base); }
.vc-reject  { background: var(--ruby-dim);    color: var(--ruby);    border: 1px solid rgba(239,68,68,0.3);  }
.vc-reject:hover  { background: var(--ruby);    color: white; }
.vc-status-row { margin-top: auto; }

.vq-empty { padding: 4rem 2rem; text-align: center; width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.vq-empty i  { font-size: 3rem; color: var(--emerald); margin-bottom: 1rem; }
.vq-empty h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.vq-empty p  { font-size: 0.9rem; color: var(--text-tertiary); }

.guardian-daily-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }
.gdg-card { background: var(--bg-card); border: 1px solid var(--border); padding: 1.75rem; border-radius: var(--radius-lg); text-align: center; backdrop-filter: blur(8px); }
.gdg-icon { font-size: 2rem; margin-bottom: 1rem; }
.gdg-val  { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; display: block; line-height: 1; margin-bottom: 0.5rem; }
.gdg-lbl  { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.gdg-val.amber  { color: var(--amber); }
.gdg-val.indigo { color: var(--indigo-light); }
.gdg-val.emerald{ color: var(--emerald); }
.gdg-val.ruby   { color: var(--ruby); }

.guard-activity-table { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.gat-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 0; }
.gat-row > div { padding: 0.75rem 1rem; font-size: 0.85rem; border-bottom: 1px solid var(--border-subtle); }
.gat-head > div { background: var(--bg-card-2); font-weight: 700; color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.gat-row:last-child > div { border-bottom: none; }
.gat-row:not(.gat-head):hover > div { background: rgba(255,255,255,0.02); }

.guard-economy-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; backdrop-filter: blur(8px); }
.gec-balance { display: flex; align-items: center; gap: 1.5rem; }
.gec-controls { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.guard-input { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem 1rem; color: var(--text-primary); font-family: var(--font-sans); font-size: 0.9rem; outline: none; width: 100%; }
.guard-input:focus { border-color: var(--border-focus); }
input.guard-input[type="number"] { width: 120px; }
input.guard-input[type="date"]   { width: 160px; color-scheme: dark; }

.guard-btn-add, .guard-btn-sub, .guard-btn-view { padding: 0.75rem 1.25rem; border-radius: var(--radius-md); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 0.4rem; }
.guard-btn-add  { background: var(--emerald-dim); color: var(--emerald); border: 1px solid rgba(16,185,129,0.3); }
.guard-btn-add:hover  { background: var(--emerald); color: var(--bg-base); }
.guard-btn-sub  { background: var(--ruby-dim);    color: var(--ruby);    border: 1px solid rgba(239,68,68,0.3); }
.guard-btn-sub:hover  { background: var(--ruby);    color: white; }
.guard-btn-view { background: var(--indigo-dim);  color: var(--indigo-light); border: 1px solid var(--border-focus); }
.guard-btn-view:hover { background: var(--indigo);  color: white; }

.guard-task-form { background: var(--bg-card); border: 1px solid var(--border-focus); border-radius: var(--radius-lg); padding: 2rem; backdrop-filter: blur(8px); }
.guard-task-form h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; color: var(--amber); }
.gtf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.gtf-field { display: flex; flex-direction: column; gap: 0.4rem; }
.gtf-field label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.guard-assign-btn { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); padding: 0.875rem 2rem; border-radius: var(--radius-md); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.guard-assign-btn:hover { background: var(--amber); color: var(--bg-base); }

.token-tasks-list { display: flex; flex-direction: column; gap: 0.75rem; }
.tt-manager-item { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; transition: all 0.2s var(--ease-smooth); }
.tt-manager-item:hover { border-color: var(--border-focus); transform: translateX(2px); }
.tt-manager-item.tt-done { border-left-color: var(--emerald); opacity: 0.65; }
.tt-manager-item.tt-done:hover { opacity: 0.9; }
.ttmi-left { flex: 1; }
.ttmi-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ttmi-done-badge { background: var(--emerald-dim); color: var(--emerald); font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 99px; font-weight: 700; border: 1px solid rgba(16,185,129,0.3); }
.ttmi-pending-badge { background: var(--amber-dim); color: var(--amber); font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 99px; font-weight: 700; border: 1px solid rgba(245,158,11,0.3); }
.ttmi-meta { font-size: 0.8rem; color: var(--text-secondary); }
.ttmi-desc { font-size: 0.82rem; color: var(--text-tertiary); margin-top: 0.25rem; font-style: italic; }

.guard-log-picker { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.guard-log-empty { padding: 4rem 2rem; text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-secondary); }
.guard-log-empty i  { font-size: 3rem; color: var(--text-tertiary); margin-bottom: 1rem; display: block; }
.guard-log-wrap     { display: flex; flex-direction: column; gap: 1.5rem; }
.guard-log-hdr { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.guard-log-hdr h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.guard-hash-pill { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--emerald); background: var(--bg-base); border: 1px solid var(--emerald); border-radius: var(--radius-sm); padding: 0.3rem 1rem; letter-spacing: 0.15em; }
.guard-log-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 2rem; backdrop-filter: blur(8px); }
.guard-log-section h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); }
.gls-task { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border-subtle); font-size: 0.9rem; font-weight: 500; }
.gls-task:last-child { border-bottom: none; }
.gls-task i { color: var(--text-tertiary); margin-top: 2px; flex-shrink: 0; }
.gls-task.done i { color: var(--emerald); }
.gls-task.done   { color: var(--text-tertiary); text-decoration: line-through; }

.guard-journal-view { background: var(--bg-card-2); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.gjv-conf { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--indigo-light); }
.gjv-row  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.gjv-row strong { color: var(--text-primary); }

.guard-analytics-detail { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; backdrop-filter: blur(8px); }

/* ─────────────────────────────────────────────
   15. MODALS, PIN & OVERLAYS (NEW PRACTICE HUB STYLE)
───────────────────────────────────────────── */
.full-modal-overlay {
    position: fixed; inset: 0; background: rgba(2,2,4,0.88);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    z-index: 9999; display: flex; flex-direction: column;
    opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease-smooth);
}
.full-modal-overlay.visible { opacity: 1; pointer-events: all; }

/* Bottom Sheet for Mobile Menus/Forms */
.bottom-sheet {
    background: var(--bg-card); border-top: 1px solid var(--border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 2rem;
    width: 100%; transform: translateY(100%); transition: transform 0.45s var(--ease-out);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}
.full-modal-overlay.visible .bottom-sheet { transform: translateY(0); }

/* Mobile More Menu - Library link */
.more-menu-external-link {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.875rem 1.25rem; border-radius: var(--radius-md);
    font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
    cursor: pointer; border: 1px solid transparent;
    transition: all 0.25s var(--ease-smooth);
    text-decoration: none; width: 100%; margin-bottom: 0.25rem;
}
.more-menu-external-link i { font-size: 1.1rem; width: 24px; text-align: center; }
.more-menu-external-link:hover { color: var(--emerald); background: var(--emerald-dim); border-color: rgba(16,185,129,0.15); }
.more-menu-external-link:active { transform: scale(0.97); }

/* Center Modal for Desktop/Pin */
.full-modal-content {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem; width: 90%; max-width: 500px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6); transform: scale(0.95); transition: 0.3s;
}
.full-modal-overlay.visible .full-modal-content { transform: scale(1); }

.fm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-subtle); }
.fm-header h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.fm-close { font-size: 1.5rem; color: var(--text-secondary); }
.fm-close:hover { color: var(--text-primary); }

/* Guardian Pin Overlay Style */
.guardian-pin-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2.5rem; width: 90%; max-width: 400px;
    text-align: center; box-shadow: 0 25px 60px rgba(0,0,0,0.6); transform: scale(0.95); transition: 0.3s;
}
.full-modal-overlay.visible .guardian-pin-card { transform: scale(1); }

.pin-card-icon { font-size: 2.5rem; color: var(--indigo-light); margin-bottom: 1rem; }
.pin-card-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.25rem; }
.pin-card-sub   { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 2rem; }
.pin-dots-row   { display: flex; gap: 1rem; justify-content: center; margin: 1.5rem 0; }
.pin-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--text-tertiary); transition: all 0.2s; }
.pin-dot.filled { background: var(--indigo-light); border-color: var(--indigo-light); box-shadow: 0 0 10px var(--indigo-glow); }

.pin-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.pin-key { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; font-size: 1.25rem; font-weight: 700; color: white; transition: all 0.15s; }
.pin-key:hover  { background: var(--bg-card); border-color: var(--border-focus); }
.pin-key:active { transform: scale(0.94); }
.pin-enter { background: var(--indigo-dim); color: var(--indigo-light); border-color: var(--border-focus); }
.pin-error-msg  { color: var(--ruby); font-size: 0.85rem; font-weight: 600; min-height: 24px; margin-top: 1rem; }
.pin-back-link  { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.75rem; text-decoration: underline; display: block; }

/* ─────────────────────────────────────────────
   16. IMMERSIVE FOCUS MODE
───────────────────────────────────────────── */
.focus-mode-overlay {
    position: fixed; inset: 0; background: #020204;
    z-index: 9999; display: flex; flex-direction: column;
    justify-content: space-between; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.focus-mode-overlay.visible { opacity: 1; pointer-events: all; }
.fm-top-bar, .fm-bottom-bar { padding: 2.5rem; display: flex; justify-content: space-between; align-items: center; }
.fm-subject    { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-secondary); }
.fm-exit-btn   { color: var(--text-secondary); font-size: 1rem; font-weight: 600; border: 1px solid var(--border); padding: 0.75rem 1.5rem; border-radius: 99px; }
.fm-exit-btn:hover { background: rgba(255,255,255,0.05); color: white; }
.fm-center     { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fm-time-display { font-family: var(--font-mono); font-size: 12vw; font-weight: 800; color: var(--text-primary); line-height: 1; letter-spacing: -5px; }
.fm-controls   { display: flex; gap: 2rem; align-items: center; margin-top: 3rem; }
.fm-main-btn   { width: 90px; height: 90px; border-radius: 50%; background: white; font-size: 2rem; color: black; }
.fm-ctrl-btn   { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--border); color: var(--text-secondary); font-size: 1.25rem; }
.fm-ctrl-btn:hover { background: rgba(255,255,255,0.05); color: white; }
.fm-quote      { color: var(--text-tertiary); font-style: italic; font-size: 1.1rem; }
.fm-ambience-panel { display: flex; align-items: center; gap: 1rem; }
.fm-amb-btn    { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); color: var(--text-secondary); }
.fm-amb-btn.active { background: white; color: black; border-color: white; }

/* ─────────────────────────────────────────────
   17. LIGHTBOX & TOASTS
───────────────────────────────────────────── */
.image-lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.93);
    z-index: 10000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.image-lightbox.visible  { opacity: 1; pointer-events: all; }
.lightbox-close { position: absolute; top: 2rem; right: 2rem; font-size: 2rem; color: white; }
.lightbox-close:hover { opacity: 0.7; }
.lightbox-img-wrap img  { max-width: 92vw; max-height: 90vh; border-radius: var(--radius-md); }

.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; max-width: 360px; pointer-events: none; }
.toast {
    background: var(--bg-card-2); border: 1px solid var(--border);
    padding: 1rem 1.25rem; border-radius: var(--radius-md);
    display: flex; align-items: center; gap: 0.875rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4); pointer-events: all;
}

/* ─────────────────────────────────────────────
   18. RESPONSIVE DESIGN (Bottom Nav Integration)
───────────────────────────────────────────── */
@media (max-width: 1200px) {
    .tasks-dashboard-layout { grid-template-columns: 1fr; }
    .timer-layout           { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .daily-code-compact { flex-direction: column; align-items: flex-start; gap: 1rem; position: relative; }
    .dcc-token-badge    { position: absolute; top: 1rem; right: 1rem; margin-left: 0; width: auto; padding: 0.35rem 0.6rem; border-radius: var(--radius-sm); font-size: 1rem; justify-content: center; }
    .dcc-token-lbl      { display: none; }
    .dcc-pills          { flex-wrap: wrap; }
    .student-profile-card-inline { display: none; }
    .verify-card { grid-template-columns: 1fr; }
    .vc-image img { max-height: 200px; }
}

@media (max-width: 768px) {
    /* Hide Desktop Sidebar, Show Bottom Nav */
    .sidebar { display: none; }
    .bottom-nav { display: flex; }
    
    /* Adjust Main Content for Bottom Nav — prevent overlap */
    .main-content {
        margin-left: 0;
        padding-bottom: calc(var(--bottom-nav-height) + 1.5rem + env(safe-area-inset-bottom));
    }
    .top-header { padding: 0 1.25rem; justify-content: center; }
    .hub-title { display: flex; position: absolute; left: 1.25rem; font-size: 1rem; }
    .header-status { position: absolute; right: 1.25rem; }
    .nav-user-pill span { display: none; }
    .nav-guardian-badge { padding: 0.3rem 0.6rem; font-size: 0.7rem; }
    
    /* Layout Adjustments — prevent overflow */
    .container    { padding: 0 1rem; }
    .page-section { padding: 1.5rem 0 2rem; }
    .day-navigator-card { padding: 1rem 1.25rem; }
    .day-date-label     { font-size: 1.35rem; }
    .day-nav-arrow      { width: 40px; height: 40px; font-size: 1rem; }
    .day-nav-center     { padding: 0 0.75rem; }
    .dcc-code           { font-size: 1.1rem; padding: 0.35rem 0.875rem; min-width: 90px; }
    .daily-code-compact { padding: 0.875rem 1.25rem; gap: 1rem; }
    .cj-questions       { grid-template-columns: 1fr; }
    .fm-time-display    { font-size: 20vw; }
    .fm-top-bar, .fm-bottom-bar { flex-direction: column; gap: 1.5rem; text-align: center; }
    .notes-camera-cta   { flex-direction: column; padding: 1.25rem; text-align: center; }
    .ncc-actions        { justify-content: center; width: 100%; }
    .ncc-btn            { width: 100%; }
    .guard-economy-card { flex-direction: column; align-items: flex-start; }
    .gat-row { grid-template-columns: 1fr 1fr; }
    .gat-row > div:nth-child(n+3) { display: none; }
    .guard-task-form .gtf-grid { grid-template-columns: 1fr; }

    /* Tasks overflow fix */
    .task-topic { white-space: normal; word-break: break-word; }
    .task-item { gap: 1rem; padding: 1rem; }
    .task-checkboxes { margin-left: 0; }
    .task-meta { flex-wrap: wrap; }
    .task-subject-tag { font-size: 0.6rem; }

    /* Timer layout mobile fix */
    .timer-layout { grid-template-columns: 1fr; overflow: visible; }
    .pomodoro-card { padding: 1.75rem 1.25rem; }
    .pomo-ring-wrap { width: 220px; height: 220px; }
    .pomo-time-display { font-size: 3rem; }
    .pomo-controls { gap: 1rem; }

    /* Student profile mobile */
    .student-profile-card-inline { padding: 1.5rem 1.25rem; gap: 1.25rem; border-radius: var(--radius-lg); }
    .spc-avatar { width: 60px; height: 60px; border-radius: 16px; font-size: 1.5rem; }
    .spc-stat { padding: 0.5rem 0.75rem; }
    .spc-stat-val { font-size: 1.6rem; }
    .spc-stat-lbl { font-size: 0.7rem; }
    
    /* Token balance mobile */
    .token-balance-card { padding: 1.25rem 1.5rem; }
    .dcc-token-badge { font-size: 0.85rem; padding: 0.4rem 0.875rem; }

    /* Section headers mobile */
    .section-header-left h2 { font-size: 1.4rem; }
    .section-header-left h2 i { font-size: 1.2rem; }

    /* Rewards grid mobile */
    .bounty-rewards-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
    .reward-card { padding: 1.25rem 1rem; }
    
    /* Adjust Toast Position for Bottom Nav */
    .toast-container { bottom: calc(var(--bottom-nav-height) + 1.5rem); left: 1rem; right: 1rem; align-items: center; max-width: none; }
    .toast { width: 100%; max-width: 400px; }
}

@media (max-width: 480px) {
    .day-date-label { font-size: 1.15rem; }
    .spc-stat-val   { font-size: 1.4rem; }
    .spc-stat { padding: 0.35rem 0.5rem; }
    .pomo-ring-wrap { width: 200px; height: 200px; }
    .pomo-time-display { font-size: 2.75rem; }
    .dcc-token-badge { font-size: 0.78rem; }
    .daily-code-compact { padding: 0.75rem 1rem; }
    .container { padding: 0 0.75rem; }
    .section-header-left h2 { font-size: 1.25rem; }
    .bounty-rewards-grid { grid-template-columns: 1fr 1fr; }
    .global-day-navigator { padding: 1rem 0; }
    .notes-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CURRENT AFFAIRS STYLES
========================================================= */
.ca-article-card {
    background: var(--bg-card-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ca-article-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1), 0 4px 6px -2px rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.ca-article-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
    border-left: 4px solid #3b82f6;
    padding-left: 0.75rem;
}

.ca-article-context {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ca-article-context ul, .ca-article-context ol {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.ca-article-context li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.ca-article-context li::marker {
    color: #3b82f6;
}

.ca-article-context p {
    margin-bottom: 0.5rem;
}

.ca-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 99px; /* Pill shape */
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.ca-read-more:hover {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}