/* ================================================================
   TOURNAMENTS PAGE — FALCON BADMINTON CLUB
   PREMIUM SPORTS BROADCAST REDESIGN
   Scoped under #page-tournaments
   ================================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --t-red: #c71010;
  --t-red-rgb: 219, 7, 7;
  --t-red-dark: #9e0b20;
  --t-red-light: #f32c4a;
  --t-red-glow: rgba(199, 16, 16, 0.55);
  --t-black: #111114;
  --t-black-rgb: 17, 17, 20;
  --t-grey: #5c5c64;
  --t-grey-light: #f6f6f8;
  --t-grey-border: #e2e2e8;
  --t-grey-dark: #2a2a30;
  --t-white: #ffffff;
  --t-white-rgb: 255, 255, 255;

  /* Premium Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-light: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);

  /* Easing curves */
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-back-out: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --dur-cinematic: 0.8s;
  --dur-fast: 0.3s;
  --dur-medium: 0.5s;

  /* Premium shadows */
  --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 12px 30px rgba(199, 16, 16, 0.15);
  --shadow-glow-intense: 0 0 40px rgba(199, 16, 16, 0.4), 0 0 80px rgba(199, 16, 16, 0.15);
  --shadow-spotlight: 0 30px 60px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 30px 60px rgba(199, 16, 16, 0.2), 0 0 0 1px rgba(199, 16, 16, 0.1);
  --shadow-neon: 0 0 10px rgba(199, 16, 16, 0.6), 0 0 20px rgba(199, 16, 16, 0.3), 0 0 40px rgba(199, 16, 16, 0.15);
}


/* ================================================================
   0. SCROLL PROGRESS BAR (fixed at top)
   ================================================================ */
#page-tournaments .scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--t-red) 0%,
    var(--t-red-light) 50%,
    #ff6b81 75%,
    var(--t-red) 100%
  );
  background-size: 200% 100%;
  animation: shimmer-bar 2s linear infinite;
  z-index: 10001;
  transition: width 0.12s linear;
  box-shadow: 0 0 12px rgba(var(--t-red-rgb), 0.5), 0 0 4px rgba(var(--t-red-rgb), 0.8);
}

@keyframes shimmer-bar {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}


/* ================================================================
   0.1 CUSTOM CURSOR
   ================================================================ */
#page-tournaments .t-tour-card,
#page-tournaments .t-tour-card * {
  cursor: crosshair;
}

#page-tournaments .t-tour-card:hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cline x1='16' y1='0' x2='16' y2='32' stroke='%23C8102E' stroke-width='1'/%3E%3Cline x1='0' y1='16' x2='32' y2='16' stroke='%23C8102E' stroke-width='1'/%3E%3Ccircle cx='16' cy='16' r='4' fill='%23C8102E'/%3E%3Ccircle cx='16' cy='16' r='8' fill='none' stroke='%23C8102E' stroke-width='1' opacity='0.4'/%3E%3C/svg%3E") 16 16, crosshair;
}


/* ================================================================
   0.2 PAGE BASE STYLES
   ================================================================ */
#page-tournaments {
  font-family: var(--font-body);
  background-color: var(--t-white);
  color: var(--t-black);
  overflow-x: hidden;
  padding-top: 70px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#page-tournaments *,
#page-tournaments *::before,
#page-tournaments *::after {
  box-sizing: border-box;
}

#page-tournaments h1,
#page-tournaments h2,
#page-tournaments h3,
#page-tournaments h4,
#page-tournaments h5,
#page-tournaments h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--t-black);
  line-height: 1.1;
}

/* Shared Container */
#page-tournaments .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

#page-tournaments .text-center { text-align: center; }

/* Section tagline chip */
#page-tournaments .tagline-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-family: var(--font-heading) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  background: var(--t-red) !important;
  padding: 7px 22px !important;
  border-radius: 100px !important;
  margin-bottom: 24px;
  border: 2px solid #000000 !important;
  box-shadow: 3px 3px 0px #000000 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#page-tournaments .tagline-chip::before,
#page-tournaments .tagline-chip::after {
  content: '' !important;
  display: inline-block !important;
  width: 15px !important;
  height: 15px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='7' cy='7' rx='4' ry='5' transform='rotate(-45 7 7)'/%3E%3Cline x1='5.5' y1='7' x2='8.5' y2='7' opacity='0.7'/%3E%3Cline x1='7' y1='5.5' x2='7' y2='8.5' opacity='0.7'/%3E%3Cpath d='M9.5 9.5 L19.5 19.5'/%3E%3Cpath d='M17 17 L20 20' stroke-width='3.2'/%3E%3Cellipse cx='17' cy='7' rx='4' ry='5' transform='rotate(45 17 7)'/%3E%3Cline x1='15.5' y1='7' x2='18.5' y2='7' opacity='0.7'/%3E%3Cline x1='17' y1='5.5' x2='17' y2='8.5' opacity='0.7'/%3E%3Cpath d='M14.5 9.5 L4.5 19.5'/%3E%3Cpath d='M7 17 L4 20' stroke-width='3.2'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  flex-shrink: 0 !important;
  animation: none !important;
}

