/* ===== Variables – 7days-style (white header, light blue CTA, dark stats) ===== */
:root {
  /* Accent tokens (GOLD – primary highlight color) */
  --gold: #d4a520;
  --gold-light: #e8c547;
  --gold-bright: #f5dc88;
  --gold-muted: rgba(212, 165, 32, 0.16);
  --gold-glow: rgba(212, 165, 32, 0.38);
  --gold-glow-strong: rgba(212, 165, 32, 0.55);
  /* Kept variable names for compatibility */
  --cta-blue: #d4a520;
  --cta-blue-hover: #bf931a;
  --header-bg: #ffffff;
  --header-text: #2d2d2d;
  --header-border: #e5e7eb;
  --stats-bg: #2d3748;
  --stats-text: #ffffff;
  --bg-dark: #050814;
  --bg-card: #ffffff;
  --bg-elevated: #f9fafb;
  --bg-page: #f3f4f6;
  --text: #1f2937;
  --text-muted: #6b7280;
  --accent: var(--cta-blue);
  --accent-hover: var(--cta-blue-hover);
  --border: #e5e7eb;
  --border-gold: rgba(212, 165, 32, 0.5);
  --success: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: 'Poppins', system-ui, sans-serif;
  --font-display: 'Poppins', system-ui, sans-serif;
  /** Header primary nav links only — rest of site uses Poppins */
  --font-nav: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Open Sans", sans-serif;
  --header-h: 72px;
  --container: min(1200px, 100% - 2rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Keyboard focus — clear ring without cluttering mouse clicks */
:is(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== Keyframe Animations ===== */
@keyframes shine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(212, 165, 32, 0.5)) drop-shadow(0 0 24px rgba(212, 165, 32, 0.22)); }
  50% { filter: drop-shadow(0 0 20px rgba(212, 165, 32, 0.72)) drop-shadow(0 0 40px rgba(212, 165, 32, 0.35)); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}
@keyframes bg-drift {
  0%, 100% { opacity: 1; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.9; transform: scale(1.05) translate(2%, 2%); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse-soft {
  0%, 100% { transform: translateY(-2px) scale(1); box-shadow: 0 2px 12px var(--gold-glow); }
  50% { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 28px var(--gold-glow); }
}
@keyframes cta-glow-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 24px rgba(212, 165, 32, 0.38), 0 0 48px rgba(212, 165, 32, 0.14);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(212, 165, 32, 0.58), 0 0 80px rgba(212, 165, 32, 0.22);
  }
}
@keyframes cta-shine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes cta-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.02); }
}
@keyframes shimmer-bar {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes countdown-tick {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes link-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes hero-title-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes subtitle-reveal {
  from { opacity: 0; transform: translateY(16px); letter-spacing: 0.08em; }
  to { opacity: 1; transform: translateY(0); letter-spacing: 0.02em; }
}
@keyframes subtitle-glow {
  0%, 100% {
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.12), 0 0 48px rgba(212, 165, 32, 0.1), 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  50% {
    text-shadow: 0 0 32px rgba(255, 255, 255, 0.18), 0 0 56px rgba(212, 165, 32, 0.22), 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}
@keyframes trust-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 0.95; transform: translateY(0); }
}
@keyframes trust-shimmer {
  0%, 100% {
    opacity: 0.95;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1), 0 0 36px rgba(212, 165, 32, 0.12), 0 1px 2px rgba(0, 0, 0, 0.25);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 28px rgba(255, 255, 255, 0.18), 0 0 44px rgba(212, 165, 32, 0.2), 0 1px 2px rgba(0, 0, 0, 0.25);
  }
}
@keyframes btn-pop-in {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes step-hover-glow {
  0%, 100% {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 28px rgba(212, 165, 32, 0.22), 0 0 48px rgba(212, 165, 32, 0.08);
  }
  50% {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 40px rgba(212, 165, 32, 0.35), 0 0 64px rgba(212, 165, 32, 0.15);
  }
}
@keyframes header-enter {
  from { transform: translateY(-100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes logo-soft {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 6px rgba(212, 165, 32, 0.18)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 4px 12px rgba(212, 165, 32, 0.32)); }
}
@keyframes hero-cta-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(212, 165, 32, 0.48), 0 0 0 0 rgba(212, 165, 32, 0.38); }
  55% { box-shadow: 0 8px 28px rgba(212, 165, 32, 0.6), 0 0 0 10px rgba(212, 165, 32, 0); }
}
@keyframes btn-shine-sweep {
  0% { transform: translateX(-130%) skewX(-12deg); opacity: 0; }
  15% { opacity: 0.35; }
  100% { transform: translateX(200%) skewX(-12deg); opacity: 0; }
}
@keyframes stat-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes stat-icon-pulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.95; }
  50% { transform: translateY(-5px) scale(1.06); opacity: 1; }
}
@keyframes stats-bar-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes fade-in-scale {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes cta-mesh {
  0%, 100% { opacity: 0.4; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.65; transform: scale(1.08) translate(2%, -1%); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes winner-shine {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  background:
    radial-gradient(120% 80% at 0% -10%, rgba(212, 165, 32, 0.08), transparent 52%),
    radial-gradient(90% 55% at 100% 0%, rgba(37, 99, 235, 0.045), transparent 48%),
    var(--bg-page);
  color: var(--text);
  line-height: 1.6;
  padding-top: var(--header-h);
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:visited { color: var(--accent); }
a:visited:hover { color: var(--accent-hover); }
::selection {
  background: var(--gold-muted);
  color: var(--text);
}
::-moz-selection {
  background: var(--gold-muted);
  color: var(--text);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}
input, textarea {
  caret-color: var(--gold);
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--cta-blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(249, 250, 251, 0.92);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(212, 165, 32, 0.15),
    0 12px 40px rgba(212, 165, 32, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  pointer-events: none;
  max-width: calc(100% - 2rem);
  will-change: transform, opacity;
}
.toast.toast-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.toast-success {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}
.toast.toast-success .toast-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    transition-duration: 0.12s;
    will-change: auto;
  }
}
.contact-form-success {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--gold-muted);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.contact-form-success:not([hidden]) {
  animation: fade-in 0.3s ease;
}

.container { width: var(--container); margin-inline: auto; padding-inline: 1rem; }

/* ===== Header (glass / high-contrast nav) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .header {
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 4px 24px rgba(15, 23, 42, 0.06);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .header {
    animation: header-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .logo-img {
    animation: logo-soft 5s ease-in-out infinite;
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.426rem;
  line-height: 1;
  color: var(--cta-blue);
  text-shadow: 0 1px 0 rgba(255,255,255,0.65);
}
@media (prefers-reduced-motion: no-preference) {
  .logo-text {
    filter: drop-shadow(0 2px 10px rgba(212, 165, 32, 0.22));
  }
}
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.nav-list {
  display: flex;
  gap: 1.75rem;
}
.nav-list a {
  color: #374151;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 17.48px;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12.88px;
  width: 100%;
  height: 3.68px;
  background: #2563eb;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}
.nav-list a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-list a:hover { color: #2563eb; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--header-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--header-text);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.header-icon-btn:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.header-icon-btn:active { transform: translateY(0); box-shadow: none; }
.cart-btn { padding: 0; }
.cart-icon,
.account-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.cart-icon {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.2 2.2c-.6.6-.2 1.8.8 1.8H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.account-icon {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M15.75 6.75a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M4.5 20.25a7.5 7.5 0 0115 0'/%3E%3C/svg%3E") center/contain no-repeat;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--header-text);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--cta-blue) 0%, var(--gold-light) 50%, var(--gold-bright) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--gold-glow), 0 0 40px var(--gold-muted);
  font-weight: 700;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-130%) skewX(-12deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover::after {
    animation: btn-shine-sweep 0.65s ease-out;
  }
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--cta-blue-hover) 0%, var(--cta-blue) 50%, var(--gold-light) 100%);
  color: #ffffff;
  box-shadow: 0 8px 32px var(--gold-glow-strong), 0 0 56px var(--gold-muted);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #ffffff; box-shadow: 0 4px 20px var(--gold-glow); }
.btn-card {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--cta-blue) 0%, var(--gold-light) 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 12px var(--gold-glow);
}
.btn-card:hover { background: linear-gradient(135deg, var(--cta-blue-hover) 0%, var(--cta-blue) 100%); color: #ffffff; box-shadow: 0 4px 20px var(--gold-glow); }

/* ===== Hero (full-width image + overlay) ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
/* One full screen below the fixed header — competitions start only after scroll */
.hero.hero-image {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-track {
  display: flex;
  height: 100%;
  /* width set in JS: (paneCount * 100)% of .hero-slides */
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
  position: relative;
  z-index: 1;
}
.hero-track.hero-track--instant {
  transition: none;
}
.hero-slide-pane {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: var(--bg-dark);
}
/* Wrapper hugs the image; mask on wrapper = fade real left/right edges of the art */
.hero-slide-img-wrap {
  height: 100%;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Move the hero art slightly right without affecting slide animation */
  transform: translateX(var(--hero-slide-shift-x, 0px));
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 7%,
    rgba(0, 0, 0, 0.92) 16%,
    #000 24%,
    #000 76%,
    rgba(0, 0, 0, 0.92) 84%,
    rgba(0, 0, 0, 0.35) 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 7%,
    rgba(0, 0, 0, 0.92) 16%,
    #000 24%,
    #000 76%,
    rgba(0, 0, 0, 0.92) 84%,
    rgba(0, 0, 0, 0.35) 93%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.hero-image {
  /* Tweak this to move the transition images right */
  --hero-slide-shift-x: 16vw;
}
.hero-slide-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: min(100%, 100vw);
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-track {
    transition: none;
  }
}
.hero-slides-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.14) 60%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  width: 100%;
}
.hero-image .hero-inner {
  justify-content: flex-start;
  text-align: left;
}
.hero-content {
  flex: 0 1 auto;
  max-width: 560px;
  margin-left: 0;
  margin-top: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  -webkit-text-fill-color: #ffffff;
  background: none;
  opacity: 1;
  animation: none;
}
.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.5rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  opacity: 1;
  animation: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-title {
    opacity: 0;
    animation: hero-title-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
  }
  .hero-subtitle {
    opacity: 0;
    animation: fade-in-up 0.75s ease-out 0.38s forwards;
  }
  .hero-draw {
    opacity: 0;
    animation: fade-in-up 0.65s ease-out 0.58s forwards;
  }
  .hero-content .btn-hero-cta {
    opacity: 0;
    animation: fade-in-scale 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.72s forwards, hero-cta-pulse 3.2s ease-in-out 1.6s infinite;
  }
}
.hero-subtitle strong {
  font-weight: 800;
  color: #ffffff;
}
.hero-draw {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.25rem;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 38%, var(--gold-bright) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: 0 10px 28px rgba(212, 165, 32, 0.45), 0 0 0 1px rgba(245, 220, 136, 0.35) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn-hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(255, 255, 255, 0.26) 0%, transparent 60%),
    linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn-hero-cta::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%) skewX(-12deg);
  opacity: 0.55;
  pointer-events: none;
  animation: btn-shine-sweep 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-hero-cta:hover::before {
    animation: btn-shine-sweep 0.55s ease-out;
  }
}
.btn-hero-cta:hover {
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 44px rgba(212, 165, 32, 0.62), 0 0 0 1px rgba(245, 220, 136, 0.5) inset;
  filter: saturate(1.08) brightness(1.03);
}
.btn-hero-cta:active {
  transform: translateY(-1px) scale(0.99);
}
.btn-arrow {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== Stats bar (compact left tab; rating tucked ~20% closer to prizes) ===== */
.stats-bar.stats-bar--hero {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0.45rem;
  width: min(58%, 800px);
  max-width: 100%;
  z-index: 6;
  /* Extra top padding clears the animated gold strip from the stat icons */
  padding: 1.05rem 0.82rem 0.8rem 0.92rem;
  /* #333 at 50% opacity — background only; content stays solid/readable */
  background: rgba(51, 51, 51, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 20px 20px 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  pointer-events: auto;
  box-sizing: border-box;
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0 20px 0 0;
  background: linear-gradient(90deg, transparent, var(--cta-blue), var(--gold-light), var(--cta-blue), transparent);
  background-size: 200% 100%;
  opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
  .stats-bar::before {
    animation: stats-bar-shine 4s linear infinite;
  }
}
.stats-bar .stat-item {
  transition: transform 0.35s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .stats-bar:not(.stats-visible) .stats-bar-inner .stat-item {
    opacity: 0;
    transform: translateY(18px);
  }
  .stats-bar.stats-visible .stats-bar-inner .stat-item:nth-child(1) {
    animation: stat-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
  }
  .stats-bar.stats-visible .stats-bar-inner .stat-item:nth-child(2) {
    animation: stat-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
  }
  .stats-bar.stats-visible .stats-bar-inner .stat-item:nth-child(3) {
    animation: stat-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
  }
  .stats-bar.stats-visible .stats-bar-inner .stat-icon {
    animation: stat-icon-pulse 2.8s ease-in-out infinite;
  }
  .stats-bar.stats-visible .stats-bar-inner .stat-item:nth-child(2) .stat-icon {
    animation-delay: 0.4s;
  }
  .stats-bar.stats-visible .stats-bar-inner .stat-item:nth-child(3) .stat-icon {
    animation-delay: 0.65s;
  }
}
.stats-bar.stats-visible .stats-bar-inner .stat-item:hover {
  transform: translateY(-3px);
}
.stats-bar-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  gap: clamp(1rem, 3.5vw, 1.85rem);
}
.stats-bar .stats-bar-inner .stat-item {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}
.stats-bar .stat-item--rating .stat-number {
  white-space: nowrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.stat-icon {
  display: block;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
}
/* Stats bar: white tile + coloured icons (gold trophy, emerald gift) */
.stats-bar .stat-item {
  gap: 0.34rem;
}
.stats-bar .stat-icon {
  width: 50px;
  height: 50px;
  box-sizing: border-box;
  background-color: #ffffff;
  border-radius: 13px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  background-size: 30px 30px;
}
.stats-bar .stat-icon-trophy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill='%23fde047' fill-opacity='0.35' d='M8 9h8v5H8V9z'/%3E%3Cpath stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M8 21h8m-4-4v4M7 4h10M7 4v2a5 5 0 0010 0V4M7 4c-1.5 0-2 1-2 2v1h2M17 4c1.5 0 2 1 2 2v1h-2M9 9h6M9 12h6'/%3E%3C/svg%3E");
}
.stats-bar .stat-icon-gift {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill='%236ee7b7' fill-opacity='0.35' d='M4 12h16v10H4V12z'/%3E%3Cpath stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M20 12v10H4V12M22 7H2v5h20V7zM12 22V7M12 7H7.5a2.5 2.5 0 110-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 100-5C13 2 12 7 12 7z'/%3E%3C/svg%3E");
}
/* Star on white tile (rating block) */
.stats-bar .stat-icon-star {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d4a520' d='M12 3.1l2.45 5.57.34.77.83.08 6.06.56-4.6 3.99-.63.55.19.82 1.32 5.96-5.2-3.12L12 17.8l-.68.41-5.2 3.12 1.32-5.96.19-.82-.63-.55-4.6-3.99 6.06-.56.83-.08.34-.77L12 3.1z'/%3E%3C/svg%3E");
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.75vw, 1.48rem);
  font-weight: 700;
  color: var(--stats-text);
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.stat-label {
  font-size: clamp(0.68rem, 1.9vw, 0.84rem);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  line-height: 1.22;
}
/* ===== Scroll-triggered animations ===== */
.section.animate-on-scroll .section-title,
.section.animate-on-scroll .section-subtitle,
.section.animate-on-scroll .section-note {
  opacity: 0;
  transform: translateY(20px);
}
.section.animate-on-scroll.in-view .section-title {
  animation: fade-in-up 0.6s ease-out forwards;
}
.section.animate-on-scroll.in-view .section-subtitle,
.section.animate-on-scroll.in-view .section-note {
  animation: fade-in-up 0.5s ease-out 0.1s forwards;
}
.competitions.animate-on-scroll .competition-card { opacity: 0; transform: translateY(28px); }
.competitions.animate-on-scroll.in-view .competition-card:nth-child(1) { animation: fade-in-up 0.6s ease-out 0.15s forwards; }
.competitions.animate-on-scroll.in-view .competition-card:nth-child(2) { animation: fade-in-up 0.6s ease-out 0.28s forwards; }
.competitions.animate-on-scroll.in-view .competition-card:nth-child(3) { animation: fade-in-up 0.6s ease-out 0.4s forwards; }
.competitions.animate-on-scroll.in-view .competition-card:nth-child(4) { animation: fade-in-up 0.6s ease-out 0.52s forwards; }
.competitions.animate-on-scroll.in-view .competition-card:nth-child(5) { animation: fade-in-up 0.6s ease-out 0.64s forwards; }
.competitions.animate-on-scroll.in-view .competition-card:nth-child(6) { animation: fade-in-up 0.6s ease-out 0.76s forwards; }
.why-choose-banner.animate-on-scroll .why-choose-card { opacity: 0; transform: translateY(24px); }
.why-choose-banner.animate-on-scroll.in-view .why-choose-card:nth-child(1) { animation: fade-in-up 0.5s ease-out 0.15s forwards; }
.why-choose-banner.animate-on-scroll.in-view .why-choose-card:nth-child(2) { animation: fade-in-up 0.5s ease-out 0.3s forwards; }
.why-choose-banner.animate-on-scroll.in-view .why-choose-card:nth-child(3) { animation: fade-in-up 0.5s ease-out 0.45s forwards; }
.faq.animate-on-scroll .faq-item { opacity: 0; transform: translateY(12px); }
.faq.animate-on-scroll.in-view .faq-item { animation: fade-in-up 0.4s ease-out forwards; }
.faq.animate-on-scroll.in-view .faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq.animate-on-scroll.in-view .faq-item:nth-child(2) { animation-delay: 0.12s; }
.faq.animate-on-scroll.in-view .faq-item:nth-child(3) { animation-delay: 0.19s; }
.faq.animate-on-scroll.in-view .faq-item:nth-child(4) { animation-delay: 0.26s; }
.faq.animate-on-scroll.in-view .faq-item:nth-child(5) { animation-delay: 0.33s; }
.cta-block.animate-on-scroll .cta-title,
.cta-block.animate-on-scroll .cta-subtitle,
.cta-block.animate-on-scroll .btn { opacity: 0; transform: translateY(16px); }
.cta-block.animate-on-scroll.in-view .cta-title { animation: fade-in-up 0.5s ease-out forwards; }
.cta-block.animate-on-scroll.in-view .cta-subtitle { animation: fade-in-up 0.5s ease-out 0.1s forwards; }
.cta-block.animate-on-scroll.in-view .btn { animation: fade-in-up 0.5s ease-out 0.2s forwards; }
.contact-section.animate-on-scroll .section-title,
.contact-section.animate-on-scroll .section-subtitle,
.contact-section.animate-on-scroll .contact-form { opacity: 0; transform: translateY(20px); }
.contact-section.animate-on-scroll.in-view .section-title { animation: fade-in-up 0.5s ease-out forwards; }
.contact-section.animate-on-scroll.in-view .section-subtitle { animation: fade-in-up 0.5s ease-out 0.08s forwards; }
.contact-section.animate-on-scroll.in-view .contact-form { animation: fade-in-up 0.6s ease-out 0.15s forwards; }

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  color: #111827;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  background: none;
  -webkit-text-fill-color: #111827;
  transition: transform 0.3s ease, color 0.2s ease;
}
.section.in-view .section-title:hover {
  transform: scale(1.02);
  text-shadow: 0 2px 20px rgba(212, 165, 32, 0.18);
}
@media (prefers-reduced-motion: no-preference) {
  .section-cta .btn-outline {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.25s ease, color 0.25s ease;
  }
  .section-cta .btn-outline:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(212, 165, 32, 0.22);
  }
}
.section-subtitle, .section-note {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 600px;
  margin-inline: auto;
  font-size: 1.05rem;
}
.section-cta { text-align: center; margin-top: 2rem; }

