/* =================================================================
   SatuKonfig — design system "Patch Panel"
   - Warna kategori = kode warna serat fiber (TIA-598)
   - Label = label kabel (mono, kapital, strip warna)
   - Kartu = modul rak bernomor port
   - Status = LED perangkat
   ================================================================= */

/* ---------- token: terang (kertas label) ---------- */
:root {
  --paper: #f3f1ea;
  --panel: #fbfaf6;
  --panel-2: #efece3;
  --sunken: #e8e4d9;
  --ink: #17191c;
  --ink-2: #4d5258;
  --ink-3: #62666c;
  --rule: #dcd7ca;
  --rule-2: #c5bfaf;

  --f-blue: #1d63c8;
  --f-orange: #d2601a;
  --f-green: #2b8a46;
  --f-brown: #8a5a33;
  --f-slate: #5d6670;
  --f-red: #c9342a;
  --f-yellow: #9a7600;
  --f-violet: #6c4bb8;
  --f-aqua: #168a8e;

  --accent: var(--f-orange);
  --accent-text: #ad4c17;
  --logo-one: #d2601a;
  --ok: #1f7238;   --ok-bg: #e2eee2;
  --warn: #9c7000; --warn-bg: #f5ebcf;
  --err: #c2322a;  --err-bg: #f6e0dc;

  --btn: #17191c;
  --btn-text: #f3f1ea;
  --code-bg: #15171a;
  --code-ink: #dbe2d7;
  --code-dim: #7f8b80;
  /* cetak: selalu seperti kertas putih (tidak ditimpa tema gelap) */
  --print-paper: #ffffff;
  --print-ink: #17191c;
  --print-ink-2: #4d5258;
  --print-rule: #b5ae9d;
  --shadow: 0 1px 0 rgba(23, 25, 28, .04), 0 8px 24px -16px rgba(23, 25, 28, .25);

  --r: 6px;
  --r-lg: 10px;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

/* ---------- token: gelap (ruang server) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1012;
    --panel: #16181b;
    --panel-2: #1c1f23;
    --sunken: #0b0c0d;
    --ink: #ebe8df;
    --ink-2: #a8a9a4;
    --ink-3: #8a8d86;
    --rule: #272a2e;
    --rule-2: #393d42;
    --f-blue: #5b9bff;
    --f-orange: #ff8a3d;
    --accent-text: #ff8a3d;
    --f-green: #4cc26c;
    --f-brown: #c38c5d;
    --f-slate: #8f99a4;
    --f-red: #ff6a5c;
    --f-yellow: #eec23a;
    --f-violet: #a688ff;
    --f-aqua: #3fc6c8;
    --ok: #4cc26c;  --ok-bg: #142619;
    --warn: #eec23a; --warn-bg: #282210;
    --err: #ff6a5c; --err-bg: #2b1614;
    --btn: #ebe8df;
    --btn-text: #0f1012;
    --code-bg: #0b0c0d;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1012;
  --panel: #16181b;
  --panel-2: #1c1f23;
  --sunken: #0b0c0d;
  --ink: #ebe8df;
  --ink-2: #a8a9a4;
  --ink-3: #8a8d86;
  --rule: #272a2e;
  --rule-2: #393d42;
  --f-blue: #5b9bff;
  --f-orange: #ff8a3d;
    --accent-text: #ff8a3d;
  --f-green: #4cc26c;
  --f-brown: #c38c5d;
  --f-slate: #8f99a4;
  --f-red: #ff6a5c;
  --f-yellow: #eec23a;
  --f-violet: #a688ff;
  --f-aqua: #3fc6c8;
  --ok: #4cc26c;  --ok-bg: #142619;
  --warn: #eec23a; --warn-bg: #282210;
  --err: #ff6a5c; --err-bg: #2b1614;
  --btn: #ebe8df;
  --btn-text: #0f1012;
  --code-bg: #0b0c0d;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* warna kategori: data-fiber="blue" dst. */
[data-fiber="blue"]   { --c: var(--f-blue); }
[data-fiber="orange"] { --c: var(--f-orange); }
[data-fiber="green"]  { --c: var(--f-green); }
[data-fiber="brown"]  { --c: var(--f-brown); }
[data-fiber="slate"]  { --c: var(--f-slate); }
[data-fiber="red"]    { --c: var(--f-red); }
[data-fiber="yellow"] { --c: var(--f-yellow); }
[data-fiber="violet"] { --c: var(--f-violet); }
[data-fiber="aqua"]   { --c: var(--f-aqua); }

/* ---------- dasar ---------- */
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
code { padding: 1px 5px; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel-2); font-family: var(--mono); font-size: .85em; }

