:root {
  --bg-deep: #050b18;
  --bg-mid: #0b1830;
  --bg-panel: #101f3a;
  --bg-panel-raised: #142545;
  --border-frost: rgba(120, 200, 255, 0.18);
  --border-frost-strong: rgba(120, 200, 255, 0.32);
  --ice-cyan: #4fd8ff;
  --ice-cyan-bright: #8ff0ff;
  --ice-white: #eaf6ff;
  --text-muted: #92a8c9;
  --gold: #ffcf6b;
  --purple: #9d7bff;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --success: #7fe0a0;
  --danger: #ffb0b0;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 14px;
  --space-4: 22px;
  --space-5: 34px;
  --space-6: 54px;
  --space-7: 88px;

  --gradient-ice: linear-gradient(135deg, var(--ice-cyan), #2f8fd6);
  --gradient-gold: linear-gradient(135deg, var(--gold), #ff9f5b);
  --gradient-purple: linear-gradient(135deg, var(--purple), #5b7bff);
  --gradient-panel: linear-gradient(160deg, var(--bg-panel-raised), #0a1729);

  --shadow-soft: 0 10px 26px rgba(0, 8, 22, 0.35);
  --shadow-hard: 0 22px 55px rgba(0, 8, 22, 0.55);
  --shadow-glow-cyan: 0 0 0 1px rgba(79, 216, 255, 0.25), 0 16px 40px rgba(0, 10, 30, 0.5);
  --shadow-glow-gold: 0 0 0 1px rgba(255, 207, 107, 0.3), 0 16px 40px rgba(0, 10, 30, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--ice-white);
  line-height: 1.5;
}

a {
  color: inherit;
}

/* ---------- Top nav ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(5, 11, 24, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-frost);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand .crystal {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 6px var(--ice-cyan));
}

.brand-star {
  color: var(--ice-cyan-bright);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ice-cyan-bright);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ice-cyan), #2f8fd6);
  color: #041322;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 0 18px rgba(79, 216, 255, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ice-white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links,
  .nav-utility,
  .account-menu,
  .nav-cta {
    display: none;
    width: 100%;
  }

  .navbar.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .navbar.nav-open .nav-links a {
    padding: 13px 4px;
    border-top: 1px solid var(--border-frost);
  }

  .navbar.nav-open .nav-utility {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-frost);
  }

  .navbar.nav-open .currency-switcher select {
    width: 100%;
  }

  .navbar.nav-open .account-menu {
    display: block;
  }

  .navbar.nav-open .account-menu-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .navbar.nav-open .account-menu-panel {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 8px;
  }

  .navbar.nav-open .nav-cta {
    display: block;
    text-align: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 6vw 120px;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(79, 216, 255, 0.16), transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(139, 92, 246, 0.10), transparent 50%),
    linear-gradient(100deg, var(--bg-deep) 30%, rgba(5,11,24,0.75) 55%, rgba(5,11,24,0.35) 100%),
    linear-gradient(0deg, var(--bg-deep) 0%, transparent 30%);
  border-bottom: 1px solid var(--border-frost);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}

.hero-glacier {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(79, 216, 255, 0.08));
  clip-path: polygon(0% 100%, 0% 60%, 8% 45%, 18% 62%, 30% 38%, 42% 58%, 55% 30%, 68% 55%, 78% 35%, 90% 60%, 100% 42%, 100% 100%);
  pointer-events: none;
}

.hero-shard {
  position: absolute;
  background: linear-gradient(160deg, rgba(139, 240, 255, 0.5), rgba(79, 216, 255, 0.05));
  clip-path: polygon(50% 0%, 100% 35%, 82% 100%, 18% 100%, 0% 35%);
  filter: blur(0.5px);
  opacity: 0.5;
  animation: drift 9s ease-in-out infinite;
}

.shard-1 { width: 120px; height: 160px; top: 12%; right: 10%; animation-delay: 0s; }
.shard-2 { width: 70px; height: 95px; top: 55%; right: 22%; animation-delay: 1.5s; opacity: 0.3; }
.shard-3 { width: 55px; height: 75px; top: 20%; right: 30%; animation-delay: 3s; opacity: 0.25; }

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}

.snowfall {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.snowfall span {
  position: absolute;
  top: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ice-white);
  opacity: 0.6;
  animation: fall linear infinite;
}

@keyframes fall {
  to { transform: translateY(680px); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ice-cyan-bright);
  background: rgba(79, 216, 255, 0.1);
  border: 1px solid var(--border-frost);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--ice-cyan-bright), var(--ice-cyan) 60%, #9d7bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
}

.btn-primary {
  padding: 14px 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ice-cyan), #2f8fd6);
  color: #041322;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(79, 216, 255, 0.3);
}

.btn-secondary {
  padding: 14px 26px;
  border-radius: 10px;
  background: transparent;
  color: var(--ice-white);
  border: 1px solid var(--border-frost);
  text-decoration: none;
  font-weight: 600;
}

.trust-row {
  display: flex;
  gap: 28px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-row strong {
  color: var(--ice-white);
  display: block;
  font-size: 1.1rem;
}

/* ---------- Packages ---------- */

.packages {
  padding: 80px 6vw;
  max-width: 1240px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
}

.store-category-section {
  margin-bottom: 44px;
  scroll-margin-top: 90px;
}

.store-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 18px;
  background: rgba(79, 216, 255, 0.05);
  border: 1px solid var(--border-frost);
  border-left: 3px solid var(--ice-cyan);
  border-radius: var(--radius-sm);
}

.store-category-icon {
  font-size: 1.3rem;
}

.store-category-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

/* Image-forward tile: big product image on top, name/badges in the middle,
   price+actions pinned to the bottom -- dense grid, many per row, matching
   simple storefront-catalog tiles rather than the old horizontal widget strip. */
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--bg-panel), #0a1729);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 216, 255, 0.5);
  box-shadow: 0 16px 40px rgba(0, 10, 30, 0.5);
}

.package-card.featured {
  border-color: rgba(255, 207, 107, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 207, 107, 0.25), 0 16px 40px rgba(0, 10, 30, 0.5);
}

.badge-featured {
  background: linear-gradient(135deg, var(--gold), #ff9f5b);
  color: #241300;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.package-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 120px;
  background: var(--bg-deep);
  flex-shrink: 0;
  overflow: hidden;
}

/* Source art is small (native ~85px) catalog icons -- show them at their
   real size instead of stretching to fill the tile, which just blurs them. */
.package-card-media img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.package-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-panel);
}

.package-icon-fallback .icon-tier {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 10px rgba(79, 216, 255, 0.55));
}

.package-card-media .card-badge-row {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  margin: 0;
}

.package-card-body {
  min-width: 0;
  padding: 12px 14px 2px;
  flex: 1;
}

.package-card-body > .tag-pill.limit {
  display: inline-flex;
  margin-bottom: 6px;
}

.package-card h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 700;
}

.package-card h3 a {
  color: inherit;
  text-decoration: none;
}

.package-card h3 a:hover {
  color: var(--ice-cyan-bright);
}