/* ===== Competition Cards ===== */
.competitions { background: var(--bg-page); color: var(--text); }
#competitions {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
#competitions:focus,
#competitions:focus-visible,
#competitions:target {
  outline: none;
}
#competitions .section-title { color: #111827; background: none; -webkit-text-fill-color: #111827; }
#competitions .section-subtitle { color: var(--text-muted) !important; }
#competitions .competition-card,
#competitions .competition-card * {
  color: inherit;
}
#competitions .competition-card {
  color: var(--text);
}
#competitions .card-badge,
#competitions .card-title,
#competitions .countdown-num,
#competitions .ticket-stats .remaining {
  color: var(--cta-blue) !important;
}
#competitions .card-end,
#competitions .countdown-label,
#competitions .card-tags span,
#competitions .ticket-stats {
  color: var(--text-muted) !important;
}
#competitions .btn-card,
#competitions .btn-card:hover,
#competitions .btn-card:visited {
  background: var(--cta-blue) !important;
  color: #fff !important;
  border-color: var(--cta-blue) !important;
}
#competitions .section-cta .btn-outline,
#competitions .section-cta .btn-outline:hover,
#competitions .section-cta .btn-outline:visited {
  color: var(--cta-blue) !important;
  border-color: var(--cta-blue) !important;
}
#competitions .section-cta .btn-outline:hover {
  background: var(--cta-blue) !important;
  color: #fff !important;
}
.competition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.competition-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  outline: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.competition-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(212, 165, 32, 0.24), 0 0 28px rgba(212, 165, 32, 0.1);
  border-color: rgba(212, 165, 32, 0.32);
}
.competition-card:hover .card-image img {
  transform: scale(1.06);
}
.card-image img {
  transition: transform 0.4s ease;
}
.competition-card:focus,
.competition-card:focus-visible {
  outline: none;
  border-color: var(--cta-blue);
  box-shadow: 0 0 0 2px rgba(212, 165, 32, 0.22);
}
.competition-card .btn-card:focus-visible,
.competition-card a:focus-visible {
  outline: 2px solid var(--cta-blue);
  outline-offset: 2px;
}
.competition-card .card-image img {
  outline: none;
}
.competition-card .card-image img:focus {
  outline: none;
}
.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  margin: 0;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.competition-card .card-badge,
.competition-card .card-tags,
.competition-card .card-title,
.competition-card .card-price,
.competition-card .card-end,
.competition-card .countdown,
.competition-card .ticket-progress,
.competition-card .card-ticket-actions {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}
.competition-card .card-badge { margin-top: 1rem; }
.competition-card .card-ticket-actions { margin-bottom: 1.5rem; margin-top: auto; }
.card-ticket-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ticket-qty {
  width: 4rem;
  padding: 0.5rem 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  text-align: center;
}
.card-ticket-actions .btn-card {
  flex: 1;
  min-width: 120px;
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  color: var(--cta-blue);
  margin-bottom: 0.75rem;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.card-tags span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: var(--text);
}
/* Competition grid: equal title block so countdown/progress/buttons line up across cards */
#competitions .competition-card .card-title {
  font-size: 1.44rem;
  min-height: 3.78rem;
  display: flex;
  align-items: center;
}
.card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold, #d4a520);
  margin: 0 0 0.65rem;
  letter-spacing: 0.01em;
}
.card-price-amount {
  font-size: 1.2rem;
  color: var(--text);
}
.card-end {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.countdown {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Light gold static border around the Days / Hours / Minutes / Seconds row */
#competitions .competition-card .countdown {
  padding: 0.55rem 0.6rem;
  gap: 0.5rem;
  border-radius: calc(var(--radius-sm) + 4px);
  border: 2px solid rgba(212, 165, 32, 0.42);
  box-shadow:
    0 0 0 1px rgba(245, 220, 136, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    inset 0 1px 14px rgba(212, 165, 32, 0.07);
  background: transparent;
}

.countdown-item {
  flex: 1;
  min-width: 60px;
  text-align: center;
  background: var(--bg-elevated);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.competition-card:hover .countdown-item {
  transform: scale(1.02);
  box-shadow: 0 2px 12px rgba(212, 165, 32, 0.18);
}
.countdown-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cta-blue);
}
.countdown-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.ticket-progress { margin-bottom: 0.5rem; }
.progress-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #bf931a, #d4a520, #e8c547, #d4a520);
  background-size: 200% 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
  animation: shimmer-bar 3s linear infinite;
}
.ticket-stats { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.ticket-stats .remaining { color: var(--cta-blue); }

/* ===== Cart view (separate from home) ===== */
.cart-view {
  display: none;
  padding-top: var(--header-h);
}
body.cart-open #home-content {
  display: none;
}
body.cart-open .cart-view {
  display: block;
}

