/**
 * SigmaChess - Premium Main Stylesheet v2.0
 * Completely Rebuilt - Dark Luxury Edition
 * Handcrafted Premium Design System
 */

/* ===== Page Loader ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark-void);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--sp-6);
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(212, 168, 83, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  animation: loaderSlide 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

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

/* ===== Header - Premium Glass Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-header);
  transition: var(--transition-normal);
  background: transparent;
}

.header.scrolled {
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border-bottom: 1px solid rgba(212, 168, 83, 0.06);
  height: var(--header-height-scrolled);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  position: relative;
  z-index: 10;
}

.logo img {
  height: 44px;
  width: auto;
  transition: var(--transition-normal);
  filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.3));
}

.logo:hover img {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 0 16px rgba(212, 168, 83, 0.5));
}

.logo-text {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
  box-shadow: 0 0 8px rgba(212, 168, 83, 0.4);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
  background: rgba(212, 168, 83, 0.04);
}

/* Submenu */
.submenu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  background: rgba(12, 12, 20, 0.96);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--sp-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-2xl);
  z-index: var(--z-dropdown);
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.submenu a {
  display: block;
  padding: var(--sp-3) var(--sp-5);
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  position: relative;
}

.submenu a::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

.submenu a:hover {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.06);
  padding-right: var(--sp-6);
}

.submenu a:hover::before {
  height: 50%;
}

/* Header CTA */
.header-cta {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: calc(var(--z-header) + 10);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.menu-toggle:hover {
  background: rgba(212, 168, 83, 0.06);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
  position: absolute;
}

.menu-toggle span:nth-child(1) { transform: translateY(-7px); }
.menu-toggle span:nth-child(2) { width: 16px; }
.menu-toggle span:nth-child(3) { transform: translateY(7px); }

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg); width: 22px; }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); width: 22px; }

/* ===== HERO BACKGROUND IMAGE ===== */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 2, 5, 0.7) 0%,
    rgba(5, 5, 8, 0.5) 40%,
    rgba(5, 5, 8, 0.8) 80%,
    rgba(5, 5, 8, 0.95) 100%
  );
}

/* ===== SECTION IMAGE BANNERS ===== */
.section-image-banner {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  margin-bottom: var(--sp-12);
  border: 1px solid rgba(212, 168, 83, 0.1);
}

.section-image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease-out);
}

.section-image-banner:hover img {
  transform: scale(1.05);
}

.section-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 8, 0.1) 0%,
    rgba(5, 5, 8, 0.4) 100%
  );
  pointer-events: none;
}

/* ===== SHOPPING CART ACTION ===== */
.header-cart-link{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 10px;border:1px solid rgba(212,168,83,.15);border-radius:var(--radius-lg);color:var(--text-tertiary);transition:var(--transition-normal);margin-inline-start:var(--sp-2);white-space:nowrap}
.header-cart-link:hover{color:var(--gold);background:rgba(212,168,83,.08);border-color:rgba(212,168,83,.3);transform:translateY(-1px)}
.header-cart-link svg{width:18px;height:18px;stroke:currentColor}
.header-cart-label{font-size:var(--fs-xs);font-weight:700}
.header-cart-count{position:absolute;top:-7px;inset-inline-end:-7px;min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:var(--gold);color:#101015;font-size:10px;font-weight:900;line-height:1;box-shadow:0 3px 10px rgba(212,168,83,.35);border:2px solid var(--bg-primary)}
.header-cart-count[hidden]{display:none}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.15);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  margin-left: var(--sp-3);
}

.theme-toggle:hover {
  background: rgba(212, 168, 83, 0.12);
  border-color: rgba(212, 168, 83, 0.3);
  transform: scale(1.05);
}

.theme-toggle svg {
  fill: var(--gold);
  transition: var(--transition-normal);
}

.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: block;
}

/* Logo visibility for theme */
.logo-light-mode {
  display: none;
}

.logo-dark-mode {
  display: block;
}

/* ===== HERO SECTION - Cinematic Breathtaking ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--dark-void);
  padding-top: var(--header-height);
}

/* Chess board pattern background */
.hero-chess-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: 
    linear-gradient(45deg, rgba(212, 168, 83, 0.5) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(212, 168, 83, 0.5) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(212, 168, 83, 0.5) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(212, 168, 83, 0.5) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

/* Animated gradient orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(212, 168, 83, 0.06);
  top: -20%;
  right: -10%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(212, 168, 83, 0.04);
  bottom: -10%;
  left: -5%;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(100, 80, 200, 0.03);
  top: 40%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleDrift 10s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: -2s; }
.particle:nth-child(3) { left: 40%; top: 30%; animation-delay: -4s; }
.particle:nth-child(4) { left: 60%; top: 70%; animation-delay: -6s; }
.particle:nth-child(5) { left: 75%; top: 25%; animation-delay: -1s; }
.particle:nth-child(6) { left: 85%; top: 55%; animation-delay: -3s; }
.particle:nth-child(7) { left: 30%; top: 80%; animation-delay: -5s; }
.particle:nth-child(8) { left: 55%; top: 15%; animation-delay: -7s; }
.particle:nth-child(9) { left: 90%; top: 40%; animation-delay: -8s; }
.particle:nth-child(10) { left: 5%; top: 45%; animation-delay: -9s; }
.particle:nth-child(11) { left: 45%; top: 90%; animation-delay: -3.5s; }
.particle:nth-child(12) { left: 70%; top: 10%; animation-delay: -6.5s; }

@keyframes particleDrift {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 0.6; }
  50% { opacity: 0.3; transform: translateY(-40px) scale(1); }
  80% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.5); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  padding: var(--sp-8);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-6);
  background: rgba(212, 168, 83, 0.05);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: var(--radius-full);
  color: var(--gold);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-10);
  backdrop-filter: blur(10px);
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(212, 168, 83, 0.6);
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: 6px;
  margin-bottom: var(--sp-6);
  line-height: 1;
  opacity: 0;
  transform: translateY(40px);
}

.hero-title .title-gold {
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero-title .title-gold::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  opacity: 0.4;
}

.hero-subtitle {
  font-size: var(--fs-3xl);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: var(--sp-6);
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-description {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: 2;
  max-width: 650px;
  margin: 0 auto var(--sp-12);
  opacity: 0;
  transform: translateY(30px);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  opacity: 0;
  transform: translateY(30px);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--sp-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  animation: scrollFloat 3s ease-in-out infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(212, 168, 83, 0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--gold);
  border-radius: var(--radius-full);
  animation: scrollDot 2s ease-in-out infinite;
}

.scroll-text {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes scrollFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ===== SEARCH SECTION - Premium Glass ===== */
.search-section {
  padding: var(--sp-section) 0;
  background: var(--bg-section-1);
  position: relative;
  overflow: hidden;
}

.search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.2), transparent);
}

.search-section::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.search-box {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid rgba(212, 168, 83, 0.1);
  border-radius: var(--radius-3xl);
  padding: var(--sp-2);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.search-input-wrapper:focus-within {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold), var(--shadow-lg);
  transform: translateY(-2px);
}

.search-input {
  flex: 1;
  padding: var(--sp-5) var(--sp-6);
  background: transparent;
  color: var(--text-primary);
  font-size: var(--fs-md);
}

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

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--gold-gradient);
  border-radius: var(--radius-2xl);
  transition: var(--transition-normal);
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}

.search-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-gold-lg);
}

.search-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--dark-primary);
}

/* Search Suggestions */
.search-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  flex-wrap: wrap;
}

.search-tag {
  padding: var(--sp-2) var(--sp-5);
  background: rgba(212, 168, 83, 0.04);
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: var(--transition-normal);
  cursor: pointer;
}

.search-tag:hover,
.search-tag.active {
  background: rgba(212, 168, 83, 0.1);
  border-color: rgba(212, 168, 83, 0.3);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ===== FEATURED PLAYERS - Premium Cards ===== */
.players-section {
  padding: var(--sp-section) 0;
  background: var(--bg-section-2);
  position: relative;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.player-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.06);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
  backdrop-filter: blur(10px);
}

.player-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), transparent 50%, rgba(212, 168, 83, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: none;
}

.player-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(212, 168, 83, 0.15);
}

.player-card:hover::before {
  opacity: 1;
}

.player-avatar-area {
  height: 200px;
  background: linear-gradient(135deg, var(--dark-tertiary) 0%, var(--dark-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.player-avatar-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(212, 168, 83, 0.08) 0%, transparent 60%);
}

.player-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.08);
  border: 2px solid rgba(212, 168, 83, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.1);
}

.player-card:hover .player-avatar-circle {
  transform: scale(1.08);
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 168, 83, 0.25);
}

.player-avatar-circle svg {
  width: 36px;
  height: 36px;
  fill: var(--gold);
}

.player-rating-badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  background: var(--gold-gradient);
  color: var(--dark-primary);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 800;
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.5px;
}

.player-country-badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(10px);
  color: var(--text-tertiary);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-info {
  padding: var(--sp-6);
}

.player-name {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.player-club {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(212, 168, 83, 0.06);
}

.player-level {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4);
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gold);
}

.player-achievement {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.player-achievement svg {
  width: 12px;
  height: 12px;
  fill: var(--gold);
}

/* ===== ARTICLES SECTION - Magazine Layout ===== */
.articles-section {
  padding: var(--sp-section) 0;
  background: var(--bg-section-1);
  position: relative;
}

.articles-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-8);
}

.article-featured {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.06);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
}

.article-featured:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(212, 168, 83, 0.15);
}

.article-featured-image {
  height: 320px;
  background: linear-gradient(135deg, var(--dark-tertiary), var(--dark-elevated));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-featured-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.article-featured:hover .article-featured-image img {
  transform: scale(1.08);
}

.article-featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 8, 14, 0.8) 100%);
  z-index: 1;
}

.article-featured-image .article-icon {
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.15;
  transition: var(--transition-slow);
  position: relative;
  z-index: 2;
}

.article-featured:hover .article-icon {
  opacity: 0.25;
  transform: scale(1.1);
}

.article-featured-content {
  padding: var(--sp-8);
}

.article-category-tag {
  display: inline-block;
  padding: var(--sp-1) var(--sp-4);
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: var(--radius-full);
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--sp-4);
  letter-spacing: 0.3px;
}

.article-featured h3 {
  font-size: var(--fs-xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  line-height: 1.5;
  transition: var(--transition-normal);
}

.article-featured:hover h3 {
  color: var(--gold-light);
}

.article-featured p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: var(--sp-6);
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.article-meta-item svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
  opacity: 0.7;
}

/* Secondary articles */
.articles-secondary {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.article-card-sm {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.06);
  border-radius: var(--radius-2xl);
  padding: var(--sp-6);
  transition: var(--transition-normal);
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}

.article-card-sm:hover {
  transform: translateX(-8px);
  border-color: rgba(212, 168, 83, 0.15);
  box-shadow: var(--shadow-card-hover);
}

