/* ==========================================================================
   Dragon Verse Z — Design System
   --------------------------------------------------------------------------
   1. Tokens          5. Buttons         9.  Store
   2. Reset/Base      6. Forms           10. Cart & Checkout
   3. Layout          7. Cards           11. Footer
   4. Navigation      8. Feedback        12. Responsive / a11y
   ========================================================================== */

/* ------------------------------------------------------------------ 1. TOKENS */
:root {
  /* Surfaces */
  --bg-void: #06070b;
  --bg-base: #0a0c12;
  --bg-1: #10131c;
  --bg-2: #161a26;
  --bg-3: #1d2231;
  --surface-glass: rgba(16, 19, 28, 0.72);
  --surface-glass-strong: rgba(10, 12, 18, 0.9);
  --surface-sunken: rgba(0, 0, 0, 0.28);

  /* Borders */
  --line-1: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.24);

  /* Brand — Ki (orange), Ouro, Vazio (roxo), Dragão (azul) */
  --ki-1: #ff8a1f;
  --ki-2: #f0590a;
  --ki-soft: rgba(255, 138, 31, 0.14);
  /* Preenchimentos com texto branco: >= 4.5:1 (WCAG AA). */
  --ki-fill-1: #c2500a;
  --ki-fill-2: #9c3f07;
  --gold-1: #ffc44d;
  --gold-2: #f0a52a;
  --gold-soft: rgba(255, 196, 77, 0.14);
  --void-1: #b57bff;
  --void-2: #7c3aed;
  --void-fill-1: #7c3aed;
  --void-fill-2: #5b21b6;
  --void-soft: rgba(181, 123, 255, 0.14);
  --dragon-1: #35a7ff;
  --dragon-2: #0b72d4;
  --dragon-fill-1: #0b72d4;
  --dragon-fill-2: #0a58a6;
  --discord: #5865f2;

  /* Semantic */
  --ok-1: #17c964;
  --ok-soft: rgba(23, 201, 100, 0.14);
  --warn-1: #ffc44d;
  --warn-soft: rgba(255, 196, 77, 0.14);
  --danger-1: #f0484f;
  --danger-soft: rgba(240, 72, 79, 0.14);

  /* Text */
  --text-1: #ffffff;
  --text-2: #a4acc0;
  /*texto-3 em 4.7:1 sobre --bg-1 (antes 3.98:1, reprovava WCAG AA)*/
  --text-3: #7a8091;
  --text-inverse: #10131c;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-14: 56px;
  --sp-18: 72px;
  --sp-24: 96px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-full: 999px;

  /* Elevation */
  --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --sh-md: 0 10px 28px rgba(0, 0, 0, 0.38);
  --sh-lg: 0 18px 40px rgba(0, 0, 0, 0.46);
  --sh-xl: 0 26px 56px rgba(0, 0, 0, 0.58);
  --glow-ki: 0 0 0 1px rgba(255, 138, 31, 0.38), 0 10px 26px rgba(240, 89, 10, 0.22);
  --glow-gold: 0 0 0 1px rgba(255, 196, 77, 0.38), 0 10px 26px rgba(240, 165, 42, 0.2);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-fast: 140ms;
  --t-base: 220ms;
  --t-slow: 420ms;

  /* Type */
  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --container: 1200px;
  --nav-h: 68px;
}

/* ------------------------------------------------- 2. RESET / BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /*
    `clip` (e nao `hidden`) impede que as gavetas fora da tela (carrinho, modal,
    menu mobile) criem barra de rolagem horizontal. Tambem preserva
    `position: sticky` da navbar e da sidebar da loja, que `hidden` quebraria.
  */
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  background: var(--bg-base);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: var(--ki-1);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

a:hover {
  color: var(--gold-1);
}

/* Dentro de superficies preenchidas o link herda a cor do proprio botao. */
.btn a:hover,
.badge a:hover,
.option a:hover,
.notice a:hover,
.claim-code a:hover {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background: rgba(255, 138, 31, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--ki-1);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: #262b3a;
  border: 2px solid var(--bg-void);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ki-2);
}

.skip-link {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--ki-fill-1);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------ 3. LAYOUT */
.ambient-glow {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(110px);
  z-index: 0;
  opacity: 0.11;
}

