/* ══════════════════════════════════════════════════════════════
   SIPGAM TV Digital — Gampong Mulia
   55" FHD 1920×1080 | "Smart Village" Digital Signage
══════════════════════════════════════════════════════════════ */
:root {
    --gold: #f59e0b;
    --gold2: #fcd34d;
    --blue: #3b82f6;
    --blue2: #60a5fa;
    --blue3: #1d4ed8;
    --cyan: #00e5ff;
    --cyan2: #22d3ee;
    --green: #00ff88;
    --green2: #10b981;
    --purple: #c084fc;
    --orange: #fb923c;
    --red: #f87171;
    --pink: #f472b6;
    --text: #ffffff;
    --dim: rgba(160, 210, 255, .75);
    --border: rgba(0, 200, 255, .35);
    --card: rgba(10, 32, 95, .82);
    --bg: #060f1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

/* Grid pattern + radial glow — "smart city" tech feel */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 200, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, .06) 1px, transparent 1px),
        radial-gradient(ellipse 75% 70% at 55% 50%, rgba(29, 78, 216, .18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 20% 80%, rgba(0, 229, 255, .06) 0%, transparent 60%);
    background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%;
}

body>* {
    position: relative;
    z-index: 1;
}

/* ══ HEADER ════════════════════════════════════════════════ */
header {
    height: 68px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #030c20 0%, #0c1e5a 30%, #1a3aaa 50%, #0c1e5a 70%, #030c20 100%);
    border-bottom: 2px solid rgba(0, 200, 255, .5);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 100, 255, .35);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1d4ed8, var(--cyan), #fff, var(--cyan), #1d4ed8, transparent);
    animation: hglow 3.5s ease-in-out infinite;
}

@keyframes hglow {

    0%,
    100% {
        opacity: .55
    }

    50% {
        opacity: 1
    }
}

.h-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.h-logo img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 0 14px rgba(0, 229, 255, .9));
}

.h-logo-text h1 {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 229, 255, .6);
}

.h-logo-text p {
    font-size: 0.62rem;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-top: 1px;
}

.h-div {
    width: 1px;
    height: 38px;
    background: rgba(0, 200, 255, .3);
    margin: 0 20px;
    flex-shrink: 0;
}

.h-gampong {
    flex: 1;
    text-align: center;
}

.h-gampong .nama {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--cyan);
    /* fallback solid */
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, .5));
}

.h-gampong .sub {
    font-size: 0.64rem;
    color: rgba(160, 220, 255, .9);
    letter-spacing: 2.5px;
    margin-top: 2px;
}

.h-time {
    text-align: right;
    flex-shrink: 0;
}

.h-time .clock {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 229, 255, .7);
}

.h-time .date {
    font-size: 0.66rem;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 2px;
}

.h-time .hijri {
    font-size: 0.58rem;
    color: rgba(160, 230, 200, .8);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ══ HEADER — JADWAL SHOLAT ═════════════════════════════════ */
.h-sholat {
    flex-shrink: 0;
    text-align: center;
    min-width: 130px;
}

.h-sholat .sholat-label {
    font-size: 0.56rem;
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
    opacity: .85;
}

.h-sholat .sholat-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    justify-content: center;
}

.h-sholat .sholat-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
}

.h-sholat .sholat-time {
    font-size: 1.05rem;
    font-weight: 900;
    color: #fde68a;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px rgba(253, 230, 138, .6);
}

.h-sholat .sholat-countdown {
    font-size: 0.6rem;
    color: rgba(160, 220, 255, .8);
    margin-top: 2px;
    font-weight: 600;
    letter-spacing: .5px;
}

/* ══ HEADER — CUACA ═════════════════════════════════════════ */
.h-cuaca {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.h-cuaca .cuaca-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.h-cuaca .cuaca-info {
    text-align: left;
}

.h-cuaca .cuaca-temp {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: 1px;
    text-shadow: 0 0 14px rgba(0, 229, 255, .5);
}

.h-cuaca .cuaca-desc {
    font-size: 0.58rem;
    color: rgba(160, 220, 255, .85);
    font-weight: 600;
    letter-spacing: .5px;
    margin-top: 2px;
}

/* ══ MAIN GRID ══════════════════════════════════════════════ */
.tv-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 980px 1fr;
    gap: 10px;
    padding: 10px;
    overflow: hidden;
    min-height: 0;
}

/* ══ LEFT: HERO + 3 CHARTS ═══════════════════════════════════ */
.col-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    min-height: 0;
}

/* Hero Box */
.hero-box {
    flex-shrink: 0;
    border-radius: 20px;
    padding: 18px 20px;
    background: linear-gradient(155deg, #0e2a7a 0%, #1640b0 45%, #0a1e6a 100%);
    border: 1px solid rgba(0, 220, 255, .5);
    box-shadow: 0 0 50px rgba(0, 150, 255, .35), 0 0 100px rgba(29, 78, 216, .15), inset 0 1px 0 rgba(255, 255, 255, .1);
    position: relative;
    overflow: hidden;
}

.hero-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, rgba(0, 200, 255, .07) 0, rgba(0, 200, 255, .07) 1px, transparent 1px, transparent 26px),
        repeating-linear-gradient(90deg, rgba(0, 200, 255, .07) 0, rgba(0, 200, 255, .07) 1px, transparent 1px, transparent 26px);
}

.hero-box::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(245, 158, 11, .3) 0%, transparent 65%);
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 229, 255, .6);
}

.hero-jiwa-val {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: #fcd34d;
    position: relative;
    z-index: 2;
}

/* Gradient dihapus — Samsung TV Chrome 56 lolos @supports tapi render transparan */

@keyframes jPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 16px rgba(245, 158, 11, .6));
    }

    50% {
        filter: drop-shadow(0 0 36px rgba(245, 158, 11, .95));
    }
}

.hero-jiwa-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .75);
    margin-top: 3px;
}

.hero-kk-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.72rem;
    color: rgba(200, 230, 255, .75);
}

.hero-kk-row strong {
    color: var(--cyan);
    font-size: 1rem;
    font-weight: 900;
    text-shadow: 0 0 12px rgba(0, 229, 255, .7);
}

.hero-gender {
    display: flex;
    gap: 7px;
    margin-top: 8px;
}

.hg-pill {
    flex: 1;
    border-radius: 12px;
    padding: 8px 10px;
    text-align: center;
}

.hg-pill.lk {
    background: rgba(59, 130, 246, .25);
    border: 1px solid rgba(96, 165, 250, .5);
}

.hg-pill.pr {
    background: rgba(244, 114, 182, .2);
    border: 1px solid rgba(244, 114, 182, .45);
}

.hg-pill i {
    display: block;
    font-size: 0.7rem;
    margin-bottom: 3px;
}

.hg-pill.lk i {
    color: var(--cyan);
}

