/* Gaya berawalan vx- agar tidak bentrok dengan utilitas Tailwind atau siar-theme.css. */
:root {
    --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --page: #f4f7f6;
    --teal: #0d9488;
    --grad: linear-gradient(135deg, #34d399 0%, #22d3ee 50%, #818cf8 100%);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 16px 40px -18px rgba(15, 23, 42, .18);
    --radius: 1.25rem;
}
body { font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; background: var(--page); color: var(--ink); }
.vx-num { font-family: 'Sora', 'Plus Jakarta Sans', sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vx-wrap { max-width: 82rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .vx-wrap { padding: 0 1.5rem; } }

/* Hero aurora */
.vx-hero { position: relative; overflow: hidden; color: #fff; padding-bottom: 7rem;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(99, 102, 241, .35), transparent 60%),
        radial-gradient(50rem 28rem at 10% 10%, rgba(16, 185, 129, .35), transparent 60%),
        radial-gradient(40rem 24rem at 50% 110%, rgba(6, 182, 212, .30), transparent 60%),
        #031c1a; }
.vx-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.vx-nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 0; }
.vx-brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.vx-brand img { width: 2.6rem; height: 2.6rem; object-fit: contain; background: #fff; border-radius: .8rem; padding: .25rem; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.vx-brand b { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.vx-brand small { display: block; font-size: .75rem; color: #6ee7b7; font-weight: 600; }
.vx-navlinks { display: flex; flex-wrap: wrap; gap: .5rem; }
.vx-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
    color: #e2e8f0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); text-decoration: none; backdrop-filter: blur(8px); transition: background .2s, border-color .2s; }
a.vx-chip:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); }
.vx-live { width: .5rem; height: .5rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: vx-live 2.4s ease-out 3; }
@keyframes vx-live { to { box-shadow: 0 0 0 10px rgba(52,211,153,0); } }

.vx-hero-grid { position: relative; display: grid; gap: 1.5rem; padding-top: 1.75rem; }
@media (min-width: 1024px) { .vx-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 2.5rem; } }
.vx-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; color: #a7f3d0; letter-spacing: .04em; }
.vx-title { margin-top: .75rem; font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.vx-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vx-lead { margin-top: .9rem; max-width: 36rem; color: rgba(236, 253, 245, .72); font-size: .95rem; line-height: 1.6; }

.vx-goal { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding: 1.25rem; border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.vx-ring { position: relative; width: 168px; height: 168px; flex: none; }
.vx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vx-ring .track { stroke: rgba(255,255,255,.1); }
.vx-ring .val { transition: stroke-dashoffset 1.6s cubic-bezier(.22, 1, .36, 1); filter: drop-shadow(0 0 10px rgba(34, 211, 238, .45)); }
.vx-ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.vx-ring-center b { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.vx-ring-center small { margin-top: .3rem; font-size: .72rem; color: #a5f3fc; font-weight: 700; letter-spacing: .06em; }
.vx-goal-facts { flex: 1; min-width: 14rem; display: grid; gap: .8rem; }
.vx-goal-facts .big { font-size: 1.5rem; font-weight: 800; }
.vx-goal-facts .big em { font-style: normal; color: rgba(255,255,255,.5); font-size: 1rem; font-weight: 600; }
.vx-fact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.vx-fact { padding: .6rem .7rem; border-radius: .9rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.vx-fact span { display: block; font-size: .7rem; color: rgba(255,255,255,.6); font-weight: 600; }
.vx-fact b { display: block; margin-top: .15rem; font-size: 1rem; font-weight: 800; }

.vx-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.vx-tile { position: relative; overflow: hidden; padding: 1.1rem; border-radius: 1.35rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s; }
.vx-tile:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.25); }
.vx-tile .ico { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: .75rem; font-size: .95rem; }
.vx-tile .lbl { margin-top: .85rem; font-size: .8rem; color: rgba(255,255,255,.65); font-weight: 600; }
.vx-tile .val { font-size: 2rem; font-weight: 800; line-height: 1.15; }
.vx-tile .sub { margin-top: .35rem; font-size: .75rem; color: rgba(255,255,255,.6); }
.vx-tile .sub b { color: #fcd34d; font-weight: 700; }
.vx-minibar { margin-top: .6rem; height: .35rem; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.vx-minibar i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 1.4s cubic-bezier(.22, 1, .36, 1); }
.vx-spark { position: absolute; right: .9rem; top: 1rem; width: 6.5rem; height: 2.4rem; }

/* Kartu konten */
.vx-main { position: relative; margin-top: -5rem; padding-bottom: 3rem; display: grid; gap: 1.25rem; }
.vx-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
@media (min-width: 640px) { .vx-card { padding: 1.5rem; } }
.vx-row { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .vx-row-75 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .vx-row-57 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.vx-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.vx-head h2 { font-family: 'Sora', sans-serif; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: .55rem; }
.vx-head h2 .dot { width: 2rem; height: 2rem; border-radius: .7rem; display: grid; place-items: center; font-size: .85rem; color: #fff; }
.vx-head p { margin-top: .25rem; font-size: .84rem; color: var(--muted); max-width: 40rem; }
.vx-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 99px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.b-ok { background: #ecfdf5; color: #047857; } .b-warn { background: #fffbeb; color: #b45309; } .b-bad { background: #fff1f2; color: #be123c; } .b-mute { background: #f1f5f9; color: #475569; }

/* Bullet chart target KK */
.vx-bullets { display: grid; gap: .55rem; }
.vx-bullet { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 4.5rem; align-items: center; gap: .75rem; font-size: .84rem; }
@media (max-width: 639px) { .vx-bullet { grid-template-columns: 6.5rem minmax(0, 1fr) 3.8rem; font-size: .78rem; } }
.vx-bullet a { font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-bullet a:hover { color: var(--teal); }
.vx-track { position: relative; height: 1.1rem; }
.vx-track .tgt { position: absolute; inset: 0 auto 0 0; border-radius: .4rem; background: repeating-linear-gradient(135deg, #eef2f7 0 6px, #e5ebf2 6px 12px); }
.vx-track .cur { position: absolute; top: .2rem; bottom: .2rem; left: 0; width: 0; border-radius: .35rem; background: linear-gradient(90deg, #6366f1, #22d3ee); transition: width 1.3s cubic-bezier(.22, 1, .36, 1); }
.vx-track .cur.done { background: linear-gradient(90deg, #10b981, #34d399); }
.vx-track .mark { position: absolute; top: -.15rem; bottom: -.15rem; width: 2px; border-radius: 2px; background: var(--ink); }
.vx-bullet .gap { text-align: right; font-weight: 800; }
.vx-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .76rem; color: var(--muted); }
.vx-legend i { display: inline-block; width: .9rem; height: .55rem; border-radius: .2rem; margin-right: .35rem; vertical-align: middle; }

/* Prioritas */
.vx-prio { display: grid; gap: .6rem; }
.vx-prio-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; padding: .8rem .9rem; border-radius: 1rem; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.vx-prio-item:hover { border-color: #99f6e4; transform: translateX(3px); box-shadow: 0 8px 20px -14px rgba(13, 148, 136, .6); }
.vx-rank { width: 2rem; height: 2rem; border-radius: .7rem; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; }
.vx-prio-item b { font-weight: 700; }
.vx-prio-item .tags { margin-top: .35rem; display: flex; flex-wrap: wrap; gap: .35rem; }

/* Peta sektor */
.vx-heat { display: grid; gap: .15rem; }
.vx-heat details { border-radius: .9rem; transition: background .2s; }
.vx-heat details[open] { background: #f8fafc; }
.vx-heat summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1rem 9.5rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .55rem .6rem; border-radius: .9rem; }
.vx-heat summary::-webkit-details-marker { display: none; }
.vx-heat summary:hover { background: #f1f5f9; }
@media (max-width: 639px) { .vx-heat summary { grid-template-columns: 1rem minmax(0, 1fr) auto; } .vx-heat summary .cells { grid-column: 2 / -1; } }
.vx-heat .chev { color: #94a3b8; font-size: .7rem; transition: transform .2s; }
.vx-heat details[open] .chev { transform: rotate(90deg); }
.vx-heat .name { font-weight: 700; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-heat .cells { display: flex; flex-wrap: wrap; gap: .25rem; }
.vx-cell { width: 1.35rem; height: 1.35rem; border-radius: .38rem; }
.h0 { background: #fff; border: 1.5px dashed #f59e0b; } .h1 { background: #ccfbf1; } .h2 { background: #5eead4; } .h3 { background: #14b8a6; } .h4 { background: #0f766e; }
.vx-heat .meta { font-size: .76rem; color: var(--muted); white-space: nowrap; text-align: right; }
.vx-heat table { width: 100%; font-size: .82rem; border-collapse: collapse; }
.vx-heat th { text-align: left; font-size: .72rem; color: var(--muted); font-weight: 700; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }
.vx-heat td { padding: .5rem .75rem; border-bottom: 1px solid #f1f5f9; }
.vx-heat td.r, .vx-heat th.r { text-align: right; }
.vx-heat tr.empty td { background: #fffbeb; }

/* Grafik laju */
.vx-chart { width: 100%; height: auto; display: block; }
.vx-chart .bar { fill: url(#barGrad); transition: height 1s cubic-bezier(.22, 1, .36, 1), y 1s cubic-bezier(.22, 1, .36, 1); }
.vx-chart .bar.now { fill: url(#barGradNow); }
.vx-chart text { font-size: 13px; fill: #64748b; font-family: 'Plus Jakarta Sans', sans-serif; }
.vx-chart .need { stroke: #e11d48; stroke-width: 2; stroke-dasharray: 6 5; }
.vx-seg { display: inline-flex; padding: .25rem; border-radius: 999px; background: #f1f5f9; gap: .2rem; }
.vx-seg button { border: 0; background: transparent; padding: .38rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #475569; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.vx-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.vx-sim { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.vx-sim div { padding: .75rem .85rem; border-radius: .9rem; background: #f8fafc; border: 1px solid var(--line); }
.vx-sim span { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.vx-sim b { display: block; margin-top: .15rem; font-size: 1.1rem; font-weight: 800; }

.vx-health { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 639px) { .vx-health, .vx-sim { grid-template-columns: 1fr; } }
.vx-hcard { padding: 1rem; border-radius: 1.1rem; border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f8fafc); }
.vx-hcard .ico { width: 2.1rem; height: 2.1rem; border-radius: .7rem; display: grid; place-items: center; color: #fff; font-size: .85rem; }
.vx-hcard .v { margin-top: .75rem; font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.vx-hcard .l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.vx-hcard .n { margin-top: .5rem; font-size: .76rem; font-weight: 700; }

/* Kartu runggun */
.vx-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.vx-search { position: relative; flex: 1; min-width: 12rem; max-width: 20rem; }
.vx-search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .85rem; }
.vx-search input { width: 100%; padding: .6rem .9rem .6rem 2.3rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .86rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.vx-search input:focus { border-color: #5eead4; box-shadow: 0 0 0 4px rgba(45, 212, 191, .18); }
.vx-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(19.5rem, 1fr)); }
.vx-rcard { position: relative; overflow: hidden; border-radius: 1.2rem; border: 1px solid var(--line); background: #fff; padding: 1.1rem; scroll-margin-top: 1rem;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s, border-color .3s; animation: vx-in .5s cubic-bezier(.22, 1, .36, 1) both; }
.vx-rcard:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(15, 23, 42, .35); border-color: #cbd5e1; }
.vx-rcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent, #10b981); }
.vx-rcard.flash { box-shadow: 0 0 0 3px rgba(45, 212, 191, .55), 0 22px 40px -24px rgba(15, 23, 42, .35); }
.vx-rtop { display: flex; align-items: center; gap: .9rem; }
.vx-mring { position: relative; width: 64px; height: 64px; flex: none; }
.vx-mring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vx-mring .val { transition: stroke-dashoffset 1.3s cubic-bezier(.22, 1, .36, 1); }
.vx-mring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .9rem; font-weight: 800; }
.vx-rtop h3 { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.vx-rtop p { font-size: .76rem; color: var(--muted); margin-top: .1rem; }
.vx-dots { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .25rem; }
.vx-dots i { width: .7rem; height: .7rem; border-radius: .2rem; }
.vx-dots-lbl { margin-top: .35rem; font-size: .74rem; color: var(--muted); }
.vx-rstats { margin-top: .9rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.vx-rstats div { padding: .55rem .4rem; border-radius: .8rem; background: #f8fafc; text-align: center; }
.vx-rstats span { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.vx-rstats b { display: block; font-size: 1rem; font-weight: 800; }
.vx-rstats .alert { background: #fff1f2; } .vx-rstats .alert b { color: #be123c; }
.vx-rfoot { margin-top: .8rem; display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: var(--muted); }
.vx-empty { padding: 2rem; text-align: center; color: var(--muted); font-size: .9rem; }
@keyframes vx-in { from { opacity: 0; transform: translateY(10px); } }

.vx-foot { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .78rem; color: var(--muted); }
.vx-foot .proto { color: #b45309; font-weight: 700; }
:focus-visible { outline: 2px solid #0891b2; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Tema monitor: pemilih tampilan, status sinkron, dan keadaan kosong */
.vx-theme { display: inline-flex; padding: .2rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.vx-theme a { padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #cbd5e1; text-decoration: none; }
.vx-theme a[aria-current="true"] { background: #fff; color: #0f172a; }
.vx-theme a:not([aria-current="true"]):hover { color: #fff; background: rgba(255,255,255,.1); }
.vx-alert { padding: 1rem 1.25rem; border-radius: 1rem; background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; font-weight: 700; }
.vx-sync { font-size: .76rem; color: rgba(255,255,255,.6); }
.vx-sync b { color: #fff; }
.vx-sync.is-late b { color: #fcd34d; }
.vx-note { font-size: .8rem; color: var(--muted); }
.vx-na { font-size: .76rem; color: var(--muted); font-weight: 600; }
.vx-cards.is-static .vx-rcard { animation: none; }