.package-card-rating {
  color: var(--gold);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.package-card-rating span {
  color: var(--text-muted);
}

.package-frost-stars {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ice-cyan-bright);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.package-bonus {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--gold);
  background: rgba(255, 207, 107, 0.1);
  border: 1px solid rgba(255, 207, 107, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

.package-card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border-frost);
  margin-top: 8px;
}

.package-price {
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.package-price span.unit {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 400;
}

.buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--ice-cyan), #2f8fd6);
  color: #041322;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-frost);
  border-radius: 8px;
  overflow: hidden;
  height: 40px;
}

.qty-btn {
  width: 32px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  background: rgba(79, 216, 255, 0.08);
  color: var(--ice-cyan-bright);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.qty-btn:hover {
  background: rgba(79, 216, 255, 0.18);
}

.qty-count {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0 2px;
}

.topup-preset-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.topup-preset-btn {
  padding: 10px 0;
  border-radius: 8px;
  border: 1px solid var(--border-frost);
  background: rgba(79, 216, 255, 0.05);
  color: var(--ice-white);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.topup-preset-btn:hover {
  border-color: rgba(79, 216, 255, 0.5);
}

.topup-preset-btn.active {
  background: linear-gradient(135deg, var(--ice-cyan), #2f8fd6);
  border-color: transparent;
  color: #041322;
}

/* ---------- Rewards ladder (17 ranks) ---------- */

.tier-ladder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.tier-ladder-card {
  padding: 16px 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tier-ladder-card.is-current {
  border-color: var(--gold);
  box-shadow: var(--shadow-glow-gold);
}

.tier-ladder-card.is-apex-card {
  border-color: rgba(122, 217, 255, 0.4);
}

.tier-ladder-card.is-apex-card.is-current {
  border-color: rgba(122, 217, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 244, 194, 0.4), 0 16px 40px rgba(0, 10, 30, 0.5);
}

.tier-ladder-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tier-crest-wrap {
  flex-shrink: 0;
  display: flex;
}

.tier-crest-wrap .tier-crest {
  width: 26px;
  height: 28px;
}

.tier-ladder-head h4 {
  margin: 0;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier-ladder-head p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.you-tag {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(255, 207, 107, 0.14);
  border: 1px solid rgba(255, 207, 107, 0.35);
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.tier-ladder-discount {
  color: var(--ice-cyan-bright);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 2px;
}

.tier-ladder-frame {
  color: var(--gold);
  font-size: 0.78rem;
  margin: 0 0 10px;
}

.tier-ladder-hero-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.tier-hero-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-frost-strong);
  flex-shrink: 0;
}

.tier-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tier-hero-thumb.is-locked {
  filter: grayscale(1) brightness(0.4);
  opacity: 0.6;
}

.package-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  border: 1px dashed var(--border-frost);
  border-radius: var(--radius);
}

/* ---------- Hero model gallery (rewards.php) ---------- */

.hero-model-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.hero-model-card {
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.hero-model-card:not(.is-locked):hover {
  transform: translateY(-3px);
  border-color: rgba(79, 216, 255, 0.4);
}

.hero-model-art {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(79, 216, 255, 0.12), transparent 70%);
  margin-bottom: 8px;
}

.hero-model-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-model-card.is-locked .hero-model-art img {
  filter: grayscale(1) brightness(0.4);
}

.hero-model-art .hero-lock-overlay {
  font-size: 1.4rem;
}

.hero-model-meta strong {
  display: block;
  font-size: 0.82rem;
}

.hero-model-meta span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hero-model-card.is-locked .hero-model-meta strong {
  color: var(--text-muted);
}

/* ---------- How it works ---------- */

.how {
  position: relative;
  overflow: hidden;
  padding: 90px 6vw;
  border-top: 1px solid var(--border-frost);
  border-bottom: 1px solid var(--border-frost);
}

.how-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.how-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.4;
}

.how-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(5, 11, 24, 0.4), rgba(5, 11, 24, 0.88) 65%),
    linear-gradient(180deg, var(--bg-deep) 0%, rgba(5, 11, 24, 0.75) 18%, rgba(5, 11, 24, 0.75) 82%, var(--bg-deep) 100%);
}

.how-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  align-items: center;
  gap: 18px;
}

.how-arrow {
  color: var(--ice-cyan-bright);
  font-size: 1.6rem;
  text-align: center;
  opacity: 0.6;
}

.how-card {
  background: rgba(16, 31, 58, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.how-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-frost-strong);
}

.how-step {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 216, 255, 0.22), rgba(79, 216, 255, 0.05));
  border: 1px solid rgba(120, 200, 255, 0.35);
  color: var(--ice-cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.how-step .icon-resource {
  width: 28px;
  height: 28px;
}

.how-step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: #241300;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-card h4 {
  margin: 0 0 8px;
}

.how-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
  .how-arrow {
    transform: rotate(90deg);
  }
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border-frost);
  padding: 30px 6vw;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; }
  .trust-row { flex-wrap: wrap; row-gap: 12px; }
}

@media (max-width: 420px) {
  .package-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Auth / generic forms ---------- */

.form-page {
  max-width: 420px;
  margin: 70px auto;
  padding: 0 6vw;
}

.form-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.form-card h1 {
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.form-card .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 26px;
}

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

.form-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-frost);
  background: var(--bg-deep);
  color: var(--ice-white);
  font-size: 0.95rem;
}

.form-field input:focus {
  outline: none;
  border-color: var(--ice-cyan);
}

.form-submit {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ice-cyan), #2f8fd6);
  color: #041322;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 6px;
}

.form-alert {
  background: rgba(255, 99, 99, 0.1);
  border: 1px solid rgba(255, 99, 99, 0.35);
  color: #ffb0b0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 18px;
  text-align: center;
}

.form-note a {
  color: var(--ice-cyan-bright);
  text-decoration: none;
}

/* ---------- Admin ---------- */

.admin-wrap {
  display: flex;
  min-height: calc(100vh - 65px);
  min-height: calc(100dvh - 65px);
}

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-frost);
  padding: 24px 0;
}

.admin-sidebar a {
  display: block;
  padding: 10px 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: var(--ice-cyan-bright);
  background: rgba(79, 216, 255, 0.06);
}

.admin-main {
  flex: 1;
  padding: 32px 40px;
  max-width: 1100px;
  min-width: 0;
  overflow-x: auto;
}