/* ===== Panels (login/account/admin) ===== */
.panel-view {
  display: none;
  padding-top: var(--header-h);
}
body.panel-open #home-content { display: none; }
body.panel-open .panel-view[data-panel-open="true"] { display: block; }

.panel-header { padding: 1rem 1rem 0; max-width: var(--container); margin: 0 auto; padding-inline: 1rem; }
.panel-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.account-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: min(320px, 58vw);
  margin-left: auto;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--header-border, #e2e8f0);
  border-radius: 12px;
  background: #ffffff;
  color: var(--header-text, #111827);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.account-user-label {
  color: var(--gold, #d4a520);
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.account-user-email {
  font-weight: 600;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.panel-container { max-width: 1000px; }

/* Raise content higher on the Account-related panels */
#login-view.panel-view,
#account-view.panel-view,
#admin-view.panel-view {
  padding-top: 0.25rem;
}
#login-view .panel-header,
#account-view .panel-header,
#admin-view .panel-header {
  padding: 0.5rem 1rem 0;
}

/* The panel body uses <section class="section panel-section"> which normally
   has large vertical padding. Reduce it so the content appears higher. */
#login-view .section.panel-section,
#account-view .section.panel-section,
#admin-view .section.panel-section {
  padding: 1.5rem 0 2.5rem;
}