/* Section titles */
#page-tournaments .section-title-premium {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

#page-tournaments .section-title-premium span {
  color: var(--t-red);
  position: relative;
}

#page-tournaments .section-title-premium span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--t-red), transparent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-cinematic);
}

#page-tournaments .section-title-premium:hover span::after {
  transform: scaleX(1);
}

#page-tournaments .section-sub-premium {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--t-grey);
  max-width: 620px;
  margin: 0 auto 56px;
  line-height: 1.7;
}


/* ================================================================
   1. HERO SECTION (.t-hero)
   Full-viewport hero with canvas particles & countdown
   ================================================================ */
.t-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(
    175deg,
    var(--t-black) 0%,
    #1a1a22 40%,
    #0d0d12 100%
  );
  overflow: hidden;
  padding: 120px 20px 0;
}

/* Canvas for particle shuttlecocks */
.t-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Dark gradient overlay on top of canvas */
.t-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(199, 16, 16, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(199, 16, 16, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Ghost watermark text */
.t-hero::before {
  content: 'TOURNAMENT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.015);
  letter-spacing: -0.05em;
  line-height: 0.85;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  user-select: none;
}

/* Hero content */
.t-hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.t-hero .tagline-chip {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.t-hero .tagline-chip::before {
  background: var(--t-red-light);
}

.t-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  color: var(--t-white);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.t-hero-title .title-line {
  display: block;
  overflow: hidden;
}

.t-hero-title .title-word {
  display: inline-block;
  transform: translateY(110%);
  animation: hero-word-reveal 1s var(--ease-cinematic) forwards;
}

.t-hero-title .title-word:nth-child(2) { animation-delay: 0.15s; }
.t-hero-title .title-word:nth-child(3) { animation-delay: 0.3s; }

@keyframes hero-word-reveal {
  to { transform: translateY(0); }
}

.t-hero-title .accent {
  color: var(--t-red);
  text-shadow: 0 0 60px rgba(var(--t-red-rgb), 0.3);
}

.t-hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.5);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
  font-weight: 400;
}

/* Hero CTA buttons */
.t-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.t-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  transition: all 0.4s var(--ease-cinematic);
  position: relative;
  overflow: hidden;
}

.t-hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s var(--ease-cinematic);
}

.t-hero-btn:hover::before {
  left: 100%;
}

.t-hero-btn-primary {
  background: var(--t-red);
  color: var(--t-white);
  box-shadow: 0 4px 20px rgba(var(--t-red-rgb), 0.4);
}

.t-hero-btn-primary:hover {
  background: var(--t-red-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--t-red-rgb), 0.5);
}

.t-hero-btn-secondary {
  background: transparent;
  color: var(--t-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.t-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

/* ── COUNTDOWN STRIP ── */
.t-countdown-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 4;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
}

.t-countdown-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.t-countdown-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-right: 16px;
  white-space: nowrap;
}

.t-countdown-label::after {
  content: '|';
  animation: typing-cursor 1s step-end infinite;
  margin-left: 2px;
  color: var(--t-red);
}

.t-countdown-blocks {
  display: flex;
  gap: 12px;
}

.t-countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  position: relative;
}

.t-countdown-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--t-white);
  line-height: 1;
  position: relative;
}

.t-countdown-unit {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

.t-countdown-sep {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--t-red);
  align-self: flex-start;
  line-height: 1;
  animation: glow-pulse 1.2s ease-in-out infinite;
}

/* Live pulse dot */
.t-live-pulse {
  width: 8px;
  height: 8px;
  background: var(--t-red);
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
}

.t-live-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--t-red);
  border-radius: 50%;
  animation: glow-pulse 1.5s ease-in-out infinite;
}


/* ================================================================
   2. HORIZONTAL SCROLL TOURNAMENT CAROUSEL (.t-carousel-section)
   Netflix-style horizontal scrolling cinematic cards
   ================================================================ */
.t-carousel-section {
  padding: 100px 0 80px;
  background: var(--t-grey-light);
  position: relative;
  overflow: hidden;
}

.t-carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--t-grey-border);
}

.t-carousel-header {
  text-align: center;
  margin-bottom: 48px;
}

/* Scroll track */
.t-carousel-track-wrapper {
  position: relative;
  padding: 0 0 24px;
}

.t-carousel-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px calc((100vw - 1200px) / 2 + 20px) 40px;
  scroll-padding-left: calc((100vw - 1200px) / 2 + 20px);
}

/* Custom Red Scrollbar */
.t-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.t-carousel-track::-webkit-scrollbar-track {
  background: var(--t-grey-border);
  border-radius: 10px;
  margin: 0 10%;
}

.t-carousel-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--t-red), var(--t-red-light));
  border-radius: 10px;
  transition: background 0.3s;
}

.t-carousel-track::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--t-red-dark), var(--t-red));
}

/* Firefox scrollbar */
.t-carousel-track {
  scrollbar-width: thin;
  scrollbar-color: var(--t-red) var(--t-grey-border);
}

