/* NexGame — Design system */
:root {
  --bg-0: #070a0f;
  --bg-1: #0c121c;
  --bg-2: #121a27;
  --bg-3: #1a2436;
  --line: rgba(140, 170, 200, 0.12);
  --text: #e8eef6;
  --muted: #8b9bb0;
  --accent: #2ee6a8;
  --accent-2: #3db4ff;
  --accent-dim: rgba(46, 230, 168, 0.14);
  --danger: #ff5c7a;
  --warn: #ffb020;
  --ok: #2ee6a8;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(46, 230, 168, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(61, 180, 255, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, #06080d);
  background-attachment: fixed;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #7ff5cb;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(7, 10, 15, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #04120d;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 0 24px rgba(46, 230, 168, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.balance-pill {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(46, 230, 168, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.72rem 1.2rem;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1ecf95);
  color: #04120d;
  box-shadow: 0 10px 30px rgba(46, 230, 168, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(46, 230, 168, 0.4);
  color: #04120d;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-danger {
  background: rgba(255, 92, 122, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 92, 122, 0.3);
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  border-radius: 10px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.92) 0%, rgba(7, 10, 15, 0.55) 45%, rgba(7, 10, 15, 0.25) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%231a3a3a'/%3E%3Cstop offset='1' stop-color='%230b1a2e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%232ee6a8' stroke-opacity='0.12'%3E%3Cpath d='M0 650 Q400 500 800 620 T1600 540'/%3E%3Cpath d='M0 700 Q450 560 900 680 T1600 600'/%3E%3C/g%3E%3Ccircle cx='1200' cy='280' r='180' fill='%233db4ff' fill-opacity='0.08'/%3E%3Ccircle cx='1280' cy='220' r='90' fill='%232ee6a8' fill-opacity='0.1'/%3E%3Crect x='980' y='360' width='420' height='280' rx='24' fill='%23ffffff' fill-opacity='0.03' stroke='%232ee6a8' stroke-opacity='0.2'/%3E%3Ctext x='1040' y='520' fill='%232ee6a8' fill-opacity='0.55' font-family='Arial' font-size='42' font-weight='700'%3ESTEAM%3C/text%3E%3C/svg%3E") center/cover no-repeat;
  animation: heroPulse 10s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  from { transform: scale(1); filter: saturate(1); }
  to { transform: scale(1.04); filter: saturate(1.15); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  animation: riseIn 0.8s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, #fff 20%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Product grid — interaction containers, not decorative cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.product-tile {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: riseIn 0.6s ease both;
}

.product-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 230, 168, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.product-tile .thumb {
  aspect-ratio: 16/10;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}

.product-tile .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-tile:hover .thumb img {
  transform: scale(1.05);
}

.product-tile .thumb .placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: rgba(46, 230, 168, 0.45);
  background: radial-gradient(circle at 30% 30%, rgba(46, 230, 168, 0.12), transparent 60%), var(--bg-2);
}

.product-tile .body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product-tile h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-ok {
  background: rgba(46, 230, 168, 0.12);
  color: var(--ok);
}

.badge-off {
  background: rgba(255, 92, 122, 0.12);
  color: var(--danger);
}

.badge-platform {
  background: rgba(61, 180, 255, 0.12);
  color: var(--accent-2);
}

/* Forms */
.panel {
  background: rgba(18, 26, 39, 0.75);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(46, 230, 168, 0.5);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.12);
}

.auth-shell {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.auth-panel {
  width: min(420px, 100%);
}

.auth-panel h1 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
}

.auth-panel .sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Alerts */
.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  animation: riseIn 0.35s ease both;
}

.alert-success {
  background: rgba(46, 230, 168, 0.12);
  border: 1px solid rgba(46, 230, 168, 0.28);
  color: var(--ok);
}

.alert-error {
  background: rgba(255, 92, 122, 0.12);
  border: 1px solid rgba(255, 92, 122, 0.28);
  color: #ff8fa3;
}

.alert-warn {
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.28);
  color: var(--warn);
}