/* Ensure auth mode switching truly hides the other form */
#auth-signin-wrap[hidden],
#auth-signup-wrap[hidden] {
  display: none !important;
}
.panel-note {
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.auth-card h3 { margin: 0 0 1rem; }
.auth-card label { display: block; margin-top: 0.75rem; font-weight: 600; }

/* Center auth cards within their wrappers */
#auth-signin-wrap,
#auth-signup-wrap {
  justify-items: center;
  grid-template-columns: 1fr; /* only one card per wrapper */
}
#auth-signin-wrap .auth-card,
#auth-signup-wrap .auth-card {
  width: min(440px, 100%);
  margin-inline: auto;
  justify-self: center;
}
.auth-card input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
}
.auth-error { color: #b91c1c; margin: 0.75rem 0 0; }
.panel-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.25rem; }
.panel-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.panel-card h3 { margin: 0 0 0.75rem; }
.panel-card .empty { color: var(--text-muted); }
.panel-card table { width: 100%; border-collapse: collapse; }
.panel-card th, .panel-card td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92rem; }
.panel-card th { font-weight: 700; }

/* ===== CRM dashboard (admin view) ===== */
.crm-layout{
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.crm-nav{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
}
.crm-nav-btn{
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.crm-nav-btn:hover{
  background: var(--bg-elevated);
  border-color: var(--border);
}
.crm-nav-btn[aria-current="page"]{
  background: rgba(212,165,32,0.12);
  border-color: var(--border-gold);
  color: var(--gold);
}
.crm-main{
  min-width: 0;
}
.crm-panel[hidden]{
  display: none !important;
}
.crm-numbered-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.crm-numbered-list li{
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.45;
}
.crm-numbered-list .crm-num{
  font-weight: 700;
  color: var(--gold);
  margin-right: 0.35rem;
}
.crm-numbered-list .crm-primary{
  color: var(--text);
}
.crm-numbered-list .crm-meta{
  color: var(--text-muted);
  font-size: 0.92em;
}
.crm-pager{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.crm-pager-info{
  color: var(--text-muted);
  font-size: 0.92rem;
}
.crm-pager-count{
  color: var(--text-muted);
}
.crm-pager-btn{
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  font: inherit;
  cursor: pointer;
}
.crm-pager-btn:hover:not(:disabled){
  border-color: var(--border-gold);
  color: var(--gold);
}
.crm-pager-btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}

.cart-view-header {
  padding: 1rem 1rem 0;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 1rem;
}

/* ===== Cart ===== */
.cart-section { background: var(--bg-card); }
.cart-content { max-width: 720px; margin: 0 auto; }
.cart-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.cart-empty p { margin: 0 0 1rem; color: var(--text-muted); }
.cart-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.cart-table th,
.cart-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.cart-table th { font-weight: 600; color: var(--gold); background: var(--bg-card); }
.cart-table tr:last-child td { border-bottom: none; }
.cart-item-title { font-weight: 500; color: var(--text); }
.cart-per { font-size: 0.8rem; color: var(--text-muted); }
.cart-qty-input {
  width: 4rem;
  padding: 0.4rem 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
}
.cart-line-total { font-weight: 600; color: var(--gold); }
.cart-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.25rem 0;
}
.cart-remove-btn:hover { color: var(--gold); }
.cart-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.cart-total { font-size: 1.25rem; margin: 0; color: var(--text); }
.cart-total strong { color: var(--gold); }
.cart-footer .btn-primary,
.cart-footer .btn-primary:hover,
.cart-footer .btn-primary:visited {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}

/* Cart: stack rows on narrow screens — no horizontal scroll */
@media (max-width: 640px) {
  .cart-table-wrap {
    overflow-x: visible;
    margin-inline: 0;
    border: none;
    background: transparent;
  }
  .cart-table {
    display: block;
    width: 100%;
    font-size: 0.9rem;
  }
  .cart-table thead {
    display: none;
  }
  .cart-table tbody {
    display: block;
  }
  .cart-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    box-sizing: border-box;
    max-width: 100%;
  }
  .cart-table tbody tr:last-child {
    margin-bottom: 0;
  }
  .cart-table td {
    display: block;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    box-sizing: border-box;
    max-width: 100%;
  }
  .cart-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .cart-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.35rem;
  }
  .cart-table td[data-label=""]::before {
    display: none;
  }
  .cart-item-title {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .cart-line-remove {
    text-align: center;
    padding-top: 0.65rem;
  }
  .cart-line-remove .cart-remove-btn {
    width: 100%;
    padding: 0.5rem;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
  }
  .cart-qty-input {
    width: 100%;
    max-width: 5rem;
    box-sizing: border-box;
  }
  .cart-footer {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }
  .cart-total {
    font-size: 1.1rem;
    text-align: center;
  }
  .cart-footer .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Checkout ===== */
.checkout-section { background: var(--bg-dark); }
.checkout-section > .checkout-container > .section-title {
  color: var(--gold);
  background: none;
  -webkit-text-fill-color: var(--gold);
}
.checkout-section > .checkout-container > .section-subtitle {
  color: rgba(255, 255, 255, 0.82);
}
.checkout-container { max-width: 900px; margin: 0 auto; }
.checkout-section-top {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 1rem;
}
.checkout-section-top .checkout-continue-shopping { align-self: flex-start; }
.checkout-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 700px) {
  .checkout-content { grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .crm-layout{ grid-template-columns: 1fr; }
  .crm-nav{
    position: static;
    display: flex;
    gap: 0.5rem;
  }
  .crm-nav-btn{
    width: auto;
    text-align: center;
    flex: 1;
  }
}

/* ===== Legal pages (terms.html, privacy.html, etc.) ===== */
.legal-page {
  padding-top: var(--header-h);
  background: var(--bg-page);
  min-height: 60vh;
}
.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
}
.legal-doc h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.legal-doc .legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}
.legal-doc h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  margin: 2rem 0 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}
.legal-doc h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.legal-doc h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}
.legal-doc p {
  margin: 0.65rem 0;
}
.legal-doc ul,
.legal-doc ol {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.35rem;
}
.legal-doc li {
  margin: 0.35rem 0;
}
.legal-doc strong {
  color: var(--text);
}

