/* GRAB4D ORBIT 2030 — design system futuristik (deep-green + emerald + silver)
   Aturan: tanpa kedip >3x/detik; animasi hanya transisi halus & pulse lambat. */
:root {
  --bg: #030d07; --bg2: #051309; --card: #071c10; --card2: #0a2415;
  --line: #14361f; --line2: #1f4a2c;
  --text: #e8f4ea; --muted: #9fbcaa; --faint: #6f8a79;
  --green: #1ed660; --green-hi: #4dffa0; --green-deep: #0b7c33;
  --gold: #f2c14e; --gold-hi: #ffd970; --gold-deep: #8a6a14;
  --red: #ff7a6b; --blue: #62baff; --silver: #c9d6cf;
  --glow: 0 0 0 1px rgba(30, 214, 96, .25), 0 8px 32px rgba(0, 0, 0, .5);
  --shadow: 0 14px 40px rgba(0, 0, 0, .45);
  --r: 16px; --r-sm: 10px;
  --wrap: 1160px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
}
[data-theme="light"] {
  --bg: #eef3ec; --bg2: #ffffff; --card: #ffffff; --card2: #e8f0e8;
  --line: #cfdccb; --line2: #b8cdb6;
  --text: #12271a; --muted: #48604f; --faint: #6d8573;
  --green: #0d8c37; --green-hi: #0aa338; --green-deep: #0a5c20;
  --gold: #8a6a14; --gold-hi: #6f560f; --gold-deep: #6f560f;
  --red: #c22f23; --blue: #1a6fb0; --silver: #44584b;
  --glow: 0 0 0 1px rgba(13, 140, 55, .18), 0 8px 24px rgba(20, 50, 30, .1);
  --shadow: 0 10px 28px rgba(20, 50, 30, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(30, 214, 96, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 214, 96, .035) 1px, transparent 1px);
  background-size: 44px 44px;
}
[data-theme="light"] body { background-image:
    linear-gradient(rgba(13, 140, 55, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 140, 55, .05) 1px, transparent 1px); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .55em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.45rem, 4.4vw, 2.25rem); }
h2 { font-size: clamp(1.15rem, 3.2vw, 1.5rem); }
h3 { font-size: clamp(1rem, 2.6vw, 1.16rem); }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #111; padding: 10px 16px; font-weight: 700; z-index: 99; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.center { text-align: center; }
kbd {
  font-family: var(--mono); font-size: .72rem; padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--line2); border-bottom-width: 2px; background: var(--card2); color: var(--muted);
}

/* label teknis ala HUD */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--green);
  margin: 0 0 10px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---------- header: control deck ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.brand img { height: 38px; width: auto; }
