/* ==========================================================================
   UC BAZZAR — dark + gold/yellow gaming theme
   ========================================================================== */

:root {
  --bg:          #07070a;
  --bg-soft:     #100f0c;
  --panel:       rgba(22, 20, 12, 0.86);
  --panel-2:     rgba(28, 25, 14, 0.9);
  --line:        rgba(250, 204, 21, 0.18);
  --line-strong: rgba(250, 204, 21, 0.45);
  --text:        #fffdf5;
  --muted:       rgba(255, 250, 230, 0.62);
  --gold-1:      #ffe680;
  --gold-2:      #facc15;
  --gold-3:      #f59e0b;
  --grad:        linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%);
  --radius:      18px;
  --shadow:      0 18px 40px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient yellow glow behind everything */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(250, 204, 21, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(250, 204, 21, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0d 0%, var(--bg) 45%, #0a0908 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.2; font-weight: 800; }
p { margin: 0 0 10px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 14px; }
.tiny { font-size: 12.5px; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================== HEADER =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--line-strong);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.35);
}
.brand-name { font-size: 19px; font-weight: 900; letter-spacing: 0.5px; white-space: nowrap; }
@media (max-width: 359px) {
  .brand-name { font-size: 15.5px; }
  .brand-logo { width: 34px; height: 34px; }
  .header-inner { height: 58px; }
}
.brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.site-nav { display: flex; align-items: center; gap: 20px; font-size: 14.5px; font-weight: 600; }
.site-nav a { color: var(--muted); transition: color 0.2s; }
.site-nav a:hover { color: var(--gold-2); }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--gold-2); border-radius: 2px; }

/* =========================== HERO =========================== */
.hero { padding: 44px 0 8px; text-align: center; }
.hero-logo {
  width: 118px; height: 118px; margin: 0 auto 18px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--line-strong);
  box-shadow: 0 0 45px rgba(250, 204, 21, 0.45);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-title {
  font-size: clamp(38px, 11vw, 68px);
  font-weight: 900;
  letter-spacing: 1px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(250, 204, 21, 0.28));
}
.hero-sub { font-size: clamp(16px, 4.4vw, 22px); font-weight: 700; color: #fdf6dd; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0 22px; }
.pill {
  font-size: 13.5px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid var(--line);
  color: var(--gold-1);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 8px;
}
@media (max-width: 359px) {
  .stats { gap: 8px; }
}
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 8px;
}
.stat b { display: block; font-size: 19px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 12px; color: var(--muted); }

/* =========================== CARDS =========================== */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 18px 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.card-title { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.card-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* game select */
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.game-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel-2);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer; text-align: left;
  color: inherit; font: inherit;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.game-card.active {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.35), 0 0 28px rgba(250, 204, 21, 0.25);
}
.game-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.game-card .gc-name { font-weight: 800; font-size: 15.5px; }
.game-card .gc-tag { font-size: 12.5px; color: var(--muted); }

/* form */
.field-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--gold-1); margin: 14px 0 6px; }
.input {
  width: 100%;
  background: #0d0c08;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--text); font-family: inherit; font-size: 15px; font-weight: 600;
  outline: none; transition: border-color 0.18s, box-shadow 0.18s;
}
.id-field { display: flex; gap: 8px; align-items: stretch; }
.id-field .input { flex: 1; }
.paste-btn { flex: 0 0 auto; font-size: 13px; padding: 0 14px; white-space: nowrap; }
.paste-btn:active { transform: scale(0.97); }

.input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18); }
.input.invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
/* player ID reached 8–12 digits */
.input.valid { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.input.valid:focus { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22); }
select.input { appearance: none; cursor: pointer; }
.note {
  font-size: 12.8px; color: var(--muted);
  margin: 12px 0; padding: 10px 12px;
  background: rgba(250, 204, 21, 0.06);
  border-left: 3px solid var(--gold-3);
  border-radius: 8px;
}