/* ===== Competition detail page (competition.html) ===== */
.comp-page{
  padding-top: var(--header-h);
}
.comp-section{
  padding-top: 1.25rem;
}
.comp-container{
  max-width: 1100px;
}
.comp-shell{
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}
.comp-card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}
.comp-gallery{
  padding: 1rem;
}
.comp-main-img{
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  border: 1px solid var(--border);
}
.comp-main-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comp-thumbs{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.comp-thumb-btn{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.comp-thumb-btn[aria-current="true"]{
  border-color: var(--cta-blue);
  box-shadow: 0 0 0 2px rgba(26,47,74,0.12);
}
.comp-thumb-btn img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comp-info{
  padding: 1rem;
}
.comp-title{
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}
.comp-meta{
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.comp-progress{
  margin-top: 0.85rem;
}
.comp-progress .ticket-stats{
  margin-top: 0.45rem;
}
.entry-panel{
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.entry-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.entry-price{
  font-weight: 900;
  color: var(--text);
}
.qty-stepper{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.qty-btn{
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}
.qty-input{
  width: 72px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 800;
}
.entry-total{
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 900;
}
.entry-total .money{
  color: var(--gold);
}
.entry-actions{
  margin-top: 0.75rem;
}
.entry-actions .btn{
  width: 100%;
}
.entry-note{
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px){
  .comp-shell{ grid-template-columns: 1fr; }
  .comp-thumbs{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.checkout-summary h3,
.checkout-form h3 { font-size: 1.1rem; margin: 0 0 1rem; color: var(--gold); }
.checkout-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.checkout-item:last-of-type { border-bottom: none; }
.checkout-item-title { color: var(--text); }
.checkout-item-qty { color: var(--text-muted); }
.checkout-item-total { font-weight: 600; color: var(--gold); }
.checkout-total { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 1.1rem; }
.checkout-total strong { color: var(--gold); }
.checkout-bundle-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-gold);
}
.checkout-bundle-wrap[hidden] { display: none !important; }
.checkout-bundle-title {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--gold);
}
.checkout-bundle-desc {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.checkout-bundle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.checkout-bundle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
}
.checkout-bundle-row .btn {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}
.checkout-bundle-row-title { color: var(--text); flex: 1; min-width: 0; }
.checkout-bundle-prices { color: var(--text-muted); font-size: 0.85rem; }
.checkout-bundle-prices del { opacity: 0.75; margin-right: 0.35rem; }
.checkout-bundle-added {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}
.checkout-bundle-added .checkout-bundle-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.cart-bundle-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-left: 0.35rem;
}
.cart-qty-input.cart-qty-input--bundle {
  opacity: 0.65;
  pointer-events: none;
}
.checkout-empty { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.checkout-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.checkout-form label { font-weight: 500; font-size: 0.9rem; }
.checkout-form input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
}
.checkout-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-muted);
}
.checkout-note { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.skill-intro { margin-bottom: 0.75rem; }
.skill-intro a { color: var(--gold); text-decoration: underline; }
.skill-question {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.skill-question legend {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 0.35rem;
  color: var(--text);
}
.skill-answer-label {
  font-weight: 500;
  font-size: 0.9rem;
}
#skill-answer-input {
  width: 100%;
  max-width: 8rem;
  padding: 0.55rem 0.65rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
}
#skill-answer-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-muted);
}
.skill-question--error { border-color: #e0554e; box-shadow: 0 0 0 2px rgba(224, 85, 78, 0.15); }
.btn-block { width: 100%; }

/* ===== Why Choose Us (gold banner + single white panel, 3 columns) ===== */
.why-choose-banner {
  background: linear-gradient(165deg, #f5dc88 0%, #e8c547 42%, #d4a520 100%);
  padding: 3rem 0 3.5rem;
  border-top: none;
  border-bottom: none;
}
.why-choose-banner .container {
  max-width: 1120px;
}
.why-choose-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 1.75rem;
  text-shadow: none;
}
.why-choose-panel {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.95);
}
.why-choose-card {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.5rem 1.35rem 1.5rem 1.5rem;
  margin: 0;
  text-align: left;
  background: #ffffff;
  border-radius: 0;
  border: none;
  box-shadow: none;
  min-width: 0;
}
.why-choose-card:not(:last-child) {
  border-right: 1px solid #d1d5db;
}
.why-choose-card-text {
  min-width: 0;
}
.why-choose-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8ecef;
  border-radius: 10px;
}
.why-choose-icon svg {
  width: 48px;
  height: 48px;
}
.why-choose-card-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: #92400e;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.why-choose-card-desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: #111827;
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 800px) {
  .why-choose-panel {
    flex-direction: column;
  }
  .why-choose-card {
    padding: 1.35rem 1.25rem;
    border-right: none !important;
    border-bottom: 1px solid #d1d5db;
  }
  .why-choose-card:last-child {
    border-bottom: none;
  }
}