.article-card-sm-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-normal);
}

.article-card-sm:hover .article-card-sm-icon {
  background: rgba(212, 168, 83, 0.12);
  border-color: rgba(212, 168, 83, 0.3);
  box-shadow: var(--shadow-gold);
}

.article-card-sm-content h4 {
  font-size: var(--fs-base);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: 1.5;
  font-weight: 700;
  transition: var(--transition-normal);
}

.article-card-sm:hover .article-card-sm-content h4 {
  color: var(--gold-light);
}

.article-card-sm-content p {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.7;
}

.article-card-sm-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* ===== TRAINING SECTION - Dark Premium ===== */
.training-section {
  padding: var(--sp-section) 0;
  background: var(--bg-section-2);
  position: relative;
  overflow: hidden;
}

.training-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(212, 168, 83, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(100, 80, 200, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  position: relative;
  z-index: 1;
}

.training-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 168, 83, 0.06);
  border-radius: var(--radius-2xl);
  padding: var(--sp-10);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.training-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-slow) var(--ease-out);
}

.training-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.04) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-slow);
}

.training-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 168, 83, 0.2);
  box-shadow: 0 20px 60px rgba(212, 168, 83, 0.08);
}

.training-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.training-card:hover::after {
  opacity: 1;
}

.training-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
  transition: var(--transition-normal);
}

.training-card:hover .training-icon-wrap {
  background: rgba(212, 168, 83, 0.12);
  border-color: rgba(212, 168, 83, 0.3);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.15);
  transform: scale(1.05);
}

.training-icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: var(--gold);
}

.training-card h3 {
  font-size: var(--fs-xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  font-weight: 700;
}

.training-card > p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: var(--sp-6);
}

.training-details {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(212, 168, 83, 0.06);
}

.training-detail {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

.training-detail svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
  opacity: 0.7;
}

.training-features {
  list-style: none;
}

.training-features li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

.training-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(212, 168, 83, 0.5);
}

/* ===== TOURNAMENTS SECTION ===== */
.tournaments-section {
  padding: var(--sp-section) 0;
  background: var(--bg-section-1);
  position: relative;
}

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.tournament-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.06);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: var(--transition-normal);
}

.tournament-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(212, 168, 83, 0.15);
}

.tournament-header {
  background: linear-gradient(135deg, var(--dark-tertiary) 0%, var(--dark-elevated) 100%);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}

.tournament-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.05) 0%, transparent 60%);
}

.tournament-type-badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-4);
  background: var(--gold-gradient);
  color: var(--dark-primary);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 800;
  margin-bottom: var(--sp-3);
  letter-spacing: 0.3px;
}

.tournament-status {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.tournament-status.open {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.tournament-status.active {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tournament-card h3 {
  font-size: var(--fs-lg);
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.tournament-body {
  padding: var(--sp-6);
}

.tournament-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.tournament-info-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.tournament-info-item svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

.tournament-prize-box {
  background: rgba(212, 168, 83, 0.04);
  border: 1px solid rgba(212, 168, 83, 0.1);
  padding: var(--sp-4);
  border-radius: var(--radius-xl);
  text-align: center;
  margin-bottom: var(--sp-5);
}

.tournament-prize-label {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.tournament-prize-value {
  font-size: var(--fs-2xl);
  font-weight: 900;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: var(--sp-1);
}

.tournament-progress {
  margin-bottom: var(--sp-5);
}

.tournament-progress-bar {
  height: 4px;
  background: rgba(212, 168, 83, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tournament-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  position: relative;
  transition: width 2s var(--ease-out);
}

.tournament-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-shimmer);
  animation: shimmer 2.5s infinite;
}

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

.tournament-progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.tournament-register-btn {
  display: block;
  width: 100%;
  padding: var(--sp-4);
  background: var(--gold-gradient);
  color: var(--dark-primary);
  font-weight: 700;
  border-radius: var(--radius-xl);
  text-align: center;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.3px;
}

.tournament-register-btn:hover {
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-3px);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
  padding: var(--sp-section) 0;
  background: var(--bg-section-2);
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.06);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8);
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
  opacity: 0;
  transition: var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(212, 168, 83, 0.15);
}

.product-card:hover::before {
  opacity: 1;
}

.product-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--sp-6);
  background: rgba(212, 168, 83, 0.05);
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.product-card:hover .product-icon-wrap {
  background: rgba(212, 168, 83, 0.1);
  border-color: rgba(212, 168, 83, 0.3);
  transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.product-icon-wrap svg {
  width: 36px;
  height: 36px;
  fill: var(--gold);
}

.product-card h3 {
  font-size: var(--fs-lg);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  font-weight: 700;
}

.product-count {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin-bottom: var(--sp-5);
}

.product-featured-item {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(212, 168, 83, 0.06);
}

.product-featured-name {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}

.product-featured-price {
  font-size: var(--fs-xl);
  font-weight: 900;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications-section {
  padding: var(--sp-section) 0;
  background: var(--bg-section-1);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.certification-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.06);
  border-radius: var(--radius-2xl);
  padding: var(--sp-10);
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
}

.certification-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 168, 83, 0.2);
  box-shadow: var(--shadow-card-hover);
}

.certification-logo-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto var(--sp-6);
  background: rgba(212, 168, 83, 0.05);
  border: 1.5px solid rgba(212, 168, 83, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.certification-card:hover .certification-logo-wrap {
  background: rgba(212, 168, 83, 0.1);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: scale(1.05);
}

.certification-logo-wrap svg {
  width: 38px;
  height: 38px;
  fill: var(--gold);
}

.certification-card h3 {
  font-size: var(--fs-lg);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  font-weight: 700;
}

.certification-card p {
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

/* ===== STATISTICS SECTION - Animated ===== */
.stats-section {
  padding: var(--sp-section) 0;
  background: var(--dark-void);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 25% 50%, rgba(212, 168, 83, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 50%, rgba(212, 168, 83, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.stats-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.2), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: var(--sp-10);
  border-radius: var(--radius-2xl);
  transition: var(--transition-normal);
  position: relative;
  border: 1px solid transparent;
}

.stat-card:hover {
  background: rgba(212, 168, 83, 0.02);
  border-color: rgba(212, 168, 83, 0.08);
}

.stat-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-6);
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.stat-card:hover .stat-icon-wrap {
  background: rgba(212, 168, 83, 0.12);
  box-shadow: var(--shadow-gold);
  transform: scale(1.08);
}

.stat-icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: var(--gold);
}

.stat-number {
  font-size: var(--fs-5xl);
  font-weight: 900;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-2);
  direction: ltr;
  letter-spacing: -1px;
}

.stat-label {
  font-size: var(--fs-md);
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: var(--sp-section) 0;
  background: var(--bg-section-2);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(100, 80, 200, 0.02) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: var(--sp-20) var(--sp-12);
  background: var(--bg-card);
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(212, 168, 83, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 83, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.cta-card p {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin-bottom: var(--sp-10);
  line-height: 1.9;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-void);
  color: var(--text-tertiary);
  padding: var(--sp-24) 0 var(--sp-10);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.2), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-16);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.footer-logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.3));
}

.footer-brand > p {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: var(--sp-6);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 83, 0.04);
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  transition: var(--transition-normal);
}

.footer-social a:hover svg {
  fill: var(--dark-primary);
}

.footer-column h4 {
  font-size: var(--fs-lg);
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
  position: relative;
  padding-bottom: var(--sp-3);
  font-weight: 700;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
}

.footer-links li {
  margin-bottom: var(--sp-3);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
}

.footer-links a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition-normal);
}

.footer-links a:hover {
  color: var(--gold);
  padding-right: var(--sp-3);
}

.footer-links a:hover::before {
  width: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  transition: var(--transition-normal);
}

.footer-contact-item:hover {
  color: var(--text-tertiary);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-bottom {
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(212, 168, 83, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--gold);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  left: var(--sp-8);
  width: 50px;
  height: 50px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: var(--transition-normal);
  z-index: var(--z-sticky);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-gold-glow);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: var(--dark-primary);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .players-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .articles-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-cart-label{display:none}
  .header-cart-link{width:40px;height:40px;min-height:40px;padding:0;justify-content:center;margin-inline-start:4px}
  .header-cart-count{top:-6px;inset-inline-end:-6px}
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: var(--glass-blur-ultra);
    -webkit-backdrop-filter: var(--glass-blur-ultra);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    z-index: calc(var(--z-header) + 5);
    overflow-y: auto;
    padding: var(--sp-8);
  }
  
  .nav.open {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--sp-2);
    width: 100%;
    max-width: 300px;
  }
  
  .nav-item { width: 100%; }
  
  .nav-link {
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--fs-lg);
    justify-content: center;
    border-radius: var(--radius-xl);
  }
  
  .nav-link::after { display: none; }
  
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(212, 168, 83, 0.03);
    border: none;
    box-shadow: none;
    padding: var(--sp-2) var(--sp-4);
    margin-bottom: var(--sp-2);
    border-radius: var(--radius-lg);
    min-width: unset;
    backdrop-filter: none;
  }
  
  .submenu a { text-align: center; }
  
  /* Mobile Grids */
  .players-grid,
  .training-grid,
  .tournaments-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--sp-4);
    text-align: center;
  }
  
  /* Mobile Hero */
  .hero-actions {
    flex-direction: column;
    gap: var(--sp-4);
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .hero-scroll-indicator { display: none; }
  
  /* Mobile CTA */
  .cta-card {
    padding: var(--sp-12) var(--sp-6);
    border-radius: var(--radius-2xl);
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--sp-3);
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: var(--fs-4xl);
  }
}

/* ===== Loading Overlay (legacy support) ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark-void);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(212, 168, 83, 0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --dark-void: #FFFFFF;
  --dark-abyss: #F8F9FA;
  --dark-primary: #FFFFFF;
  --dark-secondary: #F5F5F7;
  --dark-tertiary: #EFEFEF;
  --dark-elevated: #E8E8EC;
  --dark-surface: #F0F0F4;
  --dark-hover: #E5E5EA;
  --dark-navy: #F8F8FC;
  --dark-navy-deep: #FAFAFE;
  
  --bg-body: #FFFFFF;
  --bg-section-1: #F8F9FA;
  --bg-section-2: #F2F3F5;
  --bg-section-3: #ECEDF0;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-light: rgba(0, 0, 0, 0.02);
  --bg-glass-gold: rgba(212, 168, 83, 0.05);
  --bg-input: rgba(245, 245, 247, 0.9);
  
  --text-primary: #1A1A2E;
  --text-secondary: #2D2D44;
  --text-tertiary: #4A4A64;
  --text-muted: #6B6B82;
  --text-dim: #8A8A9E;
  --text-gold: #A07D2E;
  --text-gold-light: #7A5C1A;
  
  --gold: #A07D2E;
  --gold-light: #C49A3C;
  --gold-dark: #7A5C1A;
  --gold-gradient: linear-gradient(135deg, #A07D2E 0%, #C49A3C 40%, #A07D2E 70%, #7A5C1A 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(160, 125, 46, 0.1) 0%, rgba(196, 154, 60, 0.05) 100%);
  --gold-text-gradient: linear-gradient(135deg, #C49A3C 0%, #A07D2E 50%, #7A5C1A 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.14);
  --shadow-gold: 0 4px 24px rgba(160, 125, 46, 0.15);
  --shadow-gold-lg: 0 8px 40px rgba(160, 125, 46, 0.2);
  --shadow-gold-glow: 0 0 40px rgba(160, 125, 46, 0.1), 0 0 80px rgba(160, 125, 46, 0.05);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(160, 125, 46, 0.08);
  --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(160, 125, 46, 0.15);
  
  --glass-border: rgba(160, 125, 46, 0.12);
  --glass-border-hover: rgba(160, 125, 46, 0.25);
  
  --noise-opacity: 0;
}

/* Light mode specific overrides */
[data-theme="light"] body {
  background-color: #FFFFFF;
  color: #2D2D44;
}