/* Navigation arrows */
.t-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--t-grey-border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s var(--ease-cinematic);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  color: var(--t-black);
  font-size: 1.2rem;
}

.t-carousel-nav:hover {
  background: var(--t-red);
  color: var(--t-white);
  border-color: var(--t-red);
  box-shadow: var(--shadow-glow);
  transform: translateY(-50%) scale(1.1);
}

.t-carousel-nav--prev { left: 16px; }
.t-carousel-nav--next { right: 16px; }

/* ── CINEMATIC TOURNAMENT CARD ── */
.t-tour-card {
  flex: 0 0 380px;
  height: 520px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition:
    transform 0.6s var(--ease-cinematic),
    box-shadow 0.6s var(--ease-cinematic);
  will-change: transform;
  background: var(--t-black);
}

.t-tour-card:hover {
  transform: translateY(-20px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
}

/* Full background image */
.t-tour-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.t-tour-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-cinematic);
}

.t-tour-card:hover .t-tour-card-bg img {
  transform: scale(1.12);
}

/* Gradient overlay on the card */
.t-tour-card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.85) 80%,
    rgba(0, 0, 0, 0.95) 100%
  );
  transition: opacity 0.6s var(--ease-cinematic);
}

.t-tour-card:hover .t-tour-card-gradient {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.15) 35%,
    rgba(0, 0, 0, 0.88) 75%,
    rgba(0, 0, 0, 0.98) 100%
  );
}

/* Diagonal red stripe on hover */
.t-tour-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 60px;
  height: 300%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--t-red-rgb), 0.15),
    rgba(var(--t-red-rgb), 0.3),
    rgba(var(--t-red-rgb), 0.15),
    transparent
  );
  z-index: 5;
  transform: rotate(35deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.t-tour-card:hover::before {
  opacity: 1;
  animation: diagonal-stripe 0.8s var(--ease-cinematic) forwards;
}

/* Shimmer effect across card */
.t-tour-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 100%
  );
  z-index: 6;
  pointer-events: none;
  animation: shimmer 4s ease-in-out infinite;
}

/* Badge chips */
.t-tour-card-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 4;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.t-badge {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.t-badge--category {
  background: rgba(var(--t-red-rgb), 0.85);
  color: var(--t-white);
  box-shadow: 0 2px 12px rgba(var(--t-red-rgb), 0.3);
}

.t-badge--price {
  background: rgba(255, 255, 255, 0.15);
  color: var(--t-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.t-badge--free {
  background: rgba(255, 193, 7, 0.9);
  color: var(--t-black);
}

/* Glassmorphism info panel at bottom */
.t-tour-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 28px 24px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 20%,
    rgba(0, 0, 0, 0.6) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateY(20px);
  opacity: 0.9;
  transition:
    transform 0.5s var(--ease-cinematic),
    opacity 0.5s var(--ease-cinematic);
}

.t-tour-card:hover .t-tour-card-info {
  transform: translateY(0);
  opacity: 1;
}

.t-tour-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--t-white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.t-tour-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.t-tour-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.t-tour-card-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.t-tour-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-white);
  background: var(--t-red);
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  transition: all 0.3s var(--ease-cinematic);
  box-shadow: 0 4px 16px rgba(var(--t-red-rgb), 0.35);
}

.t-tour-card-cta:hover {
  background: var(--t-red-light);
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(var(--t-red-rgb), 0.5);
}

.t-tour-card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-cinematic);
}

.t-tour-card-cta:hover svg {
  transform: translateX(4px);
}

/* Registration status on card */
.t-tour-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.t-tour-card-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.t-tour-card-status.status-open { color: #4ade80; }
.t-tour-card-status.status-open .status-dot {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
  animation: glow-pulse 1.4s ease-in-out infinite;
}

.t-tour-card-status.status-closing { color: #fb923c; }
.t-tour-card-status.status-closing .status-dot { background: #fb923c; }

.t-tour-card-status.status-closed { color: #94a3b8; }
.t-tour-card-status.status-closed .status-dot { background: #94a3b8; }


/* ================================================================
   3. INTERACTIVE COURT CATEGORY SELECTOR (.t-court-selector)
   SVG badminton court from top-down view
   ================================================================ */
.t-court-selector {
  padding: 100px 0;
  background: var(--t-white);
  position: relative;
  overflow: hidden;
}

.t-court-selector::before {
  content: 'SELECT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 900;
  color: rgba(var(--t-black-rgb), 0.015);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

.t-court-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.t-court-svg-container {
  position: relative;
  width: 400px;
  max-width: 100%;
  flex-shrink: 0;
}

.t-court-svg {
  width: 100%;
  height: auto;
}

/* Court zones */
.t-court-zone {
  fill: rgba(var(--t-red-rgb), 0.03);
  stroke: var(--t-grey-border);
  stroke-width: 1.5;
  cursor: pointer;
  transition:
    fill 0.4s var(--ease-cinematic),
    stroke 0.4s var(--ease-cinematic),
    filter 0.4s var(--ease-cinematic);
}

.t-court-zone:hover,
.t-court-zone.active {
  fill: rgba(var(--t-red-rgb), 0.12);
  stroke: var(--t-red);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 12px rgba(var(--t-red-rgb), 0.3));
  animation: court-zone-pulse 1.5s ease-in-out infinite;
}

@keyframes court-zone-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(var(--t-red-rgb), 0.2));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(var(--t-red-rgb), 0.5));
  }
}

/* Zone labels on hover */
.t-court-zone-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  fill: var(--t-grey);
  text-anchor: middle;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: fill 0.3s;
  opacity: 0.6;
}

