/* =========================================
   MinShopAcc - Dark Gaming Theme
   Palette: bg #070b14, surface #101828/#141d33
   Primary #22d3ee, secondary #a855f7
   Text #e2e8f0 / muted #94a3b8
   ========================================= */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #070b14;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
ul, ol { list-style: none; }

/* ----- Variables ----- */
:root {
  --bg: #070b14;
  --surface: #101828;
  --surface-2: #141d33;
  --surface-3: #1e293b;
  --border: #1e2a44;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #22d3ee;
  --primary-strong: #06b6d4;
  --secondary: #a855f7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 24px rgba(34,211,238,.35), 0 0 48px rgba(168,85,247,.2);
  --header-h: 64px;
}

/* ----- Layout helpers ----- */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}
.section { padding: 56px 0; }
.section--alt { background: #0a1020; border-block: 1px solid var(--border); }
.section__head { text-align: center; margin-bottom: 32px; }
.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.section__desc { color: var(--muted); margin-top: 8px; }

/* ----- Header ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,11,20,.72);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 1.2rem;
}
.logo__accent { color: var(--primary); text-shadow: 0 0 12px rgba(34,211,238,.7); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav__link {
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav__link--cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #06131a;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(34,211,238,.3);
}
.nav__link--cta:hover { color: #06131a; filter: brightness(1.08); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 32px;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% 30% -10%;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(34,211,238,.18), transparent 70%),
    radial-gradient(700px 400px at 80% 30%, rgba(168,85,247,.18), transparent 70%),
    radial-gradient(500px 300px at 50% 90%, rgba(34,211,238,.08), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}
.hero__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.2fr .8fr; }
}
.badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--primary);
  background: rgba(34,211,238,.1);
  border: 1px solid rgba(34,211,238,.22);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero__title {
  margin-top: 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.03em;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; max-width: 60ch; }
.hero__actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.hero__visual { display: grid; place-items: center; }
.hero__card {
  width: min(340px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  transform: rotate(-1deg);
}
.hero__card-banner {
  height: 110px;
  background: linear-gradient(135deg, #22d3ee, #a855f7 60%, #ec4899);
  position: relative;
}
.hero__card-banner::after {
  content: "Thách Đấu ★";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.4rem;
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.hero__card-body { padding: 14px 16px; display: grid; gap: 6px; }
.hero__card-body .price { color: var(--primary); font-weight: 800; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s, background .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #06131a;
  box-shadow: 0 8px 20px rgba(34,211,238,.3);
}
.btn--primary:hover { filter: brightness(1.08); box-shadow: 0 10px 26px rgba(34,211,238,.4); }
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255,255,255,.06); }
.btn--large { padding: 14px 22px; font-size: 1rem; width: 100%; }
.btn--zalo { background: #0084ff; color: #fff; }
.btn--zalo:hover { filter: brightness(1.08); }
.btn--fb { background: #1877f2; color: #fff; }
.btn--tele { background: #229ed9; color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
  filter: grayscale(.2);
}

/* ----- Stats ----- */
.stats { border-block: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 18px 0;
}
@media (min-width: 700px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 10px; }
.stat__number {
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--primary);
  text-shadow: 0 0 14px rgba(34,211,238,.45);
}
.stat__label { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* ----- Filters ----- */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
.filters__row {
  display: grid;
  gap: 12px;
}
@media (min-width: 700px) { .filters__row { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.field input, .field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
}
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34,211,238,.18);
}
.filters__meta { margin-top: 10px; color: var(--muted); font-size: .9rem; }

/* ----- Grid ----- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34,211,238,.3);
  box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 18px rgba(34,211,238,.14);
}
.card--sold { opacity: .72; }
.card__banner {
  height: 132px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.card__banner::after {
  content: attr(data-watermark);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  z-index: 1;
}
.card__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.22));
}
.ribbon {
  position: absolute;
  top: 12px;
  right: -28px;
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .06em;
  padding: 4px 32px;
  transform: rotate(32deg);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  z-index: 2;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.chip--rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.card__body { padding: 14px 14px 12px; display: grid; gap: 8px; flex: 1; }
.card__title {
  font-weight: 800;
  line-height: 1.35;
  font-size: .98rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.card__meta { color: var(--muted); font-size: .9rem; }
.card__note {
  color: #cbd5e1;
  font-size: .86rem;
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.08);
  padding: 6px 8px;
  border-radius: 8px;
}
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.card__price {
  color: var(--primary);
  font-weight: 900;
  font-size: 1.05rem;
  text-shadow: 0 0 12px rgba(34,211,238,.35);
}
.card__btn {
  padding: 8px 14px;
  font-size: .88rem;
  border-radius: 999px;
}

/* Gradient presets for banner */
.grad-0 { background: linear-gradient(135deg, #22d3ee, #0ea5e9); }
.grad-1 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.grad-2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.grad-3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.grad-4 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.grad-5 { background: linear-gradient(135deg, #f97316, #a855f7); }

/* Empty state */
.empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
}
.empty__hint { font-size: .9rem; margin-top: 6px; }

/* ----- Modal ----- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none !important; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3,6,14,.72);
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), var(--shadow-glow);
  animation: popIn .24s cubic-bezier(.16,1,.3,1);
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.modal__banner {
  height: 160px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.95);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: .06em;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.modal__body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.modal__title { font-size: 1.15rem; line-height: 1.35; }
.modal__meta { color: var(--muted); }
.modal__note {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}
.modal__price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal__price { color: var(--primary); font-weight: 900; font-size: 1.25rem; text-shadow: 0 0 10px rgba(34,211,238,.4); }
.modal__id { color: var(--muted); font-size: .85rem; }
.modal__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
@media (max-width: 520px) { .modal__actions { grid-template-columns: 1fr; } }
.modal__help { color: var(--muted); font-size: .8rem; text-align: center; margin-top: 4px; }

/* ----- Features ----- */
.cards-3 {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform .16s, border-color .16s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.22); }
.feature__icon { font-size: 1.6rem; margin-bottom: 8px; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ----- Steps ----- */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step__num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #06131a;
  font-weight: 900;
  border-radius: 999px;
  flex-shrink: 0;
}
.step__content h3 { font-size: 1rem; margin-bottom: 4px; }
.step__content p { color: var(--muted); font-size: .92rem; }

/* ----- FAQ ----- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  transition: transform .2s, background .2s;
}
.faq__item[open] summary::after { content: "−"; background: rgba(34,211,238,.12); color: var(--primary); }
.faq__item p { color: var(--muted); margin-top: 10px; }

/* ----- Contact ----- */
.contact { text-align: center; }
.contact__buttons {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 18px auto 0;
}
.contact__note { color: var(--muted); margin-top: 12px; font-size: .92rem; }

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: #050a16;
  color: var(--muted);
}
.footer__inner { display: grid; gap: 12px; text-align: center; }
.footer__disclaimer { font-size: .82rem; max-width: 70ch; margin-inline: auto; opacity: .9; }

/* ----- Animations ----- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----- Responsive nav ----- */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 12px;
    left: 12px;
    background: rgba(16,24,40,.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
