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

:root {
  --bg: #f4f6fa;
  --bg-secondary: #eef1f6;
  --card: #ffffff;
  --card-hover: #f8faff;
  --border: #e4e8f0;
  --border-strong: #d3d9e6;
  --text: #1a2233;
  --text-secondary: #5b6478;
  --text-muted: #8a93a8;
  --primary: #1479ff;
  --primary-dark: #0b5adb;
  --primary-light: #eaf2ff;
  --primary-glow: rgba(20, 121, 255, 0.16);
  --danger: #ff5b5b;
  --danger-light: #fff0f0;
  --success: #00a651;
  --success-light: #e7f9f0;
  --warning: #ff9600;
  --warning-light: #fff6e8;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c7cede; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #aab4c8; }

/* ========== CONTAINER & UTILITIES ========== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.section-link:hover { color: var(--primary-dark); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-secondary); color: var(--text); }

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover { filter: brightness(0.95); transform: translateY(-1px); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { filter: brightness(0.95); }

.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #4facff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}
.nav-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo-text span { color: var(--primary); }

.nav-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}
.nav-search input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.62rem 1rem 0.62rem 2.6rem;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.nav-search input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  transition: var(--transition);
}
.cart-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 50px;
  min-width: 18px;
  text-align: center;
}

.btn-login {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: 12px;
  padding: 0.55rem 1.2rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-login:hover { background: #d8e8ff; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text);
  cursor: pointer;
}

/* ========== CATEGORY FILTER TABS ========== */
.filter-bar {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}
.filter-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 20px;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  background: var(--bg-secondary);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-family: inherit;
}
.filter-tab:hover { background: var(--primary-light); color: var(--primary); }
.filter-tab.active {
  background: var(--text);
  color: #fff;
}

