/* ============================================
   CobbleStar - Nuit Cosmique
   A distinctive, production-grade design
   No AI slop. No generic templates.
   ============================================ */

/* ─── Tokens ─── */
:root {
  /* Backgrounds - purple tinted */
  --bg-deep: #0a0815;
  --bg-surface: #0f0c1a;
  --bg-elevated: #181228;
  --bg-card: rgba(20, 14, 38, 0.82);
  --bg-card-hover: rgba(30, 22, 52, 0.92);

  /* Accent palette */
  --amber: #e8a838;
  --amber-soft: #f5c563;
  --amber-glow: rgba(232, 168, 56, 0.2);
  --amber-intense: rgba(232, 168, 56, 0.45);
  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.08);
  --purple: #a78bfa;
  --purple-mid: #8b5cf6;
  --purple-deep: #6d28d9;
  --purple-glow: rgba(139, 92, 246, 0.2);
  --purple-intense: rgba(139, 92, 246, 0.4);
  --pink: #d946ef;
  --pink-glow: rgba(217, 70, 239, 0.15);
  --green: #34d399;

  /* Text */
  --text: #ede8f5;
  --text-dim: #8b80a8;
  --text-muted: #564d6e;

  /* Borders */
  --border: rgba(139, 92, 246, 0.1);
  --border-accent: rgba(232, 168, 56, 0.18);

  /* Typography */
  --ff-display: 'Outfit', sans-serif;
  --ff-body: 'DM Sans', sans-serif;

  /* Spacing & Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ─── Full-page Background Image (subtle on sub-pages) ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('../img/chadrixy-cobblemon8.jpg') center center / cover no-repeat;
  opacity: 0.06;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 8, 21, 0.3) 0%, rgba(10, 8, 21, 0.9) 60%, rgba(10, 8, 21, 0.98) 100%);
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover { color: var(--amber-soft); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

img { max-width: 100%; height: auto; }

::selection {
  background: var(--purple-mid);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: var(--purple-deep);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple-mid); }

/* ─── Starfield Canvas ─── */
.cs-starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Noise Overlay ─── */
.cs-noise {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─── Loading Screen ─── */
.cs-loading {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  background-image: radial-gradient(ellipse at 50% 50%, rgba(109, 40, 217, 0.08), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.cs-loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.cs-loading-inner {
  text-align: center;
}

.cs-loading-star {
  font-size: 2.5rem;
  color: var(--amber);
  animation: loadPulse 1.2s ease-in-out infinite;
  display: block;
  margin-bottom: 0.75rem;
}

@keyframes loadPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.15) rotate(72deg); opacity: 0.6; }
}

.cs-loading-text {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.cs-loading-bar {
  width: 140px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.cs-loading-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple-mid), var(--amber));
  border-radius: 2px;
  animation: loadBar 1.4s var(--ease) forwards;
}

@keyframes loadBar {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ─── Navbar ─── */
.cs-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  background: rgba(10, 8, 21, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.cs-navbar.scrolled {
  background: rgba(10, 8, 21, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(90, 40, 180, 0.15);
}

.cs-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.cs-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.cs-logo-star {
  font-size: 1.5rem;
  color: var(--amber);
  filter: drop-shadow(0 0 8px var(--purple-glow));
  animation: starBreathe 3s ease-in-out infinite;
}

@keyframes starBreathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px var(--purple-glow)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 14px var(--purple-intense)); }
}

.cs-logo-text {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 2px;
}

/* Nav links */
.cs-nav-center {
  display: flex;
  align-items: center;
  gap: 2px;
}

.cs-nav-link {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dim) !important;
  padding: 0.45rem 1rem;
  border-radius: var(--r-sm);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  position: relative;
}

.cs-nav-link:hover,
.cs-nav-link.active {
  color: var(--text) !important;
  background: rgba(139, 92, 246, 0.08);
}

.cs-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-mid), var(--amber));
  border-radius: 2px;
}

.cs-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Online badge */
.cs-online-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 20px;
  padding: 4px 14px;
}

.cs-online-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

/* Burger */
.cs-burger {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 38px;
}

.cs-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--purple);
  border-radius: 1px;
  transition: 0.3s var(--ease);
}

/* Mobile menu */
.cs-mobile-menu {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ─── Buttons ─── */
.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  text-decoration: none;
  line-height: 1.3;
}

.cs-btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, #d4922e 100%);
  color: var(--bg-deep);
  box-shadow: 0 4px 20px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}

.cs-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--amber-intense);
  color: var(--bg-deep);
}

