/* ===========================================================
   Repetir Boutique — component styles (React mock)
   Ported 1:1 from the static HTML prototype. Tokens come from
   tokens.css (the design system). Nothing here invents new
   colors — everything references the CSS variables.
   =========================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 1080px; }
.wrap--orders { max-width: 920px; }
.wordmark { font-family: var(--font-script); font-weight: 700;
  background: var(--gradient-wordmark); -webkit-background-clip: text; background-clip: text; color: transparent; }

.dot-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--border) 1.4px, transparent 1.4px);
  background-size: 16px 16px; opacity: .55; pointer-events: none;
}

/* ---------- Push buttons (Duolingo 3D) ---------- */
.btn {
  font-family: var(--font-sans); font-weight: 800; font-size: 16px;
  border: none; cursor: pointer; color: #fff;
  background: var(--btn, var(--primary));
  box-shadow: 0 4px 0 0 var(--push, #3f43d9);
  border-radius: var(--radius-md);
  padding: 14px 26px;
  transition: transform .1s ease-out, box-shadow .1s ease-out, filter .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 0 var(--push, #3f43d9); }
.btn--accent  { --btn: var(--accent);  --push: #cc7415; }
.btn--success { --btn: var(--success); --push: #46a802; }
.btn--pink    { --btn: var(--game-pink); --push: #c23e52; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: var(--radius-sm); box-shadow: 0 3px 0 0 var(--push, #3f43d9); }
.btn--sm:active { box-shadow: 0 0 0 0 var(--push); transform: translateY(3px); }
.btn--ghost { background: #fff; color: var(--primary); box-shadow: 0 4px 0 0 var(--border); }
.btn--ghost:active { box-shadow: 0 0 0 0 var(--border); }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.3); }
.btn[disabled]:active { transform: none; box-shadow: 0 4px 0 0 var(--push, #3f43d9); }

/* ---------- Construction banner ---------- */
.construction-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 16px; text-align: center;
  background: repeating-linear-gradient(45deg, #ffce54 0 18px, #f7b500 18px 36px);
  color: #3a2a00; font-weight: 700; font-size: 14px; line-height: 1.3;
  border-bottom: 2px solid #d99a00; z-index: 70;
}
.construction-bar strong { font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.construction-bar__icon { font-size: 16px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.15)); }
@media (max-width: 560px) { .construction-bar { font-size: 12.5px; padding: 8px 12px; } }

/* ---------- Header (shared across pages) ---------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: hsl(40 60% 98% / .82); backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
}
.hbar { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand .wm { font-size: 30px; }
.brand .shop { font-family: var(--font-sans); font-weight: 800; font-size: 14px;
  color: var(--accent); background: var(--muted); padding: 3px 10px; border-radius: 999px; }
.brand .store { font-family: var(--font-sans); font-weight: 800; font-size: 22px; letter-spacing: -.01em;
  color: var(--muted-foreground); }
.account-stats { display: flex; gap: 8px; padding: 2px 8px 10px; }
.as-pill { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 12px;
  background: var(--muted); border-radius: 999px; padding: 5px 10px; }
.as-pill.fire { color: var(--accent); }
.as-pill.xp { color: var(--warning); }
.lang-pick .cf { font-size: 15px; }
.nav { display: flex; gap: 4px; margin-left: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; white-space: nowrap; font-weight: 700; font-size: 15px; color: var(--muted-foreground); text-decoration: none;
  padding: 8px 12px; border-radius: var(--radius-sm); transition: background .15s, color .15s; cursor: pointer; }
.nav a:hover, .nav a.active { background: var(--muted); color: var(--foreground); }
.back { margin-left: auto; font-weight: 800; font-size: 14px; color: var(--muted-foreground); text-decoration: none; background: none; border: 0; cursor: pointer; }
.back:hover { color: var(--foreground); }
.hright { margin-left: auto; flex: none; display: flex; align-items: center; gap: 10px; }

/* Country picker */
.country-pick { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 2px solid var(--border);
  border-radius: 999px; padding: 5px 10px 5px 12px; cursor: pointer; transition: border-color .15s; }
.country-pick:hover { border-color: var(--accent); }
.country-pick .cf { font-size: 16px; line-height: 1; }
.country-pick select { border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 14px;
  color: var(--foreground); cursor: pointer; -webkit-appearance: none; appearance: none; outline: none; padding: 0; }
.country-pick .cc { font-size: 11px; color: var(--muted-foreground); margin-left: -2px; pointer-events: none; }

/* Account menu + spaces */
.account { position: relative; flex: none; }
.account-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--accent); color: #fff; cursor: pointer; font-weight: 900; font-size: 15px; letter-spacing: .5px;
  display: grid; place-items: center; transition: transform .12s; font-family: var(--font-sans); }
.account-btn:hover { transform: scale(1.06); }
.account-btn .status-dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px;
  border-radius: 50%; background: #38b000; border: 2px solid #fff; }
.account-menu { position: absolute; top: 56px; right: 0; min-width: 230px; background: #fff;
  border: 2px solid var(--border); border-radius: 16px; box-shadow: 0 18px 44px rgba(40,30,15,.18);
  padding: 8px; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .16s, transform .16s; z-index: 80; }
.account.open .account-menu { opacity: 1; transform: none; pointer-events: auto; }
.account-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; border-bottom: 2px solid var(--border); margin-bottom: 6px; }
.account-head .av { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.account-head .nm { font-weight: 800; font-size: 14px; color: var(--foreground); line-height: 1.2; }
.account-head .em { font-size: 12px; color: var(--muted-foreground); }
.account-menu a, .account-menu .mi-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: 0; font: inherit; font-weight: 700; font-size: 14px; color: var(--foreground);
  text-decoration: none; padding: 9px 10px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.account-menu a:hover, .account-menu .mi-btn:hover { background: var(--muted); }
.account-menu .logout { color: #d62828; }
.account-menu .sep { height: 2px; background: var(--border); margin: 6px 2px; border: 0; }
.menu-label { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); padding: 2px 10px 6px; }
.space-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.space-row:hover, .space-row.active { background: var(--muted); }
.space-row .sav { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; }
.space-row .sinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.space-row .sn { font-weight: 800; font-size: 14px; color: var(--foreground); line-height: 1.15; }
.space-row .sx { font-weight: 800; font-size: 12px; color: var(--warning); }
.space-row .schk { flex: none; width: 16px; color: var(--accent); font-weight: 900; opacity: 0; }
.space-row.active .schk { opacity: 1; }

.stat-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px;
  background: #fff; border: 2px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.stat-pill.fire { color: var(--accent); }
.stat-pill.xp { color: var(--warning); }
.orders-link { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--border);
  background: #fff; cursor: pointer; font-size: 20px; display: grid; place-items: center; text-decoration: none; transition: transform .12s; }
.orders-link:hover { transform: scale(1.06); }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--border);
  background: #fff; cursor: pointer; font-size: 20px; display: grid; place-items: center; transition: transform .12s; }
.cart-btn:hover { transform: scale(1.06); }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px;
  background: var(--game-red); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 900;
  display: grid; place-items: center; border: 2px solid var(--background); }
.cart-badge.bump { animation: badge-bump .4s var(--ease-bounce); }
@keyframes badge-bump { 0%{ transform: scale(1);} 40%{ transform: scale(1.5);} 100%{ transform: scale(1);} }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .5; pointer-events: none; }
.hero .blob.b1 { width: 460px; height: 460px; background: #ffd9a8; top: -160px; right: -120px; }
.hero .blob.b2 { width: 380px; height: 380px; background: #cdd0ff; bottom: -180px; left: -120px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: center; padding: 56px 0 64px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px;
  color: var(--primary); background: #fff; border: 2px solid var(--border); border-radius: 999px;
  padding: 7px 14px; box-shadow: var(--shadow-sm); }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05; letter-spacing: -.02em; margin: 18px 0 0; text-wrap: balance; }
.hero h1 .hl { color: var(--accent); }
.hero p.sub { font-size: 19px; color: var(--muted-foreground); font-weight: 500; line-height: 1.55;
  max-width: 460px; margin: 16px 0 28px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--muted-foreground); }
