:root {
  --bg: #0e1015;
  --bg-raised: #151820;
  --bg-card: #1a1e28;
  --bg-input: #222838;
  --text: #e8e9ee;
  --text-muted: #7e8294;
  --text-heading: #f4f4f8;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.22);
  --accent-soft: rgba(59, 130, 246, 0.08);
  --success: #00c853;
  --danger: #ff5252;
  --warning: #ffab00;
  --border: #262a3a;
  --border-subtle: #1e2230;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.18);
  --shadow: 0 4px 24px rgba(0,0,0,0.32);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
}

:root[data-theme="light"] {
  --bg: #f7f8fa;
  --bg-raised: #f0f1f4;
  --bg-card: #ffffff;
  --bg-input: #edf0f4;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-heading: #111111;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-glow: rgba(29, 78, 216, 0.15);
  --accent-soft: rgba(29, 78, 216, 0.06);
  --border: #d1d5db;
  --border-subtle: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f8fa;
    --bg-raised: #f0f1f4;
    --bg-card: #ffffff;
    --bg-input: #edf0f4;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --text-heading: #111111;
    --accent: #1d4ed8;
    --accent-hover: #1e40af;
    --accent-glow: rgba(29, 78, 216, 0.15);
    --accent-soft: rgba(29, 78, 216, 0.06);
    --border: #d1d5db;
    --border-subtle: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  }
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  line-height: 1.5;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.8; }

.header-search {
  flex: 1;
  min-width: 0;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: var(--bg-input);
  border: none;
  border-radius: 20px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  transition: background 0.3s, box-shadow 0.3s;
}

.header-search input:focus {
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.header-search input::placeholder { color: var(--text-muted); }

.header-search .search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.25s, opacity 0.25s, transform 0.2s;
  min-width: 52px;
  opacity: 0.75;
}

.header-action:hover {
  background: var(--bg-input);
  opacity: 1;
  transform: translateY(-1px);
}

.ha-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--text);
  transition: color 0.25s;
}

.ha-icon svg { display: block; }

.ha-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
  text-align: center;
  line-height: 1.2;
  transition: color 0.25s;
}

.header-action:hover .ha-label { color: var(--text); }

/* ========== SHARED CONTAINER ========== */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

main.container { padding-top: 16px; padding-bottom: 48px; }

/* ========== HERO CAROUSEL ========== */
.hero-carousel {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  margin-top: 16px;
  cursor: grab;
}

.hero-carousel.dragging { cursor: grabbing; }

.carousel-track {
  display: flex;
  gap: 16px;
}

.carousel-slide {
  width: 82%;
  flex-shrink: 0;
  border-radius: var(--radius);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 50vh;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}


.slide-0 { background: url("/static/hero_1.png") center / cover no-repeat; }
.slide-1 { background: url("/static/hero_2.png") center / cover no-repeat; }
.slide-2 { background: url("/static/hero_3.png") center / cover no-repeat; }

.carousel-slide[data-game] { cursor: pointer; }

/* Suppress slide artwork when placeholders are active */
body.placeholders .slide-0,
body.placeholders .slide-1,
body.placeholders .slide-2 { background-image: none; background-color: var(--accent); }

/* ========== IMAGE PLACEHOLDERS ========== */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active { background: var(--accent); transform: scale(1.25); }

/* ========== SECTION HEADINGS ========== */
.section-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading .badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

/* ========== GAME CARDS ========== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s;
}

.game-card:hover img { transform: scale(1.04); }

.game-card-body {
  padding: 14px 16px;
}

.game-card-body .game-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.game-card-body .game-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.game-card-body .game-arrow {
  position: absolute;
  right: 14px;
  bottom: 16px;
  color: var(--accent);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.game-card:hover .game-arrow { opacity: 1; transform: translateX(2px); }

/* ========== GAME NAV STRIP ========== */
.game-nav {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 36px;
  padding: 8px 0 14px;
}

.game-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.game-nav-img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}

.game-nav-card:hover .game-nav-img {
  transform: scale(1.08);
  box-shadow: var(--shadow-sm);
}

.game-nav-card--soon {
  cursor: default;
  opacity: 0.55;
}

.game-nav-card--soon:hover .game-nav-img {
  transform: none;
  box-shadow: none;
}

.soon-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-left: 3px;
}

.game-nav-img img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.game-nav-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 80px;
}

/* ========== FILTER CHIPS ========== */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-chip {
  padding: 10px 22px;
  background: var(--bg-input);
  border: none;
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.filter-chip:hover { background: var(--bg-card); color: var(--text); }
.filter-chip.active { background: var(--accent); color: #fff; }

.chip-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  border-radius: 4px;
}

.chip-icon-svg {
  width: 16px;
  height: 16px;
}

/* ========== POPULAR PRODUCTS ========== */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.pop-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pop-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.pop-card:hover .pop-card-img img { transform: scale(1.08); }

.pop-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pop-fire-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3px;
}