.t-court-zone:hover ~ .t-court-zone-label,
.t-court-zone.active ~ .t-court-zone-label {
  fill: var(--t-red);
  opacity: 1;
}

/* Category info panel */
.t-court-info-panel {
  max-width: 400px;
  flex: 1;
}

.t-court-category-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--t-black);
  transition: color 0.3s;
}

.t-court-category-desc {
  font-size: 1rem;
  color: var(--t-grey);
  line-height: 1.7;
  margin-bottom: 24px;
}

.t-court-category-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.t-court-stat {
  background: var(--t-grey-light);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--t-grey-border);
  transition: all 0.3s var(--ease-cinematic);
}

.t-court-stat:hover {
  border-color: rgba(var(--t-red-rgb), 0.2);
  box-shadow: 0 4px 16px rgba(var(--t-red-rgb), 0.06);
}

.t-court-stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--t-red);
  line-height: 1;
}

.t-court-stat-label {
  font-size: 0.75rem;
  color: var(--t-grey);
  margin-top: 4px;
  font-weight: 600;
}


/* ================================================================
   4. LIVE BRACKET ARENA (.t-bracket-arena)
   Dark-themed sports broadcast style
   ================================================================ */
.t-bracket-arena {
  padding: 100px 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(var(--t-red-rgb), 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(var(--t-red-rgb), 0.03) 0%, transparent 40%),
    linear-gradient(180deg, #0a0a0f 0%, #111118 50%, #0a0a0f 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern */
.t-bracket-arena::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.t-bracket-arena .section-title-premium {
  color: var(--t-white);
}

.t-bracket-arena .section-sub-premium {
  color: rgba(255, 255, 255, 0.45);
}

.t-bracket-arena .tagline-chip {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

/* LIVE badge */
.t-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--t-red);
  color: var(--t-white);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: var(--shadow-neon);
  animation: live-badge-pulse 2s ease-in-out infinite;
}

.t-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--t-white);
  border-radius: 50%;
  animation: glow-pulse 1s ease-in-out infinite;
}

@keyframes live-badge-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(var(--t-red-rgb), 0.6), 0 0 20px rgba(var(--t-red-rgb), 0.3); }
  50% { box-shadow: 0 0 20px rgba(var(--t-red-rgb), 0.8), 0 0 40px rgba(var(--t-red-rgb), 0.4); }
}

/* Bracket container */
.t-bracket-container {
  overflow-x: auto;
  padding: 30px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--t-red) rgba(255, 255, 255, 0.05);
}

.t-bracket-container::-webkit-scrollbar {
  height: 4px;
}

.t-bracket-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.t-bracket-container::-webkit-scrollbar-thumb {
  background: var(--t-red);
  border-radius: 10px;
}

.t-bracket-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 950px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  position: relative;
}

.t-bracket-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 520px;
  width: 220px;
  position: relative;
}

.t-bracket-round-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-bottom: 16px;
}

/* Bracket match card */
.t-bracket-match {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: all 0.4s var(--ease-cinematic);
}

.t-bracket-match:hover {
  border-color: rgba(var(--t-red-rgb), 0.4);
  box-shadow: 0 0 20px rgba(var(--t-red-rgb), 0.15);
  transform: scale(1.03);
}

.t-bracket-match.match-active {
  border-color: rgba(var(--t-red-rgb), 0.6);
  box-shadow: var(--shadow-neon);
}

.t-bracket-match.match-winner-path {
  border-color: var(--t-red);
  box-shadow:
    0 0 15px rgba(var(--t-red-rgb), 0.3),
    inset 0 0 15px rgba(var(--t-red-rgb), 0.05);
}

/* Match header */
.t-bracket-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Player rows */
.t-bracket-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  transition: background 0.3s;
  cursor: pointer;
  position: relative;
}

.t-bracket-player:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.t-bracket-player:hover {
  background: rgba(var(--t-red-rgb), 0.05);
}

.t-bracket-player.player-winner {
  background: rgba(var(--t-red-rgb), 0.06);
}

.t-bracket-player-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Avatar circles */
.t-bracket-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--t-red-rgb), 0.2), rgba(var(--t-red-rgb), 0.4));
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--t-white);
  flex-shrink: 0;
  overflow: hidden;
}

.t-bracket-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t-bracket-player-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.t-bracket-player.player-winner .t-bracket-player-name {
  color: var(--t-white);
  font-weight: 800;
}

.t-bracket-seed {
  font-size: 0.55rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 3px;
}

/* LED Scoreboard display */
.t-bracket-score {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  min-width: 30px;
  text-align: center;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
  letter-spacing: 0.05em;
}