.glow-top-left {
  top: -18rem;
  left: -18rem;
  background: radial-gradient(circle, var(--ki-1), transparent 68%);
}

.glow-center-gold {
  top: 34%;
  right: -22rem;
  background: radial-gradient(circle, var(--gold-1), transparent 68%);
  opacity: 0.1;
}

.glow-bottom {
  bottom: -20rem;
  left: 34%;
  background: radial-gradient(circle, var(--void-1), transparent 70%);
  opacity: 0.08;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--sp-18) 0;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.section--tight {
  padding: var(--sp-10) 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.022) 12%, rgba(255, 255, 255, 0.022) 88%, transparent);
}

.section-head {
  max-width: 620px;
  margin: 0 auto var(--sp-14);
  text-align: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ki-1);
  margin-bottom: var(--sp-3);
}

.eyebrow--gold {
  color: var(--gold-1);
}
.eyebrow--void {
  color: var(--void-1);
}
.eyebrow--discord {
  color: #8b93ff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.lede {
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-top: var(--sp-3);
  text-wrap: pretty;
}


.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
}

/* -------------------------------------------------------- 4. NAVIGATION */
.site-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 30rem;
  padding: var(--sp-18) 0 var(--sp-24);
  background: var(--bg-void) url('/assets/images/hero-bg.jpg') center / cover no-repeat;
  border-bottom: 1px solid var(--line-1);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.62) 0%, rgba(6, 7, 11, 0.88) 58%, var(--bg-base) 100%),
    radial-gradient(120% 80% at 50% 0%, rgba(255, 138, 31, 0.1), transparent 60%);
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-6);
}

.hero-logo {
  width: min(26rem, 84vw);
  animation: floatLogo 5.5s var(--ease-out) infinite;
  will-change: transform, filter;
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-11px) rotate(-0.6deg);
  }
}

/*
  The glow is static on purpose: animating `filter` forces a full repaint of a
  large filtered layer every frame. The float reads just as well without it.
*/
.hero-logo {
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 26px rgba(255, 196, 77, 0.28));
}

.hero-sub {
  max-width: 44rem;
  color: var(--text-2);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  width: 100%;
  max-width: 46rem;
  margin-top: var(--sp-2);
}

.hero-stat {
  flex: 1 1 8rem;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--surface-sunken);
  border: 1px solid var(--line-1);
}

.hero-stat__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.hero-stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Server IP widget */
.ip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  max-width: 30rem;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-xl);
  background: rgba(6, 7, 11, 0.62);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-md);
  cursor: pointer;
  text-align: left;
  transition:
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
}

.ip-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 138, 31, 0.5);
  box-shadow: var(--glow-ki);
}

.ip-card__main {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}

.ip-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: var(--r-md);
  background: var(--ki-soft);
  border: 1px solid rgba(255, 138, 31, 0.24);
  color: var(--ki-1);
}

.ip-card__address {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ip-card__hint {
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
  padding: 6px var(--sp-3);
  border-radius: var(--r-full);
  background: var(--ok-soft);
  border: 1px solid rgba(23, 201, 100, 0.28);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ok-1);
}

.status-pill--offline {
  background: var(--danger-soft);
  border-color: rgba(240, 72, 79, 0.28);
  color: var(--danger-1);
}

.status-pill--unknown {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-2);
  color: var(--text-3);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2.2s var(--ease-out) infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 201, 100, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(23, 201, 100, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(23, 201, 100, 0);
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(10, 12, 18, 0.86);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-1);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--nav-h);
}

.navbar__inner > * {
  min-width: 0;
}

.brand {
  min-width: 0;
  flex-shrink: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
}

.brand:hover {
  color: var(--text-1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ki-1), var(--gold-1));
  transition: width var(--t-base) var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--text-1);
}

.nav-link:hover::after,
.nav-link[aria-current='page']::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.cart-button {
  position: relative;
}

.cart-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--ki-fill-1), var(--ki-fill-2));
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
}

.cart-count[data-count]:not([data-count='0']) {
  display: inline-flex;
}

.icon-button {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-1);
  color: var(--text-1);
  font-size: 1rem;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: var(--sp-6);
  background: rgba(6, 7, 11, 0.97);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1rem);
  transition:
    opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    visibility var(--t-base);
}

