/* ===================================================================
   Vista Brain Dashboard — Ocean Theme CSS
   Scoped under .home-ocean to prevent style leakage
   =================================================================== */

.home-ocean {
    font-family: 'Quicksand', sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow: clip;
    position: relative;
}

/* ═══════════════════════════════════════════════════════
   IMMERSIVE MODE — Hide sidebar/topbar when ocean active
   ═══════════════════════════════════════════════════════ */

body.ocean-immersive .sidebar {
    transform: translateX(-100%) !important;
    pointer-events: none;
}
body.ocean-immersive #main-content,
body.ocean-immersive .main-content {
    margin-left: 0 !important;
}
body.ocean-immersive .topbar,
body.ocean-immersive #topbar {
    display: none !important;
}
/* Smooth transitions for immersive toggle */
.sidebar,
#main-content,
.main-content,
.topbar,
#topbar {
    transition: transform .4s cubic-bezier(.4,0,.2,1), margin-left .4s cubic-bezier(.4,0,.2,1);
}

/* ── Floating nav pill — only visible in immersive mode ── */
.ocean-nav-pill {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    display: none;
    gap: 6px;
}
body.ocean-immersive .ocean-nav-pill {
    display: flex;
}
.ocean-nav-pill button {
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    padding: 8px 16px;
    cursor: pointer;
    transition: all .25s;
}
.ocean-nav-pill button:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.2);
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════
   FISH
   ═══════════════════════════════════════════════════════ */

.home-ocean .fish-sw {
    cursor: pointer;
    transition: filter .2s;
    will-change: left, top, transform;
}
.home-ocean .fish-sw:hover {
    filter: drop-shadow(0 0 14px rgba(255,255,255,.7)) drop-shadow(0 0 30px rgba(100,200,255,.4)) brightness(2);
}
.home-ocean .fish-sw.fish-nearby {
    animation: ocean-fishGlow 1.5s ease infinite !important;
}

/* ═══════════════════════════════════════════════════════
   TEAM CARDS — Glass Morphism
   ═══════════════════════════════════════════════════════ */

.home-ocean .ocean-team-wrap {
    border-radius: 21px;
    padding: 1px;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}
.home-ocean .ocean-team-wrap:hover {
    transform: translateY(-4px);
}
.home-ocean .ocean-team-card {
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}
.home-ocean .ocean-team-card:hover {
    background: rgba(255,255,255,.06);
}
/* Glow orb */
.home-ocean .ocean-team-card .glow-orb {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    opacity: .08;
    pointer-events: none;
    transition: opacity .35s;
}
.home-ocean .ocean-team-wrap:hover .glow-orb {
    opacity: .14;
}
/* Accent line at top */
.home-ocean .ocean-team-card .accent-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 3px;
    border-radius: 0 0 3px 3px;
}
/* Progress bar glow */
.home-ocean .ocean-progress-bar {
    height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,.06);
    overflow: hidden;
    margin-bottom: 6px;
    position: relative;
}
.home-ocean .ocean-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .5s;
    position: relative;
}
/* Online status glow */
.home-ocean .status-dot-on {
    box-shadow: 0 0 6px 2px rgba(34,197,94,.4);
    animation: ocean-statusPulse 2s ease infinite;
}

/* ═══════════════════════════════════════════════════════
   CREW
   ═══════════════════════════════════════════════════════ */

.home-ocean .crew-char { cursor: pointer; transition: transform .3s; }
.home-ocean .crew-char:hover { transform: scale(1.12) translateY(-10px) !important; }

/* ═══════════════════════════════════════════════════════
   EFFECTS — Sparkles, Bubbles, Shooting Stars
   ═══════════════════════════════════════════════════════ */

.home-ocean .water-sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
    box-shadow: 0 0 6px rgba(255,255,255,.4);
    pointer-events: none;
    z-index: 3;
}
.home-ocean .underwater-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.15), rgba(100,200,255,.05));
    border: 1px solid rgba(255,255,255,.08);
    pointer-events: none;
    z-index: 2;
}
.home-ocean .shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,.8), transparent);
    border-radius: 2px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    box-shadow: 0 0 8px rgba(255,255,255,.4);
}

/* ═══════════════════════════════════════════════════════
   BOATS — Wake trails
   ═══════════════════════════════════════════════════════ */

