/* Billing Warnet Indonesia — shared Hub design system */
:root {
  color-scheme: dark;
  --bg: #0e0f14;
  --bg2: #12131a;
  --panel: #15161e;
  --card: #1a1b23;
  --card2: #22232d;
  --line: #2a2b38;
  --line2: #3a3b4a;
  --text: #f5f3ff;
  --muted: #aaa8ba;
  --dim: #8f8da0;
  --violet: #5c50e6;
  --violet2: #968cff;
  --violet-soft: rgba(92, 80, 230, .15);
  --gold: #e8c36a;
  --gold2: #c99d3f;
  --gold-soft: rgba(232, 195, 106, .12);
  --green: #42d6b0;
  --green-soft: rgba(66, 214, 176, .12);
  --red: #ff737f;
  --red-soft: rgba(255, 115, 127, .12);
  --blue: #70bcff;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1000px 560px at 8% -14%, rgba(92, 80, 230, .22), transparent 62%),
    radial-gradient(760px 440px at 100% 0%, rgba(232, 195, 106, .08), transparent 58%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet2); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 800; }
.skip-link:focus { top: 12px; }
.hidden { display: none !important; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%;
  background: #111219;
  border: 1px solid var(--line2);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--violet2);
  box-shadow: 0 0 0 3px rgba(92, 80, 230, .2);
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--violet); }
input[type="range"] { padding: 0; accent-color: var(--violet); background: transparent; border: 0; box-shadow: none; }
label { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.field { margin-bottom: 14px; }

.btn, .btn-ghost, .btn-gold, .btn-danger, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; cursor: pointer;
  text-decoration: none !important; white-space: nowrap; transition: filter .15s, transform .05s, background .15s;
}
.btn:active, .btn-ghost:active, .btn-gold:active, .btn-danger:active, .btn-line:active { transform: translateY(1px); }
.btn { background: linear-gradient(135deg, #766bf0, #5145d4); color: #fff; box-shadow: 0 10px 28px rgba(92, 80, 230, .3); }
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--card2); color: var(--text); border: 1px solid var(--line2); }
.btn-ghost:hover { background: #2b2c38; }
.btn-line { background: transparent; color: var(--gold); border: 1px solid rgba(230, 180, 80, .45); }
.btn-line:hover { background: var(--gold-soft); }
.btn-gold { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(230, 180, 80, .35); }
.btn-danger { background: var(--red-soft); color: #fecaca; border: 1px solid rgba(248, 113, 113, .35); }
.btn-sm { padding: 7px 12px; font-size: .8rem; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; border-radius: 14px; }
button:disabled { opacity: .55; cursor: not-allowed; }

.mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(145deg, #968cff, #5145d4);
  color: #fff; display: grid; place-items: center;
  font-weight: 900; font-size: .74rem; letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 7px 22px rgba(92, 80, 230, .35);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--text); text-decoration: none !important; }
.brand b { display: block; font-size: .92rem; letter-spacing: .04em; }
.brand small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; }

.card {
  background: linear-gradient(180deg, rgba(34, 35, 45, .92), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h2, .card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.kicker { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--violet2); }
.muted { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.dim { color: var(--dim); }
.mono { font-family: Consolas, ui-monospace, monospace; }
.err { color: var(--red); font-size: .85rem; min-height: 1.1em; }
.ok { color: var(--green); font-size: .85rem; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 800; letter-spacing: .05em; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; }
.tag.on { background: var(--green-soft); color: #86efac; border: 1px solid rgba(74, 222, 128, .3); }
.tag.off { background: rgba(120, 113, 108, .18); color: #d6d3d1; border: 1px solid rgba(120, 113, 108, .3); }
.tag.warn { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(230, 180, 80, .35); }
.tag.bad { background: var(--red-soft); color: #fca5a5; border: 1px solid rgba(248, 113, 113, .35); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
.tag.on .dot { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

table.tbl { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl th { color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
table.tbl tr:hover td { background: rgba(255, 255, 255, .015); }
.tbl-wrap { overflow-x: auto; }
code { background: #111219; border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .82em; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; position: relative; overflow: hidden; }
.kpi span { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kpi b { display: block; font-size: 1.4rem; margin-top: 6px; font-weight: 800; }
.kpi em { display: block; font-style: normal; color: var(--dim); font-size: .74rem; margin-top: 2px; }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(230, 180, 80, .09), transparent 70%); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: #1f2a1d; color: #bbf7d0; border: 1px solid rgba(74, 222, 128, .35);
  padding: 10px 18px; border-radius: 999px; font-size: .86rem; font-weight: 700;
  z-index: 90; box-shadow: var(--shadow); animation: toastIn .2s ease-out;
}
.toast.bad { background: #2a1717; color: #fecaca; border-color: rgba(248, 113, 113, .4); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-box { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.auth-box::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--violet2), var(--gold), transparent); }
.auth-box h1 { font-size: 1.35rem; margin: 16px 0 6px; }
.auth-foot { margin-top: 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.secure-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line2); color: var(--dim); font-size: .74rem; }

@media (max-width: 640px) {
  .card { padding: 16px; }
  .auth-box { padding: 24px; }
  .btn, .btn-ghost, .btn-gold, .btn-danger, .btn-line { min-height: 44px; }
  .tbl { min-width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

*:focus-visible { outline: 3px solid rgba(150, 140, 255, .6); outline-offset: 2px; }