.cs-btn-ghost {
  background: rgba(139, 92, 246, 0.06);
  color: var(--text);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.cs-btn-ghost:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--text);
  transform: translateY(-3px);
}

.cs-btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.cs-btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ─── Pill / Badge ─── */
.cs-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 30px;
  padding: 6px 18px;
  font-family: var(--ff-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.cs-pill--small {
  font-size: 0.72rem;
  padding: 5px 14px;
  margin-bottom: 1rem;
}

/* ─── Glow Text ─── */
.cs-glow-text {
  background: linear-gradient(135deg, var(--purple-mid) 0%, var(--amber) 50%, var(--amber-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px var(--purple-glow));
}

.cs-glow-text-light {
  color: var(--amber-soft);
  text-shadow: 0 0 30px var(--amber-glow);
}

/* ─── HERO ─── */
.cs-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 60px;
}

/* Hero background image (chadrixy) */
.cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../img/chadrixy-cobblemon8.jpg') center center / cover no-repeat;
  opacity: 0.35;
}

.cs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 21, 0.15) 0%, rgba(10, 8, 21, 0.4) 50%, rgba(10, 8, 21, 0.95) 90%, var(--bg-deep) 100%),
    radial-gradient(ellipse 60% 70% at 30% 60%, rgba(10, 8, 21, 0.45) 0%, transparent 70%);
}

/* Hero background layers */
.cs-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cs-hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(109, 40, 217, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(232, 168, 56, 0.05) 0%, transparent 50%);
}

.cs-hero-stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 15%, rgba(232, 168, 56, 0.7), transparent),
    radial-gradient(1px 1px at 25% 35%, rgba(200, 180, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 45% 8%, rgba(139, 92, 246, 0.6), transparent),
    radial-gradient(1px 1px at 60% 42%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 80% 18%, rgba(232, 168, 56, 0.6), transparent),
    radial-gradient(1px 1px at 90% 55%, rgba(139, 92, 246, 0.5), transparent),
    radial-gradient(1px 1px at 15% 70%, rgba(200, 180, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 70% 65%, rgba(109, 40, 217, 0.4), transparent),
    radial-gradient(1px 1px at 35% 85%, rgba(232, 168, 56, 0.3), transparent),
    radial-gradient(1px 1px at 55% 75%, rgba(217, 70, 239, 0.25), transparent),
    radial-gradient(2px 2px at 5% 45%, rgba(139, 92, 246, 0.55), transparent),
    radial-gradient(1px 1px at 95% 35%, rgba(255, 255, 255, 0.35), transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.cs-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.cs-hero-orb--warm {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.15), transparent 70%);
  top: -10%;
  right: 5%;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.cs-hero-orb--cool {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
  bottom: -5%;
  left: 10%;
  animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, -20px); }
}

/* Hero grid */
.cs-hero-container {
  position: relative;
  z-index: 2;
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 160px);
}

/* Hero content (left) */
.cs-hero-content {
  padding-right: 2rem;
}

.cs-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.cs-hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cs-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Hero stats */
.cs-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 0;
  max-width: 420px;
}

.cs-stat {
  flex: 1;
  text-align: center;
  padding: 0 1.25rem;
}

.cs-stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber);
}

.cs-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.cs-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Hero visual (right) */
.cs-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cs-hero-pokemon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-pokemon-aura {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12) 0%, rgba(56, 189, 248, 0.06) 40%, transparent 70%);
  filter: blur(40px);
  animation: auraPulse 4s ease-in-out infinite;
}

@keyframes auraPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.cs-hero-pokemon {
  position: relative;
  z-index: 2;
  width: 420px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(167, 139, 250, 0.2)) drop-shadow(0 0 40px rgba(56, 189, 248, 0.1));
  animation: pokemonFloat 5s ease-in-out infinite;
}

@keyframes pokemonFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* ─── Interactive Hero Logo ─── */
.cs-hero-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
  cursor: pointer;
}

.cs-hero-logo-img {
  position: relative;
  z-index: 2;
  width: 460px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(109, 40, 217, 0.35)) drop-shadow(0 0 50px rgba(139, 92, 246, 0.2));
  transition: transform 0.15s var(--ease-out), filter 0.3s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

.cs-hero-logo-wrap:hover .cs-hero-logo-img {
  filter: drop-shadow(0 30px 80px rgba(109, 40, 217, 0.45)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.3));
}

.cs-logo-aura {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(109, 40, 217, 0.1) 40%, transparent 70%);
  filter: blur(50px);
  animation: auraPulse 4s ease-in-out infinite;
  transition: opacity 0.3s var(--ease);
}