.hg-pill.pr i {
    color: var(--pink);
}

.hg-val {
    font-size: 1.3rem;
    font-weight: 900;
}

.hg-pill.lk .hg-val {
    color: #93c5fd;
    text-shadow: 0 0 12px rgba(147, 197, 253, .6);
}

.hg-pill.pr .hg-val {
    color: #fda4af;
    text-shadow: 0 0 12px rgba(253, 164, 175, .6);
}

.hg-lbl {
    font-size: 0.56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dim);
    margin-top: 1px;
}

/* ── Chart Cards (shared) ── */
.chart-cc {
    flex: 1;
    min-height: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-top-width: 3px;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 80, 200, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
    /* Swipe horizontal: izinkan scroll vertikal, tangkap gesture horizontal */
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.chart-cc.c-usia {
    border-top-color: var(--gold);
    box-shadow: 0 4px 24px rgba(0, 80, 200, .2), 0 -1px 12px rgba(245, 158, 11, .25);
}

.chart-cc.c-jurong {
    border-top-color: var(--cyan);
    box-shadow: 0 4px 24px rgba(0, 80, 200, .2), 0 -1px 12px rgba(0, 229, 255, .25);
}

/* Kolom kiri & kanan — ukuran bar untuk TV 55" jarak jauh */
.col-left .chart-cc,
.col-right .chart-cc {
    padding: 8px 12px;
}

.col-left .ct-hd,
.col-right .ct-hd {
    margin-bottom: 4px;
}

.col-left .bar-row,
.col-right .bar-row {
    margin-bottom: 3px;
    gap: 8px;
}

.col-left .bar-track,
.col-right .bar-track {
    height: 8px;
}

.col-left .bar-lbl,
.col-right .bar-lbl {
    font-size: 0.88rem;
    width: 100px;
}

.col-left .bv-num,
.col-right .bv-num {
    font-size: 0.92rem;
}

.col-left .bv-pct,
.col-right .bv-pct {
    font-size: 0.65rem;
}

.chart-cc.c-agama {
    border-top-color: var(--purple);
    box-shadow: 0 4px 24px rgba(0, 80, 200, .2), 0 -1px 12px rgba(192, 132, 252, .25);
}

.chart-cc.c-nikah {
    border-top-color: var(--blue2);
    box-shadow: 0 4px 24px rgba(0, 80, 200, .2), 0 -1px 12px rgba(96, 165, 250, .25);
}

.chart-cc.c-sehat {
    border-top-color: var(--red);
    box-shadow: 0 4px 24px rgba(0, 80, 200, .2), 0 -1px 12px rgba(248, 113, 113, .25);
}

.chart-cc.c-didik {
    border-top-color: var(--orange);
    box-shadow: 0 4px 24px rgba(0, 80, 200, .2), 0 -1px 12px rgba(251, 146, 60, .25);
}

.ct-hd {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(200, 230, 255, .9);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.ct-hd i {
    font-size: 0.88rem;
}

.ct-bars {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
}

.bar-row:last-child {
    margin-bottom: 0;
}

.bar-lbl {
    width: 100px;
    font-size: 0.90rem;
    color: rgba(200, 230, 255, .85);
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-track {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, .1);
    border-radius: 0;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 0;
    transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

.bar-val {
    width: 65px;
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.bv-num {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.bv-pct {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(160, 220, 255, .65);
    line-height: 1;
}

.bar-empty {
    font-size: 0.68rem;
    color: var(--dim);
    text-align: center;
    padding: 8px;
    opacity: .6;
}

/* ══ CENTER: MEDIA (BIG) + SURAT ════════════════════════════ */
.col-center {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    min-height: 0;
}

/* ── Media Hero (LARGE) ── */
.media-hero {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #050e1c;
    border: 1px solid rgba(0, 200, 255, .45);
    min-height: 0;
    box-shadow: 0 0 50px rgba(0, 180, 255, .2), 0 0 2px rgba(0, 229, 255, .6);
}

/* HUD corner accents */
.media-hero::before,
.media-hero::after,
.corner-tr,
.corner-bl {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 10;
    pointer-events: none;
}

.media-hero::before {
    top: 10px;
    left: 10px;
    border-top: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
    border-radius: 4px 0 0 0;
    box-shadow: -3px -3px 8px rgba(0, 229, 255, .4);
}

.media-hero::after {
    bottom: 10px;
    right: 10px;
    border-bottom: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
    border-radius: 0 0 4px 0;
    box-shadow: 3px 3px 8px rgba(0, 229, 255, .4);
}

.corner-tr {
    top: 10px;
    right: 10px;
    border-top: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
    border-radius: 0 4px 0 0;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    border-bottom: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
    border-radius: 0 0 0 4px;
}

.media-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Backdrop blur layer — filled behind the main image */
.media-bg-blur {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(.45) saturate(1.2);
    transform: scale(1.08);
    /* hide blur edge artifact */
    z-index: 0;
}

/* Main image: contain so nothing is cropped, sits above blur */
.media-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.media-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.media-ph {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(0, 200, 255, .3);
}

.media-ph i {
    font-size: 4rem;
}

.media-ph p {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.media-ph small {
    font-size: 0.7rem;
    color: rgba(0, 200, 255, .2);
    letter-spacing: 2px;
}

.media-text-slide {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    background: linear-gradient(145deg, #050e20 0%, #0e2a70 50%, #050e20 100%);
}

.mts-icon {
    font-size: 2rem;
    color: var(--gold);
    animation: jPulse 2.5s ease-in-out infinite;
}

.mts-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.mts-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    line-height: 1.45;
    max-width: 80%;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}

.mts-date {
    font-size: 0.66rem;
    color: var(--dim);
}

.media-cap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 20px 14px;
    background: linear-gradient(to top, rgba(1, 5, 18, .92) 0%, transparent 100%);
    z-index: 5;
}

.media-cap-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.media-badge {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(0, 180, 255, .25);
    border: 1px solid rgba(0, 229, 255, .55);
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, .6);
}

.media-cap-date {
    font-size: 0.6rem;
    color: rgba(200, 230, 255, .6);
}

.media-cap-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}

.media-nav {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.media-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .3);
    transition: all .35s ease;
}

.media-dot.active {
    width: 18px;
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 229, 255, .7);
}

/* ── Surat Queue ── */
.surat-queue {
    flex-shrink: 0;
    height: 210px;
}

.surat-queue.sq-compact {
    height: 140px; /* tidak lagi dipakai — surat dipindah ke bottom-panels */
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 80, 200, .2), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.sq-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0, 80, 255, .12);
    border-bottom: 1px solid rgba(0, 200, 255, .15);
    flex-shrink: 0;
}