/* Product detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0 3rem;
}

.detail-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  aspect-ratio: 16/10;
}

.detail-media img,
.detail-media .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-media .placeholder {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(46, 230, 168, 0.4);
}

.detail-buy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1rem 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table.data th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.02);
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Credential box */
.cred-box {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.cred-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.cred-row .label {
  width: 90px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cred-row code {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  word-break: break-all;
}

/* Steam Guard */
.guard-panel {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.guard-code {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.28em;
  font-weight: 800;
  text-align: center;
  padding: 1.2rem;
  margin: 1rem 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(46, 230, 168, 0.12), rgba(46, 230, 168, 0.04));
  border: 1px solid rgba(46, 230, 168, 0.3);
  color: var(--accent);
  animation: codePop 0.35s ease;
}

@keyframes codePop {
  from { transform: scale(0.96); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}

.timers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timer-box {
  text-align: center;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.timer-box .val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.timer-box .lbl {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Admin */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-side {
  background: rgba(0, 0, 0, 0.35);
  border-right: 1px solid var(--line);
  padding: 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-side .brand {
  margin-bottom: 1.5rem;
}

.admin-nav {
  display: grid;
  gap: 0.25rem;
}

.admin-nav a {
  color: var(--muted);
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.admin-main {
  padding: 1.5rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.stat {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat .n {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
}

.stat .l {
  color: var(--muted);
  font-size: 0.8rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 220px;
}

.search-bar input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-side {
    position: relative;
    height: auto;
  }
  .timers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(7, 10, 15, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open {
    display: flex;
  }
  .hero {
    min-height: auto;
    padding: 3.5rem 0 3rem;
  }
}

/* ===== v2 polish ===== */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
  letter-spacing: -0.04em;
}

.page-hero .lede,
.lede {
  color: var(--muted);
  margin: 0.5rem 0 0;
  max-width: 36rem;
}

.page-hero.compact { margin-bottom: 1.25rem; }

.balance-hero {
  background: linear-gradient(145deg, rgba(46,230,168,0.16), rgba(61,180,255,0.08));
  border: 1px solid rgba(46,230,168,0.28);
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
  min-width: 200px;
}

.balance-hero span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.balance-hero strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--accent);
}

.wrap.narrow { width: min(880px, calc(100% - 2rem)); }

.pay-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.pay-tab {
  flex: 1;
  min-width: 120px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

.pay-tab.active {
  background: linear-gradient(135deg, rgba(46,230,168,0.2), rgba(61,180,255,0.12));
  color: var(--text);
}

.tab-panel { display: none; animation: riseIn 0.35s ease both; }
.tab-panel.active { display: block; }

.split-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.1rem;
}

.panel.soft { background: rgba(255,255,255,0.025); }
.panel.glow-orange {
  border-color: rgba(255, 140, 66, 0.35);
  box-shadow: 0 0 0 1px rgba(255,140,66,0.08), 0 20px 50px rgba(255,100,40,0.08);
}
.panel.glow-blue {
  border-color: rgba(61,180,255,0.3);
  box-shadow: 0 0 0 1px rgba(61,180,255,0.08), 0 20px 50px rgba(40,120,255,0.08);
}

.panel-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
  margin-bottom: 0.85rem;
}
.panel-icon.tmn {
  background: linear-gradient(135deg, #ff8a3d, #ff4d6d);
  color: #fff;
}

.btn-tmn {
  background: linear-gradient(135deg, #ff8a3d, #ff5a7a);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255,90,100,0.28);
}
.btn-tmn:hover { color: #fff; filter: brightness(1.05); }

.steps {
  margin: 1.25rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.steps li { margin: 0.35rem 0; }

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.feature-list li:last-child { border-bottom: 0; }

.unique-amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  margin: 0.5rem 0;
}

.center { text-align: center; }
.muted { color: var(--muted); }

.account-box {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}
.account-box > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--line);
}
.account-box span {
  width: 72px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.account-box strong { flex: 1; }

.qr-img {
  width: min(260px, 100%);
  margin: 0.75rem auto;
  border-radius: 16px;
  background: #fff;
  padding: 0.75rem;
}

.announce {
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(46,230,168,0.12), rgba(61,180,255,0.1));
  border: 1px solid rgba(46,230,168,0.22);
  font-weight: 650;
  animation: riseIn 0.5s ease both;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.feature-strip > div {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.feature-strip strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}
.feature-strip span { color: var(--muted); font-size: 0.88rem; }

.gate-panel {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 20px;
  border: 1px dashed rgba(46,230,168,0.35);
  background: rgba(46,230,168,0.04);
}
.gate-panel h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.howto-card {
  padding: 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  transition: transform 0.2s ease, border-color 0.2s;
}
.howto-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46,230,168,0.35);
}
.howto-card .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 800;
}
.howto-card h3 { margin: 0.4rem 0; font-family: var(--font-display); }
.howto-card p { color: var(--muted); margin: 0 0 1rem; }

.faq-list { display: grid; gap: 0.65rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 0.85rem 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--muted); margin: 0.65rem 0 0.2rem; }

.notif-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.notif-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.notif-list li.unread strong { color: var(--accent); }
.notif-list span { color: var(--muted); }
.notif-list small { color: var(--muted); opacity: 0.8; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--accent); }

.panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
}

@media (max-width: 900px) {
  .split-2,
  .feature-strip,
  .howto-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Auth OTP + Toasts + Notif bell ===== */
.toast-stack {
  position: fixed;
  top: 88px;
  right: 16px;
  z-index: 200;
  display: grid;
  gap: 0.55rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  transform: translateX(24px);
  opacity: 0;
  transition: 0.28s ease;
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-success { background: rgba(46,230,168,0.16); border-color: rgba(46,230,168,0.35); color: var(--ok); }
.toast-error { background: rgba(255,92,122,0.16); border-color: rgba(255,92,122,0.35); color: #ff8fa3; }
.toast-warn { background: rgba(255,176,32,0.16); border-color: rgba(255,176,32,0.35); color: var(--warn); }

.otp-boxes {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.35rem 0 1rem;
}
.otp-digit {
  width: 46px;
  height: 56px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--accent);
  outline: none;
}
.otp-digit:focus {
  border-color: rgba(46,230,168,0.55);
  box-shadow: 0 0 0 3px rgba(46,230,168,0.12);
}

.notif-wrap { position: relative; }
.notif-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.notif-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(340px, 90vw);
  background: #0f1622;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 80;
  animation: riseIn 0.2s ease both;
}
.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.notif-drop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow: auto;
}
.notif-drop-list li { border-bottom: 1px solid var(--line); }
.notif-drop-list a, .notif-drop-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  color: inherit;
  text-decoration: none;
}
.notif-drop-list li.unread { background: rgba(46,230,168,0.06); }
.notif-drop-list strong { font-size: 0.9rem; }
.notif-drop-list span { color: var(--muted); font-size: 0.82rem; }
.notif-drop-list small { color: var(--muted); opacity: 0.75; font-size: 0.72rem; }
.notif-foot {
  display: block;
  text-align: center;
  padding: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.verify-banner {
  background: linear-gradient(90deg, rgba(255,176,32,0.16), rgba(46,230,168,0.08));
  border-bottom: 1px solid rgba(255,176,32,0.25);
  position: relative;
  z-index: 40;
}
.verify-banner .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 0;
  flex-wrap: wrap;
  font-weight: 650;
}