.hero-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-height: 380px; }
.hero-discwrap { position: relative; width: 340px; height: 340px; }
.hero-disc { position: relative; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #fff5e6 70%, #ffe8c9 100%);
  border: 3px solid #fff; box-shadow: var(--shadow-xl), inset 0 0 52px 10px rgba(120,80,30,.18); display: grid; place-items: center; overflow: hidden; }
.hero-item-emoji { font-size: 150px; line-height: 1; filter: drop-shadow(0 10px 12px rgba(120,90,40,.28)); animation: itemFloat 2.6s ease-in-out infinite; }
.hero-mascot { display: grid; place-items: center; filter: drop-shadow(0 12px 14px rgba(120,90,40,.26)); animation: itemFloat 2.6s ease-in-out infinite; }
.hero-mascot svg { width: 220px; height: auto; }
@keyframes itemFloat { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
.hero-switch { display: inline-flex; background: #fff; border: 2px solid var(--border); border-radius: 999px; padding: 5px; box-shadow: var(--shadow-sm); gap: 4px; }
.hsw { font-family: var(--font-sans); font-weight: 800; font-size: 14px; cursor: pointer; border: none; background: none; color: var(--muted-foreground); padding: 9px 18px; border-radius: 999px; transition: all .2s; }
.hsw:hover { color: var(--foreground); }
.hsw.active { background: var(--primary); color: #fff; box-shadow: 0 3px 0 0 #3f43d9; }
.hero-mascot-name { position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-script); font-weight: 700; font-size: 26px; color: #fff;
  background: var(--primary); padding: 4px 18px; border-radius: 999px; box-shadow: var(--shadow-md);
  z-index: 2; white-space: nowrap; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
.hero-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all .3s; }
.hero-dots i.on { background: var(--primary); width: 22px; border-radius: 999px; }
.float-chip { position: absolute; background: #fff; border: 2px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-weight: 800; font-size: 14px; box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: 7px; animation: floaty 4s ease-in-out infinite; }
.float-chip .e { font-size: 18px; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }
.float-chip.c1 { top: 24px; left: -8px; animation-delay: .1s; }
.float-chip.c2 { top: 70px; right: -18px; animation-delay: .9s; }
.float-chip.c3 { bottom: 56px; left: -26px; animation-delay: 1.6s; }
.float-chip.c4 { bottom: 10px; right: 6px; animation-delay: .5s; }

/* ---------- Section scaffolding ---------- */
section.blk { padding: 56px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); margin: 0; letter-spacing: -.02em; }
.sec-head p { margin: 6px 0 0; color: var(--muted-foreground); font-weight: 500; font-size: 16px; }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { border: none; cursor: pointer; text-align: left; font-family: var(--font-sans);
  background: var(--tint); border-radius: var(--radius-lg); padding: 18px 16px 16px;
  box-shadow: 0 4px 0 0 var(--tint-dark); transition: transform .12s, box-shadow .12s; color: #fff;
  display: flex; flex-direction: column; gap: 8px; min-height: 116px; }
.cat:hover { transform: translateY(-3px); box-shadow: 0 7px 0 0 var(--tint-dark); }
.cat .ce { font-size: 30px; }
.cat .cn { font-weight: 900; font-size: 16px; line-height: 1.1; }
.cat .ck { font-weight: 700; font-size: 12px; opacity: .85; }

/* ---------- Featured banner ---------- */
.feat { position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #6366f1 0%, #ff9f43 100%);
  display: grid; grid-template-columns: 1fr 360px; align-items: center; gap: 24px;
  padding: 40px 44px; color: #fff; box-shadow: var(--shadow-lg); }
.feat .tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 13px;
  background: rgba(255,255,255,.22); padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(4px); }
.feat h3 { font-family: var(--font-display); font-weight: 900; font-size: 40px; margin: 16px 0 10px; line-height: 1.05; }
.feat p { font-size: 18px; font-weight: 500; max-width: 440px; line-height: 1.5; margin: 0 0 22px; opacity: .96; }
.feat .price-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.feat .big-price { font-weight: 900; font-size: 30px; }
.feat .strike { text-decoration: line-through; opacity: .7; font-weight: 700; font-size: 20px; }
.feat-stage { position: relative; display: grid; place-items: center; }
.feat-disc { width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.16);
  border: 3px solid rgba(255,255,255,.4); display: grid; place-items: center; font-size: 150px; backdrop-filter: blur(2px); }

/* ---------- Filter chips ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { font-family: var(--font-sans); font-weight: 800; font-size: 14px; cursor: pointer;
  border: 2px solid var(--border); background: #fff; color: var(--muted-foreground);
  border-radius: 999px; padding: 9px 16px; transition: all .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pcard { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard__media { position: relative; aspect-ratio: 1 / 1; background: var(--tint); display: grid; place-items: center; overflow: hidden; }
.pcard__emoji { font-size: 72px; filter: drop-shadow(0 6px 8px rgba(120,90,40,.25)); z-index: 1; transition: transform .3s var(--ease-bounce); }
.pcard:hover .pcard__emoji { transform: scale(1.12) rotate(-4deg); }
.pcard__mascot { z-index: 1; display: grid; place-items: center; transition: transform .3s var(--ease-bounce); }
.pcard__mascot svg { width: 130px; height: auto; filter: drop-shadow(0 6px 8px rgba(120,90,40,.22)); }
.pcard:hover .pcard__mascot { transform: scale(1.08) rotate(-3deg); }
.pcard__hint { position: absolute; bottom: 8px; right: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--muted-foreground); opacity: .6; z-index: 1; }
.pcard__badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-weight: 900; font-size: 11px; color: #fff; padding: 5px 10px; border-radius: 999px; letter-spacing: .01em; }
.b-new { background: var(--success); }
.b-best { background: var(--accent); }
.b-3d { background: var(--info); }
.b-limited { background: var(--game-pink); }
.pcard__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard__cat { font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-foreground); }
.pcard__name { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin: 2px 0 0; line-height: 1.2; }
.pcard__tag { font-size: 13px; color: var(--muted-foreground); font-weight: 500; margin: 0; line-height: 1.4; }
.pcard__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 900; font-size: 18px; color: var(--foreground); }
.price .xp { display: block; font-size: 11px; font-weight: 800; color: var(--warning); }
.oos { font-weight: 800; font-size: 12px; color: var(--game-red); }
.pcard.out .pcard__media { filter: grayscale(.5) opacity(.7); }

/* ---------- Rewards (XP) ---------- */
.rewards { background: linear-gradient(180deg, #f0fbe6 0%, #fefbf6 100%);
  border: 2px solid #cdeeb0; border-radius: var(--radius-xl); padding: 36px 36px 40px; }
.rewards .rhead { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.rewards .rhead h2 { font-family: var(--font-display); font-weight: 900; font-size: 30px; margin: 0; color: #3a7a06; }
.rewards .rsub { color: #4e7a2e; font-weight: 600; margin: 0 0 26px; }
.rgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rcard { background: #fff; border: 2px solid #cdeeb0; border-radius: var(--radius-lg); padding: 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .15s; }
.rcard:hover { transform: translateY(-3px); }
.rcard .re { font-size: 44px; }
.rcard .rn { font-weight: 800; font-size: 15px; }
.rcard .rp { font-weight: 900; color: var(--warning); font-size: 16px; }

/* ---------- Bundles ---------- */
.bundles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bcard { position: relative; background: var(--card); border: 2px solid var(--border); border-radius: var(--radius-xl);
  padding: 26px 24px 28px; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bcard.hot { border-color: var(--accent); box-shadow: var(--shadow-md); }
.bcard .save { position: absolute; top: -12px; right: 20px; background: var(--game-red); color: #fff;
  font-weight: 900; font-size: 13px; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.bcard .bemoji { font-size: 38px; }
.bcard h3 { font-family: var(--font-display); font-weight: 900; font-size: 22px; margin: 10px 0 4px; }
.bcard .bdesc { color: var(--muted-foreground); font-weight: 500; font-size: 14px; margin: 0 0 14px; }
.bcard ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.bcard li { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; }
.bcard li .tick { color: var(--success); font-weight: 900; }
.bcard .bprice { display: flex; align-items: baseline; gap: 10px; margin-top: auto; margin-bottom: 16px; }
.bcard .bprice .now { font-weight: 900; font-size: 26px; }
.bcard .bprice .was { text-decoration: line-through; color: var(--muted-foreground); font-weight: 700; }

/* ---------- Trust row ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust .t { background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 18px; display: flex; align-items: center; gap: 12px; }
.trust .t .te { font-size: 28px; }
.trust .t .tt { font-weight: 800; font-size: 15px; }
.trust .t .td { font-size: 13px; color: var(--muted-foreground); font-weight: 500; }

/* ---------- Newsletter ---------- */
.news { position: relative; overflow: hidden; text-align: center; border-radius: var(--radius-xl);
  background: var(--muted); border: 2px solid var(--border); padding: 48px 24px; }
.news h2 { font-family: var(--font-display); font-weight: 900; font-size: 32px; margin: 0 0 8px; }
.news p { color: var(--muted-foreground); font-weight: 500; margin: 0 auto 24px; max-width: 460px; }
.news form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.news input { font-family: var(--font-sans); font-weight: 600; font-size: 15px; border: 2px solid var(--input);
  border-radius: var(--radius-md); padding: 13px 18px; width: 300px; max-width: 80vw; background: #fff; }
.news input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsl(243 77% 67% / .25); }

/* ---------- Footer ---------- */
footer.site { background: #2d2d3a; color: #d8d4e0; padding: 48px 0 28px; margin-top: 8px; }
footer .fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer .wm { font-size: 30px; }
footer p.tag { color: #a39fb0; font-weight: 500; font-size: 14px; max-width: 280px; margin: 12px 0 0; line-height: 1.5; }
footer h4 { font-weight: 800; font-size: 14px; color: #fff; margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
footer ul a { color: #b6b2c2; text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; }
footer ul a:hover { color: #fff; }
footer .fbottom { border-top: 1px solid #44445a; margin-top: 36px; padding-top: 20px; display: flex;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #908ca0; }

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(40,30,15,.45); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 390px; max-width: 92vw;
  background: var(--background); border-left: 2px solid var(--border); box-shadow: var(--shadow-xl);
  z-index: 100; transform: translateX(100%); transition: transform .35s var(--ease-out); display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; border-bottom: 2px solid var(--border); }
.cd-head h3 { font-family: var(--font-display); font-weight: 900; font-size: 22px; margin: 0; }
.cd-close { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border); background: #fff; cursor: pointer; font-size: 16px; font-weight: 800; }
.cd-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cd-empty { text-align: center; color: var(--muted-foreground); font-weight: 700; padding: 60px 0; font-size: 46px; }
.cd-empty p { font-size: 15px; margin: 10px 0 0; }
.cd-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.cd-i-emoji { width: 54px; height: 54px; border-radius: var(--radius-sm); background: var(--muted); display: grid; place-items: center; font-size: 28px; }
.cd-i-name { font-weight: 800; font-size: 14px; line-height: 1.2; }
.cd-i-price { color: var(--muted-foreground); font-weight: 700; font-size: 13px; margin-top: 2px; }
.cd-qty { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cd-qty button { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--border); background: #fff; font-weight: 900; cursor: pointer; font-size: 15px; line-height: 1; }
.cd-qty span { font-weight: 800; min-width: 18px; text-align: center; }
.cd-rm { margin-left: 6px; border: none; background: none; width: auto; color: var(--game-red); font-weight: 700; font-size: 12px; cursor: pointer; text-decoration: underline; }
.cd-i-line { font-weight: 900; font-size: 14px; }
.cd-foot { border-top: 2px solid var(--border); padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.cd-total { display: flex; justify-content: space-between; font-weight: 900; font-size: 20px; }
.cd-foot .btn { justify-content: center; text-align: center; text-decoration: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 120%);
  background: var(--foreground); color: #fff; font-weight: 800; font-size: 15px;
  padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow-xl); z-index: 200;
  transition: transform .4s var(--ease-bounce); display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translate(-50%, 0); }

/* ===========================================================
   CHECKOUT
   =========================================================== */
.stepper { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 34px 0 8px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; }
.step .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900;
  background: #fff; border: 2px solid var(--border); color: var(--muted-foreground); transition: all .25s; }
.step .lbl { font-weight: 800; font-size: 14px; color: var(--muted-foreground); transition: color .25s; }
.step.active .dot { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.08); }
.step.active .lbl { color: var(--foreground); }
.step.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.step.done .lbl { color: var(--foreground); }
.step-bar { width: 36px; height: 3px; border-radius: 999px; background: var(--border); }
.step-bar.done { background: var(--success); }

.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding: 24px 0 70px; align-items: start; }
.checkout.solo { grid-template-columns: 1fr; }
.checkout.solo .summary { display: none; }
.panel { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius-xl); padding: 28px; }
.panel h2 { font-family: var(--font-display); font-weight: 900; font-size: 24px; margin: 0 0 4px; }
.panel .psub { color: var(--muted-foreground); font-weight: 500; margin: 0 0 22px; font-size: 15px; }
.pane { opacity: 1; }

.clines { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.cline { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.cline .em { width: 58px; height: 58px; border-radius: var(--radius-sm); background: var(--muted); display: grid; place-items: center; font-size: 30px; }
.cline .nm { font-weight: 800; font-size: 15px; }
.cline .up { color: var(--muted-foreground); font-weight: 700; font-size: 13px; margin-top: 2px; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--border); background: #fff; font-weight: 900; cursor: pointer; font-size: 16px; }
.qty span { font-weight: 800; min-width: 18px; text-align: center; }
.cline .ln { font-weight: 900; font-size: 16px; text-align: right; }
.cline .rm { display: block; margin-top: 6px; background: none; border: none; color: var(--game-red); font-weight: 700; font-size: 12px; cursor: pointer; text-decoration: underline; }
.empty { text-align: center; padding: 50px 0; color: var(--muted-foreground); font-weight: 700; }
.empty .big { font-size: 54px; }

.addr-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.addr { display: flex; gap: 14px; align-items: flex-start; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; cursor: pointer; transition: all .18s; background: #fff; }
.addr:hover { border-color: var(--primary); }
.addr.sel { border-color: var(--primary); box-shadow: 0 0 0 3px hsl(243 77% 67% / .18); background: #fbfbff; }
.addr .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex: none; margin-top: 2px; display: grid; place-items: center; }
.addr.sel .radio { border-color: var(--primary); }
.addr.sel .radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); }
.addr .who { font-weight: 800; font-size: 15px; }
.addr .det { color: var(--muted-foreground); font-weight: 500; font-size: 14px; margin-top: 3px; line-height: 1.45; }
.addr .tag { display: inline-block; margin-top: 8px; font-weight: 800; font-size: 11px; color: var(--primary); background: var(--muted); padding: 3px 9px; border-radius: 999px; }
.add-addr { font-weight: 800; font-size: 14px; color: var(--primary); background: none; border: 2px dashed var(--input); border-radius: var(--radius-lg); padding: 14px; cursor: pointer; width: 100%; transition: all .15s; }
.add-addr:hover { border-color: var(--primary); background: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: 13px; }
.field input, .field select { font-family: var(--font-sans); font-weight: 600; font-size: 15px; border: 2px solid var(--input);
  border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsl(243 77% 67% / .2); }
.field.err input { border-color: var(--game-red); box-shadow: 0 0 0 3px hsl(0 100% 71% / .15); }
.field .msg { color: var(--game-red); font-weight: 700; font-size: 12px; min-height: 0; display: none; }
.field.err .msg { display: block; }

.methods { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 6px; }
.method { display: flex; align-items: center; gap: 14px; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 14px 18px; cursor: pointer; transition: all .18s; }
.method.sel { border-color: var(--primary); background: #fbfbff; box-shadow: 0 0 0 3px hsl(243 77% 67% / .16); }
.method .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex: none; display: grid; place-items: center; }
.method.sel .radio { border-color: var(--primary); }
.method.sel .radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); }
.method .mt { font-weight: 800; font-size: 15px; }
.method .md { color: var(--muted-foreground); font-weight: 500; font-size: 13px; }
.method .mp { margin-left: auto; font-weight: 900; }
.xp-box { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.xp-space-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-foreground); margin-bottom: 10px; }
.xp-spaces { display: flex; flex-direction: column; gap: 8px; }
.xp-srow { display: flex; align-items: center; gap: 12px; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; cursor: pointer; transition: all .15s; }
.xp-srow.sel { border-color: var(--primary); background: #fbfbff; box-shadow: 0 0 0 3px hsl(243 77% 67% / .16); }
.xp-srow.short { opacity: .5; }
.xp-srow .sav { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 14px; }
.xp-srow .sn { font-weight: 800; }
.xp-srow .sb { margin-left: auto; font-weight: 900; color: var(--warning); }
.xp-summary { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.xp-summary .r { display: flex; justify-content: space-between; font-weight: 700; }
.xp-short-msg { color: var(--game-red); font-weight: 800; margin-top: 4px; }
.xp-ok-msg { color: var(--success); font-weight: 800; margin-top: 4px; }

.ccard { background: linear-gradient(135deg, #6366f1 0%, #ff9f43 100%); border-radius: var(--radius-lg); padding: 22px;
  color: #fff; margin-bottom: 24px; box-shadow: var(--shadow-md); min-height: 168px; display: flex; flex-direction: column; justify-content: space-between; }
.ccard .cardchip { width: 42px; height: 30px; border-radius: 6px; background: rgba(255,255,255,.7); }
.ccard .num { font-family: var(--font-mono); font-size: 21px; letter-spacing: 2px; font-weight: 600; }
.ccard .row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.ccard .cap { font-size: 10px; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.pay-secure { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-weight: 700; font-size: 13px; margin-top: 18px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }

.cart-totals { margin-top: 4px; border-top: 2px solid var(--border); padding-top: 20px; }
.ship-bar { background: var(--muted); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; }
.ship-bar .msg { font-weight: 800; font-size: 14px; }
.ship-bar .msg b { color: var(--accent); }
.ship-bar .bar { height: 9px; background: #fff; border-radius: 999px; margin-top: 10px; overflow: hidden; border: 1px solid var(--border); }
.ship-bar .fill { height: 100%; background: var(--success); border-radius: 999px; transition: width .45s var(--ease-out); }
.t-row { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; color: var(--muted-foreground); padding: 6px 0; }
.t-row.total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 14px; font-weight: 900; font-size: 22px; color: var(--foreground); }
.t-row .free, .srow .free { color: var(--success); font-weight: 800; }
.t-row .disc { color: var(--success); font-weight: 800; }
.promo { margin: 16px 0 6px; }
.promo-input { display: flex; gap: 10px; }
.promo-input input { flex: 1; font-family: var(--font-sans); font-weight: 700; font-size: 15px; border: 2px solid var(--input);
  border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; text-transform: uppercase; letter-spacing: .03em; }
.promo-input input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 600; }
.promo-input input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsl(243 77% 67% / .2); }
.promo-msg { font-weight: 700; font-size: 13px; margin-top: 8px; }
.promo-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f0fbe6;
  border: 2px solid #cdeeb0; border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 800; font-size: 14px; color: #3a7a06; }
.promo-applied button { background: none; border: none; color: var(--game-red); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; }
.promo-hint { font-size: 12px; font-weight: 600; color: var(--muted-foreground); margin-top: 10px; }
.promo-hint code { font-family: var(--font-mono); background: var(--muted); padding: 2px 7px; border-radius: 6px; font-weight: 700; color: var(--foreground); }

.summary { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius-xl); padding: 24px; position: sticky; top: 86px; }
.summary h3 { font-family: var(--font-display); font-weight: 900; font-size: 18px; margin: 0 0 16px; }
.srow { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; color: var(--muted-foreground); padding: 7px 0; }
.srow.tot { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 14px; font-weight: 900; font-size: 20px; color: var(--foreground); }
.ship-hint { background: var(--muted); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px; font-weight: 700; color: var(--muted-foreground); margin: 14px 0 4px; }
.mini-items { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.mini-items .mi { width: 40px; height: 40px; border-radius: 10px; background: var(--muted); display: grid; place-items: center; font-size: 20px; position: relative; }
.mini-items .mi b { position: absolute; top: -6px; right: -6px; background: var(--primary); color: #fff; font-size: 10px; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; border: 2px solid var(--card); }

.confirm { text-align: center; padding: 24px 10px 10px; }
.confirm .check { width: 92px; height: 92px; border-radius: 50%; background: var(--success); color: #fff; font-size: 52px;
  display: grid; place-items: center; margin: 0 auto 18px; animation: pop .6s var(--ease-bounce); box-shadow: 0 8px 0 0 #46a802; }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.confirm h2 { font-size: 30px; margin: 0 0 6px; }
.confirm p { color: var(--muted-foreground); font-weight: 600; max-width: 460px; margin: 0 auto 8px; }
.confirm .onum { display: inline-block; font-family: var(--font-mono); font-weight: 700; background: var(--muted); padding: 8px 16px; border-radius: 999px; margin: 14px 0 24px; }
.confirm .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.conf-recap { text-align: left; background: var(--muted); border-radius: var(--radius-lg); padding: 18px 20px; margin: 26px auto 0; max-width: 480px; }
.conf-recap .crow { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; padding: 4px 0; }
.conf-recap .crow b { font-weight: 900; }
.confetti { position: fixed; top: -10px; width: 10px; height: 16px; z-index: 5; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .9; } }

/* ===========================================================
   ORDERS
   =========================================================== */
.page-head { padding: 40px 0 10px; }
.page-head h1 { font-family: var(--font-display); font-weight: 900; font-size: 38px; margin: 0; letter-spacing: -.02em; }
.page-head p { color: var(--muted-foreground); font-weight: 500; margin: 6px 0 0; font-size: 16px; }
.tabs { display: flex; gap: 8px; margin: 24px 0 22px; border-bottom: 2px solid var(--border); }
.tab { font-family: var(--font-sans); font-weight: 800; font-size: 15px; cursor: pointer; background: none; border: none; color: var(--muted-foreground); padding: 12px 6px; position: relative; }
.tab.active { color: var(--primary); }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--primary); border-radius: 999px; }
.tab .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; background: var(--muted); color: var(--muted-foreground); border-radius: 999px; font-size: 12px; }
.tab.active .count { background: var(--primary); color: #fff; }
.orders { display: flex; flex-direction: column; gap: 18px; padding-bottom: 70px; }
.order { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.o-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
.o-head .onum { font-family: var(--font-mono); font-weight: 700; font-size: 15px; }
.o-head .odate { color: var(--muted-foreground); font-weight: 600; font-size: 14px; }
.o-head .ototal { margin-left: auto; font-weight: 900; font-size: 18px; }
.badge { font-weight: 800; font-size: 12px; color: #fff; padding: 5px 12px; border-radius: 999px; }
.b-prep { background: var(--warning); }
.b-ship { background: var(--info); }
.b-done { background: var(--success); }
.b-cancel { background: var(--muted-foreground); }
.o-body { padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.o-items { display: flex; flex-wrap: wrap; gap: 10px; }
.oi { display: flex; align-items: center; gap: 10px; background: var(--muted); border-radius: var(--radius-sm); padding: 8px 14px 8px 8px; }
.oi .em { width: 38px; height: 38px; border-radius: 9px; background: #fff; display: grid; place-items: center; font-size: 20px; }
.oi .nm { font-weight: 800; font-size: 13px; }
.oi .q { color: var(--muted-foreground); font-weight: 700; font-size: 12px; }
.o-actions { display: flex; flex-direction: column; gap: 8px; }
.tracker { padding: 6px 22px 20px; }
.track { display: flex; align-items: center; }
.track .node { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 86px; text-align: center; }
.track .node .ring { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); background: #fff; display: grid; place-items: center; font-size: 14px; color: var(--muted-foreground); }
.track .node .tl { font-weight: 700; font-size: 11px; color: var(--muted-foreground); line-height: 1.2; }
.track .node.on .ring { background: var(--success); border-color: var(--success); color: #fff; }
.track .node.on .tl { color: var(--foreground); }
.track .seg { flex: 1; height: 3px; background: var(--border); border-radius: 999px; }
.track .seg.on { background: var(--success); }
.o-foot { padding: 14px 22px; border-top: 1px dashed var(--border); display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--muted-foreground); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid, .rgrid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
  .feat { grid-template-columns: 1fr; text-align: center; }
  .feat-stage { display: none; }
  .bundles, .trust { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .step .lbl { display: none; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .stat-pill { display: none; }
}
@media (max-width: 720px) {
  .grid, .rgrid, .cats { grid-template-columns: repeat(2, 1fr); }
  footer .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .o-body { grid-template-columns: 1fr; }
  .o-actions { flex-direction: row; }
  .track .node { width: 64px; }
  .track .node .tl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