/* buttons */
.btn {
  display: block; width: 100%;
  border: 0; border-radius: 12px;
  padding: 14px 18px;
  font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: 0.4px;
  cursor: pointer; transition: transform 0.15s, filter 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.99); }
.btn-primary {
  background: var(--grad);
  color: #1a1206;
  box-shadow: 0 10px 26px rgba(250, 204, 21, 0.28);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.07); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  margin-top: 6px;
  background: rgba(250, 204, 21, 0.09);
  color: var(--gold-1);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--line-strong); }

/* packages */
.game-hint { font-size: 13.5px; color: var(--muted); }
.pack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.pack-card {
  position: relative;
  background: var(--panel-2);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center; cursor: pointer;
  color: inherit; font: inherit;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.pack-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.pack-card.active {
  border-color: var(--gold-2);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.14), rgba(250, 204, 21, 0.03));
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.3), 0 0 26px rgba(250, 204, 21, 0.2);
}
.pack-card img { width: 46px; height: 46px; margin: 0 auto 8px; object-fit: contain; }
.pack-card .pk-name { font-weight: 800; font-size: 14.5px; }
.pack-card .pk-price { font-size: 18px; font-weight: 900; margin-top: 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pack-card .pk-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.pack-tag {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--grad); color: #1a1206; white-space: nowrap;
}

