/* ===================================
   CHEAPEST — DESIGN SYSTEM
   Plus Jakarta Sans + Dark-First UI
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===================================
   1. CSS DESIGN TOKENS
   =================================== */
:root {
  /* Backgrounds */
  --bg:          #08090B;
  --surface:     #101216;
  --card:        #17191E;
  --card-hover:  #1C1F26;

  /* Borders */
  --border:      rgba(255,255,255,0.07);
  --border-md:   rgba(255,255,255,0.12);

  /* Text */
  --text:        #F5F5F5;
  --muted:       #A1A1AA;
  --faint:       #52525B;

  /* Accent — Electric Violet */
  --accent:      #7C3AED;
  --accent-2:    #6D28D9;
  --accent-dim:  rgba(124, 58, 237, 0.12);
  --accent-glow: rgba(124, 58, 237, 0.25);

  /* Semantic */
  --success:     #10B981;
  --success-dim: rgba(16, 185, 129, 0.12);
  --warning:     #F59E0B;
  --warning-dim: rgba(245, 158, 11, 0.12);
  --danger:      #EF4444;
  --danger-dim:  rgba(239, 68, 68, 0.12);
  --info:        #3B82F6;
  --info-dim:    rgba(59, 130, 246, 0.12);

  /* Spacing (used in custom components) */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   14px;
  --radius-xl:   20px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.35);
  --shadow:      0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg:   0 20px 48px rgba(0,0,0,0.6);

  /* Transitions */
  --ease:        0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   2. RESET & BASE
   =================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; transition: color var(--ease); }
a:hover { color: var(--text); }

img { display: block; max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ===================================
   3. LAYOUT UTILITIES
   =================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ===================================
   4. INTERACTIVE COMPONENTS
   =================================== */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled, .btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-md);
  color: var(--text);
}
.btn-secondary:hover {
  background-color: var(--card);
  border-color: var(--border-md);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 0.5rem;
}
.btn-ghost:hover { color: var(--text); background: var(--card); }

.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-xl { padding: 1rem 2rem; font-size: 1.05rem; border-radius: var(--radius-lg); font-weight: 700; }
.btn-full { width: 100%; }

.btn-danger-soft {
  background-color: var(--danger-dim);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--danger);
}
.btn-danger-soft:hover {
  background-color: var(--danger);
  color: #fff;
}

/* --- Inputs --- */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  appearance: none;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.input::placeholder { color: var(--faint); }
.input-lg { padding: 0.95rem 1.25rem; font-size: 1rem; border-radius: var(--radius-lg); }

.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .input {
  border-radius: var(--radius) 0 0 var(--radius);
  flex: 1;
}
.input-group .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: none;
}
.input-group-icon {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--muted);
}
.input-group-icon + .input {
  border-radius: 0 var(--radius) var(--radius) 0;
}

select.input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A1A1AA'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.form-group { margin-bottom: 1.25rem; }