/* label kecil mono (dipakai di mana-mana) */
.eyebrow, .sb-label, .tag, .stat-label, th, .fx-group-title, .sec-no, .index-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 6px; color: var(--ink-3); }

/* label kabel */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 9px 4px 0;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: var(--panel);
  color: var(--ink-2);
}
.tag::before { content: ""; align-self: stretch; width: 5px; margin: -4px 0; border-radius: 2px 0 0 2px; background: var(--c, var(--accent)); }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--btn); border-radius: var(--r);
  background: var(--btn); color: var(--btn-text);
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s, transform .12s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: none; }
.btn:disabled { cursor: wait; opacity: .5; }
.btn.primary { background: var(--btn); color: var(--btn-text); }
.btn.secondary, .btn.line { border-color: var(--rule-2); background: var(--panel); color: var(--ink); }
.btn.secondary:hover:not(:disabled), .btn.line:hover:not(:disabled) { border-color: var(--ink-2); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover:not(:disabled) { background: var(--panel-2); color: var(--ink); }
.btn.danger { border-color: var(--err); background: transparent; color: var(--err); }
.btn.small { min-height: 32px; padding: 5px 11px; font-size: 12.5px; }
.btn.full { width: 100%; }
.full { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--rule-2); border-radius: var(--r);
  background: var(--panel); color: var(--ink-2);
  font-size: 15px; cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-2); }