.cs-hero-logo-wrap:hover .cs-logo-aura {
  opacity: 1;
}

.cs-logo-shine {
  display: none;
}

/* Floating Deco Pokemon */
.cs-deco-pokemon {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 30px rgba(232, 168, 56, 0.15));
}

.cs-deco-umbreon {
  width: 160px;
  bottom: 4%;
  left: 3%;
  opacity: 0.22;
  animation: decoFloat 7s ease-in-out infinite;
}

.cs-deco-boutique {
  width: 180px;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  opacity: 0.15;
  animation: decoFloat 6s ease-in-out infinite;
}

@keyframes decoFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* ─── SECTIONS ─── */
.cs-section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.cs-section--features {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 40%, var(--bg-deep) 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.06);
}

.cs-section--cta {
  padding: 80px 0 120px;
}

/* Section header */
.cs-section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.cs-section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.cs-section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Features ─── */
.cs-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.cs-feature {
  position: relative;
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.35s var(--ease-spring), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  overflow: hidden;
}

.cs-feature:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 12px 40px rgba(90, 40, 180, 0.12), 0 0 0 1px rgba(139, 92, 246, 0.15);
  background: var(--bg-card-hover);
}

.cs-feature-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--purple-mid), var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.cs-feature:hover .cs-feature-accent {
  opacity: 1;
}

.cs-feature-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--r-md);
  font-size: 1.4rem;
  color: var(--purple);
  transition: transform 0.35s var(--ease-spring), background 0.35s var(--ease);
}

.cs-feature:hover .cs-feature-icon {
  transform: scale(1.08);
  background: rgba(139, 92, 246, 0.2);
}

.cs-feature-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cs-feature-body p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ─── CTA ─── */
.cs-cta {
  position: relative;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(139, 92, 246, 0.08) 50%, var(--bg-elevated) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--r-xl);
  padding: 4rem 3.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.cs-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(232, 168, 56, 0.12), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.2), transparent 50%);
  opacity: 0.6;
}

.cs-cta-pokemon {
  position: relative;
  z-index: 2;
  width: 200px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 40px var(--amber-glow));
  animation: jirachiFloat 4s ease-in-out infinite;
}

@keyframes jirachiFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

.cs-cta-body {
  position: relative;
  z-index: 2;
  flex: 1;
}

.cs-cta-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.cs-cta-body p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 500px;
}

.cs-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Footer ─── */
.cs-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.cs-footer-brand {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.cs-footer-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.cs-footer-socials {
  display: flex;
  gap: 8px;
}

.cs-footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1rem;
  transition: all 0.3s var(--ease-spring);
}

.cs-footer-socials a:hover {
  background: var(--purple-mid);
  color: #fff;
  border-color: var(--purple-mid);
  transform: translateY(-3px);
}

.cs-footer h5 {
  font-family: var(--ff-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.cs-footer-links {
  list-style: none;
  padding: 0;
}

.cs-footer-links li {
  margin-bottom: 8px;
}

.cs-footer-links a,
.cs-footer-links span {
  color: var(--text-dim);
  font-size: 0.88rem;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.cs-footer-links a:hover {
  color: var(--amber);
  padding-left: 4px;
}

.cs-link-glow {
  color: var(--green) !important;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

.cs-footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cs-footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.cs-footer-legal {
  display: flex;
  gap: 16px;
}

.cs-footer-legal a {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.cs-footer-legal a:hover {
  color: var(--amber);
}

.cs-footer-disclaimer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  opacity: 0.7;
}

/* ─── Back to Top ─── */
.cs-totop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--bg-elevated);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  color: var(--purple);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-totop.visible {
  opacity: 1;
  visibility: visible;
}

.cs-totop:hover {
  transform: translateY(-4px);
  background: var(--purple-mid);
  color: #fff;
  border-color: var(--purple-mid);
  box-shadow: 0 6px 24px var(--purple-glow);
}

/* ─── Scroll Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.fade-done {
  transition: none;
}

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

/* ─── Page Header (sub-pages) ─── */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 10, 30, 0.3) 0%, var(--bg-deep) 100%);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
  justify-content: center;
  margin-bottom: 0;
}

.page-header .breadcrumb-item {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-header .breadcrumb-item a {
  color: var(--text-dim);
}

.page-header .breadcrumb-item.active {
  color: var(--amber);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}

/* ─── Shop Tabs ─── */
.cs-shop-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
  justify-content: center;
}