.mobile-nav[data-open='true'] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mobile-nav__links .nav-link {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-1);
  font-size: 1rem;
}

.mobile-nav__links .nav-link::after {
  display: none;
}

/* ------------------------------------------------------------ 5. BUTTONS */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8rem 1.4rem;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    filter var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--ki-fill-1), var(--ki-fill-2));
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: var(--sh-md);
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -80%;
  width: 55%;
  height: 220%;
  transform: translateY(-50%) rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0;
  pointer-events: none;
  transition:
    left 700ms var(--ease-out),
    opacity 700ms var(--ease-out);
}

.btn--primary:hover::after {
  left: 110%;
  opacity: 1;
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 18px 42px rgba(240, 89, 10, 0.36);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: var(--text-inverse);
  box-shadow: 0 10px 28px rgba(240, 165, 42, 0.24);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.btn--void {
  background: linear-gradient(135deg, var(--void-fill-1), var(--void-fill-2));
  color: #fff;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.26);
}

.btn--void:hover {
  transform: translateY(-2px);
}

.btn--discord {
  background: linear-gradient(135deg, #5865f2, #3c45a5);
  color: #fff;
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.28);
}

.btn--discord:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-2);
  color: var(--text-1);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-3);
  transform: translateY(-1px);
}

.btn--quiet {
  padding: 0.4rem 0.7rem;
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}

.btn--quiet:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-1);
}

.btn--danger {
  background: var(--danger-soft);
  border-color: rgba(240, 72, 79, 0.34);
  color: var(--danger-1);
}

.btn--danger:hover {
  background: rgba(240, 72, 79, 0.24);
  color: #fff;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 1rem 1.8rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

.btn--icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  flex: none;
}

/* -------------------------------------------------------------- 6. BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--ki {
  background: linear-gradient(135deg, var(--ki-fill-1), var(--ki-fill-2));
  color: #fff;
}

.badge--gold {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: var(--text-inverse);
}

.badge--void {
  background: linear-gradient(135deg, var(--void-fill-1), var(--void-fill-2));
  color: #fff;
}

.badge--dragon {
  background: linear-gradient(135deg, var(--dragon-fill-1), var(--dragon-fill-2));
  color: #fff;
}

.badge--outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  color: var(--text-2);
}

.badge--ok {
  background: var(--ok-soft);
  border: 1px solid rgba(23, 201, 100, 0.3);
  color: var(--ok-1);
}

.badge--warn {
  background: var(--warn-soft);
  border: 1px solid rgba(255, 196, 77, 0.3);
  color: var(--warn-1);
}

.badge--danger {
  background: var(--danger-soft);
  border: 1px solid rgba(240, 72, 79, 0.3);
  color: var(--danger-1);
}

/* --------------------------------------------------------------- 7. FORMS */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
}

.field__label .req {
  color: var(--danger-1);
}

.field__hint {
  font-size: 0.75rem;
  color: var(--text-3);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-2);
  color: var(--text-1);
  font-size: 0.92rem;
  transition:
    border-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--line-3);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ki-1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.16);
}

.input[readonly] {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 13px) calc(50% + 2px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.field-row {
  display: flex;
  gap: var(--sp-2);
}

.field-row .input {
  flex: 1;
}

.checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
  cursor: pointer;
  padding: var(--sp-2) 0;
}

.checkbox input {
  /* 1.5rem = 24px: minimo do WCAG 2.5.8 (AA). */
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  margin: 0;
  margin-top: 0.05rem;
  flex: none;
  accent-color: var(--ki-1);
  cursor: pointer;
}

.checkbox a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Payment option cards */
.option-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-1);
  cursor: pointer;
  transition:
    border-color var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
}

.option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-2);
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option__icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.05rem;
}

.option__body {
  flex: 1;
  min-width: 0;
}

.option__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
}

.option__desc {
  font-size: 0.75rem;
  color: var(--text-3);
}

.option:has(input:checked) {
  border-color: var(--ki-1);
  background: var(--ki-soft);
}

.option:has(input:checked) .option__icon {
  background: rgba(255, 138, 31, 0.18);
  /* Texto sobre fundo escuro: usa o degrau vivo (8.3:1), nao o preenchido. */
  color: var(--ki-1);
}

