/* ============================================================
   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;
    }
}