@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* ===== Verira — tema dark, aksen hijau (Radix palette) ===== */
:root {
  --bg: #0f1317;
  --surface: #161b21;
  --surface2: #1c222b;
  --border: #232c36;
  --text: #e9edf2;
  --text-dim: #9aa7b5;
  --text-faint: #5d6b7a;
  --accent: #3B82F6;
  --accent-dim: rgba(59, 130, 246, 0.12);
  --up: #30A46C;
  --down: #E5484D;
  --flat: #F5A524;
  --radius: 12px;
  --radius-sm: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 'DM Sans', 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
.muted { color: var(--text-dim); }
.hint { color: var(--text-faint); font-size: 13px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main { min-height: 60vh; padding: 26px 0 60px; }

/* ===== topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 19, 23, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 17px; flex: 0 0 auto; }
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--accent); font-size: 15px; }
.logo b { font-weight: 800; }
.logo-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 2px 6px; border-radius: 6px;
}
.nav { display: flex; gap: 6px; flex: 1; min-width: 0; }
.nav-group { position: relative; }
.nav-tab {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid transparent; border-radius: 9px;
  padding: 9px 13px; color: var(--text-dim); font: 700 13px 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.12s;
}
.nav-tab:hover { color: var(--text); border-color: var(--border); }
.nav-drop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  display: none; flex-direction: column; gap: 2px; min-width: 210px;
  padding: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.nav-drop a {
  padding: 9px 13px; border-radius: 7px; color: var(--text-dim);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.nav-drop a:hover { background: var(--surface2); color: var(--text); text-decoration: none; }
.nav-drop a.active { background: var(--accent-dim); color: var(--accent); }
.nav-group.open .nav-drop { display: flex; }
@media (hover: hover) { .nav-group:hover .nav-drop { display: flex; } }
.topbar-cta { display: flex; gap: 8px; margin-left: auto; align-items: center; flex: 0 0 auto; }
.telegram-strip {
  position: sticky; top: 58px; z-index: 49;
  background: var(--accent-dim); border-bottom: 1px solid rgba(59, 130, 246, 0.35);
}
.telegram-strip .wrap {
  min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding-top: 6px; padding-bottom: 6px; color: var(--text-dim); font-size: 13px;
}
.telegram-strip a { color: var(--accent); font-weight: 800; }
.telegram-strip a:hover { text-decoration: underline; }
.telegram-strip a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.mnav {
  display: none; flex: 1 1 auto; min-width: 0; max-width: 220px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); font: 600 13px 'DM Sans', sans-serif; padding: 8px 10px;
}
.user-chip {
  font-size: 12.5px; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 5px 12px; white-space: nowrap; max-width: 200px;
  overflow: hidden; text-overflow: ellipsis;
}
.user-chip.pro { color: var(--accent); border-color: rgba(59, 130, 246, 0.4); background: var(--accent-dim); }
.btn.primary.ok { background: var(--accent-dim); color: var(--accent); border-color: rgba(59, 130, 246, 0.4); }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  padding: 10px 18px; font: 700 13.5px 'DM Sans', sans-serif; cursor: pointer;
  transition: all 0.12s; text-decoration: none;
}
.btn:hover { border-color: var(--text-faint); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #2563EB; border-color: #2563EB; }
.btn.ghost { background: none; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn.danger { color: var(--down); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== hero ===== */
.hero { text-align: center; padding: 30px 0 10px; }
.crumb { display: inline-block; color: var(--text-dim); font-size: 13px; margin-bottom: 14px; }
.crumb a { color: var(--text-dim); }
.badge-hero {
  display: inline-block; margin-bottom: 14px;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, 0.4); border-radius: 999px;
  padding: 6px 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
}
.hero h1 { font-size: 30px; font-weight: 800; }
.hero p.lead { color: var(--text-dim); max-width: 620px; margin: 10px auto 22px; font-size: 15px; }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.stats-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 26px 0 8px; }
.stat-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 13.5px; font-weight: 600; }
.section-title { text-align: center; margin: 44px 0 6px; }
.section-sub { text-align: center; color: var(--text-dim); margin-bottom: 22px; font-size: 14px; }