.brand { position: relative; }
.mainnav { display: none; }
.head-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--text); cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.iconbtn:hover { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 214, 96, .12); }
.palbtn {
  display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 12px;
  border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--muted);
  font: 600 .85rem/1 inherit; cursor: pointer; transition: border-color .18s, color .18s;
}
.palbtn:hover { border-color: var(--green); color: var(--text); }
@media (min-width: 700px) { .palbtn { display: inline-flex; } .hide-s { display: inline-flex; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: .95rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn-cta {
  background: linear-gradient(180deg, var(--green-hi), var(--green-deep)); color: #03130a;
  box-shadow: 0 0 0 1px rgba(30, 214, 96, .4), 0 8px 24px rgba(20, 160, 60, .3);
}
.btn-cta:hover { filter: brightness(1.07); text-decoration: none; }
[data-theme="light"] .btn-cta { color: #fff; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--green); text-decoration: none; }
.burger { display: inline-flex; }
@media (min-width: 1020px) {
  .mainnav { display: flex; gap: 2px; }
  .mainnav a { padding: 9px 11px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .92rem; }
  .mainnav a:hover { background: var(--card); text-decoration: none; }
  .mainnav a.on { color: var(--green-hi); background: var(--card); box-shadow: inset 0 -2px 0 var(--green); }
  .burger { display: none; }
}
.mainnav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; gap: 4px; box-shadow: var(--shadow); }
.mainnav.open a { padding: 13px 14px; border-radius: 10px; color: var(--text); font-weight: 600; }
.mainnav.open a.on, .mainnav.open a:hover { background: var(--card); text-decoration: none; }

/* status board */
.statusbar { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg2) 70%, transparent); }
.status-in { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: .78rem; color: var(--muted); overflow: hidden; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); flex: none; animation: beacon 2.4s ease-in-out infinite; }
@keyframes beacon { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.st-clock { color: var(--green-hi); letter-spacing: .08em; flex: none; }
.st-sep { width: 1px; height: 14px; background: var(--line2); flex: none; }
.st-next { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pin { color: var(--gold); white-space: nowrap; margin-left: auto; }

/* ---------- breadcrumbs ---------- */
.crumbs { margin: 14px 0 4px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .8rem; color: var(--muted); }
.crumbs li:not(:first-child)::before { content: "›"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green-hi); }

/* ---------- hero: dek misi ---------- */
.hero { position: relative; padding: 34px 0 38px; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 340px at 88% -12%, rgba(30, 214, 96, .16), transparent 70%),
    radial-gradient(420px 260px at -8% 110%, rgba(242, 193, 78, .07), transparent 70%);
}
.hero-in { display: grid; gap: 22px; }
@media (min-width: 880px) { .hero-in { grid-template-columns: 1.5fr 1fr; align-items: center; } }
.lead { color: var(--muted); font-size: 1.02rem; max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fact { position: relative; padding: 14px 12px 12px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--card); text-align: center; overflow: hidden; }
.fact::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--green), transparent); }
.fact b { display: block; font-family: var(--mono); font-size: 1.35rem; color: var(--green-hi); letter-spacing: .02em; }
.fact i { font-style: normal; font-size: .74rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- layout umum ---------- */
.pad { padding: 26px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head h2 { margin: 0; }
.more { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; white-space: nowrap; }
.grid { display: grid; gap: 12px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } }

/* kartu panel HUD */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; box-shadow: var(--shadow);
}
.card::before, .card::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--green);
  opacity: .55; pointer-events: none;
}
.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r); }
.card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r); }
.card:hover::before, .card:hover::after { opacity: 1; }
a.card { transition: transform .18s, border-color .18s; }
a.card:hover { transform: translateY(-2px); border-color: var(--line2); text-decoration: none; }

/* kartu pasaran */
.mcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); transition: border-color .18s, transform .18s; }
.mcard:hover { border-color: var(--green); transform: translateY(-2px); text-decoration: none; }
.mcard .mi { min-width: 0; flex: 1; display: grid; }
.mcard .mi b { overflow-wrap: break-word; }
.mcard .mi > span { font-size: .76rem; color: var(--muted); }
/* mobile sempit: angka turun ke baris sendiri supaya nama tidak terpencar */
@media (max-width: 759px) {
  .mcard { flex-wrap: wrap; row-gap: 7px; }
  .mcard .mi { flex-basis: calc(100% - 54px); }
  .mcard .numz { order: 3; margin-left: 54px; }
}
.mbadge {
  flex: none; width: var(--mbs, 40px); height: var(--mbs, 40px); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 28%, var(--card2), var(--bg2));
  border: 1px solid var(--line2); box-shadow: inset 0 0 0 3px rgba(30, 214, 96, .08);
  font-family: var(--mono); font-weight: 700; font-size: calc(var(--mbs, 40px) * .3); color: var(--green-hi);
  letter-spacing: .02em;
}

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 880px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tiles-a h3 { display: flex; align-items: center; gap: 8px; }
.tiles-a h3::before { content: "▸"; color: var(--green); font-size: .8em; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line2); color: var(--text); font-size: .84rem; font-weight: 600; }
a.chip:hover { border-color: var(--green); text-decoration: none; }

/* digit & angka */
.numz { display: inline-flex; gap: 3px; }
.dg { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 30px; border-radius: 7px; background: var(--dg); color: var(--dgf); font-family: var(--mono); font-weight: 700; font-size: .95rem; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22); }
.numz.sm .dg { width: 21px; height: 24px; font-size: .78rem; border-radius: 6px; }
.numz.lg .dg { width: 40px; height: 50px; font-size: 1.5rem; border-radius: 10px; }

/* ---------- tabel dek ---------- */
.searchbar { margin: 0 0 12px; }
.searchbar input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line2); background: var(--card); color: var(--text); font-size: 1rem;
}
.searchbar input:focus-visible { outline-offset: 0; }
.tblwrap { border: 1px solid var(--line); border-radius: var(--r-sm); overflow-x: auto; background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 380px; }
.tbl th {
  text-align: left; padding: 10px 10px; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green);
  border-bottom: 1px solid var(--line2); white-space: nowrap;
}
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--green) 6%, transparent); }
@media (max-width: 599px) {
  .tbl { font-size: .8rem; min-width: 300px; }
  .tbl th, .tbl td { padding: 7px 6px; }
  .numz .dg { width: 22px; height: 26px; font-size: .8rem; }
  .dt-l { display: none; }
}
@media (min-width: 600px) { .dt-s { display: none; } }

