/*
 * El Club Design System v2.0 — "Midnight Stadium"
 * elclub.club
 *
 * Full dark mode. Streetwear underground. Monocromatico + ice blue accent.
 *
 * Color Tokens:
 *   midnight:  #0D0D0D   — Page background, navbar, footer
 *   pitch:     #1C1C1C   — Cards, elevated surfaces, alternate sections
 *   chalk:     #2A2A2A   — Borders, separators, hover states
 *   slate:     #333333   — Active borders, more visible divisions
 *   white:     #F0F0F0   — Primary text, CTAs, primary elements
 *   smoke:     #999999   — Secondary text, descriptions
 *   ash:       #666666   — Tertiary text, metadata, timestamps
 *   ice:       #4DA8FF   — CTAs, links, badges, hover highlights (accent)
 *   ice-glow:  #4DA8FF33 — Subtle glow (20% opacity) for hover/focus
 *   ice-dim:   #3B82B0   — Hover/active state of ice
 *   whatsapp:  #25D366   — WhatsApp button only
 *   success:   #22C55E   — Order confirmations only
 *
 * Typography:
 *   Headlines: Oswald 700, uppercase, letter-spacing 0.05-0.1em
 *   Body/UI:   Space Grotesk 400/500/600/700
 *   Buttons:   Space Grotesk 600, 14px, uppercase, 0.05em
 *   Nav:       Space Grotesk 600, 14px, uppercase, 0.08em
 *
 * Spacing: 8px base grid
 */

/* ── Tailwind v4 Theme ────────────────────────── */
@theme {
  /* New Midnight Stadium tokens */
  --color-midnight: #0D0D0D;
  --color-pitch: #1C1C1C;
  --color-chalk: #2A2A2A;
  --color-slate: #333333;
  --color-white: #F0F0F0;
  --color-smoke: #999999;
  --color-ash: #666666;
  --color-ice: #4DA8FF;
  --color-ice-glow: #4DA8FF33;
  --color-ice-dim: #3B82B0;
  --color-whatsapp: #25D366;
  --color-success: #22C55E;

  /* Backward compat: old token names → new values */
  --color-carbon: #0D0D0D;
  --color-carbon-light: #1C1C1C;
  --color-gold: #4DA8FF;
  --color-sand: #999999;
  --color-sand-light: #1C1C1C;
  --color-cream: #0D0D0D;
  --color-warm: #666666;
  --color-urgency: #4DA8FF;
}

/* ── Base ─────────────────────────────────────── */
* { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0D0D0D;
  color: #F0F0F0;
}