/* --- Cards --- */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-body { padding: 1.5rem; }
.card-hover {
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-md);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.badge-success { background: var(--success-dim); color: var(--success); border-color: rgba(16,185,129,0.25); }
.badge-warning { background: var(--warning-dim); color: var(--warning); border-color: rgba(245,158,11,0.25); }
.badge-danger  { background: var(--danger-dim);  color: var(--danger);  border-color: rgba(239,68,68,0.25); }
.badge-info    { background: var(--info-dim);    color: var(--info);    border-color: rgba(59,130,246,0.25); }
.badge-accent  { background: var(--accent-dim);  color: #a78bfa;        border-color: rgba(124,58,237,0.25); }
.badge-neutral { background: rgba(255,255,255,0.06); color: var(--muted); border-color: var(--border); }

/* --- Divider --- */
.divider { height: 1px; background: var(--border); margin: 1.25rem 0; }
.divider-dashed { height: 1px; border-top: 1px dashed var(--border); margin: 1.25rem 0; }

/* ===================================
   5. NAVIGATION
   =================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,9,11,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--text); }
.nav-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.nav-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  margin-left: 1.5rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  padding: 0.45rem 0.875rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--card); }
.nav-link.active { color: var(--text); background: var(--card); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.05rem;
  transition: all var(--ease);
  text-decoration: none;
}
.nav-icon-btn:hover { color: var(--text); background: var(--card); }

.nav-hamburger {
  display: flex;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--ease);
  margin-bottom: 0.25rem;
}
.mobile-nav-link:hover { color: var(--text); background: var(--card); }
.mobile-nav-link.active { color: var(--text); background: var(--card); }
.mobile-nav-link i { font-size: 1.1rem; }

/* ===================================
   6. FOOTER
   =================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 3.5rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.75rem; }
.footer-desc { color: var(--muted); font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-link {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 0.625rem;
  transition: color var(--ease);
}
.footer-link:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--faint);
  font-size: 0.8rem;
}

/* ===================================
   7. TOAST NOTIFICATION SYSTEM
   =================================== */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 380px;
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.toast.removing {
  animation: toastOut 0.25s ease forwards;
}
.toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.125rem; }
.toast-msg { color: var(--muted); font-size: 0.83rem; }
.toast-close { color: var(--faint); background: none; border: none; cursor: pointer; padding: 0; font-size: 1rem; flex-shrink: 0; transition: color var(--ease); }
.toast-close:hover { color: var(--text); }

.toast-success { border-left: 3px solid var(--success); }
.toast-success .toast-icon { color: var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info    { border-left: 3px solid var(--info); }
.toast-info .toast-icon { color: var(--info); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

/* ===================================
   8. SEARCH MODAL
   =================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  margin: 0 1rem;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* ===================================
   9. SKELETON LOADERS
   =================================== */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===================================
   10. GAME CARDS (HOMEPAGE)
   =================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 480px)  { .games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .games-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .games-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }
@media (min-width: 1280px) { .games-grid { grid-template-columns: repeat(6, 1fr); } }

.game-card {
  display: block;
  text-decoration: none;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--border-md);
}
.game-card-art {
  width: 100%;
  padding-top: 125%;
  position: relative;
  background: var(--surface);
  overflow: hidden;
}
.game-card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.game-card:hover .game-card-art img { transform: scale(1.06); }

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,9,11,0.95) 0%, rgba(8,9,11,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 0.875rem 0.875rem;
}
.game-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.game-card-sub {
  font-size: 0.72rem;
  color: var(--muted);
}
.game-card-arrow {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(8,9,11,0.6);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  opacity: 0;
  transform: translate(4px, -4px) scale(0.8);
  transition: all var(--ease);
}
.game-card:hover .game-card-arrow {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
.game-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--faint);
}

/* ===================================
   11. CHECKOUT PAGE
   =================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
}
@media (min-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1fr 360px;
    gap: 2rem;
  }
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: #a78bfa;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.step-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}

.validation-box {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
}
.validation-loading {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.validation-success {
  background: var(--success-dim);
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--success);
}
.validation-error {
  background: var(--danger-dim);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--danger);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-option { position: relative; cursor: pointer; }
.product-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.product-option-inner {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: all var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.product-option:hover .product-option-inner {
  border-color: var(--border-md);
  background: var(--card);
}
.product-option input:checked + .product-option-inner {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim);
}
.product-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.6rem;
}
.product-option input:checked + .product-option-inner .product-check {
  display: flex;
}
.product-option-name { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.3rem; }
.product-option-price { font-size: 0.8rem; color: var(--muted); }
.product-option input:checked + .product-option-inner .product-option-price {
  color: #a78bfa;
}

/* Payment Options */
.payment-option { position: relative; cursor: pointer; }
.payment-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.payment-option-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--ease);
}
.payment-option:hover .payment-option-inner { border-color: var(--border-md); }
.payment-option input:checked + .payment-option-inner { border-color: var(--accent); background: var(--accent-dim); }
.payment-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-md);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--ease);
}
.payment-option input:checked + .payment-option-inner .payment-radio {
  border-color: var(--accent);
}
.payment-option input:checked + .payment-option-inner .payment-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--accent);
  border-radius: 50%;
}