.home-ocean .ocean-boat { transition: filter .3s; }
.home-ocean .ocean-boat:hover { filter: drop-shadow(0 0 12px rgba(255,255,255,.3)); }

/* ═══════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════ */

/* Existing */
@keyframes ocean-wave1 { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes ocean-bob1 { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes ocean-bob2 { 0%,100% { transform: translateY(0) rotate(.5deg); } 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes ocean-bob3 { 0%,100% { transform: translateY(-2px) rotate(-.5deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes ocean-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ocean-fadeIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes ocean-slideDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 400px; } }
@keyframes ocean-popIn { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes ocean-cloud { 0% { transform: translateX(-200px); } 100% { transform: translateX(120vw); } }
@keyframes ocean-bird { 0% { left: -40px; top: 12%; } 50% { top: 8%; } 100% { left: 110%; top: 14%; } }
@keyframes ocean-sparkle { 0%,100% { opacity: 0; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes ocean-blink { 0%,90%,100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes ocean-breathe { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.03); } }
@keyframes ocean-armWave { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-20deg); } 75% { transform: rotate(15deg); } }
@keyframes ocean-lighthouse { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes ocean-seaweed { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes ocean-lightRay { 0%,100% { opacity: .03; } 50% { opacity: .08; } }
@keyframes ocean-bubble { 0% { transform: translateY(0); opacity: .5; } 100% { transform: translateY(-80px); opacity: 0; } }
@keyframes ocean-boomUp { 0% { transform: scale(1) translateY(0); opacity: 1; } 100% { transform: scale(3) translateY(-70px); opacity: 0; } }
@keyframes ocean-slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ocean-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes ocean-fishWiggle { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes ocean-ideaPulse { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes ocean-alertBlink { 0%,100% { opacity: 1; } 50% { opacity: .7; } }

/* ── New Animations ── */

/* Fish glow when near fisherman */
@keyframes ocean-fishGlow {
    0%,100% { filter: drop-shadow(0 0 6px rgba(255,200,50,.3)) brightness(1.2); }
    50% { filter: drop-shadow(0 0 16px rgba(255,200,50,.6)) brightness(1.5); }
}

/* Nibble — line shake when fish bites */
@keyframes ocean-nibble {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

/* Water shimmer on boat waterline */
@keyframes ocean-waterShimmer {
    0%,100% { opacity: .15; stroke-dashoffset: 0; }
    50% { opacity: .4; stroke-dashoffset: 12; }
}

/* Bubbles rising */
@keyframes ocean-bubbleRise {
    0% { transform: translateY(0) translateX(0); opacity: .4; }
    25% { transform: translateY(-25px) translateX(3px); }
    50% { transform: translateY(-50px) translateX(-2px); opacity: .3; }
    75% { transform: translateY(-75px) translateX(4px); }
    100% { transform: translateY(-110px) translateX(0); opacity: 0; }
}

/* Shooting star streak */
@keyframes ocean-shootingStar {
    0% { opacity: 0; transform: translate(0, 0) rotate(-35deg); }
    10% { opacity: 1; }
    100% { opacity: 0; transform: translate(250px, 120px) rotate(-35deg); }
}

/* Status dot pulse for online team */
@keyframes ocean-statusPulse {
    0%,100% { box-shadow: 0 0 6px 2px rgba(34,197,94,.4); }
    50% { box-shadow: 0 0 10px 4px rgba(34,197,94,.6); }
}

/* Captain idle — subtle salute */
@keyframes ocean-captainIdle {
    0%,85%,100% { transform: rotate(0); }
    90% { transform: rotate(-35deg); }
}

/* Sailor idle — looking around */
@keyframes ocean-sailorIdle {
    0%,80%,100% { transform: rotate(0); }
    85% { transform: rotate(15deg) translateX(2px); }
    90% { transform: rotate(-15deg) translateX(-2px); }
}

/* Chef idle — stirring */
@keyframes ocean-chefIdle {
    0%,75%,100% { transform: rotate(0); }
    80% { transform: rotate(-25deg); }
    85% { transform: rotate(15deg); }
    90% { transform: rotate(-20deg); }
}

/* ═══════════════════════════════════════════════════════
   WEATHER HUD (Big, with date picker)
   ═══════════════════════════════════════════════════════ */

.home-ocean .ocean-weather-hud {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 8px 12px 4px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
    animation: ocean-slideUp .5s ease both;
}

.home-ocean .ocean-weather-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-ocean .ocean-weather-now {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 8px 2px 4px;
    border-right: 1px solid rgba(255,255,255,.08);
    margin-right: 2px;
}

.home-ocean .ocean-weather-dates {
    display: flex;
    gap: 1px;
    margin-top: 4px;
    padding: 2px;
    background: rgba(255,255,255,.02);
    border-radius: 8px;
    overflow-x: auto;
}

.home-ocean .ocean-weather-dates button:hover {
    background: rgba(255,255,255,.08) !important;
    color: rgba(255,255,255,.7) !important;
}

.home-ocean .ocean-weather-dates button.active {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
}

.home-ocean .ocean-weather-slot {
    text-align: center;
    padding: 4px 8px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    transition: all .25s;
}

.home-ocean .ocean-weather-slot.active {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
}

.home-ocean .ocean-weather-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 4px 2px 8px;
    border-left: 1px solid rgba(255,255,255,.08);
    margin-left: 2px;
}

/* ═══════════════════════════════════════════════════════
   SANTORINI CALDERA SILHOUETTE
   ═══════════════════════════════════════════════════════ */

.home-ocean .ocean-caldera {
    position: absolute;
    bottom: 48%;
    left: 0;
    right: 0;
    height: 180px;
    z-index: 2;
    pointer-events: none;
    opacity: .6;
    animation: ocean-fadeIn 2s ease;
}

/* ═══════════════════════════════════════════════════════
   HORIZON GLOW
   ═══════════════════════════════════════════════════════ */

.home-ocean .ocean-horizon-glow {
    position: absolute;
    bottom: 44%;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 1;
    pointer-events: none;
    animation: ocean-horizonPulse 8s ease infinite;
}

@keyframes ocean-horizonPulse {
    0%,100% { opacity: .6; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   WOODEN PIER
   ═══════════════════════════════════════════════════════ */

.home-ocean .ocean-pier {
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    z-index: 15;
}

.home-ocean .pier-planks {
    display: flex;
    gap: 2px;
    height: 14px;
    padding: 0 6px;
}

.home-ocean .pier-plank {
    flex: 1;
    background: linear-gradient(180deg, #a0783c, #8B6914, #6B4F0A);
    border-radius: 1.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,.3);
    border-top: 1px solid rgba(255,255,255,.08);
}

.home-ocean .pier-posts {
    position: relative;
    height: 30px;
}

.home-ocean .pier-post {
    position: absolute;
    top: 0;
    width: 8px;
    height: 28px;
    background: linear-gradient(180deg, #7a5c1a, #5a4010);
    border-radius: 2px;
    box-shadow: 2px 2px 6px rgba(0,0,0,.3);
    transform: translateX(-50%);
}

.home-ocean .pier-post::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -1px;
    width: 10px;
    height: 4px;
    background: #8B6914;
    border-radius: 2px;
}

.home-ocean .pier-rope {
    position: absolute;
    top: 8px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(200,180,140,.2);
    border-bottom: 1px dashed rgba(200,180,140,.15);
}

/* ═══════════════════════════════════════════════════════
   LIGHTHOUSE (CSS-based, replaces inline styles)
   ═══════════════════════════════════════════════════════ */

.home-ocean .ocean-lighthouse-wrap {
    position: absolute;
    right: 4%;
    top: 24%;
    z-index: 12;
}

.home-ocean .ocean-lighthouse-tower {
    width: 20px;
    height: 65px;
    background: repeating-linear-gradient(180deg, #fff 0px, #fff 8px, #ef4444 8px, #ef4444 16px);
    border-radius: 5px 5px 0 0;
    position: relative;
    box-shadow: 2px 4px 12px rgba(0,0,0,.3);
}

.home-ocean .ocean-lighthouse-top {
    position: absolute;
    top: -16px;
    left: -5px;
    width: 30px;
    height: 16px;
    background: linear-gradient(180deg, #fbbf24, #d97706);
    border-radius: 8px 8px 2px 2px;
    box-shadow: 0 0 24px rgba(251,191,36,.5), 0 0 60px rgba(251,191,36,.2);
}

.home-ocean .ocean-lighthouse-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 5px;
    background: linear-gradient(90deg, rgba(251,191,36,.35), rgba(251,191,36,.05), transparent);
    transform-origin: 0 50%;
    animation: ocean-lighthouse 8s linear infinite;
    filter: blur(3px);
}

.home-ocean .ocean-lighthouse-base {
    position: absolute;
    bottom: -6px;
    left: -3px;
    width: 26px;
    height: 6px;
    background: #5a5a5a;
    border-radius: 0 0 3px 3px;
}

/* ═══════════════════════════════════════════════════════
   KPI SUMMARY STRIP
   ═══════════════════════════════════════════════════════ */

.home-ocean .ocean-kpi-strip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    animation: ocean-slideUp .6s ease .3s both;
}

.home-ocean .ocean-kpi-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
}

.home-ocean .ocean-kpi-icon {
    font-size: 18px;
}

.home-ocean .ocean-kpi-value {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.home-ocean .ocean-kpi-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.home-ocean .ocean-kpi-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,.08);
}

/* KPI hidden state — starts hidden, toggled by boss */
.home-ocean .ocean-kpi-strip.ocean-kpi-hidden {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(20px) !important;
    pointer-events: none !important;
    animation: none !important;
}

.home-ocean .ocean-kpi-strip {
    transition: opacity .4s ease, transform .4s ease;
    position: relative;
}

/* Close button inside KPI strip */
.home-ocean .ocean-kpi-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.6);
    color: rgba(255,255,255,.4);
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.home-ocean .ocean-kpi-close:hover {
    background: rgba(239,68,68,.3);
    color: #fff;
    border-color: rgba(239,68,68,.5);
}

/* KPI strip — injected on body for true fixed positioning */
.ocean-kpi-strip-fixed {
    position: fixed !important;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    transition: opacity .4s ease, transform .4s ease;
}
.ocean-kpi-strip-fixed.ocean-kpi-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}
.ocean-kpi-strip-fixed .ocean-kpi-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
}
.ocean-kpi-strip-fixed .ocean-kpi-icon {
    font-size: 18px;
}
.ocean-kpi-strip-fixed .ocean-kpi-value {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.ocean-kpi-strip-fixed .ocean-kpi-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ocean-kpi-strip-fixed .ocean-kpi-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,.08);
}
.ocean-kpi-strip-fixed .ocean-kpi-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.6);
    color: rgba(255,255,255,.4);
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.ocean-kpi-strip-fixed .ocean-kpi-close:hover {
    background: rgba(239,68,68,.3);
    color: #fff;
    border-color: rgba(239,68,68,.5);
}

/* Boss toggle button — injected on body, true fixed positioning */
.ocean-kpi-toggle-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(251,191,36,.25);
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,.4), 0 0 12px rgba(251,191,36,.1);
    transition: all .3s;
    animation: ocean-float 3s ease infinite;
}
.ocean-kpi-toggle-fixed:hover {
    transform: scale(1.15);
    border-color: rgba(251,191,36,.5);
    box-shadow: 0 4px 24px rgba(251,191,36,.25), 0 0 20px rgba(251,191,36,.15);
}

/* ═══════════════════════════════════════════════════════
   UNDERWATER SECTION
   ═══════════════════════════════════════════════════════ */

.home-ocean .ocean-underwater-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    background: linear-gradient(180deg,
        rgba(5,40,90,.95) 0%,
        #07304a 8%,
        #052a40 20%,
        #042035 40%,
        #031828 60%,
        #021020 80%,
        #010815 100%
    );
    overflow: visible;
}
/* Clip only the decorative fish/bubbles container */
.home-ocean #ocean-fish-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.home-ocean #ocean-fish-container .fish-sw {
    pointer-events: auto;
}

