/* ============ NEXUS BILLING — dark neon gaming theme ============ */
:root {
  --bg: #05060c;
  --bg-soft: #0a0e1b;
  --panel: rgba(16, 21, 40, 0.74);
  --panel-solid: #0e1324;
  --stroke: rgba(112, 140, 255, 0.16);
  --stroke-strong: rgba(112, 140, 255, 0.32);
  --ink: #e9edff;
  --muted: #8e97bd;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --magenta: #ec4899;
  --amber: #fbbf24;
  --green: #34d399;
  --red: #fb7185;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px -28px rgba(4, 8, 24, 0.9);
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #67e8f9; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
h1 { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: 0.02em; }
h2 { font-size: 1.05rem; letter-spacing: 0.01em; }
h3 { font-size: 0.95rem; }
p { margin: 0; }
small { font-size: 0.76rem; }
ul { margin: 0; padding: 0; list-style: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  /* URL panjang (otpauth://, webhook) harus bisa membungkus di layar HP */
  overflow-wrap: anywhere;
  word-break: break-word;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
  padding: 1px 6px;
  border-radius: 6px;
  color: #a5f3fc;
}

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 600px at 12% -8%, rgba(139, 92, 246, 0.22), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(760px 520px at 72% 100%, rgba(236, 72, 153, 0.13), transparent 62%),
    linear-gradient(180deg, #05060c 0%, #070a14 55%, #05060c 100%);
}
.bg-fx::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 150, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 78%);
}

/* ---------------- shell ---------------- */
.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  gap: 0;
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 18px 22px;
  background: linear-gradient(180deg, rgba(12, 16, 32, 0.94), rgba(7, 10, 20, 0.86));
  border-right: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(160%);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 1.05rem;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 24px -4px rgba(34, 211, 238, 0.65);
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 0.86rem; letter-spacing: 0.06em; }
.brand-text small { font-size: 0.6rem; letter-spacing: 0.22em; color: var(--muted); }

.nav-group { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.nav-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(142, 151, 189, 0.7);
  padding: 0 12px 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #b8c0e0;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-link:hover { background: rgba(112, 140, 255, 0.09); color: #fff; }
.nav-link.is-active {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.12));
  border-color: rgba(34, 211, 238, 0.35);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--cyan);
}
.nav-ico { display: grid; place-items: center; width: 18px; height: 18px; color: inherit; opacity: 0.9; }
.nav-ico svg { width: 18px; height: 18px; }

.sidebar-foot { display: flex; flex-direction: column; gap: 12px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(112, 140, 255, 0.07);
  border: 1px solid var(--stroke);
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  flex: 0 0 auto;
}
.avatar-sm { width: 28px; height: 28px; border-radius: 8px; font-size: 0.78rem; }
.user-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.user-meta strong { font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--muted); }

.content { padding: 26px 30px 44px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(142, 151, 189, 0.85);
  margin-bottom: 6px;
}
.clock {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #9fe8f7;
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.07);
  white-space: nowrap;
}

