/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== Light Theme (default) ========== */
:root {
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --accent-soft: rgba(220, 38, 38, 0.06);
    --accent-glow: rgba(220, 38, 38, 0.12);

    --bg: #f5f5f5;
    --bg-surface: rgba(255, 255, 255, 0.72);
    --bg-elevated: rgba(255, 255, 255, 0.5);
    --bg-header: rgba(255, 255, 255, 0.72);
    --bg-dot: rgba(0, 0, 0, 0.04);

    --text: #171717;
    --text-secondary: #525252;
    --text-muted: #a3a3a3;

    --border: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.04);

    --glass-blur: blur(20px) saturate(180%);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* ========== Dark Theme ========== */
[data-theme="dark"] {
    --accent: #ef4444;
    --accent-hover: #f87171;
    --accent-soft: rgba(239, 68, 68, 0.08);
    --accent-glow: rgba(239, 68, 68, 0.15);

    --bg: #09090b;
    --bg-surface: rgba(255, 255, 255, 0.04);
    --bg-elevated: rgba(255, 255, 255, 0.06);
    --bg-header: rgba(18, 18, 20, 0.8);
    --bg-dot: rgba(255, 255, 255, 0.03);

    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    --border: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);

    --glass-blur: blur(20px) saturate(180%);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body {
    background: var(--bg);
    color: var(--text);
    animation: pageIn 0.3s ease;
}

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

/* ========== Header ========== */
.header {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1080px;
    z-index: 1000;
    height: 52px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 20px;
    background: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.header.hidden {
    transform: translateX(-50%) translateY(calc(-100% - 12px));
}

.header-pull {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 48px;
    height: 6px;
    border-radius: 0 0 6px 6px;
    background: var(--border);
    opacity: 0;
    transition: opacity 0.3s ease, height 0.2s ease;
    cursor: pointer;
}

.header.hidden ~ .header-pull,
.header-pull.visible {
    opacity: 0.4;
}

.header-pull:hover {
    opacity: 0.8;
    height: 8px;
}

.header-brand {
    font-family: 'Righteous', cursive;
    font-size: 1.35rem;
    color: var(--accent);
    letter-spacing: 0.02em;
    justify-self: start;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.header-nav a:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.header-nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    overflow: hidden;
}

.header-avatar:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Hamburger - hidden on desktop */
.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.header-hamburger:hover {
    background: var(--bg-elevated);
}

.header-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header-hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Nav drawer - mobile only */
.nav-drawer-overlay,
.nav-drawer {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px var(--accent-glow);
}

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

.btn-ghost {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--bg-elevated);
    transform: translateY(-1px);
}

/* ========== User Menu (Dropdown + Drawer) ========== */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}

.user-dropdown-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
}

.user-dropdown-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.user-dropdown-sep {
    height: 1px;
    background: var(--border);
    margin: 0 12px;
}

.user-dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: background 0.15s ease, color 0.15s ease;
}

.user-dropdown-item:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.user-dropdown-danger {
    color: var(--accent);
}

.user-dropdown-danger:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Drawer + overlay: hidden by default on all screens */
.user-drawer-overlay,
.user-drawer {
    display: none;
}

@media (max-width: 640px) {
    .user-dropdown {
        display: none !important;
    }

    .user-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .user-drawer-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .user-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1002;
        max-height: 60vh;
        background: var(--bg-header);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-top: 1px solid var(--border);
        border-radius: 20px 20px 0 0;
        padding: 20px 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
        transform: translate3d(0, 100%, 0);
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    }

    .user-drawer.active {
        transform: translate3d(0, 0, 0);
        visibility: visible;
    }

    .user-drawer-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 8px;
    }

    .user-drawer-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .user-drawer-name {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text);
    }

    .user-drawer-nav {
        display: flex;
        flex-direction: column;
    }

    .user-drawer-nav a {
        padding: 14px 4px;
        font-size: 0.9375rem;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border-subtle);
        transition: color 0.15s ease;
    }

    .user-drawer-nav a:hover {
        color: var(--text);
    }

    .user-drawer-footer {
        flex: 1;
    }

    .user-drawer-logout {
        display: block;
        text-align: center;
        padding: 14px;
        margin-top: 12px;
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--accent);
        border-radius: 12px;
        background: var(--accent-soft);
        transition: background 0.15s ease;
    }

    .user-drawer-logout:hover {
        background: var(--accent-glow);
    }
}