/* summary */
.summary { border-color: var(--line-strong); background: linear-gradient(160deg, rgba(250, 204, 21, 0.06), rgba(20, 18, 10, 0.92)); }
.summary-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; }
.summary-game { color: var(--gold-1); }
.secure { color: var(--muted); }
.summary-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin: 14px 0 18px; }
.sum-pack { font-size: 17px; font-weight: 800; }
.sum-total-wrap { text-align: right; }
.sum-total { font-size: 34px; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* =========================== SECTIONS =========================== */
.section { margin: 46px auto; }
.section-title { text-align: center; font-size: clamp(24px, 6.5vw, 34px); font-weight: 900; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.feature { margin: 0; }
.feature .ico { font-size: 26px; }
.feature h3 { font-size: 16.5px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }
.quote p { font-size: 14.5px; color: var(--text); font-style: italic; }
.quote .who { font-size: 13px; color: var(--gold-2); font-weight: 700; display: block; }
.quote .src {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
  margin-top: 5px; align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}
.src-instagram { color: #f0abfc; border-color: rgba(240, 171, 252, 0.35); }
.src-youtube { color: #fca5a5; border-color: rgba(252, 165, 165, 0.35); }
.src-telegram { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.35); }
.src-whatsapp { color: #86efac; border-color: rgba(134, 239, 172, 0.35); }

/* horizontally scrolling review columns */
.reviews-scroller {
  margin-top: 18px;
  overflow-x: auto;
  /* no scroll-snap: it fights the continuous auto-scroll and jumps back */
  scroll-snap-type: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.reviews-scroller::-webkit-scrollbar { height: 6px; }
.reviews-scroller::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 320px);
  gap: 12px;
  padding: 4px 4px 8px;
}
.reviews-track .quote {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 160px;
  margin: 0;
}
@media (min-width: 761px) {
  .reviews-track { grid-auto-columns: min(360px, 30%); }
}

.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 15px 20px; font-weight: 700; font-size: 15px;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; color: var(--gold-2); font-weight: 900; }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { padding: 0 20px 16px; margin: 0; color: var(--muted); font-size: 14px; }

/* =========================== FOOTER =========================== */
.site-footer { border-top: 1px solid var(--line); background: rgba(8, 8, 10, 0.9); margin-top: 40px; padding: 34px 0 18px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand p { max-width: 320px; }
.footer-col h4 { font-size: 14px; color: var(--gold-1); text-transform: uppercase; letter-spacing: 0.6px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); padding: 3px 0; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 26px; padding-top: 14px;
  font-size: 13px; color: var(--muted);
}
.tag-row { display: flex; gap: 14px; }
.tag-row em { font-style: normal; }

/* =========================== MODAL =========================== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 5, 0.78); backdrop-filter: blur(4px); }
.modal-card {
  position: relative;
  max-width: 440px; width: calc(100% - 24px);
  max-height: 92vh; overflow-y: auto;
  margin: 4vh auto; padding: 22px;
  background: linear-gradient(170deg, #1b1810 0%, #100f0a 100%);
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: pop 0.25s ease-out;
}
@keyframes pop { from { transform: translateY(14px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: rgba(250, 204, 21, 0.1); border: 1px solid var(--line);
  color: var(--gold-1); width: 32px; height: 32px; border-radius: 50%;
  font-size: 15px; cursor: pointer;
}
.modal-title { font-size: 20px; text-align: center; }
.modal-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  background: rgba(250, 204, 21, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 16px;
}
.qr-box {
  background: #fff; border-radius: 16px; padding: 12px;
  width: 240px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  min-height: 240px;
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.14);
}
.qr-box img { width: 216px; height: 216px; object-fit: contain; }
.qr-fallback { color: #333; font-size: 12px; text-align: center; }
.qr-fallback p { margin-bottom: 8px; }
.qr-fallback code { word-break: break-all; font-size: 11px; }

.upi-line { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; margin: 6px 0; }
.mini-btn {
  background: rgba(250, 204, 21, 0.12); border: 1px solid var(--line);
  color: var(--gold-1); font-family: inherit; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.app-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 10px; }
.app-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 800;
  padding: 10px 8px; border-radius: 12px;
  background: rgba(250, 204, 21, 0.1);
  border: 1.5px solid var(--line);
  color: var(--gold-1);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.mail-link { color: var(--gold-2); text-decoration: underline; word-break: break-all; }

.app-btn img {
  width: 30px; height: 30px; flex: 0 0 auto;
  object-fit: contain;
  background: #fff;
  border-radius: 7px;
  padding: 3px;
}
.app-btn:hover { border-color: var(--line-strong); box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.22); }
.app-btn:active { transform: scale(0.98); }

/* payment note line inside the payment modal */
.pay-note-line {
  text-align: center; font-size: 12.8px; font-weight: 700;
  color: var(--muted); margin: 10px 0 4px; word-break: break-word;
}
.pay-note-line b { color: var(--gold-1); font-weight: 800; }

/* ==================== PLAYER ID VERIFY POPUP ==================== */
/* this popup sits in the exact middle of the screen (payment modal stays top) */
#verifyModal.open {
  display: grid;
  place-items: center;      /* centering without transform, so the pop-in cannot shift it */
  padding: 16px;
  overflow-y: auto;
}
#verifyModal .verify-card {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 370px;
  max-height: 88vh;
  overflow-y: auto;
  text-align: center;
  animation: verifyIn 0.2s ease-out;
  align-self: center;
  justify-self: center;
}
@keyframes verifyIn { from { opacity: 0; } to { opacity: 1; } }
.verify-ico { font-size: 46px; line-height: 1; margin: 6px 0 12px; }
.verify-title { font-size: 19px; margin: 0 0 8px; }
.verify-msg { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.verify-msg b { color: var(--gold-1); word-break: break-all; }
#verifyModal.ok .verify-title { color: #86efac; }
#verifyModal.bad .verify-title { color: #fca5a5; }
#verifyModal.bad .verify-card { border-color: rgba(239, 68, 68, 0.45); }
#verifyModal .btn { width: 100%; margin-top: 0; }
#verifyModal .modal-close { position: absolute; }

.toast-wrap { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: 92vw; }
.toast {
  background: linear-gradient(135deg, #1d1a10, #12100a);
  border: 1px solid var(--line-strong);
  color: var(--gold-1);
  padding: 11px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700;
  box-shadow: var(--shadow);
  animation: toastIn 0.22s ease-out;
}
.toast.err { border-color: rgba(239, 68, 68, 0.6); color: #fca5a5; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* =========================== PAYMENT HISTORY =========================== */
.history-list { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.history-empty { text-align: center; color: var(--muted); margin: 0; }
.history-item { margin: 0; }
.h-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.h-pack { font-weight: 800; font-size: 15.5px; }
.h-amount { font-size: 18px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-side { text-align: right; }
.h-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-top: 4px; }

/* banner shown right after the customer pays — payment is verifying, not done */
.paid-banner {
  display: flex; align-items: center; gap: 12px;
  max-width: 640px; margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(250, 204, 21, 0.05));
  border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 14px 16px;
  animation: pop 0.3s ease-out;
}
.paid-banner .pb-ico { font-size: 26px; }
.paid-banner b { color: var(--gold-1); }
.paid-banner span { font-size: 13.5px; color: rgba(255, 250, 230, 0.8); display: block; }
.paid-banner.fade-out { opacity: 0; transform: translateY(-8px); transition: opacity 0.6s, transform 0.6s; }
.paid-banner.hidden { display: none; }

/* stats strip on history page */
.hist-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 640px; margin: 0 auto 30px; }
.hist-stats.hidden { display: none; }
.hs { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.hs b { display: block; font-size: 20px; font-weight: 900; color: var(--text); }
.hs span { font-size: 11px; color: var(--muted); }
.hs-verifying { border-color: var(--line-strong); }
.hs-verifying b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-delivered { border-color: rgba(34, 197, 94, 0.35); }
.hs-delivered b { color: #86efac; }
.hs-failed { border-color: rgba(239, 68, 68, 0.35); }
.hs-failed b { color: #fca5a5; }
@media (max-width: 420px) {
  .hist-stats { grid-template-columns: repeat(2, 1fr); }
}
.st-verifying { background: rgba(250, 204, 21, 0.12); color: var(--gold-1); border: 1px solid var(--line-strong); }
.st-delivered { background: rgba(34, 197, 94, 0.14); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.4); }
.st-failed { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }

/* reset option on the history page */
.hist-actions { display: flex; justify-content: center; margin: 0 auto 34px; max-width: 640px; }
.hist-actions.hidden { display: none; }
.btn-reset {
  background: transparent; border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5; font-family: inherit; font-weight: 800;
  font-size: 13.5px; padding: 10px 20px; border-radius: 999px; cursor: pointer;
}
.btn-reset:hover { background: rgba(239, 68, 68, 0.12); }
.history-item.st-verifying { border-color: var(--line-strong); }
.history-item.st-failed { border-color: rgba(239, 68, 68, 0.35); }
.history-item.st-delivered { border-color: rgba(34, 197, 94, 0.3); }
.h-help { margin: 10px 0 0; font-size: 13px; color: #fca5a5; }

/* =========================== FEEDBACK FORM =========================== */
.feedback-card { margin-top: 18px; }
.feedback-card h3 { font-size: 17px; margin-bottom: 12px; }
.fb-row { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.fb-row .input { flex: 1; min-width: 160px; }
.fb-stars { display: flex; gap: 2px; }
.fb-stars label { cursor: pointer; font-size: 22px; color: var(--gold-3); display: flex; align-items: center; }
.fb-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* star rating (works even on old browsers without :has) */
.fb-stars label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-stars label.sel { color: var(--gold-2); text-shadow: 0 0 12px rgba(250, 204, 21, 0.7); }
.fb-stars label.dim { color: rgba(245, 158, 11, 0.35); }
.fb-stars input:checked + span,
.fb-stars label.on span { color: var(--gold-2); }
.fb-stars label:hover { transform: scale(1.15); }
#fbText { resize: vertical; margin-bottom: 10px; min-height: 44px; }
.quote .stars { display: block; color: var(--gold-2); font-size: 13px; letter-spacing: 2px; margin: 6px 0 2px; }

/* =========================== LEGAL PAGES =========================== */
.page-head { padding: 40px 0 6px; text-align: center; }
.page-head h1 { font-size: clamp(28px, 8vw, 42px); font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--muted); }
.prose h2 { font-size: 18px; margin-top: 22px; color: var(--gold-1); }
.prose p, .prose li { color: rgba(255, 250, 230, 0.78); font-size: 14.6px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--gold-2); text-decoration: underline; }
.prose a.btn { color: #1a1206; text-decoration: none; }

/* single Home button shown top-right on secondary pages */
.home-btn {
  flex: 0 0 auto;
  font-size: 13.5px; font-weight: 800;
  padding: 8px 18px; border-radius: 999px;
  background: var(--grad); color: #1a1206;
  white-space: nowrap;
}
.home-btn:hover { filter: brightness(1.08); }
@media (max-width: 379px) {
  .home-btn { font-size: 12.5px; padding: 7px 14px; }
  .brand-name { font-size: 14.5px; }
  .brand-logo { width: 30px; height: 30px; }
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav:not(.static) {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(10, 10, 12, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    display: none;
  }
  .site-nav:not(.static).open { display: flex; }
  .site-nav:not(.static) a { padding: 10px 0; border-bottom: 1px solid rgba(250, 204, 21, 0.08); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .pack-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .game-card { flex-direction: column; text-align: center; gap: 8px; }
  .card { padding: 16px; }
}

/* very old / tiny phones (iPhone SE 1st gen, 320px Androids) */
@media (max-width: 359px) {
  html { font-size: 14px; }
  .wrap { padding: 0 10px; }
  .card { padding: 12px; border-radius: 14px; }
  .hero { padding-top: 28px; }
  .hero-logo { width: 92px; height: 92px; }
  .stats { gap: 8px; }
  .stat { padding: 9px 4px; border-radius: 11px; }
  .stat b { font-size: 16px; }
  .stat span { font-size: 10.5px; }
  .badge-row { gap: 6px; }
  .pill { font-size: 11.5px; padding: 6px 10px; }
  .pack-grid { gap: 8px; }
  .pack-card { padding: 12px 6px; }
  .pack-card .pk-price { font-size: 15.5px; }
  .game-card img { width: 46px; height: 46px; }
  .id-field { flex-wrap: wrap; }
  .paste-btn { flex: 1 0 100%; padding: 10px; }
  .app-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .app-btn { font-size: 12.5px; }
  .app-btn img { width: 24px; height: 24px; }
  .sum-total { font-size: 28px; }
  .modal-card { padding: 16px; }
  .qr-box { width: 200px; min-height: 200px; }
  .qr-box img { width: 180px; height: 180px; }
  .footer-inner { grid-template-columns: 1fr; }
  .btn { font-size: 13.5px; padding: 12px 12px; }
}

/* phones + small tablets in landscape where height is tight */
@media (max-height: 420px) and (orientation: landscape) {
  .hero { padding: 14px 0 4px; }
  .hero-logo { width: 64px; height: 64px; margin-bottom: 8px; }
  .hero-title { font-size: 30px; }
  .stats { display: none; }
}

/* very large screens keep the store readable, not stretched */
@media (min-width: 1600px) {
  .wrap { max-width: 1240px; }
}

/* foldables / tall phones with notches */
@supports (padding: max(0px)) {
  .site-header { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .toast-wrap { bottom: max(22px, env(safe-area-inset-bottom)); }
  .modal-card { margin-bottom: max(4vh, env(safe-area-inset-bottom)); }
}

/* pinch-zoom stays available for accessibility on every device */
@media (pointer: coarse) {
  .input, .btn, .mini-btn, .app-btn, .pack-card, .game-card { min-height: 44px; }
  .faq-item summary { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