[data-theme="light"] body::before {
  display: none;
}

[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(160, 125, 46, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .logo-text {
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .nav-link {
  color: #4A4A64;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #A07D2E;
}

[data-theme="light"] .nav-link:hover {
  background: rgba(160, 125, 46, 0.06);
}

[data-theme="light"] .submenu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(160, 125, 46, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .submenu a {
  color: #4A4A64;
}

[data-theme="light"] .submenu a:hover {
  color: #A07D2E;
  background: rgba(160, 125, 46, 0.06);
}

/* Light mode theme toggle */
[data-theme="light"] .theme-icon-sun {
  display: block;
}

[data-theme="light"] .theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle {
  background: rgba(160, 125, 46, 0.08);
  border-color: rgba(160, 125, 46, 0.2);
}

[data-theme="light"] .theme-toggle svg {
  fill: #A07D2E;
}

/* Light mode logo switching */
[data-theme="light"] .logo-dark-mode {
  display: none;
}

[data-theme="light"] .logo-light-mode {
  display: block;
}

/* Light mode hero */
[data-theme="light"] .hero {
  background: #F8F9FA;
}

[data-theme="light"] .hero-bg-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(248, 249, 250, 0.3) 40%,
    rgba(248, 249, 250, 0.7) 80%,
    rgba(248, 249, 250, 0.95) 100%
  );
}

[data-theme="light"] .hero-badge {
  background: rgba(160, 125, 46, 0.08);
  border-color: rgba(160, 125, 46, 0.25);
  color: #A07D2E;
}

[data-theme="light"] .hero-subtitle {
  color: #2D2D44;
}

[data-theme="light"] .hero-description {
  color: #6B6B82;
}

[data-theme="light"] .btn-gold {
  background: var(--gold-gradient);
  color: #FFFFFF;
}

[data-theme="light"] .btn-ghost {
  color: #2D2D44;
  border-color: rgba(160, 125, 46, 0.3);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(160, 125, 46, 0.08);
  border-color: #A07D2E;
  color: #A07D2E;
}

/* Light mode sections */
[data-theme="light"] .search-section,
[data-theme="light"] .articles-section,
[data-theme="light"] .tournaments-section,
[data-theme="light"] .certifications-section {
  background: #F8F9FA;
}

[data-theme="light"] .players-section,
[data-theme="light"] .training-section,
[data-theme="light"] .products-section,
[data-theme="light"] .cta-section {
  background: #F2F3F5;
}

[data-theme="light"] .stats-section {
  background: #FFFFFF;
}

/* Light mode cards */
[data-theme="light"] .player-card,
[data-theme="light"] .article-featured,
[data-theme="light"] .article-card-sm,
[data-theme="light"] .training-card,
[data-theme="light"] .tournament-card,
[data-theme="light"] .product-card,
[data-theme="light"] .certification-card,
[data-theme="light"] .cta-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(160, 125, 46, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .player-card:hover,
[data-theme="light"] .article-featured:hover,
[data-theme="light"] .article-card-sm:hover,
[data-theme="light"] .training-card:hover,
[data-theme="light"] .tournament-card:hover,
[data-theme="light"] .product-card:hover,
[data-theme="light"] .certification-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(160, 125, 46, 0.2);
}

/* Light mode player cards */
[data-theme="light"] .player-avatar-area {
  background: linear-gradient(135deg, #F0F0F4 0%, #E8E8EC 100%);
}

[data-theme="light"] .player-avatar-circle {
  background: rgba(160, 125, 46, 0.08);
  border-color: rgba(160, 125, 46, 0.3);
}

[data-theme="light"] .player-country-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #4A4A64;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Light mode tournament header */
[data-theme="light"] .tournament-header {
  background: linear-gradient(135deg, #F0F0F4 0%, #E8E8EC 100%);
}

/* Light mode search */
[data-theme="light"] .search-input-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(160, 125, 46, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .search-input {
  color: #1A1A2E;
}

[data-theme="light"] .search-input::placeholder {
  color: #8A8A9E;
}

[data-theme="light"] .search-tag {
  background: rgba(160, 125, 46, 0.05);
  border-color: rgba(160, 125, 46, 0.12);
  color: #4A4A64;
}

[data-theme="light"] .search-tag:hover,
[data-theme="light"] .search-tag.active {
  background: rgba(160, 125, 46, 0.1);
  border-color: rgba(160, 125, 46, 0.3);
  color: #A07D2E;
}

/* Light mode section image banner */
[data-theme="light"] .section-image-banner {
  border-color: rgba(160, 125, 46, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .section-image-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(248, 249, 250, 0.2) 100%
  );
}

/* Light mode footer */
[data-theme="light"] .footer {
  background: #1A1A2E;
  color: #B8B4AC;
}

[data-theme="light"] .footer::before {
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.3), transparent);
}

/* Light mode page loader */
[data-theme="light"] .page-loader {
  background: #FFFFFF;
}

/* Light mode back to top */
[data-theme="light"] .back-to-top {
  box-shadow: 0 4px 20px rgba(160, 125, 46, 0.2);
}

/* Light mode section eyebrow */
[data-theme="light"] .section-eyebrow {
  background: rgba(160, 125, 46, 0.08);
  border-color: rgba(160, 125, 46, 0.2);
  color: #A07D2E;
}

/* Light mode section separators */
[data-theme="light"] .search-section::before,
[data-theme="light"] .stats-section::after {
  background: linear-gradient(90deg, transparent, rgba(160, 125, 46, 0.15), transparent);
}

/* Light mode mobile nav */
@media (max-width: 768px) {
  [data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.98);
  }
  
  [data-theme="light"] .nav-link {
    color: #2D2D44;
  }
}

/* Light mode article featured image */
[data-theme="light"] .article-featured-image {
  background: linear-gradient(135deg, #F0F0F4, #E8E8EC);
}

[data-theme="light"] .article-featured-image::after {
  background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.6) 100%);
}

/* Light mode training card top bar */
[data-theme="light"] .training-card::before {
  background: var(--gold-gradient);
}

/* Light mode icon wraps */
[data-theme="light"] .training-icon-wrap,
[data-theme="light"] .product-icon-wrap,
[data-theme="light"] .stat-icon-wrap,
[data-theme="light"] .certification-logo-wrap {
  background: rgba(160, 125, 46, 0.06);
  border-color: rgba(160, 125, 46, 0.15);
}

[data-theme="light"] .training-icon-wrap svg,
[data-theme="light"] .product-icon-wrap svg,
[data-theme="light"] .stat-icon-wrap svg,
[data-theme="light"] .certification-logo-wrap svg,
[data-theme="light"] .player-avatar-circle svg {
  fill: #A07D2E;
}
/* ===== Inner pages responsive polish ===== */
.inner-page-grid,
#productsGrid,
#programsGrid,
#tournamentsGrid,
#articlesGrid,
#playersGrid {
  width: 100%;
}

#productsGrid,
#programsGrid,
#tournamentsGrid,
#articlesGrid,
#playersGrid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
}

.product-card,
.program-card,
.tournament-card,
.article-card,
.player-search-card {
  min-width: 0;
}

.product-card h4,
.program-card h4,
.tournament-card h4,
.article-card h4,
.player-search-card h4 {
  overflow-wrap: anywhere;
}

#productFilters,
#trainingFilters,
#tournamentFilters,
#articleFilters,
#levelFilterBtns {
  max-width: 100%;
}

@media (max-width: 768px) {
  .page-header {
    padding: calc(var(--header-height) + 2.25rem) 0 2.5rem !important;
  }

  #productFilters,
  #trainingFilters,
  #tournamentFilters,
  #articleFilters {
    justify-content: flex-start !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding: 0.25rem 0.1rem 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 168, 83, 0.45) transparent;
  }

  #productFilters .btn,
  #trainingFilters .btn,
  #tournamentFilters .btn,
  #articleFilters .btn {
    flex: 0 0 auto;
    padding: 0.7rem 1rem !important;
    font-size: 0.85rem !important;
  }

  #playersGrid,
  #productsGrid,
  #programsGrid,
  #tournamentsGrid,
  #articlesGrid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .player-search-card {
    padding: 1.25rem !important;
    gap: 1rem !important;
  }

  .player-search-card > div:last-child {
    min-width: 0;
    width: 100%;
  }

  #playerSearchInput {
    min-width: 0;
    width: 100%;
  }

  #levelFilterBtns {
    gap: 0.45rem !important;
  }

  #levelFilterBtns .btn {
    padding: 0.55rem 0.85rem !important;
  }
}

@media (max-width: 520px) {
  .player-search-card {
    flex-direction: column !important;
    text-align: center;
  }

  .player-search-card > div:first-child {
    margin-inline: auto;
  }

  .player-search-card > div:last-child > div:first-child {
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 0.5rem;
  }

  .player-search-card > div:last-child > div:last-child {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem !important;
  }

  .product-card > div:last-child,
  .program-card > div:last-child,
  .tournament-card > div:last-child,
  .article-card > div:last-child {
    padding: 1.35rem !important;
  }

  .product-card > div:last-child > div:last-child,
  .program-card > div:last-child > div:last-child,
  .tournament-card > div:last-child > div:last-child {
    align-items: flex-start !important;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  #productFilters,
  #trainingFilters,
  #tournamentFilters,
  #articleFilters {
    justify-content: center !important;
    overflow-x: visible;
    flex-wrap: wrap !important;
    padding-bottom: 0.25rem;
  }
}


/* ===== SigmaChess v2.1 — Editorial scale & compact inner pages ===== */
html { scroll-padding-top: calc(var(--header-height) + 1rem); }
body { font-size: 0.95rem; line-height: 1.65; }
.container { max-width: var(--container-max); }