.admin-main h1 {
  font-size: 1.6rem;
  margin: 0 0 22px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-panel);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-frost);
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-badge.on { background: rgba(120, 220, 150, 0.15); color: #7fe0a0; }
.admin-badge.off { background: rgba(255, 99, 99, 0.12); color: #ffb0b0; }
.admin-badge.est { background: rgba(255, 207, 107, 0.15); color: var(--gold); }

.admin-btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid var(--border-frost);
  background: transparent;
  color: var(--ice-white);
  text-decoration: none;
  font-size: 0.82rem;
  cursor: pointer;
}

.admin-btn.primary {
  background: linear-gradient(135deg, var(--ice-cyan), #2f8fd6);
  color: #041322;
  border: none;
  font-weight: 700;
}

.admin-btn.danger {
  border-color: rgba(255, 99, 99, 0.4);
  color: #ffb0b0;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 26px;
}

.admin-form-grid .full { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .admin-wrap {
    flex-direction: column;
    min-height: 0;
  }

  .admin-sidebar {
    width: 100%;
    flex-shrink: 1;
    border-right: none;
    border-bottom: 1px solid var(--border-frost);
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
  }

  .admin-sidebar a {
    padding: 8px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .admin-main {
    padding: 20px 16px;
    max-width: 100%;
  }

  .admin-form-grid {
    padding: 16px;
  }
}

.admin-flash {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.admin-flash.success {
  background: rgba(120, 220, 150, 0.1);
  border: 1px solid rgba(120, 220, 150, 0.3);
  color: #7fe0a0;
}

.admin-flash.error {
  background: rgba(255, 99, 99, 0.1);
  border: 1px solid rgba(255, 99, 99, 0.35);
  color: #ffb0b0;
}

/* ---------- Account menu ---------- */

.account-menu {
  position: relative;
}

.account-menu-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(79, 216, 255, 0.06);
  border: 1px solid var(--border-frost);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  color: var(--ice-white);
  font-size: 0.88rem;
}

.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice-cyan), #7b5bff);
  color: #041322;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-menu-caret {
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: transform 0.15s;
}

.account-menu.open .account-menu-caret {
  transform: rotate(180deg);
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: var(--bg-panel);
  border: 1px solid var(--border-frost);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 8, 24, 0.55);
  padding: 8px;
  display: none;
  z-index: 60;
}

.account-menu.open .account-menu-panel {
  display: block;
}

.account-menu-panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ice-white);
  text-decoration: none;
  font-size: 0.88rem;
}

.account-menu-panel a:hover {
  background: rgba(79, 216, 255, 0.08);
  color: var(--ice-cyan-bright);
}

.account-menu-panel .divider {
  height: 1px;
  background: var(--border-frost);
  margin: 6px 4px;
}

/* ---------- Currency switcher ---------- */

.nav-utility {
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-switcher select {
  appearance: none;
  background: rgba(79, 216, 255, 0.06);
  border: 1px solid var(--border-frost);
  color: var(--ice-white);
  border-radius: 999px;
  padding: 8px 30px 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2392a8c9' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.currency-switcher select:focus {
  outline: none;
  border-color: var(--ice-cyan);
}

/* Chromium/Edge honor background/color on <option> even though most select
   chrome can't be styled -- without this the dropdown list renders with the
   OS default (near-white text on white), unreadable against this dark theme. */
.currency-switcher select option {
  background: var(--bg-panel-raised);
  color: var(--ice-white);
  padding: 8px;
}

/* ---------- Auth split layout ---------- */

.auth-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: calc(100vh - 65px);
  min-height: calc(100dvh - 65px);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5,11,24,0.2) 0%, var(--bg-deep) 92%),
    radial-gradient(ellipse at 30% 20%, rgba(79, 216, 255, 0.18), transparent 55%),
    var(--bg-mid);
  display: flex;
  align-items: flex-end;
  padding: 48px;
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 0;
}

.auth-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 380px;
}

.auth-visual-copy h2 {
  font-size: 1.6rem;
  margin: 0 0 10px;
}

.auth-visual-copy p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 6vw;
}

.auth-form-side .form-card {
  width: 100%;
  max-width: 440px;
  margin: 0;
}

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}

/* ---------- Category filter chips ---------- */

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.category-chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-frost);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.category-chip:hover {
  border-color: rgba(79, 216, 255, 0.4);
  color: var(--ice-white);
}

.category-chip.active {
  background: linear-gradient(135deg, var(--ice-cyan), #2f8fd6);
  border-color: transparent;
  color: #041322;
  font-weight: 700;
}

/* ---------- View toggle ---------- */

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border-frost);
  border-radius: 10px;
  overflow: hidden;
}

.view-toggle button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 9px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.view-toggle button.active {
  background: rgba(79, 216, 255, 0.12);
  color: var(--ice-cyan-bright);
}

.package-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

/* ---------- Package card image + list view ---------- */

.package-card-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-deep);
}

.package-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* List view: the card is already a horizontal widget by default, so list
   mode just forces a single full-width column instead of the multi-column grid. */
.package-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-card.is-hidden {
  display: none;
}

.package-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-card-actions .buy-btn {
  flex: 1;
}

.package-card-actions .qty-stepper {
  flex: 1;
  justify-content: space-between;
}

.package-card-actions .buy-btn-secondary {
  width: 40px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
}

.package-card-actions .buy-btn-secondary .icon {
  width: 16px;
  height: 16px;
}

.buy-btn-secondary {
  background: transparent;
  border: 1px solid var(--border-frost);
  color: var(--ice-white);
}

/* ---------- FAQ accordion ---------- */

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-frost);
  border-left: 3px solid var(--border-frost-strong);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--bg-panel);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-left-color: var(--ice-cyan);
}

.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chevron {
  color: var(--ice-cyan-bright);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary .chevron {
  transform: rotate(180deg);
}

.faq-item-body {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Per-page hero watermark (decorative, set via $pageHeroModel) ---------- */

.page-hero-watermark {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 200px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
}

.page-hero-watermark img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1750px) {
  .page-hero-watermark { display: none; }
}

/* ---------- Support chat widget ---------- */

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ice-cyan), #2f8fd6);
  color: #041322;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(79, 216, 255, 0.4);
  animation: chat-toggle-pulse 2.4s ease-in-out infinite;
}

.chat-toggle .icon {
  width: 24px;
  height: 24px;
}

@keyframes chat-toggle-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(79, 216, 255, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(79, 216, 255, 0.4), 0 0 0 8px rgba(79, 216, 255, 0.12); }
}

.chat-widget.open .chat-toggle {
  display: none;
}

.chat-panel {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 340px;
  height: 460px;
  background: var(--bg-panel);
  border: 1px solid var(--border-frost);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 8, 24, 0.6);
  flex-direction: column;
  overflow: hidden;
}

.chat-widget.open .chat-panel {
  display: flex;
}

.chat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(120deg, rgba(79, 216, 255, 0.14), rgba(157, 123, 255, 0.08));
  border-bottom: 1px solid var(--border-frost);
}

.chat-panel-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-panel-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-eta {
  font-size: 0.72rem;
  color: var(--ice-cyan-bright);
}

.chat-panel-header button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.85rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-frost);
}

.chat-msg.me {
  align-self: flex-end;
  background: rgba(79, 216, 255, 0.15);
  border-bottom-right-radius: 4px;
}

.chat-msg.staff {
  align-self: flex-start;
  background: rgba(157, 123, 255, 0.1);
  border-color: rgba(157, 123, 255, 0.25);
  border-bottom-left-radius: 4px;
}

.chat-msg-sender {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.chat-form {
  display: flex;
}

.chat-form input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ice-white);
  padding: 12px 14px;
  font-size: 0.88rem;
}

.chat-form input:focus {
  outline: none;
}

.chat-form button {
  border: none;
  background: transparent;
  color: var(--ice-cyan-bright);
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}

/* ---------- Guest chat gate + bottom composer area ---------- */

.chat-bottom {
  border-top: 1px solid var(--border-frost);
  background: rgba(79, 216, 255, 0.03);
}

.chat-guest-gate {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  gap: 10px;
}

.chat-guest-gate p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.chat-guest-gate form {
  display: flex;
  gap: 8px;
}