/* Sandy bottom gradient */
.home-ocean .ocean-sandy-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(120,90,40,.06) 40%, rgba(140,110,50,.1));
    pointer-events: none;
}

/* Coral groups */
.home-ocean .ocean-coral-group {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    opacity: .8;
    animation: ocean-seaweed 6s ease infinite;
}

/* ═══════════════════════════════════════════════════════
   MODULE CARDS (Improved)
   ═══════════════════════════════════════════════════════ */

.home-ocean .ocean-modules-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.home-ocean .ocean-module-card {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-ocean .ocean-module-card:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255,255,255,.06);
    border-color: var(--mod-color, rgba(255,255,255,.15));
    box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 20px color-mix(in srgb, var(--mod-color) 15%, transparent);
}

.home-ocean .ocean-module-icon {
    font-size: 24px;
    transition: transform .3s;
}

.home-ocean .ocean-module-card:hover .ocean-module-icon {
    transform: scale(1.15);
}

.home-ocean .ocean-module-name {
    font-size: 9px;
    font-weight: 700;
    color: var(--mod-color, rgba(255,255,255,.5));
    letter-spacing: .3px;
}

.home-ocean .ocean-module-live {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,.5);
    animation: ocean-statusPulse 2s ease infinite;
}

/* ── Full bleed override ── */
.home-fullbleed {
    padding: 0 !important;
    max-width: none !important;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Ocean Mobile
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .home-ocean .ocean-kpi-strip {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 4px;
        border-radius: 14px;
        bottom: 1%;
    }
    .home-ocean .ocean-kpi-item {
        padding: 4px 8px;
    }
    .home-ocean .ocean-kpi-value {
        font-size: 13px;
    }
    .home-ocean .ocean-kpi-divider {
        display: none;
    }
    .home-ocean .ocean-pier {
        width: 240px;
    }
    .home-ocean .ocean-modules-grid {
        gap: 6px;
    }
    .home-ocean .ocean-module-card {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }
    .home-ocean .ocean-module-icon {
        font-size: 20px;
    }
    .home-ocean .ocean-caldera {
        height: 120px;
    }
    .home-ocean .ocean-weather-hud {
        min-width: auto;
        width: calc(100% - 24px);
        left: 12px;
        transform: none;
        border-radius: 14px;
        padding: 10px 12px 8px;
    }
    .home-ocean .ocean-weather-header {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .home-ocean .ocean-weather-grid {
        gap: 2px;
    }
    .home-ocean .ocean-weather-slot {
        padding: 6px 2px;
    }
    .ocean-kpi-toggle-fixed {
        width: 36px;
        height: 36px;
        font-size: 14px;
        bottom: 12px;
        right: 12px;
    }
}

/* ═══════════════════════════════════════════════════════
   MOON/SUN REFLECTION — shimmer on water surface
   ═══════════════════════════════════════════════════════ */
@keyframes ocean-shimmer {
    0%, 100% { opacity: .5; transform: translateX(-50%) scaleX(1); }
    25% { opacity: .8; transform: translateX(-50%) scaleX(1.6); }
    50% { opacity: .3; transform: translateX(-50%) scaleX(.7); }
    75% { opacity: .7; transform: translateX(-50%) scaleX(1.3); }
}

/* ═══════════════════════════════════════════════════════
   BIOLUMINESCENT PARTICLES — glowing plankton in water
   ═══════════════════════════════════════════════════════ */
@keyframes ocean-biolum {
    0%, 100% { opacity: 0; transform: translate(0, 0) scale(.5); }
    15% { opacity: .8; transform: translate(3px, -4px) scale(1); }
    40% { opacity: .5; transform: translate(-2px, -8px) scale(.8); }
    60% { opacity: .9; transform: translate(4px, -3px) scale(1.1); }
    85% { opacity: .3; transform: translate(-1px, -6px) scale(.6); }
}

/* ═══════════════════════════════════════════════════════
   PIER FAIRY LIGHTS — warm golden string lights
   ═══════════════════════════════════════════════════════ */
.home-ocean .pier-fairy-light {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd475, #ffb830);
    box-shadow: 0 0 4px rgba(255,200,80,.6), 0 0 10px rgba(255,180,60,.25), 0 0 20px rgba(255,160,40,.1);
    z-index: 4;
    animation: ocean-fairyPulse 3s ease infinite;
}
@keyframes ocean-fairyPulse {
    0%, 100% { opacity: var(--base-op, .6); box-shadow: 0 0 4px rgba(255,200,80,.5), 0 0 8px rgba(255,180,60,.2); }
    50% { opacity: 1; box-shadow: 0 0 6px rgba(255,200,80,.8), 0 0 14px rgba(255,180,60,.4), 0 0 24px rgba(255,160,40,.15); }
}