.option:has(input:focus-visible) {
  outline: 2px solid var(--ki-1);
  outline-offset: 2px;
}

/* --------------------------------------------------------------- 8. CARDS */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  overflow: hidden;
  transition:
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
}

.card--glass {
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.card--interactive:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 31, 0.4);
  box-shadow: var(--sh-lg);
}


.card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-1);
  color: var(--accent, var(--ki-1));
  font-size: 1.35rem;
  margin-bottom: var(--sp-5);
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: var(--sp-2);
}

.card__text {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

.card__foot {
  margin-top: auto;
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

/* Info + previa (Discord): a coluna principal cede antes do breakpoint. */
.grid--split {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
}

@media (max-width: 900px) {
  .grid--split {
    grid-template-columns: 1fr;
  }
}

/* Panel / feature list */
.panel {
  padding: var(--sp-8);
  border-radius: var(--r-2xl);
  background: var(--bg-1);
  border: 1px solid var(--line-1);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 1.15rem;
  margin-bottom: var(--sp-5);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
}

.check-list i {
  color: var(--ki-1);
  margin-top: 0.2rem;
  flex: none;
  font-size: 0.8rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--sp-3);
}

.stat {
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--surface-sunken);
  border: 1px solid var(--line-1);
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}

/* ----------------------------------------------------------- 9. BANNERS */
.promo {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 15rem;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--bg-1) url('/assets/images/banner_shenron.png') right center / cover no-repeat;
  border: 1px solid var(--line-1);
  box-shadow: var(--sh-md);
}

.promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 9, 14, 0.96) 0%,
    rgba(8, 9, 14, 0.88) 42%,
    rgba(8, 9, 14, 0.42) 78%,
    rgba(8, 9, 14, 0.1) 100%
  );
}

.promo__body {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  padding: var(--sp-8);
}

.promo__title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: var(--sp-3) 0 var(--sp-3);
}

.page-hero {
  position: relative;
  padding: var(--sp-14) 0 var(--sp-10);
  background: var(--bg-void) url('/assets/images/banner_shenron.png') right center / cover no-repeat;
  border-bottom: 1px solid var(--line-1);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 7, 11, 0.96) 0%, rgba(6, 7, 11, 0.86) 46%, rgba(6, 7, 11, 0.35) 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.page-hero__body {
  max-width: 34rem;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--bg-1);
  border: 1px solid var(--line-2);
}

.notice__body {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.notice__icon {
  font-size: 1.4rem;
  color: var(--ki-1);
}

.notice__title {
  font-size: 0.92rem;
  font-weight: 700;
}

.notice__text {
  font-size: 0.82rem;
  color: var(--text-2);
}

.notice__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Discord panel */
.discord-panel {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: #1e1f22;
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-lg);
}

.discord-panel__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: linear-gradient(180deg, #5865f2 0%, #3c45a5 100%);
}

.discord-panel__avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--r-lg);
  border: 3px solid #1e1f22;
  background: #2b2d31;
  object-fit: cover;
}

.discord-panel__title {
  font-size: 1.05rem;
  color: #fff;
}

.discord-panel__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: 4px;
  font-size: 0.78rem;
}

.discord-panel__online {
  color: #23a55a;
  font-weight: 600;
}

.discord-panel__members {
  color: #b5bac1;
}

.discord-panel__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: #2b2d31;
}

.discord-channel {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.83rem;
  color: #949ba4;
}

.discord-channel--active {
  background: rgba(88, 101, 242, 0.16);
  color: #fff;
}

.discord-channel--active i {
  color: var(--discord);
}

.discord-panel__foot {
  padding: var(--sp-5);
  background: #232428;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ------------------------------------------------------------- 10. STORE */
.store-layout {
  display: grid;
  grid-template-columns: 17rem 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.store-layout > * {
  /* Sem isto o `min-width: auto` do grid deixa a sidebar da categoria estourar
     a track e a pagina inteira ganha rolagem horizontal. */
  min-width: 0;
}

.store-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border-radius: var(--r-xl);
  background: var(--bg-1);
  border: 1px solid var(--line-1);
}

.cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  transition:
    background-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}

.cat-btn__label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}

.cat-btn__count {
  flex: none;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
}

.cat-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-1);
}