/* Order Summary (Sticky) */
.order-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.summary-label { color: var(--muted); }
.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.summary-total-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

/* Promo Input */
.promo-input-group {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.promo-input-group .input { font-family: 'Plus Jakarta Sans', monospace; text-transform: uppercase; letter-spacing: 0.05em; }

.promo-result {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
}
.promo-success { background: var(--success-dim); border: 1px solid rgba(16,185,129,0.25); color: var(--success); }
.promo-error   { background: var(--danger-dim);  border: 1px solid rgba(239,68,68,0.25);  color: var(--danger); }

/* Mobile Bottom CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border-md);
  padding: 0.875rem 1.25rem;
  z-index: 50;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}
@media (max-width: 1023px) {
  .mobile-cta { display: flex; }
  .desktop-submit { display: none; }
  body.checkout-page { padding-bottom: 80px; }
}

/* ===================================
   12. ORDER TIMELINE
   =================================== */
.timeline {
  position: relative;
  padding-left: 2.25rem;
  margin: 1.5rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-step {
  position: relative;
  margin-bottom: 1.75rem;
}
.timeline-step:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.25rem;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  transition: all 0.3s ease;
  z-index: 1;
}
.timeline-step.completed .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  color: white;
}
.timeline-step.active .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-glow);
  animation: pulse-dot 2s infinite;
  color: white;
}
.timeline-step.failed .timeline-dot {
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-dim);
  color: white;
}
.timeline-step-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.timeline-step.completed .timeline-step-title,
.timeline-step.active .timeline-step-title {
  color: var(--text);
}
.timeline-step.failed .timeline-step-title { color: var(--danger); }
.timeline-step-desc { font-size: 0.8rem; color: var(--faint); }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px rgba(124,58,237,0.1); }
}

/* ===================================
   13. ADMIN LAYOUT
   =================================== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--ease);
}
.admin-sidebar.mobile-hidden { transform: translateX(-100%); }

@media (max-width: 1023px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.admin-brand:hover { color: var(--text); }
.admin-brand-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

.admin-nav { padding: 1rem 0.75rem; flex: 1; overflow-y: auto; }

.admin-nav-section-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding: 0.625rem 0.75rem 0.375rem;
  margin-top: 0.5rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--ease);
  margin-bottom: 0.2rem;
}
.admin-nav-link:hover { color: var(--text); background: var(--card); }
.admin-nav-link.active { color: var(--text); background: var(--card); border-left: 2.5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.admin-nav-link i { font-size: 1rem; flex-shrink: 0; }

.admin-sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.admin-main {
  flex: 1;
  margin-left: 256px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
@media (max-width: 1023px) { .admin-main { margin-left: 0; } }

.admin-topbar {
  height: 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 90;
  flex-shrink: 0;
}

.admin-content { padding: 1.75rem; flex: 1; }

/* Admin Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table thead th {
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface);
}
.data-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr { transition: background var(--ease); }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Filter Bar */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 0.375rem; min-width: 160px; flex: 1; }
.filter-group label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.filter-actions { display: flex; gap: 0.5rem; align-items: flex-end; }

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-title { font-size: 1.25rem; font-weight: 700; margin: 0; }
.page-subtitle { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }

/* Stat Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px)  { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .stat-grid { grid-template-columns: repeat(5, 1fr); } }

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all var(--ease);
}
.stat-card:hover { border-color: var(--border-md); }
.stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.875rem;
}
.stat-value { font-size: 1.625rem; font-weight: 800; line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }

.stat-accent  .stat-icon { background: var(--accent-dim); color: #a78bfa; }
.stat-success .stat-icon { background: var(--success-dim); color: var(--success); }
.stat-warning .stat-icon { background: var(--warning-dim); color: var(--warning); }
.stat-danger  .stat-icon { background: var(--danger-dim);  color: var(--danger); }
.stat-info    .stat-icon { background: var(--info-dim);    color: var(--info); }
.stat-neutral .stat-icon { background: rgba(255,255,255,0.06); color: var(--muted); }

/* ===================================
   14. MISC UTILITIES
   =================================== */