/* ── Display Font (Oswald headlines) ─────────── */
.font-display {
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1.font-display,
h2.font-display {
  letter-spacing: 0.1em;
}

h3.font-display,
h4.font-display {
  letter-spacing: 0.05em;
}

/* ── Brand Utilities ──────────────────────────── */
.text-carbon      { color: #0D0D0D; }
.text-warm        { color: #666666; }
.text-gold        { color: #4DA8FF; }
.text-sand        { color: #999999; }
.text-midnight    { color: #0D0D0D; }
.text-white       { color: #F0F0F0; }
.text-smoke       { color: #999999; }
.text-ash         { color: #666666; }
.text-ice         { color: #4DA8FF; }
.bg-carbon        { background-color: #0D0D0D; }
.bg-carbon-light  { background-color: #1C1C1C; }
.bg-sand          { background-color: #999999; }
.bg-sand-light    { background-color: #1C1C1C; }
.bg-cream         { background-color: #0D0D0D; }
.bg-midnight      { background-color: #0D0D0D; }
.bg-pitch         { background-color: #1C1C1C; }
.bg-chalk         { background-color: #2A2A2A; }
.bg-ice           { background-color: #4DA8FF; }
.border-sand      { border-color: #999999; }
.border-carbon    { border-color: #0D0D0D; }
.border-chalk     { border-color: #2A2A2A; }
.border-slate     { border-color: #333333; }
.border-ice       { border-color: #4DA8FF; }

/* ── Links ───────────────────────────────────── */
a {
  color: #4DA8FF;
  transition: color 0.2s ease;
}
a:hover {
  color: #3B82B0;
}

/* ── Selection ───────────────────────────────── */
::selection {
  background-color: #4DA8FF33;
  color: #F0F0F0;
}

/* ── Buttons ──────────────────────────────────── */
.btn-primary {
  background-color: #4DA8FF;
  color: #0D0D0D;
  padding: 12px 28px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover {
  background-color: #3B82B0;
  color: #0D0D0D;
}
.btn-primary:focus-visible {
  outline: 2px solid #4DA8FF;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #4DA8FF33;
}

.btn-secondary {
  background-color: transparent;
  color: #F0F0F0;
  padding: 12px 28px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid #F0F0F0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-secondary:hover {
  background-color: #F0F0F0;
  color: #0D0D0D;
}
.btn-secondary:focus-visible {
  outline: 2px solid #4DA8FF;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #4DA8FF33;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  padding: 14px 32px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-1px);
}
.btn-whatsapp:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 2px;
}

.btn-ghost {
  background-color: transparent;
  color: #999999;
  padding: 12px 28px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-ghost:hover {
  color: #4DA8FF;
}

/* ── Product Card ─────────────────────────────── */
.product-card {
  background: #1C1C1C;
  border: 1px solid #2A2A2A;
  transition: all 0.3s ease;
  overflow: hidden;
}
.product-card:hover {
  border-color: #4DA8FF;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px #4DA8FF33;
  transform: translateY(-2px);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background-color: #1C1C1C;
}

/* ── Badges ───────────────────────────────────── */
.badge-urgency {
  background-color: #4DA8FF;
  color: #0D0D0D;
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-new {
  background-color: transparent;
  color: #4DA8FF;
  border: 1px solid #4DA8FF;
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-popular {
  background-color: #F0F0F0;
  color: #0D0D0D;
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── WhatsApp Float ───────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 50;
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* ── Cart Badge ───────────────────────────────── */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #4DA8FF;
  color: #0D0D0D;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Size Selector ────────────────────────────── */
.size-btn {
  width: 44px;
  height: 44px;
  border: 2px solid #2A2A2A;
  background: transparent;
  color: #F0F0F0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.size-btn:hover {
  border-color: #F0F0F0;
}
.size-btn.active {
  background-color: #F0F0F0;
  color: #0D0D0D;
  border-color: #F0F0F0;
}
.size-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Navigation ───────────────────────────────── */
nav, .nav, [data-nav] {
  background-color: #0D0D0D;
}
nav a, .nav a, .nav-link {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F0F0F0;
  text-decoration: none;
  transition: color 0.2s ease;
}
nav a:hover, .nav a:hover, .nav-link:hover {
  color: #4DA8FF;
}
nav a.active, .nav a.active, .nav-link.active {
  color: #4DA8FF;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* ── Inputs / Forms ───────────────────────────── */
input, textarea, select {
  background-color: #1C1C1C;
  border: 1px solid #2A2A2A;
  color: #F0F0F0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder, textarea::placeholder {
  color: #666666;
}
input:focus, textarea:focus, select:focus {
  border-color: #4DA8FF;
  outline: none;
  box-shadow: 0 0 0 3px #4DA8FF33;
}

/* ── Footer ───────────────────────────────────── */
footer, .footer {
  background-color: #0D0D0D;
  border-top: 1px solid #2A2A2A;
}
footer a, .footer a {
  color: #999999;
  transition: color 0.2s ease;
}
footer a:hover, .footer a:hover {
  color: #4DA8FF;
}
footer .copyright, .footer .copyright {
  color: #666666;
}

/* ── Animations ───────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes pulseIce {
  0%, 100% { box-shadow: 0 0 0 0 #4DA8FF33; }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.animate-pulse-ice {
  animation: pulseIce 2s ease infinite;
}

@keyframes glowIce {
  0%, 100% { box-shadow: 0 0 4px #4DA8FF33; }
  50% { box-shadow: 0 0 16px #4DA8FF33; }
}
.animate-glow-ice {
  animation: glowIce 3s ease infinite;
}

/* ── Cart Drawer ──────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: #1C1C1C;
  color: #F0F0F0;
  border-left: 1px solid #2A2A2A;
  z-index: 61;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-drawer .cart-item {
  border-bottom: 1px solid #2A2A2A;
}

/* ── Mobile Nav ───────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #0D0D0D;
  z-index: 55;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu a {
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F0F0F0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.mobile-menu a:hover {
  color: #4DA8FF;
}

/* ── Scroll-triggered visibility ──────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scrollbar (dark mode) ────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0D0D;
}
::-webkit-scrollbar-thumb {
  background: #2A2A2A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333333;
}

/* ── Hero Smoke Effect ───────────────────────── */
.hero-smoke {
  position: relative;
  overflow: hidden;
}
.hero-smoke::before,
.hero-smoke::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-smoke::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(77,168,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(77,168,255,0.03) 0%, transparent 60%);
  animation: smokeDrift 20s ease-in-out infinite alternate;
}
.hero-smoke::after {
  background:
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(28,28,28,0.8) 0%, transparent 50%),
    radial-gradient(ellipse 120% 40% at 50% 0%, rgba(13,13,13,0.9) 0%, transparent 50%);
}

@keyframes smokeDrift {
  0%   { transform: scale(1) translate(0, 0); opacity: 0.6; }
  50%  { transform: scale(1.1) translate(-2%, 3%); opacity: 1; }
  100% { transform: scale(1.05) translate(2%, -2%); opacity: 0.8; }
}

/* ── Nav Auto-Hide (hidden in hero, visible on scroll) ── */
.nav-auto-hide {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}
.nav-auto-hide.nav-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ── Pill Filter ─────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #2A2A2A;
  background: transparent;
  color: #999999;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: 999px;
}
.pill:hover {
  border-color: #F0F0F0;
  color: #F0F0F0;
}
.pill.active {
  background-color: #4DA8FF;
  color: #0D0D0D;
  border-color: #4DA8FF;
}

/* ── Product Card Overlay (slide-up on hover) ── */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.7) 60%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.product-card:hover .card-overlay {
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Quick Add (size pills on hover) ──────────── */
.quick-add {
  display: flex;
  gap: 6px;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
}
.product-card:hover .quick-add {
  opacity: 1;
}
.quick-add-btn {
  width: 36px;
  height: 28px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  border: 1px solid #F0F0F0;
  background: transparent;
  color: #F0F0F0;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 4px;
}
.quick-add-btn:hover {
  background: #4DA8FF;
  border-color: #4DA8FF;
  color: #0D0D0D;
}
.quick-add-btn.out-of-stock {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Checkout Progress Bar ───────────────────── */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666666;
  transition: color 0.3s ease;
}
.checkout-step.active {
  color: #4DA8FF;
}
.checkout-step.completed {
  color: #22C55E;
}
.checkout-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #2A2A2A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 12px;
  font-weight: 700;
}
.checkout-step.active .checkout-step-dot {
  border-color: #4DA8FF;
  background: #4DA8FF;
  color: #0D0D0D;
}
.checkout-step.completed .checkout-step-dot {
  border-color: #22C55E;
  background: #22C55E;
  color: #0D0D0D;
}
.checkout-line {
  width: 48px;
  height: 2px;
  background: #2A2A2A;
  margin: 0 8px;
  transition: background 0.3s ease;
}
.checkout-line.completed {
  background: #22C55E;
}

/* ── Tier Card (Mystery Box) ─────────────────── */
.tier-card {
  background: #1C1C1C;
  border: 2px solid #2A2A2A;
  transition: all 0.3s ease;
}
.tier-card:hover {
  border-color: #333333;
  transform: translateY(-2px);
}
.tier-card.tier-premium {
  border-color: #4DA8FF;
  box-shadow: 0 0 30px rgba(77, 168, 255, 0.1),
              0 0 60px rgba(77, 168, 255, 0.05);
}
.tier-card.tier-premium:hover {
  box-shadow: 0 0 40px rgba(77, 168, 255, 0.15),
              0 0 80px rgba(77, 168, 255, 0.08);
}

/* ── FAQ Accordion ───────────────────────────── */
.faq-item {
  border-bottom: 1px solid #2A2A2A;
}
.faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  color: #F0F0F0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-trigger:hover {
  color: #4DA8FF;
}
.faq-trigger svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #666666;
}
.faq-item.open .faq-trigger svg {
  transform: rotate(45deg);
  color: #4DA8FF;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s ease;
  padding: 0 0;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 0 20px 0;
}

/* ── Bifurcation Cards (Home) ────────────────── */
.bifurcation-card {
  position: relative;
  overflow: hidden;
  background: #1C1C1C;
  border: 1px solid #2A2A2A;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.bifurcation-card:hover {
  border-color: #4DA8FF;
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(77, 168, 255, 0.2);
}
.bifurcation-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.8) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Toast (dark theme) ──────────────────────── */
.cart-toast {
  background: #1C1C1C;
  border: 1px solid #2A2A2A;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ── Stagger animation delays ────────────────── */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ── Search expand ───────────────────────────── */
.search-expand {
  width: 40px;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-expand.expanded {
  width: 240px;
}
.search-expand input {
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
}
.search-expand.expanded input {
  opacity: 1;
}

/* ── Overlay System ─────────────────────────── */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 100;
  pointer-events: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

.overlay-backdrop.active {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.overlay-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85vh;
  background: #111;
  border-top: 1px solid rgba(77, 168, 255, 0.3);
  border-radius: 20px 20px 0 0;
  z-index: 101;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.overlay-panel.active {
  transform: translateY(0);
}

.overlay-handle {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 12px auto 0;
}

.overlay-header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #111 80%, transparent);
  padding: 20px 24px 16px;
  z-index: 2;
}

.overlay-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.overlay-close:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(77, 168, 255, 0.4);
}

.overlay-grid {
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .overlay-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .overlay-grid { grid-template-columns: repeat(4, 1fr); max-width: 900px; margin: 0 auto; }
}

/* ── Overlay Card Animation ─────────────────── */
@keyframes cardShootIn {
  0% { opacity: 0; transform: translateY(60px) scale(0.85); }
  60% { opacity: 1; transform: translateY(-8px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.card-shoot {
  animation: cardShootIn 0.6s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
  opacity: 0;
}

/* ── Overlay Cards (shared between country/player views) ─── */
.overlay-card {
  background: #1C1C1C;
  border: 1px solid #2A2A2A;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.overlay-card:hover {
  border-color: #4DA8FF;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(77, 168, 255, 0.2);
}

.overlay-card img {
  width: 100%;
  object-fit: cover;
  background-color: #1C1C1C;
}

/* ── Hub Cards (homepage) ───────────────────── */
.hub-card {
  background: #1C1C1C;
  border: 2px solid #2A2A2A;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 320px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hub-card:hover {
  border-color: #4DA8FF;
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(77, 168, 255, 0.3), 0 0 40px rgba(77, 168, 255, 0.1);
}

.hub-card-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.hub-card:hover .hub-card-icon {
  transform: scale(1.1);
}

.hub-card-title {
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F0F0F0;
}

.hub-card-sub {
  color: #999;
  font-size: 14px;
  line-height: 1.5;
  max-width: 220px;
}

.hub-card-meta {
  color: #4DA8FF;
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hub card micro-animations */
@keyframes boxShake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-8deg); }
  30% { transform: rotate(8deg); }
  45% { transform: rotate(-5deg); }
  60% { transform: rotate(5deg); }
  75% { transform: rotate(-2deg); }
}

@keyframes jerseyFill {
  0% { clip-path: inset(100% 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* ── Explora Tabs ───────────────────────────── */
.explora-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #2A2A2A;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.explora-tabs::-webkit-scrollbar { display: none; }

.explora-tab {
  padding: 12px 24px;
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.explora-tab:hover {
  color: #999;
}

.explora-tab.active {
  color: #4DA8FF;
  border-bottom-color: #4DA8FF;
}

.explora-content {
  display: none;
}

.explora-content.active {
  display: block;
}

/* ── Builder (personaliza) ──────────────────── */
.builder-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.builder-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.builder-step.active {
  color: #4DA8FF;
}

.builder-step.completed {
  color: #22C55E;
}

.builder-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #2A2A2A;
  color: #666;
  background: transparent;
  transition: all 0.3s ease;
}

.builder-step.active .builder-step-dot {
  border-color: #4DA8FF;
  background: #4DA8FF;
  color: #0D0D0D;
}

.builder-step.completed .builder-step-dot {
  border-color: #22C55E;
  background: #22C55E;
  color: #0D0D0D;
}

.builder-line {
  width: 48px;
  height: 2px;
  background: #2A2A2A;
  margin: 0 4px;
  transition: background 0.3s ease;
}

.builder-line.completed {
  background: #22C55E;
}

.builder-option {
  background: #1C1C1C;
  border: 2px solid #2A2A2A;
  border-radius: 8px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: #F0F0F0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.builder-option:hover {
  border-color: #4DA8FF;
  background: #222;
}

.builder-option.selected {
  border-color: #4DA8FF;
  background: rgba(77, 168, 255, 0.1);
  color: #4DA8FF;
}
