/* ============================================================
   SOCHOUSE — EVENT THEME: OCEAN
   Auto-applied kalau EVENT_THEME=ocean di .env
   Scope: html[data-event="ocean"]
   Light variant: html[data-theme="light"][data-event="ocean"]
   ============================================================ */

/* ============================================================
   DARK MODE — BASE
   ============================================================ */
html[data-event="ocean"] {
    color-scheme: dark;
    background-color: #061424;

    /* ===== Ocean palette ===== */
    --bg:             #061424;
    --bg-elevated:    #0a1f33;
    --bg-hover:       rgba(20, 184, 255, 0.06);

    --border:         #14304d;
    --border-strong:  #1e4976;

    --text:           #e6f2ff;
    --text-muted:     #8ab4d9;
    --text-dim:       #5c82a8;
    --text-faint:     #3d5f7f;

    --accent:         #14b8ff;
    --accent-hover:   #40c8ff;
    --accent-soft:    rgba(20, 184, 255, 0.14);

    --like:           #ff7a9e;
    --like-soft:      rgba(255, 122, 158, 0.12);

    --danger:         #ff5757;
    --danger-soft:    rgba(255, 87, 87, 0.10);

    --verified:       #14b8ff;
    --gold:           #ffd166;
    --gold-soft:      rgba(255, 209, 102, 0.12);

    /* ===== Ocean-specific tokens ===== */
    --ocean-deep:     #061424;
    --ocean-mid:      #0a1f33;
    --ocean-surface:  #14b8ff;
    --ocean-foam:     #a8e6ff;
    --ocean-coral:    #ff7a9e;
    --ocean-sand:     #ffd166;
    --ocean-glow:     rgba(20, 184, 255, 0.35);
}

/* ============================================================
   BACKGROUND — depth gradient (dark)
   ============================================================ */
html[data-event="ocean"] body:not(.dm-body):not(.is-dm-page):not(.is-admin-page) {
    background: transparent !important;
    color: var(--text);
}

/* ============================================================
   DASHBOARD BACKGROUND — bg-schxoce.jpeg (fixed, mobile-safe)
   Body transparent, image + overlay via ::before
   ============================================================ */
html[data-event="ocean"] body:not(.dm-body):not(.is-dm-page):not(.is-admin-page)::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(180deg,
            rgba(6, 20, 36, 0.72) 0%,
            rgba(6, 20, 36, 0.82) 40%,
            rgba(6, 20, 36, 0.92) 100%),
        url('/assets/img/bg-schxoce.jpeg');
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}

/* ============================================================
   MASTHEAD / BOTTOM NAV
   ============================================================ */
html[data-event="ocean"] .masthead {
    background: rgba(10, 31, 51, 0.75);
    -webkit-backdrop-filter: blur(28px) saturate(1.9);
    backdrop-filter: blur(28px) saturate(1.9);
    border-color: rgba(20, 184, 255, 0.14);
    box-shadow:
        0 0 0 1px rgba(20, 184, 255, 0.06),
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 20px 60px rgba(20, 184, 255, 0.08);
}

html[data-event="ocean"] .bottom-nav {
    background: rgba(10, 31, 51, 0.92);
    border-top-color: rgba(20, 184, 255, 0.14);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
}

html[data-event="ocean"] .bottom-nav-item {
    color: var(--text-dim);
}
html[data-event="ocean"] .bottom-nav-item:hover,
html[data-event="ocean"] .bottom-nav-item:focus-visible {
    color: var(--text-muted);
}
html[data-event="ocean"] .bottom-nav-item.is-active {
    color: var(--accent);
}
html[data-event="ocean"] .bottom-nav-item.is-active::after {
    background: var(--accent);
    box-shadow: 0 0 12px var(--ocean-glow);
}