.otp-panel { width: min(460px, 100%); }

@media (max-width: 520px) {
  .otp-digit { width: 40px; height: 50px; font-size: 1.15rem; }
  .toast-stack { top: auto; bottom: 16px; right: 12px; left: 12px; width: auto; }
}

/* ===== Responsive: phone / iPad / desktop ===== */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video, svg, iframe { max-width: 100%; height: auto; }
.table-wrap { -webkit-overflow-scrolling: touch; }
.btn, .pay-tab, .nav-links a, .product-tile { -webkit-tap-highlight-color: transparent; }
.site-nav .wrap { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }

.admin-topbar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7,10,15,0.92);
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(12px);
}

/* iPad / tablet */
@media (max-width: 1100px) {
  .wrap { width: min(100% - 1.5rem, 1180px); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.9rem; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-brand { font-size: clamp(2.6rem, 9vw, 4.2rem); }
}

@media (max-width: 900px) {
  .admin-topbar { display: flex; }
  .admin-brand-desk { display: none; }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-side {
    display: none;
    position: fixed;
    inset: 56px 0 auto 0;
    height: auto;
    max-height: calc(100vh - 56px);
    overflow: auto;
    z-index: 70;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #0b111a;
    padding: 1rem;
  }
  .admin-side.open { display: block; animation: riseIn 0.2s ease both; }
  .admin-main { padding: 1rem; }
  .page-hero { align-items: start; }
  .balance-hero { width: 100%; }
  .split-2 { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem 0 2rem; }
  .howto-grid { grid-template-columns: 1fr; }
  .cred-row { flex-wrap: wrap; }
  .cred-row .label { width: 100%; }
  .unique-amount { font-size: clamp(2rem, 10vw, 2.8rem); }
  .qr-img { width: min(220px, 70vw); }
  table.data { font-size: 0.82rem; }
  table.data th, table.data td { padding: 0.7rem 0.75rem; white-space: nowrap; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .site-nav .wrap { gap: 0.5rem; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 30px; height: 30px; font-size: 0.75rem; }
  .nav-cta { gap: 0.35rem; }
  .balance-pill { font-size: 0.75rem; padding: 0.35rem 0.55rem; }
  .btn-sm { padding: 0.4rem 0.65rem; }
  .hero { padding: 2.5rem 0 2rem; min-height: auto; }
  .hero p { font-size: 0.98rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .section { padding: 2.25rem 0; }
  .section-head { flex-direction: column; align-items: start; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .product-tile h3 { font-size: 0.88rem; min-height: 2.4em; }
  .price { font-size: 1rem; }
  .feature-strip { grid-template-columns: 1fr; }
  .pay-tabs { flex-direction: column; }
  .pay-tab { width: 100%; }
  .auth-shell { padding: 1.25rem 0 2rem; align-items: start; }
  .auth-panel { width: 100%; }
  .panel { padding: 1.15rem; border-radius: 16px; }
  .footer .wrap { flex-direction: column; }
  .footer-links { gap: 0.6rem; }
  .notif-dropdown { right: -40px; width: min(300px, calc(100vw - 1.5rem)); }
  .account-box > div { flex-direction: column; align-items: flex-start; }
  .account-box span { width: auto; }
  .search-bar { flex-direction: column; }
  .search-bar input, .search-bar select, .search-bar .btn { width: 100%; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .otp-boxes { gap: 0.3rem; }
  .otp-digit { width: 38px; height: 48px; font-size: 1.1rem; border-radius: 10px; }
  .gate-panel { padding: 2rem 1rem; }
  .timers { grid-template-columns: 1fr; }
  .guard-code { letter-spacing: 0.16em; font-size: clamp(1.5rem, 8vw, 2.2rem); }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 1rem); }
  .hero-brand { font-size: 2.4rem; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* Desktop polish */
@media (min-width: 1101px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-topbar { display: none !important; }
}

/* Touch-friendly inputs on iOS */
@supports (-webkit-touch-callout: none) {
  .form-row input,
  .form-row select,
  .form-row textarea,
  .otp-digit,
  .search-bar input {
    font-size: 16px;
  }
}

/* ===== Motion system ===== */
.page-enter {
  animation: pageIn 0.45s cubic-bezier(.22,.9,.28,1) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.22,.9,.28,1), transform .55s cubic-bezier(.22,.9,.28,1);
  transition-delay: var(--d, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.btn, .pay-tab, .product-tile, .howto-card, .faq-item, .nav-links a, .admin-nav a {
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .18s ease, opacity .18s ease;
}
.btn:active, .pay-tab:active, .product-tile:active {
  transform: scale(0.97);
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple .ripple {
  position: absolute;
  border-radius: 999px;
  transform: scale(0);
  animation: ripple .55s ease-out;
  background: rgba(255,255,255,.35);
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(2.6); opacity: 0; }
}

.pay-tabs {
  position: relative;
}
.pay-tab.active {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(46,230,168,0.12);
}
.tab-panel {
  animation: tabIn .35s cubic-bezier(.22,.9,.28,1) both;
}
@keyframes tabIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.faq-item summary {
  transition: color .2s ease;
}
.faq-item[open] summary { color: var(--accent); }
.faq-item p {
  animation: tabIn .28s ease both;
}

.product-tile:hover {
  transform: translateY(-6px) scale(1.01);
}

.admin-page-title {
  font-family: var(--font-display);
  margin: 0 0 .35rem;
  letter-spacing: -.03em;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.admin-lead { margin: 0 0 1.25rem; }
.admin-tabs { margin-bottom: 1rem; }
.admin-save-bar {
  position: sticky;
  bottom: 12px;
  margin-top: 1rem;
  padding: .85rem;
  border-radius: 14px;
  background: rgba(7,10,15,.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: flex-end;
  z-index: 20;
}
.cms-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-bottom: .55rem;
}
.cms-card {
  display: grid;
  gap: .55rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  margin-bottom: .75rem;
}
.cms-card input, .cms-card textarea, .cms-row input {
  width: 100%;
  padding: .7rem .85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font: inherit;
}
.admin-main .panel { max-width: 920px; }
.admin-settings .tab-panel { max-width: 920px; }

@media (max-width: 720px) {
  .cms-row { grid-template-columns: 1fr; }
  .admin-save-bar { justify-content: stretch; }
  .admin-save-bar .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .page-enter, .reveal, .tab-panel, .btn, .product-tile { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