@media (min-width: 641px) {
    .user-drawer,
    .user-drawer-overlay {
        display: none !important;
    }
}

/* ========== Theme Toggle ========== */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
    font-size: 1.125rem;
}

.theme-toggle:hover {
    color: var(--text);
    background: var(--accent-soft);
}

/* ========== Main Content ========== */
.main {
    padding-top: 56px;
}

/* ========== Hero Section ========== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 85vh;
    padding: 120px 24px 80px;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, var(--accent-soft) 0%, transparent 55%);
    pointer-events: none;
}

/* Eye element */
.hero-eye {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    animation: heroEyeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
    z-index: 3;
    cursor: pointer;
}

.hero-eye-pupil {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform 0.15s ease;
}

@keyframes heroEyeIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.hero h1 {
    font-family: 'Righteous', cursive;
    font-size: clamp(3.5rem, 8vw, 6rem);
    letter-spacing: 0.02em;
    line-height: 1;
    opacity: 0;
    animation: heroTextIn 0.6s ease 0.5s forwards;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 460px;
    line-height: 1.7;
    opacity: 0;
    animation: heroTextIn 0.6s ease 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    opacity: 0;
}

.hero-actions.visible {
    animation: heroTextIn 0.6s ease forwards;
}

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

.hero-title {
    opacity: 0;
}

.hero-title.visible {
    animation: heroTextIn 0.6s ease forwards;
}

.hero-sub {
    opacity: 0;
}

.hero-sub.visible {
    animation: heroTextIn 0.6s ease forwards;
}

