    /* ── Design Tokens (Discord-inspired dark palette) ── */
    :root {
        --theme_color: #313338;
        --header: #2b2d31;
        --footer: rgba(255,255,255,0.06);
        --button: #2b2d31;
        --accent-blue: #5865f2;
        --accent-rose: #f23f42;
        --accent-blue-hover: #4752c4;
        --radius-pill: 9999px;
        --radius-card: 0.5rem;
        --radius-panel: 0.75rem;
        --transition-default: all 0.2s ease;
        --header-height: 4.5rem;
        /* ── Theme-aware tokens (Discord dark) ── */
        --ac-bg: #313338;
        --ac-surface: rgba(255,255,255,0.06);
        --ac-surface-hover: rgba(255,255,255,0.1);
        --ac-surface-2: rgba(255,255,255,0.08);
        --ac-surface-3: #2b2d31;
        --ac-surface-3h: #35373c;
        --ac-text: #f2f3f5;
        --ac-text-soft: #dcddde;
        --ac-text-muted: #949ba4;
        --ac-text-faint: rgba(255,255,255,0.3);
        --ac-border: #3f4147;
        --ac-border-soft: rgba(255,255,255,0.06);
        --ac-border-strong: #4e5058;
        --ac-shadow: rgba(0,0,0,0.24);
        --ac-overlay: rgba(0,0,0,0.7);
        --ac-glass: rgba(30,31,34,0.75);
        --ac-glass-border: rgba(255,255,255,0.08);
        --ac-invert: 0;
    }

    /* Animated Azure Chronicles mark used by the public header home link. */
    .ac-header-logo {
        --ac-header-logo-color: #DFAF5D;
        --ac-header-logo-duration: 2.2s;
        display: flex;
        width: 44px;
        min-width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        overflow: visible;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 12px;
        background: rgba(255,255,255,.06);
        color: var(--ac-header-logo-color);
        text-decoration: none;
        transition: background-color .18s ease, border-color .18s ease;
    }
    .ac-header-logo:hover {
        border-color: rgba(223,175,93,.38);
        background: rgba(255,255,255,.1);
    }
    .ac-header-logo:focus-visible {
        outline: 2px solid var(--ac-header-logo-color);
        outline-offset: 2px;
    }
    .ac-header-brand-loader {
        display: block;
        width: 30px;
        height: 30px;
        overflow: visible;
    }
    #main_header .ac-header-logo .ac-header-brand-outline {
        fill: none;
        stroke: var(--ac-header-logo-color);
        stroke-width: 8;
        stroke-linejoin: round;
        stroke-linecap: round;
        stroke-dasharray: 900;
        stroke-dashoffset: 900;
        animation: acHeaderBrandTrace var(--ac-header-logo-duration) ease-in-out infinite;
    }
    #main_header .ac-header-logo .ac-header-brand-outline-right { animation-delay: .08s; }
    #main_header .ac-header-logo .ac-header-brand-fill {
        fill: var(--ac-header-logo-color);
        opacity: 0;
        transform: scale(.985);
        transform-box: view-box;
        transform-origin: 188.5px 150.5px;
        animation: acHeaderBrandFillReveal var(--ac-header-logo-duration) ease-in-out infinite;
    }
    @keyframes acHeaderBrandTrace {
        0%, 8% { opacity: 0; stroke-dashoffset: 900; }
        14% { opacity: 1; }
        42% { opacity: 1; stroke-dashoffset: 0; }
        58% { opacity: 0; stroke-dashoffset: 0; }
        100% { opacity: 0; stroke-dashoffset: 900; }
    }
    @keyframes acHeaderBrandFillReveal {
        0%, 34% { opacity: 0; transform: scale(.985); }
        48%, 72% { opacity: 1; transform: scale(1); }
        100% { opacity: 0; transform: scale(1.015); }
    }
    @media (prefers-reduced-motion: reduce) {
        #main_header .ac-header-logo .ac-header-brand-outline,
        #main_header .ac-header-logo .ac-header-brand-fill {
            animation: none;
            opacity: 1;
            stroke-dashoffset: 0;
            transform: none;
        }
    }

    /* ── Light Mode Overrides ── */
    [data-theme="light"] {
        --theme_color: #f0f2f5;
        --header: #ffffff;
        --footer: rgba(0,0,0,0.04);
        --button: #e5e7eb;
        --accent-blue: #5865f2;
        --accent-rose: #f23f42;
        --accent-blue-hover: #4752c4;
        --ac-bg: #f0f2f5;
        --ac-surface: rgba(0,0,0,0.04);
        --ac-surface-hover: rgba(0,0,0,0.07);
        --ac-surface-2: rgba(0,0,0,0.05);
        --ac-surface-3: #ffffff;
        --ac-surface-3h: #f5f5f5;
        --ac-text: #1a1a2e;
        --ac-text-soft: rgba(0,0,0,0.65);
        --ac-text-muted: rgba(0,0,0,0.45);
        --ac-text-faint: rgba(0,0,0,0.3);
        --ac-border: rgba(0,0,0,0.1);
        --ac-border-soft: rgba(0,0,0,0.06);
        --ac-border-strong: rgba(0,0,0,0.18);
        --ac-shadow: rgba(0,0,0,0.08);
        --ac-overlay: rgba(255,255,255,0.9);
        --ac-glass: rgba(255,255,255,0.6);
        --ac-glass-border: rgba(0,0,0,0.08);
        --ac-invert: 1;
    }
    /* ── Light: Body & Global ── */
    [data-theme="light"] body { background-color: var(--ac-bg); color: var(--ac-text); }
    /* ── Light: Scrollbar ── */
    [data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); }
    [data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }
    /* ── Light: Splide Arrows ── */
    [data-theme="light"] .splide__arrow { background: rgba(0,0,0,0.08); }
    [data-theme="light"] .splide__arrow:hover { background: rgba(0,0,0,0.15); }
    [data-theme="light"] .splide__arrow svg { fill: #1a1a2e; }
    /* ── Light: Header ── */
    [data-theme="light"] #main_header { background: var(--header); border-color: var(--ac-border); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
    [data-theme="light"] .ac-header-logo { background: rgba(0,0,0,.035); border-color: rgba(0,0,0,.1); }
    [data-theme="light"] .ac-header-logo:hover { background: rgba(223,175,93,.12); border-color: rgba(184,134,11,.32); }
    [data-theme="light"] #main_header,
    [data-theme="light"] #main_header * { color: var(--ac-text); fill: var(--ac-text); }
    [data-theme="light"] #main_header svg { color: var(--ac-text); fill: currentColor; }
    [data-theme="light"] #main_header .bg-white\/10,
    [data-theme="light"] #main_header [class*="bg-white/10"] { background: rgba(0,0,0,0.06); }
    [data-theme="light"] #main_header .hover\:bg-white\/20:hover,
    [data-theme="light"] #main_header [class*="hover:bg-white/20"]:hover { background: rgba(0,0,0,0.1); }
    [data-theme="light"] #main_header .border-white\/10,
    [data-theme="light"] #main_header [class*="border-white/10"] { border-color: rgba(0,0,0,0.1); }
    [data-theme="light"] #main_header .divide-white\/10 > * + *,
    [data-theme="light"] #main_header [class*="divide-white/10"] > * + * { border-color: rgba(0,0,0,0.1); }
    [data-theme="light"] #main_header .text-white\/40,
    [data-theme="light"] #main_header [class*="text-white/40"] { color: rgba(0,0,0,0.35); }
    /* Header dropdowns (profile, notification) */
    /* iOS / mobile fix: cap height & enable internal scroll so the menu
       cannot extend past the visible viewport (especially with iOS Safari
       dynamic toolbars) and so its bottom never gets clipped. */
    @media (max-width: 639px) {
        #profile_menu {
            max-height: calc(100vh - 4.5rem);
            max-height: calc(100dvh - 4.5rem);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }
    }
    [data-theme="light"] #profile_menu { background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
    [data-theme="light"] #profile_menu .border-white\/10 { border-color: rgba(0,0,0,0.1); }
	    [data-theme="light"] #profile_menu .bg-white\/10 { background-color: rgba(0,0,0,0.05); }
	    [data-theme="light"] #profile_menu .hover\:bg-white\/20:hover { background-color: rgba(0,0,0,0.08); }
	    [data-theme="light"] #profile_menu .hover\:bg-white\/10:hover { background-color: rgba(0,0,0,0.05); }
	    [data-theme="light"] #profile_menu .bg-\[--theme_color\] { background-color: #fff; }
	    #profile_menu {
	        background: var(--ac-surface-3);
	        border: 1px solid var(--ac-border-soft);
	        box-shadow: 0 18px 48px rgba(0,0,0,0.28);
	    }
	    .ac-profile-menu-inner {
	        width: 100%;
	        overflow: hidden;
	        border-radius: 0.75rem;
	    }
	    .ac-profile-menu-head {
	        display: flex;
	        flex-direction: column;
	        align-items: center;
	        gap: 0.45rem;
	        padding: 1.25rem 1rem 1rem;
	        border-bottom: 1px solid var(--ac-border-soft);
	        text-align: center;
	    }
	    .ac-profile-menu-avatar {
	        width: 4rem;
	        height: 4rem;
	        border-radius: 9999px;
	        background-color: var(--ac-surface);
	        background-position: center;
	        background-size: cover;
	        border: 1px solid var(--ac-border-soft);
	        flex-shrink: 0;
	    }
	    .ac-profile-menu-name {
	        max-width: 100%;
	        color: var(--ac-text);
	        font-weight: 700;
	        line-height: 1.2;
	        overflow: hidden;
	        text-overflow: ellipsis;
	        white-space: nowrap;
	    }
	    .ac-profile-menu-email {
	        max-width: 100%;
	        color: var(--ac-text-muted);
	        font-size: 0.8125rem;
	        line-height: 1.3;
	        overflow: hidden;
	        text-overflow: ellipsis;
	        white-space: nowrap;
	    }
	    .ac-profile-menu-list,
	    .ac-profile-menu-footer {
	        display: flex;
	        flex-direction: column;
	        gap: 0.25rem;
	        padding: 0.625rem;
	    }
	    .ac-profile-menu-footer {
	        border-top: 1px solid var(--ac-border-soft);
	    }
	    .ac-profile-menu-item {
	        display: flex;
	        width: 100%;
	        min-height: 2.75rem;
	        align-items: center;
	        justify-content: flex-start;
	        gap: 0.75rem;
	        border: 0;
	        border-radius: 0.5rem;
	        background: transparent;
	        color: var(--ac-text-soft);
	        cursor: pointer;
	        padding: 0.625rem 0.75rem;
	        text-align: left;
	        text-decoration: none;
	        transition: background 0.15s ease, color 0.15s ease;
	    }
	    .ac-profile-menu-item:hover {
	        background: var(--ac-surface-hover);
	        color: var(--ac-text);
	    }
	    .ac-profile-menu-item svg,
	    .ac-profile-menu-item img {
	        width: 1.25rem;
	        height: 1.25rem;
	        flex-shrink: 0;
	    }
	    .ac-profile-menu-item span,
	    .ac-profile-menu-item div {
	        font-weight: 600;
	        line-height: 1.2;
	        white-space: nowrap;
	    }
	    .ac-profile-menu-signout {
	        color: #f87171;
	    }
	    .ac-profile-menu-signout:hover {
	        background: rgba(242,63,66,0.12);
	        color: #fecaca;
	    }
	    [data-theme="light"] #profile_menu {
	        border-color: var(--ac-border);
	    }
	    [data-theme="light"] .ac-profile-menu-signout {
	        color: #b91c1c;
	    }
	    [data-theme="light"] .ac-profile-menu-signout:hover {
	        background: rgba(185,28,28,0.08);
	        color: #991b1b;
	    }
	    /* ── Light: Search Panel ── */
    [data-theme="light"] #panel_block { background: #fff; border-color: rgba(0,0,0,0.1); }
    [data-theme="light"] #panel_block .bg-\[--theme_color\] { background-color: #fff; }
    [data-theme="light"] #panel .bg-black\/90 { background-color: rgba(0,0,0,0.5); }
    [data-theme="light"] #panel_block input { color: var(--ac-text); }
    [data-theme="light"] #panel_block .placeholder\:text-white\/40::placeholder { color: rgba(0,0,0,0.35); }
    [data-theme="light"] #panel_block .text-white\/80 { color: rgba(0,0,0,0.6); }
    [data-theme="light"] #panel_close .bg-white\/10 { background-color: rgba(0,0,0,0.08); }
    [data-theme="light"] #panel_close .hover\:bg-white\/20:hover { background-color: rgba(0,0,0,0.12); }
    /* ── Light: List1 Component ── */
    [data-theme="light"] .ac-list1-item { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
    [data-theme="light"] .ac-list1-item:hover { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.14); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
    [data-theme="light"] .ac-list1-thumb { background: #e5e7eb; }
    [data-theme="light"] .ac-list1-title { color: var(--ac-text); }
    [data-theme="light"] .ac-list1-genres { color: rgba(0,0,0,0.5); }
    [data-theme="light"] .ac-list1-genre { color: rgba(0,0,0,0.7); }
    /* ── Light: Footer ── */
    [data-theme="light"] .ac-footer-wrap { background: linear-gradient(to top, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0) 100%); color: #6b7280; }
    [data-theme="light"] .ac-footer-bottom span { color: #1a1a2e; }
    [data-theme="light"] .ac-footer-credits { color: #9ca3af; }
    [data-theme="light"] .ac-footer-links a { color: #9ca3af; }
    [data-theme="light"] .ac-footer-links a:hover { color: #4b5563; }
    /* ── Light: Hero Slider — overrides are now in hero-slider.php <style> block ── */
    /* ── Light: Grid1 — overrides are now in grid1.php <style> block ── */

    /* ── Light: Trending Grid ── */
    [data-theme="light"] .ac-tg-card { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
    [data-theme="light"] .ac-tg-title { color: var(--ac-text); }
    [data-theme="light"] .ac-tg-genres { color: rgba(0,0,0,0.5); }

    /* ── Light: Front-Page Report / Discord Cards ── */
    .ac-fp-card { display:flex; justify-content:space-between; align-items:center; gap:12px; background:var(--ac-surface); padding:14px 16px; border-radius:14px; border:1px solid var(--ac-border-soft); transition:background 0.2s; }
    .ac-fp-card:hover { background: var(--ac-surface-hover); }
    .ac-fp-card-left { display:flex; align-items:center; gap:12px; min-width:0; }
    .ac-fp-card-bar { width:3px; height:36px; border-radius:4px; background:var(--ac-border-strong); flex-shrink:0; }
    .ac-fp-card-text { display:grid; gap:1px; min-width:0; }
    .ac-fp-card-title { font-weight:600; font-size:14px; color:var(--ac-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ac-fp-card-sub { font-size:12px; color:var(--ac-text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ac-fp-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 18px; border-radius:9999px; font-weight:600; font-size:13px; cursor:pointer; transition:all 0.2s; border:none; white-space:nowrap; flex-shrink:0; }
    .ac-fp-btn-report { background:#ea9301; color:#fff; }
    .ac-fp-btn-report:hover { background:#d08400; color:#fff; }
    .ac-fp-btn-discord { background:#5865F2; color:#fff; }
    .ac-fp-btn-discord:hover { background:#4752c4; }
    @media (max-width:639px) { .ac-fp-btn { padding:8px 14px; font-size:12px; } .ac-fp-card { padding:12px; border-radius:12px; } .ac-fp-card-title { font-size:13px; } .ac-fp-card-sub { font-size:11px; } }
    /* ── Light: Section Headers (front-page) ── */
    [data-theme="light"] .ac-sec-head,
    [data-theme="light"] .ac-sec-title,
    [data-theme="light"] h2,
    [data-theme="light"] h3 { color: var(--ac-text); }
    [data-theme="light"] .text-white\/60 { color: rgba(0,0,0,0.5); }
    [data-theme="light"] .text-white\/70 { color: rgba(0,0,0,0.6); }
    [data-theme="light"] .text-white\/80 { color: rgba(0,0,0,0.7); }
    [data-theme="light"] .text-white\/90 { color: rgba(0,0,0,0.8); }
    [data-theme="light"] .text-white\/50 { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .text-white\/55 { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .text-white\/40 { color: rgba(0,0,0,0.35); }
    [data-theme="light"] .text-white\/35 { color: rgba(0,0,0,0.3); }
    [data-theme="light"] .text-white\/25 { color: rgba(0,0,0,0.2); }
    /* ── Light: gray utility text overrides ── */
    [data-theme="light"] .text-gray-300 { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .text-gray-400 { color: rgba(0,0,0,0.5); }
    [data-theme="light"] .text-gray-500 { color: rgba(0,0,0,0.55); }
    [data-theme="light"] .bg-gray-700 { background-color: rgba(0,0,0,0.08); }
    [data-theme="light"] .hover\:bg-gray-600:hover { background-color: rgba(0,0,0,0.12); }
    /* ── Light: Generic Tailwind utility overrides ── */
    [data-theme="light"] .bg-white\/5 { background-color: rgba(0,0,0,0.03); }
    [data-theme="light"] .bg-white\/10 { background-color: rgba(0,0,0,0.05); }
    [data-theme="light"] .bg-white\/20 { background-color: rgba(0,0,0,0.08); }
    [data-theme="light"] .hover\:bg-white\/5:hover { background-color: rgba(0,0,0,0.03); }
    [data-theme="light"] .hover\:bg-white\/10:hover { background-color: rgba(0,0,0,0.05); }
    [data-theme="light"] .hover\:bg-white\/20:hover { background-color: rgba(0,0,0,0.08); }
    [data-theme="light"] .border-white\/5 { border-color: rgba(0,0,0,0.05); }
    [data-theme="light"] .border-white\/10 { border-color: rgba(0,0,0,0.1); }
    [data-theme="light"] .border-white\/20 { border-color: rgba(0,0,0,0.15); }
    [data-theme="light"] .divide-white\/5 > * + * { border-color: rgba(0,0,0,0.05); }
    [data-theme="light"] .divide-white\/10 > * + * { border-color: rgba(0,0,0,0.1); }
    [data-theme="light"] .bg-\[--theme_color\] { background-color: var(--ac-bg); }
    [data-theme="light"] .bg-\[--header\] { background-color: var(--header); }
    [data-theme="light"] .text-white { color: var(--ac-text); }
    [data-theme="light"] .bg-black\/90 { background-color: rgba(0,0,0,0.6); }
    [data-theme="light"] .bg-black\/80 { background-color: rgba(0,0,0,0.5); }
    [data-theme="light"] .bg-black\/40 { background-color: rgba(0,0,0,0.2); }
    /* ── Light: Archive / Search / 404 / DMCA pages ── */
    [data-theme="light"] .ac-archive-wrap,
    [data-theme="light"] .ac-search-wrap,
    [data-theme="light"] .ac-404-wrap,
    [data-theme="light"] .ac-dmca-wrap { color: var(--ac-text); }
    [data-theme="light"] .ac-archive-input,
    [data-theme="light"] .ac-search-input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: var(--ac-text); }
    [data-theme="light"] .ac-archive-input:focus,
    [data-theme="light"] .ac-search-input:focus { border-color: rgba(0,0,0,0.25); }
    [data-theme="light"] .ac-filter-container { border-color: rgba(0,0,0,0.08); }
    [data-theme="light"] .ac-filter-tag { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: var(--ac-text); }
    [data-theme="light"] .ac-filter-tag:hover { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.2); }
    [data-theme="light"] .ac-filter-tag.active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
    [data-theme="light"] .ac-archive-select { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: var(--ac-text); }
    [data-theme="light"] .ac-archive-select option { background: #fff; color: var(--ac-text); }
    /* ── Light: Single Novel Page ── */
    [data-theme="light"] .ac-novel-main { color: var(--ac-text); }
    [data-theme="light"] .ac-novel-desc { color: rgba(0,0,0,0.7); }
    [data-theme="light"] .ac-novel-tabs .ac-tab { color: rgba(0,0,0,0.5); }
    [data-theme="light"] .ac-novel-tabs .ac-tab.active { color: var(--ac-text); background: rgba(0,0,0,0.06); }
    [data-theme="light"] .ac-ch-list-item { border-color: rgba(0,0,0,0.06); }
    [data-theme="light"] .ac-ch-list-item:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); }
    [data-theme="light"] .ac-ch-num { color: var(--ac-text); }
    [data-theme="light"] .ac-ch-title { color: rgba(0,0,0,0.6); }
    [data-theme="light"] .ac-ch-date { color: rgba(0,0,0,0.4); }
    [data-theme="light"] .ac-ch-search-input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: var(--ac-text); }
    [data-theme="light"] .ac-ch-search-input:focus { border-color: rgba(59,130,246,0.5); }
    [data-theme="light"] .ac-synopsis-wrap { border-color: rgba(0,0,0,0.08); }
    [data-theme="light"] .ac-expand-btn { color: rgba(0,0,0,0.5); background: rgba(0,0,0,0.04); }
    [data-theme="light"] .ac-expand-btn:hover { background: rgba(0,0,0,0.08); }
    /* Tags on novel page */
    [data-theme="light"] .ac-novel-tag { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.6); }
    [data-theme="light"] .ac-novel-tag:hover { background: rgba(0,0,0,0.08); }
    [data-theme="light"] .ac-tags-more { border-color: rgba(0,0,0,0.15); color: rgba(0,0,0,0.5); }
    [data-theme="light"] .ac-tags-more:hover { background: rgba(0,0,0,0.06); }
    /* Coin lock badge */
    [data-theme="light"] .ac-coin-badge { background: #fef3c7; color: #92400e; }
    /* ── Light: Report Modal ── */
    [data-theme="light"] .ac-report-overlay { background: rgba(0,0,0,0.4); }
    [data-theme="light"] .ac-report-box { background: #fff; border-color: rgba(0,0,0,0.12); color: var(--ac-text); }
    [data-theme="light"] .ac-report-box select,
    [data-theme="light"] .ac-report-box textarea,
    [data-theme="light"] .ac-report-box input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: var(--ac-text); }
    /* ── Light: Comments ── */
    [data-theme="light"] .ac-comments-wrap { color: var(--ac-text); }
    [data-theme="light"] .ac-comment-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
    [data-theme="light"] .ac-comment-body { color: rgba(0,0,0,0.75); }
    [data-theme="light"] .ac-comment-author { color: var(--ac-text); }
    [data-theme="light"] .ac-comment-time { color: rgba(0,0,0,0.4); }
    [data-theme="light"] .ac-comment-avatar { border-color: rgba(0,0,0,0.08); }
    [data-theme="light"] .ac-comment-textarea { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); color: var(--ac-text); }
    [data-theme="light"] .ac-comment-textarea:focus { border-color: rgba(0,0,0,0.25); }
    [data-theme="light"] .ac-comment-vote-btn { color: rgba(0,0,0,0.35); }
    [data-theme="light"] .ac-comment-vote-btn.voted { color: var(--ac-text); }
    [data-theme="light"] .ac-comment-sort-tabs button { color: rgba(0,0,0,0.5); }
    [data-theme="light"] .ac-comment-sort-tabs button.active { color: var(--ac-text); background: rgba(0,0,0,0.06); }
    [data-theme="light"] .ac-comment-post-form { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
    [data-theme="light"] .ac-comment-login-prompt { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); color: rgba(0,0,0,0.5); }
    [data-theme="light"] .ac-spoiler-wrap { background: rgba(0,0,0,0.08); }
    /* ── Light: Reactions ── */
    [data-theme="light"] .ac-reactions-panel { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
    [data-theme="light"] .ac-reaction-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.06); color: rgba(0,0,0,0.5); }
    [data-theme="light"] .ac-reaction-btn:hover { background: rgba(0,0,0,0.08); }
    [data-theme="light"] .ac-reaction-btn.reacted { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.25); }
    /* ── Light: Coin Lock Popup ── */
    [data-theme="light"] .ac-coinlock-overlay { background: rgba(0,0,0,0.5); }
    [data-theme="light"] .ac-coinlock-popup { background: #fff; border-color: rgba(0,0,0,0.12); color: var(--ac-text); }
    [data-theme="light"] .ac-coinlock-popup .ac-coinlock-close { color: rgba(0,0,0,0.4); }
    [data-theme="light"] .ac-unlock-item { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
    /* ── Light: Auth / Login Page ── */
    [data-theme="light"] .ac-auth-box { background: #fff; border-color: rgba(0,0,0,0.1); color: var(--ac-text); box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
    [data-theme="light"] .ac-auth-tabs { border-color: rgba(0,0,0,0.08); }
    [data-theme="light"] .ac-auth-tab { color: rgba(0,0,0,0.5); }
    [data-theme="light"] .ac-auth-tab.active { color: var(--ac-text); background: rgba(0,0,0,0.05); }
    [data-theme="light"] .ac-auth-input { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); color: var(--ac-text); }
    [data-theme="light"] .ac-auth-input:focus { border-color: rgba(0,0,0,0.25); }
    [data-theme="light"] .ac-auth-submit { background: #1a1a2e; color: #fff; }
    [data-theme="light"] .ac-auth-submit:hover { background: #2d2d44; }
    /* ── Light: Profile Page ── */
    [data-theme="light"] .prf-section { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
    [data-theme="light"] .prf-sidebar { background: var(--ac-surface-3); border-color: rgba(0,0,0,0.08); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
    [data-theme="light"] .prf-nav-item { color: rgba(0,0,0,0.5); }
    [data-theme="light"] .prf-nav-item:hover { color: rgba(0,0,0,0.75); background: rgba(0,0,0,0.04); }
    [data-theme="light"] .prf-nav-item.active { color: #fff !important; background: var(--accent-blue) !important; }
    [data-theme="light"] .prf-input,
    [data-theme="light"] .prf-select { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); color: var(--ac-text); }
    [data-theme="light"] .prf-input:focus,
    [data-theme="light"] .prf-select:focus { border-color: rgba(0,0,0,0.3); }
    [data-theme="light"] .prf-label { color: rgba(0,0,0,0.65); }
    [data-theme="light"] .prf-stat-card { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
    [data-theme="light"] .prf-stat-label { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .prf-stat-value { color: var(--ac-text); }
    [data-theme="light"] .prf-theme-btn { border-color: rgba(0,0,0,0.12); color: var(--ac-text); }
    [data-theme="light"] .prf-theme-btn:hover { border-color: rgba(0,0,0,0.3); }
    [data-theme="light"] .prf-font-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: var(--ac-text); }
    [data-theme="light"] .prf-font-btn:hover { border-color: rgba(0,0,0,0.25); }
    [data-theme="light"] .prf-range-btn { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); color: var(--ac-text); }
    [data-theme="light"] .prf-range-btn:hover { background: rgba(0,0,0,0.1); }
    [data-theme="light"] .prf-range-val { color: var(--ac-text); }
    [data-theme="light"] .prf-preview { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); color: rgba(0,0,0,0.7); }
    [data-theme="light"] .prf-nsfw-desc { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .prf-txn-table th,
    [data-theme="light"] .prf-table th { color: rgba(0,0,0,0.5); border-color: rgba(0,0,0,0.08); }
    [data-theme="light"] .prf-txn-table td,
    [data-theme="light"] .prf-table td { border-color: rgba(0,0,0,0.06); color: var(--ac-text); }
    [data-theme="light"] .prf-txn-table tr:hover td,
    [data-theme="light"] .prf-table tr:hover td { background: rgba(0,0,0,0.02); }
    [data-theme="light"] .prf-avatar-email { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .prf-avatar-hint { color: rgba(0,0,0,0.35) !important; }
    [data-theme="light"] .prf-admin-hint { color: rgba(0,0,0,0.35) !important; }
    [data-theme="light"] .prf-toast.success { background: rgba(5,150,105,0.95); }
    [data-theme="light"] .prf-toast.error { background: rgba(220,38,38,0.95); }
    [data-theme="light"] .prf-nav-item.active { color: var(--ac-text); }
    [data-theme="light"] .prf-section-title { color: rgba(0,0,0,0.65); }
    [data-theme="light"] .prf-unlock-item { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); color: var(--ac-text); }
    [data-theme="light"] .prf-unlock-item:hover { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); }
    [data-theme="light"] .prf-unlock-novel { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .prf-unlock-date { color: rgba(0,0,0,0.35); }
    [data-theme="light"] .prf-empty { color: rgba(0,0,0,0.35); }
    /* ── Light: Profile Activity Tab ── */
    [data-theme="light"] .act-stat-title { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .act-stat-card { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
    [data-theme="light"] .act-filter-tab { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .act-filter-tab:hover { color: rgba(0,0,0,0.65); background: rgba(0,0,0,0.04); }
    [data-theme="light"] .act-sort-select { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); color: var(--ac-text); }
    [data-theme="light"] .activity-item { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
    [data-theme="light"] .activity-item:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
    [data-theme="light"] .activity-item-header { color: rgba(0,0,0,0.5); }
    [data-theme="light"] .activity-item-date { color: rgba(0,0,0,0.35); }
    [data-theme="light"] .activity-item-text { color: rgba(0,0,0,0.65); }
    [data-theme="light"] .activity-item-stats { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .activity-empty { color: rgba(0,0,0,0.35); }
    [data-theme="light"] .activity-loading { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .act-page-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: var(--ac-text); }
    [data-theme="light"] .act-page-btn:hover { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.15); }
    [data-theme="light"] .act-page-info { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .act-spinner { border-color: rgba(0,0,0,0.1); border-top-color: var(--accent-blue); }
    /* ── Light: Grid2 ── */
    [data-theme="light"] .ac-grid2-genres { color: rgba(0,0,0,0.5); }
    /* ── Light: Store Page ── */
    [data-theme="light"] .ac-store-section { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
    [data-theme="light"] .ac-store-pkg { background: #fff; border-color: rgba(0,0,0,0.1); color: var(--ac-text); box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
    [data-theme="light"] .ac-store-pkg:hover { border-color: rgba(0,0,0,0.2); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    /* ── Light: Latest Page ── */
    [data-theme="light"] .ac-latest-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
    [data-theme="light"] .ac-latest-card:hover { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); }
    /* ── Light: Announcement Banner ── */
    [data-theme="light"] .ac-announce-bar { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
    /* ── Light: Rating Modal ── */
    [data-theme="light"] .ac-rating-modal { background: #fff; border-color: rgba(0,0,0,0.12); color: var(--ac-text); }
    [data-theme="light"] .ac-star-btn.unselected { color: rgba(0,0,0,0.2); }
    /* ── Light: 404 / DMCA ── */
    [data-theme="light"] .ac-dmca-body { color: rgba(0,0,0,0.65); }
    [data-theme="light"] .ac-dmca-body h2 { color: var(--ac-text); border-color: rgba(0,0,0,0.08); }
    [data-theme="light"] .ac-dmca-body a { color: var(--accent-blue); }
    [data-theme="light"] .ac-dmca-body strong { color: var(--ac-text); }
    /* ── Light: Floating Theme Toggle ── */
    [data-theme="light"] #ac-theme-toggle { background: #1a1a2e; color: #f5f5f5; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
    [data-theme="light"] #ac-theme-toggle:hover { background: #2d2d44; }
    /* ── Base Resets ── */
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    body { margin: 0; padding: 0; background-color: var(--theme_color); color: #ffffff; font-family: 'Poppins', system-ui, -apple-system, sans-serif; font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
    body.ac-no-select { -webkit-user-select: none; user-select: none; }
    h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0; font-weight: 700; line-height: 1.2; }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; height: auto; display: block; }
    p { margin-top: 0; margin-bottom: 0; }
    /* ── Splide Carousel ── */
    .splide__arrow { background: rgba(255, 255, 255, 0.15); opacity: 1; transition: background 0.2s ease; }
    .splide__arrow:hover { background: rgba(255, 255, 255, 0.3); }
    .splide__arrow svg { fill: #ffffff; }
    /* ── Utility Classes ── */
    .ac-soft-no-select { -webkit-user-select: none; user-select: none; }
    #ac-loading-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: linear-gradient(to right, var(--accent-blue), #818cf8); z-index: 9999; transition: width 0.3s ease; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
    /* ── Scrollbar (WebKit) ── */
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 99px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.35); }
    /* ── Animations ── */
    @keyframes ac-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    .animate-ac-spin { animation: ac-spin 0.8s linear infinite; }
    @keyframes ac-pulse-border { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
    .animate-ac-pulse { animation: ac-pulse-border 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
    /* ── Print ── */
    @media print {
        header, footer, .ac-sidebar, .ac-toolbar, .ac-modal { display: none !important; }
        body { background: #fff; color: #000; }
        .ac-reader-content { max-width: 100%; padding: 0; }
    }
    /* ── COMPONENT: LIST1 ── */
.ac-list1-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ac-list1-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.ac-list1-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.ac-list1-thumb {
    width: 56px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #111;
}
.ac-list1-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ac-list1-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}
.ac-list1-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.ac-list1-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ac-list1-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ac-list1-status.completed { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.ac-list1-status.ongoing { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.ac-list1-status.hiatus { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.ac-list1-status.dropped { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.ac-list1-genres {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ac-list1-genre {
    color: rgba(255, 255, 255, 0.8);
}
.ac-list1-genre:not(:last-child)::after {
    content: ", ";
}

@media (max-width: 639px) {
    #panel_block { max-height: 100dvh; }
    #searched_series {
        max-height: calc(100dvh - 6.5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ac-list1-item {
        padding: 7px 8px;
        gap: 9px;
    }
    .ac-list1-thumb {
        width: 38px;
        height: 52px;
        border-radius: 4px;
    }
    .ac-list1-title {
        font-size: 13px;
    }
    .ac-list1-meta { gap: 5px; }
    .ac-list1-status {
        font-size: 9px;
        padding: 1px 5px;
    }
    .ac-list1-genres {
        font-size: 11px;
    }
}

/* ── NSFW blur overlay ──────────────────────────────────── */
.ac-nsfw-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0,0,0,0.40);
    cursor: pointer;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}
.ac-nsfw-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: inherit;
    animation: ac-nsfw-pulse 2s ease-in-out infinite;
    pointer-events: none;
}
.ac-nsfw-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,1) 8px, rgba(255,255,255,1) 9px);
    pointer-events: none;
    border-radius: inherit;
}
@keyframes ac-nsfw-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.ac-nsfw-icon {
    margin-bottom: 6px;
    position: relative;
    color: #f87171;
    filter: drop-shadow(0 0 8px rgba(239,68,68,0.5));
    animation: ac-nsfw-pulse 2s ease-in-out infinite;
}
.ac-nsfw-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    position: relative;
}
/* When NSFW mode (red) enabled — hide overlays to reveal content */
body.ac-nsfw-show .ac-nsfw-overlay {
    opacity: 0;
    pointer-events: none;
}
/* ── Notification Panel ─────────────────────────────────── */
.ac-notif-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.ac-notif-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.ac-notif-panel {
    display: none;
    position: fixed;
    top: 70px;
    right: 12px;
    width: 380px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 90px);
    z-index: 251;
    background: var(--ac-surface-3);
    border: 1px solid var(--ac-border);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    overflow: hidden;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
}
.ac-notif-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.ac-notif-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ac-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--ac-text);
}
.ac-notif-header svg {
    width: 18px;
    height: 18px;
    color: var(--ac-text-muted);
}
.ac-notif-body {
    overflow-y: auto;
    max-height: calc(100vh - 160px);
    -webkit-overflow-scrolling: touch;
}
.ac-notif-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    font-size: 13px;
    color: var(--ac-text-muted);
}
/* Notification row items */
.ac-notif-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.ac-notif-row:hover { background: rgba(255,255,255,0.04); }
.ac-notif-unread { background: rgba(88,101,242,0.08); }
.ac-notif-link {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.ac-notif-icon { flex-shrink: 0; margin-top: 2px; }
.ac-notif-icon svg { width: 20px; height: 20px; }
.ac-notif-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-notif-text { font-size: 13px; color: var(--ac-text); line-height: 1.4; }
.ac-notif-text strong { font-weight: 600; }
.ac-notif-text em { font-style: italic; opacity: 0.7; }
.ac-notif-time { font-size: 11px; color: var(--ac-text-muted); }
.ac-notif-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 8px;
    flex-shrink: 0;
}
.ac-notif-mark, .ac-notif-del {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ac-text-muted);
    transition: background 0.15s, color 0.15s;
}
.ac-notif-mark:hover { background: rgba(88,101,242,0.15); color: #5865f2; }
.ac-notif-del:hover { background: rgba(242,63,66,0.15); color: #f23f42; }
[data-theme="light"] .ac-notif-row:hover { background: rgba(0,0,0,0.03); }
[data-theme="light"] .ac-notif-unread { background: rgba(88,101,242,0.06); }
[data-theme="light"] .ac-notif-row { border-color: rgba(0,0,0,0.06); }
@media (max-width: 639px) {
    .ac-notif-panel {
        top: 62px;
        right: 8px;
        left: 8px;
        width: auto;
        max-width: none;
        border-radius: 12px;
    }
    .ac-notif-overlay { display: block; }
}
@media (min-width: 640px) {
    .ac-notif-overlay { display: block; }
}
[data-theme="light"] .ac-notif-overlay { background: rgba(0,0,0,0.25); }
[data-theme="light"] .ac-notif-panel { background: #fff; border-color: rgba(0,0,0,0.1); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
[data-theme="light"] .ac-notif-header { border-color: rgba(0,0,0,0.08); }
/* ── Mobile Navigation Drawer ─────────────────────────────── */
.ac-mob-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    color: inherit;
}
.ac-mob-hamburger:hover { background: rgba(255,255,255,0.2); }
.ac-mob-hamburger svg { width: 22px; height: 22px; }
.ac-mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.ac-mob-overlay.open { opacity: 1; pointer-events: auto; }
.ac-mob-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 288px;
    max-width: 85vw;
    z-index: 201;
    background: var(--ac-surface-3);
    box-shadow: 4px 0 24px rgba(0,0,0,0.4);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
}
.ac-mob-drawer.open { transform: translateX(0); pointer-events: auto; }
.ac-mob-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--ac-border-soft);
    flex-shrink: 0;
}
.ac-mob-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ac-surface);
    border: none;
    cursor: pointer;
    color: var(--ac-text-muted);
    transition: background 0.2s, color 0.2s;
}
.ac-mob-close:hover { background: var(--ac-surface-hover); color: var(--ac-text); }
.ac-mob-close svg { width: 18px; height: 18px; }
.ac-mob-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--ac-border-soft);
    flex-shrink: 0;
}
.ac-mob-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ac-surface);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.ac-mob-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ac-mob-user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ac-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ac-mob-user-email {
    font-size: 12px;
    color: var(--ac-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ac-mob-balances {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ac-border-soft);
    flex-shrink: 0;
}
.ac-mob-bal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 4px;
    border-radius: 10px;
    background: var(--ac-surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--ac-text);
    text-decoration: none;
    transition: background 0.15s;
}
.ac-mob-bal:hover { background: var(--ac-surface-hover); }
.ac-mob-bal svg, .ac-mob-bal img { width: 16px; height: 16px; flex-shrink: 0; }
.ac-mob-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}
.ac-mob-nav-label {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ac-text-muted);
}
.ac-mob-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ac-text-soft);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.ac-mob-nav-item:hover,
.ac-mob-nav-item:active { background: var(--ac-surface); color: var(--ac-text); }
.ac-mob-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ac-text-muted); }
.ac-mob-nav-item img { width: 24px; height: auto; flex-shrink: 0; }
.ac-mob-nav-item:hover svg { color: var(--ac-text-soft); }
.ac-mob-nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--accent-rose);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
}
.ac-mob-divider {
    height: 1px;
    background: var(--ac-border-soft);
    margin: 0;
    flex-shrink: 0;
}
.ac-mob-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ac-text-soft);
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.ac-mob-toggle-row:hover { background: var(--ac-surface); }
.ac-mob-toggle-row svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ac-text-muted); }
.ac-mob-toggle-pill {
    margin-left: auto;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: rgba(255,255,255,0.12);
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.ac-mob-toggle-pill.on { background: var(--accent-blue); }
.ac-mob-toggle-pill::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}
	.ac-mob-toggle-pill.on::after { transform: translateX(18px); }
	#main_header,
	#main_header > div {
	    max-width: 100vw;
	    min-width: 0;
	}
	.ac-header-row,
	.ac-header-left,
	.ac-header-right,
	.ac-main-nav {
	    min-width: 0;
	}
	.ac-header-left {
	    flex: 1 1 auto;
	    width: auto !important;
	}
	.ac-header-right {
	    flex: 0 0 auto;
	}
	.ac-main-nav,
	.ac-main-nav-link,
	.ac-header-search {
	    flex-shrink: 0;
	}
	.ac-main-nav-icon,
	.ac-main-nav img {
	    flex-shrink: 0;
	    object-fit: contain;
	}
	.ac-main-nav-label,
	.ac-header-search-label {
	    white-space: nowrap;
	}
	@media (min-width: 640px) and (max-width: 1003px) {
	    .ac-header-row {
	        gap: 8px;
	    }
	    .ac-header-left {
	        gap: 8px;
	    }
	    .ac-header-search,
	    .ac-main-nav-link {
	        width: 44px !important;
	        min-width: 44px !important;
	        height: 44px !important;
	        padding-left: 0 !important;
	        padding-right: 0 !important;
	        gap: 0 !important;
	    }
	    .ac-main-nav-label,
	    .ac-header-search-label {
	        display: none !important;
	    }
	    .ac-main-nav {
	        gap: 8px;
	    }
	    .ac-header-right {
	        display: flex !important;
	        visibility: visible !important;
	        opacity: 1 !important;
	    }
	}
	@media (min-width: 1004px) {
	    .ac-header-search,
	    .ac-main-nav-link {
	        width: auto !important;
	        min-width: fit-content !important;
	        padding-left: 16px !important;
	        padding-right: 16px !important;
	        gap: 8px !important;
	    }
	    .ac-header-search {
	        padding-right: 24px !important;
	        gap: 10px !important;
	    }
	    .ac-main-nav-label,
	    .ac-header-search-label {
	        display: block !important;
	    }
	}
	@media (min-width: 640px) and (max-width: 788px) {
	    .ac-header-logo {
	        display: none !important;
	    }
	}
	@media (max-width: 639px) {
	    .ac-mob-hamburger { display: flex; }
    .ac-mob-overlay,
    .ac-mob-drawer { display: flex; }
    .ac-hide-mob { display: none !important; }
    body.ac-drawer-open { overflow: hidden; }
    /* Mobile header: hide logo, show profile icon */
    .ac-header-logo { display: none !important; }
    .ac-mob-profile-wrap { display: block !important; }
}
@media (min-width: 640px) {
    .ac-mob-overlay,
    .ac-mob-drawer { display: none !important; }
}
[data-theme="light"] .ac-mob-hamburger { background: rgba(0,0,0,0.06); }
[data-theme="light"] .ac-mob-hamburger:hover { background: rgba(0,0,0,0.1); }
[data-theme="light"] .ac-mob-overlay { background: rgba(0,0,0,0.4); }
[data-theme="light"] .ac-mob-drawer { box-shadow: 4px 0 24px rgba(0,0,0,0.12); }
[data-theme="light"] .ac-mob-close { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.45); }
[data-theme="light"] .ac-mob-close:hover { background: rgba(0,0,0,0.08); color: var(--ac-text); }
[data-theme="light"] .ac-mob-bal { background: rgba(0,0,0,0.04); }
[data-theme="light"] .ac-mob-bal:hover { background: rgba(0,0,0,0.07); }
[data-theme="light"] .ac-mob-nav-item:hover,
[data-theme="light"] .ac-mob-nav-item:active { background: rgba(0,0,0,0.04); }
[data-theme="light"] .ac-mob-toggle-row:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .ac-mob-toggle-pill { background: rgba(0,0,0,0.12); }
