:root {
  --purple: #8b35e8;
  --purple-dark: #641dc5;
  --purple-soft: #f0dbff;
  --ink: #0b0b12;
  --muted: #656575;
  --line: #0b0b12;
  --paper: #ffffff;
  --grid: rgba(139,53,232,.13);
  --green: #16a34a;
  --yellow: #f59e0b;
  --red: #ef4444;
  --radius-xl: 28px;
  --shadow-bold: 10px 12px 0 #050508;
  --shadow-soft: 5px 6px 0 #050508;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    #fff;
  background-size: 34px 34px;
  color: var(--ink);
  letter-spacing: -0.035em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 82px;
  padding: 14px clamp(16px, 4vw, 42px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo {
  width: 54px; height: 54px; border-radius: 18px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.brand__logo img { width: 54px; height: 54px; }
.brand__text { min-width: 0; display: grid; gap: 1px; }
.brand__text strong { font-size: clamp(20px, 5vw, 28px); font-weight: 900; white-space: nowrap; }
.brand__text small { color: var(--muted); font-weight: 800; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.balance-pill {
  display: none;
  border: 3px solid var(--line); background: var(--purple-soft);
  border-radius: 999px; padding: 10px 14px; font-weight: 900;
  box-shadow: 3px 4px 0 #050508;
}
.avatar { width: 45px; height: 45px; border-radius: 50%; border: 3px solid var(--line); overflow: hidden; background: var(--purple); }

.page-shell { min-height: calc(100dvh - 82px); padding-bottom: 94px; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section-purple { background: var(--purple); border-bottom: 4px solid var(--line); }
.section-white { background: transparent; padding: 58px 0; }

.hero {
  padding: 34px 0 46px;
  display: grid;
  gap: 26px;
  align-items: center;
}
.hero__eyebrow, .eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 3px solid var(--line); border-radius: 999px;
  background: var(--purple-soft); font-weight: 900; color: #3d146e;
  box-shadow: 5px 6px 0 #050508; text-transform: uppercase; font-size: 13px; letter-spacing: .04em;
}
.hero__title {
  margin: 24px 0 16px;
  font-size: clamp(44px, 12vw, 92px);
  line-height: .9;
  font-weight: 900;
  max-width: 850px;
}
.hero__text {
  margin: 0 0 24px;
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.55;
  color: #2e2e38;
  font-weight: 800;
  max-width: 750px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-card {
  background: var(--paper); border: 4px solid var(--line); border-radius: 34px;
  box-shadow: var(--shadow-bold); padding: clamp(22px, 5vw, 36px);
}
.hero-card__mock {
  background: #111827; color: white; border-radius: 28px; border: 4px solid var(--line);
  overflow: hidden; box-shadow: 5px 6px 0 #050508;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: #fff; color: var(--ink); border-bottom: 4px solid var(--line); font-weight: 900; }
.mock-content { padding: 18px; display: grid; gap: 14px; }
.mock-stat { background: #1f2937; border: 2px solid rgba(255,255,255,.22); border-radius: 18px; padding: 16px; }
.mock-stat small { color: #cbd5e1; font-weight: 800; }
.mock-stat strong { display: block; font-size: 26px; margin-top: 5px; }
.mock-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px; border-radius: 18px; background: #f8fafc; color: var(--ink); font-weight: 900; }

.btn {
  appearance: none; border: 4px solid var(--line); background: var(--ink); color: white;
  border-radius: 999px; padding: 16px 24px; font-weight: 900; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 5px 6px 0 #050508; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 3px 0 #050508; }
.btn--light { background: white; color: var(--ink); }
.btn--purple { background: var(--purple); color: white; }
.btn--small { padding: 10px 15px; border-width: 3px; box-shadow: 3px 4px 0 #050508; font-size: 14px; }
.btn--full { width: 100%; }
.btn--ghost { background: var(--purple-soft); color: var(--ink); }

.card-grid { display: grid; gap: 20px; }
.card {
  background: var(--paper); border: 4px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-bold); padding: clamp(22px, 5vw, 34px);
}
.card--soft { background: #fff; box-shadow: var(--shadow-soft); }
.icon-box {
  width: 70px; height: 70px; display: grid; place-items: center; border: 4px solid var(--line);
  border-radius: 20px; background: var(--purple); color: white; font-size: 31px; margin-bottom: 24px;
}
.card h2, .card h3 { margin: 0 0 12px; font-size: clamp(28px, 6vw, 42px); line-height: 1; font-weight: 900; }
.card h3 { font-size: clamp(24px, 5vw, 32px); }
.card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 17px; font-weight: 800; }
.card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.section-title { text-align: center; padding: 0 0 28px; }
.section-title h2 { font-size: clamp(36px, 10vw, 62px); line-height: .95; margin: 14px 0 12px; font-weight: 900; }
.section-title p { margin: 0 auto; color: var(--muted); font-weight: 800; line-height: 1.55; font-size: 18px; max-width: 700px; }
.product-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card { padding: 18px; border: 3px solid var(--line); background: white; border-radius: 22px; box-shadow: 5px 6px 0 #050508; }
.product-card span { font-size: 34px; display: block; margin-bottom: 10px; }
.product-card strong { font-size: 20px; font-weight: 900; display: block; }
.product-card small { color: var(--muted); font-weight: 800; }

.auth-box { width: min(520px, calc(100% - 32px)); margin: 46px auto; }
.dashboard-hero { padding: 28px 0; background: var(--purple); border-bottom: 4px solid var(--line); }
.dashboard-card { display: grid; gap: 18px; }
.user-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.user-line h1 { margin: 0; font-size: clamp(34px, 8vw, 58px); line-height: .9; font-weight: 900; }
.user-line p { margin: 10px 0 0; color: var(--muted); font-weight: 800; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.stat-card { background: var(--purple-soft); border: 3px solid var(--line); border-radius: 22px; padding: 16px; font-weight: 900; }
.stat-card small { color: #60318c; font-weight: 900; text-transform: uppercase; font-size: 12px; }
.stat-card strong { display: block; font-size: 24px; margin-top: 5px; }

.quick-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quick-link { background: white; border: 3px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 4px 5px 0 #050508; font-weight: 900; }
.quick-link span { display: block; font-size: 30px; margin-bottom: 8px; }

.form-grid { display: grid; gap: 16px; }
.field label { display: block; font-weight: 900; margin-bottom: 8px; }
.input, .select {
  width: 100%; border: 3px solid var(--line); border-radius: 18px; padding: 15px 16px;
  background: white; font-weight: 800; outline: none;
}
.input:focus, .select:focus { box-shadow: 0 0 0 4px var(--purple-soft); }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span {
  display: block; border: 3px solid var(--line); border-radius: 18px; padding: 14px;
  background: white; font-weight: 900; box-shadow: 3px 4px 0 #050508;
}
.radio-card input:checked + span { background: var(--purple-soft); outline: 4px solid rgba(139,53,232,.22); }

.list { display: grid; gap: 16px; }
.list-item { border: 3px solid var(--line); border-radius: 22px; padding: 17px; background: white; box-shadow: 5px 6px 0 #050508; }
.list-item__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.list-item h3 { margin: 0; font-size: 24px; font-weight: 900; }
.list-item p { margin: 6px 0 0; font-weight: 800; color: var(--muted); }
.badge { display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 999px; padding: 7px 10px; font-weight: 900; font-size: 12px; background: var(--purple-soft); white-space: nowrap; }
.badge--green { background: #dcfce7; color: #166534; }
.badge--yellow { background: #fef3c7; color: #92400e; }
.badge--red { background: #fee2e2; color: #991b1b; }
.code-box { white-space: pre-wrap; word-break: break-word; border: 3px solid var(--line); border-radius: 18px; background: #0f172a; color: white; padding: 14px; margin-top: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: 0; }

.qris-box { min-height: 230px; border: 4px dashed var(--line); border-radius: 26px; display: grid; place-items: center; text-align: center; background: #faf5ff; padding: 20px; }
.qris-box strong { font-size: 30px; font-weight: 900; }

.notice { background: var(--purple-soft); border: 3px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 4px 5px 0 #050508; font-weight: 800; }
.notice strong { font-weight: 900; }

.bottom-nav {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  height: 70px; background: white; border: 4px solid var(--line); border-radius: 26px;
  box-shadow: 6px 7px 0 #050508; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 8px;
}
.bottom-nav__item { display: grid; place-items: center; gap: 1px; border-radius: 17px; font-weight: 900; color: var(--muted); min-width: 0; overflow: hidden; }
.bottom-nav__item span { font-size: 18px; line-height: 1; }
.bottom-nav__item small { font-size: 8px; letter-spacing: -0.04em; }
.bottom-nav__item.is-active { background: var(--purple-soft); color: var(--ink); }

.footer { padding: 46px 0 120px; text-align: center; color: var(--muted); font-weight: 800; }

@media (min-width: 760px) {
  .balance-pill { display: inline-flex; }
  .hero { grid-template-columns: 1.1fr .9fr; padding: 64px 0; }
  .card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .dashboard-card { grid-template-columns: 1.2fr .8fr; align-items: stretch; }
  .quick-menu { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .option-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .bottom-nav { width: min(680px, calc(100% - 24px)); left: 50%; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.field-hint,
.form-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.order-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 3px solid var(--line);
  border-radius: 22px;
  background: var(--purple-soft);
  box-shadow: 4px 5px 0 #050508;
}
.order-summary div {
  background: white;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.order-summary small {
  display: block;
  color: #60318c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.order-summary strong {
  display: block;
  margin-top: 4px;
  font-weight: 900;
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li {
  border: 3px solid var(--line);
  background: var(--purple-soft);
  border-radius: 18px;
  padding: 14px;
  font-weight: 900;
  box-shadow: 3px 4px 0 #050508;
}
.check-list li::before {
  content: '✅ ';
}

@media (min-width: 760px) {
  .order-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  min-width: 720px;
}
.admin-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  font-weight: 900;
}
.admin-table td {
  background: white;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  padding: 14px 10px;
  font-weight: 800;
  vertical-align: top;
}
.admin-table td:first-child { border-left: 3px solid var(--line); border-radius: 16px 0 0 16px; }
.admin-table td:last-child { border-right: 3px solid var(--line); border-radius: 0 16px 16px 0; }
.admin-table small { color: var(--muted); font-weight: 800; }
code {
  background: #111827;
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0;
}


.server-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.server-detail div {
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 10px 12px;
  box-shadow: 3px 4px 0 #050508;
}
.server-detail small {
  display: block;
  color: #60318c;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.server-detail strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.radio-card--simple span {
  min-height: 66px;
  display: flex;
  align-items: center;
}