/* Floating cards */
.hero-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.hero-card.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-card.looking {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.hero-card[data-pos="left-top"] { top: 22%; left: 12%; }
.hero-card[data-pos="right-top"] { top: 22%; right: 12%; }
.hero-card[data-pos="left-bottom"] { bottom: 28%; left: 12%; }
.hero-card[data-pos="right-bottom"] { bottom: 28%; right: 12%; }

.hero-card-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.hero-card-emoji {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hero-card-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: block;
}

.hero-card-desc {
    font-size: 0.6875rem;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
}

/* Eye pulse after sequence */
.hero-eye.pulse {
    animation: eyePulse 2s ease-in-out infinite;
}

@keyframes eyePulse {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    50% { box-shadow: 0 0 24px 4px var(--accent-glow); }
}


/* ========== Commands Page ========== */
.commands-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.commands-title {
    font-family: 'Righteous', cursive;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 4px;
}

.commands-sub {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 32px;
}

.commands-index {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.commands-index:empty { display: none; }

.commands-index-item {
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.commands-index-item:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
    color: var(--text);
}

.commands-index-count {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.commands-loading {
    display: flex;
    justify-content: center;
    padding: 48px 0;
}

.commands-loading.hidden { display: none; }

.commands-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.commands-list-page {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Accordion sections */
.cmd-section {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.cmd-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}

.cmd-section-header:hover {
    background: var(--bg-elevated);
}

.cmd-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.cmd-section-count {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 10px;
}

.cmd-section-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cmd-section.open .cmd-section-chevron {
    transform: rotate(180deg);
}

.cmd-section-body {
    display: none;
    padding: 0 18px 14px;
}

.cmd-section.open .cmd-section-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.cmd-page-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.cmd-page-item:hover {
    background: var(--bg-elevated);
}

.cmd-page-name {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
}

.cmd-page-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .cmd-section.open .cmd-section-body {
        grid-template-columns: 1fr;
    }

    .commands-page {
        padding: 80px 16px 48px;
    }
}

/* ========== Home Features ========== */
.home-features {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px 48px;
}

.home-features-title {
    font-family: 'Righteous', cursive;
    font-size: 1.75rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 12px;
}

.home-features-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 48px;
}

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

.home-feature {
    padding: 32px 24px;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-feature:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.home-feature-icon {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.home-feature h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.home-feature p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .home-features { padding: 48px 16px 32px; }
    .home-features-grid { grid-template-columns: 1fr; gap: 16px; }
    .home-feature { padding: 24px 20px; }
}

/* ========== Home Detail Sections ========== */
.home-details {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.home-detail-text h2 {
    font-family: 'Righteous', cursive;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 16px;
}

.home-detail-text p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.home-detail-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .home-details { padding: 24px 16px 32px; gap: 48px; }
}

/* ========== Home FAQ ========== */
.home-faq {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.home-faq-title {
    font-family: 'Righteous', cursive;
    font-size: 1.75rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 40px;
}

.home-faq-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-faq-item {
    padding: 24px;
    border-radius: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

.home-faq-item h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.home-faq-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .home-faq { padding: 24px 16px 48px; }
    .home-faq-item { padding: 20px 16px; }
}

/* ========== Guide Page ========== */
.guide-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.guide-title {
    font-family: 'Righteous', cursive;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 8px;
}

.guide-sub {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.guide-toc {
    padding: 24px;
    border-radius: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    margin-bottom: 48px;
}

.guide-toc h2 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.guide-toc ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guide-toc a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

.guide-toc a:hover {
    color: var(--accent);
}

.guide-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-subtle);
}

.guide-section:last-of-type {
    border-bottom: none;
}

.guide-section h2 {
    font-family: 'Righteous', cursive;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 16px;
}

.guide-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 10px;
}

.guide-section p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.guide-section p:last-child {
    margin-bottom: 0;
}

.guide-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.guide-section li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.guide-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

.guide-section li strong {
    color: var(--text);
}

.guide-plans {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.guide-plan {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

.guide-plan-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.guide-plan h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    margin-top: 0;
}

.guide-plan p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .guide-page { padding: 80px 16px 48px; }
    .guide-toc { padding: 20px 16px; }
}

/* ========== Market Page ========== */
.market-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.market-title {
    font-family: 'Righteous', cursive;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 4px;
}

.market-sub {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 32px;
}

.market-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.market-summary-item {
    flex: 1;
    min-width: 120px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.market-summary-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.market-summary-value {
    font-family: 'Righteous', cursive;
    font-size: 1.25rem;
    color: var(--text);
}

.market-summary-value.positive { color: #22c55e; }
.market-summary-value.negative { color: #ef4444; }

.market-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.market-card {
    padding: 20px;
    border-radius: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease;
}

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

.market-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.market-card-ticker {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.market-card-name {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.market-card-sector {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    white-space: nowrap;
}

.market-card-chart {
    height: 60px;
    width: 100%;
}

.market-card-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.market-card-current {
    font-family: 'Righteous', cursive;
    font-size: 1.375rem;
    color: var(--text);
}

.market-card-change {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.market-card-change.positive {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.market-card-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.market-card-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .market-page { padding: 80px 16px 48px; }
    .market-grid { grid-template-columns: 1fr; }
    .market-summary { gap: 8px; }
    .market-summary-item { padding: 12px 16px; }
}

/* ========== Footer ========== */
.footer {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    max-width: 900px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-sep {
    color: var(--text-muted);
    opacity: 0.3;
}

/* ========== Ad Slots ========== */
.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 32px auto;
    max-width: 728px;
    overflow: hidden;
    position: relative;
    background: repeating-linear-gradient(
        45deg,
        rgba(139, 92, 246, 0.06),
        rgba(139, 92, 246, 0.06) 10px,
        rgba(139, 92, 246, 0.03) 10px,
        rgba(139, 92, 246, 0.03) 20px
    );
    border: 1px dashed rgba(139, 92, 246, 0.2);
}

.ad-slot-banner {
    width: 100%;
    height: 90px;
}

.ad-slot-rect {
    width: 100%;
    max-width: 336px;
    height: 280px;
}

.ad-slot-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(139, 92, 246, 0.4);
}

@media (max-width: 768px) {
    .ad-slot {
        margin: 0 auto;
    }

    .ad-slot-banner {
        height: 60px;
    }

    .ad-slot-rect {
        max-width: 100%;
        height: 250px;
    }
}

/* ========== Legal Pages ========== */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 48px;
}

.legal-page h1 {
    font-family: 'Righteous', cursive;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 4px;
}

.legal-updated {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.legal-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-section ul {
    padding-left: 20px;
    margin: 0;
}

.legal-section li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}

.legal-section li strong {
    color: var(--text);
}

.legal-section a {
    color: var(--accent);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 60px 16px 32px;
    }

    .legal-page h1 {
        font-size: 1.5rem;
    }
}

/* Docs page */
.docs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 32px;
    padding: 12px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

.docs-nav a {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.docs-nav a:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.docs-block {
    margin-top: 16px;
}

.docs-block h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.docs-code {
    margin: 8px 0;
    padding: 16px;
    border-radius: 10px;
    background: #111115;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #e4e4e7;
}

[data-theme="light"] .docs-code {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
}

.docs-code code {
    font-family: inherit;
    font-size: inherit;
}

.docs-code-inline {
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-elevated);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
    color: var(--accent);
}

.docs-table-wrap {
    overflow-x: auto;
    margin: 8px 0;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.docs-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border);
}

.docs-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.docs-table td code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text);
}

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

.docs-table tbody tr:hover {
    background: var(--bg-elevated);
}

/* ========== Global Toast ========== */
.dash-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 400;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
}

.dash-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    min-width: 220px;
    max-width: 360px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.dash-toast.visible { opacity: 1; transform: translateX(0); }
.dash-toast.leaving { opacity: 0; transform: translateX(40px); }

.dash-toast-icon { width: 18px; height: 18px; flex-shrink: 0; }
.dash-toast-text { flex: 1; line-height: 1.4; }

.dash-toast-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 12px 12px;
    animation: toast-drain linear forwards;
}