.chat-guest-gate input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-frost);
  background: var(--bg-deep);
  color: var(--ice-white);
  font-size: 0.85rem;
}

.chat-guest-gate button {
  padding: 0 16px;
  border-radius: 8px;
  border: none;
  background: var(--gradient-ice);
  color: #041322;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.82rem;
  white-space: nowrap;
}

.chat-guest-note {
  font-size: 0.76rem !important;
}

.chat-guest-note a {
  color: var(--ice-cyan-bright);
}

/* ---------- Promotion badge ---------- */

.promo-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #ff9f5b);
  color: #241300;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 4px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  vertical-align: middle;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 159, 91, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(255, 159, 91, 0); }
}

.price-was {
  display: block;
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.savings-badge {
  background: linear-gradient(135deg, var(--success), #3fbf78);
  animation: none;
}

/* ---------- Site banner ---------- */

.site-banner {
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 0.85rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-frost);
}

.site-banner-info { background: rgba(79, 216, 255, 0.1); color: var(--ice-cyan-bright); }
.site-banner-success { background: rgba(120, 220, 150, 0.1); color: var(--success); }
.site-banner-warning { background: rgba(255, 207, 107, 0.12); color: var(--gold); }
.site-banner-sale { background: linear-gradient(90deg, rgba(255, 159, 91, 0.15), rgba(255, 207, 107, 0.15)); color: var(--gold); }

.site-banner a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.site-banner button {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.7;
}

.site-banner button:hover {
  opacity: 1;
}

/* ---------- Sale popup ---------- */

.sale-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 16, 0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.sale-popup-overlay.open {
  display: flex;
}

.sale-popup {
  background: var(--bg-panel);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 380px;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 8, 24, 0.6);
}

.sale-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.sale-popup h3 {
  font-size: 1.4rem;
  margin: 8px 0 10px;
}

.sale-popup p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ---------- Scroll reveal ---------- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-on-scroll.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-on-scroll.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-on-scroll.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- 3D panel utility ---------- */

.panel-3d {
  position: relative;
  background: var(--gradient-panel);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.panel-3d::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}

.panel-3d:hover {
  box-shadow: var(--shadow-hard);
  transform: translateY(-3px);
  border-color: var(--border-frost-strong);
}

/* ---------- Section wrapper / eyebrow-tag ---------- */

.section-wrap {
  padding: var(--space-7) 6vw;
  max-width: 1240px;
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ice-cyan-bright);
  background: rgba(79, 216, 255, 0.1);
  border: 1px solid var(--border-frost);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Stat grid / tiles ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}

.stat-tile {
  padding: var(--space-4) var(--space-3);
  text-align: center;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-tile-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-2);
  filter: drop-shadow(0 0 8px rgba(79, 216, 255, 0.5));
}

.stat-tile strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ice-cyan-bright), var(--ice-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-tile span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Hero slider ---------- */

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}

.hero-slider-dots {
  position: absolute;
  z-index: 2;
  left: 6vw;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

.hero-slider-dots button {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.hero-slider-dots button.active {
  background: var(--ice-cyan-bright);
}

/* ---------- Character / hero showcase ---------- */

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.character-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border-frost);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
}

.character-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-hard);
  border-color: var(--border-frost-strong);
}

.character-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 16px 14px;
  background: linear-gradient(0deg, rgba(3, 8, 18, 0.95) 10%, rgba(3, 8, 18, 0.55) 60%, transparent 100%);
}

.character-card-overlay .role-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 207, 107, 0.12);
  border: 1px solid rgba(255, 207, 107, 0.3);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.character-card-overlay h4 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.character-card-overlay p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ---------- Category showcase ---------- */

.category-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.category-showcase-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: var(--space-5) var(--space-4);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--ice-white);
  border: 1px solid var(--border-frost);
  background: var(--gradient-panel);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.category-showcase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(79, 216, 255, 0.22), transparent 60%);
  pointer-events: none;
}

.category-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hard);
  border-color: var(--border-frost-strong);
}

.category-showcase-card .cat-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.category-showcase-card h4 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  position: relative;
}

.category-showcase-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  position: relative;
}

.category-showcase-card .arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--ice-cyan-bright);
  font-size: 1.1rem;
}

/* ---------- Trust badges strip ---------- */

.trust-band {
  background: radial-gradient(ellipse at center, rgba(79, 216, 255, 0.07), transparent 72%);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}

.trust-badge .icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(79, 216, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.trust-badge strong {
  display: block;
  font-size: 0.9rem;
}

.trust-badge span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* ---------- Payment methods row ---------- */

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

.payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-frost);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}

/* ---------- Guarantee banner ---------- */

.guarantee-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(120, 220, 150, 0.1), rgba(79, 216, 255, 0.08));
  border: 1px solid rgba(120, 220, 150, 0.3);
}

.guarantee-banner .icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.guarantee-banner strong {
  display: block;
  color: var(--success);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.guarantee-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- Loyalty ribbon ---------- */

.loyalty-ribbon {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255, 207, 107, 0.14), rgba(157, 123, 255, 0.1));
  border: 1px solid rgba(255, 207, 107, 0.35);
  margin-bottom: 24px;
}

.loyalty-ribbon.muted {
  background: rgba(120, 200, 255, 0.05);
  border-color: var(--border-frost);
}

.loyalty-ribbon.is-apex {
  background: linear-gradient(120deg, rgba(255, 244, 194, 0.16), rgba(122, 217, 255, 0.14));
  border-color: rgba(122, 217, 255, 0.5);
}

.loyalty-ribbon.is-apex strong {
  color: var(--ice-cyan-bright);
}

.loyalty-ribbon .icon-resource {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.loyalty-ribbon strong {
  display: block;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.loyalty-ribbon.muted strong {
  color: var(--ice-white);
}

.loyalty-ribbon span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.loyalty-ribbon a {
  color: var(--ice-cyan-bright);
}

/* ---------- Delivery steps ---------- */

.delivery-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
  padding: var(--space-4);
}

.delivery-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.delivery-step .num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-ice);
  color: #041322;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.delivery-step strong {
  display: block;
  font-size: 0.86rem;
}

.delivery-step p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* ---------- Testimonial slider (stage layout: center card large/front, ---------- */
/* ---------- side cards smaller/dimmed, advances one at a time)         ---------- */

.testimonial-stage {
  position: relative;
  min-height: 400px;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-stage .testimonial-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(400px, 82vw);
  padding: var(--space-5);
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.testimonial-stage .testimonial-card.is-active {
  box-shadow: var(--shadow-hard);
  border-color: var(--border-frost-strong);
}

.slider-view-all {
  text-align: center;
  margin-top: var(--space-4);
}

.slider-view-all a {
  color: var(--ice-cyan-bright);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.slider-view-all a:hover {
  text-decoration: underline;
}

.testimonial-card .stars {
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--ice-white);
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.testimonial-card .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-purple);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card .author span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-3);
}

.slider-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-frost);
  background: rgba(79, 216, 255, 0.06);
  color: var(--ice-white);
  cursor: pointer;
  font-size: 1rem;
}

.slider-nav button:hover {
  border-color: var(--ice-cyan);
  color: var(--ice-cyan-bright);
}

/* ---------- Newsletter / announcement teaser ---------- */