.cs-shop-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 28px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cs-shop-tab:hover {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.3);
}

.cs-shop-tab.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(232, 168, 56, 0.1));
  border-color: var(--purple-mid);
  color: var(--text);
  box-shadow: 0 0 16px var(--purple-glow);
}

.cs-tab-content {
  display: none;
}

.cs-tab-content.active {
  display: block;
}

/* ─── Grade Cards ─── */
.grade-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: transform 0.35s var(--ease-spring), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.grade-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(90, 40, 180, 0.15);
}

.grade-card.grade-popular {
  border-color: var(--purple-mid);
  box-shadow: 0 0 20px var(--purple-glow);
}

.grade-card.grade-popular::before {
  content: 'POPULAIRE';
  position: absolute;
  top: 16px;
  right: -30px;
  background: linear-gradient(135deg, var(--purple-mid), var(--amber));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 40px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

.grade-card-header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.grade-card-name {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.grade-card-price {
  margin-top: 0.5rem;
}

.grade-card-price .current-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.grade-card-price .currency {
  font-size: 1rem;
  color: var(--text-dim);
}

.grade-card-section {
  margin-bottom: 1rem;
}

.grade-card-section-title {
  font-family: var(--ff-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.grade-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.grade-card-list li {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 3px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.grade-card-list li::before {
  content: '✦';
  color: var(--purple);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.grade-card-list li.highlight {
  color: var(--text);
  font-weight: 600;
}

.grade-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
}

.grade-card-includes {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

.grade-card-list code {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: var(--ff-body);
  font-weight: 600;
}

/* ─── Shop Sidebar (isolate from main grid repaints) ─── */
.shop-sidebar {
  align-self: flex-start;
}

/* ─── Shop Cards (for boutique page) ─── */
.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
  transition: transform 0.35s var(--ease-spring), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
}

.shop-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(90, 40, 180, 0.15);
}

.shop-card.popular {
  border-color: var(--purple-mid);
  box-shadow: 0 0 20px var(--purple-glow);
}

.shop-card.popular::before {
  content: 'POPULAIRE';
  position: absolute;
  top: 16px;
  right: -30px;
  background: linear-gradient(135deg, var(--purple-mid), var(--amber));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 40px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

.shop-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: rgba(139, 92, 246, 0.12);
  border: 2px solid rgba(139, 92, 246, 0.2);
}

.shop-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.shop-card-stars {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.shop-card-stars span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber-soft);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shop-card-credits {
  color: var(--amber);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.shop-card-bonus {
  display: inline-block;
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.shop-card-price { margin-bottom: 1.5rem; }

.shop-card-price .old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-right: 8px;
}

.shop-card-price .current-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.shop-card-price .currency {
  font-size: 1rem;
  color: var(--text-dim);
}

/* ─── Recent Purchases ─── */
.recent-purchases {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}

.recent-purchases h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 8px;
}

.purchase-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.purchase-item:last-child { border-bottom: none; }

.purchase-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--bg-elevated);
}

.purchase-info { flex: 1; }
.purchase-name { font-size: 0.85rem; font-weight: 600; }
.purchase-amount { font-size: 0.75rem; color: var(--green); }

/* ─── Goal Progress ─── */
.goal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.goal-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--amber);
}

.goal-description {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.progress-bar-wrapper {
  background: rgba(139, 92, 246, 0.08);
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-mid), var(--amber));
  border-radius: 10px;
  transition: width 1.5s var(--ease);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

/* ─── Launcher/Join ─── */
.launcher-section { text-align: center; }

.os-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.os-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  min-width: 220px;
  flex: 1;
  max-width: 280px;
  transition: all 0.35s var(--ease-spring);
  text-align: center;
}

.os-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(90, 40, 180, 0.15);
}

.os-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--purple);
}

.os-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.os-card p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* ─── Steps ─── */
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.35s var(--ease);
}

.step-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  background: var(--bg-card-hover);
}

.step-number {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.step-content h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.step-content p { color: var(--text-dim); font-size: 0.9rem; }

/* ─── Search Bar ─── */
.search-bar {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px 12px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--ff-body);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ─── Toast ─── */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s var(--ease-spring);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification .toast-icon { font-size: 1.5rem; color: var(--purple); }
.toast-notification .toast-text { font-size: 0.9rem; }

.toast-notification .toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  margin-left: 8px;
}

/* ─── Legal Pages ─── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 80px;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--amber);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--purple);
}

.legal-content p,
.legal-content li {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul { padding-left: 1.5rem; }

/* ─── Glass Card ─── */
.cs-glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem;
}