/* ===== tool cards ===== */
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tl-card {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; cursor: pointer; color: inherit; font: inherit;
  transition: border-color 0.12s, transform 0.12s, background 0.12s;
}
.tl-card:hover { border-color: var(--accent); background: var(--surface2); transform: translateY(-2px); }
.tl-card-icon { font-size: 26px; margin-bottom: 12px; }
.tl-card h3 { font-size: 16.5px; }
.tl-card p { color: var(--text-dim); font-size: 13.5px; flex: 1; }
.tl-card-go { margin-top: 14px; color: var(--accent); font-size: 13px; font-weight: 700; }


/* ===== premium section ===== */
.premium { margin: 56px 0 0; padding: 42px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), transparent 55%); }
.compare { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 13.5px; }
.compare th, .compare td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.compare th { color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 90px; }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .no { color: var(--text-faint); }

/* ===== panels & layout umum ===== */
.tool-hero { padding: 8px 0 20px; }
.tool-hero h1 { font-size: 24px; }
.tool-hero p { color: var(--text-dim); max-width: 640px; }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head .sub { color: var(--text-faint); font-size: 12.5px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat .k { color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.stat .v { font-size: 19px; font-weight: 800; margin-top: 3px; }
.stat .s { color: var(--text-dim); font-size: 12px; }

/* ===== tabel ===== */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; color: var(--text-faint); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl td { padding: 9px 10px; border-bottom: 1px solid rgba(35, 44, 54, 0.5); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl.compact td, .tbl.compact th { padding: 6px 8px; font-size: 12.5px; }
.sym { font-weight: 700; }
.name { color: var(--text-dim); font-size: 12px; display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--text-dim); }
.tbl th.sortable::after { content: ' ↕'; opacity: 0.35; font-size: 10px; }
.tbl th.sorted-desc::after { content: ' ↓'; opacity: 1; color: var(--accent); }
.tbl th.sorted-asc::after { content: ' ↑'; opacity: 1; color: var(--accent); }
.sym-link { display: inline-block; text-decoration: none; color: inherit; }
.sym-link:hover .sym { color: var(--accent); text-decoration: underline; }

/* ===== inputs ===== */
input, select, textarea {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); font: 500 14px 'DM Sans', sans-serif; padding: 10px 13px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
select { cursor: pointer; }
.form-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.form-row label { color: var(--text-dim); font-size: 13px; font-weight: 600; }
.searchbox { position: relative; flex: 1; min-width: 220px; }
.searchbox input { width: 100%; }
.search-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); overflow: hidden;
}
.search-results button {
  display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: 10px 14px; font: 600 13px 'DM Sans', sans-serif; cursor: pointer;
}
.search-results button:hover { background: var(--surface2); }
.search-results .sm { display: block; color: var(--text-faint); font-size: 11.5px; font-weight: 400; }

