/* assets/css/style.css -------------------------------------------------------
   Design System & Component Library for ChessKidoo
   Refined & Consolidated Version
   --------------------------------------------------------------- */

:root {
  --ink: #1A1209;
  --cream: #FDF6EC;
  --cream-dark: #F5ECD8;
  --amber: #E8A020;
  --amber-light: #F5C842;
  --amber-pale: #FCEBD3;
  --amber-ultra: #FFFDF9;
  --bg-dark: #0D1B2A;
  --bg-primary: #0D1B2A;
  --bg-secondary: #162235;
  --green: #1A3D2B;
  --green-light: #3D6B52;
  --green-pale: #E8EFEA;
  --border: #E8D5B0;
  --border-light: #F2E3C9;
  --border-strong: #E8A020;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-header: 'Poppins', sans-serif;
  
  /* Board Specific */
  --board-light: #F0D9B5;
  --board-dark: #B58863;
  --board-border: #7A5530;
  
  /* Arena Colors */
  --arena-gold: #F5C842;
  --arena-gold-dark: #D97706;
  --arena-purple: #8B5CF6;
  --arena-blue: #3B82F6;
  --arena-green: #10B981;
  --arena-teal: #0D9488;

  /* Utility aliases used across components */
  --muted: #8a9bb0;
  --gold2: #F5C842;
  --navy: #0D1B2A;
}

/* ─── Reset & Base ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-margin-top: 80px; }
body { 
  font-family: var(--font-body); 
  overflow-x: hidden; 
  background: var(--cream); 
  color: var(--ink); 
  line-height: 1.6; 
  width: 100%;
  max-width: 100%;
}

/* ─── Layout ─── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.section-padding { padding: 100px 0; }

/* ─── Scroll Progress ─── */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 4px;
  background: var(--amber); z-index: 99998; width: 0%;
  transition: width 0.1s linear;
}

/* ─── Preloader ─── */
#preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #1a1512;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader-logo {
  width: 90px; height: 90px; object-fit: contain; margin-bottom: 20px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}