.newsletter-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(79, 216, 255, 0.12), rgba(157, 123, 255, 0.1));
  border: 1px solid var(--border-frost);
}

.newsletter-teaser h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.newsletter-teaser p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Badge slots on package cards ---------- */

.card-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  min-height: 20px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.tag-pill.popular { background: rgba(255, 207, 107, 0.18); color: var(--gold); border: 1px solid rgba(255, 207, 107, 0.4); }
.tag-pill.best-value { background: rgba(120, 220, 150, 0.16); color: var(--success); border: 1px solid rgba(120, 220, 150, 0.4); }
.tag-pill.featured-pill { background: linear-gradient(135deg, var(--gold), #ff9f5b); color: #241300; border: none; }
.tag-pill.limit { background: rgba(79, 216, 255, 0.12); color: var(--ice-cyan-bright); border: 1px solid var(--border-frost); }
.tag-pill.limit .icon { width: 11px; height: 11px; }
.tag-pill .limit-count { font-weight: 800; }

/* ---------- Category chip icons ---------- */

.category-chip .chip-icon {
  margin-right: 6px;
}

/* ---------- Sort select (store toolbar) ---------- */

.sort-select select {
  appearance: none;
  background: rgba(79, 216, 255, 0.06);
  border: 1px solid var(--border-frost);
  color: var(--ice-white);
  border-radius: 10px;
  padding: 9px 30px 9px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2392a8c9' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ---------- Checkout layout ---------- */

.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-5);
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-6) 6vw;
  align-items: start;
}

.checkout-summary {
  position: sticky;
  top: 90px;
  padding: var(--space-4);
}

.checkout-summary h3 {
  margin: 0 0 var(--space-3);
  font-size: 1.05rem;
}

.checkout-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-frost);
}

.checkout-summary-line.total {
  color: var(--ice-white);
  font-weight: 800;
  font-size: 1.05rem;
  border-bottom: none;
  padding-top: 12px;
}

.checkout-summary-line .discount {
  color: var(--success);
}

.express-checkout-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: var(--space-4);
}

.express-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-frost);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ice-white);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.express-checkout-btn:hover {
  border-color: var(--ice-cyan);
}

.express-checkout-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Game account card (checkout) ---------- */

.game-account-card {
  border: 1px solid var(--border-frost);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  background: rgba(79, 216, 255, 0.04);
}

.game-account-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
  color: var(--ice-cyan-bright);
}

.game-account-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--success);
  margin: 12px 0 0;
}

/* ---------- Payment method list (checkout radios) ---------- */

.payment-method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-frost);
  cursor: pointer;
  font-weight: 400;
  transition: border-color 0.15s, background 0.15s;
}

.payment-method-option:has(input:checked) {
  border-color: var(--ice-cyan);
  background: rgba(79, 216, 255, 0.06);
}

.payment-method-option input {
  flex-shrink: 0;
}

.payment-method-option span {
  font-size: 0.9rem;
}

.payment-method-option small {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 400;
}

/* ---------- Recommendation rows (checkout sidebar) ---------- */

.recommend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-frost);
  text-decoration: none;
  color: var(--ice-white);
}

.recommend-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recommend-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recommend-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recommend-row-info strong {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-row-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.recommend-row-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ice-cyan-bright);
  white-space: nowrap;
}

/* ---------- News timeline ---------- */

.news-timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}

.news-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--ice-cyan), var(--border-frost));
}

.news-item {
  position: relative;
  padding-bottom: var(--space-4);
}

.news-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 2px solid var(--ice-cyan);
}

.news-item-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.news-item-card {
  padding: var(--space-3) var(--space-4);
}

.news-item-card p {
  margin: 0 0 8px;
  color: var(--ice-white);
  font-size: 0.94rem;
}

.news-item-card a {
  color: var(--ice-cyan-bright);
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 600;
}

.news-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.news-tag.info { background: rgba(79, 216, 255, 0.12); color: var(--ice-cyan-bright); }
.news-tag.success { background: rgba(120, 220, 150, 0.12); color: var(--success); }
.news-tag.warning { background: rgba(255, 207, 107, 0.15); color: var(--gold); }
.news-tag.sale { background: linear-gradient(90deg, rgba(255,159,91,0.2), rgba(255,207,107,0.2)); color: var(--gold); }

/* ---------- About page ---------- */

.about-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto var(--space-6);
}

.about-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-hard);
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.about-value-card {
  padding: var(--space-4);
}

.about-value-card .icon-tier {
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .about-hero-split { grid-template-columns: 1fr; }
}

/* ---------- Profile banner / avatar presets ---------- */