/* ========== HERO / FEATURED ========== */
.hero {
  padding-top: 2.2rem;
}
.hero-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(120deg, #0b5adb 0%, #1479ff 45%, #4facff 100%);
  color: #fff;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.hero-banner::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 65%);
  top: -180px;
  right: -120px;
}
.hero-banner::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.09), transparent 65%);
  bottom: -120px;
  left: 38%;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 3rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7dffb4;
  animation: pulse 1.8s ease infinite;
}
@keyframes pulse { 0%,100% {opacity:1} 50% {opacity:.4} }
.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-white {
  background: #fff;
  color: var(--primary-dark);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn-glass {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.btn-glass:hover { background: rgba(255,255,255,0.22); }

.hero-illustration {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  z-index: 2;
}
.hero-illustration img { width: 100%; height: 100%; object-fit: cover; }

/* Trust strip under hero */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 1.4rem;
}
.trust-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.trust-value { font-weight: 800; font-size: 1.05rem; }
.trust-label { color: var(--text-muted); font-size: 0.82rem; }

/* ========== GAME CARDS ========== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.game-card-image-wrapper {
  position: relative;
  aspect-ratio: 5/3;
  overflow: hidden;
  background: var(--bg-secondary);
}
.game-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card-image { transform: scale(1.06); }
.game-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(255,91,91,0.4);
}
.game-card-popular {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
}
.game-card-content {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.game-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}
.game-card-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.game-card-price { color: var(--text-muted); font-size: 0.78rem; }
.game-card-price strong { color: var(--text); font-weight: 800; font-size: 0.9rem; }
.game-card-cta {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ========== STEPS ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  position: relative;
  transition: var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); }
.step-number {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--border);
}
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.step-title { font-weight: 700; margin-bottom: 5px; }
.step-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

/* ========== PAYMENT METHODS ========== */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.payment-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.payment-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.payment-card.active { border-color: var(--primary); background: var(--primary-light); }
.payment-icon { font-size: 1.8rem; margin-bottom: 6px; }
.payment-name { font-weight: 700; font-size: 0.85rem; }

/* ========== TESTIMONIALS / TRUST SECTION ========== */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.feature-icon.blue { background: var(--primary-light); }
.feature-icon.green { background: var(--success-light); }
.feature-icon.orange { background: var(--warning-light); }
.feature-icon.pink { background: #ffeef7; }
.feature-title { font-weight: 700; margin-bottom: 3px; }
.feature-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

/* ========== FOOTER ========== */
.footer {
  background: #141b2d;
  color: #aab3c5;
  margin-top: 2rem;
}
.footer-top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 20px 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.4rem;
}
.footer-brand .nav-logo-text { color: #fff; }
.footer-brand .nav-logo-text span { color: #6cb3ff; }
.footer-desc { font-size: 0.9rem; line-height: 1.7; margin-top: 12px; color: #8b94a8; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: #8b94a8; font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: #6cb3ff; }
.footer-contact { display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.88rem; }
.footer-contact a { color: #8b94a8; transition: var(--transition); }
.footer-contact a:hover { color: #6cb3ff; }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.4rem 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #6c7689;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); }

/* ========== PAGE HEADER (game detail) ========== */
.page-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

.game-header {
  display: flex;
  align-items: center;
  gap: 18px;
}
.game-header-img {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 2px solid #fff;
}
.game-header-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.game-header-cat {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 3px;
}
.game-header-tag {
  display: inline-flex;
  align-items: center;
  background: var(--success-light);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 8px;
}

/* ========== PRODUCT LAYOUT ========== */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  padding: 1.6rem 0 3rem;
  align-items: start;
}

.product-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.product-section-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.product-item {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.product-item:hover { border-color: #b9c6ff; }
.product-item.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.product-item-best {
  position: absolute;
  top: -9px;
  right: 10px;
  background: var(--warning);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(255,150,0,0.4);
}
.product-badge-off {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
}
.product-name { font-weight: 800; font-size: 1rem; margin: 6px 0 2px; }
.product-bonus { font-size: 0.78rem; color: var(--success); font-weight: 600; margin-bottom: 6px; }
.product-price { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.product-price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.product-original-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ========== ORDER FORM SIDEBAR ========== */
.sidebar { position: sticky; top: 140px; }
.order-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.84rem; font-weight: 700; color: var(--text-secondary); }
.form-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.9rem;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  width: 100%;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input-static {
  background: var(--primary-light);
  border: 1px solid #d3e4ff;
  color: var(--primary-dark);
  font-weight: 600;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-hint { font-size: 0.76rem; color: var(--text-muted); }

/* Payment select */
.payment-select { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.payment-option {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.payment-option:hover { border-color: #b9c6ff; }
.payment-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.payment-option-icon { font-size: 1.4rem; }
.payment-option-name { font-size: 0.75rem; font-weight: 700; margin-top: 3px; }

/* Order summary */
.order-summary {
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.88rem;
}
.summary-row.total {
  border-top: 1px solid var(--border-strong);
  margin-top: 0.4rem;
  padding-top: 0.7rem;
  font-weight: 800;
  font-size: 1rem;
}
.summary-label { color: var(--text-secondary); }
.summary-value { color: var(--text); font-weight: 600; }
.summary-value.green { color: var(--success); }
.summary-value.price { color: var(--primary); }

/* ========== CART ========== */
.cart-layout { max-width: 980px; margin: 0 auto; padding: 2rem 20px 3rem; }
.cart-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-md); }
.cart-item-image { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-game { color: var(--primary); font-size: 0.78rem; font-weight: 600; }
.cart-item-name { font-weight: 700; margin: 2px 0; }
.cart-item-price { font-weight: 800; color: var(--success); }
.cart-item-remove {
  background: var(--danger-light);
  border: none;
  color: var(--danger);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}
.cart-item-remove:hover { background: var(--danger); color: #fff; }
.cart-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-top: 1.2rem;
}
.cart-summary-actions { display: flex; gap: 12px; margin-top: 1rem; }
.cart-summary-actions .btn { flex: 1; }
.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.cart-empty-title { font-weight: 800; font-size: 1.3rem; margin-bottom: 6px; }
.cart-empty-desc { color: var(--text-muted); margin-bottom: 1.4rem; }

/* ========== ORDER STATUS ========== */
.order-status-page { max-width: 640px; margin: 0 auto; padding: 2rem 20px 3rem; }
.order-status-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.4rem 2rem;
  text-align: center;
  margin-top: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.order-status-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.2rem;
}
.order-status-icon.processing { background: var(--warning-light); border: 2px solid var(--warning); }
.order-status-icon.success { background: var(--success-light); border: 2px solid var(--success); }
.order-status-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.order-status-desc { color: var(--text-muted); margin-bottom: 1.8rem; line-height: 1.6; }
.order-detail-box {
  text-align: left;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.8rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.order-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.order-detail-row:last-child { border-bottom: none; }
.order-detail-label { color: var(--text-muted); }
.order-detail-value { font-weight: 700; }

/* ========== STATUS BADGES ========== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}
.status-badge.pending { background: var(--warning-light); color: #b26a00; }
.status-badge.processing { background: var(--primary-light); color: var(--primary); }
.status-badge.completed { background: var(--success-light); color: var(--success); }
.status-badge.failed { background: var(--danger-light); color: var(--danger); }

/* ========== TOAST ========== */
.toast-container {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: toast-in 0.3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--primary); }
@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ========== LOADING ========== */
.loading-spinner {
  width: 42px; height: 42px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2.5rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== ADMIN ========== */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: #141b2d;
  padding: 1.4rem;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.2rem;
}
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  color: #8b94a8;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav-item.active { background: var(--primary); color: #fff; }
.admin-content { padding: 1.8rem 2rem; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.admin-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 1.6rem; }
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}
.stat-card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}
.stat-card-icon.blue { background: var(--primary-light); }
.stat-card-icon.green { background: var(--success-light); }
.stat-card-icon.yellow { background: var(--warning-light); }
.stat-card-icon.pink { background: #ffeef7; }
.stat-card-value { font-weight: 800; font-size: 1.5rem; }
.stat-card-label { color: var(--text-muted); font-size: 0.82rem; }

.admin-table-wrapper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-table-header {
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-table-title { font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  padding: 0.8rem 1.3rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  white-space: nowrap;
}
.admin-table td {
  padding: 0.8rem 1.3rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--bg-secondary);
  white-space: nowrap;
}
.admin-table tr:hover td { background: var(--bg); }
.admin-search {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  width: 220px;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  font-family: inherit;
}
.admin-search:focus { border-color: var(--primary); }

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-up.visible { opacity: 1; transform: translateY(0); }

/* ========== NEWSLETTER ========== */
.newsletter-section {
  background: linear-gradient(120deg, #0b5adb, #1479ff);
  border-radius: var(--radius-xl);
  padding: 2.6rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
  top: -120px; right: -60px;
}
.newsletter-section h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.newsletter-section p { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-bottom: 1.4rem; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.newsletter-form input {
  flex: 1;
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}
.newsletter-form button { background: #141b2d; border: none; }
.newsletter-form button:hover { background: #1e2740; transform: translateY(-1px); }

/* ========== MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 27, 45, 0.55);
  z-index: 500;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: toast-in 0.3s ease;
}
.modal-box h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.modal-box p { color: var(--text-muted); margin-bottom: 1.6rem; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .product-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-illustration { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-search { display: none; }
  .btn-login { display: none; }
  .mobile-menu-btn { display: block; }
  .filter-bar { top: 68px; }
  .hero-title { font-size: 1.7rem; }
  .hero-banner { min-height: 300px; }
  .hero-content { padding: 2rem 1.6rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .payment-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.25rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .admin-content { padding: 1.2rem; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .payment-select { grid-template-columns: 1fr; }
  .cart-summary-actions { flex-direction: column; }
  .modal-actions { flex-direction: column; }
  .trust-strip { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
}