/* ---------- paito ---------- */
.paito-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.paito-bar .lbl { font-size: .8rem; color: var(--muted); }
.dgbtn { width: 36px; height: 36px; border-radius: 9px; border: 2px solid transparent; background: var(--dg); color: var(--dgf); font-family: var(--mono); font-weight: 700; cursor: pointer; opacity: .82; transition: opacity .15s, transform .15s; }
.dgbtn:hover { opacity: 1; transform: translateY(-1px); }
.dgbtn.on { border-color: var(--text); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dg) 40%, transparent); }
.paito { display: grid; gap: 4px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.paito-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); }
.paito-row.hid { display: none; }
.paito .pd { font-family: var(--mono); font-size: .68rem; color: var(--faint); width: 52px; flex: none; }
.paito .pnum { display: flex; gap: 4px; }
.paito .pnum .dg { width: 30px; height: 34px; font-size: 1.02rem; }
.paito .pp { margin-left: auto; font-family: var(--mono); font-size: .68rem; color: var(--faint); }
.paito-plain .dg { background: transparent !important; color: var(--text) !important; box-shadow: none; border: 1px solid var(--line2); }
.paito-count { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- countdown ---------- */
.cdown { display: inline-flex; align-items: flex-start; gap: 6px; }
.cd-cell { display: grid; justify-items: center; min-width: 52px; }
.cd-cell b { display: block; width: 100%; text-align: center; font-family: var(--mono); font-size: 1.35rem; font-weight: 700; color: var(--green-hi); background: var(--card2); border: 1px solid var(--line2); border-radius: 9px; padding: 6px 4px; }
.cd-cell i { font-style: normal; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.cd-sep { font-family: var(--mono); color: var(--green); font-size: 1.2rem; line-height: 2; }
.cd-note { font-size: .78rem; color: var(--muted); margin: 8px 0 0; }
/* layar sempit: 4 sel sejajar tanpa separator supaya muat di kartu grid 2 kolom */
@media (max-width: 520px) {
  .cdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; justify-items: stretch; }
  .cd-sep { display: none; }
  .cd-cell { min-width: 0; }
  .cd-cell b { font-size: 1.02rem; padding: 5px 2px; }
}

/* ---------- bar statistik ---------- */
.sbar { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.sbar .track { flex: 1; display: block; height: 12px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.sbar .fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-deep), var(--green)); box-shadow: 0 0 10px rgba(30, 214, 96, .35); }
.sbar.cold .fill { background: linear-gradient(90deg, #35506b, var(--blue)); box-shadow: 0 0 10px rgba(98, 186, 255, .25); }
.sbar .val { font-family: var(--mono); font-size: .74rem; color: var(--muted); white-space: nowrap; }

/* ---------- FAQ / steps / note ---------- */
.faq, .details-grid { display: grid; gap: 8px; }
details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
details summary { cursor: pointer; padding: 13px 16px; font-weight: 700; list-style: none; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 16px; top: 12px; color: var(--green); font-family: var(--mono); font-size: 1.1rem; }
details[open] summary::after { content: "–"; }
details[open] summary { color: var(--green-hi); }
.fa-body { padding: 0 16px 14px; color: var(--muted); }
.steps { display: grid; gap: 10px; }
.step { position: relative; padding: 12px 14px 12px 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.step::before { content: counter(stp); counter-increment: stp; position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--green); color: var(--green); font-family: var(--mono); font-size: .72rem; display: flex; align-items: center; justify-content: center; }
.steps { counter-reset: stp; }
.note { padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 8%, var(--card)); font-size: .92rem; }
.note b { color: var(--gold-hi); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; }
.kv dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); align-self: center; }
.kv dd { margin: 0; font-weight: 600; }

/* ---------- artikel ---------- */
.article { max-width: 72ch; }
.article h2 { margin-top: 1.6em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
code { font-family: var(--mono); font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); }

/* ---------- az indeks ---------- */
.az { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.az a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-family: var(--mono); font-weight: 700; }
.az a:hover { border-color: var(--green); text-decoration: none; }