.page-context {
  padding-top: calc(var(--header-height) + 0.85rem);
  padding-bottom: 0.85rem;
  background: linear-gradient(180deg, rgba(5,5,8,0.92), rgba(5,5,8,0.42));
  border-bottom: 1px solid rgba(212,168,83,0.06);
}
.page-context .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  color: var(--text-dim);
  font-size: 0.76rem;
}
.page-context .breadcrumb a { color: var(--text-tertiary); }
.page-context .breadcrumb a:hover { color: var(--gold); }
.page-context .breadcrumb span { color: var(--gold); }
.page-context .breadcrumb svg,
.page-context .breadcrumb i { width: 13px; height: 13px; color: var(--text-dim); }
.page-content { min-height: 400px; }
.page-content > section { padding-top: 3rem !important; padding-bottom: 4rem !important; }
.page-content .section-header { margin-bottom: 2.25rem; }
.page-content .section-title { font-size: clamp(1.65rem, 3vw, 2.65rem); }
.page-content .section-description { font-size: 0.96rem; }
.page-content .section-eyebrow { font-size: 0.76rem; padding: 0.38rem 0.75rem; margin-bottom: 0.9rem; }

.section-header { margin-bottom: 2.5rem; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.section-description { font-size: 0.96rem; line-height: 1.8; }
.section-eyebrow { font-size: 0.76rem; padding: 0.4rem 0.8rem; margin-bottom: 1rem; }

.btn { padding: 0.68rem 1.22rem; font-size: 0.9rem; gap: 0.45rem; }
.btn-sm { padding: 0.48rem 0.82rem; font-size: 0.78rem; }
.btn-lg { padding: 0.82rem 1.55rem; font-size: 1rem; }

.hero { min-height: min(760px, 100svh); height: min(760px, 100svh); padding-top: var(--header-height); }
.hero-content { max-width: 860px; padding: 1.5rem; }
.hero-badge { padding: 0.5rem 0.9rem; margin-bottom: 1.25rem; font-size: 0.78rem; }
.hero-title { font-size: clamp(2.8rem, 5.2vw, 5.6rem); margin-bottom: 0.75rem; letter-spacing: 4px; }
.hero-subtitle { font-size: clamp(1.3rem, 2.5vw, 2.15rem); margin-bottom: 0.7rem; }
.hero-description { font-size: 0.95rem; line-height: 1.85; max-width: 570px; margin-bottom: 1.45rem; }
.hero-actions { gap: 0.75rem; }
.hero-actions .btn { padding: 0.78rem 1.35rem; font-size: 0.9rem; }
.hero-scroll-indicator { bottom: 1rem; gap: 0.35rem; pointer-events: none; }
.scroll-mouse { width: 19px; height: 30px; border-width: 1.5px; }
.scroll-mouse::after { top: 6px; width: 2px; height: 6px; }
.scroll-text { font-size: 0.6rem; letter-spacing: 1.5px; }

.header .container { padding-left: 1.25rem; padding-right: 1.25rem; }
.logo img { height: 38px; }
.logo-text { font-size: 1.03rem; letter-spacing: 3px; }
.nav-link { padding: 0.55rem 0.72rem; font-size: 0.82rem; }
.theme-toggle { width: 40px; height: 40px; }

.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-trigger svg { transition: transform var(--transition-normal); }
.nav-item.open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-item.open .submenu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

/* Compact page-specific cards */
#productsGrid,
#articlesGrid,
#playersGrid { gap: 1.35rem !important; }
#productsGrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
#articlesGrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
#playersGrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
#productsGrid .product-card,
#articlesGrid .article-card,
#playersGrid .player-search-card { border-radius: 1.15rem !important; }
#productsGrid .product-card > div:first-child { height: 182px !important; }
#productsGrid .product-card > div:last-child { padding: 1.3rem !important; }
#productsGrid .product-card h4 { font-size: 1.06rem !important; line-height: 1.5 !important; }
#productsGrid .product-card p { font-size: 0.8rem !important; margin-bottom: 0.8rem !important; }
#productsGrid .product-card ul { padding-top: 0.75rem !important; margin-bottom: 0.85rem !important; }
#productsGrid .product-card li { font-size: 0.76rem !important; }
#productsGrid .product-card .btn { font-size: 0.78rem !important; padding: 0.5rem 0.78rem !important; }
#productsGrid .product-card span[style*="font-size: 1.5rem"] { font-size: 1.18rem !important; }

#articlesGrid .article-card > div:first-child { height: 190px !important; }
#articlesGrid .article-card > div:last-child { padding: 1.3rem !important; }
#articlesGrid .article-card h4 { font-size: 1.05rem !important; line-height: 1.5 !important; }
#articlesGrid .article-card p { font-size: 0.82rem !important; line-height: 1.75 !important; margin-bottom: 1rem !important; }
#articlesGrid .article-card > div:last-child > div:first-child { font-size: 0.74rem !important; }
#articlesGrid .article-card .view-all { font-size: 0.82rem !important; padding: 0.45rem 0 !important; }

#playersGrid .player-search-card { padding: 1.25rem !important; gap: 1.05rem !important; align-items: center !important; }
#playersGrid .player-search-card > div:first-child { width: 86px !important; height: 86px !important; }
#playersGrid .player-search-card h4 { font-size: 1.08rem !important; line-height: 1.35 !important; }
#playersGrid .player-search-card p { font-size: 0.8rem !important; line-height: 1.6 !important; margin-bottom: 0.45rem !important; }
#playersGrid .player-search-card > div:last-child > div:last-child { font-size: 0.72rem !important; line-height: 1.6 !important; }

/* The reference-style player profile details */
.player-profile-card { position: relative; }
.player-profile-card .player-avatar { flex: 0 0 96px; width: 96px; height: 96px; }
.player-profile-card .player-profile-main { min-width: 0; flex: 1; }
.player-profile-card .player-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 0.8rem; margin-top: 0.75rem; }
.player-profile-card .player-profile-stat { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--text-muted); font-size: 0.73rem; border-bottom: 1px solid rgba(212,168,83,0.08); padding-bottom: 0.3rem; }
.player-profile-card .player-profile-stat strong { color: var(--text-secondary); font-weight: 600; }
.player-profile-card .player-bio { color: var(--text-dim); font-size: 0.75rem; line-height: 1.7; margin-top: 0.7rem; }

/* Compact global footer */
.footer { padding: 4.5rem 0 1.25rem; }
.footer-grid { gap: 2.25rem; margin-bottom: 3rem; }
.footer-brand { max-width: 280px; }
.footer-logo { margin-bottom: 0.9rem; }
.footer-logo img { height: 36px; }
.footer-brand > p { font-size: 0.78rem; line-height: 1.75; margin-bottom: 1.1rem; }
.footer-social { gap: 0.45rem; }
.footer-social a { width: 34px; height: 34px; border-radius: 0.65rem; }
.footer-social a svg { width: 15px; height: 15px; }
.footer-column h4 { font-size: 0.95rem; margin-bottom: 1rem; padding-bottom: 0.55rem; }
.footer-links li { margin-bottom: 0.3rem; }
.footer-links a { font-size: 0.78rem; padding: 0.2rem 0; }
.footer-contact-item { gap: 0.55rem; margin-bottom: 0.7rem; font-size: 0.78rem; }
.footer-contact-item svg { width: 15px; height: 15px; }
.footer-bottom { padding-top: 1rem; font-size: 0.72rem; }
.back-to-top { width: 42px; height: 42px; bottom: 1.25rem; left: 1.25rem; }
.back-to-top svg { width: 17px; height: 17px; }

@media (max-width: 1100px) {
  #productsGrid, #articlesGrid, #playersGrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 768px) {
  .page-context { padding-top: calc(var(--header-height) + 0.5rem); padding-bottom: 0.65rem; }
  .page-context .breadcrumb { justify-content: center; font-size: 0.7rem; }
  .page-content > section { padding-top: 2.2rem !important; padding-bottom: 3rem !important; }
  .hero { min-height: 680px; height: min(760px, 100svh); }
  .hero-content { padding-top: 0.5rem; }
  .hero-title { letter-spacing: 2px; }
  .hero-description { max-width: 500px; }
  .hero-scroll-indicator { bottom: 0.8rem; }
  .nav-dropdown-trigger { justify-content: center; width: 100%; }
  .nav-item.open .submenu { display: block; }
  .submenu { display: none; opacity: 0; visibility: hidden; }
  .nav-item.open > .submenu { opacity: 1; visibility: visible; }
  #productFilters, #trainingFilters, #tournamentFilters, #articleFilters { justify-content: center !important; overflow-x: visible !important; flex-wrap: wrap !important; gap: 0.5rem !important; }
  #productFilters .btn, #trainingFilters .btn, #tournamentFilters .btn, #articleFilters .btn { padding: 0.52rem 0.75rem !important; font-size: 0.76rem !important; }
  #productsGrid, #articlesGrid { grid-template-columns: minmax(0, 1fr) !important; }
  #playersGrid { grid-template-columns: minmax(0, 1fr) !important; }
  .footer { padding-top: 3.5rem; }
}
@media (max-width: 520px) {
  #playersGrid .player-search-card { flex-direction: row !important; text-align: right !important; }
  #playersGrid .player-search-card > div:first-child { flex: 0 0 72px !important; width: 72px !important; height: 72px !important; }
  #playersGrid .player-search-card .player-profile-grid { grid-template-columns: 1fr; }
  .hero { min-height: 640px; }
  .hero-title { font-size: clamp(2.35rem, 12vw, 3.6rem); }
  .hero-subtitle { font-size: 1.28rem; }
  .hero-actions { gap: 0.55rem; }
  .hero-actions .btn { width: auto; min-width: 150px; padding: 0.68rem 1rem; }
  .hero-scroll-indicator { display: flex; }
}