.cat-btn[aria-pressed='true'] {
  background: linear-gradient(90deg, var(--ki-soft), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 138, 31, 0.5);
  color: var(--text-1);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: var(--sp-5);
}

.product {
  --accent: var(--ki-1);
  /* Sem isto, `.product__tag` (position: absolute) resolve contra o
     `.container` e todas as tags da grade se empilham no mesmo ponto. */
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  overflow: hidden;
  transition:
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
}

.product:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 31, 0.4);
  box-shadow: var(--sh-lg);
}

.product__tag {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 3;
}

.product__media {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-void);
  border: 1px solid var(--line-1);
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.product:hover .product__media img {
  transform: scale(1.06);
}

.product__name {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 6px;
}

.product__desc {
  font-size: 0.8rem;
  color: var(--text-2);
  text-align: center;
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: var(--sp-4);
}

.product__price-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.product__price-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-1);
}

.product__actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: auto;
}

.product__actions .btn--primary {
  flex: 1;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.filter-bar__count {
  font-size: 0.85rem;
  color: var(--text-3);
}

.filter-bar__search {
  max-width: 16rem;
}

/* --------------------------------------------------------- 11. CART/CHECKOUT */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 5, 8, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--t-base) var(--ease-out),
    visibility var(--t-base);
}

.cart-overlay[data-open='true'] {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  width: min(27.5rem, 100vw);
  height: 100dvh;
  background: var(--bg-base);
  border-left: 1px solid var(--line-2);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  transform: translateX(101%);
  transition: transform var(--t-slow) var(--ease-out);
}

.cart-drawer[data-open='true'] {
  transform: translateX(0);
}

.cart-drawer__head,
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--line-1);
}

.cart-drawer__title,
.modal__title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 1.05rem;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.cart-drawer__foot {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--line-1);
  background: var(--bg-void);
}

.cart-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-1);
}

.cart-row__img {
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: var(--r-sm);
  object-fit: cover;
  border: 1px solid var(--line-1);
  background: var(--bg-void);
}

.cart-row__body {
  flex: 1;
  min-width: 0;
}

.cart-row__name {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.cart-row__price {
  font-size: 0.78rem;
  color: var(--ki-1);
  font-weight: 600;
}

.cart-row__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.qty-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-1);
  font-size: 0.75rem;
  transition: background-color var(--t-fast) var(--ease-out);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.qty-btn--danger:hover {
  background: var(--danger-soft);
  color: var(--danger-1);
}

.qty-value {
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--surface-sunken);
  font-size: 0.85rem;
}

.cart-summary__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-2);
}

.cart-summary__line--total {
  padding-top: var(--sp-2);
  margin-top: var(--sp-1);
  border-top: 1px solid var(--line-1);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
}

.cart-summary__value--total {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ki-1);
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  text-align: center;
  color: var(--text-3);
  padding: var(--sp-8) var(--sp-5);
}

.cart-empty__icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-1);
  font-size: 1.5rem;
  color: var(--text-3);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-1);
  background: var(--bg-1);
}

.table {
  min-width: 44rem;
}

.table th {
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-3);
  background: rgba(0, 0, 0, 0.24);
  white-space: nowrap;
}

.table td {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line-1);
  font-size: 0.88rem;
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color var(--t-fast) var(--ease-out);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.table__product {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.table__product img {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: var(--r-sm);
  object-fit: cover;
  border: 1px solid var(--line-1);
  background: var(--bg-void);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 24rem;
  gap: var(--sp-8);
  align-items: start;
}

.checkout-layout > * {
  min-width: 0;
}

.checkout-summary {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
}

/* ------------------------------------------------------------ 12. MODALS */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--t-base) var(--ease-out),
    visibility var(--t-base);
}

.modal[data-open='true'] {
  opacity: 1;
  visibility: visible;
}

.modal__box {
  width: 100%;
  max-width: 32rem;
  max-height: min(86dvh, 46rem);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-2xl);
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-xl);
  transform: scale(0.96) translateY(0.5rem);
  transition: transform var(--t-base) var(--ease-spring);
}

.modal[data-open='true'] .modal__box {
  transform: scale(1) translateY(0);
}

.modal__box--wide {
  max-width: 40rem;
}