.t-bracket-player.player-winner .t-bracket-score {
  color: var(--t-red-light);
  text-shadow: 0 0 12px rgba(var(--t-red-rgb), 0.5);
  border-color: rgba(var(--t-red-rgb), 0.3);
  background: rgba(var(--t-red-rgb), 0.1);
}

/* Connecting lines SVG */
.t-bracket-connectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.t-bracket-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 4;
  animation: dash-flow 1.5s linear infinite;
}

.t-bracket-line.line-active {
  stroke: var(--t-red);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(var(--t-red-rgb), 0.4));
  stroke-dasharray: none;
}

.t-bracket-line.line-winner {
  stroke: var(--t-red);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(var(--t-red-rgb), 0.6));
  stroke-dasharray: none;
  animation: none;
}

/* Trophy / winner display */
.t-bracket-trophy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
}

.t-bracket-trophy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(var(--t-red-rgb), 0.3);
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.5s var(--ease-elastic);
  position: relative;
  overflow: hidden;
}

.t-bracket-trophy-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(var(--t-red-rgb), 0.1) 90deg,
    transparent 180deg,
    rgba(var(--t-red-rgb), 0.05) 270deg,
    transparent 360deg
  );
  animation: rotate-glow 8s linear infinite;
  pointer-events: none;
}

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

.t-bracket-trophy-card:hover {
  border-color: var(--t-red);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-intense);
}

.t-bracket-trophy-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: #fbbf24;
  animation: float 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.t-bracket-winner-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--t-white);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.t-bracket-winner-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 1;
}


/* ================================================================
   5. STATS DASHBOARD (.t-stats-section)
   Glassmorphism cards with animated counters
   ================================================================ */
.t-stats-section {
  padding: 100px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--t-red-rgb), 0.04) 0%, transparent 50%),
    var(--t-grey-light);
  position: relative;
}

.t-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Glassmorphism stat card */
.t-stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--t-red-rgb), 0.06);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-cinematic);
  animation: float 6s ease-in-out infinite;
}

.t-stat-card:nth-child(2) { animation-delay: -1.5s; }
.t-stat-card:nth-child(3) { animation-delay: -3s; }
.t-stat-card:nth-child(4) { animation-delay: -4.5s; }

.t-stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--t-red-rgb), 0.2);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(var(--t-red-rgb), 0.1);
}

/* Icon background */
.t-stat-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(var(--t-red-rgb), 0.04);
  pointer-events: none;
  transition: transform 0.5s var(--ease-cinematic);
}

.t-stat-card:hover::before {
  transform: scale(1.5);
}

/* Red accent border bottom */
.t-stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--t-red), var(--t-red-light));
  border-radius: 3px 3px 0 0;
  transition: width 0.5s var(--ease-cinematic);
}

.t-stat-card:hover::after {
  width: 80%;
}

.t-stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t-red);
  position: relative;
  z-index: 1;
}

.t-stat-icon svg {
  width: 100%;
  height: 100%;
}

.t-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--t-black);
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.t-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--t-grey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

/* Counter animation helper */
.t-stat-number[data-animated] {
  transition: color 0.3s;
}


/* ================================================================
   6. VERTICAL TIMELINE (.t-timeline-section)
   Modern timeline with animated progress line
   ================================================================ */
.t-timeline-section {
  padding: 100px 0;
  background: var(--t-white);
  position: relative;
  overflow: hidden;
}

.t-timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Central timeline line */
.t-timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--t-grey-border);
  border-radius: 3px;
  z-index: 1;
}

/* Animated red progress fill */
.t-timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 0%;
  background: linear-gradient(180deg, var(--t-red), var(--t-red-light));
  border-radius: 3px;
  z-index: 2;
  transition: height 0.3s linear;
  box-shadow: 0 0 10px rgba(var(--t-red-rgb), 0.3);
}

/* Flying shuttlecock that follows the timeline */
.t-timeline-shuttle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 24px;
  height: 24px;
  color: var(--t-red);
  z-index: 5;
  filter: drop-shadow(0 0 6px rgba(var(--t-red-rgb), 0.4));
  transition: top 0.3s linear;
  top: 0;
}

/* Timeline items */
.t-timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  z-index: 3;
}

.t-timeline-item:last-child {
  margin-bottom: 0;
}

/* Alternating layout */
.t-timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 40px);
  text-align: right;
}

.t-timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 40px);
  text-align: left;
}

/* Dot markers */
.t-timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--t-white);
  border: 3px solid var(--t-grey-border);
  z-index: 4;
  transition: all 0.4s var(--ease-cinematic);
}