.text-muted  { color: var(--muted); }
.text-faint  { color: var(--faint); }
.text-accent { color: #a78bfa; }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info    { color: var(--info); }
.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.78rem; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; letter-spacing: 0.07em; }
.mono { font-family: 'Plus Jakarta Sans', ui-monospace, monospace; }

.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.w-full { width: 100%; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.p-4  { padding: 1rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }

.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }

.hidden { display: none !important; }
.block  { display: block; }
.inline-flex { display: inline-flex; }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-sm { width: 12px; height: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color var(--ease); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--faint); }
.breadcrumb-current { color: var(--text); }

/* Alert banners */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.alert-success { background: var(--success-dim); border: 1px solid rgba(16,185,129,0.3); color: var(--success); }
.alert-error   { background: var(--danger-dim);  border: 1px solid rgba(239,68,68,0.3);  color: var(--danger); }
.alert-warning { background: var(--warning-dim); border: 1px solid rgba(245,158,11,0.3); color: var(--warning); }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 0.375rem; padding: 1rem; }
.pagination .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all var(--ease);
  background: transparent;
  border: 1px solid transparent;
}
.pagination .page-link:hover { color: var(--text); background: var(--card); }
.pagination .page-link.active { background: var(--accent); color: white; border-color: var(--accent); }
.pagination .page-link.disabled { opacity: 0.4; pointer-events: none; }

/* Hero */
.hero-section {
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 9999px;
  padding: 0.3rem 0.875rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Hero Search */
.hero-search {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.hero-search .input {
  background: var(--card);
  border: 1.5px solid var(--border-md);
  box-shadow: var(--shadow);
  padding-left: 3rem;
  font-size: 0.95rem;
}
.hero-search .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow);
}
.hero-search-icon {
  position: absolute;
  left: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #a78bfa;
  margin: 0 auto 1rem;
}
.feature-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.375rem; }
.feature-desc  { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* How It Works Steps */
.how-steps { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }

.how-step {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.875rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.how-step-num {
  font-size: 2rem; font-weight: 800;
  color: var(--accent-dim);
  line-height: 1;
}
.how-step-title { font-size: 0.95rem; font-weight: 700; }
.how-step-desc  { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* Promo Cards */
.promo-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }

.promo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
}
.promo-code-display {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.promo-value { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.25rem; }
.promo-desc  { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; }
.promo-meta  { font-size: 0.75rem; color: var(--faint); }

/* Order Receipt */
.receipt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.receipt-header {
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.receipt-body { padding: 1.75rem; }
.receipt-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 0.9rem; margin-bottom: 0.875rem; gap: 1rem;
}
.receipt-row-label { color: var(--muted); flex-shrink: 0; }
.receipt-row-value { font-weight: 500; text-align: right; }
.receipt-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem; border-top: 1px solid var(--border); margin-top: 0.5rem;
}
.receipt-total-amount { font-size: 1.75rem; font-weight: 800; }

/* Status Icon */
.status-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}
.status-icon-success { background: var(--success-dim); color: var(--success); }
.status-icon-pending { background: var(--warning-dim); color: var(--warning); }
.status-icon-failed  { background: var(--danger-dim);  color: var(--danger); }

/* Game Banner on Checkout */
.game-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.game-banner-art {
  width: 80px; height: 80px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.game-banner-placeholder {
  width: 80px; height: 80px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: var(--faint);
  flex-shrink: 0;
}
.game-banner-title  { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.2rem; }
.game-banner-sub    { font-size: 0.85rem; color: var(--muted); }

/* Section headers */
.section-header { margin-bottom: 2rem; }
.section-title  { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.375rem; }
.section-subtitle { font-size: 0.875rem; color: var(--muted); }

/* Empty state */
.empty-state {
  text-align: center; padding: 3rem 1.5rem;
  color: var(--muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; color: var(--faint); }
.empty-title { font-weight: 600; margin-bottom: 0.375rem; color: var(--text); }
.empty-desc  { font-size: 0.875rem; }

/* Game detail page - fields */
.fields-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 480px) { .fields-grid { grid-template-columns: repeat(2, 1fr); } }