.sq-title {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(200, 235, 255, .9);
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sq-stats {
    display: flex;
    gap: 4px;
}

.sqp {
    font-size: 0.56rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.sqp b {
    font-size: 0.7rem;
    font-weight: 900;
}

.sqp.bl {
    background: rgba(59, 130, 246, .2);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, .35);
}

.sqp.gd {
    background: rgba(245, 158, 11, .18);
    color: var(--gold2);
    border: 1px solid rgba(245, 158, 11, .35);
}

.sqp.gr {
    background: rgba(0, 255, 136, .12);
    color: #4ade80;
    border: 1px solid rgba(0, 255, 136, .3);
}

.sqp.rd {
    background: rgba(248, 113, 113, .15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, .3);
}

.sqp.yd {
    background: rgba(250, 204, 21, .15);
    color: #fde047;
    border: 1px solid rgba(250, 204, 21, .35);
}

.bp-surat-hariini {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0 5px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 5px;
}

.surat-hari-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #fde047;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-right: 2px;
    white-space: nowrap;
}

.sq-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.sq-body-inner {
    transition: transform .8s cubic-bezier(.4, 0, .2, 1);
}

.sq-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(0, 180, 255, .08);
}

.sq-item:last-child {
    border-bottom: none;
}

.sq-item.sq-new {
    animation: sqNew 4s ease forwards;
}

@keyframes sqNew {
    0% {
        background: rgba(0, 200, 255, .16);
    }

    100% {
        background: transparent;
    }
}

.sq-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 100, 255, .22);
    border: 1px solid rgba(0, 200, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--cyan);
    flex-shrink: 0;
}

.sq-info {
    flex: 1;
    min-width: 0;
}

.sq-name {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sq-sub {
    font-size: 0.63rem;
    color: var(--dim);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sq-badge {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.sq-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--dim);
}

.sq-empty i {
    font-size: 1.8rem;
    opacity: .25;
}

.sq-empty p {
    font-size: 0.72rem;
}

/* ══ RIGHT: 3 CHARTS + INFO MINI ═══════════════════════════ */
.col-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    min-height: 0;
}

.info-mini {
    flex-shrink: 0;
    height: 106px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
}

.im-t {
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    box-shadow: 0 2px 16px rgba(0, 80, 200, .18);
}

.im-val {
    font-size: 1.05rem;
    font-weight: 900;
}

.im-lbl {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--dim);
}

/* ── Live badge ── */
.live-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.56rem;
    font-weight: 800;
    color: var(--green);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    flex-shrink: 0;
    text-shadow: 0 0 8px rgba(0, 255, 136, .6);
}

.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: lp 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(0, 255, 136, .8);
}

@keyframes lp {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 136, .7);
    }

    50% {
        opacity: .6;
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
    }
}

/* ══ FOOTER ═════════════════════════════════════════════════ */
footer {
    height: 56px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #03091c, #0a1840, #03091c);
    border-top: 2px solid rgba(0, 200, 255, .5);
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 80, 200, .2);
}

footer.landing-footer {
    height: auto;
    display: block;
    text-align: center;
    padding: 4px 24px;
    border-top: 1px solid rgba(0, 200, 255, .3);
    box-shadow: none;
    line-height: 1.4;
    position: static;
    z-index: auto;
}

.run-label {
    background: linear-gradient(135deg, #0f2a80, #1d4ed8);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 4px 0 12px rgba(0, 80, 255, .3);
}

.run-wrap {
    flex: 1;
    overflow: hidden;
}

.run-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(100, 180, 255, .6);
    padding-left: 100%;
    animation: scroll 90s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ══ NOTIFIKASI ═════════════════════════════════════════════ */
#notifOverlay {
    position: fixed;
    top: 82px;
    right: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 360px;
}

.notif-card {
    background: linear-gradient(135deg, #071428, #0d2470);
    border: 2px solid var(--cyan);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .65), 0 0 30px rgba(0, 200, 255, .3);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: nIn .5s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes nIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.notif-card.hide {
    animation: nOut .35s ease forwards;
}

@keyframes nOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

.notif-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notif-title {
    font-size: .6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan);
    margin-bottom: 4px;
}

.notif-msg {
    font-size: .86rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.notif-time {
    font-size: .58rem;
    color: var(--dim);
    margin-top: 4px;
}

/* ══ SCAN LINE — dinonaktifkan (terlihat seperti TV rusak) ══ */
.tv-scan {
    display: none;
}

/* ══ FLOATING PARTICLES ═════════════════════════════════════ */
.tv-particle {
    position: absolute;
    bottom: -4px;
    border-radius: 50%;
    opacity: 0;
    animation: tvParticleRise linear infinite;
}

@keyframes tvParticleRise {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    8% {
        transform: scale(1);
        opacity: 0.6;
    }

    88% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-100vh) scale(.6);
        opacity: 0;
    }
}

/* ══ GENDER RATIO BAR ═══════════════════════════════════════ */
.gender-ratio {
    margin-top: 10px;
}

.gr-bar {
    display: flex;
    height: 38px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 0 20px rgba(0, 0, 0, .3);
}

.gr-lk {
    background: linear-gradient(135deg, rgba(29, 78, 216, .75), rgba(0, 180, 255, .55));
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    transition: width 1.4s cubic-bezier(.4, 0, .2, 1);
    min-width: 20%;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, .15);
}

.gr-pr {
    flex: 1;
    background: linear-gradient(135deg, rgba(190, 24, 93, .55), rgba(244, 114, 182, .45));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 0 10px;
    overflow: hidden;
}