/* ===== SigmaChess v2.1 — New editorial components ===== */
.catalog-page,
.editorial-page,
.player-directory-page { padding: 0.25rem 0 4.75rem; }
.catalog-lead,
.editorial-lead,
.directory-lead { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding: 1.5rem 0 2rem; }
.catalog-kicker { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--gold); font-size: 0.76rem; letter-spacing: 0.35px; font-weight: 700; margin-bottom: 0.75rem; }
.catalog-kicker svg { width: 15px; height: 15px; }
.catalog-title { font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.2; color: var(--text-primary); margin-bottom: 0.75rem; }
.catalog-title span { color: var(--gold-light); }
.catalog-summary { max-width: 620px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.85; }
.catalog-note,
.editorial-mark,
.directory-stamp { min-width: 145px; display: flex; align-items: center; gap: 0.6rem; color: var(--gold); border-right: 1px solid rgba(212,168,83,0.28); padding-right: 1rem; font-size: 0.76rem; line-height: 1.6; }
.catalog-note svg, .editorial-mark svg, .directory-stamp svg { width: 20px; height: 20px; flex: 0 0 auto; }
.catalog-note strong { color: var(--text-secondary); font-size: 0.76rem; }
.editorial-mark { flex-direction: column; align-items: flex-start; gap: 0.15rem; min-width: 110px; }
.editorial-mark span { color: var(--gold); font-size: 1.85rem; line-height: 1; font-weight: 800; }
.editorial-mark small { color: var(--text-muted); font-size: 0.7rem; }
.directory-stamp { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.directory-stamp strong { font-size: 1.6rem; line-height: 1; color: var(--text-primary); }
.directory-stamp span { color: var(--text-muted); font-size: 0.7rem; }
.catalog-toolbar,
.editorial-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; margin-bottom: 1.45rem; border-top: 1px solid rgba(212,168,83,0.1); border-bottom: 1px solid rgba(212,168,83,0.1); }
.catalog-toolbar-label { display: flex; flex-direction: column; gap: 0.15rem; min-width: 150px; }
.catalog-toolbar-label span { color: var(--gold); font-size: 0.7rem; font-weight: 700; }
.catalog-toolbar-label strong { color: var(--text-secondary); font-size: 0.86rem; }
.catalog-filters { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 34px; padding: 0.42rem 0.72rem; color: var(--text-tertiary); background: transparent; border: 1px solid rgba(212,168,83,0.16); border-radius: 999px; font-size: 0.73rem; font-weight: 600; transition: var(--transition-fast); white-space: nowrap; }
.filter-chip b { min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.07); font-size: 0.65rem; color: var(--text-muted); }
.filter-chip:hover { color: var(--gold-light); border-color: rgba(212,168,83,0.46); background: rgba(212,168,83,0.05); }
.filter-chip.is-active { color: var(--dark-primary); border-color: transparent; background: var(--gold-gradient); box-shadow: var(--shadow-gold); }
.filter-chip.is-active b { color: var(--dark-primary); background: rgba(8,8,14,0.14); }

.product-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.catalog-product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(145deg, rgba(22,22,37,0.8), rgba(10,10,18,0.9)); border: 1px solid rgba(212,168,83,0.1); border-radius: 1rem; transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal); }
.catalog-product-card:hover { transform: translateY(-5px); border-color: rgba(212,168,83,0.34); box-shadow: var(--shadow-card-hover); }
.catalog-product-card[hidden], .editorial-card[hidden], .player-profile-card[hidden] { display: none !important; }
.catalog-product-media { height: 188px; position: relative; overflow: hidden; background: var(--dark-primary); }
.catalog-product-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,8,0.04), rgba(5,5,8,0.46)); pointer-events: none; }
.catalog-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.catalog-product-card:hover .catalog-product-media img { transform: scale(1.045); }
.catalog-product-topline { position: absolute; z-index: 1; top: 0.75rem; right: 0.75rem; left: 0.75rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.product-category-label, .product-badge { padding: 0.28rem 0.52rem; border-radius: 999px; font-size: 0.64rem; font-weight: 700; }
.product-category-label { color: var(--text-secondary); background: rgba(5,5,8,0.63); backdrop-filter: blur(10px); }
.product-badge { color: var(--dark-primary); background: var(--gold-gradient); }
.product-rating { position: absolute; z-index: 1; bottom: 0.65rem; left: 0.7rem; display: inline-flex; align-items: center; gap: 0.28rem; padding: 0.28rem 0.5rem; background: rgba(5,5,8,0.72); border-radius: 0.4rem; color: var(--gold-light); font-size: 0.68rem; font-weight: 700; direction: ltr; }
.product-rating svg { width: 12px; height: 12px; fill: currentColor; }
.product-rating small { color: var(--text-muted); font-size: 0.62rem; }
.catalog-product-body { display: flex; flex: 1; flex-direction: column; padding: 1.12rem; }
.catalog-product-heading { display: flex; align-items: flex-start; gap: 0.55rem; }
.product-index { color: rgba(212,168,83,0.45); font-size: 0.7rem; font-weight: 800; padding-top: 0.2rem; }
.catalog-product-heading h2 { color: var(--text-primary); font-size: 1rem; line-height: 1.55; font-weight: 700; }
.product-subtitle { margin: 0.5rem 0 0.7rem; min-height: 2.5em; color: var(--text-muted); font-size: 0.76rem; line-height: 1.65; }
.product-spec-list { display: grid; gap: 0.34rem; padding-top: 0.7rem; border-top: 1px solid rgba(255,255,255,0.06); }
.product-spec-list li { display: flex; align-items: center; gap: 0.35rem; color: var(--text-tertiary); font-size: 0.7rem; line-height: 1.5; }
.product-spec-list svg { width: 12px; height: 12px; color: var(--gold); flex: 0 0 auto; }
.catalog-product-footer { display: flex; align-items: end; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.9rem; }
.product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.28rem; }
.product-price strong { color: var(--gold-light); font-size: 1.18rem; line-height: 1; }
.product-price span { color: var(--text-muted); font-size: 0.68rem; }
.product-price del { width: 100%; color: var(--text-dim); font-size: 0.66rem; }
.product-action, .player-profile-link { display: inline-flex; align-items: center; gap: 0.3rem; border: 1px solid rgba(212,168,83,0.24); border-radius: 999px; color: var(--gold-light); padding: 0.45rem 0.68rem; font-size: 0.7rem; font-weight: 700; transition: var(--transition-fast); }
.product-action:hover, .player-profile-link:hover { background: rgba(212,168,83,0.12); border-color: var(--gold); }
.product-action svg, .player-profile-link svg { width: 13px; height: 13px; }

.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.editorial-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-card); border: 1px solid rgba(212,168,83,0.1); border-radius: 1rem; transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal); }
.editorial-card:hover { transform: translateY(-5px); border-color: rgba(212,168,83,0.34); box-shadow: var(--shadow-card-hover); }
.editorial-card.is-featured { grid-column: span 2; display: grid; grid-template-columns: 1.02fr 1fr; }
.editorial-media { min-height: 196px; position: relative; overflow: hidden; background: var(--dark-primary); }
.editorial-card.is-featured .editorial-media { height: 100%; }
.editorial-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,8,0.02), rgba(5,5,8,0.6)); pointer-events: none; }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.editorial-card:hover .editorial-media img { transform: scale(1.05); }
.editorial-category, .editorial-read { position: absolute; z-index: 1; padding: 0.3rem 0.52rem; border-radius: 999px; font-size: 0.64rem; font-weight: 700; }
.editorial-category { top: 0.75rem; right: 0.75rem; color: var(--dark-primary); background: var(--gold-gradient); }
.editorial-read { bottom: 0.7rem; left: 0.7rem; display: inline-flex; align-items: center; gap: 0.28rem; color: var(--gold-light); background: rgba(5,5,8,0.78); }
.editorial-read svg { width: 12px; height: 12px; }
.editorial-body { display: flex; flex-direction: column; min-width: 0; padding: 1.15rem; }
.editorial-meta { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--text-dim); font-size: 0.68rem; }
.editorial-meta span { display: inline-flex; align-items: center; gap: 0.28rem; }
.editorial-meta svg { width: 12px; height: 12px; color: var(--gold); }
.editorial-body h2 { margin: 0.75rem 0 0.55rem; color: var(--text-primary); font-size: 1.02rem; line-height: 1.55; }
.editorial-card.is-featured .editorial-body h2 { font-size: 1.25rem; }
.editorial-body p { margin-bottom: 1rem; color: var(--text-muted); font-size: 0.78rem; line-height: 1.8; }
.editorial-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 0.45rem; margin-top: auto; padding-top: 0.7rem; border-top: 1px solid rgba(255,255,255,0.06); color: var(--gold); font-size: 0.76rem; font-weight: 700; }
.editorial-link svg { width: 15px; height: 15px; }
.editorial-link:hover { color: var(--gold-light); }