.banner-preset-frost { background: linear-gradient(120deg, #0b1830, #1a4a6b, #4fd8ff); }
.banner-preset-aurora { background: linear-gradient(120deg, #1a0b30, #5b2f8f, #4fd8ff); }
.banner-preset-ember { background: linear-gradient(120deg, #2a1305, #8a4a12, #ffcf6b); }
.banner-preset-void { background: linear-gradient(120deg, #050505, #1a0b2e, #3d1a5c); }
.banner-preset-blood { background: linear-gradient(120deg, #1a0505, #6b1a1a, #ff5b5b); }
.banner-preset-royal { background: linear-gradient(120deg, #0b0b30, #7b5bff, #ffcf6b); }

.avatar-preset-cyan { background: linear-gradient(135deg, #8ff0ff, #2f8fd6); }
.avatar-preset-purple { background: linear-gradient(135deg, #b89dff, #5b2f8f); }
.avatar-preset-gold { background: linear-gradient(135deg, #ffe08f, #ff9f5b); }
.avatar-preset-red { background: linear-gradient(135deg, #ff9d9d, #c62828); }
.avatar-preset-green { background: linear-gradient(135deg, #a3f0c0, #2e8f5b); }
.avatar-preset-pink { background: linear-gradient(135deg, #ffb3e6, #b0429e); }

/* ---------- Customer dashboard ---------- */

.account-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.wallet-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

.wallet-col-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wallet-balance-tile strong {
  font-size: 2.4rem;
}

@media (max-width: 780px) {
  .wallet-layout { grid-template-columns: 1fr; }
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.appearance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

@media (max-width: 780px) {
  .profile-edit-grid { grid-template-columns: 1fr; }
}

/* ---------- Support ticket page ---------- */

.support-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

.support-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.support-ticket-row:hover {
  border-color: var(--border-frost);
}

.support-ticket-row.active {
  background: rgba(79, 216, 255, 0.08);
  border-color: var(--border-frost);
  color: var(--ice-white);
}

.support-ticket-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-empty-tickets {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 12px 14px;
}

.support-thread-card {
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.support-messages {
  flex: 1;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding-right: 4px;
}

.support-bubble {
  align-self: flex-end;
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(79, 216, 255, 0.1);
  border: 1px solid var(--border-frost);
  font-size: 0.9rem;
}

.support-bubble.staff {
  align-self: flex-start;
  background: var(--bg-deep);
}

.support-bubble-sender {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.support-send-row {
  display: flex;
  gap: 8px;
}

.support-send-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-frost);
  background: var(--bg-deep);
  color: var(--ice-white);
}

@media (max-width: 780px) {
  .support-layout { grid-template-columns: 1fr; }
}

/* ---------- Giveaways ---------- */

.giveaway-card {
  padding: 24px 26px;
  margin-bottom: 20px;
}

.giveaway-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.giveaway-card-header h3 {
  margin: 0 0 4px;
}

.giveaway-prize {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}

.giveaway-ends {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.giveaway-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 12px 0 0;
}

.giveaway-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.giveaway-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-frost);
  border-radius: 10px;
  flex-wrap: wrap;
}

.giveaway-method-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
}

.giveaway-method-info span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.giveaway-entry-form {
  display: flex;
  gap: 8px;
}

.giveaway-entry-form input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-frost);
  background: var(--bg-deep);
  color: var(--ice-white);
  width: 200px;
}

.giveaway-teaser-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  text-decoration: none;
  color: var(--ice-white);
  background: linear-gradient(120deg, rgba(255, 207, 107, 0.14), rgba(157, 123, 255, 0.1));
  border-color: rgba(255, 207, 107, 0.35);
}

.giveaway-teaser-banner .icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.giveaway-teaser-banner strong {
  display: block;
  color: var(--gold);
}

.giveaway-teaser-banner span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Referrals ---------- */

.referral-link-box {
  display: flex;
  gap: 8px;
}

.referral-link-box input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-frost);
  background: var(--bg-deep);
  color: var(--ice-white);
  font-size: 0.85rem;
}

.profile-header {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-frost);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-5);
}

.profile-banner {
  height: 130px;
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.profile-header-body {
  background: var(--bg-panel);
  padding: 0 var(--space-4) var(--space-4);
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
}

.profile-avatar-large {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid var(--bg-panel);
  margin-top: -42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 2rem;
  font-weight: 800;
  color: #041322;
  flex-shrink: 0;
  position: relative;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.profile-avatar-large[class*="avatar-frame-"] {
  box-shadow: 0 0 0 3px var(--frame-c1, transparent), 0 0 14px var(--frame-c2, transparent);
}

.profile-avatar-large.avatar-frame-apex {
  animation: apex-glow 2.4s ease-in-out infinite;
}

.profile-header-info {
  flex: 1;
  min-width: 200px;
  padding-top: 10px;
}

.profile-header-info h2 {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-header-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.tier-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--gradient-gold);
  color: #241300;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: help;
}

.tier-badge .icon { width: 11px; height: 11px; }

.tier-crest {
  width: 13px;
  height: 14px;
  vertical-align: -2px;
}

.tier-badge.no-tier {
  background: rgba(146, 168, 201, 0.15);
  color: var(--text-muted);
}

.tier-badge.is-apex {
  background: linear-gradient(135deg, #fff4c2, #7ad9ff);
  color: #1a1030;
  box-shadow: 0 0 0 1px rgba(255, 244, 194, 0.5), 0 0 14px rgba(122, 217, 255, 0.5);
  animation: apex-glow 2.4s ease-in-out infinite;
}

@keyframes apex-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 244, 194, 0.5), 0 0 10px rgba(122, 217, 255, 0.4); }
  50% { box-shadow: 0 0 0 1px rgba(255, 244, 194, 0.7), 0 0 20px rgba(122, 217, 255, 0.7); }
}

.tier-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 250px;
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-frost-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-hard);
  text-transform: none;
  font-weight: 400;
  color: var(--ice-white);
  font-size: 0.78rem;
  line-height: 1.55;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}

.tier-tooltip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.85rem;
}

.tier-tooltip span {
  display: block;
  color: var(--text-muted);
}

.tier-tooltip span + span {
  margin-top: 6px;
}

.tier-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border-frost-strong);
}

.tier-badge:hover .tier-tooltip,
.tier-badge:focus .tier-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.tier-progress-wrap {
  padding-top: 14px;
  width: 100%;
}

.tier-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 6px 0;
}

.tier-progress-bar-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 999px;
}

.dashboard-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}

.dashboard-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-3);
  min-height: 76px;
  text-decoration: none;
  color: var(--ice-white);
}

.dashboard-quick-link .icon-tier {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.dashboard-quick-link strong {
  display: block;
  font-size: 0.92rem;
}

.dashboard-quick-link span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ---------- Preset picker (profile edit) ---------- */

.preset-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
}

.preset-swatch {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
}

.preset-swatch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.preset-swatch:has(input:checked) {
  border-color: var(--ice-cyan);
  box-shadow: 0 0 0 3px rgba(79, 216, 255, 0.25);
}

.preset-swatch-banner {
  aspect-ratio: 3 / 1;
  border-radius: 10px;
}

/* ---------- Frame color picker (profile edit) ---------- */

.frame-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.frame-swatch-row .frame-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: 68px;
}

.frame-swatch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.frame-swatch-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-panel-raised);
  box-shadow: 0 0 0 3px var(--frame-c1, #a56239);
}

.frame-swatch-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

.frame-swatch:has(input:checked) .frame-swatch-ring {
  box-shadow: 0 0 0 3px var(--frame-c1, #a56239), 0 0 12px var(--frame-c2, transparent);
}

.frame-swatch.is-locked {
  cursor: not-allowed;
  opacity: 0.4;
  filter: grayscale(1);
}

.avatar-frame-bronze { --frame-c1: #a56239; --frame-c2: rgba(165, 98, 57, 0.5); }
.avatar-frame-silver { --frame-c1: #c3cbd6; --frame-c2: rgba(195, 203, 214, 0.5); }
.avatar-frame-gold { --frame-c1: #ffcf6b; --frame-c2: rgba(255, 207, 107, 0.5); }
.avatar-frame-platinum { --frame-c1: #bfe9ff; --frame-c2: rgba(191, 233, 255, 0.5); }
.avatar-frame-chrome { --frame-c1: #e8e8f5; --frame-c2: rgba(232, 232, 245, 0.6); }
.avatar-frame-mythic { --frame-c1: #d79dff; --frame-c2: rgba(215, 157, 255, 0.6); }
.avatar-frame-apex { --frame-c1: #fff4c2; --frame-c2: rgba(122, 217, 255, 0.7); }

/* ---------- Hero portrait picker (profile edit) ---------- */

.hero-gen-group {
  margin-top: 14px;
}

.hero-gen-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-swatch {
  cursor: pointer;
  display: inline-block;
}

.hero-swatch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.hero-swatch-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-frost);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel-raised);
  font-weight: 800;
  color: var(--text-muted);
}

.hero-swatch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-swatch:has(input:checked) .hero-swatch-thumb {
  border-color: var(--ice-cyan);
  box-shadow: 0 0 0 3px rgba(79, 216, 255, 0.25);
}

.hero-swatch.is-locked .hero-swatch-thumb img {
  filter: grayscale(1) brightness(0.35);
}

.hero-swatch.is-locked {
  cursor: not-allowed;
}

.hero-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.25);
}

.none-swatch {
  margin-bottom: 14px;
  display: inline-block;
}

/* ---------- Star picker (review.php) ---------- */

.star-picker {
  display: flex;
  gap: 6px;
}

.star-picker-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--border-frost);
  transition: transform 0.1s, color 0.15s;
}

.star-picker-btn .icon {
  width: 30px;
  height: 30px;
}

.star-picker-btn:hover {
  transform: scale(1.15);
}

.star-picker-btn.active {
  color: var(--gold);
}

/* ---------- Leaderboard ---------- */

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 8px;
}

.leaderboard-rank {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.leaderboard-row:nth-child(1) .leaderboard-rank { background: var(--gradient-gold); color: #241300; }
.leaderboard-row:nth-child(2) .leaderboard-rank { background: linear-gradient(135deg, #dfe6ee, #9fb1c4); color: #12202e; }
.leaderboard-row:nth-child(3) .leaderboard-rank { background: linear-gradient(135deg, #e0a878, #a56239); color: #2a1200; }

.leaderboard-list {
  max-width: 720px;
  margin: 0 auto;
}

.leaderboard-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.monthly-prize-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 32px;
  background: linear-gradient(120deg, rgba(255, 207, 107, 0.14), rgba(157, 123, 255, 0.1));
  border-color: rgba(255, 207, 107, 0.35);
}

.monthly-prize-banner .icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.monthly-prize-banner strong {
  display: block;
  color: var(--gold);
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.monthly-prize-banner span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.leaderboard-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--gradient-panel);
  border: 1px solid var(--border-frost);
  box-shadow: var(--shadow-soft);
  width: 200px;
  text-align: center;
}

.podium-rank-1 {
  order: 2;
  padding-top: 32px;
  padding-bottom: 26px;
  width: 220px;
  border-color: rgba(255, 207, 107, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 207, 107, 0.25), 0 16px 40px rgba(0, 10, 30, 0.5);
  z-index: 1;
}

.podium-rank-2 { order: 1; }
.podium-rank-3 { order: 3; }

.podium-card.is-apex {
  border-color: rgba(122, 217, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 244, 194, 0.4), 0 16px 40px rgba(0, 10, 30, 0.5);
}

.podium-medal {
  font-size: 2rem;
  line-height: 1;
}

.podium-rank-1 .podium-medal {
  font-size: 2.6rem;
}

.podium-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 2px;
}

.podium-name.blurred {
  filter: blur(4px);
  user-select: none;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .leaderboard-podium { align-items: center; }
  .podium-rank-1, .podium-rank-2, .podium-rank-3 { order: initial; width: 100%; max-width: 260px; }
}

.leaderboard-row.is-apex {
  border-color: rgba(122, 217, 255, 0.5);
  background: linear-gradient(120deg, rgba(255, 244, 194, 0.1), rgba(122, 217, 255, 0.08));
}

.leaderboard-row.is-apex .leaderboard-rank {
  background: linear-gradient(135deg, #fff4c2, #7ad9ff);
  color: #1a1030;
  font-size: 1.1rem;
}

.leaderboard-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #041322;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
}

.leaderboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.leaderboard-avatar[class*="avatar-frame-"] {
  box-shadow: 0 0 0 2px var(--frame-c1, transparent);
}

.leaderboard-name-wrap {
  flex: 1;
  min-width: 0;
}

.leaderboard-name {
  font-weight: 700;
  font-size: 0.94rem;
}

.leaderboard-name.blurred {
  filter: blur(5px);
  user-select: none;
  color: var(--text-muted);
}

/* ---------- Cart ---------- */

.cart-line-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Cart page (list format) ---------- */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.cart-item-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr auto auto 36px;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.cart-item-media {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-deep);
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-media-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(5, 11, 24, 0.35), rgba(5, 11, 24, 0.75));
}

.cart-item-media-icon .icon-tier {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 10px rgba(79, 216, 255, 0.6));
}

.cart-item-info {
  min-width: 0;
}

.cart-item-info h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.cart-item-info h3 a {
  color: inherit;
  text-decoration: none;
}

.cart-item-substars {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cart-item-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-item-unit-price {
  color: var(--ice-cyan-bright);
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item-totals {
  text-align: right;
}

.cart-item-total {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ice-white);
  white-space: nowrap;
}

.savings-line span.discount {
  color: var(--success);
}

.cart-qty-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-frost);
  border-radius: 999px;
  padding: 4px 6px;
}

.cart-qty-stepper button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(79, 216, 255, 0.1);
  color: var(--ice-cyan-bright);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.cart-qty-stepper span {
  min-width: 18px;
  text-align: center;
  font-size: 0.88rem;
}

.cart-line-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 99, 99, 0.1);
  color: var(--danger);
  cursor: pointer;
  font-size: 1rem;
}