.cs-glass--accent {
  border-color: rgba(167, 139, 250, 0.15);
}

/* ─── FAQ ─── */
.cs-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.25s var(--ease);
}

.cs-faq-item:hover {
  border-color: rgba(139, 92, 246, 0.25);
}

.cs-faq-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.25s var(--ease);
}

.cs-faq-btn:hover { color: var(--amber); }
.cs-faq-btn i { color: var(--amber); }

.cs-faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  display: none;
}

/* ─── Config Table ─── */
.cs-config-table {
  width: 100%;
  font-size: 0.9rem;
}

.cs-config-table tr {
  border-bottom: 1px solid var(--border);
}

.cs-config-table tr:last-child {
  border-bottom: none;
}

.cs-config-table td {
  padding: 10px 0;
}

.cs-config-table td:first-child {
  color: var(--text-muted);
  width: 40%;
}

.cs-config-table td:last-child {
  font-weight: 600;
}

/* ─── Login Modal ─── */
.cs-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 21, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.cs-login-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cs-login-modal {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s var(--ease-spring);
  box-shadow: 0 24px 80px rgba(90, 40, 180, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.cs-login-overlay.active .cs-login-modal {
  transform: translateY(0) scale(1);
}

.cs-login-modal h3 {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cs-login-modal p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.cs-login-modal .cs-login-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--ff-body);
  margin-bottom: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cs-login-modal .cs-login-input:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.cs-login-modal .cs-login-input::placeholder {
  color: var(--text-muted);
}

.cs-login-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s var(--ease);
}

.cs-login-close:hover {
  color: var(--text);
}

/* ─── Navbar User Badge ─── */
.cs-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  padding: 4px 14px 4px 4px;
  cursor: default;
}

.cs-user-badge .cs-avatar {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 2px solid var(--purple-mid);
  image-rendering: pixelated;
}

.cs-user-badge .cs-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.cs-btn-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  margin-left: 2px;
  transition: color 0.2s var(--ease);
  display: flex;
  align-items: center;
}

.cs-btn-logout:hover {
  color: #ef4444;
}

.cs-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  font-family: var(--ff-body);
}

.cs-btn-login:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
}

/* ─── Avatar for purchases & supporter ─── */
.cs-avatar {
  image-rendering: pixelated;
  border-radius: 4px;
  border: 2px solid var(--purple-mid);
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ─── Utility ─── */
.text-gold { color: var(--amber) !important; }
.text-accent { color: var(--purple) !important; }
.text-success { color: var(--green) !important; }

/* ─── Responsive ─── */
@media (max-width: 992px) {
  .cs-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .cs-hero-content {
    padding-right: 0;
    order: 1;
  }

  .cs-hero-visual {
    order: 0;
  }

  .cs-hero-pokemon {
    width: 280px;
  }

  .cs-hero-logo-img {
    width: 320px;
  }

  .cs-logo-aura {
    width: 300px;
    height: 300px;
  }

  .cs-pokemon-aura {
    width: 260px;
    height: 260px;
  }

  .cs-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .cs-hero-btns {
    justify-content: center;
  }

  .cs-hero-stats {
    margin: 0 auto;
  }

  .cs-features {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .cs-cta {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
  }

  .cs-cta-pokemon {
    width: 140px;
  }

  .cs-cta-body p {
    margin-left: auto;
    margin-right: auto;
  }

  .cs-cta-actions {
    justify-content: center;
  }

  .cs-section {
    padding: 70px 0;
  }

  .cs-deco-umbreon {
    width: 100px;
    opacity: 0.12;
  }
}

@media (max-width: 768px) {
  .cs-hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .cs-hero-pokemon {
    width: 200px;
  }

  .cs-hero-logo-img {
    width: 240px;
  }

  .cs-hero-stats {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .cs-stat {
    padding: 0.75rem 1.25rem;
  }

  .cs-stat-sep {
    width: 60%;
    height: 1px;
    margin: 0 auto;
  }

  .cs-hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .cs-cta {
    padding: 2rem 1.5rem;
  }

  .cs-cta-pokemon {
    width: 110px;
  }

  .cs-section {
    padding: 50px 0;
  }

  .cs-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .os-cards {
    flex-direction: column;
    align-items: center;
  }

  .os-card { max-width: 100%; }
}

@media (max-width: 576px) {
  .cs-hero-title {
    font-size: 1.8rem;
  }

  .cs-online-badge { display: none; }

  .cs-deco-umbreon { display: none; }
}