/* ---------------- generic blocks ---------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.stat-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  opacity: 0.85;
}
.stat--violet::before { background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.stat--amber::before { background: linear-gradient(90deg, var(--amber), #f97316); }
.stat--magenta::before { background: linear-gradient(90deg, var(--magenta), var(--violet)); }
.stat-label { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  margin: 6px 0 2px;
  color: #fff;
}
.stat-hint { font-size: 0.76rem; color: var(--muted); }

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel-list { display: flex; flex-direction: column; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.section-block { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.section-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-head h2 { font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; color: #cfd7ff; }

.split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.split-grid--sidebar { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); }

/* ---------------- PC cards ---------------- */
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 20px; }
.pc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(18, 24, 46, 0.88), rgba(10, 14, 28, 0.78));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pc-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--muted);
  opacity: 0.5;
}
.pc-card.is-ready::before { background: linear-gradient(180deg, var(--green), var(--cyan)); opacity: 1; }
.pc-card.is-busy::before { background: linear-gradient(180deg, var(--magenta), var(--violet)); opacity: 1; }
.pc-card.is-maint::before { background: linear-gradient(180deg, var(--amber), #f97316); opacity: 1; }
.pc-card.is-busy { box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.22), 0 22px 50px -30px rgba(236, 72, 153, 0.6); }
.pc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pc-name { font-family: var(--font-display); font-size: 0.98rem; letter-spacing: 0.04em; }
.pc-spec { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.pc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.rate { font-family: var(--font-mono); font-size: 0.9rem; color: #a5f3fc; }
.rate small { color: var(--muted); font-size: 0.72rem; }
.pc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.pc-card.is-busy .pc-dot { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.pc-player { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(236, 72, 153, 0.07); border: 1px solid rgba(236, 72, 153, 0.18); }
.pc-player span { display: flex; flex-direction: column; line-height: 1.25; }
.pc-player strong { font-size: 0.86rem; }
.pc-player small { font-size: 0.68rem; color: var(--muted); }

.timer-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.18);
}
.timer {
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #67e8f9;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
  line-height: 1.1;
}
.timer--xl { font-size: 2.1rem; }
.timer-cost {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #f9a8d4;
  text-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
}
.timer-cost--xl { font-size: 1.35rem; }
.timer-meta { font-size: 0.72rem; color: var(--muted); }

.session-live { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.session-timer { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.session-panel { gap: 12px; }
.session-panel--empty { flex-direction: row; align-items: center; }
.big { display: block; font-size: 1.15rem; }
.muted { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hint { font-size: 0.76rem; color: var(--muted); }
.text-ok { color: var(--green); }
.text-err { color: var(--red); }
.live-pill {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(34, 211, 238, 0.08);
}
.live-pill::before { content: '● '; color: var(--cyan); }
.alert-panel { border-color: rgba(251, 191, 36, 0.35); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #051018;
  box-shadow: 0 10px 30px -14px rgba(34, 211, 238, 0.8);
}
.btn-primary:hover { color: #031015; box-shadow: 0 14px 36px -14px rgba(34, 211, 238, 0.95); }
.btn-ghost {
  background: rgba(112, 140, 255, 0.08);
  border-color: var(--stroke-strong);
  color: #cdd6ff;
}
.btn-ghost:hover { background: rgba(112, 140, 255, 0.16); color: #fff; }
.btn-danger {
  background: linear-gradient(135deg, #fb7185, #ec4899);
  color: #1a0410;
  box-shadow: 0 10px 30px -16px rgba(236, 72, 153, 0.8);
}
.btn-danger:hover { color: #1a0410; }
.btn-lg { padding: 12px 22px; font-size: 0.9rem; }
.btn-sm { padding: 7px 12px; font-size: 0.78rem; }
.btn-xs { padding: 5px 10px; font-size: 0.72rem; border-radius: 8px; }
.btn-block { width: 100%; }
.link { color: var(--cyan); font-weight: 500; }
.inline { display: inline; }
.row-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- badges / flash ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge--ok { color: #6ee7b7; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.32); }
.badge--busy { color: #f9a8d4; background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.35); }
.badge--warn { color: #fcd34d; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.32); }
.badge--err { color: #fda4af; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.35); }
.badge--muted { color: #a4adcf; background: rgba(142, 151, 189, 0.12); border-color: rgba(142, 151, 189, 0.28); }

.flash {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  border: 1px solid transparent;
  backdrop-filter: blur(12px);
}
.flash-ok { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); color: #a7f3d0; }
.flash-err { background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.4); color: #fecdd3; }

/* ---------------- forms ---------------- */
.form { display: flex; flex-direction: column; gap: 13px; }
.form-tight { margin-top: 12px; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px; }
.form-grid .field-wide { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.78rem; }
.field > span { color: #aab3d6; letter-spacing: 0.04em; }
.field input, .field select, .stop-form input, .stop-form select, .search-form input, .form select, .form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(112, 140, 255, 0.22);
  background: rgba(6, 10, 22, 0.85);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .form input:focus, .form select:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.field input::placeholder { color: #5c6689; }
.field.checkbox { flex-direction: row; align-items: center; gap: 10px; padding: 4px 0; }
.field.checkbox input { width: auto; }
.field.checkbox > span { color: #cbd3f5; }
.stop-form { display: flex; flex-direction: column; gap: 8px; }
.stop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stop-form--row { flex-direction: row; align-items: center; }
.stop-form--row select, .stop-form--row input { width: auto; min-width: 90px; }
.search-form { display: flex; gap: 8px; }
.search-form input { min-width: 200px; }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: rgba(112, 140, 255, 0.08);
  color: #cdd6ff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
}
.chip:hover { background: rgba(34, 211, 238, 0.16); color: #fff; }
.start-box summary { list-style: none; cursor: pointer; }
.start-box summary::-webkit-details-marker { display: none; }

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.table th {
  text-align: left;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 9px 10px;
  border-bottom: 1px solid var(--stroke);
  white-space: nowrap;
}
.table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(112, 140, 255, 0.09);
  vertical-align: middle;
}
.table tbody tr:hover { background: rgba(112, 140, 255, 0.05); }
.table .num { font-family: var(--font-mono); font-size: 0.8rem; text-align: right; white-space: nowrap; }
.table small.hint { display: block; }
.bar {
  display: block;
  height: 6px;
  min-width: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(112, 140, 255, 0.05);
  border: 1px solid var(--stroke);
  font-size: 0.83rem;
}
.mini-list small { color: var(--muted); }

.timeline { display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: flex; gap: 11px; align-items: flex-start; }
.timeline strong { font-size: 0.82rem; font-weight: 500; }
.timeline small { display: block; color: var(--muted); font-size: 0.7rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--violet); box-shadow: 0 0 10px currentColor; flex: 0 0 auto; }
.dot--session { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.dot--invoice { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot--topup { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.dot--pc { background: var(--violet); box-shadow: 0 0 10px var(--violet); }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kv-grid div { display: flex; flex-direction: column; gap: 3px; }
.kv-grid span { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kv-grid strong { font-size: 0.94rem; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  color: #b9c2e6;
  border: 1px solid transparent;
  background: rgba(112, 140, 255, 0.06);
}
.tab:hover { color: #fff; background: rgba(112, 140, 255, 0.14); }
.tab.is-active { color: #041018; background: linear-gradient(135deg, var(--cyan), var(--violet)); font-weight: 600; }

.pc-admin { gap: 10px; }
.sunshine-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--stroke); padding-top: 10px; }
.sunshine-state { font-size: 0.74rem; color: var(--muted); }
.help { border-top: 1px solid var(--stroke); padding-top: 12px; }
.help summary { cursor: pointer; font-size: 0.8rem; color: #a5b4fc; }
.help-body { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; font-size: 0.8rem; color: #b9c2e6; }
.help-body p, .twofa-steps p { overflow-wrap: anywhere; }
.agent-box { border-top-color: rgba(34, 211, 238, 0.22); }
.agent-box summary { color: #a5f3fc; }
.code-wrap { position: relative; display: flex; flex-direction: column; gap: 8px; }
.code-block {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.92);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #a5f3fc;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  max-height: 320px;
}
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 0.84rem; color: #c3cbee; }
.steps li::marker { color: var(--cyan); font-family: var(--font-mono); }

.empty {
  padding: 22px;
  text-align: center;
  font-size: 0.83rem;
  color: var(--muted);
  border: 1px dashed rgba(112, 140, 255, 0.2);
  border-radius: 12px;
}

/* ---------------- receipt ---------------- */
.receipt-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(260px, 1fr); gap: 22px; align-items: start; }
.receipt { background: #f6f7ff; color: #14122b; border: 1px solid rgba(255, 255, 255, 0.6); }
.receipt-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed #c3c8e6; }
.receipt-head .brand-mark { color: #041018; }
.receipt-head strong { display: block; font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.04em; color: #14122b; }
.receipt-head small { color: #5b5f85; font-size: 0.72rem; }
.receipt-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.74rem; color: #4c5176; padding: 12px 0; }
.receipt-meta span { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: #7d819f; }
.receipt-meta strong { color: #14122b; font-family: var(--font-mono); }
.receipt-rows { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.receipt-rows td { padding: 7px 0; border-bottom: 1px dotted #d3d7ee; }
.receipt-rows td:last-child { text-align: right; font-family: var(--font-mono); }
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 2px solid #14122b;
}
.receipt-total span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #4c5176; }
.receipt-total strong { font-family: var(--font-display); font-size: 1.3rem; color: #14122b; }
.receipt-foot { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.receipt-foot p { font-size: 0.74rem; color: #5b5f85; }
.receipt-side { display: flex; flex-direction: column; gap: 16px; }

/* ---------------- landing / auth ---------------- */
.landing { max-width: 1120px; margin: 0 auto; padding: 28px 24px 60px; display: flex; flex-direction: column; gap: 56px; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.landing-clock {
  padding: 9px 17px 10px;
  text-align: center;
  border-radius: 13px;
  border: 1px solid rgba(103, 232, 249, .30);
  background: linear-gradient(140deg, rgba(34, 211, 238, .11), rgba(129, 93, 255, .13));
  box-shadow: 0 6px 26px rgba(3, 8, 25, .26);
}
.landing-clock-time { display: flex; align-items: baseline; justify-content: center; gap: 8px; color: #a5f3fc; }
.landing-clock-time time { font: 700 1.55rem/1.15 ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: .035em; }
.landing-clock-time span { font-size: .75rem; font-weight: 700; }
.landing-clock-date { margin-top: 3px; color: #c9d3e9; font-size: .85rem; }
@media (max-width: 640px) {
  .landing-clock { order: 3; flex: 1 0 100%; }
}
.landing-actions { display: flex; gap: 10px; }
.hero { display: flex; flex-direction: column; gap: 18px; padding: 32px 0 8px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.hero-title .glow {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.35));
}
.hero-sub { max-width: 620px; color: #b3bce0; font-size: 0.96rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.hero-stats div {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(16, 21, 40, 0.6);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.hero-stats span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.section { display: flex; flex-direction: column; gap: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.feature-grid h3 { margin: 10px 0 6px; }
.feature-grid p { font-size: 0.85rem; color: #b3bce0; }
.feature-k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--cyan); }
.landing-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--stroke);
  padding-top: 22px;
  font-size: 0.78rem;
  color: var(--muted);
}

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.auth-card {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--shadow);
}
.brand--auth { margin-bottom: 6px; }
.auth-card h1 { font-size: 1.35rem; }
.auth-sub { font-size: 0.83rem; color: #b3bce0; }
.auth-alt { font-size: 0.8rem; color: var(--muted); text-align: center; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  min-width: 220px;
  max-width: 90vw;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(10, 16, 32, 0.95);
  border: 1px solid var(--stroke-strong);
  color: #dbe4ff;
  font-size: 0.84rem;
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-err { border-color: rgba(251, 113, 133, 0.5); color: #fecdd3; }
.toast.is-ok { border-color: rgba(52, 211, 153, 0.5); color: #a7f3d0; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .split-grid--sidebar { grid-template-columns: minmax(0, 1fr); }
  .receipt-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: column;
    gap: 16px;
    padding: 18px 16px;
    border-right: none;
    border-bottom: 1px solid var(--stroke);
  }
  .nav-group { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .nav-label { display: none; }
  .nav-link { padding: 8px 11px; font-size: 0.8rem; }
  .sidebar-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .content { padding: 20px 16px 40px; gap: 20px; }
  .landing { padding: 20px 16px 48px; gap: 40px; }
  .session-timer { align-items: flex-start; }
  .stop-form--row { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .pc-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid, .stat-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media print {
  .bg-fx, .sidebar, .topbar, .receipt-side, .flash, .toast { display: none !important; }
  body, .content { background: #fff; color: #000; padding: 0; }
  .app-shell { display: block; }
  .receipt { box-shadow: none; border: 1px solid #ccc; }
  .receipt-wrap { display: block; }
}

/* ============ PEMBAYARAN / QRIS ============ */
.field textarea,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(112, 140, 255, 0.22);
  background: rgba(6, 10, 22, 0.85);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}
.field textarea:focus, .form textarea:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.field input[type="file"] { padding: 8px 10px; font-size: 0.78rem; }
.field-label { display: block; font-size: 0.78rem; color: #aab3d6; margin-bottom: 6px; }

.gw-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 15, 30, 0.55);
}
.gw-card h3 { font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: #cfd7ff; }

.qr-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  border-top: 1px solid var(--stroke);
  padding-top: 14px;
}
.qris-thumb {
  width: 148px;
  height: 148px;
  object-fit: contain;
  border-radius: 12px;
  background: #f6f7ff;
  padding: 8px;
  border: 1px solid var(--stroke-strong);
}

.pay-pick { display: flex; gap: 6px; align-items: center; }
.pay-pick select { width: auto; min-width: 130px; padding: 5px 8px; font-size: 0.75rem; }
.pay-pick--block { flex-direction: column; align-items: stretch; }
.pay-pick--block select { width: 100%; }

.pay-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; }
.pay-card {
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(18, 24, 46, 0.92), rgba(8, 12, 24, 0.9));
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px) saturate(160%);
}
.pay-head { display: flex; align-items: center; gap: 12px; }
.pay-head div { display: flex; flex-direction: column; line-height: 1.25; }
.pay-head small { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pay-head strong { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.03em; }
.pay-amount {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.22);
}
.pay-amount span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pay-amount strong { font-family: var(--font-display); font-size: 1.7rem; color: #fff; }
.pay-amount small { font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); }
.qr-box {
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  align-self: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 18px 40px -22px rgba(34, 211, 238, 0.6);
}
.qr-box svg { width: 240px; height: 240px; display: block; }
.qr-box--img img { width: 240px; height: 240px; object-fit: contain; display: block; }
.center { text-align: center; }
.pay-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-actions { display: flex; flex-direction: column; gap: 10px; }
.pay-done, .pay-dead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  border-radius: 16px;
  text-align: center;
}
.pay-done { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); }
.pay-dead { background: rgba(251, 113, 133, 0.08); border: 1px solid rgba(251, 113, 133, 0.3); }
.pay-check {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: #041018;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 24px -4px rgba(52, 211, 153, 0.8);
}
@media (max-width: 520px) {
  .qr-box svg, .qr-box--img img { width: 200px; height: 200px; }
  .pay-card { padding: 20px; }
}

/* ============ 2FA / keamanan ============ */
.field input.otp-input,
.form input.otp-input,
.otp-input {
  font-family: var(--font-mono) !important;
  font-size: 1.35rem !important;
  letter-spacing: 0.42em;
  text-align: center;
  padding: 12px 10px !important;
}
.flash-warn { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.38); color: #fde68a; }

.twofa-setup {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.twofa-qr {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--stroke-strong);
  min-height: 200px;
}
.twofa-qr svg { width: 100%; height: auto; max-width: 236px; display: block; }
.twofa-steps { display: flex; flex-direction: column; gap: 12px; }

.recovery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.recovery-list li { display: flex; justify-content: center; }
.recovery-list code {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  background: transparent;
  border: none;
  color: #a5f3fc;
  padding: 4px 0;
}

@media (max-width: 720px) {
  .twofa-setup { grid-template-columns: minmax(0, 1fr); }
  .recovery-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media print {
  .recovery-list { background: #fff; border-color: #ccc; }
  .recovery-list code { color: #000; }
}

/* ============ sewa online & unduhan APK ============ */
.landing--narrow { max-width: 880px; gap: 32px; }
.rent-card { display: flex; flex-direction: column; gap: 18px; }
.rent-price {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.rent-price div { display: flex; flex-direction: column; gap: 3px; }
.rent-price span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.rent-price strong { font-size: 1.02rem; color: #fff; font-family: var(--font-mono); }
.rent-price .rent-dp strong { color: #f9a8d4; }
.pc-card--link { text-decoration: none; color: inherit; transition: transform 0.15s, border-color 0.15s; }
.pc-card--link:hover { transform: translateY(-2px); border-color: var(--stroke-strong); color: inherit; }

.apk-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.apk-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.3rem;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 26px -6px rgba(34, 211, 238, 0.8);
  flex: 0 0 auto;
}
.apk-meta { display: flex; flex-direction: column; gap: 3px; min-width: 160px; flex: 1 1 220px; }
.apk-meta strong { font-family: var(--font-display); font-size: 0.98rem; letter-spacing: 0.02em; }
.apk-card .btn { margin-left: auto; }
.apk-upload { border-top: 1px solid var(--stroke); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.apk-upload h3 { font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; color: #cfd7ff; }
@media (max-width: 560px) {
  .apk-card .btn { margin-left: 0; width: 100%; }
  .apk-card { gap: 14px; }
}

/* ============ komunitas WhatsApp ============ */
.wa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.wa-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.18s ease;
}
.wa-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.45);
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.15), var(--shadow);
  color: var(--ink);
}
.wa-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.25rem;
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.32);
  flex: 0 0 auto;
}
.wa-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.wa-meta strong { font-size: 0.95rem; }
.wa-meta small { font-size: 0.76rem; color: var(--muted); }
.wa-go { font-size: 0.78rem; font-weight: 600; color: #4ade80; white-space: nowrap; }
@media (max-width: 520px) {
  .wa-card { padding: 16px; }
  .wa-go { display: none; }
}

/* ============ kelas PC (tier) & paket harga ============ */
.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tier-color, #22d3ee);
  border: 1px solid color-mix(in srgb, var(--tier-color, #22d3ee) 45%, transparent);
  background: color-mix(in srgb, var(--tier-color, #22d3ee) 14%, transparent);
  white-space: nowrap;
}
.tier-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tier-color, #22d3ee);
  box-shadow: 0 0 8px var(--tier-color, #22d3ee);
}

.tier-card--off { opacity: 0.62; }
.tier-card .section-head { align-items: flex-start; }
.row-off { opacity: 0.55; }
.color-input {
  height: 40px;
  padding: 4px !important;
  cursor: pointer;
}

.timer-block--pkg { background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.28); }
.timer-cost--pkg { color: #c4b5fd; text-shadow: 0 0 16px rgba(139, 92, 246, 0.45); }
.timer--expired, .timer-cost--pkg.timer--expired { color: var(--red); text-shadow: 0 0 16px rgba(251, 113, 133, 0.5); }

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.pkg-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.14), rgba(10, 14, 28, 0.7));
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.pkg-hours { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pkg-card strong { font-family: var(--font-display); font-size: 1.05rem; color: #fff; }
.pkg-card small { font-size: 0.72rem; color: var(--muted); }

.pc-games { margin-block: .55rem; }
.pc-games summary { cursor: pointer; font-weight: 600; }
.pc-games ul { margin-block: .45rem; padding-inline-start: 1.4rem; overflow-wrap: anywhere; }