.modal__body {
  padding: var(--sp-6);
  overflow-y: auto;
}

.modal__close {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-1);
  color: var(--text-2);
  font-size: 0.85rem;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-1);
}

.perk-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
}

.perk-list i {
  color: var(--ki-1);
  margin-top: 0.28rem;
  flex: none;
  font-size: 0.8rem;
}

.legal h4 {
  font-size: 0.95rem;
  margin: var(--sp-5) 0 var(--sp-2);
}

.legal h4:first-child {
  margin-top: 0;
}

.legal p {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* QR block */
.qr-card {
  display: inline-block;
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-md);
}

.qr-card img {
  width: 15rem;
  height: 15rem;
  max-width: 100%;
}

.code-box {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--surface-sunken);
  border: 1px solid var(--line-1);
  font-size: 0.85rem;
}

.code-box__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.code-box__label {
  color: var(--text-3);
}

.code-box__value {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: right;
}

.claim-code {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--ki-soft), rgba(255, 196, 77, 0.1));
  border: 1px dashed rgba(255, 138, 31, 0.5);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ki-1);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out);
}

.claim-code:hover {
  transform: scale(1.02);
}

/* Timeline / status */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.timeline__item {
  display: flex;
  gap: var(--sp-4);
}

.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  width: 1.5rem;
}

.timeline__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--line-3);
  margin-top: 0.45rem;
}

.timeline__item[data-state='done'] .timeline__dot {
  background: var(--ok-1);
  box-shadow: 0 0 0 4px var(--ok-soft);
}

.timeline__item[data-state='current'] .timeline__dot {
  background: var(--ki-1);
  box-shadow: 0 0 0 4px var(--ki-soft);
}

.timeline__line {
  flex: 1;
  width: 2px;
  background: var(--line-1);
  margin: 4px 0 -1rem;
}

.timeline__item:last-child .timeline__line {
  display: none;
}

.timeline__title {
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline__meta {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ------------------------------------------------------------- 13. TOASTS */
.toast-stack {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  background: rgba(18, 21, 31, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--ki-1);
  box-shadow: var(--sh-md);
  font-size: 0.86rem;
  line-height: 1.5;
  pointer-events: auto;
  animation: toastIn var(--t-base) var(--ease-spring);
}

.toast[data-tone='success'] {
  border-left-color: var(--ok-1);
}
.toast[data-tone='error'] {
  border-left-color: var(--danger-1);
}
.toast[data-tone='warning'] {
  border-left-color: var(--warn-1);
}
.toast[data-tone='info'] {
  border-left-color: var(--dragon-1);
}

.toast__icon {
  flex: none;
  margin-top: 2px;
  color: var(--ki-1);
}

.toast[data-tone='success'] .toast__icon {
  color: var(--ok-1);
}
.toast[data-tone='error'] .toast__icon {
  color: var(--danger-1);
}
.toast[data-tone='warning'] .toast__icon {
  color: var(--warn-1);
}
.toast[data-tone='info'] .toast__icon {
  color: var(--dragon-1);
}

.toast--leaving {
  animation: toastOut var(--t-base) var(--ease-out) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.97);
  }
}

/* ----------------------------------------------------------- 14. DONATORS */
.podium {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-5);
  flex-wrap: wrap;
  justify-content: center;
}

.podium__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
  min-width: 6rem;
}

.podium__frame {
  padding: 4px;
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line-2);
}

.podium__frame img {
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-md);
}

.podium__slot--first .podium__frame {
  border-color: var(--gold-1);
  box-shadow: var(--glow-gold);
}

.podium__slot--first .podium__frame img {
  width: 4rem;
  height: 4rem;
}