/* Search "island" — solid cyan */
html[data-event="ocean"] .bottom-nav-item-search .bottom-nav-icon {
    background: linear-gradient(135deg, #14b8ff 0%, #0089d6 100%);
    border-color: rgba(168, 230, 255, 0.5);
    box-shadow:
        0 0 0 2px rgba(20, 184, 255, 0.2),
        0 8px 28px rgba(20, 184, 255, 0.5),
        0 0 60px rgba(20, 184, 255, 0.3);
}
html[data-event="ocean"] .bottom-nav-item-search .bottom-nav-icon svg { stroke: #ffffff; }
html[data-event="ocean"] .bottom-nav-item-search.is-active .bottom-nav-icon {
    background: #061424;
}
html[data-event="ocean"] .bottom-nav-item-search.is-active .bottom-nav-icon svg { stroke: var(--accent); }

/* ============================================================
   FAB
   ============================================================ */
html[data-event="ocean"] .fab {
    background: linear-gradient(135deg, #14b8ff 0%, #0089d6 100%);
    box-shadow:
        0 8px 24px rgba(20, 184, 255, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(20, 184, 255, 0.3);
}
html[data-event="ocean"] .fab:hover {
    box-shadow:
        0 12px 32px rgba(20, 184, 255, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 0 60px rgba(20, 184, 255, 0.4);
}

html[data-event="ocean"] .fab-menu-item {
    background: var(--bg-elevated);
    border-color: rgba(20, 184, 255, 0.20);
    color: var(--text);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 24px rgba(20, 184, 255, 0.10);
}
html[data-event="ocean"] .fab-menu-item:hover {
    border-color: var(--accent);
    background: rgba(20, 184, 255, 0.06);
}

html[data-event="ocean"] .fab-rank {
    background: var(--bg-elevated);
    border-color: rgba(255, 209, 102, 0.35);
    color: var(--gold);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 209, 102, 0.10);
}
html[data-event="ocean"] .fab-rank.is-active {
    background: var(--gold);
    color: var(--ocean-deep);
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(255, 209, 102, 0.4);
}

/* ============================================================
   BRAND — "SCH X OCE"
   ============================================================ */
html[data-event="ocean"] .brand {
    font-size: 1.15rem;
    letter-spacing: 0.20em;
    color: #14b8ff !important;
    text-shadow:
        0 0 14px rgba(20, 184, 255, 0.55),
        0 0 28px rgba(20, 184, 255, 0.25);
    font-weight: 900;
    text-transform: uppercase;
}
html[data-event="ocean"] .brand:hover {
    color: #40c8ff !important;
}

@media (max-width: 420px) {
    html[data-event="ocean"] .brand {
        font-size: 1.0rem;
        letter-spacing: 0.16em;
    }
}

/* ============================================================
   CARDS / PANELS
   ============================================================ */
html[data-event="ocean"] .card,
html[data-event="ocean"] .post-card,
html[data-event="ocean"] .follows-header,
html[data-event="ocean"] .bank-card,
html[data-event="ocean"] .profile-user-card {
    background: linear-gradient(180deg, rgba(20, 184, 255, 0.025) 0%, var(--bg-elevated) 24%);
    border-color: var(--border);
}
html[data-event="ocean"] .card {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(20, 184, 255, 0.04);
}

/* ============================================================
   BUTTONS
   ============================================================ */
html[data-event="ocean"] .button,
html[data-event="ocean"] .auth-submit,
html[data-event="ocean"] .btn-primary,
html[data-event="ocean"] .admin-btn {
    background: linear-gradient(135deg, #14b8ff 0%, #0089d6 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(20, 184, 255, 0.35);
}
html[data-event="ocean"] .button:hover,
html[data-event="ocean"] .auth-submit:hover,
html[data-event="ocean"] .btn-primary:hover,
html[data-event="ocean"] .admin-btn:hover {
    background: linear-gradient(135deg, #40c8ff 0%, #14b8ff 100%);
    box-shadow: 0 6px 24px rgba(20, 184, 255, 0.5);
}
html[data-event="ocean"] .button-link {
    color: var(--accent);
}
html[data-event="ocean"] .button-link:hover {
    color: var(--accent-hover);
}

/* ============================================================
   FORMS / INPUTS
   ============================================================ */
html[data-event="ocean"] .field input,
html[data-event="ocean"] .field textarea,
html[data-event="ocean"] .input-select,
html[data-event="ocean"] .input-prefix {
    background: rgba(5, 15, 28, 0.7);
    border-color: var(--border-strong);
    color: var(--text);
}
html[data-event="ocean"] .field input:focus,
html[data-event="ocean"] .field textarea:focus,
html[data-event="ocean"] .input-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============================================================
   STORY RING — oceanic gradient
   ============================================================ */
html[data-event="ocean"] .story-avatar-active::before {
    background: linear-gradient(135deg,
        #14b8ff 0%,
        #0089d6 25%,
        #a8e6ff 50%,
        #14b8ff 75%,
        #0089d6 100%);
    box-shadow: 0 0 12px rgba(20, 184, 255, 0.4);
}
html[data-event="ocean"] .story-avatar-add {
    background: rgba(20, 184, 255, 0.10);
    border-color: rgba(20, 184, 255, 0.35);
    color: var(--accent);
}

/* ============================================================
   LIKE / REACTION — coral accent
   ============================================================ */
html[data-event="ocean"] .post-action[data-liked="1"],
html[data-event="ocean"] .comment-like-btn.is-liked {
    color: var(--ocean-coral);
}

/* ============================================================
   VERIFIED BADGE
   ============================================================ */
html[data-event="ocean"] .verified-badge svg path:first-child,
html[data-event="ocean"] .verified-badge-img path:first-child {
    fill: var(--accent);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
html[data-event="ocean"] ::-webkit-scrollbar-thumb {
    background: rgba(20, 184, 255, 0.20);
}
html[data-event="ocean"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(20, 184, 255, 0.35);
}


/* ============================================================
   ═══════════════════════════════════════════════════════════
   LIGHT MODE VARIANT
   ═══════════════════════════════════════════════════════════
   Tetap nuansa laut, versi cerah (soft sky blue)
   ============================================================ */

html[data-theme="light"][data-event="ocean"] {
    color-scheme: light;
    background-color: #eaf4fb;

    /* ===== Ocean light palette ===== */
    --bg:             #eaf4fb;
    --bg-elevated:    #ffffff;
    --bg-hover:       rgba(10, 135, 209, 0.06);

    --border:         #c9dceb;
    --border-strong:  #a8c5dd;

    --text:           #0a2540;
    --text-muted:     #4a6b8a;
    --text-dim:       #6b89a8;
    --text-faint:     #93aec5;

    --accent:         #0a87d1;
    --accent-hover:   #0a6eb0;
    --accent-soft:    rgba(10, 135, 209, 0.10);

    --like:           #d91a72;
    --like-soft:      rgba(217, 26, 114, 0.08);

    --verified:       #0a87d1;
    --gold:           #c48a00;
    --gold-soft:      rgba(196, 138, 0, 0.12);

    --ocean-deep:     #eaf4fb;
    --ocean-mid:      #ffffff;
    --ocean-surface:  #0a87d1;
    --ocean-foam:     #0891b2;
    --ocean-coral:    #d91a72;
    --ocean-sand:     #c48a00;
    --ocean-glow:     rgba(10, 135, 209, 0.22);
}

/* ============================================================
   BACKGROUND — light (soft sky)
   ============================================================ */
html[data-theme="light"][data-event="ocean"] body:not(.dm-body):not(.is-dm-page):not(.is-admin-page) {
    background: transparent !important;
    color: var(--text);
}

/* Dashboard background image — light overlay */
html[data-theme="light"][data-event="ocean"] body:not(.dm-body):not(.is-dm-page):not(.is-admin-page)::before {
    background-image:
        linear-gradient(180deg,
            rgba(234, 244, 251, 0.70) 0%,
            rgba(234, 244, 251, 0.80) 40%,
            rgba(234, 244, 251, 0.92) 100%),
        url('/assets/img/bg-schxoce.jpeg');
}

/* ============================================================
   MASTHEAD / BOTTOM NAV — light glass
   ============================================================ */
html[data-theme="light"][data-event="ocean"] .masthead {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(28px) saturate(1.9);
    backdrop-filter: blur(28px) saturate(1.9);
    border-color: rgba(10, 135, 209, 0.14);
    box-shadow:
        0 0 0 1px rgba(10, 135, 209, 0.05),
        0 4px 20px rgba(10, 37, 64, 0.06),
        0 20px 60px rgba(10, 135, 209, 0.06);
}

html[data-theme="light"][data-event="ocean"] .bottom-nav {
    background: rgba(255, 255, 255, 0.94);
    border-top-color: rgba(10, 135, 209, 0.14);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
}

html[data-theme="light"][data-event="ocean"] .bottom-nav-item {
    color: var(--text-dim);
}
html[data-theme="light"][data-event="ocean"] .bottom-nav-item:hover,
html[data-theme="light"][data-event="ocean"] .bottom-nav-item:focus-visible {
    color: var(--text-muted);
}
html[data-theme="light"][data-event="ocean"] .bottom-nav-item.is-active {
    color: var(--accent);
}
html[data-theme="light"][data-event="ocean"] .bottom-nav-item.is-active::after {
    background: var(--accent);
    box-shadow: 0 0 12px var(--ocean-glow);
}

html[data-theme="light"][data-event="ocean"] .bottom-nav-item-search .bottom-nav-icon {
    background: linear-gradient(135deg, #0a87d1 0%, #086ca8 100%);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 2px rgba(10, 135, 209, 0.18),
        0 8px 24px rgba(10, 135, 209, 0.35),
        0 0 40px rgba(10, 135, 209, 0.20);
}
html[data-theme="light"][data-event="ocean"] .bottom-nav-item-search .bottom-nav-icon svg { stroke: #ffffff; }
html[data-theme="light"][data-event="ocean"] .bottom-nav-item-search.is-active .bottom-nav-icon {
    background: #ffffff;
    border-color: var(--accent);
}
html[data-theme="light"][data-event="ocean"] .bottom-nav-item-search.is-active .bottom-nav-icon svg { stroke: var(--accent); }

/* ============================================================
   FAB — light
   ============================================================ */
html[data-theme="light"][data-event="ocean"] .fab {
    background: linear-gradient(135deg, #0a87d1 0%, #086ca8 100%);
    box-shadow:
        0 8px 24px rgba(10, 135, 209, 0.40),
        0 2px 6px rgba(10, 37, 64, 0.10),
        0 0 32px rgba(10, 135, 209, 0.20);
}
html[data-theme="light"][data-event="ocean"] .fab:hover {
    box-shadow:
        0 12px 32px rgba(10, 135, 209, 0.50),
        0 4px 10px rgba(10, 37, 64, 0.12),
        0 0 48px rgba(10, 135, 209, 0.28);
}

html[data-theme="light"][data-event="ocean"] .fab-menu-item {
    background: #ffffff;
    border-color: rgba(10, 135, 209, 0.18);
    color: var(--text);
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.08), 0 0 20px rgba(10, 135, 209, 0.06);
}
html[data-theme="light"][data-event="ocean"] .fab-menu-item:hover {
    border-color: var(--accent);
    background: rgba(10, 135, 209, 0.05);
}

html[data-theme="light"][data-event="ocean"] .fab-rank {
    background: #ffffff;
    border-color: rgba(196, 138, 0, 0.35);
    color: var(--gold);
    box-shadow: 0 4px 14px rgba(10, 37, 64, 0.08), 0 0 20px rgba(196, 138, 0, 0.10);
}
html[data-theme="light"][data-event="ocean"] .fab-rank.is-active {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
}

/* ============================================================
   BRAND — light mode
   ============================================================ */
html[data-theme="light"][data-event="ocean"] .brand {
    font-size: 1.15rem;
    letter-spacing: 0.20em;
    color: #0a87d1 !important;
    text-shadow:
        0 0 14px rgba(10, 135, 209, 0.28),
        0 0 28px rgba(10, 135, 209, 0.12);
    font-weight: 900;
    text-transform: uppercase;
}
html[data-theme="light"][data-event="ocean"] .brand:hover {
    color: #0a6eb0 !important;
}

@media (max-width: 420px) {
    html[data-theme="light"][data-event="ocean"] .brand {
        font-size: 1.0rem;
        letter-spacing: 0.16em;
    }
}

/* ============================================================
   CARDS / PANELS — light
   ============================================================ */
html[data-theme="light"][data-event="ocean"] .card,
html[data-theme="light"][data-event="ocean"] .post-card,
html[data-theme="light"][data-event="ocean"] .follows-header,
html[data-theme="light"][data-event="ocean"] .bank-card,
html[data-theme="light"][data-event="ocean"] .profile-user-card {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 1px 2px rgba(10, 37, 64, 0.03), 0 0 40px rgba(10, 135, 209, 0.03);
}

/* ============================================================
   BUTTONS — light
   ============================================================ */
html[data-theme="light"][data-event="ocean"] .button,
html[data-theme="light"][data-event="ocean"] .auth-submit,
html[data-theme="light"][data-event="ocean"] .btn-primary,
html[data-theme="light"][data-event="ocean"] .admin-btn {
    background: linear-gradient(135deg, #0a87d1 0%, #086ca8 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(10, 135, 209, 0.28);
}
html[data-theme="light"][data-event="ocean"] .button:hover,
html[data-theme="light"][data-event="ocean"] .auth-submit:hover,
html[data-theme="light"][data-event="ocean"] .btn-primary:hover,
html[data-theme="light"][data-event="ocean"] .admin-btn:hover {
    background: linear-gradient(135deg, #0a6eb0 0%, #0a87d1 100%);
    box-shadow: 0 6px 24px rgba(10, 135, 209, 0.40);
}

html[data-theme="light"][data-event="ocean"] .button-link {
    color: var(--accent);
}
html[data-theme="light"][data-event="ocean"] .button-link:hover {
    color: var(--accent-hover);
}

/* ============================================================
   FORMS / INPUTS — light
   ============================================================ */
html[data-theme="light"][data-event="ocean"] .field input,
html[data-theme="light"][data-event="ocean"] .field textarea,
html[data-theme="light"][data-event="ocean"] .input-select,
html[data-theme="light"][data-event="ocean"] .input-prefix {
    background: #ffffff;
    border-color: var(--border-strong);
    color: var(--text);
}
html[data-theme="light"][data-event="ocean"] .field input:focus,
html[data-theme="light"][data-event="ocean"] .field textarea:focus,
html[data-theme="light"][data-event="ocean"] .input-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============================================================
   STORY RING — light
   ============================================================ */
html[data-theme="light"][data-event="ocean"] .story-avatar-active::before {
    background: linear-gradient(135deg,
        #0a87d1 0%,
        #0891b2 25%,
        #22d3ee 50%,
        #0a87d1 75%,
        #086ca8 100%);
    box-shadow: 0 0 12px rgba(10, 135, 209, 0.30);
}
html[data-theme="light"][data-event="ocean"] .story-avatar-add {
    background: rgba(10, 135, 209, 0.08);
    border-color: rgba(10, 135, 209, 0.32);
    color: var(--accent);
}

/* ============================================================
   LIKE / REACTION — light
   ============================================================ */
html[data-theme="light"][data-event="ocean"] .post-action[data-liked="1"],
html[data-theme="light"][data-event="ocean"] .comment-like-btn.is-liked {
    color: var(--ocean-coral);
}

/* ============================================================
   VERIFIED BADGE — light
   ============================================================ */
html[data-theme="light"][data-event="ocean"] .verified-badge svg path:first-child,
html[data-theme="light"][data-event="ocean"] .verified-badge-img path:first-child {
    fill: var(--accent);
}

/* ============================================================
   SCROLLBAR — light
   ============================================================ */
html[data-theme="light"][data-event="ocean"] ::-webkit-scrollbar-thumb {
    background: rgba(10, 135, 209, 0.20);
}
html[data-theme="light"][data-event="ocean"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 135, 209, 0.35);
}
/* ============================================================
   ICON OVERRIDES — Ocean theme
   Pakai CSS mask — gak perlu edit views/JS
   ============================================================ */

/* Parent SVG disiapkan jadi mask-able */
html[data-event="ocean"] .bottom-nav-item .bottom-nav-icon svg,
html[data-event="ocean"] #fab-toggle svg,
html[data-event="ocean"] .story-avatar-add svg,
html[data-event="ocean"] #open-story-composer svg {
    background-color: currentColor;
    display: block;
}
html[data-event="ocean"] .bottom-nav-item .bottom-nav-icon svg > *,
html[data-event="ocean"] #fab-toggle svg > *,
html[data-event="ocean"] .story-avatar-add svg > *,
html[data-event="ocean"] #open-story-composer svg > * {
    display: none;
}

/* ------------------------------------------------------------
   HOME — Wave pattern
   ------------------------------------------------------------ */
html[data-event="ocean"] .bottom-nav-item[href*="/dashboard"] .bottom-nav-icon svg,
html[data-event="ocean"] .bottom-nav-item[href="/"] .bottom-nav-icon svg {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 11c2.5 0 3.5-2 5-2s2.5 2 5 2 3.5-2 5-2 2.5 2 5 2v3c-2.5 0-3.5-2-5-2s-2.5 2-5 2-3.5-2-5-2-2.5 2-5 2v-3zM2 17c2.5 0 3.5-2 5-2s2.5 2 5 2 3.5-2 5-2 2.5 2 5 2v3c-2.5 0-3.5-2-5-2s-2.5 2-5 2-3.5-2-5-2-2.5 2-5 2v-3z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 11c2.5 0 3.5-2 5-2s2.5 2 5 2 3.5-2 5-2 2.5 2 5 2v3c-2.5 0-3.5-2-5-2s-2.5 2-5 2-3.5-2-5-2-2.5 2-5 2v-3zM2 17c2.5 0 3.5-2 5-2s2.5 2 5 2 3.5-2 5-2 2.5 2 5 2v3c-2.5 0-3.5-2-5-2s-2.5 2-5 2-3.5-2-5-2-2.5 2-5 2v-3z'/></svg>") center/contain no-repeat;
}

/* ------------------------------------------------------------
   SEARCH — Fish
   ------------------------------------------------------------ */
html[data-event="ocean"] .bottom-nav-item[href*="/search"] .bottom-nav-icon svg {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 12c0-2.2 3-5 7-5 3 0 5 2 6.5 5C15 15 13 17 10 17c-4 0-7-2.8-7-5zm12 0l5-4v8l-5-4z'/><circle cx='8' cy='11' r='0.9'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 12c0-2.2 3-5 7-5 3 0 5 2 6.5 5C15 15 13 17 10 17c-4 0-7-2.8-7-5zm12 0l5-4v8l-5-4z'/><circle cx='8' cy='11' r='0.9'/></svg>") center/contain no-repeat;
}

/* ------------------------------------------------------------
   NOTIFICATIONS — Seashell
   ------------------------------------------------------------ */
html[data-event="ocean"] .bottom-nav-item[href*="/notifications"] .bottom-nav-icon svg {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2C8 2 5 6 5 11c0 3 1 5 2 7v1h10v-1c1-2 2-4 2-7 0-5-3-9-7-9zm0 2c3 0 5 3 5 7 0 2.5-.7 4.3-1.6 6H8.6C7.7 15.3 7 13.5 7 11c0-4 2-7 5-7zm-1 5c1 0 2 1 2 2s-1 2-2 2-2-1-2-2 1-2 2-2z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2C8 2 5 6 5 11c0 3 1 5 2 7v1h10v-1c1-2 2-4 2-7 0-5-3-9-7-9zm0 2c3 0 5 3 5 7 0 2.5-.7 4.3-1.6 6H8.6C7.7 15.3 7 13.5 7 11c0-4 2-7 5-7zm-1 5c1 0 2 1 2 2s-1 2-2 2-2-1-2-2 1-2 2-2z'/></svg>") center/contain no-repeat;
}

/* ------------------------------------------------------------
   DM — Message in a bottle
   ------------------------------------------------------------ */
html[data-event="ocean"] .bottom-nav-item[href*="/dm"] .bottom-nav-icon svg {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 2v2H8v3.5L6.3 9.8C5.5 10.8 5 12.1 5 13.5V20a2 2 0 002 2h10a2 2 0 002-2v-6.5c0-1.4-.5-2.7-1.3-3.7L16 7.5V4h-1V2H9zm1 2h4v3l1.5 2c.3.4.5.9.5 1.5V20h-8v-11.5c0-.6.2-1.1.5-1.5L10 7V4z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 2v2H8v3.5L6.3 9.8C5.5 10.8 5 12.1 5 13.5V20a2 2 0 002 2h10a2 2 0 002-2v-6.5c0-1.4-.5-2.7-1.3-3.7L16 7.5V4h-1V2H9zm1 2h4v3l1.5 2c.3.4.5.9.5 1.5V20h-8v-11.5c0-.6.2-1.1.5-1.5L10 7V4z'/></svg>") center/contain no-repeat;
}

/* ------------------------------------------------------------
   PROFILE — Compass
   ------------------------------------------------------------ */
html[data-event="ocean"] .bottom-nav-item[href*="/profile"] .bottom-nav-icon svg {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 100 20 10 10 0 000-20zm0 2a8 8 0 110 16 8 8 0 010-16zm3.5 4.5L10 10l-1.5 5.5L14 14l1.5-5.5zM12 11a1 1 0 110 2 1 1 0 010-2z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 100 20 10 10 0 000-20zm0 2a8 8 0 110 16 8 8 0 010-16zm3.5 4.5L10 10l-1.5 5.5L14 14l1.5-5.5zM12 11a1 1 0 110 2 1 1 0 010-2z'/></svg>") center/contain no-repeat;
}

/* ------------------------------------------------------------
   SHOP — Anchor
   ------------------------------------------------------------ */
html[data-event="ocean"] .bottom-nav-item[href*="/shop"] .bottom-nav-icon svg {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a3 3 0 100 6 3 3 0 000-6zm0 2a1 1 0 110 2 1 1 0 010-2zm1 5v2h4v2h-4v8.9A8 8 0 015.1 16H3v-2h4.6a6 6 0 004.4 5V11H8V9h4V7h2z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a3 3 0 100 6 3 3 0 000-6zm0 2a1 1 0 110 2 1 1 0 010-2zm1 5v2h4v2h-4v8.9A8 8 0 015.1 16H3v-2h4.6a6 6 0 004.4 5V11H8V9h4V7h2z'/></svg>") center/contain no-repeat;
}

/* ------------------------------------------------------------
   FAB PLUS — Wave anchor or plus
   ------------------------------------------------------------ */
html[data-event="ocean"] #fab-toggle svg {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5z'/></svg>") center/contain no-repeat;
}

/* ------------------------------------------------------------
   STORY ADD — Plus
   ------------------------------------------------------------ */
html[data-event="ocean"] .story-avatar-add svg,
html[data-event="ocean"] #open-story-composer svg {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5z'/></svg>") center/contain no-repeat;
}
/* ------------------------------------------------------------
   RANKING — Podium (bar chart)
   ------------------------------------------------------------ */
html[data-event="ocean"] .bottom-nav-item[href*="/leaderboard"] .bottom-nav-icon svg {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 20h4V10H4v10zm6 0h4V4h-4v16zm6 0h4v-6h-4v6z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 20h4V10H4v10zm6 0h4V4h-4v16zm6 0h4v-6h-4v6z'/></svg>") center/contain no-repeat;
}

/* ------------------------------------------------------------
   MASUK (login) — Door + Arrow
   ------------------------------------------------------------ */
html[data-event="ocean"] .bottom-nav-item[href*="/login"] .bottom-nav-icon svg {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 17l5-5-5-5v3H3v4h7v3zm9-14h-4v2h4v14h-4v2h4a2 2 0 002-2V5a2 2 0 00-2-2z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 17l5-5-5-5v3H3v4h7v3zm9-14h-4v2h4v14h-4v2h4a2 2 0 002-2V5a2 2 0 00-2-2z'/></svg>") center/contain no-repeat;
}
/* ============================================================
   OCEAN BUBBLES — gelembung naik dari bawah ke atas
   ============================================================ */

.schxoce-bubbles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.schxoce-bubble {
    position: absolute;
    left: var(--left, 50%);
    bottom: -40px;
    width: var(--size, 16px);
    height: var(--size, 16px);
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(220, 240, 255, calc(var(--opacity, 0.5) + 0.15)) 0%,
        rgba(140, 200, 255, var(--opacity, 0.5)) 55%,
        rgba(80, 150, 220, calc(var(--opacity, 0.5) * 0.6)) 100%
    );
    box-shadow:
        0 0 8px rgba(180, 220, 255, calc(var(--opacity, 0.5) * 0.6)),
        inset -2px -2px 4px rgba(255, 255, 255, 0.35),
        inset 2px 2px 4px rgba(80, 150, 220, 0.25);
    opacity: 0;
    animation: schxoce-bubble-rise var(--duration, 15s) linear infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

@keyframes schxoce-bubble-rise {
    0% {
        transform: translate(0, 0) scale(0.4);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    50% {
        transform: translate(calc(var(--drift, 0px) * 0.5), -50vh) scale(1);
        opacity: calc(var(--opacity, 0.5) + 0.15);
    }
    92% {
        opacity: calc(var(--opacity, 0.5) * 0.8);
    }
    100% {
        transform: translate(var(--drift, 0px), -110vh) scale(1.1);
        opacity: 0;
    }
}

/* Light mode — bubble lebih soft (biar gak keliatan aneh di background putih) */
html[data-theme="light"][data-event="ocean"] .schxoce-bubble {
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(120, 200, 240, 0.55) 55%,
        rgba(10, 135, 209, 0.25) 100%
    );
    box-shadow:
        0 0 8px rgba(140, 200, 240, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.5),
        inset 2px 2px 4px rgba(10, 135, 209, 0.15);
}

/* Mobile — kurangi jumlah bubble (performa) */
@media (max-width: 480px) {
    .schxoce-bubble:nth-child(n+13) {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .schxoce-bubble {
        display: none;
    }
}
/* ============================================================
   LIST PAGES (followers / following / search / dll)
   Beri solid background biar reef ocean gak tembus ke list.
   Fix khusus: halaman list user yang sebelumnya transparan.
   ============================================================ */
html[data-event="ocean"] .user-list {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 12px 16px;
    padding: 6px 0;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html[data-event="ocean"] .user-list .user-row {
    background: transparent;
    border-bottom: 1px solid var(--border);
}

html[data-event="ocean"] .user-list .user-row:last-child {
    border-bottom: none;
}

/* Light mode — solid putih biar konsisten */
html[data-theme="light"][data-event="ocean"] .user-list {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 1px 2px rgba(10, 37, 64, 0.04);
}

/* Container list serupa yang juga transparan */
html[data-event="ocean"] .search-results .user-list,
html[data-event="ocean"] .search-section .user-list {
    /* inherits dari .user-list di atas, cukup pastikan margin */
    margin-left: 16px;
    margin-right: 16px;
}
/* ============================================================
   FIX: reef nutupin user-list di followers/following/search
   Force opaque bg + stacking context biar reef ocean gak tembus.
   ============================================================ */
html[data-event="ocean"] .follows-header {
    background: #0a1f33 !important;
    border-bottom-color: #14304d !important;
    position: relative;
    z-index: 5;
    isolation: isolate;
}

html[data-event="ocean"] .user-list {
    background: #0a1f33 !important;
    border-color: #14304d !important;
    position: relative;
    z-index: 5;
    isolation: isolate;
}

html[data-event="ocean"] .user-row {
    background: #0a1f33 !important;
    border-bottom-color: #14304d !important;
    position: relative;
    z-index: 1;
}

html[data-event="ocean"] .user-row:hover,
html[data-event="ocean"] .user-row:focus-within {
    background: #0d2844 !important;
}

html[data-event="ocean"] .user-row-meta,
html[data-event="ocean"] .user-row-action {
    position: relative;
    z-index: 1;
}

/* Halaman search juga pakai pattern list serupa */
html[data-event="ocean"] .user-item {
    background: #0a1f33 !important;
    border-bottom-color: #14304d !important;
    position: relative;
    z-index: 1;
}

html[data-event="ocean"] .user-item-link:hover {
    background: #0d2844 !important;
}

/* Notifications juga pakai list serupa */
html[data-event="ocean"] .notif-list {
    background: #0a1f33 !important;
    border-color: #14304d !important;
    position: relative;
    z-index: 5;
    isolation: isolate;
}

html[data-event="ocean"] .notif-item {
    background: #0a1f33 !important;
    border-bottom-color: #14304d !important;
}

html[data-event="ocean"] .notif-item:hover {
    background: #0d2844 !important;
}

html[data-event="ocean"] .notif-item-unread {
    background: rgba(20, 184, 255, 0.08) !important;
}

/* DM list juga kena pattern sama */
html[data-event="ocean"] .dm-list {
    background: #0a1f33 !important;
    border-color: #14304d !important;
    position: relative;
    z-index: 5;
    isolation: isolate;
}

html[data-event="ocean"] .dm-item {
    background: #0a1f33 !important;
    border-bottom-color: #14304d !important;
}

html[data-event="ocean"] .dm-item:hover {
    background: #0d2844 !important;
}

/* Light mode */
html[data-theme="light"][data-event="ocean"] .follows-header,
html[data-theme="light"][data-event="ocean"] .user-list,
html[data-theme="light"][data-event="ocean"] .user-row,
html[data-theme="light"][data-event="ocean"] .user-item,
html[data-theme="light"][data-event="ocean"] .notif-list,
html[data-theme="light"][data-event="ocean"] .notif-item,
html[data-theme="light"][data-event="ocean"] .dm-list,
html[data-theme="light"][data-event="ocean"] .dm-item {
    background: #ffffff !important;
    border-color: #c9dceb !important;
}

/* ============================================================
   SOCHOUSE — EVENT THEME: FOREST
   Auto-applied kalau EVENT_THEME=forest di .env
   Scope: html[data-event="forest"]
   Light variant: html[data-theme="light"][data-event="forest"]
   ============================================================ */

/* ============================================================
   DARK MODE — BASE
   ============================================================ */
html[data-event="forest"] {
    color-scheme: dark;
    background-color: #07140d;

    /* ===== Forest palette ===== */
    --bg:             #07140d;
    --bg-elevated:    #0c2116;
    --bg-hover:       rgba(52, 211, 153, 0.06);

    --border:         #1a3a26;
    --border-strong:  #24543a;

    --text:           #e8f5ec;
    --text-muted:     #9cc5a8;
    --text-dim:       #6a947a;
    --text-faint:     #456b53;

    --accent:         #34d399;
    --accent-hover:   #6ee7b7;
    --accent-soft:    rgba(52, 211, 153, 0.14);

    --like:           #fb923c;
    --like-soft:      rgba(251, 146, 60, 0.12);

    --danger:         #ff5757;
    --danger-soft:    rgba(255, 87, 87, 0.10);

    --verified:       #34d399;
    --gold:           #facc15;
    --gold-soft:      rgba(250, 204, 21, 0.12);

    /* ===== Forest-specific tokens ===== */
    --forest-deep:     #07140d;
    --forest-mid:      #0c2116;
    --forest-surface:  #34d399;
    --forest-foam:     #bbf7d0;
    --forest-coral:    #fb923c;
    --forest-sand:     #facc15;
    --forest-glow:     rgba(52, 211, 153, 0.35);
}

/* ============================================================
   BACKGROUND — depth gradient (dark)
   ============================================================ */
html[data-event="forest"] body:not(.dm-body):not(.is-dm-page):not(.is-admin-page) {
    background: transparent !important;
    color: var(--text);
}

/* ============================================================
   DASHBOARD BACKGROUND — bg-forest.svg (fixed, mobile-safe)
   Body transparent, image + overlay via ::before
   ============================================================ */
html[data-event="forest"] body:not(.dm-body):not(.is-dm-page):not(.is-admin-page)::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(180deg,
            rgba(7, 20, 13, 0.25) 0%,
            rgba(7, 20, 13, 0.38) 40%,
            rgba(7, 20, 13, 0.68) 100%),
        url('/assets/img/bg-kalimantan.svg');
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}

/* ============================================================
   MASTHEAD / BOTTOM NAV
   ============================================================ */
html[data-event="forest"] .masthead {
    background: rgba(12, 33, 22, 0.75);
    -webkit-backdrop-filter: blur(28px) saturate(1.9);
    backdrop-filter: blur(28px) saturate(1.9);
    border-color: rgba(52, 211, 153, 0.14);
    box-shadow:
        0 0 0 1px rgba(52, 211, 153, 0.06),
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 20px 60px rgba(52, 211, 153, 0.08);
}

html[data-event="forest"] .bottom-nav {
    background: rgba(12, 33, 22, 0.92);
    border-top-color: rgba(52, 211, 153, 0.14);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
}

html[data-event="forest"] .bottom-nav-item {
    color: var(--text-dim);
}
html[data-event="forest"] .bottom-nav-item:hover,
html[data-event="forest"] .bottom-nav-item:focus-visible {
    color: var(--text-muted);
}
html[data-event="forest"] .bottom-nav-item.is-active {
    color: var(--accent);
}
html[data-event="forest"] .bottom-nav-item.is-active::after {
    background: var(--accent);
    box-shadow: 0 0 12px var(--forest-glow);
}

/* Search "island" — solid cyan */
html[data-event="forest"] .bottom-nav-item-search .bottom-nav-icon {
    background: linear-gradient(135deg, #34d399 0%, #16a34a 100%);
    border-color: rgba(187, 247, 208, 0.5);
    box-shadow:
        0 0 0 2px rgba(52, 211, 153, 0.2),
        0 8px 28px rgba(52, 211, 153, 0.5),
        0 0 60px rgba(52, 211, 153, 0.3);
}
html[data-event="forest"] .bottom-nav-item-search .bottom-nav-icon svg { stroke: #ffffff; }
html[data-event="forest"] .bottom-nav-item-search.is-active .bottom-nav-icon {
    background: #07140d;
}
html[data-event="forest"] .bottom-nav-item-search.is-active .bottom-nav-icon svg { stroke: var(--accent); }

/* ============================================================
   FAB
   ============================================================ */
html[data-event="forest"] .fab {
    background: linear-gradient(135deg, #34d399 0%, #16a34a 100%);
    box-shadow:
        0 8px 24px rgba(52, 211, 153, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(52, 211, 153, 0.3);
}
html[data-event="forest"] .fab:hover {
    box-shadow:
        0 12px 32px rgba(52, 211, 153, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 0 60px rgba(52, 211, 153, 0.4);
}

html[data-event="forest"] .fab-menu-item {
    background: var(--bg-elevated);
    border-color: rgba(52, 211, 153, 0.20);
    color: var(--text);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 24px rgba(52, 211, 153, 0.10);
}
html[data-event="forest"] .fab-menu-item:hover {
    border-color: var(--accent);
    background: rgba(52, 211, 153, 0.06);
}

html[data-event="forest"] .fab-rank {
    background: var(--bg-elevated);
    border-color: rgba(250, 204, 21, 0.35);
    color: var(--gold);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 20px rgba(250, 204, 21, 0.10);
}
html[data-event="forest"] .fab-rank.is-active {
    background: var(--gold);
    color: var(--forest-deep);
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
}

/* ============================================================
   BRAND — "SCH X KRHTL"
   ============================================================ */
html[data-event="forest"] .brand {
    font-size: 1.15rem;
    letter-spacing: 0.20em;
    color: #34d399 !important;
    text-shadow:
        0 0 14px rgba(52, 211, 153, 0.55),
        0 0 28px rgba(52, 211, 153, 0.25);
    font-weight: 900;
    text-transform: uppercase;
}
html[data-event="forest"] .brand:hover {
    color: #6ee7b7 !important;
}

@media (max-width: 420px) {
    html[data-event="forest"] .brand {
        font-size: 1.0rem;
        letter-spacing: 0.16em;
    }
}

/* ============================================================
   CARDS / PANELS
   ============================================================ */
html[data-event="forest"] .card,
html[data-event="forest"] .post-card,
html[data-event="forest"] .follows-header,
html[data-event="forest"] .bank-card,
html[data-event="forest"] .profile-user-card {
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.025) 0%, var(--bg-elevated) 24%);
    border-color: var(--border);
}
html[data-event="forest"] .card {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(52, 211, 153, 0.04);
}

/* ============================================================
   BUTTONS
   ============================================================ */
html[data-event="forest"] .button,
html[data-event="forest"] .auth-submit,
html[data-event="forest"] .btn-primary,
html[data-event="forest"] .admin-btn {
    background: linear-gradient(135deg, #34d399 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.35);
}
html[data-event="forest"] .button:hover,
html[data-event="forest"] .auth-submit:hover,
html[data-event="forest"] .btn-primary:hover,
html[data-event="forest"] .admin-btn:hover {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
    box-shadow: 0 6px 24px rgba(52, 211, 153, 0.5);
}
html[data-event="forest"] .button-link {
    color: var(--accent);
}
html[data-event="forest"] .button-link:hover {
    color: var(--accent-hover);
}

/* ============================================================
   FORMS / INPUTS
   ============================================================ */
html[data-event="forest"] .field input,
html[data-event="forest"] .field textarea,
html[data-event="forest"] .input-select,
html[data-event="forest"] .input-prefix {
    background: rgba(4, 14, 8, 0.7);
    border-color: var(--border-strong);
    color: var(--text);
}
html[data-event="forest"] .field input:focus,
html[data-event="forest"] .field textarea:focus,
html[data-event="forest"] .input-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============================================================
   STORY RING — gradien hutan
   ============================================================ */
html[data-event="forest"] .story-avatar-active::before {
    background: linear-gradient(135deg,
        #34d399 0%,
        #16a34a 25%,
        #bbf7d0 50%,
        #34d399 75%,
        #16a34a 100%);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}
html[data-event="forest"] .story-avatar-add {
    background: rgba(52, 211, 153, 0.10);
    border-color: rgba(52, 211, 153, 0.35);
    color: var(--accent);
}

/* ============================================================
   LIKE / REACTION — coral accent
   ============================================================ */
html[data-event="forest"] .post-action[data-liked="1"],
html[data-event="forest"] .comment-like-btn.is-liked {
    color: var(--forest-coral);
}

/* ============================================================
   VERIFIED BADGE
   ============================================================ */
html[data-event="forest"] .verified-badge svg path:first-child,
html[data-event="forest"] .verified-badge-img path:first-child {
    fill: var(--accent);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
html[data-event="forest"] ::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.20);
}
html[data-event="forest"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 211, 153, 0.35);
}


/* ============================================================
   ═══════════════════════════════════════════════════════════
   LIGHT MODE VARIANT
   ═══════════════════════════════════════════════════════════
   Tetap nuansa laut, versi cerah (soft sky blue)
   ============================================================ */

html[data-theme="light"][data-event="forest"] {
    color-scheme: light;
    background-color: #eef7f0;

    /* ===== Forest light palette ===== */
    --bg:             #eef7f0;
    --bg-elevated:    #ffffff;
    --bg-hover:       rgba(21, 128, 61, 0.06);

    --border:         #cfe3d4;
    --border-strong:  #a8cdb2;

    --text:           #0a2e1a;
    --text-muted:     #4a6b55;
    --text-dim:       #6b8a74;
    --text-faint:     #93b59c;

    --accent:         #15803d;
    --accent-hover:   #15803d;
    --accent-soft:    rgba(21, 128, 61, 0.10);

    --like:           #ea580c;
    --like-soft:      rgba(234, 88, 12, 0.08);

    --verified:       #15803d;
    --gold:           #c48a00;
    --gold-soft:      rgba(196, 138, 0, 0.12);

    --forest-deep:     #eef7f0;
    --forest-mid:      #ffffff;
    --forest-surface:  #15803d;
    --forest-foam:     #0f766e;
    --forest-coral:    #ea580c;
    --forest-sand:     #c48a00;
    --forest-glow:     rgba(21, 128, 61, 0.22);
}

/* ============================================================
   BACKGROUND — light (soft sky)
   ============================================================ */
html[data-theme="light"][data-event="forest"] body:not(.dm-body):not(.is-dm-page):not(.is-admin-page) {
    background: transparent !important;
    color: var(--text);
}

/* Dashboard background image — light overlay */
html[data-theme="light"][data-event="forest"] body:not(.dm-body):not(.is-dm-page):not(.is-admin-page)::before {
    background-image:
        linear-gradient(180deg,
            rgba(238, 247, 240, 0.70) 0%,
            rgba(238, 247, 240, 0.80) 40%,
            rgba(238, 247, 240, 0.92) 100%),
        url('/assets/img/bg-kalimantan.svg');
}

/* ============================================================
   MASTHEAD / BOTTOM NAV — light glass
   ============================================================ */
html[data-theme="light"][data-event="forest"] .masthead {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(28px) saturate(1.9);
    backdrop-filter: blur(28px) saturate(1.9);
    border-color: rgba(21, 128, 61, 0.14);
    box-shadow:
        0 0 0 1px rgba(21, 128, 61, 0.05),
        0 4px 20px rgba(10, 46, 26, 0.06),
        0 20px 60px rgba(21, 128, 61, 0.06);
}

html[data-theme="light"][data-event="forest"] .bottom-nav {
    background: rgba(255, 255, 255, 0.94);
    border-top-color: rgba(21, 128, 61, 0.14);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
}

html[data-theme="light"][data-event="forest"] .bottom-nav-item {
    color: var(--text-dim);
}
html[data-theme="light"][data-event="forest"] .bottom-nav-item:hover,
html[data-theme="light"][data-event="forest"] .bottom-nav-item:focus-visible {
    color: var(--text-muted);
}
html[data-theme="light"][data-event="forest"] .bottom-nav-item.is-active {
    color: var(--accent);
}
html[data-theme="light"][data-event="forest"] .bottom-nav-item.is-active::after {
    background: var(--accent);
    box-shadow: 0 0 12px var(--forest-glow);
}

html[data-theme="light"][data-event="forest"] .bottom-nav-item-search .bottom-nav-icon {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 2px rgba(21, 128, 61, 0.18),
        0 8px 24px rgba(21, 128, 61, 0.35),
        0 0 40px rgba(21, 128, 61, 0.20);
}
html[data-theme="light"][data-event="forest"] .bottom-nav-item-search .bottom-nav-icon svg { stroke: #ffffff; }
html[data-theme="light"][data-event="forest"] .bottom-nav-item-search.is-active .bottom-nav-icon {
    background: #ffffff;
    border-color: var(--accent);
}
html[data-theme="light"][data-event="forest"] .bottom-nav-item-search.is-active .bottom-nav-icon svg { stroke: var(--accent); }

/* ============================================================
   FAB — light
   ============================================================ */
html[data-theme="light"][data-event="forest"] .fab {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    box-shadow:
        0 8px 24px rgba(21, 128, 61, 0.40),
        0 2px 6px rgba(10, 46, 26, 0.10),
        0 0 32px rgba(21, 128, 61, 0.20);
}
html[data-theme="light"][data-event="forest"] .fab:hover {
    box-shadow:
        0 12px 32px rgba(21, 128, 61, 0.50),
        0 4px 10px rgba(10, 46, 26, 0.12),
        0 0 48px rgba(21, 128, 61, 0.28);
}

html[data-theme="light"][data-event="forest"] .fab-menu-item {
    background: #ffffff;
    border-color: rgba(21, 128, 61, 0.18);
    color: var(--text);
    box-shadow: 0 6px 20px rgba(10, 46, 26, 0.08), 0 0 20px rgba(21, 128, 61, 0.06);
}
html[data-theme="light"][data-event="forest"] .fab-menu-item:hover {
    border-color: var(--accent);
    background: rgba(21, 128, 61, 0.05);
}

html[data-theme="light"][data-event="forest"] .fab-rank {
    background: #ffffff;
    border-color: rgba(196, 138, 0, 0.35);
    color: var(--gold);
    box-shadow: 0 4px 14px rgba(10, 46, 26, 0.08), 0 0 20px rgba(196, 138, 0, 0.10);
}
html[data-theme="light"][data-event="forest"] .fab-rank.is-active {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
}

/* ============================================================
   BRAND — light mode
   ============================================================ */
html[data-theme="light"][data-event="forest"] .brand {
    font-size: 1.15rem;
    letter-spacing: 0.20em;
    color: #15803d !important;
    text-shadow:
        0 0 14px rgba(21, 128, 61, 0.28),
        0 0 28px rgba(21, 128, 61, 0.12);
    font-weight: 900;
    text-transform: uppercase;
}
html[data-theme="light"][data-event="forest"] .brand:hover {
    color: #15803d !important;
}

@media (max-width: 420px) {
    html[data-theme="light"][data-event="forest"] .brand {
        font-size: 1.0rem;
        letter-spacing: 0.16em;
    }
}

/* ============================================================
   CARDS / PANELS — light
   ============================================================ */
html[data-theme="light"][data-event="forest"] .card,
html[data-theme="light"][data-event="forest"] .post-card,
html[data-theme="light"][data-event="forest"] .follows-header,
html[data-theme="light"][data-event="forest"] .bank-card,
html[data-theme="light"][data-event="forest"] .profile-user-card {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 1px 2px rgba(10, 46, 26, 0.03), 0 0 40px rgba(21, 128, 61, 0.03);
}

/* ============================================================
   BUTTONS — light
   ============================================================ */
html[data-theme="light"][data-event="forest"] .button,
html[data-theme="light"][data-event="forest"] .auth-submit,
html[data-theme="light"][data-event="forest"] .btn-primary,
html[data-theme="light"][data-event="forest"] .admin-btn {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(21, 128, 61, 0.28);
}
html[data-theme="light"][data-event="forest"] .button:hover,
html[data-theme="light"][data-event="forest"] .auth-submit:hover,
html[data-theme="light"][data-event="forest"] .btn-primary:hover,
html[data-theme="light"][data-event="forest"] .admin-btn:hover {
    background: linear-gradient(135deg, #15803d 0%, #15803d 100%);
    box-shadow: 0 6px 24px rgba(21, 128, 61, 0.40);
}

html[data-theme="light"][data-event="forest"] .button-link {
    color: var(--accent);
}
html[data-theme="light"][data-event="forest"] .button-link:hover {
    color: var(--accent-hover);
}

/* ============================================================
   FORMS / INPUTS — light
   ============================================================ */
html[data-theme="light"][data-event="forest"] .field input,
html[data-theme="light"][data-event="forest"] .field textarea,
html[data-theme="light"][data-event="forest"] .input-select,
html[data-theme="light"][data-event="forest"] .input-prefix {
    background: #ffffff;
    border-color: var(--border-strong);
    color: var(--text);
}
html[data-theme="light"][data-event="forest"] .field input:focus,
html[data-theme="light"][data-event="forest"] .field textarea:focus,
html[data-theme="light"][data-event="forest"] .input-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============================================================
   STORY RING — light
   ============================================================ */
html[data-theme="light"][data-event="forest"] .story-avatar-active::before {
    background: linear-gradient(135deg,
        #15803d 0%,
        #0f766e 25%,
        #a3e635 50%,
        #15803d 75%,
        #166534 100%);
    box-shadow: 0 0 12px rgba(21, 128, 61, 0.30);
}
html[data-theme="light"][data-event="forest"] .story-avatar-add {
    background: rgba(21, 128, 61, 0.08);
    border-color: rgba(21, 128, 61, 0.32);
    color: var(--accent);
}

/* ============================================================
   LIKE / REACTION — light
   ============================================================ */
html[data-theme="light"][data-event="forest"] .post-action[data-liked="1"],
html[data-theme="light"][data-event="forest"] .comment-like-btn.is-liked {
    color: var(--forest-coral);
}

/* ============================================================
   VERIFIED BADGE — light
   ============================================================ */
html[data-theme="light"][data-event="forest"] .verified-badge svg path:first-child,
html[data-theme="light"][data-event="forest"] .verified-badge-img path:first-child {
    fill: var(--accent);
}

/* ============================================================
   SCROLLBAR — light
   ============================================================ */
html[data-theme="light"][data-event="forest"] ::-webkit-scrollbar-thumb {
    background: rgba(21, 128, 61, 0.20);
}
html[data-theme="light"][data-event="forest"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(21, 128, 61, 0.35);
}
/* ============================================================
   LIST PAGES (followers / following / search / dll)
   Beri solid background biar hutan gak tembus ke list.
   Fix khusus: halaman list user yang sebelumnya transparan.
   ============================================================ */
html[data-event="forest"] .user-list {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 12px 16px;
    padding: 6px 0;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html[data-event="forest"] .user-list .user-row {
    background: transparent;
    border-bottom: 1px solid var(--border);
}

html[data-event="forest"] .user-list .user-row:last-child {
    border-bottom: none;
}

/* Light mode — solid putih biar konsisten */
html[data-theme="light"][data-event="forest"] .user-list {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 1px 2px rgba(10, 46, 26, 0.04);
}

/* Container list serupa yang juga transparan */
html[data-event="forest"] .search-results .user-list,
html[data-event="forest"] .search-section .user-list {
    /* inherits dari .user-list di atas, cukup pastikan margin */
    margin-left: 16px;
    margin-right: 16px;
}
/* ============================================================
   FIX: reef nutupin user-list di followers/following/search
   Force opaque bg + stacking context biar hutan gak tembus.
   ============================================================ */
html[data-event="forest"] .follows-header {
    background: #0c2116 !important;
    border-bottom-color: #1a3a26 !important;
    position: relative;
    z-index: 5;
    isolation: isolate;
}

html[data-event="forest"] .user-list {
    background: #0c2116 !important;
    border-color: #1a3a26 !important;
    position: relative;
    z-index: 5;
    isolation: isolate;
}

html[data-event="forest"] .user-row {
    background: #0c2116 !important;
    border-bottom-color: #1a3a26 !important;
    position: relative;
    z-index: 1;
}

html[data-event="forest"] .user-row:hover,
html[data-event="forest"] .user-row:focus-within {
    background: #11301f !important;
}

html[data-event="forest"] .user-row-meta,
html[data-event="forest"] .user-row-action {
    position: relative;
    z-index: 1;
}

/* Halaman search juga pakai pattern list serupa */
html[data-event="forest"] .user-item {
    background: #0c2116 !important;
    border-bottom-color: #1a3a26 !important;
    position: relative;
    z-index: 1;
}

html[data-event="forest"] .user-item-link:hover {
    background: #11301f !important;
}

/* Notifications juga pakai list serupa */
html[data-event="forest"] .notif-list {
    background: #0c2116 !important;
    border-color: #1a3a26 !important;
    position: relative;
    z-index: 5;
    isolation: isolate;
}

html[data-event="forest"] .notif-item {
    background: #0c2116 !important;
    border-bottom-color: #1a3a26 !important;
}

html[data-event="forest"] .notif-item:hover {
    background: #11301f !important;
}

html[data-event="forest"] .notif-item-unread {
    background: rgba(52, 211, 153, 0.08) !important;
}

/* DM list juga kena pattern sama */
html[data-event="forest"] .dm-list {
    background: #0c2116 !important;
    border-color: #1a3a26 !important;
    position: relative;
    z-index: 5;
    isolation: isolate;
}

html[data-event="forest"] .dm-item {
    background: #0c2116 !important;
    border-bottom-color: #1a3a26 !important;
}

html[data-event="forest"] .dm-item:hover {
    background: #11301f !important;
}

/* Light mode */
html[data-theme="light"][data-event="forest"] .follows-header,
html[data-theme="light"][data-event="forest"] .user-list,
html[data-theme="light"][data-event="forest"] .user-row,
html[data-theme="light"][data-event="forest"] .user-item,
html[data-theme="light"][data-event="forest"] .notif-list,
html[data-theme="light"][data-event="forest"] .notif-item,
html[data-theme="light"][data-event="forest"] .dm-list,
html[data-theme="light"][data-event="forest"] .dm-item {
    background: #ffffff !important;
    border-color: #cfe3d4 !important;
}
/* ============================================================
   FOREST LEAVES — daun berguguran pelan dari atas
   ============================================================ */
.schforest-leaves {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.schforest-leaf {
    position: absolute;
    top: -40px;
    left: var(--left, 50%);
    width: var(--size, 14px);
    height: var(--size, 14px);
    border-radius: 0 100% 0 100%;
    background: linear-gradient(135deg, var(--c1, #86efac) 0%, var(--c2, #16a34a) 100%);
    opacity: 0;
    animation: schforest-leaf-fall var(--duration, 16s) linear infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

@keyframes schforest-leaf-fall {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10%  { opacity: var(--opacity, 0.6); }
    50%  { transform: translate(calc(var(--drift, 0px) * -0.6), 55vh) rotate(calc(var(--spin, 180deg) * 0.5)); }
    90%  { opacity: calc(var(--opacity, 0.6) * 0.7); }
    100% { transform: translate(var(--drift, 0px), 110vh) rotate(var(--spin, 180deg)); opacity: 0; }
}

html[data-theme="light"][data-event="forest"] .schforest-leaf {
    filter: saturate(1.1) brightness(0.92);
}

@media (max-width: 480px) {
    .schforest-leaf:nth-child(n+11) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .schforest-leaf { display: none; }
}

/* ============================================================
   ORNAMEN DAYAK — sulur pakis emas tipis (nuansa Kalimantan)
   Di bawah masthead & di atas bottom nav. Dekoratif saja.
   ============================================================ */
html[data-event="forest"] {
    --forest-dayak: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='8' viewBox='0 0 28 8'><path d='M0 6c3 0 4-4 7-4s3 3 1.6 3.6C7.3 6.2 6 5 7 4M14 6c3 0 4-4 7-4s3 3 1.6 3.6C21.3 6.2 20 5 21 4M7 2c3 0 4 4 7 4' fill='none' stroke='%23facc15' stroke-width='1.1' stroke-linecap='round'/></svg>");
}
html[data-event="forest"] .masthead::after {
    content: '';
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 3px;
    height: 8px;
    background: var(--forest-dayak) repeat-x center / 28px 8px;
    opacity: .45;
    pointer-events: none;
}
html[data-event="forest"] .bottom-nav::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 2px;
    height: 8px;
    background: var(--forest-dayak) repeat-x center / 28px 8px;
    opacity: .35;
    pointer-events: none;
}
html[data-theme="light"][data-event="forest"] .masthead::after,
html[data-theme="light"][data-event="forest"] .bottom-nav::before {
    opacity: .6;
    filter: brightness(.7) saturate(1.3);
}