.cart-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(79, 216, 255, 0.06);
  border: 1px solid var(--border-frost);
  color: var(--ice-white);
  text-decoration: none;
}

.cart-icon-btn .icon {
  width: 18px;
  height: 18px;
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gradient-gold);
  color: #241300;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 64px 1fr;
    grid-template-areas: "media info" "stepper stepper" "totals remove";
    row-gap: 10px;
  }
  .cart-item-media { grid-area: media; width: 64px; height: 64px; }
  .cart-item-info { grid-area: info; }
  .cart-qty-stepper { grid-area: stepper; justify-self: start; }
  .cart-item-totals { grid-area: totals; text-align: left; }
  .cart-line-remove { grid-area: remove; justify-self: end; }
}

/* ---------- Legal pages ---------- */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 6vw 80px;
  line-height: 1.7;
}

.legal-page h1 {
  font-size: 2rem;
  margin: 0 0 6px;
}

.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 36px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
  color: var(--ice-cyan-bright);
}

.legal-page p, .legal-page li {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.legal-page ul, .legal-page ol {
  padding-left: 22px;
}

.legal-page strong {
  color: var(--ice-white);
}

.legal-callout {
  padding: 18px 20px;
  border-radius: var(--radius);
  margin: 24px 0;
}

.legal-callout.danger {
  background: rgba(255, 99, 99, 0.08);
  border: 1px solid rgba(255, 99, 99, 0.3);
}

.legal-callout.danger strong { color: var(--danger); }

.legal-callout.info {
  background: rgba(79, 216, 255, 0.06);
  border: 1px solid var(--border-frost);
}

.checkout-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: var(--space-4) 0;
}

.checkout-divider::before,
.checkout-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-frost);
}

.promo-field-row {
  display: flex;
  gap: 8px;
}

.promo-field-row input {
  flex: 1;
}

.promo-field-row button {
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--border-frost);
  background: rgba(79, 216, 255, 0.1);
  color: var(--ice-cyan-bright);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- FAQ page search ---------- */

.faq-search {
  max-width: 560px;
  margin: 0 auto var(--space-5);
  position: relative;
}

.faq-search input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border-radius: 999px;
  border: 1px solid var(--border-frost);
  background: var(--bg-panel);
  color: var(--ice-white);
  font-size: 0.95rem;
}

.faq-search input:focus {
  outline: none;
  border-color: var(--ice-cyan);
}

.faq-search .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.faq-category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-4);
}

section.faq-page {
  position: relative;
  overflow: hidden;
  max-width: 1640px;
}

.faq-page > .faq-page-content {
  position: relative;
  z-index: 1;
  padding: 0 260px;
}

.faq-hero-art {
  position: absolute;
  top: 50%;
  transform: translateY(-46%);
  width: 280px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 40px rgba(79, 216, 255, 0.15));
}

.faq-hero-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.faq-hero-art.faq-hero-left { left: 0; }
.faq-hero-art.faq-hero-right { right: 0; }

