@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Color Palette based on Xenotech design */
  --bg-dark: #0a0a0e;
  --bg-card: #161622;
  --primary: #f07e13; /* Vibrant Orange */
  --primary-light: #f7a04f;
  --secondary: #ffb703; /* Gold / Yellow */
  --text-main: #ffffff;
  --text-muted: #a0a0b0;
  --text-dark: #121212;
  --white: #ffffff;
  --light-gray: #f4f4f6;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark); /* For light sections */
}

/* Gradients & Backgrounds */
.bg-dark-gradient {
  background: radial-gradient(circle at top right, #2a1a3a 0%, #0a0a0e 60%);
}

.text-gradient {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.py-5 { padding-top: 4rem; padding-bottom: 4rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(240, 126, 19, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(240, 126, 19, 0.6);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #e5a400;
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background: rgba(10, 10, 14, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--white);
  letter-spacing: 1px;
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.nav-logo:hover img {
  transform: scale(1.04);
}

/* WhatsApp Community CTA Button */
.btn-whatsapp-community {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  background: rgba(37, 211, 102, 0.12);
  color: var(--white);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.btn-whatsapp-community i {
  color: #25D366;
  font-size: 1.3rem;
  transition: transform 0.25s ease;
}

.btn-whatsapp-community:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: rgba(37, 211, 102, 0.7);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-community:hover i {
  transform: scale(1.15);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 9rem; /* Account for tall navbar with logo */
}

/* Hexagon decorative elements */
.hex-bg {
  position: absolute;
  opacity: 0.1;
  z-index: 0;
}
.hex-1 { top: 10%; right: 5%; width: 300px; }
.hex-2 { bottom: 10%; left: -5%; width: 400px; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-buttons {
    justify-content: flex-start;
}

.tagline {
  display: inline-block;
  background: var(--primary);
  color: var(--bg-dark); /* Changed from white to dark for contrast */
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(240, 126, 19, 0.4);
}

/* White Section for content */
.section-light {
  background-color: var(--light-gray);
  color: var(--text-dark);
  position: relative;
  padding: 5rem 0;
}

/* Hexagon grid style for lists */
.benefits-grid, .offer-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-card, .offer-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-left: 5px solid var(--primary);
  transition: transform 0.3s ease;
}

.benefit-card:hover, .offer-card:hover {
  transform: translateY(-5px);
}

.benefit-card h3, .offer-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* Tags */
.tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.tag {
  background: var(--secondary);
  color: var(--text-dark);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Coaches Section */
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.coach-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  color: var(--text-dark);
  border-bottom: 5px solid var(--primary);
  display: flex;
  flex-direction: column;
}

.coach-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--light-gray);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
  border: 3px solid var(--primary-light);
}

.coach-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.coach-fide {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.coach-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
  min-height: 50px;
}

/* Challenges Section */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.challenge-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.challenge-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.challenge-img {
  width: 100%;
  height: 250px;
  background-color: #222;
  background-image: repeating-conic-gradient(#333 0 25%, transparent 0 50%);
  background-size: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.challenge-info {
  padding: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.badge-beginner {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.badge-intermediate {
  background: rgba(240, 126, 19, 0.2);
  color: var(--primary);
}

/* Footer */
footer {
  background: #050508;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Pricing Section - Screen-Adaptive 1-Screen Fit */
.pricing-section {
  padding: clamp(1.2rem, 3vh, 2.5rem) 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  margin-top: clamp(0.8rem, 1.8vh, 1.3rem);
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: clamp(1.1rem, 2.2vh, 1.6rem) clamp(1rem, 1.4vw, 1.3rem);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.pricing-card h3 {
  font-size: clamp(1.1rem, 2vh, 1.3rem);
  margin: 0 0 0.25rem 0;
  line-height: 1.25;
}

.pricing-card p.pricing-desc {
  color: var(--text-muted);
  margin: 0 0 0.35rem 0;
  font-size: 0.84rem;
  line-height: 1.35;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vh, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin: clamp(0.35rem, 0.9vh, 0.65rem) 0;
  line-height: 1;
}

.pricing-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: clamp(0.45rem, 1.1vh, 0.75rem) 0 clamp(0.75rem, 1.6vh, 1.1rem) 0;
  padding: 0;
  color: #cbd5e1;
  font-size: clamp(0.82rem, 1.3vh, 0.88rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.32rem, 0.75vh, 0.5rem);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.pricing-features li i {
  color: var(--primary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.pricing-card .btn {
  margin-top: auto;
  padding: clamp(0.55rem, 1.1vh, 0.75rem) 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 8px;
  width: 100%;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(240, 126, 19, 0.15);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, rgba(22, 22, 34, 0.95) 0%, rgba(30, 20, 12, 0.95) 100%);
  box-shadow: 0 10px 30px rgba(240, 126, 19, 0.2);
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: -42px;
  background: var(--primary);
  color: var(--white);
  padding: 0.35rem 3.8rem;
  transform: rotate(45deg);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 1px;
}

/* Dashboard Styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-top: 2rem;
}

.dash-panel {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.dash-profile {
  text-align: center;
}

.dash-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--light-gray);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  border: 4px solid var(--primary);
}

/* Progress Bars */
.skill-item {
  margin-bottom: 1.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.skill-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: 5px;
}

.remarks-box {
  background: rgba(240, 126, 19, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1.5rem;
  color: #e0e0e0;
}

/* Checkout Page */
.checkout-container {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  align-items: flex-start;
}

.checkout-summary {
  flex: 1;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.1);
}

.checkout-payment {
  flex: 1.5;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.1);
}

.order-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.order-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255,255,255,0.2);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

/* Payment Tabs */
.payment-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pay-tab {
  flex: 1;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
}

.pay-tab i {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.pay-tab.active {
  background: rgba(240, 126, 19, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.pay-tab.active i {
  color: var(--primary);
}

.payment-method-content {
  display: none;
}

.payment-method-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Inputs */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.qr-container {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  margin: 1rem auto;
  max-width: 300px;
}

.qr-container img {
  width: 100%;
  border-radius: 8px;
}

.qr-instructions {
  text-align: center;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* Formats Section */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.format-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  border-top: 4px solid var(--secondary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.format-card:hover {
  transform: translateY(-5px);
}

.format-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.format-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.format-details {
  list-style: none;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  line-height: 2;
}

.format-details strong {
  color: var(--primary-light);
}

/* Levels Section */
.level-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.level-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-left: 5px solid var(--primary);
  transition: transform 0.3s ease;
}

.level-card:hover {
  transform: translateY(-5px);
}

.level-header {
  padding: 1.5rem 2rem;
  background: rgba(240, 126, 19, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(240, 126, 19, 0.2);
}

.level-header h3 {
  color: var(--text-dark);
  margin: 0;
  font-size: 1.5rem;
}

.level-badge {
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.level-body {
  padding: 2rem;
}

.level-section {
  margin-bottom: 1.5rem;
}

.level-section:last-child {
  margin-bottom: 0;
}

.level-section h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.level-section p {
  color: #555;
  line-height: 1.6;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Above the drawer */
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.75rem; }
  
  .mobile-toggle {
      display: block;
  }

  .nav-links { 
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      flex-direction: column;
      background: rgba(22, 22, 34, 0.95);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
      z-index: 999;
  }
  
  .nav-links.active {
      max-height: 100vh;
      padding: 1rem 0;
      overflow-y: auto;
  }

  .nav-links li {
      width: 100%;
      text-align: center;
      margin: 0.5rem 0;
  }

  .hero { text-align: center; }
  .hero-buttons { justify-content: center !important; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .checkout-container { flex-direction: column; }
}
/* Admin Panel Styles */
.admin-table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--white);
  min-width: 800px;
}

.admin-table th {
  background: rgba(0,0,0,0.4);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
}

.admin-table tr:hover {
  background: rgba(255,255,255,0.02);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 5px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--white);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.6);
    color: #FFF;
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}
/* --- Chess Journey Roadmap --- */
.journey-roadmap {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 1rem;
}

.journey-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 2rem;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.journey-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 82, 82, 0.5);
    box-shadow: 0 20px 40px rgba(255, 82, 82, 0.15);
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), #ff8a8a);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.journey-rank-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 82, 82, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
}

.journey-content {
    flex-grow: 1;
}

.journey-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.journey-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: 0.5px;
}

.journey-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.beginner-badge { background: rgba(255, 255, 255, 0.1); color: #fff; }
.intermediate-badge { background: rgba(0, 191, 255, 0.2); color: #00bfff; }
.advanced-badge { background: rgba(144, 238, 144, 0.2); color: lightgreen; }

.journey-section {
    margin-bottom: 1.2rem;
}

.journey-section:last-child {
    margin-bottom: 0;
}

.journey-section h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-primary { color: var(--primary) !important; }

.journey-section p {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.journey-connector {
    color: rgba(255, 255, 255, 0.2);
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1) translateY(5px); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}

@media (max-width: 768px) {
    .journey-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
    }
    .journey-header {
        flex-direction: column;
        justify-content: center;
    }
    .journey-section h4 {
        justify-content: center;
    }
}

.hover-lift { transition: transform 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); }
.hover-lift:hover { transform: translateY(-5px); }

.coach-avatar {
  overflow: hidden;
}
.coach-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}
/* Mastery Diagram CSS */
.mastery-diagram {
    position: relative;
    max-width: 800px;
    margin: 1.5rem auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
}

.mastery-node {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 180px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.mastery-node:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.mastery-node i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.mastery-node h3 {
    font-size: 0.95rem;
    color: var(--white);
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mastery-core {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--white);
    box-shadow: 0 0 30px rgba(240, 126, 19, 0.4);
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
    border: 3px solid rgba(255,255,255,0.1);
    animation: pulseCore 3s infinite;
}

@keyframes pulseCore {
    0% { box-shadow: 0 0 0 0 rgba(240, 126, 19, 0.4); }
    70% { box-shadow: 0 0 0 30px rgba(240, 126, 19, 0); }
    100% { box-shadow: 0 0 0 0 rgba(240, 126, 19, 0); }
}

/* Connecting Lines behind grid */
.mastery-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.mastery-line {
    position: absolute;
    background: repeating-linear-gradient(to right, var(--primary) 0, var(--primary) 10px, transparent 10px, transparent 20px);
    opacity: 0.5;
}

.mastery-line.horizontal {
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
}
.mastery-line.horizontal.left { left: 15%; width: 35%; }
.mastery-line.horizontal.right { right: 15%; width: 35%; }

.mastery-line.vertical {
    width: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: repeating-linear-gradient(to bottom, var(--primary) 0, var(--primary) 10px, transparent 10px, transparent 20px);
}
.mastery-line.vertical.top { top: 15%; height: 35%; }
.mastery-line.vertical.bottom { bottom: 15%; height: 35%; }

@media (max-width: 900px) {
    .mastery-diagram {
        display: flex;
        flex-direction: column;
        gap: 3rem; /* Increased gap to make room for arrows/plus */
    }
    .mastery-diagram > div:not(.mastery-node):not(.mastery-core) {
        display: none; /* Hide empty spacer divs on mobile */
    }
    .mastery-core {
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    /* Add downward arrow under MASTERY core */
    .mastery-core::after {
        content: '\f063'; /* font-awesome arrow-down */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        bottom: -55px;
        left: 50%;
        transform: translateX(-50%);
        color: var(--primary);
        font-size: 1.8rem;
    }

    /* Add Plus sign under each node */
    .mastery-node::after {
        content: '+';
        position: absolute;
        bottom: -50px;
        left: 50%;
        transform: translateX(-50%);
        color: var(--primary);
        font-size: 2rem;
        font-weight: 900;
        opacity: 0.7;
    }
    
    /* Remove plus from the last node (Endgame Technique) */
    .mastery-diagram > div:nth-child(9)::after {
        display: none;
    }

    .mastery-lines {
        display: none;
    }
}

/* Navbar Dropdown Mega-Menu */
.nav-dropdown {
    position: static;
}

.dropdown-menu {
    position: fixed;
    top: 75px;
    left: 0;
    transform: translateY(20px);
    background: rgba(22, 22, 34, 0.98);
    backdrop-filter: blur(20px);
    border: none;
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 3rem 0;
    width: 100vw;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.resource-section h4 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.resource-item i {
    width: 20px;
    text-align: center;
}

.resource-item.free {
    background: rgba(255,255,255,0.05);
}

.resource-item.free:hover {
    background: rgba(240, 126, 19, 0.1);
    border: 1px solid rgba(240, 126, 19, 0.3);
    box-shadow: 0 5px 15px rgba(240, 126, 19, 0.15);
    color: var(--primary);
    transform: translateX(8px);
}

.resource-item.free i {
    color: var(--primary);
}

.resource-item.locked {
    color: var(--text-muted);
    opacity: 0.7;
    cursor: pointer;
}

.resource-item.locked i {
    color: #ff4757;
    transition: transform 0.3s ease;
}

.resource-item.locked:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.resource-item.locked:hover {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.15);
    color: #ff4757;
    transform: translateX(8px);
}

@media (max-width: 900px) {
    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        padding: 1rem 0;
        border: none;
        background: transparent;
        display: none;
    }
    .nav-dropdown:hover .dropdown-menu {
        display: block;
        transform: none;
    }
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Key Moment Chess Board Container */
.puzzle-container {
    background: rgba(22, 22, 34, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.puzzle-container h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.puzzle-wrapper {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    background: #2b2b2b; /* Match lichess dark theme bg roughly */
}


/* Ensure dragged chess pieces stay above all other elements & have grab cursor */
img[src*="chesspieces"],
.piece-417db,
#board img[src*="chesspieces"],
.puzzle-wrapper img[src*="chesspieces"] {
    z-index: 99999 !important;
    cursor: grab !important;
    cursor: -webkit-grab !important;
}

img[src*="chesspieces"]:active,
.piece-417db:active,
#board img[src*="chesspieces"]:active,
.puzzle-wrapper img[src*="chesspieces"]:active {
    cursor: grabbing !important;
    cursor: -webkit-grabbing !important;
}

#board,
.puzzle-wrapper #board {
    cursor: default;
}

/* Dashboard Redesign Elements */
.modern-panel {
    background: rgba(30, 30, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.modern-panel:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.panel-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    padding: 1.2rem !important;
}
.stat-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    opacity: 0.9;
}
.stat-info .stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-info .stat-value {
    color: var(--white);
    margin-bottom: 0;
    margin-top: 5px;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Tool Buttons */
.tool-btn {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    text-decoration: none;
    color: var(--white);
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}
.tool-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateX(5px);
    color: var(--white);
}
.tool-icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    color: var(--primary);
}
.tool-text h5 {
    margin: 0 0 4px 0;
    font-size: 1rem;
}
.tool-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.tool-arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: color 0.2s;
}
.tool-btn:hover .tool-arrow {
    color: var(--primary);
}

/* Mini Billing */
.billing-mini {
    background: linear-gradient(145deg, rgba(30, 30, 42, 0.8), rgba(20, 20, 30, 0.9));
    border-left: 3px solid var(--secondary);
}
.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.badge-plan {
    color: var(--secondary);
    font-weight: bold;
    font-size: 0.9rem;
}
.badge-date {
    color: var(--white);
    font-size: 0.8rem;
    background: rgba(0,0,0,0.3);
    padding: 3px 8px;
    border-radius: 4px;
}
.badge-pending {
    display: inline-block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: bold;
    background: rgba(240, 126, 19, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Badges for Strengths / Weaknesses */
.badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.report-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}
.strength-badge {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}
.weakness-badge {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}
.feedback-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.2rem;
    margin-top: 1rem;
    border-left: 3px solid var(--primary);
}

.list-container {
    max-height: 200px;
    overflow-y: auto;
}

/* --- PREMIUM LANDING PAGE STYLES --- */

/* Dynamic Hero Title */
.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: -1px;
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Glass Panels */
.glass-panel {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(240, 126, 19, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-panel:hover {
    transform: translateY(-8px);
    border-color: rgba(240, 126, 19, 0.5);
    box-shadow: 0 20px 40px rgba(240, 126, 19, 0.15), 0 0 20px rgba(240, 126, 19, 0.1);
}

.glass-panel-icon {
    background: rgba(240, 126, 19, 0.15);
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(240, 126, 19, 0.2);
    transition: all 0.3s ease;
}

.glass-panel:hover .glass-panel-icon {
    background: rgba(240, 126, 19, 0.3);
    transform: scale(1.05) rotate(5deg);
}

.glass-panel h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.glass-panel p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Sleek Buttons */
.btn-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(240, 126, 19, 0.3);
    transition: all 0.3s ease;
}
.btn-glow:hover {
    box-shadow: 0 8px 25px rgba(240, 126, 19, 0.5);
    transform: translateY(-2px);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Glowing Puzzle Container */
.puzzle-glass-container {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(240, 126, 19, 0.15), inset 0 0 20px rgba(255,255,255,0.02);
    position: relative;
}
.puzzle-glass-container::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(240, 126, 19, 0.3), transparent);
    z-index: -1;
    border-radius: 26px;
    animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

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