/* ---------- form ---------- */
.form-stack { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.full-width { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.field label em { color: var(--ink-3); font-size: 11px; font-style: normal; font-weight: 400; }
input, select, textarea {
  width: 100%; min-height: 40px; padding: 8px 11px;
  border: 1px solid var(--rule-2); border-radius: var(--r);
  background: var(--panel); color: var(--ink);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
textarea { min-height: 84px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.msg { min-height: 20px; margin-top: 10px; color: var(--ink-3); font-size: 12.5px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }
.hint { margin: 14px 0 0; color: var(--ink-3); font-size: 12.5px; }
.hint strong { color: var(--ink-2); font-family: var(--mono); font-weight: 600; }

/* ---------- panel / modul rak ---------- */
.panel {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { font-size: 18px; font-weight: 650; }
.index-tag { color: var(--ink-3); }
.page-narrow { max-width: 620px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; align-items: start; }
.page > * + * { margin-top: 18px; }
.home-grid { display: grid; gap: 18px; }

/* ---------- LED status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px 2px 6px;
  border: 1px solid var(--rule); border-radius: 3px;
  background: var(--panel-2); color: var(--ink-2);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.badge.success::before, .badge.approved::before { background: var(--ok); box-shadow: 0 0 0 2px var(--ok-bg); }
.badge.pending::before, .badge.active::before, .badge.warning::before { background: var(--warn); box-shadow: 0 0 0 2px var(--warn-bg); }
.badge.failed::before, .badge.rejected::before, .badge.expired::before { background: var(--err); box-shadow: 0 0 0 2px var(--err-bg); }

.server-status { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; }
.server-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.server-status.online { color: var(--ok); }
.server-status.online i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.server-status.offline { color: var(--err); }
.server-status.offline i { background: var(--err); }

/* ---------- tabel ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 13px; }
.table-compact { min-width: 360px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
th { background: var(--panel-2); color: var(--ink-3); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--panel-2) 55%, transparent); }
td { color: var(--ink-2); }
td.amount-positive { color: var(--ok); font-family: var(--mono); }
td.amount-negative { color: var(--err); font-family: var(--mono); }
td.empty { padding: 26px; color: var(--ink-3); text-align: center; }
td.actions { min-width: 170px; white-space: nowrap; }
td.actions .btn { margin-right: 4px; }

pre { overflow-x: auto; margin: 10px 0 0; padding: 13px; border-radius: var(--r); background: var(--code-bg); color: var(--code-ink); font-family: var(--mono); font-size: 12px; line-height: 1.7; white-space: pre-wrap; }

/* =================================================================
   APP SHELL (sesudah login & halaman fitur)
   ================================================================= */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { flex: none; width: 34px; height: 34px; }
.lm-bg { fill: var(--btn); }
.lm-br, .lm-one { fill: none; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }
.lm-br { stroke: var(--btn-text); }
.lm-one { stroke: var(--logo-one); }
.logo-text { display: grid; line-height: 1.1; }
.logo-text .wm { font-size: 17px; font-weight: 450; letter-spacing: -.03em; }
.logo-text .wm b { font-weight: 800; }
.logo-text small { color: var(--ink-3); font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

.sidebar {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-direction: column; gap: 16px;
  height: 100vh; overflow-y: auto;
  padding: 20px 14px;
  border-right: 1px solid var(--rule);
  background: var(--panel);
}
.sb-brand { padding: 0 6px; }
.sb-search input { min-height: 36px; padding: 6px 10px; font-size: 13px; background: var(--paper); }
.sb-nav { display: grid; gap: 18px; }
.sb-group { display: grid; gap: 1px; }
.sb-label { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0 8px; color: var(--ink-3); }
.sb-label::before { content: ""; width: 10px; height: 3px; border-radius: 2px; background: var(--c, var(--ink-3)); }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--r);
  color: var(--ink-2); font-size: 13.5px; font-weight: 550; text-decoration: none;
}
.nav-item i {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 20px; padding: 0 3px;
  border: 1px solid var(--rule-2); border-radius: 3px;
  color: var(--ink-3); font-family: var(--mono); font-size: 9.5px; font-style: normal; font-weight: 700;
}
.nav-item:hover { background: var(--panel-2); color: var(--ink); }
.nav-item.active { background: var(--panel-2); color: var(--ink); }
.nav-item.active i { border-color: var(--c, var(--accent)); background: var(--c, var(--accent)); color: var(--panel); }
.nav-item .soon { margin-left: auto; color: var(--ink-3); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.nav-item.filtered, .sb-group.filtered { display: none; }
.sb-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px dashed var(--rule-2); }

.workspace { min-width: 0; padding: 26px clamp(16px, 3vw, 40px) 56px; }
.ws-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.ws-title { flex: 1; min-width: 0; }
.ws-head h1 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.15; }
.ws-desc { max-width: 720px; margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.ws-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ws-balance { padding: 6px 10px; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--panel); font-family: var(--mono); font-size: 12.5px; font-weight: 700; }
.sb-toggle { display: none; }
.sb-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(10, 11, 12, .5); }
.soon-view { max-width: 720px; }
.soon-view h2 { margin-bottom: 6px; font-size: 18px; }

/* ---------- beranda (sesudah login) ---------- */
.stats-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.stat-card { min-width: 0; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--panel); }
.stat-label { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--ink-3); }
.stat-card p { margin: 8px 0 0; color: var(--ink-3); font-size: 12.5px; }
.stat-card p a { color: var(--ink); font-weight: 600; }
.balance-value { overflow: hidden; font-family: var(--mono); font-size: clamp(26px, 3vw, 34px); font-weight: 750; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.stat-value { overflow: hidden; margin-bottom: 8px; font-size: 20px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.action-card .btn { margin-top: 12px; }
.balance-card { border-top: 3px solid var(--f-green); }

.operation-list { display: grid; gap: 8px; }
.operation-item { padding: 12px 14px; border: 1px solid var(--rule); border-left: 3px solid var(--f-green); border-radius: var(--r); background: var(--paper); }
.operation-item p { margin: 0 0 4px; color: var(--ink-2); font-size: 13px; }
.operation-item strong { font-family: var(--mono); font-size: 15px; }
.operation-item small { display: block; margin-top: 2px; color: var(--ink-3); font-family: var(--mono); font-size: 10px; }
.cli-help { margin-top: 14px; padding-top: 4px; border-top: 1px dashed var(--rule-2); }
.cli-help summary { padding: 10px 0 2px; color: var(--ink-2); cursor: pointer; font-size: 12.5px; font-weight: 600; }

.payinfo { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 16px; border: 1px dashed var(--rule-2); border-radius: var(--r); background: var(--paper); }
.pay-line { color: var(--ink-2); font-size: 13px; }
.pay-account { margin: 3px 0; font-family: var(--mono); font-size: 20px; font-weight: 750; }
.pay-note { max-width: 460px; margin-top: 8px; color: var(--ink-3); font-size: 12px; }
.qris { display: block; width: 120px; height: 120px; border-radius: var(--r); background: #fff; object-fit: contain; }

/* =================================================================
   KATALOG FITUR (beranda publik & sesudah login)
   ================================================================= */
.fx { display: grid; gap: 28px; }
.fx-group { display: grid; gap: 12px; }
.fx-group-title { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.fx-group-title::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--c); }
.fx-group-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; counter-reset: port; }
.fx-card {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 14px;
  min-height: 112px; padding: 18px 16px 16px;
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--panel);
  color: var(--ink); text-decoration: none;
  counter-increment: port;
  transition: border-color .14s, transform .14s, box-shadow .14s;
}
.fx-card::before {
  content: ""; position: absolute; top: -1px; left: 16px; right: 16px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--c);
}
.fx-card::after {
  content: "P" counter(port, decimal-leading-zero);
  position: absolute; right: 12px; bottom: 9px;
  color: var(--ink-3); font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
}
a.fx-card:hover { border-color: var(--c); transform: translateY(-2px); box-shadow: var(--shadow); }
.fx-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--rule-2); border-radius: 8px;
  background: var(--paper); color: var(--c);
}
.fx-icon svg { width: 22px; height: 22px; }
.fx-body { display: grid; gap: 4px; min-width: 0; }
.fx-body strong { font-size: 15px; font-weight: 650; }
.fx-desc { color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.fx-go { color: var(--ink-3); font-family: var(--mono); transition: color .14s, transform .14s; }
a.fx-card:hover .fx-go { color: var(--c); transform: translateX(3px); }
.fx-tag { padding: 2px 6px; border: 1px solid var(--rule-2); border-radius: 3px; color: var(--ink-2); font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.fx-card.is-soon { background: transparent; border-style: dashed; }
.fx-card.is-soon .fx-icon, .fx-card.is-soon .fx-body { opacity: .6; }

/* =================================================================
   LANDING (sebelum login)
   ================================================================= */
.lp { min-height: 100vh; }
.lp-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.lp-bar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); }
.lp-bar .lp-wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.lp-links { display: flex; gap: 22px; margin-left: 12px; }
.lp-links a { color: var(--ink-2); font-size: 14px; font-weight: 550; text-decoration: none; }
.lp-links a:hover { color: var(--ink); }
.lp-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.lp-hero h1 { margin: 18px 0 16px; font-size: clamp(34px, 5.4vw, 60px); font-weight: 750; line-height: 1.03; letter-spacing: -.045em; }
.lp-hero h1 em { font-style: normal; box-shadow: inset 0 -.18em 0 color-mix(in srgb, var(--f-orange) 35%, transparent); }
.lead { max-width: 520px; margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-cta .btn { min-height: 46px; padding: 10px 20px; font-size: 15px; }
.hero-specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; width: fit-content; margin: 36px 0 0; border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); }
.hero-specs div { padding: 10px 18px; border-left: 1px solid var(--rule); }
.hero-specs div:first-child { border-left: 0; }
.hero-specs dt { color: var(--ink-3); font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hero-specs dd { margin: 2px 0 0; font-family: var(--mono); font-size: 17px; font-weight: 750; }

/* visual: patch panel + terminal */
.hero-visual { display: grid; gap: 14px; }
.rack {
  padding: 14px 16px 12px;
  border: 1px solid var(--rule-2); border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.rack-head { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--ink-3); font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; }
.ports { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.port { position: relative; aspect-ratio: 1 / 1.05; border: 1px solid var(--rule-2); border-radius: 3px; background: var(--sunken); }
.port::after { content: ""; position: absolute; inset: 28% 22% 18%; border-radius: 2px; background: var(--c, transparent); }
.port.led::before { content: ""; position: absolute; top: 3px; right: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--ok); animation: blink 1.6s steps(2, start) infinite; }
.port:nth-child(3n).led::before { animation-duration: 1.1s; }
.port:nth-child(4n).led::before { animation-duration: 2.3s; }
.port-labels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 5px; color: var(--ink-3); font-family: var(--mono); font-size: 8.5px; text-align: center; }
@keyframes blink { to { opacity: .15; } }