.t-timeline-dot.active {
  background: var(--t-red);
  border-color: var(--t-red);
  box-shadow: 0 0 0 6px rgba(var(--t-red-rgb), 0.15);
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Timeline content cards */
.t-timeline-card {
  background: var(--t-white);
  border: 1px solid var(--t-grey-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-premium);
  position: relative;
  opacity: 0;
  transition: all 0.7s var(--ease-cinematic);
}

.t-timeline-item:nth-child(odd) .t-timeline-card {
  transform: translateX(-40px);
}

.t-timeline-item:nth-child(even) .t-timeline-card {
  transform: translateX(40px);
}

/* Animated in-view state */
.t-timeline-card.in-view {
  opacity: 1;
}

.t-timeline-item:nth-child(odd) .t-timeline-card.in-view {
  transform: translateX(0);
  animation: slide-in-left 0.7s var(--ease-cinematic) forwards;
}

.t-timeline-item:nth-child(even) .t-timeline-card.in-view {
  transform: translateX(0);
  animation: slide-in-right 0.7s var(--ease-cinematic) forwards;
}

.t-timeline-card:hover {
  border-color: rgba(var(--t-red-rgb), 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px) !important;
}

.t-timeline-card-date {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t-red);
  margin-bottom: 8px;
}

.t-timeline-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--t-black);
  margin-bottom: 8px;
  line-height: 1.2;
}

.t-timeline-card-desc {
  font-size: 0.88rem;
  color: var(--t-grey);
  line-height: 1.6;
}


/* ================================================================
   7. REGISTRATION MODAL (.t-reg-modal)
   Premium dark-themed glassmorphism modal
   ================================================================ */
.t-reg-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-cinematic);
  padding: 20px;
}

.t-reg-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal card */
.t-reg-modal {
  background: rgba(20, 20, 28, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s var(--ease-elastic);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.t-reg-modal-overlay.active .t-reg-modal {
  transform: translateY(0) scale(1);
}

/* Custom scrollbar for modal */
.t-reg-modal::-webkit-scrollbar {
  width: 4px;
}

.t-reg-modal::-webkit-scrollbar-thumb {
  background: rgba(var(--t-red-rgb), 0.4);
  border-radius: 10px;
}

/* Modal close */
.t-reg-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-cinematic);
  font-size: 1.2rem;
}

.t-reg-modal-close:hover {
  background: rgba(var(--t-red-rgb), 0.2);
  border-color: var(--t-red);
  color: var(--t-red);
  transform: rotate(90deg);
}

.t-reg-modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--t-white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.t-reg-modal-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Step Progress Bar */
.t-step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}

.t-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s var(--ease-cinematic);
  position: relative;
}

.t-step-dot.active {
  background: var(--t-red);
  border-color: var(--t-red);
  box-shadow: 0 0 12px rgba(var(--t-red-rgb), 0.5);
}

.t-step-dot.completed {
  background: var(--t-red);
  border-color: var(--t-red);
}

.t-step-line {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.5s var(--ease-cinematic);
}

.t-step-line.completed {
  background: var(--t-red);
  box-shadow: 0 0 6px rgba(var(--t-red-rgb), 0.3);
}

/* Form fields with floating labels */
.t-form-group {
  position: relative;
  margin-bottom: 24px;
}

.t-form-input,
.t-form-select {
  width: 100%;
  padding: 16px 16px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--t-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-cinematic);
  outline: none;
  -webkit-appearance: none;
}

.t-form-input:focus,
.t-form-select:focus {
  border-color: var(--t-red);
  box-shadow: 0 0 0 3px rgba(var(--t-red-rgb), 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.t-form-label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transition: all 0.3s var(--ease-cinematic);
  font-weight: 500;
}

.t-form-input:focus ~ .t-form-label,
.t-form-input:not(:placeholder-shown) ~ .t-form-label,
.t-form-select:focus ~ .t-form-label,
.t-form-select:valid ~ .t-form-label {
  top: 8px;
  transform: translateY(0);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-red);
}

.t-form-select option {
  background: var(--t-black);
  color: var(--t-white);
}

/* SMASH Submit button */
.t-btn-smash {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--t-red), var(--t-red-dark));
  color: var(--t-white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-cinematic);
  box-shadow: 0 4px 20px rgba(var(--t-red-rgb), 0.3);
}

.t-btn-smash:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--t-red-rgb), 0.5);
}

.t-btn-smash:active {
  transform: translateY(0) scale(0.98);
}

/* Shimmer on button */
.t-btn-smash::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s var(--ease-cinematic);
}

.t-btn-smash:hover::before {
  left: 100%;
}

/* Screen flash on submit */
.t-btn-smash.flash {
  animation: screen-flash 0.5s ease-out;
}

/* Success state */
.t-reg-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}

.t-reg-success.active {
  display: block;
  animation: success-pop 0.6s var(--ease-elastic);
}

@keyframes success-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.t-reg-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(var(--t-red-rgb), 0.1);
  border: 2px solid var(--t-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t-red);
}

.t-reg-success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--t-white);
  margin-bottom: 8px;
}

.t-reg-success-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* Confetti particles */
.t-confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confetti-fall 2s ease-out forwards;
  pointer-events: none;
  z-index: 100;
}


/* ================================================================
   8. KEYFRAME ANIMATIONS
   ================================================================ */

/* Gentle up-down float */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Red glow pulsing */
@keyframes glow-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 4px rgba(var(--t-red-rgb), 0.4);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 16px rgba(var(--t-red-rgb), 0.8);
  }
}