/* ---------- alat ---------- */
.tool { display: grid; gap: 10px; max-width: 520px; }
.tool label { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tool input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-size: 1rem; width: 100%; }
.tool .btn { justify-self: start; }
.out { padding: 12px 14px; border-radius: var(--r-sm); border: 1px dashed var(--line2); background: var(--bg2); min-height: 48px; font-size: .95rem; }

/* ---------- banner & share ---------- */
.sharebar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.banner-cta { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); }
.banner-cta img { width: 100%; height: auto; }

/* ---------- error 404 ---------- */
.err { text-align: center; padding: 60px 0 20px; }
.err b { display: block; font-family: var(--mono); font-size: clamp(3rem, 12vw, 5.5rem); color: var(--green); text-shadow: 0 0 30px rgba(30, 214, 96, .4); line-height: 1; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 30px; padding: 34px 0 20px; }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 880px) { .foot-grid { grid-template-columns: 1.4fr 1fr .8fr .8fr; } }
.foot-about img { margin-bottom: 10px; }
.foot-about p { font-size: .86rem; color: var(--muted); }
.foot-warn { border-left: 2px solid var(--gold); padding-left: 10px; }
.foot-keys { font-size: .72rem; color: var(--faint); }
.linklike { background: none; border: 0; padding: 0; color: var(--green-hi); font: inherit; cursor: pointer; text-decoration: underline; }
.site-foot h2 { font-size: .78rem; font-family: var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot ul a { color: var(--muted); font-size: .86rem; }
.site-foot ul a:hover { color: var(--green-hi); }
.foot-base { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--faint); }

/* ---------- tombol ke atas ---------- */
.totop { position: fixed; right: 16px; bottom: 88px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; z-index: 40; }
.totop.show { opacity: 1; pointer-events: auto; transform: none; }

/* =========================================================
   FITUR 2030
   ========================================================= */

/* ---------- command palette ---------- */
.pal, .keysdlg { position: fixed; inset: 0; z-index: 90; }
.pal-back { position: absolute; inset: 0; background: rgba(2, 8, 4, .7); backdrop-filter: blur(4px); }
.pal-box {
  position: relative; margin: 9vh auto 0; width: min(620px, calc(100vw - 24px));
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 16px;
  box-shadow: var(--glow), var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { flex: 1; background: none; border: 0; color: var(--text); font-size: 1.05rem; outline: none; }
.pal-list { max-height: 46vh; overflow-y: auto; padding: 6px; }
.pal-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: 600 .92rem/1.3 inherit; text-align: left; cursor: pointer; }
.pal-item .pi-ico { flex: none; width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line2); font-family: var(--mono); font-size: .7rem; color: var(--green); background: var(--card); }
.pal-item .pi-hint { margin-left: auto; font-family: var(--mono); font-size: .68rem; color: var(--faint); }
.pal-item.sel { background: color-mix(in srgb, var(--green) 14%, transparent); box-shadow: inset 0 0 0 1px var(--green); }
.pal-foot { padding: 8px 14px; border-top: 1px solid var(--line); font-size: .7rem; color: var(--faint); letter-spacing: .06em; }
.pal-empty { padding: 22px 14px; color: var(--muted); font-size: .9rem; text-align: center; }

/* dialog pintasan */
.keys-box { padding: 18px 20px 20px; max-width: 480px; }
.keys-box h2 { margin-bottom: 12px; }
.keys-box .kv { grid-template-columns: auto 1fr; }