@keyframes toast-drain { from { width: 100%; } to { width: 0%; } }

.dash-toast.success { background: #0f1a13; border: 1px solid rgba(22, 163, 74, 0.3); color: #bbf7d0; }
.dash-toast.success .dash-toast-icon { color: #16a34a; }
.dash-toast.success .dash-toast-bar { background: #16a34a; }

.dash-toast.error { background: #1a0f0f; border: 1px solid rgba(239, 68, 68, 0.3); color: #fecaca; }
.dash-toast.error .dash-toast-icon { color: #ef4444; }
.dash-toast.error .dash-toast-bar { background: #ef4444; }

@media (max-width: 768px) {
    .dash-toast-container { right: 12px; left: 12px; bottom: 12px; }
    .dash-toast { max-width: 100%; }
}

/* ========== Global Dialog ========== */
.dash-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dash-dialog-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.dash-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    width: calc(100% - 48px);
    max-width: 380px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.dash-dialog-overlay.active .dash-dialog { transform: scale(1); }

.dash-dialog-body { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.dash-dialog-body strong { color: var(--text); font-weight: 600; }

.dash-dialog-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111115;
    color: var(--text);
    font-size: 0.875rem;
    outline: none;
    box-sizing: border-box;
    margin-top: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .dash-dialog-input { background: #f5f5f5; border-color: rgba(0, 0, 0, 0.1); }
.dash-dialog-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dash-dialog-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111115;
    color: var(--text);
    font-size: 0.875rem;
    outline: none;
    box-sizing: border-box;
    margin-top: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
[data-theme="light"] .dash-dialog-select { background-color: #f5f5f5; border-color: rgba(0, 0, 0, 0.1); }
.dash-dialog-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dash-dialog-select option { background: var(--bg-surface); color: var(--text); }
.dash-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ========== Daily Page ========== */
.daily-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 70vh;
    padding: 120px 24px 60px;
    gap: 24px;
}

.daily-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 48px 40px;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.daily-title {
    font-family: 'Righteous', cursive;
    font-size: 1.5rem;
    color: var(--accent);
}

.daily-sub {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.daily-sep {
    width: 48px;
    height: 1px;
    background: var(--border);
}

.daily-streak {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.streak-number {
    font-family: 'Righteous', cursive;
    font-size: 4rem;
    color: var(--accent);
    line-height: 1;
    transition: transform 0.3s ease;
}

.streak-number.bump {
    animation: streakBump 0.4s ease;
}

@keyframes streakBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.streak-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}


/* ========== Hero Hint ========== */
.hero-hint {
    margin-top: 32px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeInUp 0.6s ease 1.5s forwards;
}

.hero-hint kbd {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

/* ========== Cheatcode Bar ========== */
.cheatcode-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cheatcode-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cheatcode-bar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 9999;
    width: calc(100% - 48px);
    max-width: 520px;
    background: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cheatcode-bar.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.cheatcode-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
}

.cheatcode-input-wrap .prompt {
    color: var(--accent);
    font-family: monospace;
    font-weight: 700;
    font-size: 1rem;
    user-select: none;
}

.cheatcode-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: monospace;
    font-size: 0.9375rem;
    caret-color: var(--accent);
}

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

.cheatcode-feedback {
    padding: 0 16px 12px;
    font-family: monospace;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: none;
}

.cheatcode-feedback.visible {
    display: block;
}

.cheatcode-feedback.success {
    color: #22c55e;
}

.cheatcode-feedback.error {
    color: var(--accent);
}

/* ========== Effects ========== */

/* Matrix rain */
.matrix-canvas {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.matrix-canvas.active {
    opacity: 1;
}

/* Confetti */
.confetti-piece {
    position: fixed;
    z-index: 9001;
    width: 10px;
    height: 10px;
    pointer-events: none;
}

/* Page flip */
body.e-f {
    animation: pageFlip 1.5s ease;
}

@keyframes pageFlip {
    0% { transform: perspective(1000px) rotateY(0); }
    50% { transform: perspective(1000px) rotateY(180deg); }
    100% { transform: perspective(1000px) rotateY(360deg); }
}

/* Redeye glow */
body.e-r .header-brand {
    text-shadow: 0 0 10px var(--accent), 0 0 30px var(--accent), 0 0 60px var(--accent);
    animation: redeyePulse 2s ease-in-out infinite;
}

@keyframes redeyePulse {
    0%, 100% { text-shadow: 0 0 10px var(--accent), 0 0 30px var(--accent); }
    50% { text-shadow: 0 0 20px var(--accent), 0 0 50px var(--accent), 0 0 80px var(--accent); }
}

/* Shake */
body.e-s {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Jumpscare shake */
@keyframes jumpShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-12px, 8px); }
    20% { transform: translate(10px, -10px); }
    30% { transform: translate(-8px, -6px); }
    40% { transform: translate(8px, 10px); }
    50% { transform: translate(-10px, 4px); }
    60% { transform: translate(6px, -8px); }
    70% { transform: translate(-4px, 6px); }
    80% { transform: translate(8px, -4px); }
    90% { transform: translate(-6px, -8px); }
}

/* Invert */
body.e-i {
    filter: invert(1);
    transition: filter 0.3s ease;
}

body.e-i .showcase-block,
body.e-i .daily-card,
body.e-i .header,
body.e-i .cheatcode-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ========== Responsive ========== */
@media (max-width: 640px) {
    .header {
        padding: 0 16px;
        width: calc(100% - 24px);
        grid-template-columns: auto 1fr auto;
    }

    .header-nav {
        display: none;
    }

    .header-hamburger {
        display: flex;
    }

    .nav-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-drawer-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1002;
        max-height: 70vh;
        background: var(--bg-header);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-top: 1px solid var(--border);
        border-radius: 20px 20px 0 0;
        padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
        transform: translate3d(0, 100%, 0);
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    }

    .nav-drawer.active {
        transform: translate3d(0, 0, 0);
        visibility: visible;
    }

    .nav-drawer-links {
        display: flex;
        flex-direction: column;
    }

    .nav-drawer-links a {
        padding: 14px 4px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border-subtle);
        transition: color 0.15s ease;
    }

    .nav-drawer-links a:hover {
        color: var(--text);
    }

    .nav-drawer-sep {
        height: 1px;
        background: var(--border);
        margin: 8px 0;
    }

    .nav-drawer-support {
        display: block;
        text-align: center;
        padding: 14px;
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--accent);
        border-radius: 12px;
        background: var(--accent-soft);
        transition: background 0.15s ease;
    }

    .nav-drawer-support:hover {
        background: var(--accent-glow);
    }

    .hero {
        padding: 60px 16px 40px;
        min-height: 85vh;
        justify-content: flex-start;
        padding-top: 20vh;
    }

    .hero-eye {
        width: 56px;
        height: 56px;
    }

    .hero-eye-pupil {
        width: 20px;
        height: 20px;
    }

    .hero-actions {
        flex-direction: row;
        gap: 10px;
    }

    .hero-actions .btn {
        padding: 10px 24px;
        font-size: 0.8125rem;
    }

    .hero-neural {
        display: none;
    }

    .hero-card {
        padding: 6px 12px;
        gap: 6px;
    }

    .hero-card-icon { font-size: 0.875rem; }
    .hero-card-emoji { width: 18px; height: 18px; }
    .hero-card-text { font-size: 0.6875rem; }
    .hero-card-desc { display: none; }

    .hero-card[data-pos="left-top"] { top: 12%; left: 8%; }
    .hero-card[data-pos="right-top"] { top: 12%; right: 8%; }
    .hero-card[data-pos="left-bottom"] { bottom: 32%; left: 8%; }
    .hero-card[data-pos="right-bottom"] { bottom: 32%; right: 8%; }

    .btn {
        justify-content: center;
    }

    .daily-container {
        padding: 100px 16px 40px;
    }

    .daily-card {
        padding: 32px 24px;
        max-width: 100%;
    }

    .streak-number {
        font-size: 3rem;
    }

}