/* ===== badges & chips ===== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid var(--border); color: var(--text-dim); background: var(--surface2);
}
.badge.Tinggi, .badge.high, .badge.High { color: var(--down); border-color: rgba(229, 72, 77, 0.4); background: rgba(229, 72, 77, 0.12); }
.badge.Sedang, .badge.med, .badge.Medium { color: var(--flat); border-color: rgba(245, 165, 36, 0.4); background: rgba(245, 165, 36, 0.1); }
.badge.Rendah, .badge.low, .badge.Low { color: var(--text-dim); }
.badge.akumulasi { color: var(--up); border-color: rgba(48, 164, 108, 0.4); background: rgba(48, 164, 108, 0.12); }
.badge.distribusi { color: var(--down); border-color: rgba(229, 72, 77, 0.4); background: rgba(229, 72, 77, 0.12); }
.badge.ekstrem { color: var(--flat); border-color: rgba(245, 165, 36, 0.4); background: rgba(245, 165, 36, 0.1); }
.pct { font-weight: 700; }
.pct.up { color: var(--up); }
.pct.down { color: var(--down); }
.pct.flat { color: var(--flat); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  border-radius: 999px; padding: 7px 14px; font: 600 12.5px 'DM Sans', sans-serif; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--text-faint); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== bar / meter ===== */
.bar { height: 6px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.bar > i.warn { background: var(--flat); }
.bar > i.danger { background: var(--down); }
.meter {
  height: 14px; border-radius: 999px; overflow: hidden; position: relative;
  background: linear-gradient(90deg, var(--down), var(--flat) 45%, #E3C64E 55%, var(--up));
}
.meter > i {
  position: absolute; top: -2px; bottom: -2px; width: 4px; border-radius: 2px;
  background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, 0.6); left: calc(var(--v, 50) * 1%);
  transform: translateX(-50%);
}

/* ===== skeleton / error / toast ===== */
.skeleton { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.sk-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface2) 25%, #232c36 50%, var(--surface2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
.sk-line.w70 { width: 70%; } .sk-line.w90 { width: 90%; } .sk-line.w50 { width: 50%; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.errorbox {
  border: 1px solid rgba(229, 72, 77, 0.4); background: rgba(229, 72, 77, 0.08);
  border-radius: var(--radius); padding: 16px; color: var(--text-dim); font-size: 13.5px;
}
.errorbox b { color: var(--down); display: block; margin-bottom: 4px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  padding: 11px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); opacity: 0; transition: all 0.3s; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== chart svg ===== */
.spark { display: block; width: 100%; max-width: 100%; height: auto; }
.gauge { display: block; margin: 0 auto; width: 100%; max-width: 260px; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.gauge-val { font: 800 24px 'DM Sans', sans-serif; }

/* ===== misc tool UI ===== */
.level-table td { text-align: right; }
.level-table td:first-child { text-align: left; color: var(--text-dim); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(35, 44, 54, 0.7); font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-dim); }
.kv .v { font-weight: 700; }
.news-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(35, 44, 54, 0.5); }
.news-item:last-child { border-bottom: none; }
.news-item .meta { color: var(--text-faint); font-size: 12px; margin-top: 3px; }
.news-item a.t { color: var(--text); font-weight: 600; font-size: 14px; }
.news-item a.t:hover { color: var(--accent); text-decoration: none; }
.heat-tile {
  border-radius: 6px; padding: 8px 9px; min-height: 44px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2px;
  overflow: hidden; cursor: default;
}
.heat-tile .s { font-weight: 700; font-size: 12px; white-space: nowrap; }
.heat-tile .v { font-size: 11px; opacity: 0.85; white-space: nowrap; }
.heat-tile.neg { background: rgba(229, 72, 77, calc(0.25 + var(--m, 0.5) * 0.45)); }
.heat-tile.pos { background: rgba(48, 164, 108, calc(0.25 + var(--m, 0.5) * 0.45)); }
.heat-tile.flat0 { background: #2a2f3a; }
.heat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 5px; }
.strategy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.strategy h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rating { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; }
.rating .r { flex: 1; min-width: 90px; }
.rating .r .k { color: var(--text-faint); font-size: 11px; }
.rating .r .bar { margin-top: 4px; }
.wl-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(35, 44, 54, 0.5); }
.wl-row:last-child { border-bottom: none; }
.wl-row .g { font-weight: 700; flex: 1; }
.wl-del { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 15px; }
.wl-del:hover { color: var(--down); }
.hl { color: var(--flat); font-weight: 700; }