.gr-lk i {
    color: #93c5fd;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.gr-pr i {
    color: #fda4af;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.gr-lk span,
.gr-pr span {
    font-size: 0.88rem;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.gr-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(200, 230, 255, .6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ══ MEDIA SCAN SWEEP — dinonaktifkan ═══════════════════════ */
.media-scan {
    display: none;
}

/* ══ STAGGERED APPEAR + GLOW (digabung per elemen) ══════════ */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardGlow {

    0%,
    100% {
        box-shadow: 0 4px 24px rgba(0, 80, 200, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
    }

    50% {
        box-shadow: 0 4px 34px rgba(0, 130, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .09);
    }
}

.hero-box {
    animation: cardAppear .7s ease .05s both;
}

.media-hero {
    animation: cardAppear .8s ease .10s both;
}

.bottom-panels {
    animation: cardAppear .7s ease .25s both;
}

.col-right .info-mini {
    animation: cardAppear .7s ease .65s both;
}

.col-left .chart-cc:nth-child(2) {
    animation: cardAppear .7s ease .15s both, cardGlow 5s ease-in-out 0s infinite;
}

.col-left .chart-cc:nth-child(3) {
    animation: cardAppear .7s ease .30s both, cardGlow 5s ease-in-out 1.5s infinite;
}

.col-left .chart-cc:nth-child(4) {
    animation: cardAppear .7s ease .45s both, cardGlow 5s ease-in-out 3s infinite;
}

.col-right>.chart-cc:nth-child(1) {
    animation: cardAppear .7s ease .20s both, cardGlow 5s ease-in-out 0.8s infinite;
}

.col-right>.chart-cc:nth-child(2) {
    animation: cardAppear .7s ease .35s both, cardGlow 5s ease-in-out 2.3s infinite;
}

.col-right>.chart-cc:nth-child(3) {
    animation: cardAppear .7s ease .50s both, cardGlow 5s ease-in-out 3.8s infinite;
}

/* ══ ROTATING PANEL DOTS ════════════════════════════════════ */
.panel-dots {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.panel-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    transition: all .35s ease;
    cursor: pointer;
    position: relative;
}

/* Hit area transparan lebih besar untuk touch — visual tetap sama */
.panel-dot::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
}

.panel-dot:hover {
    background: rgba(255, 255, 255, .45);
}

.panel-dot.active {
    background: var(--cyan);
    box-shadow: 0 0 6px rgba(0, 229, 255, .8);
    width: 12px;
    border-radius: 3px;
}

/* Fade-in saat panel berganti */
.panel-fade {
    animation: panelFadeIn .5s ease;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══ MEDIA PROGRESS BAR ═════════════════════════════════════ */
.media-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, .08);
    z-index: 11;
    pointer-events: none;
}

.media-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1d4ed8, var(--cyan), #fff 50%, var(--cyan), #1d4ed8);
    background-size: 200% 100%;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(0, 229, 255, .9), 0 0 4px rgba(255, 255, 255, .6);
    transition: width linear;
    animation: progressShine 2s linear infinite;
}

@keyframes progressShine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Mode indeterminate (untuk video — durasi tidak diketahui) */
.media-progress-bar.indeterminate {
    width: 35% !important;
    transition: none !important;
    animation: progressPing 1.8s ease-in-out infinite, progressShine 2s linear infinite;
}

@keyframes progressPing {
    0% {
        transform: translateX(-100%);
        opacity: .7;
    }

    100% {
        transform: translateX(380%);
        opacity: .7;
    }
}

/* ══ SHOLAT TIME OVERLAY ════════════════════════════════════ */
.sholat-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9996;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sholatOverlayIn .9s cubic-bezier(.34, 1.3, .64, 1) both;
}

@keyframes sholatOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sholat-overlay-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(16, 40, 120, .92) 0%, rgba(2, 8, 30, .97) 100%);
    pointer-events: none;
}

.sholat-overlay-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    animation: sholatInnerPop .8s cubic-bezier(.34, 1.56, .64, 1) .1s both;
}

@keyframes sholatInnerPop {
    from {
        opacity: 0;
        transform: scale(.82) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sholat-overlay-icon {
    font-size: 5rem;
    color: var(--gold);
    animation: sholatGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(245, 158, 11, .7));
}

@keyframes sholatGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(245, 158, 11, .6));
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(245, 158, 11, 1));
    }
}

.sholat-overlay-label {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 229, 255, .8);
}

.sholat-overlay-name {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--gold2);
    /* fallback solid */
    filter: drop-shadow(0 0 30px rgba(245, 158, 11, .7));
}

.sholat-overlay-sub {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.sholat-overlay-time {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(0, 229, 255, .6);
    letter-spacing: 4px;
}

.sholat-overlay-countdown {
    font-size: 0.72rem;
    color: rgba(160, 220, 255, .6);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* ══ OVERLAY PENGINGAT KEGIATAN BESOK ══════════════════════ */
.pengingat-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 9995;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sholatOverlayIn .9s cubic-bezier(.34, 1.3, .64, 1) both;
}

.pengingat-overlay-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(100, 50, 0, .94) 0%, rgba(10, 5, 0, .97) 100%);
    pointer-events: none;
}

.pengingat-overlay-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 0 60px;
    animation: sholatInnerPop .8s cubic-bezier(.34, 1.56, .64, 1) .1s both;
    max-width: 900px;
    width: 100%;
}

.pengingat-overlay-icon {
    font-size: 4.5rem;
    color: #f59e0b;
    filter: drop-shadow(0 0 30px rgba(245, 158, 11, .8));
    animation: pengingatBell .6s ease-in-out infinite alternate;
}

@keyframes pengingatBell {
    from { transform: rotate(-12deg); }
    to   { transform: rotate(12deg);  }
}

.pengingat-overlay-label {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #f59e0b;
    text-shadow: 0 0 20px rgba(245, 158, 11, .8);
}

.pengingat-overlay-sub {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: #fde68a;
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, .6));
    letter-spacing: 2px;
}

.pengingat-overlay-tanggal {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 230, 160, .85);
    letter-spacing: 2px;
}

.pengingat-item-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.pengingat-item {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(245, 158, 11, .3);
    border-radius: 10px;
    padding: 10px 22px;
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 14px;
    text-align: left;
}

/* Item tanpa jam: hanya 1 kolom */
.pengingat-item.no-jam {
    grid-template-columns: 1fr;
}

.pengingat-item-jam {
    font-size: 1.15rem;
    font-weight: 900;
    color: #f59e0b;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(245, 158, 11, .6);
    flex-shrink: 0;
}

