/* AnoGames — tema ala situs top-up profesional: gelap, berani, mobile-first */
:root {
  --bg: #0a0a1a;
  --bg2: #10102a;
  --card: #151532;
  --card2: #1b1b3d;
  --border: #2b2b58;
  --text: #f2f2ff;
  --muted: #a3a3cf;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #e14389 55%, #fb923c 100%);
  --grad-soft: linear-gradient(135deg, rgba(139,92,246,.22), rgba(225,67,137,.22), rgba(251,146,60,.22));
  --gold: #fbbf24;
  --green: #22c55e;
  --red: #f87171;
  --blue: #60a5fa;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 12% -6%, rgba(139,92,246,.16) 0%, transparent 60%),
    radial-gradient(900px 480px at 88% -6%, rgba(251,146,60,.12) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--blue); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ===== Header ===== */
header.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,10,26,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 14px; padding: 10px 16px; max-width: 1100px; margin: 0 auto; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: .5px; white-space: nowrap; cursor: pointer; }
.logo .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar .search { flex: 1; max-width: 420px; position: relative; }
.topbar .search input { padding: 10px 14px 10px 38px; font-size: 14px; }
.topbar .search::before { content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .7; }
nav.mainnav { margin-left: auto; display: flex; gap: 4px; }
nav.mainnav a { color: var(--muted); padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
nav.mainnav a:hover { color: var(--text); background: var(--card2); }
nav.mainnav a.active { color: #fff; background: var(--grad); }

/* ===== Banner ===== */
.sim-banner {
  display: none; text-align: center; font-weight: 700; font-size: 13px;
  padding: 9px 12px; letter-spacing: .3px; color: #fff8e6;
  background: linear-gradient(90deg, #7a4d00, #a86e00);
}
.sim-banner.show { display: block; }

/* ===== Hero ===== */
.hero {
  border-radius: 24px; margin: 18px 0 8px; padding: 44px 28px; text-align: center;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(139,92,246,.35), transparent 65%),
    radial-gradient(600px 300px at 85% 20%, rgba(251,146,60,.28), transparent 65%),
    linear-gradient(160deg, #191940, #0e0e26);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,.015) 18px 36px);
}
.hero .pill {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
  padding: 7px 16px; border-radius: 999px; color: #fff;
  background: var(--grad); margin-bottom: 14px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(28px, 5.4vw, 46px); margin: 0 0 10px; line-height: 1.15; }
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin: 0 auto 20px; max-width: 560px; font-size: 15px; }
.hero .stats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .stat { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 12px; padding: 10px 18px; font-size: 13px; font-weight: 700; }
.hero .stat b { color: var(--gold); }

/* ===== Search & chips ===== */
.toolbar { display: flex; gap: 10px; margin: 20px 0 12px; }
.search { flex: 1; position: relative; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 13px; font-size: 15px;
  border: 1px solid var(--border); background: var(--bg2); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.22); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 600;
  transition: all .15s;
}
.chip:hover { border-color: #8b5cf6; color: var(--text); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; font-weight: 800; }

/* ===== Section titles ===== */
.sec-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; }
.sec-title h2 { margin: 0; font-size: 20px; }
.sec-title .line { flex: 1; height: 1px; background: var(--border); }
.sec-title .tag { font-size: 11px; font-weight: 800; color: #fff; background: var(--grad); border-radius: 999px; padding: 4px 12px; }

/* ===== Brand tiles (ala Codashop) ===== */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile {
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--card); border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tile:hover { transform: translateY(-4px); border-color: #8b5cf6; box-shadow: 0 12px 32px rgba(139,92,246,.25); }
.tile .art {
  height: 108px; display: flex; align-items: center; justify-content: center;
  font-size: 46px; position: relative; overflow: hidden;
}
.tile .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); }
.tile .art span { filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); z-index: 1; }
.tile .body { padding: 12px 13px 14px; }
.tile .name { font-weight: 800; font-size: 14px; }
.tile .from { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tile .from b { color: var(--gold); }
.tile .go { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; color: #fff; background: var(--grad); border-radius: 8px; padding: 6px 12px; }

/* ===== Payment strip ===== */
.paystrip { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }
.paybadge {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px;
}
.paybadge .pi { font-size: 18px; }

/* ===== USP ===== */
.usp { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 26px 0 8px; }
.usp .u { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.usp .u .ic { font-size: 30px; }
.usp .u b { display: block; margin-bottom: 4px; }
.usp .u small { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ===== Product page: brand hero ===== */
.brand-hero { border-radius: 20px; margin: 18px 0; overflow: hidden; border: 1px solid var(--border); }
.brand-hero .art { height: 150px; display: flex; align-items: center; gap: 18px; padding: 0 24px; position: relative; }
.brand-hero .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), transparent 60%); }
.brand-hero .bic { font-size: 64px; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.brand-hero .bt { z-index: 1; }
.brand-hero .bt h1 { margin: 0; font-size: clamp(22px, 4vw, 32px); text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.brand-hero .bt p { margin: 6px 0 0; color: #e6e6ff; font-size: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }

/* ===== Steps (numbered, ala Codashop/Ourastore) ===== */
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: #fff; background: var(--grad);
  box-shadow: 0 4px 14px rgba(225,67,137,.4);
}
.step-head h3 { margin: 0; font-size: 17px; }
.step-head small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }

/* ===== Variants ===== */
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.variant {
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 12px; cursor: pointer;
  background: var(--bg2); transition: all .13s; position: relative;
}
.variant:hover { border-color: #8b5cf6; }
.variant.active { border-color: transparent; background: linear-gradient(var(--bg2), var(--bg2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 0 0 1px rgba(139,92,246,.5), 0 6px 18px rgba(139,92,246,.18); }
.variant.active::after { content: '✓'; position: absolute; top: 8px; right: 10px; color: var(--green); font-weight: 900; }
.variant .vname { font-size: 13px; font-weight: 700; padding-right: 18px; }
.variant .vprice { color: var(--gold); font-weight: 800; margin-top: 5px; font-size: 15px; }

/* ===== Payment methods grid ===== */
.pm-group { margin-bottom: 16px; }
.pm-group:last-child { margin-bottom: 0; }
.pm-group-title { font-size: 12px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pm-option {
  display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg2); transition: all .13s;
}
.pm-option:hover { border-color: #8b5cf6; }
.pm-option.selected { border: 1.5px solid transparent; background: linear-gradient(var(--bg2), var(--bg2)) padding-box, var(--grad) border-box; box-shadow: 0 6px 18px rgba(139,92,246,.18); }
.pm-option input { display: none; }
.pm-option .pi { font-size: 22px; }
.pm-option .pn { font-size: 13px; font-weight: 700; }

/* ===== Sticky buy bar ===== */
.buybar-wrap { height: 92px; }
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(12,12,30,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.buybar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.buybar .sum { flex: 1; min-width: 0; }
.buybar .sum .s1 { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .sum .s2 { font-size: 19px; font-weight: 900; color: var(--gold); }
.buybar .sum .s2 small { font-size: 11px; color: var(--muted); font-weight: 400; }
.buybar .btn { width: auto; padding: 14px 34px; font-size: 16px; white-space: nowrap; }

/* ===== Panels, forms, buttons ===== */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 16px 0; }
.panel h2, .panel h3 { margin-top: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 700; }
.btn {
  display: inline-block; border: none; cursor: pointer; font-weight: 800; font-size: 15px;
  padding: 14px 24px; border-radius: 13px; color: #fff; background: var(--grad);
  box-shadow: 0 6px 20px rgba(225,67,137,.35); transition: all .15s; width: 100%;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--card2); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 6px 20px rgba(239,68,68,.3); }
.btn.small { width: auto; padding: 9px 16px; font-size: 13px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.error { background: rgba(248,113,113,.1); border: 1px solid var(--red); color: #fecaca; padding: 13px 15px; border-radius: 12px; margin: 12px 0; font-size: 14px; }
.success-box { background: rgba(34,197,94,.1); border: 1px solid var(--green); color: #bbf7d0; padding: 15px; border-radius: 12px; }

/* ===== Pay page ===== */
.pay-code {
  font-family: Consolas, monospace; font-size: 24px; font-weight: 800; letter-spacing: 2px;
  background: var(--bg2); border: 2px dashed #8b5cf6; border-radius: 14px;
  padding: 20px 14px; text-align: center; margin: 14px 0; word-break: break-all;
}
.countdown {
  font-size: 15px; color: var(--gold); font-weight: 800; text-align: center; margin: 12px 0;
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.35); border-radius: 12px; padding: 11px;
}
ol.steps { margin: 0; padding-left: 22px; color: var(--muted); font-size: 14px; line-height: 2; }
ol.steps b { color: var(--text); }
.total-row { display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 800; padding: 14px 0; border-top: 1px solid var(--border); margin-top: 12px; }
.total-row .amount { color: var(--gold); font-size: 22px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.order-meta .om { font-size: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; color: var(--muted); }
.order-meta .om b { color: var(--text); }

/* ===== Status ===== */
.status-badge { display: inline-block; padding: 7px 18px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.st-PENDING_PAYMENT { background: rgba(251,191,36,.14); color: var(--gold); border: 1px solid rgba(251,191,36,.4); }
.st-PAID, .st-PROCESSING { background: rgba(96,165,250,.14); color: var(--blue); border: 1px solid rgba(96,165,250,.4); }
.st-SUCCESS { background: rgba(34,197,94,.14); color: var(--green); border: 1px solid rgba(34,197,94,.4); }
.st-FAILED { background: rgba(248,113,113,.14); color: var(--red); border: 1px solid rgba(248,113,113,.4); }
.st-REFUNDED { background: rgba(139,92,246,.14); color: #c4b5fd; border: 1px solid rgba(139,92,246,.4); }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: 8px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.timeline li::after { content: ''; position: absolute; left: 12.5px; top: 20px; bottom: 0; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline .t-time { color: var(--muted); font-size: 12px; }
.timeline .t-note { color: var(--muted); }

/* ===== Admin (tetap fungsional) ===== */
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.data th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
table.data tr:hover td { background: rgba(139,92,246,.06); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stat .num { font-size: 22px; font-weight: 800; color: var(--gold); }
.stat .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.tab { padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg2); color: var(--muted); cursor: pointer; font-weight: 700; }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  nav.mainnav a { padding: 8px 10px; font-size: 13px; }
  .topbar .search { display: none; }
  .hero { padding: 32px 18px; }
  .buybar .btn { padding: 13px 22px; font-size: 15px; }
}

/* ===== Footer ===== */
footer.site { border-top: 1px solid var(--border); margin-top: 40px; padding: 34px 16px 110px; color: var(--muted); font-size: 13px; }
footer.site .frow { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer.site h4 { color: var(--text); margin: 0 0 10px; font-size: 14px; }
footer.site ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
footer.site .copy { text-align: center; margin-top: 26px; font-size: 12px; opacity: .7; }
@media (max-width: 640px) { footer.site .frow { grid-template-columns: 1fr; } }

.mono { font-family: Consolas, monospace; font-size: 12px; word-break: break-all; }
.spinner { text-align: center; color: var(--muted); padding: 34px; }
.empty-note { text-align: center; color: var(--muted); padding: 40px 16px; }
