/* ==========================================================
   GanzAi Store — Dashboard (dark purple, 3D, neon)
   ========================================================== */
.dash-body {
  background:
    radial-gradient(rgba(196, 181, 253, 0.09) 1px, transparent 1.2px) 0 0 / 22px 22px,
    #0a0618;
  min-height: 100vh;
}
.dash-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; }
.b1 { width: 520px; height: 520px; left: 12%; top: -180px; background: #6d28d9; animation: drift 18s ease-in-out infinite alternate; }
.b2 { width: 420px; height: 420px; right: -120px; bottom: -160px; background: #a21caf; opacity: .28; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(80px, 60px) scale(1.15); } }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--font-code); }
.accent { color: var(--lilac); }

/* ---------- Shell ---------- */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(22, 13, 50, 0.92), rgba(12, 7, 30, 0.92));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 18px 14px; z-index: 40;
}
.side-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); padding: 4px 8px 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.side-logo .logo-mark { width: 38px; height: 38px; border-radius: 12px; }
.side-logo strong { display: block; font-family: var(--font-display); font-size: 16px; line-height: 1.2; }
.side-logo small { display: block; font-size: 12px; font-weight: 700; color: var(--pink); }

.side-nav { display: grid; gap: 6px; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 14px;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px;
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.side-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.side-nav a:hover { color: var(--text); background: rgba(139, 92, 246, 0.08); }
.side-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.32), rgba(162, 28, 175, 0.18));
  border-color: rgba(196, 181, 253, 0.45);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2), 0 8px 24px rgba(109, 40, 217, 0.35), 0 0 26px rgba(168, 85, 247, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}
.side-nav a.is-active::before {
  content: ""; position: absolute; left: -15px; top: 50%; width: 4px; height: 60%; transform: translateY(-50%);
  border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--lilac), var(--pink));
  box-shadow: 0 0 12px var(--violet), 0 0 24px rgba(244, 114, 182, .6);
}
.side-nav a.is-active svg { filter: drop-shadow(0 0 6px rgba(221, 214, 254, .8)); }

.side-bottom { margin-top: auto; display: grid; gap: 10px; }
.side-credit {
  padding: 14px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(76, 29, 149, .45), rgba(28, 19, 64, .6));
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(5, 2, 15, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.side-credit .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.side-credit strong { font-family: var(--font-display); font-size: 24px; }
.side-credit small { color: var(--muted); font-size: 13px; margin-left: 4px; }

.meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 10px; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--pink)); box-shadow: 0 0 12px rgba(217, 70, 239, .7); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.meter.low span { background: linear-gradient(90deg, #f43f5e, #fb923c); box-shadow: 0 0 12px rgba(244, 63, 94, .7); }

/* ---------- Topbar ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 14px 28px; background: rgba(10, 6, 24, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn { display: none; }
.announce {
  flex: 1; min-width: 0; max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(109, 40, 217, .22), rgba(28, 19, 64, .5));
  border: 1px solid rgba(196, 181, 253, .35);
  box-shadow: 0 0 24px rgba(139, 92, 246, .22), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.announce > svg { width: 18px; height: 18px; fill: none; stroke: var(--lilac); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.announce p { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fade-in .5s ease; }
.announce .dots { display: flex; gap: 4px; }
.announce .dots span { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); transition: width .3s, background .3s; }
.announce .dots span.on { width: 16px; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.user-chip { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff;
  background: conic-gradient(from 200deg, var(--violet), var(--pink), var(--lilac), var(--violet));
  box-shadow: 0 0 0 2px #0a0618, 0 0 0 3px rgba(196, 181, 253, .5), 0 0 18px rgba(168, 85, 247, .6);
}

/* ---------- View ---------- */
.view { padding: 28px; width: 100%; max-width: 1180px; margin: 0 auto; }
.view section { padding: 0; animation: view-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.view-head h1 { font-family: var(--font-display); font-size: 32px; letter-spacing: -0.02em; line-height: 1.1; text-shadow: 0 0 30px rgba(168, 85, 247, .35); }
.view-head p { color: var(--muted); margin-top: 4px; }
.narrow, .narrow-col { max-width: 760px; margin-left: auto; margin-right: auto; }
.sub-title { font-family: var(--font-display); font-size: 20px; margin: 28px 0 14px; }

.glow-alert { margin: 0 0 20px; box-shadow: 0 0 24px rgba(244, 63, 94, .25); }
.glow-alert a { color: #fecdd3; font-weight: 700; }

/* ---------- Kartu 3D ---------- */
.card3d {
  position: relative; margin-bottom: 20px; padding: 22px;
  border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(34, 22, 74, .78), rgba(18, 11, 42, .82));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 48px rgba(5, 2, 15, .55), 0 4px 0 rgba(5, 2, 15, .6);
}
.card3d::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, .8), rgba(244, 114, 182, .7), transparent);
  box-shadow: 0 0 12px rgba(196, 181, 253, .7);
}
.card3d.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head.pad { padding: 18px 22px 0; }
.card-head h2 { font-family: var(--font-display); font-size: 17px; }
.card-head a { font-weight: 700; font-size: 14px; }