.pengingat-item-konten {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.pengingat-overlay-countdown {
    font-size: 0.7rem;
    color: rgba(245, 200, 100, .55);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ══ DONUT CHART ════════════════════════════════════════════ */
.donut-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    min-height: 0;
}

.donut-svg-wrap {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
}

.donut-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.d-total-num {
    fill: #ffffff;
    font-size: 14px;
    font-weight: 900;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.d-total-lbl {
    fill: rgba(160, 220, 255, .65);
    font-size: 7px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donut-legend {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    overflow: visible;
}

.d-leg-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.d-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.d-leg-lbl {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(200, 230, 255, .85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.d-leg-val {
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.d-leg-pct {
    font-size: 0.62rem;
    color: rgba(160, 220, 255, .65);
    flex-shrink: 0;
    width: 30px;
    text-align: right;
}

/* ══ VERTICAL BAR CHART ════════════════════════════════════ */
.vbar-wrap {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 100%;
    min-height: 0;
}

.vbar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    height: 100%;
    min-width: 0;
}

.vbar-num {
    font-size: 0.60rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.vbar-track {
    flex: 1;
    width: 100%;
    min-height: 0;
    background: rgba(255, 255, 255, .08);
    border-radius: 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.vbar-fill {
    width: 100%;
    border-radius: 0;
}

.vbar-lbl {
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(200, 230, 255, .75);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    flex-shrink: 0;
    line-height: 1.2;
}

/* ══ BOTTOM PANELS (Aset & Fasilitas + Surat + Penghuni Kos) ═ */
.bottom-panels {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    height: 200px;
    animation: cardAppear .7s ease .35s both;
}

.bp-card {
    flex: 1;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 80, 200, .2), 0 -1px 12px rgba(245, 158, 11, .2);
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.bp-card:last-child {
    border-top-color: var(--purple);
    box-shadow: 0 4px 24px rgba(0, 80, 200, .2), 0 -1px 12px rgba(192, 132, 252, .2);
}

/* Panel surat di dalam bottom-panels */
.bp-surat {
    border-top-color: var(--cyan);
    box-shadow: 0 4px 24px rgba(0, 80, 200, .2), 0 -1px 12px rgba(0, 229, 255, .2);
    flex: 1.3; /* sedikit lebih lebar dari aset & kos */
}

.bp-surat-stats {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.bp-sq-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* Item surat compact di dalam panel bawah */
.bp-sq-body .sq-item {
    padding: 4px 8px;
}

.bp-sq-body .sq-num {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
}

.bp-sq-body .sq-name {
    font-size: 0.72rem;
}

.bp-sq-body .sq-sub {
    font-size: 0.58rem;
}

.bp-sq-body .sq-badge {
    font-size: 0.52rem;
    padding: 2px 7px;
}

.bp-hd {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(200, 230, 255, .9);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.bp-stats {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.bp-s {
    flex: 1;
    background: rgba(255,255,255,.05);
    border-radius: 10px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bp-val {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.bp-lbl {
    font-size: 0.58rem;
    color: var(--dim);
    font-weight: 600;
    text-align: center;
}

/* Bar mini di dalam aset panel */
.bp-bars {
    flex: 1;
    min-height: 0;
}

.bp-bars .bar-row {
    margin-bottom: 3px;
    gap: 6px;
}

.bp-bars .bar-lbl {
    font-size: 0.72rem;
    width: 110px;
}

.bp-bars .bv-num {
    font-size: 0.78rem;
}

.bp-bars .bv-pct {
    display: none;
}

.bp-bars .bar-track {
    height: 4px;
}

/* Penghuni Kos stats */
.bp-kos-total {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
}

.bp-kos-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--purple);
    line-height: 1;
}

.bp-kos-sub {
    font-size: 0.68rem;
    color: var(--dim);
    font-weight: 600;
}

.kos-gender {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.kos-g-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kos-g-num {
    font-size: 1.05rem;
    font-weight: 800;
}

.kos-g-lbl {
    font-size: 0.65rem;
    color: var(--dim);
    font-weight: 600;
}

.kos-g-div {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,.15);
}

.kos-bar-wrap {
    display: flex;
    height: 6px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.kos-bar-lk {
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

.kos-bar-pr {
    background: linear-gradient(90deg, #be185d, #f472b6);
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet/laptop kecil landscape (1280–1600px)
   Kolom tengah 980px terlalu lebar — pakai persentase
══════════════════════════════════════════════════════════════ */
@media (max-width: 1600px) and (min-width: 1281px) {
    .tv-body { grid-template-columns: 1fr 50% 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET LANDSCAPE (fit screen, no scroll)
   Target: Samsung Galaxy Tab S9 FE landscape (~1152×720 CSS px)
══════════════════════════════════════════════════════════════ */
@media (orientation: landscape) and (max-width: 1280px) {
    html { font-size: 7.5px; }
    .tv-body { grid-template-columns: 30% 40% 30%; gap: 4px; padding: 4px; }
    /* Biarkan media-hero flex mengisi ruang — tidak dibatasi max-height agar tidak ada ruang hitam */
    .media-hero { max-height: none; }
    .chart-cc { padding: 6px 8px; }
    .col-left .chart-cc,
    .col-right .chart-cc { padding: 5px 8px; }
    .ct-hd { margin-bottom: 4px; }
    .bar-lbl,
    .col-left .bar-lbl,
    .col-right .bar-lbl { width: 68px; font-size: 0.8rem; }
    .bp-bars .bar-lbl   { width: 72px; }
    .bar-val { width: 40px; }
    .donut-svg-wrap { width: 72px; height: 72px; }
    .vbar-wrap { height: 140px; min-height: 140px; }
    .bottom-panels { height: 138px; }
}

@media (orientation: landscape) and (max-width: 1024px) {
    html { font-size: 7px; }
    .tv-body { grid-template-columns: 30% 40% 30%; gap: 4px; padding: 4px; }
    .media-hero { max-height: none; }
    .chart-cc { padding: 5px 7px; }
    .col-left .chart-cc,
    .col-right .chart-cc { padding: 4px 7px; }
    .bar-lbl,
    .col-left .bar-lbl,
    .col-right .bar-lbl { width: 60px; font-size: 0.78rem; }
    .bp-bars .bar-lbl   { width: 64px; }
    .bar-val { width: 34px; }
    .donut-svg-wrap { width: 62px; height: 62px; }
    .vbar-wrap { height: 130px; min-height: 130px; }
    .bottom-panels { height: 128px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET PORTRAIT (scrollable)
   Target: Samsung Galaxy Tab S9 FE portrait (~720×1152 CSS px)
   Layout: center full-width di atas, left+right berdampingan di bawah
══════════════════════════════════════════════════════════════ */
@media (orientation: portrait) and (max-width: 1280px) {
    html { font-size: 11px; }

    body { overflow-y: auto; height: auto; min-height: 100vh; }

    /* 2-kolom: center full-width baris pertama, left+right berdampingan baris kedua */
    .tv-body {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "center center" "left right";
        gap: 8px;
        padding: 8px;
        height: auto;
        overflow: visible;
    }
    .col-center { grid-area: center; }
    .col-left   { grid-area: left;   overflow: visible; height: auto; }
    .col-right  { grid-area: right;  overflow: visible; height: auto; }

    /* Media hero tidak terlalu tinggi di portrait */
    .media-hero { max-height: 38vh; }

    .chart-cc  { flex: none; overflow: visible; }
    .ct-bars   { overflow: visible; min-height: 0; }
    .vbar-wrap { height: 160px; min-height: 160px; }

    .bottom-panels { height: auto; flex-wrap: wrap; }
    .bottom-panels .bp-card { min-height: 160px; flex: 1 1 45%; }

    .bar-lbl,
    .col-left .bar-lbl,
    .col-right .bar-lbl { width: 80px; font-size: 0.82rem; }
    .bp-bars .bar-lbl   { width: 85px; }
    .bar-val { width: 46px; }
    .donut-svg-wrap { width: 88px; height: 88px; }

    footer { position: sticky; bottom: 0; z-index: 100; }

    /* Header compact portrait */
    .h-div    { display: none; }
    .h-sholat { display: none; }
    .h-cuaca  { display: none; }
    header    { padding: 0 8px; gap: 6px; }
    .h-logo img     { height: 28px; }
    .h-logo-text h1 { font-size: 8px; letter-spacing: 1px; }
    .h-logo-text p  { display: none; }
    .h-gampong .nama { font-size: 10px; letter-spacing: 1px; }
    .h-gampong .sub  { display: none; }
    .h-time .clock   { font-size: 15px; letter-spacing: 1px; }
    .h-time .date    { font-size: 7px; }
    .h-time .hijri   { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE PHONE (scrollable, single column)
   Target: ~320px–480px (iPhone SE, Galaxy S series, dll)
   Layout: semua satu kolom, scrollable vertikal
══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    html { font-size: 13px; }

    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    /* ── Header: compact 1 baris + safe area untuk layar lengkung ── */
    header {
        height: 48px;
        padding: 0 calc(10px + env(safe-area-inset-right, 0px)) 0 calc(10px + env(safe-area-inset-left, 0px));
        padding-top: env(safe-area-inset-top, 0px);
        gap: 8px;
    }
    .h-div     { display: none; }
    .h-sholat  { display: none; }
    .h-cuaca   { display: none; }
    .h-logo img       { height: 22px; }
    .h-logo-text h1   { font-size: 6.5px; letter-spacing: 0.5px; }
    .h-logo-text p    { display: none; }
    .h-logo            { gap: 3px; flex-shrink: 0; }
    .h-gampong .nama  { font-size: 9px; letter-spacing: 1px; }
    .h-gampong .sub   { display: none; }
    .h-time .clock    { font-size: 14px; letter-spacing: 0.5px; }
    .h-time .date     { font-size: 6.5px; }
    .h-time .hijri    { display: none; }

    /* ── Body: single column, flatten kolom agar urutan bisa diatur ── */
    .tv-body {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        padding-left: calc(8px + env(safe-area-inset-left, 0px));
        padding-right: calc(8px + env(safe-area-inset-right, 0px));
        height: auto;
        overflow: visible;
    }
    /* Flatten — kolom hilang, anak-anaknya jadi direct children tv-body */
    .col-left,
    .col-center,
    .col-right {
        display: contents;
    }

    /* Urutan tampil di HP:
       1. Media carousel (slide gambar/video)
       2. Monografi (hero jiwa)
       3. Kelompok Usia (leftChart0)
       4. Jurong
       5. Agama / Keamanan (leftChart3)
       6. Pernikahan / Pekerjaan (rightChart0)
       7. Penyakit / Bantuan (rightChart1)
       8. Pendidikan / Fasilitas (rightChart2)
       9. Bottom panels (Aset, Surat, Kos)
       10. Info mini
    */
    .media-hero     { order: 1; }
    .landing-login-btn { order: 2; }
    .hero-box       { order: 3; }
    .chart-cc.c-usia   { order: 4; }  /* leftChart0 */
    .chart-cc.c-jurong { order: 5; }
    .chart-cc.c-agama  { order: 6; }  /* leftChart3 */
    #rightChart0    { order: 7; }
    .chart-cc.c-sehat  { order: 8; }  /* rightChart1 */
    .chart-cc.c-didik  { order: 9; }  /* rightChart2 */
    .bottom-panels  { order: 10; }
    .info-mini      { order: 11; }

    /* ── Hero Box ── */
    .hero-box {
        padding: 14px 16px;
        border-radius: 14px;
    }
    .hero-eyebrow  { font-size: 0.6rem; letter-spacing: 2px; margin-bottom: 4px; }
    .hero-jiwa-val { font-size: 2.8rem; }
    .hero-jiwa-lbl { font-size: 0.7rem; }
    .hero-kk-row   { font-size: 0.75rem; }
    .gr-lk span,
    .gr-pr span    { font-size: 0.7rem; }
    .gr-foot       { font-size: 0.55rem; }

    /* ── Media Hero — lebih besar di HP agar gambar/video jelas ── */
    .media-hero {
        flex: none;
        height: 56vw;  /* rasio ~16:9 dari lebar layar */
        max-height: 280px;
        min-height: 180px;
        border-radius: 14px;
    }
    .media-cap-title { font-size: 1rem; }
    .media-badge     { font-size: 0.6rem; padding: 2px 8px; }
    .media-dot       { width: 6px; height: 6px; }
    .media-dot.active { width: 16px; }

    /* ── Chart Cards ── */
    .chart-cc {
        flex: none;
        min-height: auto;
        overflow: visible;
        border-radius: 12px;
        padding: 10px 12px;
    }
    .ct-bars {
        flex: none;
        min-height: auto;
        overflow: visible;
    }
    /* Bar chart di HP — pastikan terlihat */
    .bar-track {
        height: 10px;
    }
    .ct-hd { margin-bottom: 4px; font-size: 0.78rem; }
    .ct-hd i { font-size: 0.85rem; }

    /* ── Bars ── */
    .bar-lbl,
    .col-left .bar-lbl,
    .col-right .bar-lbl { width: 80px; font-size: 0.82rem; }
    .bp-bars .bar-lbl   { width: 78px; font-size: 0.78rem; }
    .bar-val  { width: 44px; }
    .bv-num   { font-size: 0.85rem; }
    .bv-pct   { font-size: 0.55rem; }
    .bar-row  { gap: 5px; margin-bottom: 4px; }

    /* ── Donut ── */
    .donut-wrap     { gap: 10px; }
    .donut-svg-wrap { width: 86px; height: 86px; }
    .d-total-num    { font-size: 12px; }

    /* ── Vertical Bars ── */
    .vbar-wrap {
        gap: 3px;
        padding: 0 2px;
        height: 120px;  /* tinggi eksplisit di HP agar balok vertikal terlihat */
        min-height: 120px;
    }

    /* ── Bottom Panels ── */
    .bottom-panels {
        height: auto;
        flex-direction: column;
        gap: 8px;
    }
    .bottom-panels .bp-card {
        min-height: 0;
        flex: none;
    }
    .bp-card { border-radius: 12px; padding: 10px 12px; }
    .bp-hd   { font-size: 0.78rem; }
    .bp-stats { gap: 6px; }
    .bp-val   { font-size: 1.2rem; }
    .bp-lbl   { font-size: 0.55rem; }

    /* Surat antrian compact */
    .bp-surat-hariini { flex-wrap: wrap; gap: 4px; }
    .bp-surat-stats   { flex-wrap: wrap; gap: 4px; }
    .sqp { font-size: 0.7rem; padding: 2px 6px; }
    .bp-sq-body        { max-height: 120px; }
    .bp-sq-body .sq-item { padding: 4px 6px; gap: 6px; }
    .bp-sq-body .sq-num  { width: 22px; height: 22px; font-size: 0.6rem; }
    .bp-sq-body .sq-name { font-size: 0.72rem; }
    .bp-sq-body .sq-sub  { font-size: 0.55rem; }
    .bp-sq-body .sq-badge { font-size: 0.5rem; padding: 1px 5px; }

    /* Kos */
    .bp-kos-num  { font-size: 1.6rem; }
    .kos-g-num   { font-size: 1rem; }
    .kos-g-lbl   { font-size: 0.6rem; }
    .kos-bar-wrap { height: 5px; }

    /* ── Info Mini ── */
    .info-mini {
        height: auto;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 4px;
    }
    .im-t   { padding: 8px 4px; border-radius: 8px; }
    .im-val { font-size: 1rem; }
    .im-lbl { font-size: 0.48rem; letter-spacing: 0.5px; }

    /* ── Footer ── */
    footer {
        height: 38px;
        position: sticky;
        bottom: 0;
        z-index: 100;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .run-label {
        font-size: 0.6rem;
        padding: 0 10px;
        padding-left: calc(10px + env(safe-area-inset-left, 0px));
        letter-spacing: 1px;
    }
    .run-text { font-size: 0.85rem; }

    /* ── Overlay Detail — fullscreen di HP ── */
    .dov-panel {
        width: 92vw !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: 88vh;
        padding: 16px 14px 14px;
        border-radius: 10px;
    }
    .dov-head       { gap: 8px; }
    .dov-head-icon  { font-size: 1.2rem; }
    .dov-head-title { font-size: 1rem; }
    .dov-badge      { font-size: 0.55rem; }
    .dov-close      { width: 28px; height: 28px; font-size: 0.75rem; }
    .dov-panel .bar-lbl { width: 85px; font-size: 0.78rem; }
    .dov-panel .bar-val { width: 42px; }

    /* ── Notifikasi ── */
    .notif-card {
        min-width: 260px;
        max-width: 88vw;
        padding: 14px 16px;
    }

    /* ── Panel dots sedikit lebih besar di mobile ── */
    .panel-dots { gap: 5px; }
    .panel-dot  { width: 6px; height: 6px; }
    .panel-dot.active { width: 14px; }
    .panel-dot::before { top: -8px; left: -8px; right: -8px; bottom: -8px; }

    /* ── Overlay Sholat ── */
    .sholat-overlay-icon       { font-size: 3rem; }
    .sholat-overlay-label      { font-size: 0.7rem; letter-spacing: 3px; }
    .sholat-overlay-name       { font-size: 3rem; }
    .sholat-overlay-sub        { font-size: 1rem; letter-spacing: 2px; }
    .sholat-overlay-time       { font-size: 1.8rem; letter-spacing: 2px; }
    .sholat-overlay-countdown  { font-size: 0.6rem; }

    /* ── Overlay Pengingat ── */
    .pengingat-overlay-inner   { padding: 0 16px; gap: 10px; }
    .pengingat-overlay-icon    { font-size: 2.8rem; }
    .pengingat-overlay-label   { font-size: 0.65rem; letter-spacing: 3px; }
    .pengingat-overlay-sub     { font-size: 1.8rem; }
    .pengingat-overlay-tanggal { font-size: 0.85rem; }
    .pengingat-item            { padding: 8px 14px; grid-template-columns: 80px 1fr; gap: 8px; }
    .pengingat-item-jam        { font-size: 0.9rem; }
    .pengingat-item-konten     { font-size: 0.82rem; }
    .pengingat-overlay-countdown { font-size: 0.6rem; }

    /* ── Media text slide (pengumuman) ── */
    .media-text-slide { padding: 16px; }
    .mts-icon  { font-size: 1.8rem; }
    .mts-title { font-size: 1rem; }
    .mts-date  { font-size: 0.7rem; }
}

/* ══════════════════════════════════════════════════════════════
   Landing Page — Login Button, App Download, Footer, Animations
══════════════════════════════════════════════════════════════ */

/* ── Login Button ── */
.landing-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0a1e6a 0%, #1d4ed8 50%, #0a1e6a 100%);
    border: 2px solid rgba(0, 229, 255, .5);
    border-radius: 14px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 25px rgba(0, 150, 255, .35),
        0 0 60px rgba(29, 78, 216, .15),
        inset 0 1px 0 rgba(255, 255, 255, .1);
    animation: loginGlow 3s ease-in-out infinite;
    transition: all .3s ease;
}
.landing-login-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .15), rgba(255, 255, 255, .1), transparent);
    animation: loginShimmer 3s ease-in-out infinite;
}
.landing-login-btn::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #1d4ed8, var(--cyan), #fff, var(--cyan), #1d4ed8, transparent);
    animation: hglow 3.5s ease-in-out infinite;
}
@keyframes loginGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 150, 255, .3), 0 0 50px rgba(29, 78, 216, .1), inset 0 1px 0 rgba(255, 255, 255, .1); }
    50% { box-shadow: 0 0 35px rgba(0, 200, 255, .5), 0 0 80px rgba(29, 78, 216, .25), inset 0 1px 0 rgba(255, 255, 255, .15); }
}
@keyframes loginShimmer {
    0%   { left: -100%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}
.landing-login-btn:hover {
    background: linear-gradient(135deg, #0e2a7a 0%, #2563eb 50%, #0e2a7a 100%);
    box-shadow: 0 0 45px rgba(0, 229, 255, .6), 0 0 90px rgba(29, 78, 216, .3);
    transform: scale(1.03);
    border-color: var(--cyan);
}
.landing-login-btn i {
    font-size: 1.1rem;
    color: var(--cyan);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, .8));
    position: relative;
    z-index: 1;
}
.landing-login-btn span {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 16px rgba(0, 229, 255, .5);
}

/* ── App Download Section ── */
.app-download-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--green2);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 4px 24px rgba(0, 80, 200, .2), 0 -1px 12px rgba(16, 185, 129, .2);
}
.app-dl-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(200, 230, 255, .9);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.app-dl-title i { color: var(--green2); font-size: 0.85rem; }
.app-dl-cards { display: flex; flex-direction: column; gap: 8px; }
.app-dl-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(0, 200, 255, .15);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.app-dl-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .08), transparent);
    transition: left .5s ease;
}
.app-dl-card:hover::before { left: 100%; }
.app-dl-card:hover {
    background: rgba(0, 200, 255, .1);
    border-color: rgba(0, 229, 255, .4);
    box-shadow: 0 0 20px rgba(0, 200, 255, .15);
}
.app-dl-logo {
    width: 40px; height: 40px;
    border-radius: 10px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, .5));
    flex-shrink: 0;
}
.app-dl-info { flex: 1; min-width: 0; }
.app-dl-name {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 229, 255, .3);
}
.app-dl-desc {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--dim);
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.app-dl-play {
    font-size: 1.4rem;
    color: var(--green2);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, .6));
    transition: transform .3s ease;
}
.app-dl-card:hover .app-dl-play { transform: scale(1.15); }

/* ── Landing Footer Content ── */
.lf-content {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lf-logo {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, .5));
    flex-shrink: 0;
}
.lf-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}
.lf-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cyan);
}
.lf-sub {
    font-size: 0.56rem;
    color: var(--dim);
    font-weight: 600;
    letter-spacing: 0.8px;
}
.lf-copy {
    font-size: 0.62rem;
    color: rgba(220, 240, 255, .9);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 10px rgba(0, 150, 255, .3);
}
.lf-copy a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(0, 229, 255, .5);
}
.lf-copy a:hover {
    text-decoration: underline;
    text-shadow: 0 0 14px rgba(0, 229, 255, .8);
}