@media (max-width: 1500px) {
  .faq-hero-art { display: none; }
  .faq-page > .faq-page-content { padding: 0; }
}

.checkout-layout.faq-layout {
  max-width: 1360px;
  grid-template-columns: 1fr 340px;
  padding: 0;
}

/* CSS columns, not grid -- a grid row stretches every cell in it to match
   the tallest (so a closed item next to an opened one visually inflates
   to the same height, looking like it opened too). Columns flow each item
   independently, so opening one never affects another's box size. */
.faq-accordion.faq-accordion-grid {
  columns: 2;
  column-gap: 20px;
  max-width: none;
}

.faq-accordion.faq-accordion-grid .faq-item {
  break-inside: avoid;
}

@media (max-width: 780px) {
  .faq-accordion.faq-accordion-grid { columns: 1; }
}

/* ---------- Help center ---------- */

.help-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.help-topic-card {
  padding: var(--space-4);
  text-decoration: none;
  color: var(--ice-white);
  display: block;
}

.help-topic-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(79, 216, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.help-topic-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.help-topic-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.help-contact-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

/* ---------- Order progress steps (order-status.php) ---------- */

.order-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin: var(--space-4) 0 var(--space-5);
}

.order-progress-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.order-progress-step .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 2px solid var(--border-frost);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.order-progress-step.done .dot {
  background: var(--gradient-ice);
  border-color: transparent;
  color: #041322;
}

.order-progress-step.current .dot {
  border-color: var(--ice-cyan);
  color: var(--ice-cyan-bright);
  box-shadow: 0 0 0 4px rgba(79, 216, 255, 0.15);
}

.order-progress-step::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-frost);
  z-index: 0;
}

.order-progress-step:first-child::before {
  display: none;
}

.order-progress-step.done::before {
  background: var(--ice-cyan);
}

.order-progress-step span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.order-progress-step.done span,
.order-progress-step.current span {
  color: var(--ice-white);
}

/* ---------- Footer expansion ---------- */

footer.site-footer {
  text-align: left;
  padding: var(--space-6) 6vw var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-4);
  max-width: 1240px;
  margin: 0 auto var(--space-5);
}

.footer-col h5 {
  color: var(--ice-white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--ice-cyan-bright);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.86rem;
  max-width: 280px;
  margin: 10px 0 0;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-frost);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .auth-split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .order-progress { flex-wrap: wrap; }
}

/* ---------- Icon sprite sizing ---------- */

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

.icon-tier {
  width: 48px;
  height: 48px;
}

.icon-resource {
  width: 26px;
  height: 26px;
}

.icon-pay {
  width: 42px;
  height: 26px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.icon-social {
  width: 18px;
  height: 18px;
}

.social-icons-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 216, 255, 0.08);
  border: 1px solid var(--border-frost);
  color: var(--text-muted);
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}

.social-icon-btn:hover {
  color: var(--ice-cyan-bright);
  border-color: var(--ice-cyan);
  transform: translateY(-2px);
}

.rarity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rarity-badge .icon { width: 10px; height: 10px; }

.rarity-common { background: rgba(146, 168, 201, 0.15); color: var(--text-muted); }
.rarity-rare { background: rgba(79, 216, 255, 0.15); color: var(--ice-cyan-bright); }
.rarity-epic { background: rgba(157, 123, 255, 0.18); color: var(--purple); }
.rarity-legendary { background: rgba(255, 207, 107, 0.18); color: var(--gold); }
.rarity-mythic { background: linear-gradient(90deg, rgba(255,159,91,0.2), rgba(157,123,255,0.2)); color: #ffb0e0; }

.resource-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.resource-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-frost);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Product detail page ---------- */

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-5);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto 60px;
}

.product-gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gradient-panel);
  border: 1px solid var(--border-frost);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.product-gallery-thumbs button {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-frost);
  padding: 0;
  cursor: pointer;
  background: var(--bg-panel);
}

.product-gallery-thumbs button.active {
  border-color: var(--ice-cyan);
}

.product-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-price-block {
  margin: 20px 0;
}

.product-price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ice-cyan-bright);
}

.product-price-amount .unit {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.review-card {
  position: relative;
  padding: 24px 22px 20px;
  overflow: hidden;
}

.review-card-quote-mark {
  position: absolute;
  top: -6px;
  right: 14px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--border-frost);
  line-height: 1;
  pointer-events: none;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-purple);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--bg-panel-raised), 0 0 0 3px var(--border-frost-strong);
}

.review-card-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.review-card-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  color: var(--success);
  background: rgba(120, 220, 150, 0.12);
  border: 1px solid rgba(120, 220, 150, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.verified-badge .icon { width: 9px; height: 9px; }

.automatic-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(120, 200, 255, 0.08);
  border: 1px solid var(--border-frost);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
}

.review-stars .icon { width: 15px; height: 15px; }
.review-stars .star-on { color: var(--gold); }
.review-stars .star-off { color: var(--border-frost); }

.review-card-body {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.review-card-package {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--ice-cyan-bright);
  text-decoration: none;
  padding-top: 12px;
  border-top: 1px solid var(--border-frost);
  width: 100%;
}

/* ---------- Reviews hub page ---------- */

.rating-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.rating-hero-score {
  text-align: center;
  padding-right: var(--space-5);
  border-right: 1px solid var(--border-frost);
}

.rating-hero-score strong {
  display: block;
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), #ff9f5b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.rating-hero-score .review-stars {
  justify-content: center;
  margin: 8px 0 4px;
}

.rating-hero-score .review-stars .icon { width: 18px; height: 18px; }

.rating-hero-score span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.rating-distribution-row {
  display: grid;
  grid-template-columns: 50px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.rating-distribution-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.rating-distribution-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ff9f5b);
  border-radius: 999px;
}

.review-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: var(--space-4);
}

@media (max-width: 640px) {
  .rating-hero { grid-template-columns: 1fr; text-align: center; }
  .rating-hero-score { border-right: none; border-bottom: 1px solid var(--border-frost); padding: 0 0 20px; }
}

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
}

/* ---------- Guides (guides.php / guide.php) ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.guide-card {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  padding: 0;
  transition: transform 0.2s, border-color 0.2s;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 216, 255, 0.4);
}

.guide-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-panel-raised);
}

.guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card-body {
  padding: 18px 20px 20px;
}

.guide-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ice-cyan-bright);
  background: rgba(79, 216, 255, 0.12);
  border: 1px solid rgba(79, 216, 255, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.guide-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.guide-card-body p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.guide-card-meta {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.guide-article {
  max-width: 760px;
  margin: 0 auto;
}

.guide-article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 16 / 7;
}

.guide-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-article h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.guide-article-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 30px;
}

.guide-article-body h2 {
  font-size: 1.3rem;
  margin: 34px 0 14px;
  color: var(--ice-cyan-bright);
}

.guide-article-body p {
  line-height: 1.8;
  color: var(--ice-white);
  margin: 0 0 16px;
}

.guide-article-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
  line-height: 1.8;
  color: var(--ice-white);
}

.guide-article-body li {
  margin-bottom: 6px;
}

.guide-article-body a {
  color: var(--ice-cyan-bright);
  text-decoration: underline;
}
