/* =========================================================
   Yudstore Game — tema gaming neon + kaca buram
   ========================================================= */

:root {
  --bg:         #070a14;
  --bg-soft:    #0c1122;
  --ink:        #eef2ff;
  --muted:      #9aa6c8;
  --faint:      #6b769b;

  --cyan:       #22d3ee;
  --violet:     #8b5cf6;
  --magenta:    #f43f9e;
  --lime:       #a3e635;
  --amber:      #fbbf24;
  --danger:     #ff5d6c;

  --glass-bg:   rgba(18, 24, 46, 0.62);
  --glass-brd:  rgba(255, 255, 255, 0.12);
  --glass-hi:   rgba(255, 255, 255, 0.06);

  --radius:     18px;
  --radius-lg:  26px;
  --ease:       cubic-bezier(0.32, 0.72, 0.25, 1);

  --font-display: "Chakra Petch", "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --topbar-h:   78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

/* Jangan biarkan UI terpilih saat diklik cepat */
button, .chip, .brand, .stat, .toggle, .faq__item summary { user-select: none; -webkit-user-select: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   LATAR
   ========================================================= */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, #16204a 0%, transparent 60%),
    linear-gradient(180deg, #070a14 0%, #080c18 45%, #060912 100%);
}
.bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg__glow--a {
  width: 620px; height: 620px;
  top: -180px; left: -140px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 70%);
  animation: float 22s ease-in-out infinite;
}
.bg__glow--b {
  width: 680px; height: 680px;
  bottom: -220px; right: -180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
  animation: float 26s ease-in-out infinite reverse;
}
.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 30px) scale(1.08); }
}

/* =========================================================
   KACA
   ========================================================= */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 0 var(--glass-hi),
    0 22px 50px -30px rgba(0, 0, 0, 0.95);
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px clamp(14px, 3vw, 30px) 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--cyan), var(--violet) 60%, var(--magenta));
  box-shadow: 0 8px 22px -10px rgba(139, 92, 246, 0.95);
}
.brand__mark svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: #06111c;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__text em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 15px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--glass-brd);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.search:focus-within {
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}
.search svg {
  flex: none;
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
}
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 0.94rem;
}
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { filter: invert(1); opacity: 0.5; }

.cartbtn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #06111c;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  box-shadow: 0 12px 28px -14px rgba(34, 211, 238, 0.9);
  transition: transform 0.24s var(--ease), box-shadow 0.24s, filter 0.24s;
}
.cartbtn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 18px 34px -14px rgba(139, 92, 246, 1); }
.cartbtn svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cartbtn__count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--magenta);
  border: 2px solid var(--bg);
}
.cartbtn__count[hidden] { display: none; }

/* =========================================================
   HERO
   ========================================================= */
main { position: relative; z-index: 1; }

.hero { padding: clamp(50px, 9vh, 96px) clamp(16px, 4vw, 34px) clamp(30px, 5vh, 50px); }
.hero__inner { max-width: 760px; margin: 0 auto; text-align: center; }

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.tagline__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.7);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(163, 230, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

h1 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 18px auto 0;
  max-width: 56ch;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.24s var(--ease), background 0.24s, box-shadow 0.24s, filter 0.24s, border-color 0.24s;
}
.btn--primary {
  color: #06111c;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  box-shadow: 0 14px 32px -16px rgba(34, 211, 238, 0.95);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-brd);
}
.btn--ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.12); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 46px);
  justify-content: center;
  margin-top: clamp(34px, 6vh, 54px);
  list-style: none;
}
.stats li { display: grid; gap: 2px; }
.stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  font-weight: 700;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

/* =========================================================
   SECTION
   ========================================================= */
.section {
  padding: clamp(46px, 8vh, 84px) clamp(16px, 4vw, 34px);
  max-width: 1180px;
  margin: 0 auto;
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
}
h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  letter-spacing: -0.01em;
}
.section__note { color: var(--faint); font-size: 0.88rem; }

/* =========================================================
   TOOLBAR
   ========================================================= */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-brd);
  transition: color 0.22s, background 0.22s, border-color 0.22s, transform 0.22s;
}
.chip:hover { color: var(--ink); transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); }
.chip.is-active {
  color: #06111c;
  font-weight: 600;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  border-color: transparent;
  box-shadow: 0 10px 24px -14px rgba(34, 211, 238, 0.95);
}