/* ── Landing — disable cardAppear animations ── */
body.is-landing .hero-box,
body.is-landing .media-hero,
body.is-landing .bottom-panels,
body.is-landing .chart-cc,
body.is-landing .info-mini {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* ── Landing responsive (mobile) ── */
@media (max-width: 600px) {
    .landing-login-btn {
        padding: 12px 16px;
        font-size: 0.75rem;
        gap: 8px;
        letter-spacing: 2px;
        border-radius: 10px;
    }
    .landing-login-btn i { font-size: 0.9rem; }

    .app-download-section { order: 12; border-radius: 10px; padding: 10px 12px; }
    .app-dl-title { font-size: 0.7rem; margin-bottom: 8px; }
    .app-dl-logo { width: 34px; height: 34px; border-radius: 8px; }
    .app-dl-name { font-size: 0.8rem; }
    .app-dl-desc { font-size: 0.58rem; }
    .app-dl-play { font-size: 1.2rem; }
    .app-dl-card { padding: 8px 10px; gap: 10px; }

    .landing-footer {
        padding: 5px 14px;
        padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px));
    }
    .lf-content { gap: 8px; }
    .lf-logo { height: 24px; }
    .lf-title { font-size: 0.6rem; letter-spacing: 1px; }
    .lf-sub { font-size: 0.48rem; }
    .lf-copy { font-size: 0.45rem; }
}