/* ===== compare interaktif ===== */
.cmp-wrap { position: relative; }
.cmp-tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 11px; font-size: 12px; min-width: 150px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.cmp-tip-date { color: var(--text-faint); font-size: 11px; margin-bottom: 4px; font-weight: 700; }
.cmp-tip-row { display: flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.cmp-tip-row b { font-weight: 700; }
.cmp-legend {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 11px; margin-right: 6px; margin-bottom: 4px;
  font: 700 12.5px 'DM Sans', sans-serif; cursor: pointer; color: var(--text);
}
.cmp-legend:hover { border-color: var(--text-faint); }
.cmp-legend.off { opacity: 0.45; }
.cmp-legend .cmp-dot { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.cmp-legend .muted { font-weight: 400; font-size: 11px; }

/* ===== Verira Playbook ===== */
.skip-link { position: fixed; left: 12px; top: 8px; z-index: 100; transform: translateY(-180%); background: var(--accent); color: #fff; padding: 9px 13px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.academy-hero { max-width: 820px; padding: 30px 0 28px; }
.academy-hero h1 { font-size: 38px; margin-bottom: 12px; }
.academy-hero .lead { color: var(--text-dim); max-width: 760px; font-size: 17px; line-height: 1.7; }
.academy-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--text-faint); font-size: 12px; margin-top: 18px; }
.academy-layout { display: grid; grid-template-columns: 210px minmax(0, 760px); gap: 34px; align-items: start; }
.academy-side { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow: auto; }
.academy-side nav { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--border); padding-left: 14px; }
.academy-side strong { color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.academy-side a { color: var(--text-dim); font-size: 12.5px; line-height: 1.35; padding: 5px 0; }
.academy-side a:hover { color: var(--accent); text-decoration: none; }
.academy-article { min-width: 0; }
.academy-section { padding: 34px 0 38px; border-bottom: 1px solid var(--border); scroll-margin-top: 78px; }
.academy-section:first-child { padding-top: 0; }
.academy-section h2 { font-size: 27px; line-height: 1.25; margin-bottom: 12px; }
.academy-section h3 { font-size: 17px; margin-top: 24px; }
.academy-section p, .academy-section li { color: var(--text-dim); line-height: 1.75; }
.academy-section ul, .academy-section ol { padding-left: 22px; }
.academy-section li { margin: 5px 0; }
.academy-section code { color: var(--accent); background: var(--surface2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: .92em; }
.eyebrow { color: var(--accent) !important; font-size: 11px !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px !important; }
.academy-callout { border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px; margin: 18px 0; }
.academy-callout.warning { border-left-color: var(--flat); }
.academy-callout strong { color: var(--text); }
.academy-callout p { margin: 5px 0 0; }
.reading-flow { counter-reset: read; list-style: none; padding-left: 0 !important; }
.reading-flow li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: start; }
.reading-flow li::before { counter-increment: read; content: counter(read); display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(59,130,246,.35); font-size: 12px; font-weight: 800; }
.academy-table-wrap { overflow-x: auto; margin: 16px 0; }
.academy-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.academy-table th, .academy-table td { padding: 10px 11px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.academy-table th { color: var(--text-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.academy-table td { color: var(--text-dim); line-height: 1.55; }
.academy-table td:first-child { color: var(--text); font-weight: 700; }
.academy-card-grid, .formula-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.academy-card, .formula-box, .academy-example { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.academy-card h3, .formula-box h3, .academy-example h3 { margin: 0 0 6px; font-size: 15px; color: var(--text); }
.academy-card p, .formula-box p, .academy-example p { margin: 0; font-size: 13px; }
.formula-box code { display: block; padding: 9px 10px; margin-bottom: 8px; color: var(--text); line-height: 1.65; white-space: normal; }
.formula-box.wide { margin: 14px 0; }
.academy-example { margin: 14px 0; border-left: 3px solid var(--accent); }
.academy-example pre { overflow-x: auto; margin: 10px 0; padding: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; }
.academy-example pre code { display: block; border: 0; padding: 0; color: var(--text); background: none; white-space: pre; }
.academy-defs { display: grid; grid-template-columns: minmax(130px, .35fr) minmax(0, 1fr); gap: 0; margin: 16px 0; }
.academy-defs dt, .academy-defs dd { padding: 10px 0; border-bottom: 1px solid var(--border); }
.academy-defs dt { color: var(--text); font-weight: 700; }
.academy-defs dd { margin: 0; color: var(--text-dim); }
.academy-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.academy-end { padding: 38px 0 10px; }
.academy-end h2 { margin-bottom: 8px; }
@media (max-width: 860px) {
  .academy-hero h1 { font-size: 30px; }
  .academy-layout { display: block; }
  .academy-side { position: static; max-height: none; margin-bottom: 22px; }
  .academy-side nav { flex-direction: row; overflow-x: auto; border: 0; border-bottom: 1px solid var(--border); padding: 0 0 8px; gap: 8px; }
  .academy-side strong { display: none; }
  .academy-side a { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; }
  .academy-card-grid, .formula-grid { grid-template-columns: minmax(0, 1fr); }
  .academy-section h2 { font-size: 23px; }
  .academy-defs { grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr); }
}

/* ===== footer ===== */
.footer { border-top: 1px solid var(--border); padding: 26px 0 40px; color: var(--text-faint); font-size: 12.5px; }
.footer-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; color: var(--text-dim); font-weight: 600; }
.footer-links a { color: var(--text-dim); }
.footer-note { max-width: 720px; }

/* ===== responsive ===== */
html, body { overflow-x: hidden; }
@media (max-width: 860px) {
  .nav { display: none; }
  .mnav { display: block; max-width: 34vw; font-size: 12px; padding: 7px 8px; }
  .hide-mobile { display: none !important; }
  .topbar-in { gap: 8px; }
  .logo { font-size: 15px; gap: 5px; }
  .logo-tag { display: none; }
  .topbar-cta { gap: 6px; }
  .topbar-cta .btn { padding: 7px 10px; font-size: 12.5px; }
  .user-chip { display: none; }
  .wrap { padding: 0 14px; }
  body { font-size: 15.5px; }
  h1 { font-size: 22px; }
  .hero h1 { font-size: 24px; }
  .panel { padding: 14px; }
  .tl-card { padding: 16px; }
  .form-row { gap: 8px; }
  .form-row .searchbox { flex-basis: 100%; }
  .kv { flex-wrap: wrap; }
  .wl-row { min-width: 0; }
  .wl-row .g { min-width: 0; flex: 1 1 40%; }
  .wl-row .r, .wl-row > div { min-width: 0; }
  .tbl td, .tbl th { padding: 8px 8px; }
  .compare { display: block; overflow-x: auto; white-space: nowrap; }
  .stat .v { font-size: 17px; }
  .stats-row { gap: 10px; }
}

/* ---------- AI advisor output ---------- */
.ai-box { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.ai-box p { margin: 0 0 8px; line-height: 1.55; }
.ai-box p:last-child { margin-bottom: 0; }
.ai-list { margin: 0 0 8px; padding-left: 20px; }
.ai-list li { margin: 3px 0; line-height: 1.5; }
.ai-tag { display: inline-block; font-size: 10.5px; color: var(--text-faint); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; margin-top: 8px; }

/* ---------- paket harga (Free / Pro / Premium) ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.hot { border-color: rgba(59, 130, 246, 0.55); box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 8px 30px rgba(59, 130, 246, 0.12); }
.plan .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin: 0; font-size: 17px; }
.plan .price { font-size: 30px; font-weight: 800; line-height: 1.1; }
.plan .price small { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.plan .per { color: var(--text-faint); font-size: 12.5px; margin-top: -6px; }
.plan ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 13.5px; line-height: 1.7; flex: 1; }
.plan ul li::marker { color: var(--accent); }
.plan .btn { width: 100%; justify-content: center; }
 .plan-more { border-top: 1px solid var(--border); padding-top: 9px; color: var(--text-dim); font-size: 13px; }
 .plan-more summary { color: var(--accent); cursor: pointer; font-weight: 700; }
 .plan-more ul { margin-top: 8px; }

/* ---------- Smart Money Score ---------- */
.sms { display: inline-flex; align-items: center; gap: 8px; }
.sms .n { font-weight: 800; font-size: 15px; min-width: 26px; text-align: right; }
.sms .bar { width: 74px; }
.sms.hi .n { color: var(--up); } .sms.hi .bar > i { background: var(--up); }
.sms.mid .n { color: var(--flat); } .sms.mid .bar > i { background: var(--flat); }
.sms.lo .n { color: var(--down); } .sms.lo .bar > i { background: var(--down); }
.subscore { display: inline-block; min-width: 30px; text-align: center; font-weight: 700; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.subscore.hi { color: var(--up); background: rgba(48, 164, 108, 0.12); }
.subscore.mid { color: var(--flat); background: rgba(245, 165, 36, 0.1); }
.subscore.lo { color: var(--down); background: rgba(229, 72, 77, 0.12); }
/* banner data cache lama / upstream bermasalah (di-upsert V.premium) */
.stale-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(30, 24, 8, 0.96); border-top: 1px solid var(--flat); padding: 8px 16px; }
.stale-banner p { margin: 0; font-size: 13px; text-align: center; }