/* ===== Winners (infinite horizontal marquee) ===== */
.winners { background: var(--bg-card); }
.winners-marquee-shell {
  width: 100%;
  overflow: hidden;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
}
.winners-marquee {
  overflow: hidden;
  padding: 0.35rem 0 0.75rem;
}
.winners-marquee-track {
  display: flex;
  width: max-content;
  animation: winners-marquee-scroll 55s linear infinite;
  will-change: transform;
}
.winners-marquee:hover .winners-marquee-track {
  animation-play-state: paused;
}
.winners-marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: 1.5rem;
  padding: 0 0.75rem;
}
.winners-marquee .winner-card {
  flex: 0 0 min(320px, calc(100vw - 2.5rem));
  width: min(320px, calc(100vw - 2.5rem));
  max-width: 360px;
}
@keyframes winners-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .winners-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
  }
  .winners-marquee-group[aria-hidden="true"] {
    display: none;
  }
  .winners-marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
  }
  .winners-marquee .winner-card {
    flex: 1 1 min(320px, 100%);
    width: auto;
    max-width: 400px;
  }
  .winners-marquee-shell {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
.winner-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease, border-left-color 0.3s ease;
}
.winner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1), 0 0 24px rgba(212, 165, 32, 0.12);
  border-color: var(--border);
  border-left-color: var(--cta-blue);
}
.winner-card h3 { font-size: 1rem; margin: 0 0 0.5rem; font-weight: 600; }
.winner-card time {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.winner-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ===== FAQ ===== */
.faq { background: var(--bg-page); }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] {
  border-color: var(--border-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--cta-blue);
}
.faq-item summary:hover {
  color: var(--cta-blue);
}
.faq-item p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] p {
    animation: fade-in-up 0.4s ease-out;
  }
}

