/* alight-web — tema hitam pekat + neon cyan glow, mobile-first */
:root {
  --bg: #030712;
  --bg2: #060d1c;
  --card: #0a1424;
  --card2: #0e1b30;
  --line: rgba(0, 212, 255, .14);
  --cyan: #00d4ff;
  --blue: #0077ff;
  --text: #eaf6ff;
  --muted: #7d97ad;
  --ok: #22d3a5;
  --warn: #ffb020;
  --err: #ff4d6d;
  --radius: 14px;
  --glow: 0 0 22px rgba(0, 212, 255, .35);
  --glow-soft: 0 0 12px rgba(0, 212, 255, .18);
  --font: "Space Grotesk", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(1100px 480px at 50% -120px, #06233d 0%, var(--bg) 55%) fixed;
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.5;
  animation: pageIn .35s ease both;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-shadow: 0 0 8px rgba(0,212,255,.6); }
.hidden { display: none !important; }

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes glowPulse { 50% { box-shadow: 0 0 34px rgba(0,212,255,.55); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .45; } }
@keyframes barFill { from { width: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

.rise { animation: rise .4s ease both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .12s; }
.d3 { animation-delay: .19s; } .d4 { animation-delay: .26s; }
.d5 { animation-delay: .33s; } .d6 { animation-delay: .40s; }

/* ── Topbar (tanpa logo) ── */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 18, .82);
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(10px);
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow);
  flex-shrink: 0;
  animation: glowPulse 2.6s ease-in-out infinite;
}
.brand-text { font-weight: 700; font-size: 15px; letter-spacing: .3px; flex-shrink: 0; }
.brand-text em { font-style: normal; color: var(--cyan); text-shadow: 0 0 10px rgba(0,212,255,.7); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 7px 11px; border-radius: 10px; white-space: nowrap;
  transition: color .15s, background .15s, box-shadow .15s;
}
.nav a:hover { color: var(--cyan); background: rgba(0,212,255,.08); box-shadow: var(--glow-soft); }
.nav a.on { color: var(--cyan); background: rgba(0,212,255,.1); text-shadow: 0 0 8px rgba(0,212,255,.5); }

/* ── Main ── */
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 90px; }

/* ── Hero ── */
.hero { text-align: center; padding: 30px 8px 16px; }
.hero h1 {
  font-size: clamp(26px, 5.4vw, 38px); letter-spacing: -.6px; line-height: 1.15;
}
.hero h1 .glow {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0,212,255,.65), 0 0 46px rgba(0,212,255,.3);
}
.hero p { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 540px; margin-inline: auto; }