.term { border-radius: var(--r-lg); background: var(--code-bg); box-shadow: var(--shadow); overflow: hidden; }
.term-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--code-dim); font-family: var(--mono); font-size: 10.5px; }
.term-bar b { color: var(--code-ink); font-weight: 600; }
.term pre { margin: 0; padding: 14px 16px 16px; border-radius: 0; background: transparent; font-size: 12px; white-space: pre; }
.term .c { color: var(--code-dim); }
.term .k { color: #ffb072; }
.term .v { color: #8fd19e; }

.lp-section { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 16px; margin-bottom: 28px; }
.sec-no { color: var(--accent-text); }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 750; }
.sec-head p { grid-column: 2; margin: 0; color: var(--ink-2); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--panel); }
.steps li { padding: 22px; border-left: 1px dashed var(--rule-2); }
.steps li:first-child { border-left: 0; }
.steps span { display: block; margin-bottom: 14px; color: var(--accent-text); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.steps strong { display: block; margin-bottom: 4px; font-size: 16px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 14px; }

.lp-foot { padding: 26px 0 34px; border-top: 1px solid var(--rule); }
.lp-foot .lp-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink-3); font-size: 12.5px; }

/* ---------- modal login ---------- */
.modal {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--rule-2); border-radius: var(--r-lg);
  background: var(--panel); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55);
}
.modal::backdrop { background: rgba(12, 13, 14, .55); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.modal-head h2 { font-size: 20px; font-weight: 700; }
.modal-body { padding: 16px 22px 22px; }
.modal-note { margin: 0 0 14px; padding: 9px 11px; border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; background: var(--panel-2); color: var(--ink-2); font-size: 13px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 18px; padding: 3px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.tab { padding: 7px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 13.5px; font-weight: 650; }
.tab.active { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.auth-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--rule-2); color: var(--ink-3); font-size: 12px; }

/* =================================================================
   responsif
   ================================================================= */
@media (max-width: 1100px) {
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .balance-card { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: none; box-shadow: 16px 0 50px rgba(0, 0, 0, .35); }
  .sb-toggle { display: inline-flex; }
  .workspace { padding-top: 16px; }
  .ws-head { flex-wrap: wrap; align-items: center; }
  .ws-title { order: 3; flex-basis: 100%; }
  .ws-user { margin-left: auto; }
}
@media (max-width: 640px) {
  .lp-links { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; border-top: 1px dashed var(--rule-2); }
  .steps li:first-child { border-top: 0; }
  .hero-specs { grid-template-columns: repeat(3, 1fr); }
  .hero-specs div { padding: 8px 10px; }
  .ports, .port-labels { gap: 4px; }
  .payinfo { flex-direction: column; }
  .panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* fitur yang dimatikan admin (lihat sidebar.js applyFeatures) */
html[data-ont-off] [data-flag="ont"], html[data-ont-wait] [data-flag="ont"] { display: none !important; }
/* tool publik: hasil diburamkan sampai login (lock.js) */
.is-locked { position: relative; }
.is-locked .mt-output, .is-locked .mt-calc, .is-locked #warnings, .is-locked .vc-stage, .is-locked .lp-phone, .is-locked .qw-stage { filter: blur(6px); opacity: .55; user-select: none; pointer-events: none; }
.lock-overlay { position: absolute; inset: 70px 16px auto; z-index: 5; display: flex; justify-content: center; }
.lock-card { width: 100%; max-width: 340px; padding: 20px 20px 18px; border: 1px solid var(--rule-2); border-top: 3px solid var(--accent); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow); text-align: center; }
.lock-card h3 { margin: 0 0 6px; font-size: 17px; }
.lock-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 13.5px; }
.lock-card .eyebrow { margin-bottom: 8px; }
.lock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* baris kotak centang dengan judul + keterangan (pengaturan admin) */
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); cursor: pointer; }
.check-row input { flex: none; width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--accent); }
.check-row span { display: grid; gap: 2px; }
.check-row strong { color: var(--ink); font-size: 13.5px; }
.check-row small { color: var(--ink-3); font-size: 12.5px; }

/* ---------- panduan & pemberitahuan (Unlock ONT, Top-up) ---------- */
.notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--rule); border-left: 3px solid var(--warn); border-radius: var(--r); background: var(--warn-bg); color: var(--ink); font-size: 13.5px; }
.notice a { color: var(--ink); font-weight: 600; }
.panel .notice { margin: 0 0 18px; }
#admin-pending { margin: 18px 0 0; }
.flow + .payinfo { margin: 0 0 18px; }
.lead-sm { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; line-height: 1.6; max-width: 62ch; }
.flow { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: none; }
.flow li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.flow li b { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--rule-2); border-radius: var(--r-xs); color: var(--accent-text); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.flow strong { color: var(--ink); }
.checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 9px; height: 9px; border-radius: 2px; background: var(--f-green); }
.checklist b { color: var(--ink); }
.operation-item .op-desc { margin: 6px 0 0; color: var(--ink-3); font-size: 12.5px; }
#btn-download { margin-top: 16px; }
.nav-item .count { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: var(--r-xs); background: var(--warn-bg); color: var(--ink); font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-align: center; }
