/* KZMartMY Store — tema neon biru (dark navy/black + electric blue).
   Mobile-first, vanilla CSS sahaja. Tiada CDN. */
:root {
  --bg: #050914;
  --bg2: #0a1230;
  --card: rgba(13, 22, 48, 0.72);
  --card-solid: #0d1630;
  --border: rgba(56, 189, 248, 0.35);
  --border-soft: rgba(56, 189, 248, 0.18);
  --blue: #2563eb;
  --blue-bright: #38bdf8;
  --blue-soft: #7dd3fc;
  --text: #e8eefc;
  --muted: #93a4c8;
  --danger: #f87171;
  --ok: #34d399;
  --radius: 16px;
  --glow: 0 0 24px rgba(37, 99, 235, 0.35), 0 0 48px rgba(56, 189, 248, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(600px 300px at 85% -5%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(500px 260px at -10% 30%, rgba(56, 189, 248, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 84px; /* ruang bottom nav */
}
a { color: var(--blue-soft); text-decoration: none; }
h1, h2, h3 { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 14px; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 9, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-in {
  max-width: 720px; margin: 0 auto; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800;
  font-size: 19px; letter-spacing: 0.2px; color: var(--text); }
.logo-img { height: 46px; width: auto; display: block;
  mix-blend-mode: screen; }
@media (max-width: 480px) { .logo-img { height: 40px; } }
.footer-logo { height: 62px; width: auto; max-width: 100%;
  display: block; margin: 0 auto 10px; mix-blend-mode: screen; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  display: grid; place-items: center; color: #04122e;
  font-size: 15px; font-weight: 900;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
}
.logo small { display: block; font-size: 10px; font-weight: 600;
  color: var(--blue-soft); letter-spacing: 2px; text-transform: uppercase; }
.icon-btn {
  margin-left: auto; background: var(--card); border: 1px solid var(--border-soft);
  color: var(--text); width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn + .icon-btn { margin-left: 0; }
.icon-btn svg { width: 19px; height: 19px; }
.menu { position: relative; }
.menu-drop {
  position: absolute; right: 0; top: 46px; min-width: 210px;
  background: var(--card-solid); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--glow); padding: 6px;
  display: none; z-index: 60;
}
.menu-drop.open { display: block; }
.menu-drop a { display: block; padding: 10px 12px; border-radius: 9px;
  color: var(--text); font-size: 14px; }
.menu-drop a:hover { background: rgba(56, 189, 248, 0.14); }
.searchbar { display: none; padding: 0 14px 10px; max-width: 720px; margin: 0 auto; }
.searchbar.open { display: block; }

/* ---------- pills ---------- */
.pills { display: flex; gap: 8px; padding: 12px 14px 4px; max-width: 720px;
  margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13px;
  font-weight: 600; color: var(--blue-soft);
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid var(--border-soft);
}
.pill.active, .pill:hover {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #04122e; border-color: transparent;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

/* ---------- hero carousel ---------- */
.hero { position: relative; margin: 12px 14px 0; max-width: 692px; }
.hero-viewport { overflow: hidden; border-radius: var(--radius); }
.hero-track { display: flex; transition: transform 0.5s ease; }
.hero-slide {
  flex: 0 0 100%; min-height: 148px; padding: 22px 20px;
  background:
    radial-gradient(220px 120px at 90% 0%, rgba(56, 189, 248, 0.35), transparent 70%),
    linear-gradient(135deg, #0b1e4d, #0a1230 60%, #0d1b45);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--glow);
}
.hero-slide h2 { font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
.hero-slide h2 span {
  background: linear-gradient(90deg, var(--blue-bright), #a5f3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-slide p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.hero-slide .tag { display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-soft);
  margin-bottom: 8px; }
.hero-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.hero-dots button { width: 22px; height: 5px; border-radius: 99px; border: 0;
  background: rgba(56, 189, 248, 0.25); cursor: pointer; padding: 0; }
.hero-dots button.on { background: var(--blue-bright);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8); }

/* ---------- sections ---------- */
section { margin-top: 26px; }
.sec-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.sec-head h2 { font-size: 18px; }
.sec-head .sub { color: var(--muted); font-size: 13px; }

/* ---------- game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.game-card {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  backdrop-filter: blur(8px); text-align: left; padding: 0; color: var(--text);
  font-family: inherit;
}
.game-card:hover, .game-card.sel {
  transform: translateY(-2px); border-color: var(--blue-bright);
  box-shadow: var(--glow);
}
.game-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: linear-gradient(160deg, #12224f, #0a1230); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-cover .fallback { position: absolute; inset: 0; display: grid;
  place-items: center; font-size: 44px; font-weight: 900; color: var(--blue-bright);
  background: linear-gradient(160deg, #12224f, #0a1230); }
.game-body { padding: 10px 11px 12px; }
.game-body h3 { font-size: 14px; line-height: 1.3; }
.game-body .meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.game-body .from { color: var(--blue-soft); font-size: 12px; font-weight: 700;
  margin-top: 6px; }

/* ---------- trust badges ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trust-badge {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 12px 10px; text-align: center;
}
.trust-badge svg { width: 26px; height: 26px; color: var(--blue-bright);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6)); }
.trust-badge b { display: block; font-size: 13px; margin-top: 7px; }
.trust-badge span { display: block; font-size: 11.5px; color: var(--muted);
  margin-top: 3px; line-height: 1.4; }
.trust-line { text-align: center; color: var(--muted); font-size: 13px;
  margin-top: 12px; letter-spacing: 1px; }
.trust-line b { color: var(--blue-soft); }

/* ---------- topup ---------- */
.panel { background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 16px; backdrop-filter: blur(8px); }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab { flex: 1; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--border-soft);
  background: transparent; color: var(--text); font-weight: 700; font-size: 13px;
  cursor: pointer; font-family: inherit; }
.tab.sel { background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #04122e; border-color: transparent;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: 7px 12px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--border-soft); background: transparent;
  color: var(--text); cursor: pointer; font-family: inherit; }
.chip.sel { background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #04122e; border-color: transparent; font-weight: 700; }
.step-label { font-size: 12px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--blue-soft); margin: 16px 0 8px; }
.step-label:first-child { margin-top: 0; }
.pkg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .pkg-grid { grid-template-columns: repeat(3, 1fr); } }
.pkg { padding: 12px; border-radius: 13px; border: 1px solid var(--border-soft);
  background: rgba(56, 189, 248, 0.05); color: var(--text); cursor: pointer;
  text-align: left; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.pkg:hover, .pkg.sel { border-color: var(--blue-bright); box-shadow: var(--glow); }
.pkg b { display: block; font-size: 13.5px; line-height: 1.35; }
.pkg span { display: block; margin-top: 6px; font-weight: 800; color: var(--blue-soft); }
.field { margin-bottom: 10px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="file"] {
  width: 100%; padding: 12px; border-radius: 12px; font-size: 15px;
  border: 1px solid var(--border-soft); background: rgba(5, 9, 20, 0.6);
  color: var(--text); font-family: inherit;
}
input:focus { outline: 2px solid var(--blue-bright); outline-offset: 0; border-color: var(--blue-bright); }
.id-row { display: flex; gap: 8px; }
.id-row input { flex: 1; }
.nick-ok { margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4);
  font-size: 14px; }
.nick-warn { margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: rgba(251, 191, 36, 0.10); border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 14px; color: #fde68a; }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt { border: 1px solid var(--border-soft); border-radius: 13px; padding: 12px;
  cursor: pointer; font-size: 14px; }
.pay-opt.sel { border-color: var(--blue-bright); box-shadow: var(--glow);
  background: rgba(56, 189, 248, 0.08); }
.pay-opt b { display: block; }
.pay-opt span { color: var(--muted); font-size: 12px; }
.btn {
  display: inline-block; width: 100%; padding: 14px; border: 0; border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #04122e; font-weight: 800; font-size: 16px; cursor: pointer;
  font-family: inherit; box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
  text-align: center;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; border: 1px solid var(--border);
  color: var(--blue-soft); box-shadow: none; width: auto; padding: 10px 16px;
  font-size: 14px; }
.btn.small { width: auto; padding: 10px 16px; font-size: 14px; }
.notice { padding: 12px; border-radius: 12px; font-size: 14px; line-height: 1.5;
  background: rgba(56, 189, 248, 0.08); border: 1px solid var(--border-soft);
  margin-top: 12px; white-space: pre-line; }
.notice.err { background: rgba(248, 113, 113, 0.10);
  border-color: rgba(248, 113, 113, 0.4); }
.hidden { display: none !important; }

/* ---------- tracking / status ---------- */
.status-card { margin-top: 12px; }
.status-card .rowline { display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.status-card .rowline:last-child { border-bottom: 0; }
.status-card .rowline span:first-child { color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: rgba(56, 189, 248, 0.16);
  color: var(--blue-soft); border: 1px solid var(--border-soft); }
.badge.ok { background: rgba(52, 211, 153, 0.15); color: var(--ok);
  border-color: rgba(52, 211, 153, 0.4); }
.badge.bad { background: rgba(248, 113, 113, 0.15); color: var(--danger);
  border-color: rgba(248, 113, 113, 0.4); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--border-soft); border-radius: 13px;
  background: var(--card); margin-bottom: 10px; overflow: hidden; }
.faq summary { padding: 13px 14px; cursor: pointer; font-weight: 700; font-size: 14px; }
.faq p { margin: 0; padding: 0 14px 13px; color: var(--muted);
  font-size: 14px; line-height: 1.6; }

/* ---------- bottom nav ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(5, 9, 20, 0.92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-soft);
  display: none;
}
@media (max-width: 720px) { .bottomnav { display: block; } }
.bottomnav-in { max-width: 720px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(4, 1fr); }
.bottomnav a { display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
  color: var(--muted); font-size: 11px; font-weight: 600; }
.bottomnav a svg { width: 21px; height: 21px; }
.bottomnav a.on, .bottomnav a:hover { color: var(--blue-bright); }

footer { text-align: center; color: var(--muted); font-size: 12.5px;
  padding: 26px 14px 10px; line-height: 1.7; }

/* ---------- receipt page ---------- */
.receipt h1 { font-size: 22px; margin: 26px 0 4px; }
table.kv { width: 100%; border-collapse: collapse; margin: 18px 0;
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: 12px; overflow: hidden; }
table.kv th, table.kv td { text-align: left; padding: 11px 12px;
  border-bottom: 1px solid var(--border-soft); font-size: 14px; }
table.kv th { color: var(--muted); font-weight: 600; width: 40%; }
table.kv tr:last-child th, table.kv tr:last-child td { border-bottom: 0; }

/* ---------- locked banner ---------- */
.lock-banner { margin: 12px 14px 0; padding: 13px 14px; border-radius: 13px;
  background: rgba(251, 191, 36, 0.10); border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a; font-size: 14px; line-height: 1.5; }