.toolbar__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 0.85rem; color: var(--muted); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__track {
  position: relative;
  width: 42px; height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-brd);
  transition: background 0.25s, border-color 0.25s;
}
.toggle__knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.toggle input:checked + .toggle__track { background: rgba(34, 211, 238, 0.35); border-color: rgba(34, 211, 238, 0.6); }
.toggle input:checked + .toggle__track .toggle__knob { transform: translateX(18px); background: var(--cyan); }
.toggle input:focus-visible + .toggle__track { outline: 2px solid var(--cyan); outline-offset: 3px; }
.toggle__text { white-space: nowrap; }

.urut { display: inline-flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--muted); }
.urut select {
  padding: 9px 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-brd);
  font-size: 0.85rem;
  cursor: pointer;
}
.urut select option { background: #0d1226; color: var(--ink); }

.hasil { margin-bottom: 16px; font-size: 0.86rem; color: var(--faint); }
.hasil strong { color: var(--ink); }

/* =========================================================
   GRID & KARTU AKUN
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow:
    inset 0 1px 0 0 var(--glass-hi),
    0 30px 60px -30px rgba(34, 211, 238, 0.5);
}

.card__thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 148px;
  overflow: hidden;
}
.card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 14px);
  opacity: 0.5;
}
.card__thumb .mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.06em;
  color: rgba(6, 17, 28, 0.82);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.28);
}
.card__thumb--ml    { background: linear-gradient(140deg, #60a5fa, #2563eb 55%, #1e3a8a); }
.card__thumb--ff    { background: linear-gradient(140deg, #fb923c, #ea580c 55%, #7c2d12); }
.card__thumb--pubg  { background: linear-gradient(140deg, #fbbf24, #d97706 55%, #78350f); }
.card__thumb--gi    { background: linear-gradient(140deg, #67e8f9, #0891b2 55%, #164e63); }
.card__thumb--val   { background: linear-gradient(140deg, #fb7185, #e11d48 55%, #7f1d1d); }
.card__thumb--cod   { background: linear-gradient(140deg, #a3e635, #4d7c0f 55%, #1a2e05); }

.card__badge {
  position: absolute;
  z-index: 2;
  top: 12px; left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #06111c;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

.card__sold {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(6, 9, 18, 0.66);
  backdrop-filter: blur(2px);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 18px;
}

.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card__name {
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.3;
}
.card__game { font-size: 0.78rem; color: var(--faint); }

.rank {
  flex: none;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.32);
}

.specs { display: grid; gap: 6px; list-style: none; }
.specs li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.83rem;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.specs li:last-child { border-bottom: 0; padding-bottom: 0; }
.specs dt, .specs .k { color: var(--faint); }
.specs .v { font-weight: 600; text-align: right; }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}
.price {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--lime);
  white-space: nowrap;
}

.card__acts { display: flex; gap: 8px; }
.iconbtn {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-brd);
  transition: color 0.22s, background 0.22s, transform 0.22s, border-color 0.22s;
}
.iconbtn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.13); transform: translateY(-2px); }
.iconbtn svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--add {
  padding: 11px 18px;
  border-radius: 13px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #06111c;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  transition: transform 0.22s var(--ease), filter 0.22s;
}
.btn--add:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn--add[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; filter: none; }

.card.is-sold { opacity: 0.62; }
.card.is-sold:hover { transform: none; border-color: var(--glass-brd); box-shadow: inset 0 1px 0 0 var(--glass-hi), 0 22px 50px -30px rgba(0, 0, 0, 0.95); }

.kosong {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 60px 20px;
  text-align: center;
  color: var(--faint);
}
.kosong svg {
  width: 42px; height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.kosong[hidden] { display: none; }

/* =========================================================
   CARA BELI
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 2vw, 20px);
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius);
  transition: transform 0.28s var(--ease), border-color 0.28s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.45); }
.step__num {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #06111c;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
}
.step h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 7px; }
.step p { font-size: 0.88rem; color: var(--muted); }

/* =========================================================
   JAMINAN
   ========================================================= */
.jaminan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.jaminan__item {
  padding: 24px 22px;
  border-radius: var(--radius);
  transition: transform 0.28s var(--ease), border-color 0.28s;
}
.jaminan__item:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.42); }
.jaminan__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.jaminan__icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.jaminan__item h3 { 