.directory-search-panel { max-width: 840px; margin: 0 auto 1.65rem; padding: 1rem; background: rgba(22,22,37,0.68); border: 1px solid rgba(212,168,83,0.12); border-radius: 1rem; box-shadow: var(--shadow-md); }
.directory-search-line { display: flex; align-items: center; gap: 0.65rem; }
.directory-search-input { display: flex; align-items: center; gap: 0.55rem; min-width: 0; flex: 1; padding: 0 0.85rem; background: rgba(5,5,8,0.42); border: 1px solid rgba(212,168,83,0.15); border-radius: 999px; }
.directory-search-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,83,0.08); }
.directory-search-input svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; }
.directory-search-input input { width: 100%; min-width: 0; padding: 0.78rem 0; color: var(--text-primary); background: transparent; font-size: 0.82rem; }
.directory-search-input input::placeholder { color: var(--text-dim); }
.directory-search-button { flex: 0 0 auto; padding: 0.68rem 1rem; font-size: 0.8rem; }
.directory-filters { display: flex; justify-content: center; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.8rem; }
.player-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.player-profile-card { min-width: 0; display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; background: linear-gradient(145deg, rgba(22,22,37,0.82), rgba(10,10,18,0.9)); border: 1px solid rgba(212,168,83,0.1); border-radius: 1rem; transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal); }
.player-profile-card:hover { transform: translateY(-4px); border-color: rgba(212,168,83,0.35); box-shadow: var(--shadow-card-hover); }
.player-avatar { position: relative; flex: 0 0 92px; width: 92px; height: 92px; overflow: hidden; border: 2px solid rgba(212,168,83,0.54); border-radius: 0.9rem; background: var(--dark-primary); }
.player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-online-dot { position: absolute; right: 0.35rem; bottom: 0.35rem; width: 9px; height: 9px; border: 2px solid var(--dark-primary); border-radius: 50%; background: #68d391; }
.player-profile-main { min-width: 0; flex: 1; }
.player-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.player-profile-heading h2 { display: flex; align-items: center; gap: 0.3rem; color: var(--text-primary); font-size: 1.05rem; line-height: 1.35; }
.player-profile-heading h2 svg { width: 14px; height: 14px; color: var(--gold); }
.player-title-chip, .player-level-chip { display: inline-flex; margin-top: 0.3rem; padding: 0.22rem 0.42rem; border-radius: 999px; font-size: 0.62rem; font-weight: 700; }
.player-title-chip { color: var(--gold); background: rgba(212,168,83,0.08); }
.player-level-chip { color: var(--text-secondary); background: rgba(255,255,255,0.06); }
.player-rating-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0 0.65rem; color: var(--text-muted); font-size: 0.71rem; }
.player-rating-line strong { color: var(--gold-light); font-size: 1.05rem; }
.player-rating-line em { width: 100%; overflow: hidden; color: var(--text-dim); font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.player-profile-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; margin-top: 0.75rem; padding-top: 0.65rem; border-top: 1px solid rgba(255,255,255,0.06); }
.player-profile-footer > span { display: inline-flex; align-items: center; gap: 0.3rem; color: #74c69d; font-size: 0.68rem; }
.player-profile-footer > span svg { width: 13px; height: 13px; }
.directory-empty { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.88rem; }

@media (max-width: 1100px) {
  .product-catalog-grid, .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-directory-grid { grid-template-columns: 1fr; }
  .editorial-card.is-featured { grid-column: span 2; }
}
@media (max-width: 768px) {
  .catalog-lead, .editorial-lead, .directory-lead { grid-template-columns: 1fr; gap: 0.8rem; padding-top: 1rem; }
  .catalog-note, .editorial-mark, .directory-stamp { flex-direction: row; align-items: center; border-right: 0; border-top: 1px solid rgba(212,168,83,0.2); padding: 0.75rem 0 0; min-width: 0; }
  .editorial-mark { align-items: center; }
  .catalog-toolbar, .editorial-toolbar { align-items: flex-start; flex-direction: column; }
  .catalog-filters { justify-content: flex-start; width: 100%; }
  .product-catalog-grid, .editorial-grid { grid-template-columns: 1fr; }
  .editorial-card.is-featured { grid-column: auto; display: flex; }
  .editorial-card.is-featured .editorial-media { height: 196px; }
  .directory-search-line { flex-direction: column; align-items: stretch; }
  .directory-search-button { width: 100%; }
}
@media (max-width: 520px) {
  .catalog-title { font-size: 1.75rem; }
  .catalog-summary { font-size: 0.84rem; }
  .catalog-product-media { height: 170px; }
  .player-profile-card { gap: 0.7rem; padding: 0.85rem; }
  .player-avatar { flex-basis: 74px; width: 74px; height: 74px; }
  .player-profile-heading h2 { font-size: 0.92rem; }
  .player-profile-grid { grid-template-columns: 1fr !important; }
  .player-profile-stat { font-size: 0.68rem !important; }
  .player-bio { font-size: 0.7rem !important; }
}


/* Legacy inner-page markup normalization */
.page-content [style*="padding: 3rem"] { padding: 1.5rem !important; }
.page-content [style*="padding: 2.5rem"] { padding: 1.35rem !important; }
.page-content [style*="padding: 2rem"] { padding: 1.2rem !important; }
.page-content [style*="padding: 1.5rem"] { padding: 1rem !important; }
.page-content [style*="font-size: 1.75rem"] { font-size: 1.25rem !important; }
.page-content [style*="font-size: 1.5rem"] { font-size: 1.1rem !important; }
.page-content [style*="font-size: 1.35rem"] { font-size: 1.08rem !important; }
.page-content [style*="font-size: 1.25rem"] { font-size: 1rem !important; }
.page-content [style*="font-size: 1.05rem"] { font-size: 0.92rem !important; }
.page-content [style*="font-size: 0.95rem"] { font-size: 0.82rem !important; }


/* ===== SigmaChess White Mode — final visual system ===== */
[data-theme="light"] body,
[data-theme="light"] main,
[data-theme="light"] .page-content,
[data-theme="light"] .catalog-page,
[data-theme="light"] .editorial-page,
[data-theme="light"] .player-directory-page { background: #ffffff; color: #2d2d44; }
[data-theme="light"] .header,
[data-theme="light"] .header.scrolled { background: #ffffff !important; border-bottom: 1px solid rgba(160,125,46,0.14); box-shadow: 0 4px 24px rgba(33,33,54,0.08); backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-theme="light"] .header .container,
[data-theme="light"] .logo { background: #ffffff; }
[data-theme="light"] .logo-dark-mode { display: block; }
[data-theme="light"] .logo-light-mode { display: none; }
[data-theme="light"] .logo-text { color: #2d2d44; }
[data-theme="light"] .nav { background: #ffffff; }
[data-theme="light"] .nav-link,
[data-theme="light"] .nav-dropdown-trigger { color: #303044; }
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active,
[data-theme="light"] .nav-dropdown-trigger:hover { color: #8d6b23; background: rgba(160,125,46,0.06); }
[data-theme="light"] .nav-dropdown-trigger svg { color: #8d6b23; }
[data-theme="light"] .submenu { background: #ffffff; border-color: rgba(160,125,46,0.18); box-shadow: 0 18px 40px rgba(33,33,54,0.13); }
[data-theme="light"] .submenu a { color: #3e3e58; }
[data-theme="light"] .submenu a:hover { color: #8d6b23; background: rgba(160,125,46,0.07); }
[data-theme="light"] .theme-toggle { background: #fff; border-color: rgba(160,125,46,0.26); }
[data-theme="light"] .theme-toggle svg { fill: #8d6b23; }
[data-theme="light"] .footer { background: #ffffff; color: #5f6075; border-top: 1px solid rgba(160,125,46,0.16); }
[data-theme="light"] .footer::before { background: linear-gradient(90deg, transparent, rgba(160,125,46,0.38), transparent); }
[data-theme="light"] .footer h4,
[data-theme="light"] .footer .footer-title { color: #25253b; }
[data-theme="light"] .footer a,
[data-theme="light"] .footer p,
[data-theme="light"] .footer li { color: #606078; }
[data-theme="light"] .footer a:hover { color: #8d6b23; }
[data-theme="light"] .footer-bottom { border-color: rgba(160,125,46,0.12); color: #77788b; }
[data-theme="light"] .page-context { background: linear-gradient(180deg, #ffffff, #fafafc); border-color: rgba(160,125,46,0.12); }
[data-theme="light"] .page-context .breadcrumb,
[data-theme="light"] .page-context .breadcrumb a { color: #727389; }
[data-theme="light"] .page-context .breadcrumb a:hover { color: #8d6b23; }

[data-theme="light"] .catalog-kicker,
[data-theme="light"] .catalog-title span,
[data-theme="light"] .editorial-mark span,
[data-theme="light"] .directory-stamp strong { color: #8d6b23; }
[data-theme="light"] .catalog-title,
[data-theme="light"] .catalog-toolbar-label strong,
[data-theme="light"] .editorial-body h2,
[data-theme="light"] .player-profile-heading h2 { color: #25253b; }
[data-theme="light"] .catalog-summary,
[data-theme="light"] .product-subtitle,
[data-theme="light"] .editorial-body p,
[data-theme="light"] .directory-stamp span,
[data-theme="light"] .editorial-mark small { color: #6f7085; }
[data-theme="light"] .catalog-lead,
[data-theme="light"] .editorial-lead,
[data-theme="light"] .directory-lead,
[data-theme="light"] .catalog-toolbar,
[data-theme="light"] .editorial-toolbar { border-color: rgba(160,125,46,0.15); }
[data-theme="light"] .catalog-note,
[data-theme="light"] .editorial-mark,
[data-theme="light"] .directory-stamp { border-color: rgba(160,125,46,0.24); }
[data-theme="light"] .filter-chip { color: #57586e; border-color: rgba(160,125,46,0.2); background: #fff; }
[data-theme="light"] .filter-chip b { color: #75768a; background: rgba(160,125,46,0.08); }
[data-theme="light"] .filter-chip:hover { color: #8d6b23; background: rgba(160,125,46,0.06); }
[data-theme="light"] .filter-chip.is-active { color: #fff; background: linear-gradient(135deg, #a07d2e, #c49a3c); }
[data-theme="light"] .filter-chip.is-active b { color: #fff; background: rgba(255,255,255,0.18); }
[data-theme="light"] .catalog-product-card,
[data-theme="light"] .editorial-card,
[data-theme="light"] .player-profile-card,
[data-theme="light"] .directory-search-panel { background: #ffffff; border-color: rgba(160,125,46,0.16); box-shadow: 0 8px 26px rgba(33,33,54,0.08); }
[data-theme="light"] .catalog-product-card:hover,
[data-theme="light"] .editorial-card:hover,
[data-theme="light"] .player-profile-card:hover { border-color: rgba(160,125,46,0.34); box-shadow: 0 16px 36px rgba(33,33,54,0.13); }
[data-theme="light"] .product-spec-list,
[data-theme="light"] .editorial-link,
[data-theme="light"] .player-profile-footer { border-color: rgba(33,33,54,0.1); }
[data-theme="light"] .product-spec-list li,
[data-theme="light"] .player-rating-line,
[data-theme="light"] .player-profile-stat,
[data-theme="light"] .player-bio { color: #65667b; }
[data-theme="light"] .product-price strong,
[data-theme="light"] .product-action,
[data-theme="light"] .editorial-link,
[data-theme="light"] .player-profile-link { color: #8d6b23; }
[data-theme="light"] .product-action,
[data-theme="light"] .player-profile-link { border-color: rgba(160,125,46,0.25); background: #fff; }
[data-theme="light"] .product-action:hover,
[data-theme="light"] .player-profile-link:hover { background: rgba(160,125,46,0.08); }
[data-theme="light"] .product-index { color: rgba(160,125,46,0.62); }
[data-theme="light"] .player-avatar { border-color: rgba(160,125,46,0.55); }
[data-theme="light"] .player-title-chip { color: #8d6b23; background: rgba(160,125,46,0.08); }
[data-theme="light"] .player-level-chip { color: #5e5f74; background: rgba(33,33,54,0.06); }
[data-theme="light"] .player-profile-heading h2 svg { color: #a07d2e; }
[data-theme="light"] .player-profile-footer > span { color: #2e8b62; }
[data-theme="light"] .directory-search-input { background: #fff; border-color: rgba(160,125,46,0.2); }
[data-theme="light"] .directory-search-input input { color: #2d2d44; }
[data-theme="light"] .directory-search-input input::placeholder { color: #9495a6; }
[data-theme="light"] .directory-search-input svg { color: #8d6b23; }
[data-theme="light"] .directory-empty { color: #6f7085; }

/* Inline legacy components use variables, but these explicit rules remove dark remnants in White Mode. */
[data-theme="light"] .page-content [style*="rgba(5,5,8"] { background: rgba(255,255,255,0.96) !important; color: #2d2d44 !important; }
[data-theme="light"] .page-content [style*="rgba(8,8,14"] { background: rgba(255,255,255,0.96) !important; }
[data-theme="light"] .page-content [style*="rgba(255,255,255,0.05)"] { border-color: rgba(33,33,54,0.1) !important; }
[data-theme="light"] .page-content [style*="rgba(255,255,255,0.15)"] { background: rgba(160,125,46,0.09) !important; color: #4b4c63 !important; }
[data-theme="light"] .page-content [style*="rgba(0,0,0"] { background: rgba(255,255,255,0.92) !important; color: #2d2d44 !important; }
[data-theme="light"] .page-content [style*="border: 1px solid var(--glass-border)"] { box-shadow: 0 8px 24px rgba(33,33,54,0.07); }
[data-theme="light"] .page-content [style*="color: var(--text-muted)"] { color: #6f7085 !important; }
[data-theme="light"] .page-content [style*="color: var(--text-secondary)"] { color: #4f5068 !important; }
[data-theme="light"] .page-content [style*="border-top: 1px solid rgba(255,255,255,0.05)"] { border-color: rgba(33,33,54,0.1) !important; }

@media (max-width: 768px) {
  [data-theme="light"] .header { background: #ffffff !important; }
  [data-theme="light"] .nav { background: #ffffff !important; box-shadow: -10px 0 32px rgba(33,33,54,0.1); }
  [data-theme="light"] .nav-link { color: #303044; }
  [data-theme="light"] .menu-toggle span { background: #8d6b23; }
}


/* Country identity inside player profiles */
.player-country-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0.42rem; margin-top: 0.48rem; color: var(--text-secondary); font-size: 0.72rem; }
.player-country-line img,
.player-country-badge img { width: 19px; height: 13px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(212,168,83,0.28); }
.player-country-line em { width: 100%; color: var(--text-dim); font-size: 0.66rem; font-style: normal; }
.player-country-badge { display: inline-flex !important; align-items: center; gap: 0.35rem; }
[data-theme="light"] .player-country-line { color: #4f5068; }
[data-theme="light"] .player-country-line em { color: #77788b; }
[data-theme="light"] .player-country-badge { color: #4a4a64; background: rgba(255,255,255,0.95); }
@media (max-width: 520px) {
  .player-country-line { font-size: 0.68rem; }
  .player-country-line em { font-size: 0.61rem; }
}


/* White Mode Hero contrast correction: cinematic image, readable light text, white page rhythm */
[data-theme="light"] .hero { background: #11111a; }
[data-theme="light"] .hero-bg-image img { filter: brightness(0.62) saturate(0.88); }
[data-theme="light"] .hero-bg-overlay { background: linear-gradient(180deg, rgba(8,8,14,0.42) 0%, rgba(8,8,14,0.46) 48%, rgba(8,8,14,0.74) 100%); }
[data-theme="light"] .hero-content { text-shadow: 0 2px 18px rgba(0,0,0,0.28); }
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-subtitle { color: #ffffff; }
[data-theme="light"] .hero-description { color: rgba(255,255,255,0.78); }
[data-theme="light"] .hero-scroll-indicator .scroll-text { color: rgba(255,255,255,0.72); }
[data-theme="light"] .hero-scroll-indicator .scroll-mouse { border-color: rgba(240,212,138,0.62); }

/* ===== Production flows: commerce, applications and profiles ===== */
.empty-state-page,.success-page{padding:clamp(70px,10vw,140px) 0}.empty-state-card,.success-card{max-width:680px;margin:auto;text-align:center;padding:clamp(28px,5vw,58px);background:var(--bg-card);border:1px solid var(--glass-border);border-radius:24px;box-shadow:var(--shadow-lg)}.empty-state-card>svg,.success-icon{width:54px;height:54px;margin:0 auto 18px;color:var(--gold)}.empty-state-card h1,.empty-state-card h2,.success-card h1{margin:0 0 12px}.empty-state-card p,.success-card p{color:var(--text-muted);line-height:1.9;margin:0 auto 25px;max-width:500px}.success-icon{display:grid;place-items:center;border:1px solid rgba(212,168,83,.35);border-radius:50%;background:rgba(212,168,83,.08)}.success-icon svg{width:27px;height:27px;stroke:var(--gold)}.order-reference{display:grid;gap:4px;margin:25px auto;padding:15px;border:1px dashed rgba(212,168,83,.45);border-radius:14px;max-width:280px}.order-reference span{font-size:.78rem;color:var(--text-muted)}.order-reference strong{font-size:1.25rem;letter-spacing:1px;color:var(--gold)}.success-entity{font-weight:700;color:var(--text-primary)!important}.success-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.form-alert{display:flex;align-items:center;gap:9px;margin:0 0 20px;padding:13px 15px;border-radius:12px;font-size:.9rem}.form-alert svg{width:18px}.form-alert.is-success{color:#217a50;background:rgba(39,174,96,.1);border:1px solid rgba(39,174,96,.2)}.form-alert.is-error{color:#b84450;background:rgba(192,57,43,.08);border:1px solid rgba(192,57,43,.18)}.btn-block{width:100%;justify-content:center}.product-detail-page,.cart-page,.checkout-page,.application-page{padding:clamp(48px,7vw,90px) 0}.product-detail-layout,.cart-layout,.checkout-layout,.application-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:clamp(28px,5vw,70px);align-items:start}.product-detail-image{aspect-ratio:1/1;border-radius:22px;overflow:hidden;background:var(--bg-card);border:1px solid var(--glass-border)}.product-detail-image img{width:100%;height:100%;object-fit:cover}.product-detail-gallery-note{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:.83rem;padding:15px 2px}.product-detail-gallery-note svg{width:17px;color:var(--gold)}.product-detail-content{padding-top:5px}.product-detail-content h1{font-size:clamp(1.8rem,3.6vw,3rem);line-height:1.3;margin:17px 0 10px}.product-detail-subtitle,.product-detail-description{color:var(--text-muted);line-height:1.9}.product-detail-rating{display:flex;align-items:center;gap:7px;font-size:.86rem;margin:18px 0;color:var(--text-muted)}.product-detail-rating svg{width:17px;fill:var(--gold);stroke:var(--gold)}.product-detail-rating strong{color:var(--gold)}.product-detail-price{display:flex;align-items:baseline;gap:8px;margin:20px 0 8px;color:var(--gold)}.product-detail-price strong{font-size:2.25rem;letter-spacing:-1px}.product-detail-price span{font-weight:700}.product-detail-price del{color:var(--text-dim);font-size:.85rem;margin-inline-start:9px}.product-stock{display:flex;align-items:center;gap:7px;font-size:.85rem}.product-stock svg{width:16px}.product-stock.is-available{color:#3b9a65}.product-stock.is-empty{color:#b84450}.product-specs-detail{border-top:1px solid var(--glass-border);margin-top:25px;padding-top:20px}.product-specs-detail h2{font-size:1rem;margin:0 0 12px}.product-specs-detail ul,.program-features{display:grid;gap:9px;padding:0;margin:0;list-style:none}.product-specs-detail li,.program-features li{display:flex;align-items:flex-start;gap:8px;color:var(--text-secondary);font-size:.87rem}.product-specs-detail li svg,.program-features li svg{width:15px;min-width:15px;color:var(--gold);margin-top:3px}.add-to-cart-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:28px}.add-to-cart-form>label{font-size:.8rem;color:var(--text-muted);width:100%}.quantity-control{display:flex;align-items:center;border:1px solid var(--glass-border);border-radius:10px;overflow:hidden}.quantity-control button{width:36px;height:42px;border:0;background:var(--bg-card);color:var(--text-primary)}.quantity-control input{width:42px;height:42px;border:0;border-inline:1px solid var(--glass-border);text-align:center;background:var(--bg-card);color:var(--text-primary)}.product-card-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.product-action.secondary{background:transparent;border-color:var(--glass-border);color:var(--text-secondary)}.product-out-of-stock{font-size:.78rem;color:#b84450}.cart-heading,.checkout-heading,.application-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}.cart-heading h1,.checkout-heading h1,.application-heading h1{font-size:clamp(1.7rem,3vw,2.7rem);margin:12px 0 6px}.cart-heading p,.checkout-heading p,.application-heading p{color:var(--text-muted);margin:0;line-height:1.8}.cart-items{display:grid;gap:13px}.cart-item{display:flex;gap:18px;padding:16px;background:var(--bg-card);border:1px solid var(--glass-border);border-radius:17px}.cart-item>img{width:118px;height:118px;object-fit:cover;border-radius:12px}.cart-item-content{flex:1;min-width:0}.cart-item-title{display:flex;justify-content:space-between;gap:15px}.cart-item-title span{color:var(--gold);font-size:.72rem}.cart-item-title h2{font-size:1.05rem;line-height:1.45;margin:5px 0}.cart-item-title>strong{color:var(--gold);white-space:nowrap}.cart-item-content>p{font-size:.82rem;color:var(--text-muted);margin:8px 0}.cart-item-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.inline-quantity{display:flex;align-items:center;gap:8px}.inline-quantity label{font-size:.75rem;color:var(--text-muted);display:flex;align-items:center;gap:6px}.inline-quantity input{width:58px;padding:7px;border:1px solid var(--glass-border);border-radius:8px;background:transparent;color:var(--text-primary)}.text-button{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:var(--gold);padding:5px;cursor:pointer;font-size:.8rem}.text-button.danger{color:#c14b55}.text-button svg{width:14px}.cart-summary,.checkout-summary,.application-summary{background:var(--bg-card);border:1px solid var(--glass-border);border-radius:18px;padding:23px;position:sticky;top:100px}.cart-summary h2,.checkout-summary h2{margin:0 0 20px;font-size:1.15rem}.cart-summary>div,.checkout-line{display:flex;justify-content:space-between;gap:10px;padding:11px 0;color:var(--text-muted);font-size:.87rem}.cart-summary strong,.checkout-line strong{color:var(--text-primary)}.cart-total,.checkout-total{border-top:1px solid var(--glass-border);margin-top:7px;padding-top:17px!important;font-size:1.05rem!important;color:var(--text-primary)!important}.cart-total strong,.checkout-total strong{font-size:1.25rem;color:var(--gold)}.cart-summary small{display:block;color:var(--text-dim);line-height:1.7;margin-top:12px}.checkout-form{display:grid;gap:20px}.checkout-form fieldset{border:1px solid var(--glass-border);border-radius:16px;padding:20px;margin:0}.checkout-form legend{font-weight:800;padding:0 8px;color:var(--text-primary)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid label{display:grid;gap:7px;color:var(--text-secondary);font-size:.8rem}.form-grid label.full{grid-column:1/-1}.form-grid label em{color:var(--text-dim);font-style:normal;font-weight:400}.form-grid input,.form-grid select,.form-grid textarea{border:1px solid var(--glass-border);border-radius:10px;padding:11px;background:var(--bg-input);color:var(--text-primary);outline:none;resize:vertical}.form-grid label small{color:#c14b55;min-height:15px}.payment-option{display:flex;gap:10px;align-items:flex-start;padding:13px;border:1px solid var(--glass-border);border-radius:12px;margin:9px 0;cursor:pointer}.payment-option:has(input:checked){border-color:var(--gold);background:rgba(212,168,83,.06)}.payment-option input{accent-color:var(--gold);margin-top:4px}.payment-option span{display:grid;gap:4px}.payment-option svg{width:19px;color:var(--gold);margin-bottom:2px}.payment-option strong{font-size:.87rem}.payment-option small{color:var(--text-muted)}.checkout-summary hr{border:0;border-top:1px solid var(--glass-border)}.checkout-line span{max-width:62%;line-height:1.6}.checkout-line span small{display:block;color:var(--gold);font-size:.72rem}.application-heading{display:block;max-width:820px}.application-layout{grid-template-columns:minmax(0,1.1fr) minmax(280px,.7fr)}.application-summary{background:linear-gradient(150deg,var(--bg-card),rgba(212,168,83,.07))}.application-summary h2{font-size:1.3rem;line-height:1.5;margin:15px 0 22px}.application-summary>div{display:flex;align-items:flex-start;gap:9px;color:var(--text-secondary);font-size:.86rem;margin:13px 0}.application-summary>div svg{width:17px;color:var(--gold)}.application-summary p{color:var(--text-muted);line-height:1.8;border-top:1px solid var(--glass-border);padding-top:16px;margin-top:20px;font-size:.84rem}.player-detail-page{padding:clamp(45px,7vw,90px) 0}.player-detail-hero{display:grid;grid-template-columns:170px minmax(0,1fr) 190px;align-items:center;gap:28px;padding:28px;background:var(--bg-card);border:1px solid var(--glass-border);border-radius:22px}.player-detail-photo{width:170px;height:210px;position:relative;border-radius:16px;overflow:hidden;border:2px solid rgba(212,168,83,.45)}.player-detail-photo img{width:100%;height:100%;object-fit:cover}.player-status-dot{position:absolute;bottom:12px;right:12px;width:12px;height:12px;border-radius:50%;background:#40aa73;border:2px solid #fff}.player-detail-heading h1{font-size:clamp(2rem,4vw,3.3rem);margin:13px 0 3px}.player-detail-title{color:var(--gold);font-weight:800;margin:0 0 13px}.player-detail-heading .player-country-line{justify-content:flex-start}.player-detail-bio{max-width:620px;line-height:1.9;color:var(--text-muted);margin:15px 0 0}.player-detail-rank{border-inline-start:1px solid var(--glass-border);padding-inline-start:24px}.player-detail-rank span,.player-detail-rank small{display:block;color:var(--text-muted);font-size:.78rem}.player-detail-rank strong{display:block;font-size:2.8rem;color:var(--gold);margin:7px 0}.player-detail-rank small{line-height:1.7}.player-detail-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:20px;margin-top:20px}.player-stat-panel,.player-achievements-panel,.player-side-card{background:var(--bg-card);border:1px solid var(--glass-border);border-radius:18px;padding:22px;margin-bottom:20px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.panel-heading h2{margin:8px 0 20px;font-size:1.25rem}.fide-number{font-size:.78rem;color:var(--text-muted);padding:8px 10px;border:1px solid var(--glass-border);border-radius:8px}.player-rating-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.player-rating-grid>div{padding:14px;background:var(--bg-section-1);border-radius:12px}.player-rating-grid span,.player-facts span{display:block;color:var(--text-muted);font-size:.73rem}.player-rating-grid strong{display:block;font-size:1.35rem;color:var(--gold);margin-top:8px}.player-facts{display:grid;grid-template-columns:repeat(2,1fr);gap:0;margin-top:16px;border-top:1px solid var(--glass-border)}.player-facts>div{padding:15px 0;border-bottom:1px solid var(--glass-border)}.player-facts strong{display:block;margin-top:5px;font-size:.86rem}.achievement-list{display:grid;gap:10px}.achievement-list>div{display:flex;gap:12px;padding:13px;border:1px solid var(--glass-border);border-radius:12px}.achievement-list>div>svg{color:var(--gold);width:20px;min-width:20px}.achievement-list strong,.achievement-list small{display:block}.achievement-list strong{font-size:.88rem}.achievement-list small{color:var(--text-muted);margin-top:3px}.player-side-card h2{font-size:1.25rem;margin:13px 0 18px}.mini-tournament-list{display:grid;gap:8px;margin-bottom:16px}.mini-tournament-list a{display:grid;gap:3px;text-decoration:none;border:1px solid var(--glass-border);border-radius:11px;padding:12px;transition:.2s}.mini-tournament-list a:hover{border-color:var(--gold);transform:translateY(-2px)}.mini-tournament-list span{font-size:.7rem;color:var(--gold)}.mini-tournament-list strong{font-size:.82rem;color:var(--text-primary);line-height:1.5}.mini-tournament-list small{color:var(--text-muted);font-size:.72rem}.player-back-link{display:flex;align-items:center;gap:7px;color:var(--text-muted);text-decoration:none;font-size:.83rem}.player-back-link:hover{color:var(--gold)}.player-back-link svg{width:15px}.directory-search-line{position:relative}.search-clear-button{border:0;background:transparent;color:var(--text-muted);position:absolute;left:165px;top:50%;transform:translateY(-50%);padding:8px;display:grid;place-items:center}.search-clear-button svg{width:16px}.directory-results-meta{display:flex;justify-content:space-between;color:var(--text-muted);font-size:.78rem;margin:14px 2px}.directory-empty{text-align:center;padding:50px 20px;color:var(--text-muted)}.directory-empty svg{width:35px;color:var(--gold);margin-bottom:10px}.directory-empty h2{color:var(--text-primary);margin:0 0 8px}.directory-empty p{margin:0 0 16px}.player-profile-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none}.player-profile-link svg{width:15px}.player-profile-card{transition:.25s}.player-profile-card:hover{transform:translateY(-3px)}.programs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.program-card,.tournament-card{background:var(--bg-card);border:1px solid var(--glass-border);border-radius:17px;overflow:hidden;display:flex;flex-direction:column;transition:.25s}.program-card:hover,.tournament-card:hover{border-color:rgba(212,168,83,.55);transform:translateY(-4px)}.program-card-media,.tournament-card-media{height:190px;position:relative;overflow:hidden;background:var(--dark-primary)}.program-card-media img,.tournament-card-media img{width:100%;height:100%;object-fit:cover}.program-badge,.tournament-badge,.tournament-status-chip,.program-coach{position:absolute;padding:6px 9px;border-radius:999px;font-size:.68rem;font-weight:800}.program-badge,.tournament-badge{top:12px;right:12px;background:var(--gold-gradient);color:var(--dark-primary)}.tournament-status-chip{top:12px;left:12px;background:rgba(5,5,8,.8);color:#fff}.program-coach{bottom:12px;left:12px;right:12px;background:rgba(5,5,8,.78);color:#fff;display:flex;align-items:center;gap:6px;width:max-content;max-width:calc(100% - 24px)}.program-coach svg{width:13px;color:var(--gold)}.program-card-body,.tournament-card-body{padding:19px;display:flex;flex-direction:column;flex:1}.program-meta{display:flex;gap:12px;color:var(--gold);font-size:.73rem;margin-bottom:10px}.program-meta span{display:flex;align-items:center;gap:4px}.program-meta svg{width:14px}.program-card h2,.tournament-card h2{font-size:1.08rem;line-height:1.5;margin:0 0 8px}.program-card-body>p{color:var(--text-muted);font-size:.82rem;line-height:1.8;margin:0 0 16px}.program-features{border-top:1px solid var(--glass-border);padding-top:14px;margin-top:auto}.program-footer,.tournament-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--glass-border);padding-top:15px;margin-top:17px}.program-footer>div{color:var(--gold)}.program-footer strong{font-size:1.35rem}.program-footer span{font-size:.75rem}.tournament-flow-page .tournaments-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.tournament-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:12px;background:var(--bg-section-1);border-radius:11px;margin:12px 0;color:var(--text-muted);font-size:.75rem}.tournament-info-grid span,.tournament-info-grid strong{display:flex;align-items:flex-start;gap:5px;line-height:1.5}.tournament-info-grid svg{width:14px;min-width:14px;color:var(--gold)}.tournament-info-grid strong{color:var(--gold);font-weight:800}.tournament-winner{display:flex;gap:7px;align-items:center;color:var(--gold);font-size:.76rem;line-height:1.5}.tournament-winner svg{width:15px}.tournament-capacity{margin-top:auto}.tournament-capacity>div:first-child{display:flex;justify-content:space-between;color:var(--text-muted);font-size:.7rem;margin-top:15px}.tournament-progress{height:5px;background:var(--glass-border);border-radius:99px;overflow:hidden;margin-top:7px}.tournament-progress span{display:block;height:100%;background:var(--gold-gradient);border-radius:inherit}.is-disabled{opacity:.5;pointer-events:none}.admin-json-editor{width:100%;min-height:400px;background:#f8f9fb;border:1px solid var(--admin-line);border-radius:12px;padding:15px;color:#2f3645;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;direction:ltr;text-align:left;resize:vertical;outline:none}.admin-json-editor:focus{border-color:var(--admin-gold);box-shadow:0 0 0 4px rgba(182,140,66,.12)}
@media(max-width:1050px){.programs-grid,.tournament-flow-page .tournaments-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.player-detail-hero{grid-template-columns:130px minmax(0,1fr)}.player-detail-photo{width:130px;height:165px}.player-detail-rank{grid-column:1/-1;border-inline-start:0;border-top:1px solid var(--glass-border);padding:16px 0 0}.player-detail-rank strong{display:inline-block;margin-inline-end:8px}}
@media(max-width:800px){.product-detail-layout,.cart-layout,.checkout-layout,.application-layout,.player-detail-grid{grid-template-columns:1fr}.cart-summary,.checkout-summary,.application-summary{position:static}.cart-heading,.checkout-heading{align-items:flex-start;flex-direction:column}.cart-heading .btn{width:max-content}.player-detail-hero{grid-template-columns:100px minmax(0,1fr);gap:16px;padding:17px}.player-detail-photo{width:100px;height:130px}.player-detail-heading h1{font-size:1.7rem}.player-detail-heading .player-country-line{flex-wrap:wrap}.player-detail-bio{font-size:.8rem}.player-rating-grid{grid-template-columns:repeat(2,1fr)}.programs-grid,.tournament-flow-page .tournaments-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid label.full{grid-column:auto}.cart-item{gap:11px}.cart-item>img{width:82px;height:82px}.cart-item-title{display:block}.cart-item-title>strong{display:block;margin-top:7px}.cart-item-actions{align-items:flex-start;flex-direction:column}.search-clear-button{left:142px}.directory-results-meta{gap:10px;flex-direction:column}}
@media(max-width:480px){.player-detail-hero{grid-template-columns:1fr;text-align:center}.player-detail-photo{margin:auto}.player-detail-heading .player-country-line{justify-content:center}.player-detail-rank{text-align:center}.player-facts{grid-template-columns:1fr}.success-actions .btn{width:100%;justify-content:center}.product-card-actions{align-items:stretch;flex-direction:column}.product-card-actions .product-action{justify-content:center}}
[data-theme="light"] .product-detail-image,[data-theme="light"] .cart-item,[data-theme="light"] .cart-summary,[data-theme="light"] .checkout-form fieldset,[data-theme="light"] .checkout-summary,[data-theme="light"] .application-summary,[data-theme="light"] .player-detail-hero,[data-theme="light"] .player-stat-panel,[data-theme="light"] .player-achievements-panel,[data-theme="light"] .player-side-card,[data-theme="light"] .program-card,[data-theme="light"] .tournament-card,[data-theme="light"] .empty-state-card,[data-theme="light"] .success-card{box-shadow:0 10px 30px rgba(38,44,58,.06)}