/* ══════════════════════════════════════════════════════════════
   Landing — paksa layout mobile di HP "Tampilkan Situs Desktop"
   Deteksi HP via class .is-phone (screen.width < 768, diset JS)
   + pointer: coarse. Tablet (screen ≥ 768) tidak kena.
══════════════════════════════════════════════════════════════ */
@media (pointer: coarse) and (hover: none) {
    body.is-landing.is-phone {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    body.is-landing.is-phone header {
        height: 48px;
        padding: 0 calc(10px + env(safe-area-inset-right, 0px)) 0 calc(10px + env(safe-area-inset-left, 0px));
        padding-top: env(safe-area-inset-top, 0px);
        gap: 8px;
    }
    body.is-landing.is-phone .h-div     { display: none; }
    body.is-landing.is-phone .h-sholat  { display: none; }
    body.is-landing.is-phone .h-cuaca   { display: none; }
    body.is-landing.is-phone .h-logo img       { height: 22px; }
    body.is-landing.is-phone .h-logo-text h1   { font-size: 6.5px; letter-spacing: 0.5px; }
    body.is-landing.is-phone .h-logo-text p    { display: none; }
    body.is-landing.is-phone .h-logo            { gap: 3px; flex-shrink: 0; }
    body.is-landing.is-phone .h-gampong .nama  { font-size: 9px; letter-spacing: 1px; }
    body.is-landing.is-phone .h-gampong .sub   { display: none; }
    body.is-landing.is-phone .h-time .clock    { font-size: 14px; letter-spacing: 0.5px; }
    body.is-landing.is-phone .h-time .date     { font-size: 6.5px; }
    body.is-landing.is-phone .h-time .hijri    { display: none; }

    body.is-landing.is-phone .tv-body {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        padding-left: calc(8px + env(safe-area-inset-left, 0px));
        padding-right: calc(8px + env(safe-area-inset-right, 0px));
        height: auto;
        overflow: visible;
    }
    body.is-landing.is-phone .col-left,
    body.is-landing.is-phone .col-center,
    body.is-landing.is-phone .col-right {
        display: contents;
    }
    body.is-landing.is-phone .media-hero     { order: 1; }
    body.is-landing.is-phone .landing-login-btn { order: 2; }
    body.is-landing.is-phone .hero-box       { order: 3; }
    body.is-landing.is-phone .chart-cc.c-usia   { order: 4; }
    body.is-landing.is-phone .chart-cc.c-jurong { order: 5; }
    body.is-landing.is-phone .chart-cc.c-agama  { order: 6; }
    body.is-landing.is-phone #rightChart0    { order: 7; }
    body.is-landing.is-phone .chart-cc.c-sehat  { order: 8; }
    body.is-landing.is-phone .chart-cc.c-didik  { order: 9; }
    body.is-landing.is-phone .bottom-panels  { order: 10; }
    body.is-landing.is-phone .info-mini      { order: 11; }
    body.is-landing.is-phone .app-download-section { order: 12; }

    /* Hero */
    body.is-landing.is-phone .hero-box {
        padding: 14px 16px;
        border-radius: 14px;
    }
    body.is-landing.is-phone .hero-eyebrow  { font-size: 0.6rem; }
    body.is-landing.is-phone .hero-jiwa-val { font-size: 2.8rem; }
    body.is-landing.is-phone .hero-jiwa-lbl { font-size: 0.7rem; }

    /* Media */
    body.is-landing.is-phone .media-hero {
        flex: none;
        height: 56vw;
        max-height: 280px;
        min-height: 180px;
        border-radius: 14px;
    }

    /* Charts */
    body.is-landing.is-phone .chart-cc {
        flex: none;
        min-height: auto;
        overflow: visible;
        border-radius: 12px;
        padding: 10px 12px;
    }
    body.is-landing.is-phone .ct-bars {
        flex: none;
        min-height: auto;
        overflow: visible;
    }
    body.is-landing.is-phone .vbar-wrap {
        height: 120px;
        min-height: 120px;
    }

    /* Bottom panels */
    body.is-landing.is-phone .bottom-panels {
        height: auto;
        flex-direction: column;
        gap: 8px;
    }
    body.is-landing.is-phone .bottom-panels .bp-card {
        min-height: 0;
        flex: none;
    }

    /* Info mini */
    body.is-landing.is-phone .info-mini {
        height: auto;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 4px;
    }

    /* Footer */
    body.is-landing.is-phone footer.landing-footer {
        position: static;
    }
    body.is-landing.is-phone .landing-login-btn {
        padding: 12px 16px;
        font-size: 0.75rem;
        gap: 8px;
        letter-spacing: 2px;
        border-radius: 10px;
    }
    body.is-landing.is-phone .app-download-section { border-radius: 10px; padding: 10px 12px; }
    body.is-landing.is-phone .landing-footer {
        padding: 5px 14px;
        padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px));
    }
    body.is-landing.is-phone .lf-copy { font-size: 0.45rem; }
}