/* SVG dash-offset animation for bracket lines */
@keyframes dash-flow {
  0% {
    stroke-dashoffset: 20;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Timeline cards slide in from left */
@keyframes slide-in-left {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Timeline cards slide in from right */
@keyframes slide-in-right {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Metallic shimmer across cards */
@keyframes shimmer {
  0% {
    left: -100%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    left: 200%;
    opacity: 0;
  }
}

/* White flash on submit */
@keyframes screen-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  20% {
    box-shadow: 0 0 60px 30px rgba(255, 255, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Confetti falling */
@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(400px) rotate(720deg) scale(0.3);
  }
}

/* Blinking cursor for countdown labels */
@keyframes typing-cursor {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Diagonal stripe moving across card on hover */
@keyframes diagonal-stripe {
  0% {
    top: -100%;
    left: -100%;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    top: 100%;
    left: 100%;
    opacity: 0;
  }
}

/* Reveal from below */
@keyframes reveal-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale in */
@keyframes scale-in {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Rotate entrance */
@keyframes rotate-in {
  0% {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* LED number flicker */
@keyframes led-flicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.8; }
  97% { opacity: 1; }
  98% { opacity: 0.6; }
  99% { opacity: 1; }
}

/* Ping pulse for dots */
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  75%, 100% {
    transform: scale(2.5);
    opacity: 0;
  }
}


/* ================================================================
   9. RESPONSIVE BREAKPOINTS
   ================================================================ */

/* ── TABLET (768px) ── */
@media (max-width: 768px) {

  #page-tournaments {
    padding-top: 60px;
  }

  /* Hero */
  .t-hero {
    min-height: 90vh;
    padding: 100px 16px 0;
  }

  .t-hero-title {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
  }

  .t-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 36px;
  }

  .t-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .t-hero-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Countdown strip */
  .t-countdown-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .t-countdown-label {
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: 4px;
  }

  .t-countdown-blocks {
    gap: 8px;
  }

  .t-countdown-block {
    min-width: 50px;
  }

  /* Carousel */
  .t-carousel-section {
    padding: 80px 0 60px;
  }

  .t-carousel-track {
    padding: 16px 20px 30px;
    scroll-padding-left: 20px;
  }

  .t-tour-card {
    flex: 0 0 310px;
    height: 460px;
  }

  .t-carousel-nav {
    display: none;
  }

  /* Court selector */
  .t-court-selector {
    padding: 80px 0;
  }

  .t-court-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .t-court-svg-container {
    width: 300px;
  }

  .t-court-info-panel {
    text-align: center;
    max-width: 100%;
  }

  .t-court-category-stats {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Bracket arena */
  .t-bracket-arena {
    padding: 80px 0;
  }

  .t-bracket-container {
    padding: 16px;
  }

  /* Stats */
  .t-stats-section {
    padding: 80px 0;
  }

  .t-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Timeline */
  .t-timeline-section {
    padding: 80px 0;
  }

  .t-timeline-line,
  .t-timeline-progress {
    left: 20px;
    transform: none;
  }

  .t-timeline-shuttle {
    left: 20px;
    transform: translateX(-50%) rotate(180deg);
  }

  .t-timeline-dot {
    left: 20px;
  }

  .t-timeline-item:nth-child(odd),
  .t-timeline-item:nth-child(even) {
    flex-direction: row;
    padding-right: 0;
    padding-left: 52px;
    text-align: left;
  }

  .t-timeline-item:nth-child(odd) .t-timeline-card,
  .t-timeline-item:nth-child(even) .t-timeline-card {
    transform: translateX(30px);
  }

  .t-timeline-item:nth-child(odd) .t-timeline-card.in-view,
  .t-timeline-item:nth-child(even) .t-timeline-card.in-view {
    animation: slide-in-right 0.7s var(--ease-cinematic) forwards;
  }

  /* Modal */
  .t-reg-modal {
    padding: 36px 24px;
    max-width: 100%;
    border-radius: 20px;
  }
}


/* ── MOBILE (480px) ── */
@media (max-width: 480px) {

  #page-tournaments .container {
    width: 92%;
  }

  #page-tournaments .section-title-premium {
    font-size: 1.8rem;
  }

  #page-tournaments .section-sub-premium {
    font-size: 0.9rem;
    margin-bottom: 40px;
  }

  /* Hero */
  .t-hero {
    min-height: 100svh;
    padding: 80px 12px 0;
  }

  .t-hero-title {
    font-size: 2rem;
    letter-spacing: -0.03em;
  }

  .t-hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }

  .t-hero-btn {
    font-size: 0.72rem;
    padding: 14px 28px;
  }

  /* Countdown */
  .t-countdown-strip {
    padding: 14px 0;
  }

  .t-countdown-num {
    font-size: 1.3rem;
  }

  .t-countdown-block {
    min-width: 44px;
  }

  .t-countdown-sep {
    font-size: 1.1rem;
  }

  /* Carousel */
  .t-tour-card {
    flex: 0 0 280px;
    height: 420px;
    border-radius: 16px;
  }

  .t-tour-card-title {
    font-size: 1.1rem;
  }

  .t-tour-card-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .t-tour-card-info {
    padding: 20px 16px;
  }

  /* Court selector */
  .t-court-svg-container {
    width: 260px;
  }

  .t-court-category-title {
    font-size: 1.5rem;
  }

  .t-court-category-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Stats */
  .t-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .t-stat-card {
    padding: 24px 16px;
    border-radius: 14px;
  }

  .t-stat-number {
    font-size: 1.8rem;
  }

  .t-stat-label {
    font-size: 0.68rem;
  }

  /* Timeline */
  .t-timeline-item:nth-child(odd),
  .t-timeline-item:nth-child(even) {
    padding-left: 44px;
  }

  .t-timeline-card {
    padding: 18px;
    border-radius: 12px;
  }

  .t-timeline-card-title {
    font-size: 0.95rem;
  }

  .t-timeline-card-desc {
    font-size: 0.82rem;
  }

  /* Modal */
  .t-reg-modal {
    padding: 28px 18px;
    border-radius: 16px;
  }

  .t-reg-modal-title {
    font-size: 1.4rem;
  }

  .t-form-input,
  .t-form-select {
    padding: 14px 14px 6px;
    font-size: 0.88rem;
  }

  .t-btn-smash {
    padding: 15px;
    font-size: 0.78rem;
  }
}