/* ===== Contact ===== */
.contact-section { background: var(--bg-elevated); }
.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  font-weight: 500;
  font-size: 0.9rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-muted);
}

/* ===== CTA Block ===== */
.cta-block {
  background: var(--stats-bg);
  border-top: none;
  color: var(--stats-text);
  text-align: center;
  padding: 4.5rem 0;
  position: relative;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, var(--gold-muted) 0%, transparent 60%);
  pointer-events: none;
}
.cta-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 15% 30%, rgba(212, 165, 32, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 85% 70%, rgba(212, 165, 32, 0.14) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .cta-block::after {
    animation: cta-mesh 10s ease-in-out infinite;
  }
}
.cta-block .container { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}
.cta-block .cta-title { color: #ffffff; -webkit-text-fill-color: #ffffff; }
.cta-block .cta-subtitle { color: rgba(255,255,255,0.85); margin: 0 0 1.5rem; font-size: 1.1rem; }
.cta-block .btn-primary { background: var(--cta-blue); color: #fff; }
.cta-block .btn-primary:hover { background: var(--cta-blue-hover); color: #fff; }

/* ===== Footer ===== */
.footer {
  background: var(--stats-bg);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 3rem 0 1.5rem;
  color: var(--stats-text);
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin: 0 0 1rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.social-links a:hover { color: var(--cta-blue); }
.footer-links h4,
.footer-contact h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.9);
  margin: 0 0 0.75rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.footer-links a:hover { color: var(--cta-blue); }
.footer-contact address { font-style: normal; color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .account-user-badge {
    max-width: min(200px, 52vw);
    padding: 0.4rem 0.65rem;
    font-size: 0.7rem;
  }
  .menu-toggle { display: flex; }
  .header.open .nav {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    padding: 1rem;
  }
  .header.open .nav-list { flex-direction: column; gap: 0.5rem; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
  }
  .header.open .nav-overlay { display: block; }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    /* In-flow height for absolute hero-content (was collapsing to 0) */
    min-height: calc(94svh - var(--header-h));
    width: 100%;
    position: relative;
  }
  .hero.hero-image {
    --hero-slide-shift-x: 0vw;
    /* Slightly shorter hero on phone — less empty band before competitions */
    min-height: calc(94svh - var(--header-h));
  }
  .hero-slides-overlay {
    /* ~30% lighter than before in the title zone — less flat black dead space */
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.11) 28%,
      rgba(0, 0, 0, 0.14) 52%,
      rgba(0, 0, 0, 0.24) 100%
    );
  }
  /* Mobile: fade image edges on TOP/BOTTOM as well as left/right */
  .hero-slide-img-wrap {
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 7%, rgba(0, 0, 0, 0.92) 16%, #000 24%, #000 76%, rgba(0, 0, 0, 0.92) 84%, rgba(0, 0, 0, 0.35) 93%, transparent 100%),
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 7%, rgba(0, 0, 0, 0.92) 16%, #000 24%, #000 76%, rgba(0, 0, 0, 0.92) 84%, rgba(0, 0, 0, 0.35) 93%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 7%, rgba(0, 0, 0, 0.92) 16%, #000 24%, #000 76%, rgba(0, 0, 0, 0.92) 84%, rgba(0, 0, 0, 0.35) 93%, transparent 100%),
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 7%, rgba(0, 0, 0, 0.92) 16%, #000 24%, #000 76%, rgba(0, 0, 0, 0.92) 84%, rgba(0, 0, 0, 0.35) 93%, transparent 100%);
    -webkit-mask-size: 100% 100%, 100% 100%;
    mask-size: 100% 100%, 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    /* Intersection of both masks */
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .hero-content {
    /* Mobile: exact placement (title above image, CTA below image) */
    position: absolute;
    inset: 0;
    padding: 0;
    pointer-events: none;
  }
  .hero-content > * { pointer-events: auto; }
  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    line-height: 1.04;
    margin: 0;
    padding: 0;
    text-align: center;
    position: absolute;
    top: 3.5rem;
    left: 1rem;
    right: 1rem;
    margin-inline: auto;
    max-width: 680px;
  }
  .hero-subtitle { display: none; }
  .hero-draw { display: none; }
  .hero-image .hero-content { text-align: center; }
  .hero-content { max-width: none; margin-left: auto; margin-right: auto; margin-top: 0; }
  .hero-content .btn-hero-cta {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 9.25rem;
    width: auto;
    max-width: calc(100% - 2rem);
    margin-inline: auto;
    justify-content: center;
    padding: 1.35rem 2.25rem;
    min-height: unset;
    box-sizing: border-box;
    font-size: 2rem;
    line-height: 1.15;
    gap: 0.65rem;
  }
  .hero-content .btn-hero-cta .btn-arrow {
    width: 36px;
    height: 36px;
  }

  /* Anchor art under the title — removes a big band of empty bg-dark between headline and image */
  .hero-slide-pane {
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    padding-top: 7.25rem;
    box-sizing: border-box;
  }
  .hero-slide-img-wrap {
    height: auto;
    max-height: min(54vh, calc(100svh - var(--header-h) - 9.25rem));
    width: 100%;
    justify-content: center;
  }
  .hero-slide-img {
    height: auto;
    max-height: min(54vh, calc(100svh - var(--header-h) - 9.25rem));
    max-width: 100%;
  }
  .stats-bar.stats-bar--hero {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    border-right: none;
    padding: 0.82rem 0.4rem 0.6rem;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.2);
  }
  .stats-bar::before {
    border-radius: 0;
  }
  /* Hero stats: one row on phone (three columns) */
  .stats-bar-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.2rem;
  }
  .stats-bar .stats-bar-inner .stat-item {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
  }
  .stats-bar .stat-item--rating .stat-number {
    white-space: normal;
  }
  .stats-bar .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-size: 24px 24px;
  }
  .stats-bar .stat-number {
    font-size: clamp(0.75rem, 3.1vw, 1.05rem);
  }
  .stats-bar .stat-label {
    font-size: clamp(0.52rem, 2.5vw, 0.72rem);
    line-height: 1.15;
    padding: 0 0.1rem;
  }
  .section-subtitle { display: none; }
  .section { padding: 3rem 0; }
  .competition-grid { grid-template-columns: 1fr; }
  .card-ticket-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ticket-qty { width: 100%; }
  .why-choose-banner { padding: 2.5rem 0 3rem; }
  .why-choose-card { padding: 1.25rem 1rem; gap: 0.85rem; }
  .why-choose-icon { width: 56px; height: 56px; }
  .why-choose-icon svg { width: 42px; height: 42px; }

  /* Stack auth cards into separate sections on mobile */
  .auth-grid { grid-template-columns: 1fr; }
  .panel-split { grid-template-columns: 1fr; }

  .header-actions { gap: 0.5rem; }
  .header-icon-btn,
  .cart-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0 !important;
  }

  #competitions .competition-grid {
    gap: 1.25rem;
  }
  #competitions .competition-card {
    border-color: rgba(212, 165, 32, 0.22);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.09);
  }
  #competitions .competition-card .card-badge,
  #competitions .competition-card .card-tags,
  #competitions .competition-card .card-title,
  #competitions .competition-card .card-price,
  #competitions .competition-card .card-end,
  #competitions .competition-card .countdown,
  #competitions .competition-card .ticket-progress,
  #competitions .competition-card .card-ticket-actions {
    margin-left: 1.15rem;
    margin-right: 1.15rem;
  }
  #competitions .competition-card .card-title {
    min-height: auto;
    margin-bottom: 0.35rem;
    font-size: 1.28rem;
    line-height: 1.25;
  }
  #competitions .competition-card .card-price {
    margin-top: 0.15rem;
    margin-bottom: 0.55rem;
  }
  #competitions .competition-card .card-end {
    margin-bottom: 0.85rem;
    line-height: 1.45;
  }
  #competitions .competition-card .countdown {
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
    margin-bottom: 0.85rem;
  }
  #competitions .competition-card .countdown-item {
    min-width: 0;
    flex: 1 1 0;
    padding: 0.38rem 0.15rem;
  }
  #competitions .countdown-num {
    font-size: clamp(0.92rem, 3.6vw, 1.15rem);
  }
  #competitions .countdown-label {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }
  #competitions .competition-card .ticket-progress {
    margin-bottom: 0.75rem;
  }
  #competitions .competition-card .card-ticket-actions {
    margin-bottom: 1.25rem;
    align-items: stretch;
    justify-content: center;
  }
  #competitions .competition-card .card-ticket-actions .btn-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    flex: none;
  }
}

@media (max-width: 420px) {
  .header-inner { gap: 0.5rem; }
  .logo-img { height: 44px; }
  .cart-text { display: none; }
}