/* ---------- NEURA ---------- */
.neura-fab {
  position: fixed; right: 16px; bottom: 22px; z-index: 45;
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px;
  border-radius: 999px; border: 1px solid var(--line2); cursor: pointer;
  background: linear-gradient(180deg, var(--card2), var(--card)); color: var(--green-hi);
  font: 700 .88rem/1 inherit; letter-spacing: .06em;
  box-shadow: 0 0 0 1px rgba(30, 214, 96, .2), 0 10px 30px rgba(0, 0, 0, .5);
  transition: transform .18s, border-color .18s;
}
.neura-fab:hover { transform: translateY(-2px); border-color: var(--green); }
.neura { position: fixed; inset: 0; z-index: 95; }
.neura-back { position: absolute; inset: 0; background: rgba(2, 8, 4, .66); backdrop-filter: blur(3px); }
.neura-box {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: min(680px, 100vw);
  max-height: 86vh; display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid var(--line2); border-bottom: 0;
  border-radius: 20px 20px 0 0; box-shadow: var(--glow), var(--shadow);
}
.neura-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.neura-head p { margin: 4px 0 0; font-size: .78rem; color: var(--muted); }
.neura-head .iconbtn { margin-left: auto; flex: none; width: 36px; height: 36px; font-size: 1.2rem; }
.neura-core { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--green); position: relative; margin-top: 2px; }
.neura-core::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); animation: beacon 2.4s ease-in-out infinite; }
.neura-core::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed var(--line2); }
.neura-ver { font-size: .66rem; color: var(--faint); letter-spacing: .1em; }
.neura-log { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.nmsg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.55; }
.nmsg.me { align-self: flex-end; background: var(--card2); border: 1px solid var(--line2); border-bottom-right-radius: 4px; }
.nmsg.ai { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.nmsg.ai b { color: var(--green-hi); }
.nmsg .mono { font-size: .84em; }
.nmsg a { font-weight: 700; }
.nmsg ul { margin: 6px 0 0; padding-left: 1.15em; }
.neura-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.neura-form input { flex: 1; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-size: .95rem; }
.neura-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 14px; }
.neura-chips .chip { cursor: pointer; font-size: .76rem; padding: 5px 11px; }
.neura-chips .chip:hover { border-color: var(--green); }

/* ---------- mode fokus ---------- */
body.zf { background-image: none; }
body.zf .site-head, body.zf .site-foot, body.zf .neura-fab, body.zf .totop,
body.zf .hero-visual, body.zf .banner-cta, body.zf .related-sec, body.zf .foot-keys { display: none !important; }
body.zf main.wrap { max-width: 880px; }
body.zf .crumbs { opacity: .45; }
.zf-exit {
  position: fixed; top: 10px; right: 12px; z-index: 60;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, var(--card)); color: var(--gold-hi);
  font: 700 .76rem/1 inherit; cursor: pointer;
}

/* ---------- kartu bagikan (canvas preview) ---------- */
.sharecard-modal { position: fixed; inset: 0; z-index: 92; }
.sharecard-modal .pal-back { z-index: 0; }
.sharecard-box {
  position: relative; z-index: 1; margin: 8vh auto 0; width: min(430px, calc(100vw - 24px));
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 16px; padding: 16px;
  box-shadow: var(--glow), var(--shadow); text-align: center;
}
.sharecard-box canvas { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.sharecard-box .sharebar { justify-content: center; }

/* ---------- chart interaktif ---------- */
.chart-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.chart-tools label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chart-tools select { min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-size: .9rem; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.seg button { min-height: 40px; padding: 0 14px; border: 0; background: var(--card); color: var(--muted); font: 700 .82rem/1 inherit; cursor: pointer; }
.seg button.on { background: var(--green); color: #04130a; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .bar { fill: url(#gBarGrad); transition: opacity .15s; }
.chart-svg .bar:hover { opacity: .8; }
.chart-cap { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--bg2); border: 1px solid var(--green); border-radius: 8px; padding: 6px 10px; font-family: var(--mono); font-size: .72rem; color: var(--text); box-shadow: var(--shadow); white-space: nowrap; }

/* ---------- dock angka tersimpan ---------- */
.pindock {
  position: fixed; left: 16px; bottom: 22px; z-index: 44;
  display: flex; align-items: center; gap: 8px; max-width: min(430px, calc(100vw - 120px));
  padding: 9px 12px; border-radius: 14px; border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); font-size: .78rem;
}
.pindock b { font-family: var(--mono); color: var(--gold); letter-spacing: .06em; }
.pindock .pinlist { display: flex; flex-wrap: wrap; gap: 5px; }
.pindock .chip { padding: 3px 9px; font-size: .74rem; cursor: pointer; }
.pindock .chip:hover { border-color: var(--red); text-decoration: line-through; }
.pinbtn { border: 1px dashed var(--line2); background: none; color: var(--muted); border-radius: 9px; padding: 6px 12px; font: 700 .78rem/1 inherit; cursor: pointer; }
.pinbtn:hover { border-color: var(--gold); color: var(--gold-hi); }
.pinbtn.on { border-style: solid; border-color: var(--gold); color: var(--gold-hi); }

/* ---------- a11y: kurangi gerak ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- cetak ---------- */
@media print {
  .site-head, .site-foot, .neura-fab, .totop, .pindock, .sharebar, .banner-cta { display: none !important; }
  body { background: #fff; color: #000; }
}
