  /* ===== Smart Beads - Premium Styles ===== */

  /* ---------- CSS Variables ---------- */
  :root {
    --primary: #4F46E5;
    --secondary: #7C3AED;
    --accent: #06B6D4;
    --bg: #F8FAFC;
    --text: #0F172A;
    --text-muted: #64748B;
    --card-bg: #ffffff;
    --footer-bg: #0F172A;
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.25);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --radius: 16px;
  }

  .dark {
    --bg: #0B1120;
    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --card-bg: #1E293B;
    --glass: rgba(11, 17, 32, 0.8);
    --glass-border: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
  }

  /* ---------- Base ---------- */
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background .35s ease, color .35s ease;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* ---------- Loader ---------- */
  #loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity .5s ease;
  }

  #loader.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .loader-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(79, 70, 229, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
  }

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

  /* ---------- Navbar ---------- */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: var(--glass);
    border-bottom: 1px solid var(--glass-border);
    transition: box-shadow .3s ease, background .3s ease;
  }

  .navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, .06);
  }

  .nav-logo {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -0.5px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  }

  .nav-link {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    transition: color .2s ease;
    letter-spacing: -0.01em;
  }

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

  .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 1px;
    background: var(--primary);
    transition: width .25s ease, left .25s ease;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
    left: 0;
  }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .3s ease;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* ---------- Buttons ---------- */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
  }

  .btn-primary:active {
    transform: translateY(0);
  }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: .9rem;
    background: transparent;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
    letter-spacing: -0.01em;
  }

  .btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.25);
  }

  /* ---------- Hero ---------- */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
  }

  .hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .25;
    animation: blobFloat 10s ease-in-out infinite alternate;
    pointer-events: none;
  }

  .hero-blob-1 {
    width: 450px;
    height: 450px;
    background: var(--primary);
    top: -120px;
    left: -120px;
  }

  .hero-blob-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: 3s;
  }

  .hero-blob-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 50%;
    left: 55%;
    animation-delay: 5s;
  }

  @keyframes blobFloat {
    0% {
      transform: translate(0, 0) scale(1);
    }

    100% {
      transform: translate(20px, -20px) scale(1.08);
    }
  }

  /* Abacus illustration */
  .abacus-container {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
  }

  .abacus-frame {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px;
    padding: 28px 20px;
    box-shadow: 0 24px 60px rgba(79, 70, 229, .2);
  }

  .abacus-rod {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
  }

  .abacus-bead {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .1);
    animation: beadBounce 2.5s ease-in-out infinite;
  }

  .abacus-bead:nth-child(2) {
    animation-delay: .15s;
  }

  .abacus-bead:nth-child(3) {
    animation-delay: .3s;
  }

  .abacus-bead:nth-child(4) {
    animation-delay: .45s;
  }

  .abacus-bead:nth-child(5) {
    animation-delay: .6s;
  }

  .abacus-bead.accent {
    background: #06B6D4;
  }

  .abacus-bead.yellow {
    background: #FBBF24;
  }

  .abacus-bead.pink {
    background: #F472B6;
  }

  @keyframes beadBounce {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-5px);
    }
  }

  .abacus-rod-line {
    height: 2px;
    background: rgba(255, 255, 255, .2);
    border-radius: 1px;
    margin: 0 16px 10px;
  }

  /* Floating icons around abacus */
  .float-icon {
    position: absolute;
    border-radius: 14px;
    padding: 10px;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    animation: floatY 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .float-icon:nth-child(2) {
    animation-delay: 1.3s;
  }

  .float-icon:nth-child(3) {
    animation-delay: 2.6s;
  }

  @keyframes floatY {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-10px);
    }
  }

  /* Stat cards in hero */
  .stat-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  /* ---------- Sections ---------- */
  section {
    padding: 100px 0;
    position: relative;
  }

  .section-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
  }

  .section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
  }

  /* ---------- Feature Cards ---------- */
  .feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: var(--shadow-sm);
  }

  .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(79, 70, 229, .12);
  }

  .feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, .04), rgba(6, 182, 212, .04));
    opacity: 0;
    transition: opacity .3s;
  }

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

  .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(79, 70, 229, .2);
  }

  /* ---------- Vision ---------- */
  .vision-section {
    background: linear-gradient(180deg, rgba(79, 70, 229, .03) 0%, rgba(6, 182, 212, .03) 100%);
  }

  /* ---------- Tech Badge ---------- */
  .tech-badge {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all .3s ease;
    box-shadow: var(--shadow-sm);
  }

  .tech-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, .2);
  }

  .tech-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .2);
  }

  /* ---------- Impact ---------- */
  .impact-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 28px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
  }

  .impact-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
  }

  /* ---------- Founders ---------- */
  .founder-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid var(--glass-border);
  }

  .founder-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }

  .founder-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 6px 20px rgba(79, 70, 229, .2);
  }

  /* ---------- Roadmap ---------- */
  .timeline {
    position: relative;
    padding-left: 40px;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
  }

  .timeline-item {
    position: relative;
    margin-bottom: 32px;
  }

  .timeline-dot {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--primary);
    transition: transform .2s;
  }

  .timeline-item:hover .timeline-dot {
    transform: scale(1.2);
  }

  .timeline-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid var(--glass-border);
  }

  .timeline-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
  }

  /* ---------- Testimonials ---------- */
  .testimonial-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  }

  .testimonial-card {
    min-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .testimonial-inner {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--glass-border);
  }

  .stars {
    color: #FBBF24;
    font-size: 18px;
    letter-spacing: 3px;
  }

  /* ---------- FAQ ---------- */
  .faq-item {
    background: var(--card-bg);
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: box-shadow .2s;
  }

  .faq-item:hover {
    box-shadow: var(--shadow-md);
  }

  .faq-question {
    width: 100%;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    gap: 12px;
  }

  .faq-question svg {
    transition: transform .3s ease;
    flex-shrink: 0;
  }

  .faq-item.open .faq-question svg {
    transform: rotate(180deg);
  }

  .faq-item.open .faq-question {
    color: var(--primary);
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 22px;
  }

  .faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 22px 18px;
  }

  /* ---------- Pricing ---------- */
  .pricing-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1.5px solid var(--glass-border);
  }

  .pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }

  .pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(79, 70, 229, .15);
    transform: scale(1.03);
  }

  .pricing-card.popular:hover {
    transform: scale(1.03) translateY(-6px);
  }

  .pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 5px 22px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .25);
  }

  .price {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

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

  /* ---------- Contact ---------- */
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--glass-border);
    border-radius: 12px;
    font-size: .9rem;
    background: var(--card-bg);
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease;
    font-family: inherit;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
  }

  .contact-form .error {
    border-color: #EF4444 !important;
  }

  .error-msg {
    color: #EF4444;
    font-size: .78rem;
    margin-top: 4px;
    display: none;
  }

  /* ---------- Toast ---------- */
  .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 200;
    background: var(--card-bg);
    color: var(--text);
    padding: 14px 24px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    transform: translate(-50%, 120%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    font-weight: 500;
    font-size: .9rem;
    max-width: 90vw;
    text-align: center;
  }

  .toast.show {
    transform: translate(-50%, 0);
  }

  /* ---------- Footer ---------- */
  footer {
    background: var(--footer-bg);
    color: #94A3B8;
  }

  footer a {
    color: #94A3B8;
    text-decoration: none;
    transition: color .2s;
  }

  footer a:hover {
    color: #fff;
  }

  /* ---------- Back to Top ---------- */
  #backToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: var(--card-bg);
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

  #backToTop:hover {
    background: var(--primary);
    color: #fff;
  }

  /* ---------- Chatbot FAB ---------- */
  #chatFab {
    position: fixed;
    bottom: 72px;
    right: 24px;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    background: #25D366;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(79, 70, 229, .3);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #chatFab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, .4);
  }

  #chatFab svg {
    width: 20px;
    height: 20px;
  }

  /* ---------- Scroll Reveal ---------- */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1);
  }

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

  /* ---------- Theme Toggle ---------- */
  .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .theme-toggle:hover {
    background: rgba(79, 70, 229, .08);
    color: var(--primary);
  }

  /* ---------- Mobile Menu ---------- */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
    z-index: 99;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
  }

  .mobile-menu.active{
      display:flex;
  }

  /* ---------- Responsive ---------- */
  @media(max-width:768px) {
    .hamburger {
      display: flex;
    }

    .desktop-nav {
      display: none !important;
    }

    .section-title {
      font-size: 1.65rem;
    }

    .section-subtitle {
      font-size: .95rem;
    }

    section {
      padding: 64px 0;
    }

    .hero {
      min-height: auto;
      padding: 96px 0 48px;
    }

    .abacus-container {
      max-width: 260px;
    }

    .abacus-bead {
      width: 22px;
      height: 22px;
    }

    .timeline {
      padding-left: 30px;
    }

    /* Fix floating buttons on mobile */
    #chatFab {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      bottom: 68px;
      right: 16px;
    }

    #chatFab svg {
      width: 18px;
      height: 18px;
    }

    #backToTop {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      bottom: 16px;
      right: 16px;
      font-size: 14px;
    }

    .pricing-card.popular {
      transform: none;
    }

    .pricing-card.popular:hover {
      transform: translateY(-6px);
    }

    .founder-card {
      padding: 28px 20px;
    }

    .founder-avatar {
      width: 72px;
      height: 72px;
      font-size: 24px;
    }

    .feature-card {
      padding: 24px 20px;
    }

    .feature-icon {
      width: 52px;
      height: 52px;
    }

    .impact-card {
      padding: 22px;
    }
  }

  @media(min-width:769px) {
    .mobile-menu {
      display: none !important;
    }
  }

  @media(max-width:480px) {
    .section-title {
      font-size: 1.4rem;
    }

    .hero h1 {
      font-size: 1.75rem !important;
    }

    .stat-card {
      padding: 10px 8px;
    }

    .stat-card .text-2xl {
      font-size: 1.1rem !important;
    }

    .pricing-card {
      padding: 24px 18px;
    }

    .price {
      font-size: 2rem;
    }

    .btn-primary,
    .btn-outline {
      padding: 10px 20px;
      font-size: .85rem;
    }

    #chatFab {
      bottom: 60px;
      right: 12px;
      width: 38px;
      height: 38px;
    }

    #backToTop {
      bottom: 12px;
      right: 12px;
      width: 34px;
      height: 34px;
    }
  }

  /* ---------- Logo image ---------- */
  .sb-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 1px;
    transition: transform .3s ease;
  }

  .auth-navbar .sb-logo {
    width: 92px;
    height: 72px;
  }

  .navbar .sb-logo {
    width: 90px;
    height: 72px;
  }


  /* ===== Single navbar logo system ===== */

  .navbar-brand,
  .auth-nav-logo{
      display:flex;
      align-items:center;
      text-decoration:none;
      padding:0;
      margin-left:10px; /* small left gap */
  }

  /* Same logo size on all pages */
  .sb-logo{
      width:120px;
      height:50px;      /* keep smaller than navbar */
      object-fit:contain;
      display:block;
      transition:transform .3s ease;
  }

  .sb-logo:hover{
      transform:scale(1.05);
  }

  /* Navbar alignment */
  .navbar .max-w-7xl{
      display:flex;
      align-items:center;
      justify-content:space-between;
      height:72px;
      width:100%;
      max-width:none;
      padding:0 20px;
  }
  /* ---------- Parent Video Cards ---------- */
  .video-card {
    padding: 20px !important;
  }

  .parent-video {
    width: 100%;
    max-height: 420px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    background: #000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  }

  /* ---------- Achievement images ---------- */
  #achievements .rounded-2xl {
    transition: transform .3s ease, box-shadow .3s ease;
  }

  #achievements .rounded-2xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(79, 70, 229, .12);
  }

  #achievements img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* ---------- Level Bundle Cards ---------- */
  .level-bundle-card {
    background: var(--card-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    box-shadow: var(--shadow-sm);
  }

  .level-bundle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, .3);
  }

  .level-bundle-card.lb-popular {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(79, 70, 229, .18);
    background: linear-gradient(160deg, rgba(79, 70, 229, .04) 0%, var(--card-bg) 60%);
  }

  .level-bundle-card.lb-popular:hover {
    box-shadow: 0 16px 48px rgba(79, 70, 229, .25);
  }

  /* Badge (Best Value / Complete) */
  .lb-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .3);
    letter-spacing: .02em;
  }

  .lb-badge-gold {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, .3);
  }

  /* Levels label */
  .lb-levels {
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-top: 6px;
  }

  /* Price */
  .lb-price {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1.1;
  }

  /* Strikethrough original */
  .lb-original {
    font-size: .82rem;
    color: var(--text-muted);
    text-decoration: line-through;
    min-height: 1.1em;
  }

  /* Discount progress bar */
  .lb-discount-bar {
    height: 6px;
    background: rgba(79, 70, 229, .1);
    border-radius: 6px;
    position: relative;
    overflow: visible;
    margin: 2px 0;
  }

  .lb-discount-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--pct, 0%);
    border-radius: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .8s ease;
  }

  .lb-pct-label {
    position: absolute;
    right: 0;
    top: -22px;
    font-size: .7rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(79, 70, 229, .08);
    padding: 1px 6px;
    border-radius: 6px;
  }

  /* Savings chip */
  .lb-savings {
    font-size: .78rem;
    font-weight: 700;
    color: #16A34A;
    background: rgba(22, 163, 74, .08);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
  }

  .lb-savings.none-save {
    color: var(--text-muted);
    background: rgba(100, 116, 139, .08);
  }

  /* Topics line */
  .lb-topics {
    font-size: .8rem;
    color: var(--text-muted);
    flex: 1;
  }

  /* Button */
  .lb-btn {
    margin-top: 4px;
    text-align: center;
    justify-content: center;
    font-size: .85rem;
    padding: 10px 16px;
  }

  /* ---------- Level Accordion ---------- */
  .level-acc-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease;
  }

  .level-acc-item:hover {
    box-shadow: var(--shadow-md);
  }

  .level-acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
  }

  .level-acc-btn:hover {
    background: rgba(79, 70, 229, .04);
  }

  .level-acc-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(79, 70, 229, .25);
  }

  .level-acc-title {
    flex: 1;
  }

  .level-acc-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform .3s ease;
  }

  .level-acc-item.open .level-acc-arrow {
    transform: rotate(180deg);
  }

  .level-acc-item.open .level-acc-btn {
    color: var(--primary);
  }

  .level-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 18px;
  }

  .level-acc-item.open .level-acc-body {
    max-height: 200px;
    padding: 0 18px 16px 66px;
  }

  .level-acc-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .level-acc-body ul li {
    font-size: .82rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
  }

  .level-acc-body ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
  }

  /* Mobile tweaks for bundle cards */
  @media(max-width: 640px) {
    .level-bundle-card {
      padding: 20px 16px;
    }

    .lb-price {
      font-size: 1.6rem;
    }
  }

  /* ---------- Level Bundle Image ---------- */
  .lb-img-wrap {
    width: 100%;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
    background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(6, 182, 212, .12));
    flex-shrink: 0;
  }

  .lb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
  }

  .level-bundle-card:hover .lb-img {
    transform: scale(1.05);
  }

  .lb-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lb-img-placeholder span {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    opacity: .4;
  }



  /* ---------- Achievement Cards ---------- */

  .achieve-card{
      background:var(--card-bg);
      border-radius:24px;
      overflow:hidden;

      border:1px solid var(--glass-border);

      box-shadow:var(--shadow-md);

      transition:
      transform .3s ease,
      box-shadow .3s ease;
  }

  .achieve-card:hover{
      transform:translateY(-6px);
      box-shadow:var(--shadow-lg);
  }

  /* Image section */

  .achieve-img-wrap{
      position:relative;

      width:100%;
      height:260px;

      overflow:hidden;

      display:flex;
      align-items:center;
      justify-content:center;

      background:#fff;

      padding:15px;
  }

  /* Main fix: prevents image crop */

  .achieve-img{
      width:100%;
      height:100%;

      display:block;

      object-fit:contain;
      object-position:center;

      transition:
      transform .5s ease;
  }

  .achieve-card:hover .achieve-img{
      transform:scale(1.02);
  }

  /* Ribbon */

  .achieve-ribbon{
      position:absolute;
      top:14px;
      left:14px;

      background:
      linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
      );

      color:#fff;

      font-size:.72rem;
      font-weight:700;

      padding:6px 14px;

      border-radius:20px;

      letter-spacing:.03em;

      box-shadow:
      0 4px 12px rgba(79,70,229,.3);

      z-index:2;
  }

  /* Body */

  .achieve-body{
      padding:22px 24px 20px;
  }

  .achieve-title{
      font-size:1.05rem;
      font-weight:700;

      color:var(--text);

      margin-bottom:8px;

      letter-spacing:-0.02em;
  }

  .achieve-desc{
      font-size:.83rem;

      color:var(--text-muted);

      line-height:1.65;

      margin-bottom:14px;
  }

  .achieve-meta{
      display:flex;
      gap:8px;
      flex-wrap:wrap;
  }

  .achieve-tag{
      font-size:.72rem;
      font-weight:600;

      color:var(--primary);

      background:
      rgba(79,70,229,.08);

      padding:4px 10px;

      border-radius:20px;
  }

  /* Mobile */

  @media(max-width:768px){

  .achieve-img-wrap{
      height:220px;
      padding:10px;
  }

  .achieve-body{
      padding:18px;
  }

  .achieve-title{
      font-size:1rem;
  }

  .achieve-desc{
      font-size:.8rem;
  }

  }
  /* ---------- Level Gallery Cards ---------- */
  ===== LEVEL CARDS =====

  .lvl-gallery-card {
      background: #ffffff;
      border-radius: 16px;
      overflow: hidden;
      border: 0.5px solid #e5e7eb;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.05);
      transition: transform .28s ease, box-shadow .28s ease;
      padding-top: 10px;        /* ← adds breathing space above the image */
  }

  .lvl-gallery-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(79,70,229,0.10), 0 4px 10px rgba(0,0,0,0.06);
  }

  /* IMAGE AREA */
  .lvl-gallery-img-wrap {
      width: 100%;
      height: 170px;
      overflow: hidden;
      background: #f8fafc;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 12px 12px;     /* ← removed top padding here (card handles it now) */
      border-radius: 12px 12px 0 0;   /* ← rounds the top corners of the image wrap */
  }

  .lvl-gallery-img {
      width: 100%;
      height: 270px;
      object-fit: cover;        /* ← changed to cover so the image fills without gaps */
      object-position: top;     /* ← anchors image to top so the character's head shows */
      transition: transform .35s ease;
  }

  .lvl-gallery-card:hover .lvl-gallery-img {
      transform: scale(1.04);
  }

  /* BODY */
  .lvl-gallery-body {
      padding: 14px 16px 16px;
  }

  /* LEVEL BADGE */
  .lvl-gallery-num {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 3px 10px;
      border-radius: 999px;
      background: linear-gradient(135deg, #4F46E5, #7C3AED);
      color: white;
      font-size: 11px;
      font-weight: 700;
      margin-bottom: 8px;
      box-shadow: 0 4px 12px rgba(79,70,229,0.20);
      letter-spacing: 0.04em;
  }

  /* TITLE */
  .lvl-gallery-title {
      font-size: 0.9rem;
      line-height: 1.35;
      font-weight: 700;
      color: #111827;
      margin-bottom: 6px;
      letter-spacing: -0.01em;
  }

  /* DESCRIPTION */
  .lvl-gallery-desc {
      color: #64748b;
      font-size: 12px;
      line-height: 1.6;
  }
  /* ---------- Teaching Gallery ---------- */
  .teach-gallery-wrapper {
    overflow: hidden;
    border-radius: 20px;
    cursor: grab;
  }

  .teach-gallery-track {
    display: flex;
    gap: 20px;
    animation: teachScroll 12s linear infinite;
    width: max-content;
  }

  .teach-gallery-wrapper:hover .teach-gallery-track {
    animation-play-state: paused;
  }

  .teach-gallery-card {
    flex-shrink: 0;
    width: 480px;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    transition: transform .3s ease;
  }

  .teach-gallery-card:hover {
    transform: scale(1.03);
  }

  .teach-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
  }

  .teach-gallery-card:hover .teach-img {
    transform: scale(1.07);
  }

  @keyframes teachScroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-50%);
    }
  }

  @media(max-width: 768px) {
    .teach-gallery-card {
      width: 300px;
      height: 200px;
    }
  }


  /* Policies dropdown */

  .dropdown{
      position:relative;
  }

  .dropdown-toggle{
      text-decoration:none;
      color:#475569;
      font-size:.95rem;
      font-weight:600;
  }

  .dropdown-menu{
      position:absolute;
      top:100%;
      left:0;
      min-width:180px;
      list-style:none;
      background:#fff;
      border-radius:10px;
      padding:8px 0;
      margin-top:10px;

      box-shadow:
      0 5px 20px rgba(0,0,0,.08);

      display:none;
      z-index:1000;
  }

  .dropdown-menu li{
      width:100%;
  }

  .dropdown-menu li a{
      display:block;
      padding:10px 15px;
      color:#475569;
      text-decoration:none;
      font-size:.95rem;
      transition:.3s;
  }

  .dropdown-menu li a:hover{
      background:#EEF4FF;
      color:#1A56DB;
  }

  .dropdown:hover .dropdown-menu{
      display:block;
  }


  /* ===== AUTH PAGE (index.html) ===== */

  /* ── AUTH PAGE ROOT OVERRIDES ─────────────────────── */
  .auth-page {
    font-family: 'Outfit', system-ui, sans-serif;
    background: #EEF2F8;
    color: #0F172A;
    min-height: 100dvh;
    overflow-x: hidden;
  }

  /* ── NAVBAR (auth) ────────────────────────────────── */
  .auth-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    height: 70px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px) saturate(1.8);
    -webkit-backdrop-filter: blur(18px) saturate(1.8);
    border-bottom: 1px solid rgba(15,23,42,0.07);
    box-shadow: 0 1px 12px rgba(0,0,0,0.05);
    animation: slideDown .45s ease both;
  }

  @keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
  }

  .auth-nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }

  .auth-nav-logo-icon {
    width: 70px; height: 70px; border-radius: 9px;
    background: linear-gradient(135deg, #1A56DB, #7C3AED);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    box-shadow: 0 3px 10px rgba(26,86,219,0.3);
  }

  .auth-nav-logo-text {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600; font-size: 1.1rem;
    color: #0B1E3D; letter-spacing: -.02em;
  }
  .auth-nav-logo-text span { color: #1A56DB; }

  .auth-nav-links { list-style: none; display: flex; align-items: center; gap: 5px; }
  .auth-nav-links a {
    text-decoration: none; color: #475569; font-size: .95rem; font-weight: 600;
    padding: 6px 13px; border-radius: 8px;
    transition: background .2s cubic-bezier(.4,0,.2,1), color .2s cubic-bezier(.4,0,.2,1);
  }
  .auth-nav-links a:hover         { color: #1A56DB; background: #EEF4FF; }
  .auth-nav-links .nav-cta        { background: #1A56DB !important; color: #fff !important; box-shadow: 0 2px 8px rgba(26,86,219,.28); }
  .auth-nav-links .nav-cta:hover  { background: #1241B0 !important; color: #fff !important; }

  /* ── PAGE WRAPPER ─────────────────────────────────── */
  .auth-page-wrap {
    min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    padding: 76px 4% 32px;
  }

  /* ── AUTH CARD ────────────────────────────────────── */
  .auth-card {
    width: 100%; max-width: 1000px;
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(15,23,42,0.07);
    box-shadow: 0 8px 32px rgba(11,30,61,0.13), 0 2px 8px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 420px 1fr;
    overflow: hidden;
    animation: fadeUp .6s .1s ease both;
  }

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

  /* ── LEFT VISUAL ──────────────────────────────────── */
  .panel-visual {
    background: linear-gradient(155deg, #0B1E3D 0%, #152E57 50%, #1A4080 100%);
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 44px 36px;
    overflow: hidden;
  }

  .panel-visual::before {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 65% 55% at 15% 15%, rgba(59,130,246,.2) 0%, transparent 65%),
      radial-gradient(ellipse 55% 65% at 88% 82%, rgba(124,58,237,.18) 0%, transparent 65%);
  }

  .panel-visual::after {
    content: ''; position: absolute;
    width: 280px; height: 280px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%; top: -70px; right: -70px;
  }

  .panel-ring {
    position: absolute;
    width: 180px; height: 180px;
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 50%; bottom: -50px; left: -40px;
  }

  .panel-badge {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.7);
    font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px;
    margin-bottom: 14px;
  }

  .panel-heading {
    position: relative; z-index: 2;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300; font-size: 1.85rem;
    color: #fff; line-height: 1.22; letter-spacing: -.03em;
    text-align: center; margin-bottom: 24px;
  }
  .panel-heading em { font-style: italic; color: #93C5FD; }

  .panel-img {
    position: relative; z-index: 2;
    width: 100%; max-width: 300px; height: auto;
    border-radius: 16px;
    filter: drop-shadow(0 14px 36px rgba(0,0,0,.38));
    transition: transform .5s ease;
  }
  .panel-img:hover { transform: scale(1.025); }

  .panel-stats {
    position: relative; z-index: 2;
    display: flex; gap: 18px; margin-top: 22px;
  }

  .stat-pill {
    display: flex; flex-direction: column; align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 10px 16px;
  }
  .stat-pill .stat-num { font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
  .stat-pill .stat-lbl { font-size: .65rem; color: rgba(255,255,255,.5); font-weight: 500; margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; }

  /* ── RIGHT FORM PANEL ─────────────────────────────── */
  .panel-form {
    padding: 32px 40px 28px;
    display: flex; flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 108px);
  }
  .panel-form::-webkit-scrollbar       { width: 4px; }
  .panel-form::-webkit-scrollbar-track { background: transparent; }
  .panel-form::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 4px; }

  /* ── FORM PANEL ANIMATION ─────────────────────────── */
  .d-none { display: none !important; }

  .form-panel-anim { animation: authFadeIn .25s ease both; }

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

  /* ── FORM HEADER ──────────────────────────────────── */
  .form-step {
    font-size: .75rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: #1A56DB; margin-bottom: 4px;
  }
  .form-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600; font-size: 1.7rem;
    color: #0F172A; letter-spacing: -.03em; line-height: 1.2;
  }
  .form-sub  { margin-top: 5px; font-size: .875rem; color: #475569; line-height: 1.5; }
  .form-hdr  { margin-bottom: 20px; }

  /* ── FORM FIELDS ──────────────────────────────────── */
  .fgroup { display: flex; flex-direction: column; gap: 11px; margin-bottom: 12px; }
  .fwrap  { display: flex; flex-direction: column; flex: 1; }
  .flabel { display: block; font-size: .82rem; font-weight: 600; color: #0F172A; letter-spacing: .01em; margin-bottom: 5px; }

  .panel-form input[type="text"],
  .panel-form input[type="password"],
  .panel-form textarea,
  .panel-form select {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Outfit', system-ui, sans-serif; font-size: .925rem;
    color: #0F172A;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    outline: none;
    transition: border-color .2s cubic-bezier(.4,0,.2,1),
                box-shadow   .2s cubic-bezier(.4,0,.2,1),
                background   .2s cubic-bezier(.4,0,.2,1);
    appearance: none; -webkit-appearance: none;
  }
  .panel-form input::placeholder,
  .panel-form textarea::placeholder { color: #94A3B8; }
  .panel-form input:focus,
  .panel-form textarea:focus,
  .panel-form select:focus {
    border-color: #1A56DB; background: #fff;
    box-shadow: 0 0 0 3px rgba(26,86,219,.09);
  }
  .panel-form textarea { resize: vertical; min-height: 62px; }

  /* ── PASSWORD EYE ─────────────────────────────────── */
  .pw-wrap         { position: relative; }
  .pw-wrap input   { padding-right: 40px; }
  .pw-eye {
    position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: #94A3B8; padding: 2px;
    display: flex; align-items: center; justify-content: center;
    transition: color .2s cubic-bezier(.4,0,.2,1);
  }
  .pw-eye:hover { color: #1A56DB; }
  .pw-eye svg   { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

  /* ── PHONE ROW ────────────────────────────────────── */
  .phone-row        { display: flex; gap: 8px; }
  .phone-row select { width: 130px; flex-shrink: 0; }
  .phone-row input  { flex: 1; }

  /* ── TWO COLUMN ───────────────────────────────────── */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  /* ── FLOATING LABELS ──────────────────────────────── */
  .float-group { position: relative; margin-bottom: 14px; }

  .float-group input,
  .float-group textarea {
    width: 100%;
    padding: 22px 14px 10px;
    font-size: .92rem;
    font-family: 'Outfit', system-ui, sans-serif;
    color: #0F172A;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    outline: none;
    transition: all .2s ease;
  }
  .float-group input:focus,
  .float-group textarea:focus {
    border-color: #1A56DB; background: #fff;
    box-shadow: 0 0 0 3px rgba(26,86,219,.09);
  }
  .float-group label {
    position: absolute; left: 14px; top: 16px;
    font-size: .93rem; color: #64748B;
    pointer-events: none;
    transition: all .2s ease;
    background: #fff; padding: 0 4px;
  }
  .float-group input:focus           + label,
  .float-group input:not(:placeholder-shown) + label,
  .float-group textarea:focus        + label,
  .float-group textarea:not(:placeholder-shown) + label {
    top: -8px; left: 10px;
    font-size: .72rem; font-weight: 600; color: #1A56DB;
  }
  .float-group.pw-wrap input { padding-right: 42px; }

  /* ── OTP SECTION ──────────────────────────────────── */
  .otp-section {
    background: #F0FDF4; border: 1px solid #A7F3D0;
    border-radius: 10px; padding: 14px 16px;
    margin-bottom: 10px;
  }
  .otp-section-title { font-size: .78rem; font-weight: 700; color: #065F46; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
  .otp-trouble       { font-size: .78rem; color: #059669; margin-top: 7px; }
  .otp-trouble a     { color: #059669; font-weight: 700; text-decoration: none; }
  .otp-trouble a:hover { text-decoration: underline; }

  /* ── AUTH BUTTONS ─────────────────────────────────── */
  .auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; padding: 11px 18px;
    font-family: 'Outfit', system-ui, sans-serif; font-size: .875rem; font-weight: 600;
    border: none; border-radius: 10px; cursor: pointer;
    transition: all .2s cubic-bezier(.4,0,.2,1); letter-spacing: -.01em;
  }
  .auth-btn-primary {
    background: linear-gradient(135deg, #1A56DB, #1241B0);
    color: #fff;
    box-shadow: 0 3px 12px rgba(26,86,219,.28);
  }
  .auth-btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(26,86,219,.38); }
  .auth-btn-primary:active { transform: translateY(0); }

  .auth-btn-emerald {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    box-shadow: 0 3px 12px rgba(5,150,105,.25);
  }
  .auth-btn-emerald:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(5,150,105,.35); }

  .auth-btn-ghost {
    background: none; border: none;
    color: #475569; font-size: .85rem; font-weight: 500;
    cursor: pointer; padding: 7px 0;
    text-decoration: none;
    transition: color .2s cubic-bezier(.4,0,.2,1);
    width: auto; display: inline-flex;
  }
  .auth-btn-ghost:hover { color: #1A56DB; }

  .auth-btn-ghost-emerald {
    background: none; border: none;
    color: #059669; font-size: .85rem; font-weight: 600;
    cursor: pointer; padding: 7px 0;
    text-decoration: none;
    transition: color .2s cubic-bezier(.4,0,.2,1);
    width: auto; display: inline-flex; align-items: center; gap: 4px;
  }
  .auth-btn-ghost-emerald:hover { color: #047857; }

  /* ── FORM FOOTER & DIVIDER ────────────────────────── */
  .form-footer { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; }

  .auth-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 6px 0; color: #94A3B8; font-size: .72rem;
  }
  .auth-divider::before,
  .auth-divider::after { content: ''; flex: 1; height: 1px; background: #E2E8F0; }

  /* ── TRUST BAR ────────────────────────────────────── */
  .trust-bar   { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid #E2E8F0; }
  .trust-item  { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: #475569; font-weight: 500; }
  .ti-dot      { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; }
  .ti-dot.g    { background: #D1FAE5; color: #065F46; }
  .ti-dot.b    { background: #DBEAFE; color: #1E40AF; }
  .ti-dot.a    { background: #FEF3C7; color: #92400E; }

  /* ── FORGOT PASSWORD CARD ─────────────────────────── */
  .forgot-card {
    background: #F0FDF4; border: 1px solid #A7F3D0;
    border-radius: 16px; padding: 18px 20px; margin-top: 10px;
  }
  .forgot-card p   { font-size: .85rem; color: #065F46; line-height: 1.6; }
  .forgot-card a   { color: #059669; font-weight: 700; text-decoration: none; }

  /* ── AUTH RESPONSIVE ──────────────────────────────── */
  @media (max-width: 860px) {
    .auth-card                { grid-template-columns: 1fr; max-width: 480px; }
    .panel-visual             { padding: 32px 24px 28px; }
    .panel-heading            { font-size: 1.5rem; }
    .panel-img                { max-width: 200px; }
    .panel-stats              { gap: 12px; }
    .stat-pill                { padding: 8px 12px; }
    .panel-form               { padding: 28px 24px 24px; max-height: none; }
    .two-col                  { grid-template-columns: 1fr; }
  }

  @media (max-width: 520px) {
    .auth-page-wrap           { padding: 68px 3% 24px; }
    .panel-form               { padding: 22px 18px; }
    .auth-nav-links           { display: none; }
  }
  /* Sign In section */

  .signin-wrap{
      display:flex;
      align-items:center;
      justify-content:center;
      gap:12px;
      margin-top:15px;
      flex-wrap:nowrap;   /* keeps single line */
  }

  .signin-text{
      font-size:.9rem;
      color:#64748B;
      font-weight:500;
  }

  .signin-btn{
      border:none;
      outline:none;
      cursor:pointer;

      padding:10px 20px;
      border-radius:10px;

      background:linear-gradient(
      135deg,
      #1A56DB,
      #7C3AED
      );

      color:#fff;
      font-size:.85rem;
      font-weight:600;

      transition:all .3s ease;

      box-shadow:
      0 4px 12px rgba(26,86,219,.25);
  }

  .signin-btn:hover{
      transform:translateY(-2px);

      box-shadow:
      0 8px 20px rgba(26,86,219,.35);

      background:linear-gradient(
      135deg,
      #1241B0,
      #6D28D9
      );
  }

  .signin-btn:active{
      transform:translateY(0);
  }

  /* mobile */

  @media(max-width:480px){

  .signin-wrap{
      gap:8px;
  }

  .signin-text{
      font-size:.82rem;
  }

  .signin-btn{
      padding:8px 16px;
      font-size:.8rem;
  }

  }

  /* Create account section */

  .signup-wrap{
      display:flex;
      align-items:center;
      justify-content:center;
      gap:12px;
      margin-top:15px;
      flex-wrap:nowrap;
  }

  .signup-text{
      font-size:.9rem;
      color:#64748B;
      font-weight:500;
  }

  .signup-btn{
      border:none;
      outline:none;
      cursor:pointer;

      padding:10px 20px;
      border-radius:10px;

      background:linear-gradient(
      135deg,
      #059669,
      #10B981
      );

      color:#fff;
      font-size:.85rem;
      font-weight:600;

      transition:all .3s ease;

      box-shadow:
      0 4px 12px rgba(5,150,105,.25);
  }

  .signup-btn:hover{
      transform:translateY(-2px);

      background:linear-gradient(
      135deg,
      #047857,
      #059669
      );

      box-shadow:
      0 8px 20px rgba(5,150,105,.35);
  }

  .signup-btn:active{
      transform:translateY(0);
  }

  @media(max-width:480px){

  .signup-wrap{
      gap:8px;
  }

  .signup-text{
      font-size:.82rem;
  }

  .signup-btn{
      padding:8px 16px;
      font-size:.8rem;
  }

  }
  /* Mobile menu */

  .mobile-menu-btn{
      display:none;
  }

  #hamburgerBtn{
      border:none;
      background:none;
      font-size:28px;
      cursor:pointer;
  }

  .mobile-menu{
      display:none;
  }

  .mobile-menu.active{
      display:flex;
      flex-direction:column;

      position:absolute;
      top:70px;
      right:10px;

      width:220px;
      padding:15px;

      background:white;
      border-radius:12px;

      box-shadow:0 8px 20px rgba(0,0,0,.1);
  }

  .mobile-menu a{
      padding:10px;
      text-decoration:none;
      color:#475569;
  }

  @media(max-width:768px){

  .auth-nav-links{
      display:none;
  }

  .mobile-menu-btn{
      display:block;
  }

  }

  /* Mobile hamburger */

  .hamburger{
      display:flex;
      flex-direction:column;
      gap:5px;
      cursor:pointer;
      border:none;
      background:none;
      padding:5px;
  }

  .hamburger span{
      width:25px;
      height:3px;
      background:#334155;
      border-radius:5px;
      transition:.3s;
  }

  /* mobile menu */
  /* Mobile Menu */
  .mobile-menu{
      position: fixed;
      top: 72px;
      left: 0;
      width: 100%;
      background: #fff;

      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 20px;

      z-index: 999;

      /* Hide by default */
      opacity: 0;
      visibility: hidden;
      transform: translateY(-15px);
      pointer-events: none;

      transition: all .3s ease;
  }

  /* Open only after clicking */
  .mobile-menu.active{
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
  }
  .mobile-menu a{
      padding:10px;
      text-decoration:none;
      color:#475569;
      border-radius:8px;
  }

  .mobile-menu a:hover{
      background:#f1f5f9;
  }
/* ===== LEVEL GALLERY — MOBILE ONLY FIX ===== */
@media (max-width: 768px) {

  /* 2-column grid instead of 1 */
  #levels .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Fix image — show full character, no crop */
  .lvl-gallery-img-wrap {
    height: 130px;
    padding: 4px;
  }

  .lvl-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
  }

  /* Tighter body text */
  .lvl-gallery-body {
    padding: 8px 10px 10px;
  }

  .lvl-gallery-num {
    font-size: 10px;
    padding: 2px 8px;
    margin-bottom: 4px;
  }

  .lvl-gallery-title {
    font-size: 11px;
    margin-bottom: 3px;
  }

  .lvl-gallery-desc {
    font-size: 10px;
    line-height: 1.45;
  }
}

@media (max-width: 400px) {
  .lvl-gallery-img-wrap {
    height: 110px;
  }

  .lvl-gallery-title {
    font-size: 10px;
  }

  .lvl-gallery-desc {
    display: none; /* hide desc on very small screens to keep cards compact */
  }
}


/* Demo Video Popup */

.video-modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.8);
    z-index:9999;
    justify-content:center;
    align-items:center;
}

.video-content{
    width:90%;
    max-width:850px;
    position:relative;
}

.video-content iframe{
    border-radius:12px;
}

#closeVideo{
    position:absolute;
    top:-35px;
    right:0;
    color:white;
    font-size:35px;
    cursor:pointer;
}