/* ---------- Overview ---------- */
.ov-top { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.balance-wrap { perspective: 1000px; }
.balance-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; overflow: hidden; height: 100%; min-height: 230px;
  padding: 24px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, #3b0f8c 0%, #6d28d9 38%, #a21caf 78%, #db2777 110%);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; transition: transform .15s ease-out;
  box-shadow: 0 6px 0 #22094f, 0 30px 60px rgba(76, 29, 149, .55), 0 0 40px rgba(168, 85, 247, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  display: flex; flex-direction: column;
}
.balance-card::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 48px;
  transform: rotate(32deg); border: 1px solid rgba(255, 255, 255, .28);
  background: linear-gradient(145deg, rgba(255, 255, 255, .18), transparent 60%);
}
.bc-sheen {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%);
  background-size: 250% 100%; animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -60% 0; } }
.bc-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bc-label { font-size: 14px; color: rgba(255, 255, 255, .85); }
.bc-plan { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); }
.bc-amount { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4vw, 46px); letter-spacing: -0.03em; margin-top: 14px; text-shadow: 0 0 24px rgba(255, 255, 255, .45); transform: translateZ(40px); }
.bc-sub { position: relative; z-index: 1; font-size: 14px; color: rgba(255, 255, 255, .8); }
.bc-meter { position: relative; z-index: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); margin: 14px 0 0; overflow: hidden; }
.bc-meter span { display: block; height: 100%; width: 0; background: #fff; box-shadow: 0 0 12px #fff; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.bc-foot { margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 700; }
.bc-chip { width: 42px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #fde68a, #f59e0b 60%, #fcd34d); box-shadow: inset 0 0 0 1px rgba(120, 53, 15, .35); position: relative; }
.bc-chip::before, .bc-chip::after { content: ""; position: absolute; left: 8px; right: 8px; height: 1px; background: rgba(120, 53, 15, .45); }
.bc-chip::before { top: 10px; } .bc-chip::after { bottom: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 20px; }
.stat {
  position: relative; overflow: hidden; padding: 18px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(40, 26, 86, .75), rgba(18, 11, 42, .85));
  border: 1px solid var(--line);
  box-shadow: 0 4px 0 rgba(5, 2, 15, .6), 0 16px 32px rgba(5, 2, 15, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.stat::after {
  content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(139, 92, 246, .45)), transparent 70%);
}
.stat .label { font-size: 13px; color: var(--muted); }
.stat strong { display: block; font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; margin-top: 6px; }
.stat small { color: var(--muted); font-size: 13px; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }

/* ---------- Chart bar menyala ---------- */
.chart { position: relative; overflow-x: clip; overflow-y: visible; height: 210px; display: flex; align-items: flex-end; gap: 6px; padding-top: 10px; }
.chart.tall { height: 260px; }
.chart .col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; position: relative; }
.chart .bar {
  width: 100%; max-width: 38px; min-height: 3px; border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #c4b5fd 0%, #8b5cf6 40%, #6d28d9 100%);
  box-shadow: 0 0 14px rgba(139, 92, 246, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
  transform-origin: bottom; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both;
}
.chart .col.today .bar { background: linear-gradient(180deg, #fbcfe8 0%, #f472b6 40%, #a21caf 100%); box-shadow: 0 0 20px rgba(244, 114, 182, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.chart .col.zero .bar { background: rgba(255, 255, 255, .08); box-shadow: none; }
.chart .lbl { font-size: 11px; color: var(--muted); white-space: nowrap; max-width: 100%; overflow: visible; }
.chart .tip {
  position: absolute; bottom: calc(100% - 4px); left: 50%; transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  padding: 6px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; z-index: 2;
  background: #1c1340; border: 1px solid var(--line-strong); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); transition: opacity .15s, transform .15s;
}
.chart .col:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.chart .col.left .tip { left: 0; transform: translate(0, 6px); }
.chart .col.left:hover .tip { transform: none; }
.chart .col.right .tip { left: auto; right: 0; transform: translate(0, 6px); }
.chart .col.right:hover .tip { transform: none; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.bars-list { display: grid; gap: 16px; }
.bars-list .row { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-code); font-size: 13px; margin-bottom: 7px; }
.bars-list .row b { color: var(--warn); font-weight: 500; }
.track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c3aed, #f472b6, #fcd34d); box-shadow: 0 0 12px rgba(244, 114, 182, .6); transform-origin: left; animation: grow-x 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.empty-mini { color: var(--muted); font-size: 14px; }

.quick-steps { list-style: none; counter-reset: q; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-steps li { counter-increment: q; position: relative; padding: 16px 16px 16px 56px; border-radius: 16px; background: rgba(10, 6, 24, .5); border: 1px solid var(--line); }
.quick-steps li::before {
  content: counter(q); position: absolute; left: 14px; top: 16px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; background: linear-gradient(160deg, var(--violet), var(--violet-deep)); box-shadow: 0 3px 0 #2e0f6b, 0 0 14px rgba(139, 92, 246, .6);
}
.quick-steps strong { display: block; font-family: var(--font-display); font-size: 15px; }
.quick-steps span { color: var(--muted); font-size: 14px; }

/* ---------- Tabel ---------- */
.table-wrap.bare { border: 0; border-radius: 0; margin: 0; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th { text-align: left; font-weight: 700; font-size: 13px; color: var(--muted); padding: 14px 18px; background: rgba(10, 6, 24, .4); white-space: nowrap; }
.dtable td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
.dtable tbody tr { transition: background .15s; }
.dtable tbody tr:hover { background: rgba(139, 92, 246, .07); }
.dtable .num { text-align: right; font-family: var(--font-code); white-space: nowrap; }
.dtable td.name strong { display: block; font-family: var(--font-code); font-weight: 500; font-size: 14px; }
.dtable td.name .badges { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.dtable .maker { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.dtable .barcol { width: 28%; }
.dtable .empty-row td { text-align: center; color: var(--muted); padding: 28px; }
.dtable code { font-family: var(--font-code); font-size: 13px; color: var(--lilac); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status.ok { color: var(--ok); background: rgba(110, 231, 183, .1); border: 1px solid rgba(110, 231, 183, .35); }
.status.soon { color: var(--warn); background: rgba(252, 211, 77, .1); border: 1px solid rgba(252, 211, 77, .35); }
.btn.danger { color: var(--danger); box-shadow: 0 4px 0 #0a0619, inset 0 0 0 1px rgba(253, 164, 175, .45); }
.btn.danger:hover { background: rgba(244, 63, 94, .12); }
.here { font-size: 11px; font-weight: 700; color: var(--pink); margin-left: 6px; }

/* ---------- Segmented control ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(10, 6, 24, .6); border: 1px solid var(--line); }
.seg button { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; padding: 7px 12px; border-radius: 10px; transition: color .2s, background .2s, box-shadow .2s; }
.seg button:hover { color: var(--text); }
.seg button.is-active { color: #fff; background: linear-gradient(180deg, #a78bfa, #7c3aed); box-shadow: 0 2px 0 #3b1485, 0 0 16px rgba(139, 92, 246, .55); }

/* ---------- Setup ---------- */
.setup .sstep { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 6px 0 18px; }
.setup .sstep + .sstep { border-top: 1px solid var(--line); padding-top: 22px; }
.step-no {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  background: linear-gradient(160deg, #a78bfa, #6d28d9); box-shadow: 0 4px 0 #2e0f6b, 0 0 18px rgba(139, 92, 246, .55);
}
.setup .sstep > div { min-width: 0; }
.setup h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.setup p { color: var(--muted); margin-bottom: 12px; font-size: 15px; }
.inline-field { display: flex; align-items: center; gap: 10px; }
.codeblock .lang { position: absolute; left: 16px; top: 10px; font-family: var(--font-code); font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.view .codeblock pre { padding-top: 34px; }
.view .codeblock .dcopy { position: absolute; top: 8px; right: 8px; }
[data-tool] p { color: var(--muted); }

/* ---------- Billing ---------- */
.bill-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bill-summary .label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.bill-summary .big { display: block; font-family: var(--font-display); font-size: 30px; letter-spacing: -0.02em; }
.mini-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.mini-dl dt { color: var(--muted); }

.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; perspective: 1400px; }
.pack {
  position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(30, 19, 66, .95), rgba(14, 8, 34, .95)) padding-box,
    linear-gradient(160deg, rgba(196, 181, 253, .7), rgba(139, 92, 246, .25) 40%, rgba(244, 114, 182, .6)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 6px 0 rgba(5, 2, 15, .7), 0 26px 50px rgba(5, 2, 15, .55), 0 0 30px rgba(139, 92, 246, .18);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.pack:hover { transform: translateY(-6px) rotateX(4deg); box-shadow: 0 10px 0 rgba(5, 2, 15, .7), 0 34px 60px rgba(5, 2, 15, .6), 0 0 44px rgba(168, 85, 247, .38); }
.pack.hot { box-shadow: 0 6px 0 rgba(5, 2, 15, .7), 0 26px 50px rgba(5, 2, 15, .55), 0 0 50px rgba(217, 70, 239, .35); }
.pack .ribbon {
  position: absolute; top: -1px; right: 18px; padding: 6px 12px; border-radius: 0 0 12px 12px;
  font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #d946ef, #9333ea); box-shadow: 0 0 18px rgba(217, 70, 239, .7);
}
.pack h3 { font-family: var(--font-display); font-size: 20px; }
.pack .desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.pack .amount { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.03em; background: linear-gradient(90deg, #fde68a, #f472b6 60%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(244, 114, 182, .45)); }
.pack .amount small { font-family: var(--font-body); font-size: 15px; font-weight: 500; -webkit-text-fill-color: var(--muted); margin-left: 6px; }
.pack .price { font-family: var(--font-display); font-size: 26px; margin: 10px 0 18px; }
.pack dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 14px; margin-bottom: 22px; flex: 1; }
.pack dt { color: var(--muted); }
.pack dd { font-family: var(--font-code); text-align: right; }

.flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: 14px; border-radius: 14px; background: rgba(10, 6, 24, .5); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.flow li b { display: block; color: var(--text); font-family: var(--font-display); margin-bottom: 2px; }
.flow li b::before { content: counter(f) ". "; color: var(--lilac); }
.flow li:nth-child(1) b { color: #c4b5fd; } .flow li:nth-child(2) b { color: #6ee7b7; } .flow li:nth-child(3) b { color: #fcd34d; } .flow li:nth-child(4) b { color: #f9a8d4; }

/* ---------- Settings ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; font-size: 15px; margin-bottom: 16px; }
.kv dt { color: var(--muted); }
.kv dd { text-align: right; word-break: break-all; }
.card3d .form-group input:disabled { opacity: .6; }

/* ---------- Modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5, 2, 15, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card {
  width: 100%; max-width: 480px; padding: 26px; border-radius: 22px;
  background: linear-gradient(180deg, #221650, #120b2a); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(139, 92, 246, .3);
  animation: pop .25s cubic-bezier(.2, .8, .2, 1.2);
}
.modal-card h2 { font-family: var(--font-display); font-size: 21px; margin-bottom: 12px; }
.modal-card p { color: var(--muted); margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 110; max-width: 360px; padding: 12px 16px; border-radius: 14px;
  background: #1c1340; border: 1px solid var(--line-strong); box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 0 20px rgba(139, 92, 246, .3);
  font-size: 14px; font-weight: 700; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: none; }
.toast.err { border-color: rgba(253, 164, 175, .5); color: var(--danger); }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .stat-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ov-top { grid-template-columns: 1fr; }
  .balance-card { min-height: 210px; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
  .sidebar.is-open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .7); }
  .side-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(5, 2, 15, .6); }
  .menu-btn { display: grid; }
  .grid-main, .packs, .bill-summary { grid-template-columns: minmax(0, 1fr); }
  .quick-steps, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { padding: 12px 16px; }
  .view { padding: 20px 16px; }
  .user-chip .btn { display: none; }
}
@media (max-width: 600px) {
  .stat-grid, .stat-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-steps, .flow { grid-template-columns: minmax(0, 1fr); }
  .announce .dots { display: none; }
  .view-head h1 { font-size: 28px; }
  .chart .lbl { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .bc-sheen, .chart .bar, .track span, .view section, .announce p { animation: none !important; }
  .balance-card, .pack { transition: none; }
}