/* ── Kartu & tombol ── */
.card {
  background: linear-gradient(180deg, rgba(10,20,36,.92), rgba(6,13,28,.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 16px;
  box-shadow: 0 10px 34px rgba(0,0,0,.45);
}
.card h3 { font-size: 15.5px; margin-bottom: 10px; }
.card h3 .bar { display: inline-block; width: 4px; height: 14px; background: var(--cyan); border-radius: 2px; margin-right: 8px; vertical-align: -2px; box-shadow: var(--glow-soft); }
.muted { color: var(--muted); font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  border: none; border-radius: 12px;
  padding: 13px 16px; font-size: 15px; font-weight: 700;
  font-family: var(--font); cursor: pointer;
  transition: transform .1s, box-shadow .2s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-primary {
  background: linear-gradient(135deg, #00d4ff, #0077ff);
  color: #02101c;
  box-shadow: 0 4px 22px rgba(0, 168, 255, .4);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 30px rgba(0, 212, 255, .6); transform: translateY(-1px); }
.btn-secondary {
  background: var(--card2); color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--cyan); box-shadow: var(--glow-soft); }
.btn-danger { background: rgba(255, 77, 109, .12); color: var(--err); border: 1px solid rgba(255,77,109,.35); }
.btn-small { display: inline-flex; width: auto; padding: 8px 13px; font-size: 12.5px; border-radius: 10px; }

/* ── Paket harga ── */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pkg {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 10px; text-align: center;
  cursor: pointer; position: relative;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.pkg:hover { transform: translateY(-3px); border-color: rgba(0,212,255,.4); }
.pkg.sel {
  border-color: var(--cyan);
  box-shadow: var(--glow);
  animation: popIn .25s ease;
}
.pkg .days { font-size: 13px; color: var(--muted); }
.pkg .price { font-size: 18px; font-weight: 700; margin-top: 5px; color: var(--cyan); text-shadow: 0 0 10px rgba(0,212,255,.4); }
.pkg .per { font-size: 11px; color: var(--muted); }
.badge-hot {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #ffb020, #ff7a00);
  color: #140d00; font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 14px rgba(255,150,30,.5);
}

/* ── Form ── */
.input {
  width: 100%; background: var(--bg2); border: 1px solid var(--line);
  color: var(--text); border-radius: 11px; padding: 12px 14px;
  font-size: 15px; font-family: var(--font); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--cyan); box-shadow: var(--glow-soft); }
label.lbl { display: block; font-size: 12.5px; color: var(--muted); margin: 13px 0 6px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ── Kuota ── */
.quota-pill {
  display: inline-block; margin-top: 16px; font-size: 12.5px;
  color: var(--warn); background: rgba(255, 176, 32, .08);
  border: 1px solid rgba(255,176,32,.3);
  padding: 6px 14px; border-radius: 999px;
  animation: rise .4s ease .1s both;
}
.progress {
  height: 7px; border-radius: 99px; background: var(--bg2);
  border: 1px solid var(--line); overflow: hidden; margin-top: 10px;
}
.progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 99px;
  box-shadow: var(--glow-soft);
  animation: barFill .8s ease;
}

/* ── Status & email ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; text-align: center;
  transition: box-shadow .2s;
}
.stat .num { font-size: 21px; font-weight: 700; }
.stat .lbl { font-size: 11.5px; color: var(--muted); }
.stat.ok .num { color: var(--ok); text-shadow: 0 0 12px rgba(34,211,165,.5); }
.stat.warn .num { color: var(--warn); text-shadow: 0 0 12px rgba(255,176,32,.4); }
.stat.err .num { color: var(--err); text-shadow: 0 0 12px rgba(255,77,109,.4); }

.email-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px; margin-top: 10px;
  animation: rise .35s ease both;
  transition: border-color .2s, box-shadow .2s;
}
.email-item:hover { border-color: rgba(0,212,255,.35); box-shadow: var(--glow-soft); }
.email-item .row1 { display: flex; align-items: center; gap: 10px; }
.email-item .email { font-weight: 600; font-size: 14px; word-break: break-all; flex: 1; }
.email-item .sub { font-size: 12px; color: var(--muted); margin-top: 8px; }
.badge {
  font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap; text-transform: uppercase; letter-spacing: .4px;
}
.badge.pending { background: rgba(255,176,32,.1); color: var(--warn); border: 1px solid rgba(255,176,32,.4); animation: blink 1.8s infinite; }
.badge.active { background: rgba(34,211,165,.1); color: var(--ok); border: 1px solid rgba(34,211,165,.4); }
.badge.failed { background: rgba(255,77,109,.1); color: var(--err); border: 1px solid rgba(255,77,109,.4); }

.links { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.link-row {
  display: flex; gap: 8px; align-items: center;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px;
  transition: border-color .15s;
}
.link-row:hover { border-color: rgba(0,212,255,.4); }
.link-row .url {
  flex: 1; font-size: 11px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.copy-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.copy-row .input { flex: 1; font-size: 13px; font-family: var(--font); }
.copy-row .btn { width: auto; }

/* ── Hasil & kode pemulihan ── */
.result-box { border-radius: 12px; padding: 14px; font-size: 14px; margin-top: 14px; animation: popIn .3s ease; }
.result-box.ok { background: rgba(34,211,165,.08); border: 1px solid rgba(34,211,165,.35); }
.result-box.warn { background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.35); }
.result-box.err { background: rgba(255,77,109,.08); border: 1px solid rgba(255,77,109,.35); }
.result-box code {
  background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 6px;
  font-size: 13px; word-break: break-all;
  border: 1px solid var(--line);
}
.recovery-code {
  text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 3px;
  color: var(--cyan); text-shadow: 0 0 14px rgba(0,212,255,.55);
  background: var(--bg2); border: 1px dashed rgba(0,212,255,.4);
  border-radius: 12px; padding: 14px; margin: 12px 0;
  user-select: all; cursor: pointer;
  animation: glowPulse 3s ease-in-out infinite;
}

/* ── Panduan ── */
.guide { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.guide-step {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px;
  animation: rise .4s ease both;
}
.guide-step .n {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(0,212,255,.12); color: var(--cyan);
  font-size: 12px; font-weight: 700;
  box-shadow: var(--glow-soft);
}
.guide-step .t { font-size: 13px; color: var(--text); }
.guide-step .t small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.store-btns { display: flex; gap: 8px; margin-top: 12px; }
.store-btns .btn { flex: 1; }

/* ── Order / pembayaran ── */
.order-code {
  text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 4px;
  color: var(--cyan); text-shadow: 0 0 14px rgba(0,212,255,.5);
  background: var(--bg2); border: 1px dashed rgba(0,212,255,.45);
  border-radius: 12px; padding: 14px; margin: 12px 0;
  user-select: all;
}
.qr-wrap { text-align: center; margin: 14px 0; }
.qr-wrap img {
  width: 220px; height: 220px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; padding: 6px;
  box-shadow: 0 0 30px rgba(0,168,255,.25);
  animation: popIn .35s ease;
}
.big-amount { font-size: 26px; font-weight: 700; color: var(--cyan); text-align: center; text-shadow: 0 0 14px rgba(0,212,255,.5); }

/* ── Toast ── */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(24px);
  background: var(--card2); color: var(--text); border: 1px solid rgba(0,212,255,.3);
  box-shadow: var(--glow-soft);
  padding: 12px 20px; border-radius: 12px; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 60;
  max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { border-color: rgba(255,77,109,.5); color: #ffa4b8; }

/* ── Spinner tombol ── */
.spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.25); border-top-color: currentColor;
  animation: spin .7s linear infinite;
  display: inline-block;
}

/* ── Tabs ── */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab {
  flex: 1; text-align: center; padding: 10px; border-radius: 11px;
  background: var(--card2); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; font-size: 13.5px; font-weight: 600;
  font-family: var(--font);
  transition: all .18s;
}
.tab.on { background: rgba(0,212,255,.1); color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-soft); }

/* ── Admin ── */
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.admin-stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; transition: box-shadow .2s; }
.admin-stat:hover { box-shadow: var(--glow-soft); }
.admin-stat .num { font-size: 22px; font-weight: 700; color: var(--cyan); text-shadow: 0 0 10px rgba(0,212,255,.4); }
.admin-stat .lbl { font-size: 11px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 10px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
td code { font-size: 11.5px; background: rgba(0,0,0,.3); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); }
.tbl-wrap { overflow-x: auto; }

/* ── Empty & footer ── */
.empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 34px 10px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 26px 12px 12px; }

@media (max-width: 560px) {
  .packages { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .pkg { padding: 14px 6px; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-text { font-size: 13px; }
}