.podium__name {
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium__amount {
  font-size: 0.78rem;
  color: var(--ki-1);
  font-weight: 600;
}

.leaderboard-empty {
  padding: var(--sp-8);
  text-align: center;
  border-radius: var(--r-xl);
  background: rgba(0, 0, 0, 0.24);
  border: 1px dashed var(--line-2);
  color: var(--text-2);
}

/* ------------------------------------------------------------- 15. FOOTER */
.footer {
  margin-top: var(--sp-18);
  padding: var(--sp-18) 0 var(--sp-8);
  background: var(--bg-void);
  border-top: 1px solid var(--line-1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid var(--line-1);
}

.footer__title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__links a {
  color: var(--text-2);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-2);
  font-size: 0.88rem;
  text-align: left;
  transition: color var(--t-fast) var(--ease-out);
}

.footer-link:hover {
  color: var(--text-1);
}

.footer__links a,
.footer-link {
  /* min-height cumpre WCAG 2.5.8 (24px) com folga para o dedo. */
  min-height: 28px;
  padding: 4px 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ------------------------------------------------------------ 16. STATES */
.skeleton {
  border-radius: var(--r-md);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.09) 37%,
    rgba(255, 255, 255, 0.04) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-14) var(--sp-6);
  text-align: center;
  color: var(--text-3);
  grid-column: 1 / -1;
}

.empty-state__icon {
  font-size: 2.2rem;
  color: var(--text-3);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.text-ok {
  color: var(--ok-1);
}
.text-warn {
  color: var(--warn-1);
}
.text-danger {
  color: var(--danger-1);
}
.text-muted {
  color: var(--text-2);
}
.text-dim {
  color: var(--text-3);
}

.divider {
  height: 1px;
  background: var(--line-1);
  border: 0;
  margin: var(--sp-5) 0;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.is-loading {
  position: relative;
  pointer-events: none;
}

.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(6, 7, 11, 0.5);
}

/* ------------------------------------------------------- 17. RESPONSIVE */
@media (max-width: 1080px) {
  /*
    Abaixo de 1080 a brand + links + acoes nao cabem: o menu vira gaveta.
    Antes disso, os botoes saiam cortada do viewport.
  */
  .nav-links {
    display: none;
  }

  .icon-button {
    display: grid;
  }

  .nav-actions .btn--primary span {
    display: none;
  }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .store-sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: var(--sp-3);
    scrollbar-width: thin;
  }

  .cat-btn {
    width: auto;
    white-space: nowrap;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .section {
    padding: var(--sp-14) 0;
  }

  .site-header {
    min-height: 26rem;
    padding: var(--sp-14) 0 var(--sp-18);
  }

  /* Halos: 3 camadas de blur(110px) custam caro em telas pequenas. */
  .ambient-glow {
    width: 26rem;
    height: 26rem;
    filter: blur(80px);
    opacity: 0.09;
  }

  .glow-bottom {
    display: none;
  }

  .promo__body {
    padding: var(--sp-6);
  }

  .promo {
    min-height: 20rem;
    background-position: 70% center;
  }

  .panel {
    padding: var(--sp-6);
  }

  .donators-panel {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--sp-4);
  }

  /*
    Abaixo de 640 os rotulos dos botoes da navbar somem (o icone fica, com
    aria-label) e a marca reduz. Sem isso a barra estourava o viewport.
  */
  .nav-actions .btn--ghost span,
  .nav-actions .btn--danger span {
    display: none;
  }

  .brand span {
    font-size: 0.85rem;
    letter-spacing: 0.01em;
  }

  .nav-actions {
    gap: var(--sp-2);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .qr-card img {
    width: 12rem;
    height: 12rem;
  }

  .modal__head,
  .modal__body,
  .cart-drawer__head,
  .cart-drawer__body,
  .cart-drawer__foot {
    padding-inline: var(--sp-4);
  }

  .toast-stack {
    left: var(--sp-3);
    right: var(--sp-3);
    width: auto;
  }
}

/* --------------------------------------------------- 18. ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-logo {
    animation: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line-1: rgba(255, 255, 255, 0.22);
    --line-2: rgba(255, 255, 255, 0.34);
    --text-2: #d3d8e4;
    --text-3: #b6bdcb;
  }
}

@media print {
  .navbar,
  .footer,
  .cart-drawer,
  .modal,
  .toast-stack,
  .ambient-glow,
  .site-header::before,
  .promo::before,
  .page-hero::before {
    display: none !important;
  }

  body,
  .panel,
  .card,
  .table-wrap,
  .page-hero,
  .site-header {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  /* Tokens de texto herdados ficariam ilegiveis sobre papel branco. */
  :root {
    --text-1: #000;
    --text-2: #333;
    --text-3: #555;
    --line-1: #ccc;
    --line-2: #999;
  }

  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    word-break: break-all;
  }
}