.preloader-spinner {
  width: 40px; height: 40px; margin: 16px 0;
  border: 3px solid rgba(217,119,6,0.2);
  border-top-color: #D97706; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.preloader-text {
  font-size: 0.75rem; letter-spacing: 0.4em;
  color: rgba(255,255,255,0.4); font-weight: 700;
  text-transform: uppercase;
}
@keyframes preloaderPulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Header ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.site-header.header-hidden {
  display: none !important;
}
.site-header.scrolled {
  background: rgba(13, 27, 42, 0.92) !important;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 40px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  transition: padding 0.4s ease;
}
.site-header.scrolled .header-inner { padding: 12px 48px; }
/* Logo Styling (Pure CSS vector-scaled Premium Squircles) */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #FFFFFF; }
.logo-icon-box {
  width: 40px; height: 40px;
  background: #E8A020; /* Brand gold */
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(232, 160, 32, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover .logo-icon-box { transform: rotate(-8deg) scale(1.08); }
.logo-icon-symbol {
  font-size: 24px;
  color: #162235; /* Deep brand navy blue/royal crown piece color */
  line-height: 1;
}
.logo-text { font-family: var(--font-display) !important; font-weight: 700; font-size: 1.5rem; color: #FFFFFF; letter-spacing: -0.01em; }
.logo-text span { color: var(--amber) !important; }

/* Navigation Links */
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  padding: 6px 0; text-decoration: none; color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-header);
  font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  background: none; border: none; cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 100%; height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-link:hover { color: var(--amber-light); background: transparent; }
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-link.active { color: var(--amber-light); }
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-spacer { flex: 1; }

.nav-cta {
  padding: 10px 24px; font-size: 0.95rem; margin-left: 8px;
  border-radius: 99px;
  background: var(--amber);
  color: var(--bg-dark) !important;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(232, 160, 32, 0.25);
}
.nav-cta:hover { background: var(--amber-light) !important; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232, 160, 32, 0.4); }
.nav-cta::after { display: none; }

.nav-login {
  padding: 9px 22px;
  font-size: 0.88rem;
  color: #FFFFFF;
  border: 2px solid #F5C842 !important;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.nav-login:hover {
  border-color: #F5C842 !important;
  box-shadow: 0 0 15px rgba(245, 200, 66, 0.4);
}
.nav-login::after { display: none; }

/* ─── Mobile Menu Button (Hamburger) ─── */
.mobile-menu-btn {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
}
.hamburger-line {
  display: block; width: 22px; height: 2px;
  background: #FFFFFF; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.mobile-menu-btn.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 992px) {
  .nav-spacer { display: none; }
  .nav-phone { display: none; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(13, 27, 42, 0.98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    flex-direction: column; padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    animation: navSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; text-align: left; padding: 14px 16px; font-size: 0.95rem; color: #FFFFFF !important; }
  .nav-link::after { display: none; }
  .nav-cta, .nav-login { margin-left: 0; margin-top: 8px; width: 100%; }
  .nav-phone { display: flex; width: 38px; color: #FFFFFF; }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 16px 36px;
  border-radius: var(--radius-pill); font-weight: 700;
  font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: all 0.25s ease;
  border: none; font-family: inherit;
}
.btn-primary {
  background: var(--amber);
  color: var(--bg-dark);
  box-shadow: 0 8px 30px rgba(232,160,32,0.4);
}
.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(232,160,32,0.5);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  color: var(--amber-light);
  border-color: var(--amber-light);
}
.btn-ghost::after {
  content: '→';
  transition: transform 0.2s;
}
.btn-ghost:hover::after { transform: translateX(4px); }

/* Hero Specific Custom CTAs (Matching Target Image 1) */
.hero-btn-demo {
  background: #E8A020 !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 35px rgba(232, 160, 32, 0.6) !important;
  font-weight: 700;
  border: none;
  padding: 18px 44px;
  font-size: 1.1rem;
}
.hero-btn-demo:hover {
  background: #F5C842 !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 45px rgba(232, 160, 32, 0.7) !important;
}
.hero-btn-wa {
  background: #FFFFFF !important;
  border: 2px solid #0D1B2A !important;
  color: #0D1B2A !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
  padding: 18px 44px;
  font-size: 1.1rem;
}
.hero-btn-wa:hover {
  background: #FFFDF9 !important;
  border-color: #E8A020 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(122, 85, 48, 0.15) !important;
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
  padding-top: 100px;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 70% 50%, rgba(232,160,32,0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(61,107,82,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero-bg-pattern::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content-wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 10px 56px 60px; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 46fr 54fr; gap: 80px; align-items: center; }
.hero-content { padding-left: 57px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.3);
  color: var(--amber-light);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 99px;
  margin-bottom: 32px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.06;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--amber);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { padding-left: 0; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 40px !important; perspective: none; }
  .hero-board-frame { margin: 0 auto !important; }
  .board-panel { margin: 0 auto; max-width: 560px; }
}

/* --- Hero Visual / Chess Board (Premium Match Interface) --- */
.hero-visual { position: relative; perspective: 1500px; margin-top: -310px; margin-left: -72px; }
.hero-board-frame {
  background: #1a1a1a;
  border-radius: 24px;
  border: 8px solid #3d2b1f;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
  overflow: hidden;
  transform: rotateX(20deg) rotateY(-8deg) rotateZ(1deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 620px;
  margin-left: auto;
}
.hero-board-frame:hover { transform: rotateX(10deg) rotateY(0deg) rotateZ(0deg); }

.board-header {
  background: #262626;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}
.player-info { display: flex; align-items: center; gap: 12px; }
.player-avatar { 
  width: 32px; height: 32px; background: var(--amber); 
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.9rem;
}
.player-name { color: #fff; font-weight: 700; font-size: 0.95rem; }
.player-meta { color: #888; font-size: 0.75rem; }
.live-indicator { 
  background: #dc2626; color: white; font-size: 0.6rem; 
  padding: 2px 8px; border-radius: 10px; font-weight: 800;
  animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.board-main-area { display: flex; background: #3d2b1f; padding: 12px; gap: 12px; }
.hero-board-wrap { flex: 1; min-width: 300px; }
.chessboard-container { 
  background: #2C1810; border-radius: 4px; box-shadow: inset 0 0 10px rgba(0,0,0,0.5); 
  transform: none; 
}

.move-list-sidebar {
  width: 140px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 10px;
}
.move-header { color: var(--amber); font-size: 0.65rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 8px; }
.moves-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.move-row { 
  display: grid; grid-template-columns: 20px 1fr 1fr; 
  font-size: 0.75rem; color: #aaa; padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.move-row.active { color: #fff; background: rgba(217, 119, 6, 0.2); border-radius: 4px; }
.move-row span:first-child { opacity: 0.5; }

.board-controls {
  background: #262626;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ctrl-btn { 
  background: none; border: none; color: #fff; opacity: 0.6; 
  font-size: 1.1rem; cursor: pointer; transition: 0.2s;
}
.ctrl-btn:hover { opacity: 1; color: var(--amber); }
.play-btn { font-size: 1.4rem; color: var(--amber); opacity: 1; }
.game-status { color: #888; font-size: 0.75rem; font-weight: 600; }

.floating-badge { position: absolute; background: white; padding: 8px 16px; border-radius: 12px; box-shadow: var(--shadow-md); font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; gap: 6px; animation: float 3s ease-in-out infinite; z-index: 20; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floating-badge:nth-of-type(1) { top: -20px; right: -20px; }
.floating-badge:nth-of-type(2) { top: 40%; left: -40px; animation-delay: 1.5s; }
.floating-badge:nth-of-type(3) { bottom: 20px; right: -20px; animation-delay: 3s; }


/* ─── Trust Bar ─── */
.trust-bar { background: var(--ink); padding: 24px 0; overflow: hidden; }
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; padding: 0 32px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px; color: white;
  font-weight: 600; font-size: 0.85rem; opacity: 0.8;
}
.trust-divider { width: 4px; height: 4px; background: var(--amber-light); border-radius: 50%; opacity: 0.3; }

/* ─── Sections ─── */
.section-head { text-align: center; max-width: 700px; margin: 0 auto 64px; padding: 0 16px; }
.eyebrow { display: inline-block; font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--amber); margin-bottom: 16px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.2; margin-bottom: 16px; color: var(--ink); }
.lead { font-family: var(--font-body); font-size: 1.1rem; opacity: 0.7; }

/* Features Grid */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feat-card {
  background: white; padding: 32px; border-radius: 24px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  transition: all 0.3s ease; height: 100%;
}
.feat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--amber); }
.feat-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--amber-pale); display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin-bottom: 20px;
}

/* Level Cards CSS Cleaned */

/* Coach Cards */
.coach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.coach-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07); transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}
.coach-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.coach-img-wrap {
  width: 100%; height: 280px; position: relative; overflow: hidden;
}
.coach-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.coach-info { padding: 20px; text-align: center; }
.coach-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.coach-bio { font-size: 0.85rem; opacity: 0.6; line-height: 1.5; }

/* ─── Pricing ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.price-card {
  background: #fff; border-radius: 24px; padding: 48px 32px;
  border: 1px solid var(--border-light); display: flex; flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
}
.price-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-lg); }
.price-card.dark-card { background: #1a1a1a; color: #fff; border-color: #333; }
.price-card.gold-card {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid var(--amber-light); color: #fff;
  transform: scale(1.05); z-index: 2;
}
@media (max-width: 992px) { .price-card.gold-card { transform: none; } }

.price-title { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 12px; }
.price-amount { font-size: 3.5rem; font-weight: 900; margin-bottom: 32px; font-family: var(--font-display); display: flex; align-items: baseline; gap: 4px; }
.price-amount span { font-size: 1.25rem; opacity: 0.5; font-weight: 500; }
.price-features { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.price-features li { display: flex; gap: 12px; margin-bottom: 16px; font-family: var(--font-display); font-size: 0.95rem; opacity: 0.8; }
.price-features .check { color: var(--amber-light); font-weight: bold; }

/* ─── Portal / Dashboard ─── */
.page { display: none; }
.page.active { display: block; }

.dashboard-header { background: var(--ink); color: #fff; padding: 60px 0; }
.admin-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e5e7eb; margin-bottom: 30px; overflow-x: auto; }
.admin-tab {
  padding: 14px 24px; border: none; background: none; cursor: pointer;
  font-weight: 700; color: #666; border-bottom: 3px solid transparent;
  transition: all 0.2s; white-space: nowrap;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--amber); border-bottom-color: var(--amber); }

.table-wrapper { background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; overflow-x: auto; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { background: #f9fafb; padding: 16px 20px; text-align: left; font-weight: 700; border-bottom: 2px solid #e5e7eb; }
.table td { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }

.status-pill {
  padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
}
.status-pill.paid { background: #dcfce7; color: #166534; }
.status-pill.pending { background: #fee2e2; color: #991b1b; }
.status-pill.new { background: #f3f4f6; color: #6b7280; }

/* ─── Login ─── */
.login-bg-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #fdfcf9; position: relative; overflow: hidden; padding: 40px 20px;
}
.login-card {
  background: #fff; border-radius: 24px; padding: 48px; width: 100%; max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1); z-index: 10;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Modals ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 10000;
  padding: 20px; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-card {
  background: white; border-radius: 24px; width: 100%; max-width: 500px;
  padding: 40px; transform: scale(0.9); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-card { transform: scale(1); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 12px; border: 1.5px solid #e2e8f0;
  font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--amber); }

/* ─── Floating UI & Bot ─── */
.floating-ui { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 1000; }
.whatsapp-float, .bot-float {
  width: 60px; height: 60px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1); transition: transform 0.3s ease;
  cursor: pointer; text-decoration: none;
}
.whatsapp-float:hover, .bot-float:hover { transform: translateY(-5px) scale(1.1); }
.whatsapp-float img { width: 34px; }
.bot-float span { font-size: 28px; }

.bot-window {
  position: fixed; bottom: 110px; right: 24px;
  width: 340px; height: 480px; background: #fff;
  border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: none; flex-direction: column; z-index: 9998;
  overflow: hidden; border: 1px solid #e5e7eb;
  animation: slideUp 0.4s ease;
}
.bot-header { background: #1a1512; color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.bot-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: #f9fafb; }
.bot-msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 0.85rem; line-height: 1.5; }
.bot-msg--bot { background: #fff; border: 1px solid #e5e7eb; align-self: flex-start; border-bottom-left-radius: 4px; }
.bot-msg--user { background: var(--amber); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bot-input { padding: 16px; border-top: 1px solid #eee; display: flex; gap: 10px; }
.bot-input input { flex: 1; border: 1px solid #ddd; border-radius: 20px; padding: 10px 16px; outline: none; font-size: 0.9rem; }
.bot-input button { background: var(--amber); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }

/* ─── Animations ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.loading-wrap {
  text-align: center; padding: 80px; font-size: 1.2rem;
  opacity: 0.6; font-family: var(--font-display);
  animation: preloaderPulse 1.5s ease infinite;
}

.footer-link-btn {
  background: none;
  border: none;
  color: #fff;
  text-decoration: none;
  text-align: left;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.3s;
}
.stats-row {
  display:flex;gap:0;
  animation:fadeSlideUp .8s .45s ease both;
  margin-top: 40px;
}
.stat { display:flex;flex-direction:column;padding:0 28px; }
.stat:first-child { padding-left:0; }
.stat-val {
  font-family:var(--font-display);font-size:30px;font-weight:700;
  color:var(--amber);line-height:1;
}
.stat-label {
  font-family: var(--font-display);
  font-size:11px;color:var(--muted);font-weight:500;
  letter-spacing:.05em;text-transform:uppercase;margin-top:5px;
}
.stat-div { width:1px;background:rgba(45,31,6,.12);margin:6px 0; }

/* ── BOARD PANEL (extracted bit) ── */
.board-panel {
  background: #111111;
  border-radius: 32px;
  padding: 20px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 600px;
  animation: fadeSlideUp .9s .2s ease both;
  margin-left: auto;
}
.board-panel:hover {
  box-shadow:
    0 48px 96px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* PLAYER HEADER */
.players-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.player-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}
.player-chip.right {
  flex-direction: row-reverse;
  text-align: right;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #222;
  flex-shrink: 0;
}
.av-white {
  background: #f0f0f0;
  color: #111;
  border-color: rgba(255, 255, 255, 0.4);
}
.av-black {
  background: #1a1a1a;
  color: #ccc;
  border-color: rgba(255, 255, 255, 0.15);
}
.pname {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.2px;
}
.pelo {
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 500;
}
.match-center {
  text-align: center;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #c0280a;
  color: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.live-pill-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulseLive 1.4s infinite;
}
@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.match-loc {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 500;
}

/* BOARD + MOVES LAYOUT (side by side) */
.board-section {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

/* coordinates */
.coords-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 320px;
  width: 20px;
  margin-right: 4px;
}
.coords-row {
  display: flex;
  justify-content: space-around;
  width: 320px;
  margin-top: 6px;
}
.coord {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  font-family: 'Inter', monospace;
}

/* CHESS BOARD */
#board {
  display: grid;
  grid-template-columns: repeat(8, 40px);
  grid-template-rows: repeat(8, 40px);
  border: 3px solid #2d5c28;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 124, 64, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  background: #1a3018;
  width: 320px;
  height: 320px;
}
.sq {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.05s;
}
.sq.light {
  background: #ffffff;
}
.sq.dark {
  background: #4a7c40;
}
.sq.hl-from {
  background: rgba(255, 220, 100, 0.7) !important;
}
.sq.hl-to {
  background: rgba(255, 140, 0, 0.75) !important;
}
.piece {
  font-size: 32px;
  line-height: 1;
  user-select: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
  transition: transform 0.1s;
}

/* MOVE LIST PANEL (side panel) */
.moves-panel {
  flex: 1;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 14px 12px;
  height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.moves-panel::-webkit-scrollbar {
  width: 4px;
}
.moves-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.panel-head {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.move-row {
  display: grid;
  grid-template-columns: 24px 1fr 1fr;
  gap: 4px;
  align-items: center;
  margin-bottom: 4px;
}
.move-n {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}
.move-san {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Courier New', monospace;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.1s;
}
.move-san:hover {
  background: rgba(255, 255, 255, 0.1);
}
.move-san.active {
  background: #E8860A;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 6px rgba(232, 134, 10, 0.4);
}

/* CONTROLS */
.board-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.ctrl-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cb {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.cb:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(0.96);
}
.cb-pause {
  width: 95px;
  font-size: 12px;
  font-weight: 700;
  background: #E8860A;
  color: white;
  border: none;
  letter-spacing: 0.5px;
}
.cb-pause:hover {
  background: #b86800;
  transform: translateY(-1px);
}
.speed-group {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.speed-range {
  width: 90px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.speed-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #E8860A;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px black;
}
.speed-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.speed-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #E8860A;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px black;
}
.speed-range::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* REPLACED BUTTON: "Check Ur Level" – same style as original AI button */
.check-level-btn {
  background: linear-gradient(110deg, #10B981, #059669);
  color: white;
  border: none;
  border-radius: 28px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.check-level-btn:hover {
  transform: translateY(-2px);
  background: #059669;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}
.check-level-btn:active {
  transform: translateY(1px);
}

@media (max-width: 680px) {
  .board-section {
    flex-direction: column;
    align-items: center;
  }
  .moves-panel {
    width: 100%;
    height: 200px;
  }
  #board {
    grid-template-columns: repeat(8, 36px);
    grid-template-rows: repeat(8, 36px);
    width: 288px;
    height: 288px;
  }
  .sq {
    width: 36px;
    height: 36px;
  }
  .piece {
    font-size: 26px;
  }
  .coords-col {
    height: 288px;
  }
  .coords-row {
    width: 288px;
  }
}

.ai-btn { font-weight:600;cursor:pointer;
  font-family:var(--font-body);display:flex;align-items:center;gap:6px;
  transition:opacity .2s,transform .15s;
}
.ai-btn:hover { opacity:.88;transform:translateY(-1px); }

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.75)} }

/* ══════════════════════════════════════════════════════════════════════════
   3D ANIMATION ENGINE — ChessKidoo Premium Experience Layer
   Pure CSS 3D transforms, perspective effects, parallax-like depth,
   and micro-interaction animations. No external libraries required.
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── 3D Perspective Container ─── */
.hero, .section-padding, .login-bg-section {
  perspective: 1200px;
}

/* ─── 3D Floating Chess Pieces (Hero Background Orbs) ─── */
.hero::after {
  content: '♘';
  position: absolute;
  font-size: 18rem;
  color: rgba(217, 119, 6, 0.03);
  top: 10%;
  right: -5%;
  z-index: 0;
  animation: heroChessFloat 12s ease-in-out infinite;
  transform-style: preserve-3d;
  pointer-events: none;
}
.hero::before {
  content: '♙';
  position: absolute;
  font-size: 12rem;
  color: rgba(217, 119, 6, 0.025);
  bottom: 5%;
  left: 2%;
  z-index: 0;
  animation: heroChessFloat2 15s ease-in-out infinite;
  transform-style: preserve-3d;
  pointer-events: none;
}

@keyframes heroChessFloat {
  0%   { transform: rotateY(0deg) rotateX(0deg) translateY(0px) scale(1); }
  25%  { transform: rotateY(15deg) rotateX(-5deg) translateY(-30px) scale(1.02); }
  50%  { transform: rotateY(0deg) rotateX(5deg) translateY(-15px) scale(1); }
  75%  { transform: rotateY(-15deg) rotateX(-3deg) translateY(-40px) scale(1.01); }
  100% { transform: rotateY(0deg) rotateX(0deg) translateY(0px) scale(1); }
}
@keyframes heroChessFloat2 {
  0%   { transform: rotateZ(0deg) rotateY(0deg) translateY(0px); }
  33%  { transform: rotateZ(5deg) rotateY(20deg) translateY(-20px); }
  66%  { transform: rotateZ(-3deg) rotateY(-15deg) translateY(-35px); }
  100% { transform: rotateZ(0deg) rotateY(0deg) translateY(0px); }
}

/* ─── 3D Hero Board Enhancement ─── */
.board-panel {
  transform-style: preserve-3d;
  animation: boardEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}
@keyframes boardEntrance {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateX(25deg) rotateY(-15deg) translateZ(-80px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) translateZ(0px) scale(1);
  }
}

/* ─── 3D Feature Cards with Tilt ─── */
.feat-card {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}
.feat-card:hover {
  transform: perspective(800px) rotateX(-3deg) rotateY(5deg) translateY(-12px) translateZ(20px);
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.15), 
    0 0 0 1px rgba(217, 119, 6, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(217,119,6,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.feat-card:hover::before { opacity: 1; }

/* 3D Icon Float on Feature Cards */
.feat-icon-wrap {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}
.feat-card:hover .feat-icon-wrap {
  transform: translateZ(30px) rotateY(10deg) scale(1.15);
  box-shadow: 0 10px 24px rgba(217,119,6,0.2);
}

/* ─── 3D Coach Image Cards ─── */
.coach-grid > div, .coach-grid > .reveal {
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
  position: relative;
}
.coach-grid > div:hover, .coach-grid > .reveal:hover {
  transform: perspective(900px) rotateY(-6deg) rotateX(3deg) translateY(-10px) translateZ(15px) !important;
  box-shadow: 
    20px 20px 60px rgba(0,0,0,0.2),
    -5px -5px 20px rgba(255,255,255,0.05),
    0 0 0 1px rgba(217,119,6,0.1) !important;
}

/* 3D Image Parallax on Coach Cards */
.coach-grid > div:hover img, .coach-grid > .reveal:hover img {
  transform: scale(1.08) translateZ(10px);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ─── Achievements Section ─── */
#achievements {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

#achievements .section-head {
  text-align: center;
  margin: 0 auto 64px;
}

#achievements .section-head h2 {
  color: #ffffff;
}

#achievements .eyebrow {
  color: var(--arena-gold);
}

#achievements .lead {
  color: rgba(255, 255, 255, 0.7);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.achievement-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.achievement-card:hover {
  transform: translateY(-10px) translateZ(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(245, 200, 66, 0.3);
}

.achievement-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.achievement-card:nth-child(1) .achievement-icon {
  background: linear-gradient(135deg, var(--arena-gold), var(--arena-gold-dark));
}

.achievement-card:nth-child(2) .achievement-icon {
  background: linear-gradient(135deg, var(--arena-purple), var(--arena-blue));
}

.achievement-card:nth-child(3) .achievement-icon {
  background: linear-gradient(135deg, var(--arena-green), var(--arena-teal));
}

.achievement-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
}

.achievement-card p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.gallery-item:hover {
  transform: translateY(-8px) translateZ(15px);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Level Cards 3D CSS Cleaned */

/* ─── 3D Pricing Cards ─── */
.price-card {
  transform-style: preserve-3d;
  position: relative;
}
.price-card:hover {
  transform: perspective(1000px) rotateX(-2deg) rotateY(3deg) translateY(-16px) translateZ(20px) !important;
}
.price-card.gold-card {
  animation: goldCardGlow 4s ease-in-out infinite;
}
@keyframes goldCardGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(217,119,6,0.15), 0 0 0 2px rgba(245,158,11,0.3); }
  50%      { box-shadow: 0 16px 48px rgba(217,119,6,0.25), 0 0 0 2px rgba(245,158,11,0.5), 0 0 80px rgba(217,119,6,0.08); }
}

/* ─── Trust Bar 3D Glass Morphism ─── */
.trust-bar {
  position: relative;
  overflow: hidden;
}
.trust-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: trustBarShimmer 8s linear infinite;
  transform: skewX(-25deg);
}
@keyframes trustBarShimmer {
  from { left: -40%; }
  to   { left: 140%; }
}
.trust-item {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}
.trust-item:hover {
  transform: translateZ(10px) scale(1.05);
  opacity: 1 !important;
  color: var(--amber-light);
  text-shadow: 0 0 20px rgba(245,158,11,0.3);
}

/* ─── Enhanced Reveal Animations (3D Depth) ─── */
.reveal {
  opacity: 0;
  transform: perspective(800px) translateY(40px) rotateX(5deg);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: perspective(800px) translateY(0) rotateX(0deg);
}

/* Staggered 3D children reveal */
.feat-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.feat-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.feat-grid .reveal:nth-child(3) { transition-delay: 0.25s; }
.feat-grid .reveal:nth-child(4) { transition-delay: 0.35s; }
.feat-grid .reveal:nth-child(5) { transition-delay: 0.45s; }
.feat-grid .reveal:nth-child(6) { transition-delay: 0.55s; }

/* ─── 3D Hero Title Entrance ─── */
.hero-title {
  animation: heroTitleEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
@keyframes heroTitleEntrance {
  from {
    opacity: 0;
    transform: perspective(600px) rotateX(-10deg) translateY(30px) translateZ(-40px);
  }
  to {
    opacity: 1;
    transform: perspective(600px) rotateX(0deg) translateY(0) translateZ(0);
  }
}
.hero-sub {
  animation: heroSubEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
@keyframes heroSubEntrance {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 0.7; transform: translateY(0); }
}
.hero-btns {
  animation: heroBtnsEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}
@keyframes heroBtnsEntrance {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── 3D Button Interactions ─── */
.btn-primary {
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover {
  transform: perspective(500px) translateY(-3px) translateZ(8px) rotateX(-2deg);
  box-shadow: 0 15px 35px rgba(217,119,6,0.4), 0 5px 15px rgba(217,119,6,0.2);
}

.btn-ghost {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-ghost:hover {
  transform: perspective(500px) translateY(-2px) translateZ(5px);
}

/* ─── 3D Floating Badges ─── */
.floating-badge {
  transform-style: preserve-3d;
  animation: floatingBadge3D 4s ease-in-out infinite;
}
.floating-badge:nth-of-type(2) { animation-delay: 1.3s; }
.floating-badge:nth-of-type(3) { animation-delay: 2.6s; }

@keyframes floatingBadge3D {
  0%   { transform: perspective(500px) translateY(0) rotateX(0deg) rotateY(0deg); }
  25%  { transform: perspective(500px) translateY(-12px) rotateX(3deg) rotateY(-5deg); }
  50%  { transform: perspective(500px) translateY(-6px) rotateX(-2deg) rotateY(3deg); }
  75%  { transform: perspective(500px) translateY(-15px) rotateX(4deg) rotateY(-3deg); }
  100% { transform: perspective(500px) translateY(0) rotateX(0deg) rotateY(0deg); }
}

/* ─── Floating UI 3D Lift ─── */
.whatsapp-float, .bot-float {
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.whatsapp-float:hover {
  transform: perspective(400px) translateY(-8px) rotateX(-5deg) scale(1.12);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.35);
}
.bot-float:hover {
  transform: perspective(400px) translateY(-8px) rotateX(-5deg) scale(1.12);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* ─── Login Card 3D ─── */
.login-card {
  transform-style: preserve-3d;
  animation: loginCardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes loginCardEntrance {
  from {
    opacity: 0;
    transform: perspective(800px) rotateX(8deg) translateY(40px) translateZ(-60px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) translateY(0) translateZ(0) scale(1);
  }
}

/* ─── Section Head 3D ─── */
.section-head h2 {
  transform-style: preserve-3d;
}
.section-head.visible h2 {
  animation: sectionTitle3D 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes sectionTitle3D {
  from {
    opacity: 0;
    transform: perspective(600px) rotateX(-8deg) translateY(25px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: perspective(600px) rotateX(0deg) translateY(0);
    filter: blur(0);
  }
}

/* ─── 3D Particle Orbs (Ambient Depth) ─── */
.section-padding {
  position: relative;
  overflow: hidden;
}
.section-padding::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,6,0.03) 0%, transparent 70%);
  top: 20%; right: -100px;
  animation: ambientOrb 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes ambientOrb {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-60px, 40px) scale(1.3); }
  66%  { transform: translate(30px, -30px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ─── Smooth Page Transition ─── */
.page {
  animation: pageTransition3D 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.page.active {
  animation: pageTransitionIn3D 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pageTransitionIn3D {
  from {
    opacity: 0;
    transform: perspective(1000px) translateZ(-50px);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) translateZ(0);
  }
}

/* ─── Accessibility: Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Premium Redesigned Global Footer Styling ─── */
.footer-col-title {
  margin-bottom: 24px;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.8px;
  font-weight: 700;
}
.footer-link-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.footer-link-btn:hover {
  color: var(--gold2);
  transform: translateX(4px);
}
.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.social-icon-btn:hover {
  border-color: var(--amber);
  color: #fff;
  background: rgba(232, 160, 32, 0.1);
  transform: translateY(-2px);
}
.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-contact-item:hover {
  color: var(--gold2);
}
.contact-icon {
  color: var(--amber);
  font-size: 1.1rem;
}
.footer-cta-btn {
  width: 100%;
  max-width: 240px;
  height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}
.footer-demo-btn {
  background: #E8A020;
  color: white;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(232, 160, 32, 0.2);
}
.footer-demo-btn:hover {
  background: #F5C842;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 160, 32, 0.3);
}
.footer-wa-btn {
  background: #00A884;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 168, 132, 0.2);
}
.footer-wa-btn:hover {
  background: #00c49a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 132, 0.3);
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* ─── Responsive Coach Grid (4x4 Columns on Desktop) ─── */
.coach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 30px 0;
}
@media (max-width: 1024px) {
  .coach-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .coach-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ─── Premium Modern FAQ Accordion Styling ─── */
.faq-accordion-wrap {
  max-width: 820px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.faq-item:hover {
  border-color: rgba(232, 160, 32, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232, 160, 32, 0.04);
}
.faq-item.active {
  border-color: rgba(232, 160, 32, 0.4);
  box-shadow: 0 12px 40px rgba(232, 160, 32, 0.06);
}
.faq-trigger {
  width: 100%;
  padding: 24px 30px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  outline: none;
  font-family: inherit;
}
.faq-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.2s;
}
.faq-item:hover .faq-question {
  color: var(--gold);
}
.faq-item.active .faq-question {
  color: var(--navy);
}
.faq-icon-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.faq-item:hover .faq-icon-arrow {
  background: var(--gold);
  color: white;
}
.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  background: var(--navy);
  color: white;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.faq-content-inner {
  padding: 0 30px 28px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ─── Premium 3D Curriculum Levels CSS Styles ─── */
.level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px 0;
  perspective: 1500px; /* Essential for 3D depth */
}

.level-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 540px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s;
  cursor: pointer;
  overflow: visible; /* Needed for translateZ elements to peak out beautifully */
}

/* Base Hover CSS Fallback (will be augmented by high-performance JS tilt) */
.level-card:hover {
  transform: translateY(-14px);
  border-color: rgba(232, 160, 32, 0.4);
}

/* Dynamic Cursor-Tracking spotlight */
.level-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 10%), rgba(232, 160, 32, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.level-card:hover::before {
  opacity: 1;
}

/* Individual Card Variant Glowing Shadows & Dynamic Cursor spotlight colors */
/* Beginner Card - Pawn */
.level-card.level-beginner:hover {
  box-shadow: 0 30px 60px rgba(232, 160, 32, 0.15), 0 0 40px rgba(232, 160, 32, 0.04);
}
.level-card.level-beginner::before {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 10%), rgba(232, 160, 32, 0.14) 0%, transparent 60%);
}

/* Intermediate Card - Bishop (Sleek Silver/Cyan Accent) */
.level-card.level-intermediate:hover {
  box-shadow: 0 30px 60px rgba(100, 180, 255, 0.15), 0 0 40px rgba(100, 180, 255, 0.04);
  border-color: rgba(100, 180, 255, 0.4);
}
.level-card.level-intermediate::before {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 10%), rgba(37, 99, 235, 0.12) 0%, transparent 60%);
}

/* Advanced Card - Queen (Gold Accent) */
.level-card.level-advanced:hover {
  box-shadow: 0 30px 60px rgba(251, 191, 36, 0.18), 0 0 40px rgba(251, 191, 36, 0.05);
  border-color: rgba(251, 191, 36, 0.45);
}
.level-card.level-advanced::before {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 10%), rgba(217, 119, 6, 0.15) 0%, transparent 60%);
}

/* 3D TranslateZ Layers */
.level-rank {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  transform: translateZ(30px);
  transition: all 0.4s;
  z-index: 10;
}
.level-card:hover .level-rank {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}
.level-card.level-intermediate:hover .level-rank {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.level-card.level-advanced:hover .level-rank {
  background: #d97706;
  color: #fff;
  border-color: #d97706;
}

@keyframes floatPiece {
  0% {
    transform: translateZ(60px) translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateZ(60px) translateY(-8px) rotate(2deg);
  }
  100% {
    transform: translateZ(60px) translateY(0px) rotate(0deg);
  }
}

.level-piece {
  font-size: 5.5rem;
  line-height: 1;
  margin-bottom: 24px;
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.08));
  animation: floatPiece 4s ease-in-out infinite;
  z-index: 5;
  display: block;
}
.level-card:hover .level-piece {
  animation: none; /* Pause float bobbing when hovering to allow clean 3D static lift */
  transform: translateZ(95px) scale(1.18) rotate(4deg);
  filter: drop-shadow(0 22px 32px rgba(15, 23, 42, 0.18));
}

.level-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  transform: translateZ(40px);
}

.level-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
  transform: translateZ(35px);
}

.level-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateZ(30px);
  width: 100%;
}

.level-card li {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  gap: 10px;
}

.level-card li::before {
  content: '✓';
  color: #d97706;
  font-weight: 800;
  font-size: 1rem;
}
.level-card.level-intermediate li::before {
  color: #2563eb;
}
.level-card.level-advanced li::before {
  color: #d97706;
}

.level-card-cta {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateZ(50px);
  transition: all 0.3s;
}
.level-card:hover .level-card-cta {
  transform: translateZ(75px) translateX(6px);
}
.level-card.level-intermediate .level-card-cta {
  color: #2563eb;
}
.level-card.level-advanced .level-card-cta {
  color: #d97706;
}

@media (max-width: 1024px) {
  .level-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .level-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .level-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .coach-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ─── Mobile Optimizations ─── */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.btn, .nav-link, .faq-trigger, .p-nav-item, .footer-link-btn, .social-icon-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn, .nav-login, .nav-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-trigger {
  min-height: 56px;
  padding: 16px 20px;
}

.p-nav-item {
  min-height: 48px;
  padding: 12px 16px;
}

.form-group input, .form-group select, .form-group textarea {
  min-height: 48px;
  font-size: 16px;
}

/* Prevent horizontal scrolling */
html, body {
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  box-sizing: border-box;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* Ensure all interactive elements are touch-friendly */
button, input, textarea, select, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 768px - Tablet breakpoint */
@media (max-width: 1024px) {
  .header-inner { padding: 16px 32px; }
  .container { padding: 0 24px; }
  .hero-content-wrap { padding: 10px 32px 60px; }
  .section-padding { padding: 80px 0; }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    padding: 10px;
  }
  
  .nav-links {
    top: 60px;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .stats-row {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .stat-div {
    width: 1px;
    height: 40px;
    margin: 6px 0;
  }
  
  .board-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ctrl-group {
    justify-content: center;
  }
  
  .floating-ui {
    bottom: 20px;
    right: 20px;
    gap: 12px;
  }
  
  .whatsapp-float, .bot-float {
    width: 56px;
    height: 56px;
  }
  
  .bot-window {
    width: 95vw;
    max-width: 340px;
    height: 420px;
    bottom: 100px;
    right: 16px;
    left: 16px;
  }
  
  .level-grid {
    grid-template-columns: 1fr;
  }
  
  .coach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid, .feat-grid, .achievements-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .trust-item {
    font-size: 0.75rem;
  }
  
  .preloader-text {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
  }
}

/* 480px - Small mobile breakpoint */
@media (max-width: 480px) {
  .header-inner { padding: 12px 16px; }
  .logo-text { font-size: 1.25rem; }
  .logo-icon-box { width: 32px; height: 32px; }
  .logo-icon-symbol { font-size: 18px; }
  
  .container { padding: 0 16px; }
  .section-padding { padding: 60px 0; }
  .section-head { margin-bottom: 40px; padding: 0 12px; }
  .section-head h2 { font-size: 1.75rem; }
  .eyebrow { font-size: 0.65rem; letter-spacing: 1px; }
  
  .hero { padding-top: 80px; }
  .hero-content-wrap { padding: 10px 16px 40px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-badge { font-size: 0.65rem; padding: 6px 12px; letter-spacing: 0.14em; }
  .hero-stat-num { font-size: 1.8rem; }
  .hero-stat-label { font-size: 0.7rem; }
  
  .btn { padding: 14px 28px; font-size: 0.95rem; }
  .nav-login { padding: 8px 16px; font-size: 0.85rem; }
  
  .feat-card, .level-card, .price-card, .login-card {
    padding: 24px;
    border-radius: 16px;
  }
  
  .feat-icon-wrap { width: 50px; height: 50px; font-size: 1.4rem; margin-bottom: 16px; }
  
  .coach-grid { grid-template-columns: 1fr; }
  .sidebar { padding: 16px 12px; }
  .dashboard-main { padding: 16px; }
  
  .table th, .table td { padding: 12px 16px; }
  .table { font-size: 0.85rem; }
  
  .preloader-text { font-size: 0.6rem; letter-spacing: 0.15em; }
  
  .board-panel { border-radius: 20px; padding: 16px; }
  #board { width: 280px; height: 280px; grid-template-columns: repeat(8, 35px); grid-template-rows: repeat(8, 35px); }
  .sq { width: 35px; height: 35px; }
  .piece { font-size: 28px; }
  .coords-col { height: 280px; }
  .coords-row { width: 280px; }
  .moves-panel { height: 180px; min-width: auto; }
}

/* 360px - Extra small screens */
@media (max-width: 360px) {
  .header-inner { padding: 10px 12px; }
  .nav-link { font-size: 0.8rem; padding: 12px 10px; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
  
  .hero-stat-num { font-size: 1.6rem; }
  .hero-stat-label { font-size: 0.65rem; }
  
  .section-head h2 { font-size: 1.5rem; }
  
  .level-card, .feat-card, .price-card { padding: 20px; }
  .level-piece { font-size: 3rem; margin-bottom: 12px; }
  .level-card h3 { font-size: 1.3rem; }
  
  .preloader-text { font-size: 0.55rem; letter-spacing: 0.1em; }
  
  .trust-bar { padding: 16px 0; }
  .trust-inner { gap: 16px; padding: 0 12px; }
  
  .floating-ui { bottom: 16px; right: 16px; }
  .whatsapp-float, .bot-float { width: 50px; height: 50px; }
}

/* ─── Premium Redesigned Login Page & Header Styles (Mockup Perfect) ─── */
.login-bg-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #0c121e;
  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: 30px 30px;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding: 0 0 80px 0;
}

.login-header {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
}
.login-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.login-header-logo-box {
  width: 44px;
  height: 44px;
  background: #E8A020;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(232, 160, 32, 0.35);
  transition: transform 0.3s;
}
.login-header-logo:hover .login-header-logo-box {
  transform: rotate(-5deg) scale(1.05);
}
.login-header-logo-symbol {
  font-size: 26px;
  color: #1c2e4a;
  line-height: 1;
}
.login-header-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
}
.login-header-logo-text span {
  color: #E8A020;
}

.login-header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.login-header-nav-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.login-header-nav-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: #E8A020;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.login-header-nav-btn:hover {
  color: #ffffff;
}
.login-header-nav-btn:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.login-header-nav-btn.active {
  color: #E8A020;
}
.login-header-nav-btn.active::after {
  transform: translateX(-50%) scaleX(1);
}

.login-card-v2 {
  background: #ffffff;
  border-radius: 28px;
  padding: 48px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  animation: loginCardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-card-v2-icon {
  width: 72px;
  height: 72px;
  background: #111111;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 34px;
  margin: 0 auto 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.login-card-v2-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: #0c121e;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.login-card-v2-brand span {
  color: #d97706;
}

.login-card-v2-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #0c121e;
  letter-spacing: -0.01em;
  margin: 0;
}

.login-card-v2-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin: 8px 0 0 0;
  font-weight: 500;
}

.form-group-v2 {
  margin-bottom: 20px;
  text-align: left;
}
.form-group-v2-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0c121e;
  margin-bottom: 8px;
}
.form-group-v2-input {
  background: #edf2f9;
  border: 1.5px solid rgba(15, 23, 42, 0.05);
  color: #0c121e;
  font-weight: 600;
  height: 54px;
  border-radius: 12px;
  width: 100%;
  padding: 0 18px;
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
}
.form-group-v2-input:focus {
  background: #ffffff;
  border-color: #E8A020;
  box-shadow: 0 0 0 4px rgba(232, 160, 32, 0.15);
}

.form-group-v2-eye {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  transition: color 0.2s;
}
.form-group-v2-eye:hover {
  color: #475569;
}

.login-card-v2-back {
  font-size: 0.88rem;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  padding: 0;
  transition: color 0.2s;
}
.login-card-v2-back:hover {
  color: #334155;
}

.login-card-v2-forgot {
  font-size: 0.88rem;
  color: #d97706;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
.login-card-v2-forgot:hover {
  color: #b45309;
}

.login-card-v2-btn {
  background: linear-gradient(135deg, #eab308 0%, #d97706 100%);
  height: 56px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  width: 100%;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-card-v2-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.45);
}

.login-card-v2-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.login-card-v2-divider::before, .login-card-v2-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.login-card-v2-divider span {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
}

.login-card-v2-google {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  height: 54px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.login-card-v2-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

@media (max-width: 768px) {
  .login-header {
    padding: 20px 24px;
  }
  .login-header-nav {
    display: none;
  }
  .login-card-v2 {
    padding: 32px 24px;
  }
  .login-bg-section {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    padding-bottom: 40px !important;
    justify-content: flex-start !important;
  }
}

/* ─── Student Achievements Showcase Gallery ─── */
.showcase-gallery-title {
  color: #ffffff !important; /* Make sure the title renders beautifully in white on dark background */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.showcase-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1500px;
}

.showcase-gallery-item {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible;
}

.showcase-gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.1) 25%, transparent 30%);
  background-size: 200% auto;
  background-position: 200% center;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s;
}

.showcase-gallery-item:hover {
  transform: translateY(-15px) translateZ(30px) rotateX(4deg);
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(232, 160, 32, 0.15);
  border-color: rgba(232, 160, 32, 0.4);
}

.showcase-gallery-item:hover::before {
  opacity: 1;
  animation: shineSweep 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.showcase-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(10px);
  border: 1px solid rgba(255,255,255,0.05);
}

.showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-gallery-item:hover .showcase-img-wrap {
  transform: translateZ(45px) scale(1.06);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(232, 160, 32, 0.2);
  border-color: rgba(232, 160, 32, 0.5);
}

.showcase-gallery-item:hover .showcase-img-wrap img {
  transform: scale(1.1);
}

.showcase-info {
  margin-top: 24px;
  text-align: center;
  transform-style: preserve-3d;
  transform: translateZ(5px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-info h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px 0;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-gallery-item:hover .showcase-info h4 {
  transform: translateZ(35px);
  color: var(--amber-light);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.showcase-info p {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-gallery-item:hover .showcase-info p {
  transform: translateZ(25px);
  color: #ffffff;
}

@media (max-width: 640px) {
  .showcase-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .showcase-gallery-item {
    padding: 12px;
  }
  .showcase-info {
    margin-top: 16px;
  }
  .showcase-info h4 {
    font-size: 1.1rem;
  }
  .showcase-info p {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   WORLD-CLASS ENHANCEMENT LAYER - ChessKidoo Landing Page v2.0
   ========================================================================== */

/* Animated Trust Bar Marquee */
.trust-bar { overflow: hidden; padding: 0; background: var(--ink); }
.trust-track {
  display: flex; gap: 48px; align-items: center;
  animation: trustMarquee 28s linear infinite;
  white-space: nowrap; width: max-content;
  padding: 22px 0;
}
.trust-track:hover { animation-play-state: paused; }
@keyframes trustMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.75);
  flex-shrink: 0; padding: 6px 18px;
  border: 1px solid rgba(232,160,32,.15); border-radius: 99px;
  background: rgba(232,160,32,.05); transition: all .25s ease;
}
.trust-item:hover { background: rgba(232,160,32,.12); color: #F5C842; }
.trust-divider { display: none; }

/* Hero Floating Chess Pieces */
.hero-floating-piece {
  position: absolute; pointer-events: none;
  font-size: clamp(2rem,5vw,5rem);
  opacity: .06; animation: floatPiece 6s ease-in-out infinite;
  user-select: none; filter: blur(0.5px);
}
.hero-floating-piece:nth-child(1) { top:12%; left:8%; font-size:4rem; animation-duration:7s; }
.hero-floating-piece:nth-child(2) { top:65%; left:5%; font-size:3rem; animation-delay:1.5s; animation-duration:8s; opacity:.04; }
.hero-floating-piece:nth-child(3) { top:25%; right:6%; font-size:5rem; animation-delay:3s; animation-duration:6.5s; }
.hero-floating-piece:nth-child(4) { bottom:20%; right:8%; font-size:3.5rem; animation-delay:.8s; animation-duration:9s; opacity:.05; }
@keyframes floatPiece {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(4deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

/* Hero badge pulse */
.hero-badge { animation: badgePulse 3s ease-in-out infinite; }
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,160,32,0); }
  50% { box-shadow: 0 0 20px 4px rgba(232,160,32,.15); }
}

/* Hero stat gold gradient */
.hero-stat-num {
  background: linear-gradient(135deg, #F5C842, #E8A020);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* World-Class Feature Cards */
.feat-card {
  background: linear-gradient(145deg, #ffffff, #fdf9f4);
  border: 1px solid rgba(232,160,32,.12); border-radius: 24px;
  padding: 36px 32px; position: relative; overflow: hidden;
  transition: all .4s cubic-bezier(.23,1,.32,1);
}
.feat-card::after {
  content: ''; position: absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, #E8A020, #F5C842, #3D6B52);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.23,1,.32,1);
  border-radius: 2px 2px 0 0;
}
.feat-card:hover { transform: translateY(-10px); box-shadow: 0 24px 60px rgba(0,0,0,.12), 0 0 0 1px rgba(232,160,32,.15); border-color: rgba(232,160,32,.3); }
.feat-card:hover::after { transform: scaleX(1); }
.feat-icon-wrap {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, rgba(232,160,32,.15), rgba(232,160,32,.05));
  border: 1px solid rgba(232,160,32,.2); border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; margin-bottom: 22px;
  transition: transform .4s cubic-bezier(.23,1,.32,1);
  box-shadow: 0 4px 16px rgba(232,160,32,.1);
}
.feat-card:hover .feat-icon-wrap { transform: scale(1.12) rotate(5deg); }
.feat-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.feat-card p { font-size: .92rem; line-height: 1.65; color: rgba(26,18,9,.6); }

/* Premium Coach Cards */
.coach-card-premium {
  background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(226,232,240,.8);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transition: all .4s cubic-bezier(.23,1,.32,1); position: relative;
}
.coach-card-premium:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.14); }
.coach-img-box { height: 300px; overflow: hidden; background: #f1f5f9; }
.coach-img-box img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; transition: transform .6s ease; }
.coach-card-premium:hover .coach-img-box img { transform: scale(1.06); }
.coach-card-body { padding: 22px 18px; text-align: center; }
.coach-card-body h5 { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #0f172a; margin: 0 0 6px; }
.coach-card-body p { font-size: .88rem; color: #64748b; line-height: 1.55; margin: 0; }
.coach-level-badge {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  padding: 4px 12px; border-radius: 99px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(0,0,0,.8); color: #fff;
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15);
}

/* Premium Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 24px; max-width:1400px; margin:0 auto; padding:0 32px; }
.review-card {
  background: #fff; border-radius: 20px; padding: 32px;
  border: 1px solid rgba(232,160,32,.1);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: all .35s ease; position: relative;
}
.review-card::before {
  content: '"'; position: absolute; top:16px; left:24px;
  font-family: var(--font-display); font-size:5rem;
  color: var(--amber); opacity:.12; line-height:1; font-weight:900;
}
.review-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.1); border-color: rgba(232,160,32,.25); }
.review-stars { display: flex; gap:3px; color: var(--amber); font-size:1rem; margin-bottom:14px; }
.review-text { font-size:.95rem; line-height:1.7; color:rgba(26,18,9,.75); margin-bottom:20px; font-style:italic; }
.review-author { display: flex; align-items: center; gap:12px; }
.review-avatar {
  width:44px; height:44px; border-radius:50%;
  background: linear-gradient(135deg, var(--amber), #F5C842);
  display: flex; align-items: center; justify-content: center;
  font-weight:800; color:#fff; font-size:1rem; flex-shrink:0;
}
.review-name { font-weight:700; font-size:.9rem; color:var(--ink); }
.review-role { font-size:.76rem; color:rgba(26,18,9,.5); margin-top:2px; }

/* Enhanced CTA */
#cta { position:relative; overflow:hidden; }
#cta::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(232,160,32,.08) 0%, transparent 70%);
  pointer-events:none;
}

/* Scroll Progress shimmer */
#scrollProgress {
  background: linear-gradient(90deg, var(--amber), #F5C842, var(--amber));
  background-size: 200% 100%;
  animation: shimmerProgress 2s linear infinite;
}
@keyframes shimmerProgress {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Better Reveal Animations */
.reveal { opacity:0; transform:translateY(32px) scale(.98); transition: all .75s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity:1; transform:translateY(0) scale(1); }

/* Social Icons */
.social-icon-btn {
  width:40px; height:40px; border-radius:10px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.6); transition:all .25s ease; text-decoration:none;
}
.social-icon-btn:hover { background:var(--amber); color:var(--ink); border-color:var(--amber); transform:translateY(-2px); }

/* Btn Ripple */
.btn { position:relative; overflow:hidden; }

/* Header Glow */
.site-header.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.05); }

/* FAQ Enhanced */
.faq-icon-arrow {
  width:32px; height:32px; border-radius:50%;
  background:rgba(232,160,32,.1);
  display:flex; align-items:center; justify-content:center;
  color:var(--amber); flex-shrink:0;
  transition: all .35s cubic-bezier(.23,1,.32,1);
}
.faq-item.open .faq-icon-arrow { transform:rotate(180deg); background:var(--amber); color:#fff; }

/* Level Card CTA bar */
.level-card-cta {
  display:flex; align-items:center; justify-content:space-between;
  margin-top:24px; padding:14px 20px;
  border-radius:12px; font-weight:700; font-size:.95rem;
  transition: all .25s ease;
}

/* Multi-Device Universal Auto-Size & UI/UX Optimization Layer */
@media (min-width: 1600px) {
  .header-inner, .reviews-grid, .hero-content-wrap, .section-padding {
    max-width: 1550px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
@media (max-width: 1440px) and (min-width: 1025px) {
  .header-inner { padding: 16px 32px; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-btns { justify-content: center; }
  .reviews-grid, .feat-grid, .pricing-grid, .level-grid, .coach-grid, .achievements-grid, .showcase-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .price-card.gold-card { transform: none; }
}

/* Mobile */
@media (max-width:768px) {
  .reviews-grid { grid-template-columns:1fr; padding:0 16px; }
  .feat-grid { grid-template-columns:1fr; }
  .pricing-grid { grid-template-columns:1fr; }
  .price-card.gold-card { transform:none; }
  .level-grid, .coach-grid, .achievements-grid, .showcase-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3rem) !important;
    line-height: 1.08 !important;
  }
  .hero-sub {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    padding: 0 10px;
  }
  .section-head h2 {
    font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
  }
  .section-padding {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 28px !important;
    min-height: 48px;
  }
  .hero-btns {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }
  .why-grid { grid-template-columns: 1fr !important; }
  .chess-journey { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cj-connector { display: none; }
  .cj-item { flex-direction: row; align-items: center; gap: 18px; }
  .cj-item.top, .cj-item.bottom { transform: none; }
  .cj-body { text-align: left; }
  .skills-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Why Choose Us ─────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  perspective: 1500px;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(13,27,42,0.03);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  position: relative;
  overflow: visible;
}
.why-item:hover {
  transform: translateY(-12px) translateZ(30px) rotateX(4deg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 60px rgba(232,160,32,0.12), 0 15px 25px rgba(0,0,0,0.04);
  border-color: rgba(232,160,32,0.4);
}
.why-icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(232,160,32,0.15), rgba(232,160,32,0.05));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(232,160,32,0.1);
  transform: translateZ(15px);
}
.why-item:hover .why-icon {
  transform: translateZ(45px) scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: white;
  text-shadow: 0 4px 10px rgba(0,0,0,0.2);
  box-shadow: 0 15px 35px rgba(232,160,32,0.3);
}
.why-body {
  transform-style: preserve-3d;
  flex: 1;
}
.why-body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800;
  color: var(--navy); margin-bottom: 8px;
  transform: translateZ(10px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-item:hover .why-body h4 {
  transform: translateZ(35px);
  color: var(--amber);
}
.why-body p { 
  font-size: .88rem; color: var(--muted); line-height: 1.6; margin: 0; 
  transform: translateZ(5px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-item:hover .why-body p {
  transform: translateZ(25px);
  color: rgba(26, 18, 9, 0.85);
}

/* ── Chess Journey Path ─────────────────────────────────────────── */
.journey-section-head {
  text-align: center;
  margin-bottom: 80px;
}
.journey-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}
.journey-section-head h2 span { color: var(--amber); }
.chess-journey {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0 40px;
  position: relative;
}
.cj-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  perspective: 1500px;
  transform-style: preserve-3d;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.4);
  margin: 0 10px;
  overflow: visible;
}
/* Premium Sweeping Glare Effect */
.cj-step::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.6) 25%, transparent 30%);
  background-size: 200% auto;
  background-position: 200% center;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cj-step:hover::before {
  opacity: 1;
  animation: shineSweep 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes shineSweep {
  to { background-position: -200% center; }
}

.cj-step:hover {
  transform: translateY(-15px) translateZ(30px) rotateX(4deg);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 30px 60px rgba(232, 160, 32, 0.1), 0 15px 25px rgba(0,0,0,0.05);
  border-color: rgba(232, 160, 32, 0.5);
}
.cj-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 12px 0;
  transform: translateZ(15px);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  order: 2;
}
.cj-step:hover .cj-content {
  transform: translateZ(35px);
}
.cj-piece-wrap {
  order: 1;
}
.cj-level-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.cj-piece-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--amber);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cj-step:hover .cj-piece-name { transform: translateZ(40px) scale(1.05); color: var(--ink); }
.cj-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 180px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cj-step:hover .cj-desc { transform: translateZ(25px); color: rgba(26, 18, 9, 0.8); }
.cj-explore-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transform: translateZ(10px);
  transition: all .3s cubic-bezier(0.23, 1, 0.32, 1);
}
.cj-step:hover .cj-explore-btn {
  transform: translateZ(45px) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.cj-explore-btn:hover { 
  transform: translateZ(55px) translateY(-4px) scale(1.05); 
  box-shadow: 0 12px 25px rgba(0,0,0,.25); 
}
.cj-piece-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.cj-circle {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.8rem;
  border: 4px solid #fff;
  box-shadow: 0 15px 35px rgba(0,0,0,.15);
  position: relative;
  z-index: 20;
  margin: -55px auto 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  transform-style: preserve-3d;
  background: var(--cream);
  animation: pieceFloat 5s ease-in-out infinite;
}
@keyframes pieceFloat {
  0%, 100% { transform: translateY(0) translateZ(30px); }
  50% { transform: translateY(-8px) translateZ(30px); }
}
.cj-step:hover .cj-circle { 
  animation: none; /* Pause idle float to snap to hover 3D state */
  transform: translateZ(100px) translateY(-10px) scale(1.2) rotateX(15deg) rotateY(-10deg) !important; 
  box-shadow: 0 35px 60px rgba(0,0,0,.25), inset 0 0 25px rgba(232, 160, 32, 0.3);
  border-color: #ffffff;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 100%);
  color: white !important;
}
.cj-line {
  display: none;
}

/* ── Skills Section ─────────────────────────────────────────────── */
.skills-section { background: var(--cream); position: relative; overflow: hidden; perspective: 1200px; }
.skills-section::before {
  content: ''; position: absolute; width: 60vw; height: 60vw;
  border-radius: 50%; background: radial-gradient(circle, rgba(232,160,32,0.04) 0%, transparent 60%);
  top: -20vw; left: -20vw; pointer-events: none; z-index: 0;
}
.skills-section::after {
  content: ''; position: absolute; width: 50vw; height: 50vw;
  border-radius: 50%; background: radial-gradient(circle, rgba(13,27,42,0.03) 0%, transparent 60%);
  bottom: -20vw; right: -10vw; pointer-events: none; z-index: 0;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}
.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  text-align: center;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  cursor: default;
}
.skill-card:hover { 
  transform: translateY(-12px) translateZ(25px) rotateX(4deg); 
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 25px 50px rgba(232,160,32,0.1), 0 10px 20px rgba(0,0,0,0.04);
  border-color: rgba(232,160,32,0.3);
}
.skill-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(232,160,32,0.15), rgba(232,160,32,0.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(232,160,32,0.1);
  transform: translateZ(15px);
}
.skill-card:hover .skill-icon { 
  transform: translateZ(45px) scale(1.15) rotate(-5deg); 
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: white;
  text-shadow: 0 4px 10px rgba(0,0,0,0.2);
  box-shadow: 0 15px 35px rgba(232,160,32,0.3);
}
.skill-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  transform: translateZ(10px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.skill-card:hover .skill-name {
  transform: translateZ(30px);
  color: var(--amber);
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .chess-journey { flex-wrap: wrap; gap: 32px; }
  .cj-step { flex: 0 0 45%; }
  .cj-line { display: none; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .cj-step { flex: 0 0 100%; }
  .cj-circle { width: 80px; height: 80px; font-size: 2.2rem; }
}