.pop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pop-card .pop-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
}

.pop-card .pop-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.pop-card .pop-game {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pop-card .pop-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: auto;
}

/* ========== PRODUCT LIST (game sub-page) ========== */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
}

.back-btn {
  background: var(--bg-input);
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.95rem;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  transition: background 0.2s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.back-btn:hover { background: var(--accent-glow); }

.product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.product-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  transform: translateX(3px);
}

.product-title { font-weight: 500; font-size: 0.95rem; }

.product-price {
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  font-size: 1rem;
}

/* ========== CHECKOUT ========== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}

.checkout-product {
  overflow: hidden;
  align-self: start;
}

.checkout-img {
  width: 100%;
  aspect-ratio: 8/5;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-input) 0%, var(--bg-raised) 100%);
}

.checkout-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-game-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 10px;
}

.checkout-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 16px;
}

.checkout-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}

.checkout-form-divider {
  border-top: 1px solid var(--border-subtle);
  margin: 14px 0;
}

.checkout-form {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
}

.checkout-form .form-group { margin-bottom: 16px; }
.checkout-form .form-group label { margin-bottom: 4px; font-size: 0.72rem; }
.checkout-form .form-group input { padding: 10px 14px; font-size: 0.9rem; }
.checkout-form .btn { padding: 11px 14px; font-size: 0.9rem; }

.privacy-note {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

.checkout-how {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px 28px;
  margin-top: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.checkout-how h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 14px;
}

.checkout-how ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-how ol li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.checkout-support {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.checkout-support a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.checkout-support a:hover { text-decoration: underline; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-group input {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-input);
  border: none;
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: background 0.25s, box-shadow 0.25s;
}

.form-group input:focus { background: var(--bg-raised); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group input.error { box-shadow: 0 0 0 2px var(--danger); }

.error-text { color: var(--danger); font-size: 0.78rem; margin-top: 5px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, opacity 0.2s, transform 0.1s, box-shadow 0.25s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover { background: var(--bg-input); }
.btn-outline:disabled { opacity: 0.45; cursor: not-allowed; }

/* ========== STATUS / PAYMENT / CODE ========== */
.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 40px auto 0;
}

.status-card h2 { font-size: 1.2rem; margin-bottom: 12px; color: var(--text-heading); }
.status-card p { color: var(--text-muted); margin-bottom: 18px; line-height: 1.55; }

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.code-input { display: flex; gap: 8px; margin-bottom: 16px; }

.code-input input {
  flex: 1;
  padding: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 6px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.code-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.attempts-info { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 14px; }
.resend-row { display: flex; justify-content: center; margin-top: 14px; }

.success-icon { font-size: 3.5rem; margin-bottom: 14px; }

.message-bar {
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.message-bar.error {
  background: rgba(255, 82, 82, 0.08);
  color: var(--danger);
  border: 1px solid rgba(255, 82, 82, 0.18);
}

.message-bar.info {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}

/* ========== SHOW MORE ========== */
.btn-show-more {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-show-more:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-raised);
  padding: 28px 0;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-col p, .footer-col a {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-decoration: none;
}

.footer-col a { display: block; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.payment-methods {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pay-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-muted);
}

/* ========== AUTH FORMS ========== */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 420px;
  margin: 40px auto 0;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-bottom: 20px;
  text-align: center;
}

.auth-card .form-group { margin-bottom: 14px; }

.auth-card .auth-toggle {
  text-align: center;
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.auth-card .auth-toggle a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.auth-card .auth-toggle a:hover { text-decoration: underline; }

/* ========== ACCOUNT VIEW ========== */
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.account-header .account-email {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
}

.account-header .btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.account-header .btn-logout:hover { background: var(--bg-input); color: var(--danger); }

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.orders-table td {
  padding: 12px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
}

.orders-table tr:hover td { background: var(--accent-soft); }

.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.completed { background: rgba(0,200,83,0.12); color: var(--success); }
.status-badge.pending { background: rgba(255,171,0,0.12); color: var(--warning); }
.status-badge.failed { background: rgba(255,82,82,0.1); color: var(--danger); }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== REVIEWS ========== */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-author {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-heading);
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .games-grid { grid-template-columns: 1fr; }
  .popular-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .carousel-slide { width: 90%; padding: 32px 20px; min-height: 40vh; }
  .header-search { max-width: 200px; }
  .header-action { padding: 4px 6px; min-width: 44px; }
  .ha-label { max-width: 56px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-img { height: 260px; }
  .checkout-form { padding: 24px 20px; }
  .checkout-how { padding: 20px; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .orders-table th, .orders-table td { padding: 8px 6px; font-size: 0.78rem; }
  .auth-card { margin: 20px auto 0; padding: 24px 18px; }
}

@media (max-width: 380px) {
  .popular-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .ha-label { display: none; }
  .header-action { min-width: 36px; padding: 4px; }
}

.hidden { display: none !important; }