/* ================================================================
   10. FILTER SECTION (tournament category filter)
   ================================================================ */
.t-filter-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 10;
}

.t-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--t-white);
  border: 1px solid var(--t-grey-border);
  padding: 5px;
  border-radius: 100px;
  box-shadow: var(--shadow-premium);
  gap: 2px;
}

.t-filter-btn {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--t-grey);
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease-cinematic);
  position: relative;
  white-space: nowrap;
}

.t-filter-btn:hover {
  color: var(--t-red);
  background: rgba(var(--t-red-rgb), 0.04);
}

.t-filter-btn.active {
  color: var(--t-white);
  background: var(--t-red);
  box-shadow: 0 2px 10px rgba(var(--t-red-rgb), 0.25);
}


/* ================================================================
   11. TOURNAMENTS GRID (fallback standard grid)
   ================================================================ */
.t-tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

@media (max-width: 480px) {
  .t-tournaments-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   12. ADDITIONAL PREMIUM UTILITIES
   ================================================================ */

/* Smooth reveal animations on scroll */
.t-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-cinematic), transform 0.8s var(--ease-cinematic);
}

.t-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.t-reveal-delay-1 { transition-delay: 0.1s; }
.t-reveal-delay-2 { transition-delay: 0.2s; }
.t-reveal-delay-3 { transition-delay: 0.3s; }
.t-reveal-delay-4 { transition-delay: 0.4s; }
.t-reveal-delay-5 { transition-delay: 0.5s; }

/* Red divider */
.t-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--t-red), var(--t-red-light));
  border-radius: 3px;
  margin: 0 auto 24px;
}

/* Glow text */
.t-text-glow {
  text-shadow: 0 0 20px rgba(var(--t-red-rgb), 0.3);
}

/* No-scroll body when modal open */
body.t-modal-open {
  overflow: hidden;
}

/* Selection color */
#page-tournaments ::selection {
  background: rgba(var(--t-red-rgb), 0.2);
  color: var(--t-black);
}

/* Focus visible for accessibility */
#page-tournaments *:focus-visible {
  outline: 2px solid var(--t-red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth scroll for entire page */
#page-tournaments {
  scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
.t-hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.t-hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Gradient text utility */
.t-gradient-text {
  background: linear-gradient(135deg, var(--t-red), var(--t-red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Skeleton loading */
.t-skeleton {
  background: linear-gradient(
    90deg,
    var(--t-grey-light) 25%,
    rgba(var(--t-red-rgb), 0.04) 50%,
    var(--t-grey-light) 75%
  );
  background-size: 200% 100%;
  animation: shimmer-bar 1.5s ease infinite;
  border-radius: 8px;
}

/* Tooltip */
.t-tooltip {
  position: relative;
}

.t-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--t-black);
  color: var(--t-white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s var(--ease-cinematic);
  z-index: 100;
}

.t-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* ================================================================
   13. PRINT STYLES
   ================================================================ */
@media print {
  #page-tournaments .scroll-progress-bar,
  .t-hero-canvas,
  .t-hero-overlay,
  .t-carousel-nav,
  .t-countdown-strip,
  .t-reg-modal-overlay,
  .t-confetti-particle {
    display: none !important;
  }

  .t-bracket-arena {
    background: white !important;
    color: black !important;
  }

  .t-bracket-arena .section-title-premium,
  .t-bracket-winner-name,
  .t-bracket-player-name {
    color: black !important;
  }
}


/* ================================================================
   14. REDUCED MOTION (accessibility)
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .t-stat-card,
  .t-bracket-trophy-icon,
  .t-timeline-shuttle {
    animation: none !important;
  }

  .t-tour-card:hover {
    transform: none;
  }
}
