/* ==========================================================================
   SPEEDMATH - MAIN STYLESHEET (Refactored & Optimized)
   Import variables first, then build upon them
   ========================================================================== */

/* Import CSS Variables, Fonts, Typography + Shared Components */
@import url('variables.css');
@import url('fonts.css');
@import url('typography.css');
@import url('scrollbar.css');
@import url('components.css');
@import url('ad-zone.css');

/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Print Worksheet brand watermark (partials/share-card.ejs, 14 pages) — hidden by default
   everywhere; the @media print styling that actually shows it lives in practice.css, scoped to
   the pages that have the Print Worksheet feature. This base rule needs to be sitewide (main.css
   loads on all 14) since test-result.ejs includes the same partial but not practice.css. */
.print-watermark { display: none; }

html {
  background: var(--bg-page);
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: var(--lh-normal);
  font-size: var(--fs-md);
  -webkit-font-smoothing: antialiased;
  /* Guards against the hero section's 100vw full-bleed trick introducing a
     few px of horizontal overflow on browsers where 100vw includes the
     scrollbar gutter. Using 'clip' instead of 'hidden' preserves position: sticky. */
  overflow-x: clip;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

button {
  cursor: pointer;
}

code {
  font-size: 0.875em;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--surface-tertiary, rgba(125, 125, 125, 0.1));
  border: 1px solid var(--border-subtle);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm, 4px);
  color: var(--text-main);
}

pre {
  background: var(--bg-section-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 8px);
  padding: var(--space-4);
  overflow-x: auto;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  border-radius: 0;
}

/* Devanagari (Hindi) Safety Rules */
:lang(hi) {
  letter-spacing: 0 !important;
  line-height: var(--lh-hindi, 1.8);
}

/* Page Wrapper with Background Pattern */
.page-wrapper {
  min-height: 100vh;
  background-image: var(--hero-pattern);
  background-size: var(--hero-pattern-size);
  overflow-x: clip;
  position: relative;
}

/* ==========================================================================
   2. UTILITY CLASSES
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Flexbox Utilities */
.d-flex { display: flex; align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }

/* Gap Utilities */
.gap-4 { gap: var(--space-4); }

/* Text Utilities */
.text-center { text-align: center; }
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-accent { color: var(--accent-secondary); }

/* Display Utilities */
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   3. ICONS (Lucide)
   ========================================================================== */

.lucide,
[data-lucide] {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2px;
  flex-shrink: 0; /* Prevent squishing */
}

/* --- Contextual Icon Sizes --- */

/* Navigation */
.nav-link .lucide {
  width: 15px;
  height: 15px;
}

/* Buttons */
.btn .lucide {
  width: 16px;
  height: 16px;
}

/* Feature/Icon Boxes (Large) */
.icon-box .lucide {
  width: 28px;
  height: 28px;
  stroke-width: 2.5px;
}


/* Step Badges (How it works) */
.step-icon-badge .lucide {
  width: 32px;
  height: 32px;
  stroke-width: 2.5px;
}

/* Stats Icons */
.stat-icon-circle .lucide {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-drawer .nav-link .lucide {
  width: 18px;
  height: 18px;
}
.drawer-more-body .nav-link .lucide {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   4. BUTTONS (Enhanced with Variables)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 8px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-base);
}

/* [aria-disabled="true"] covers buttons that stay clickable in JS (so a click can still show a
   helpful message) but must still look and feel disabled — the native :disabled pseudo-class
   only matches the actual disabled attribute, which blocks click events entirely. */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Gradient Button */
.btn-gradient {
  background: var(--accent-gradient);
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 3px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25);
  margin-bottom: 3px;
}

.btn-gradient:hover:not(:disabled):not([aria-disabled="true"]) {
  opacity: 0.9;
  background: var(--btn-gradient);
  transform: translateY(-1px);
  box-shadow: 0px 4px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25);
}

.btn-gradient:active:not(:disabled):not([aria-disabled="true"]) {
  transform: translateY(3px) !important;
  box-shadow: 0px 0px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.05s, box-shadow 0.05s !important;
}

/* Outline Button */
.btn-outline {
  background: var(--bg-section);
  color: var(--text-main);
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 15px;
  box-shadow: 0px 2px 0px var(--border-subtle);
  margin-bottom: 2px;
}

.btn-outline:hover {
  background: var(--hover-bg);
  transform: translateY(-1px);
  box-shadow: 0px 3px 0px var(--border-subtle);
}

.btn-outline:active {
  transform: translateY(2px) !important;
  box-shadow: 0px 0px 0px var(--border-subtle) !important;
  transition: transform 0.05s, box-shadow 0.05s !important;
}

/* Primary Solid Button */
.btn-primary {
  background: var(--btn-gradient);
  color: white;
  padding: 8px 20px;
  border-radius: 10px;
  box-shadow: 0px 3px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25);
  margin-bottom: 3px;
}

.btn-primary:hover {
  opacity: 0.9;
  background: var(--accent-gradient);
  transform: translateY(-1px);
  box-shadow: 0px 4px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
  transform: translateY(3px) !important;
  box-shadow: 0px 0px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.05s, box-shadow 0.05s !important;
}

/* White Button */
.btn-white {
  background: #ffffff;
  color: #0f172a;
  border-radius: 10px;
  box-shadow: 0px 2px 0px #94a3b8;
  margin-bottom: 2px;
}

.btn-white:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0px 3px 0px #94a3b8;
}

.btn-white:active {
  transform: translateY(2px) !important;
  box-shadow: 0px 0px 0px #94a3b8 !important;
  transition: transform 0.05s, box-shadow 0.05s !important;
}

/* Small Button modifier — combine with a color variant, e.g. "btn btn-primary btn-sm".
   Placed after the color variants so its padding/font-size win the equal-specificity tie. */
.btn-sm {
  padding: 6px 16px;
  font-size: var(--fs-sm);
}

.btn-sm .lucide {
  width: 14px;
  height: 14px;
}

/* Icon Button (Theme Toggle) */
.btn-icon {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 20px;
  color: var(--text-main);
  transition: all var(--transition-base);
}

.btn-icon:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-sm);
  background: var(--admin-active-bg);
  transform: translateY(-1px);
}



/* Theme Toggle Visibility (CSS-driven) */
.header-theme-toggle #icon-moon,
.auth-theme-btn #icon-moon { display: block; }

.header-theme-toggle #icon-sun,
.auth-theme-btn #icon-sun { display: none; }

[data-theme="dark"] .header-theme-toggle #icon-moon,
[data-theme="dark"] .auth-theme-btn #icon-moon { display: none; }

[data-theme="dark"] .header-theme-toggle #icon-sun,
[data-theme="dark"] .auth-theme-btn #icon-sun { display: block; }


/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate3d(-50%, 0, 0); /* Force GPU acceleration to prevent mobile scroll clipping */
  z-index: 1000; /* Ensure it stays above mobile drawer (999) and overlay */
  width: calc(100% - 48px);
  max-width: 1240px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  transition: padding 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
  will-change: transform;
}

/* Compact when scrolled */
.site-header.scrolled {
  transform: translate3d(-50%, 0, 0);
  padding: 7px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  background: rgba(255, 255, 255, 0.92);
}

.site-header .container {
  padding: 0; /* Remove container padding inside pill */
}

/* Offset page content from fixed header */
.page-wrapper {
  padding-top: 82px;
}
/* Dark mode floating header */
[data-theme="dark"] .site-header {
  background: rgba(15, 17, 26, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .site-header.scrolled {
  background: rgba(15, 17, 26, 0.92);
}

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* Navigation Links */
.nav-list {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: var(--hover-bg);
}

.nav-link.active {
  background-color: var(--hover-bg);
  color: var(--accent-primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Desktop Actions */
.desktop-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.header-auth-btn {
  padding-block: 8px;
  font-size: 14px;
}

/* Mobile drawer collapsible More */
.drawer-more-wrap {
  display: flex;
  flex-direction: column;
}
.drawer-more-toggle {
  background: none;
  border: none;
  width: 100%;
  line-height: inherit;
}
.drawer-more-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-more-body.open {
  max-height: 300px;
  padding-top: 8px;
}
.drawer-more-toggle[aria-expanded="true"] .drawer-more-chevron {
  transform: rotate(180deg);
}

/* Mobile drawer login button — outlined style */
.drawer-login-btn {
  width: 100%;
  justify-content: center;
  border: 2px solid var(--border-subtle);
  background: transparent;
  color: var(--text-main);
  box-shadow: 0px 2px 0px var(--border-subtle);
  margin-bottom: 2px;
  padding: 6px 20px;
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s, background 0.15s;
  transform: translateY(0);
}
.drawer-login-btn:hover {
  color: var(--accent-primary);
  background: var(--hover-bg);
  box-shadow: 0px 3px 0px rgba(0, 126, 255, 0.4);
  transform: translateY(-1px);
}
.drawer-login-btn:active {
  transform: translateY(2px) !important;
  box-shadow: 0px 0px 0px transparent !important;
  transition: transform 0.05s, box-shadow 0.05s !important;
}

/* More dropdown & account dropdown in nav */
.nav-more-toggle {
  background: none;
  border: 1px solid transparent;
  line-height: inherit;
}
.nav-more-chevron {
  width: 13px !important;
  height: 13px !important;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav-more-wrapper.open .nav-more-chevron {
  transform: rotate(180deg);
}
.nav-more-dropdown {
  left: -24px;
  right: auto;
  top: calc(100% + 16px); /* Exact bottom line align (compensating 1px border) */
  
  /* 2 Column Layout & Fit-Content */
  display: grid;
  grid-template-columns: max-content max-content;
  width: max-content;
  min-width: 0;
  padding: 8px;
}
.nav-account-dropdown {
  right: 0;
  left: auto;
  min-width: 150px;
}

/* User Menu Dropdown */
.user-menu-wrapper {
  position: relative;
}

/* Toggle Button (Icon only now) */

.user-menu-toggle {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
}
.user-menu-toggle .lucide {
  stroke: #fff;
}
.user-menu-toggle:hover,
.user-menu-wrapper.open .user-menu-toggle {
  background: var(--btn-gradient);
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0.88;
}

.user-menu-toggle .lucide {
  width: 22px;
  height: 22px;
}


.user-menu-header {
  padding: 12px 16px;
  background: var(--bg-section-soft);
  margin-bottom: 4px;
}

.user-menu-dropdown hr {
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  margin: 4px 0;
}

.user-name {
  display: block;
  font-weight: var(--fw-bold);
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.user-role {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-soft);
  font-weight: 600;
}

.user-role.badge-admin,
.user-role.badge-super_admin {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}


.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
  padding: 4px 0;
}

.user-menu-wrapper.open .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: all var(--transition-base);
}

.user-menu-item:hover {
  background: var(--hover-bg);
  color: var(--accent-primary);
}

.user-menu-item .lucide {
  width: 18px;
  height: 18px;
}

/* More & account dropdowns — match nav-link icon size */
.nav-more-dropdown .user-menu-item .lucide,
.nav-account-dropdown .user-menu-item .lucide {
  width: 15px;
  height: 15px;
}

.user-menu-item.logout {
  border-top: 1px solid var(--border-subtle);
  color: var(--color-orange);
}

.user-menu-item.logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-orange);
}

/* Mobile drawer logout link */
.logout-link {
  color: var(--accent-secondary) !important;
}

.logout-link:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Mobile Menu Toggle Button (Animated Hamburger to Close) */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 250ms ease, opacity 250ms ease;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
  transform-origin: 40% 50%;
  transform: translateY(7px) rotate(42deg);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
  transform-origin: 40% 50%;
  transform: translateY(-7px) rotate(-42deg);
}

@media (prefers-reduced-motion: reduce) {
  .hamburger-bar {
    transition: none !important;
  }
}

.mobile-overlay {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 990; /* Below drawer (999) but high enough */
  display: none;
}

.mobile-overlay.open {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 76px; /* Positioned just below the floating site header */
  left: 12px;
  right: 12px;
  width: auto;
  height: auto;
  max-height: calc(100dvh - 88px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  box-shadow: var(--shadow-modal);
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  overflow-y: auto;
  padding-bottom: 8px;
}

.mobile-drawer .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--text-main);
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
  font-weight: var(--fw-semibold);
}
.mobile-drawer .nav-link:hover {
  background: var(--hover-bg);
  color: var(--text-main);
}
.mobile-drawer .nav-link:active,
.mobile-drawer .nav-link[aria-current="page"] {
  background: var(--admin-active-bg);
  color: var(--accent-primary);
  font-weight: var(--fw-bold);
}

.mobile-nav-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

/* Premium 3D button style for footer */
.mobile-nav-footer .nav-link {
  justify-content: center;
  background: var(--bg-section-soft);
  border: 1px solid var(--border-subtle);
  border-bottom-width: 4px;
  padding: 10px 12px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.mobile-nav-footer .nav-link:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
  margin-bottom: 3px;
}

.mobile-nav-footer .logout-link {
  color: var(--accent-secondary);
}

/* Span full width only when logout is alone (1 button) or when it is the 3rd button (admin + dashboard + logout) */
.mobile-nav-footer .logout-link:only-child,
.mobile-nav-footer .nav-link:nth-child(3) {
  grid-column: 1 / -1;
}

.mobile-nav-footer .logout-link:hover {
  background: var(--color-red-bg);
}


/* ============================================================
   HEADER ACCESSIBILITY ENHANCEMENTS
   ============================================================ */

/* Mobile drawer title */
.mobile-drawer-title {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-main);
}

/* Mobile drawer header row (title + close button) */
.mobile-drawer-header {
  margin-bottom: 2rem;
}

/* Mobile drawer nav divider */
.mobile-drawer hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 16px 0;
}



/* Nav link text wrapping */
.nav-link span {
  white-space: nowrap;
}

/* Enhanced active link with ARIA current */
.nav-link[aria-current="page"] {
  color: var(--accent-primary);
  font-weight: var(--fw-semibold);
  background-color: var(--admin-active-bg);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  width: 100%;
  margin-top: -82px; /* Pulls background up under fixed header */
  padding: 170px 0 var(--space-10);
  border: none;
  box-shadow: none;
  overflow: hidden;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(at 0% 0%, var(--hero-glow-1) 0, transparent 50%),
    radial-gradient(at 100% 10%, var(--hero-glow-2) 0, transparent 50%);
}

/* GPU-composited animated background grid (shared by .hero-section & .page-header) */
.hero-section::before,
.page-header::before {
  content: "";
  position: absolute;
  inset: -48px;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  will-change: transform, opacity;
  animation:
    heroGridDrift 7s linear infinite,
    heroGridPulse 4s ease-in-out infinite;
}

/* Fade grid cleanly into --bg-page at the bottom edge */
.hero-section::after,
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(to bottom, transparent 65%, var(--bg-page) 100%);
}

@keyframes heroGridDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(48px, 48px, 0); }
}

@keyframes heroGridPulse {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section::before,
  .page-header::before {
    animation: none;
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--content-xl);
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-content-col {
  text-align: left;
}

.hero-visual-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-img {
  width: 100%;
  max-width: 540px;
  height: auto;
  /* No border-radius/shadow here — the image itself already has a framed,
     shadowed card look baked in, stacking a second one looked odd. */
}

/* Floating stat badges over the hero image — reuse the real numbers already
   shown in the stats bar below, so nothing here is a fabricated claim. */
.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 10px 16px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: heroBadgeFloat 6s ease-in-out infinite;
}

/* Staggered delays so the badges bob out of sync, not in lockstep. */
.hero-badge-questions {
  animation-delay: 0s;
}

.hero-badge-subscribers {
  animation-delay: 3s;
}

.hero-badge-sessions {
  animation-delay: 1.5s;
}

.hero-badge-answered {
  animation-delay: 4.5s;
}

@keyframes heroBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Respect the OS-level "reduce motion" accessibility setting — stop the
   continuous bob entirely rather than just slowing it down. */
@media (prefers-reduced-motion: reduce) {
  .hero-float-badge {
    animation: none;
  }
}

.hero-float-badge .lucide {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.hero-float-badge strong {
  display: block;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--text-main);
  line-height: 1.2;
}

.hero-float-badge span {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  white-space: nowrap;
}

/* Badges extend past the screenshot's edges so they never sit over its own UI. */
.hero-badge-questions {
  bottom: -16px;
  left: 24px;
}

.hero-badge-subscribers {
  top: -16px;
  right: 24px;
}

.hero-badge-sessions {
  bottom: 24%;
  right: 0;
}

.hero-badge-answered {
  top: -12px;
  left: 12px;
}

/* Light theme (default) shows the white preview, hides the black one;
   [data-theme="dark"] on body (existing sitewide dark-mode convention)
   flips which one is visible. */
.hero-visual-dark {
  display: none;
}

[data-theme="dark"] .hero-visual-light {
  display: none;
}

[data-theme="dark"] .hero-visual-dark {
  display: block;
}

/* Hero Badge - Neumorphic Soft UI (Light & Dark) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15px;
  color: var(--color-warning-text);
  margin-bottom: var(--space-4);
  white-space: nowrap;
  user-select: none;
  cursor: default;
  /* Light theme: soft embossed pill */
  background: linear-gradient(145deg, #f0e2e2 0%, #e5eafe 100%);
  box-shadow: 
    3px 3px 8px rgba(160, 175, 202, 0.28),
    -3px -3px 8px #ffffff,
    inset 1px 1px 1.5px rgba(255, 255, 255, 0.9),
    inset -1px -1px 2px rgba(160, 175, 202, 0.1);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.hero-badge .lucide {
  width: 13.5px;
  height: 13.5px;
  stroke-width: 2.2px;
  color: var(--color-warning-text);
  flex-shrink: 0;
  transition: transform var(--transition-base), filter var(--transition-base);
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 
    5px 6px 14px rgba(160, 175, 202, 0.45),
    -5px -5px 12px #ffffff,
    inset 1px 1px 1.5px rgba(255, 255, 255, 0.95);
}

.hero-badge:hover .lucide {
  transform: scale(1.12) rotate(-6deg);
}

/* Dark Mode Neumorphic Hero Badge */
[data-theme="dark"] .hero-badge {
  background: linear-gradient(145deg, #414551 0%, #2d303d 100%);
  box-shadow: 
    4px 4px 10px rgba(0, 0, 0, 0.6),
    -2px -2px 6px rgba(255, 255, 255, 0.03),
    inset 1px 1px 1px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hero-badge .lucide {
  filter: drop-shadow(0 0 6px rgba(var(--color-warning-rgb), 0.4));
}

[data-theme="dark"] .hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 
    6px 7px 18px rgba(0, 0, 0, 0.85),
    -4px -4px 10px rgba(255, 255, 255, 0.06),
    0 0 16px rgba(var(--color-warning-rgb), 0.12),
    inset 1px 1px 1.5px rgba(255, 255, 255, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-badge .lucide,
  .hero-badge:hover,
  .hero-badge:hover .lucide {
    transition: none !important;
    transform: none !important;
  }
}

/* Hero Title */
.hero-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
}

/* Hero Description */
.hero-description {
  font-size: var(--fs-md);
  color: var(--text-main);
  margin: 0 0 28px;
  line-height: var(--lh-relaxed);
}

/* ==========================================================================
   7. SECTIONS & CARDS
   ========================================================================== */

.section-padding {
  padding: var(--space-10) var(--space-6) var(--space-4);
}

.section-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--space-3);
  line-height: var(--lh-tight);
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--space-3);
  line-height: var(--lh-tight);
  text-align: center;
  color: var(--text-main);
}

.page-title .lucide {
  width: 36px;
  height: 36px;
  stroke-width: 2.5px;
  color: var(--text-main);
}

/* Long titles wrap to 2-3 lines on narrow screens — icon stays a fixed-size block beside a now-
   tall text block, looking imbalanced. Stack vertically instead, both centered. */
@media (max-width: 480px) {
  .page-title {
    flex-direction: column;
    gap: var(--space-2);
  }
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-soft);
  margin-bottom: var(--space-8);
}

/* ===== STATS BAR ===== */
.live-stats-badge-wrap {
  text-align: center;
  margin-top: var(--space-8);
  margin-bottom: var(--space-6);
}

.hero-section ~ .stats-bar-section .live-stats-badge-wrap {
  margin-top: var(--space-4);
}

.live-stats-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--accent-secondary);
  background: var(--color-red-bg);
  padding: 6px var(--space-4);
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  letter-spacing: 0.5px;
  border: 1px solid rgba(var(--color-error-rgb), 0.2);
}

.pulse-dot {
  width: var(--space-2);
  height: var(--space-2);
  background-color: var(--accent-secondary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 rgba(var(--color-error-rgb), 0.4);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--color-error-rgb), 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(var(--color-error-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--color-error-rgb), 0); }
}

/* Odometer typography: Geist Mono & Tabular Numerics across all layers */
.odometer.odometer-auto-theme,
.odometer.odometer-theme-minimal,
.odometer-inside,
.odometer-digit,
.odometer-value,
.odometer-formatting-mark {
  font-family: var(--font-mono) !important;
  font-weight: var(--fw-extrabold) !important;
  line-height: var(--lh-tight) !important;
  font-variant-numeric: tabular-nums;
}

.odometer-inside {
  display: inline-flex !important;
  align-items: baseline;
}

.odometer .odometer-digit {
  margin: 0 !important;
  padding: 0 !important;
}

/* Gradient: directly on visible glyphs (digits & commas) */
.odometer-value,
.odometer-formatting-mark {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Stats Bar - Card Grid */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding: var(--space-6) var(--space-4);
  max-width: 1100px;
  margin: 0 auto;
}

.stats-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--space-5) var(--space-4);
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  box-shadow: 0px 3px 0px var(--border-subtle), 0 8px 15px rgba(0,0,0,0.02);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.stats-bar-item:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 0px rgba(0, 126, 255, 0.25), 0 15px 25px rgba(0,0,0,0.06);
}

.stats-bar-value {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: var(--fw-bold);
  color: var(--text-main);
  line-height: 1.1;
}

.stats-bar-label {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  font-weight: var(--fw-medium);
  text-align: center;
}

/* Hero Section CTA Buttons */
.hero-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero Action Hint & Divider */
.hero-actions-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text-soft);
  margin-top: var(--space-3);
  margin-bottom: 0;
  line-height: var(--lh-normal);
}

.hero-actions-hint i,
.hero-actions-hint svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  color: currentColor;
  flex-shrink: 0;
}

.hero-divider {
  width: 100%;
  max-width: 460px;
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-4) 0;
}

/* Hero Social Proof Strip */
.hero-social-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}

.hero-proof-text {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  margin: 0;
  line-height: 1.4;
}

.hero-proof-text strong {
  color: var(--text-main);
  font-weight: var(--fw-semibold);
}

.hero-proof-chips {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-main);
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}


/* Grid Layouts */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}

/* Feature Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6) var(--space-5);
  transition: all var(--transition-base);
}

.card.reveal {
  transition: all var(--transition-base), opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.card:hover,
.card.reveal-visible:hover {
  transform: translateY(-3px);
  border-color: var(--border-soft-blue);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

/* Icon Box */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  margin-bottom: 18px;
}

.icon-blue { background: var(--gradient-blue); }
.icon-orange { background: var(--gradient-orange); }
.icon-green { background: var(--gradient-green); }
.icon-purple { background: var(--gradient-purple); }
.icon-yellow { background: var(--gradient-yellow); }

.card h3 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}

.card p {
  font-size: var(--fs-base);
  color: var(--text-soft);
  margin: 0;
  line-height: var(--lh-normal);
}

/* ==========================================================================
   8. HOW IT WORKS SECTION
   ========================================================================== */

.how-it-works-grid-enhanced {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: var(--space-10);
  position: relative;
}

/* Step Card - Side by Side Layout */
.how-step-card-enhanced {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

/* Reverse layout for even steps */
.how-step-card-enhanced.reverse {
  direction: rtl;
}

.how-step-card-enhanced.reverse > * {
  direction: ltr;
}

/* ========== CONTENT SIDE ========== */
.step-content-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 20px;
}

/* Step Header with Icon + Number */
.step-header-enhanced {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

/* Icon Badge - Lucide icons with Theme Colors */
.step-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 32px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.step-icon-badge.icon-blue {
  background: var(--gradient-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.step-icon-badge.icon-orange {
  background: var(--gradient-orange);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.step-icon-badge.icon-green {
  background: var(--gradient-green);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.step-icon-badge.icon-purple {
  background: var(--gradient-purple);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}


.step-icon-badge:hover {
  transform: scale(1.05);
}

/* Step Number - Original Style */
.step-number-enhanced {
  font-size: 52px;
  font-weight: var(--fw-extrabold);
  line-height: 1;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  opacity: 0.5;
}

/* Step Title */
.step-title-enhanced {
  font-size: 1.75rem;
  font-weight: var(--fw-extrabold);
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
}

/* Step Description */
.step-description-enhanced {
  font-size: var(--fs-md);
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}

/* Features List */
.step-features-list-enhanced {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-features-list-enhanced li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: var(--fs-base);
  font-weight: 500;
}

.feature-check-icon-enhanced {
  font-size: 1.25rem;
  color: var(--color-emerald);
  flex-shrink: 0;
}

/* ========== STEP IMAGE SIDE ========== */
.step-image-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-image-side img {
  width: 100%;
  max-width: 520px;
  height: auto;
  transition: transform 0.3s ease;
}

.step-image-side img:hover {
  transform: translateY(-6px);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablets and below */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .how-it-works-grid-enhanced {
    gap: 20px;
  }

  .how-step-card-enhanced {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .how-step-card-enhanced.reverse {
    direction: ltr;
  }

  .step-image-side {
    order: -1;
  }

  .step-image-side img {
    max-width: 100%;
  }

  .step-header-enhanced {
    gap: var(--space-3);
  }

  .step-icon-badge {
    width: 56px;
    height: 56px;
    font-size: 30px;
  }

  .step-number-enhanced {
    font-size: 44px;
  }

  .step-title-enhanced {
    font-size: 1.5rem;
  }
}

/* Mobile devices */
@media (max-width: 640px) {
  .hero-visual-col {
    display: none;
  }

  .hero-content-col {
    text-align: center;
  }

  .hero-description {
    font-size: var(--fs-base);
  }

  .hero-badge {
    font-size: 11.5px;
    padding: 3px 10px;
    gap: 5px;
  }

  .hero-badge .lucide {
    width: 12.5px;
    height: 12.5px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .how-it-works-grid-enhanced {
    gap: 50px;
  }


  .step-image-side {
    display: none;
  }

  .step-header-enhanced {
    gap: var(--space-2);
  }

  .step-icon-badge {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .step-number-enhanced {
    font-size: 36px;
  }

  .step-title-enhanced {
    font-size: 1.375rem;
  }

  .step-description-enhanced {
    font-size: var(--fs-base);
  }

  .step-features-list-enhanced li {
    font-size: var(--fs-sm);
  }


  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    padding: var(--space-4) var(--space-3);
  }

  .hero-actions {
    gap: var(--space-3);
  }

  .hero-actions .btn {
    padding: 8px 14px;
  }
}

/* Extra small devices */
@media (max-width: 400px) {

  .hero-actions {
    gap: var(--space-2);
  }

  .hero-actions .btn {
    padding: 8px 14px;
    font-size: 14px;
  }
}

/* End How It Works Enhanced Section */

/* ==========================================================================
   9. PERSONAS (Who Is This For)
   ========================================================================== */

.persona-item {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: var(--space-6) var(--space-5);
  transition: all var(--transition-base);
}

.persona-item.reveal {
  transition: all var(--transition-base), opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.persona-item:hover,
.persona-item.reveal-visible:hover {
  transform: translateY(-3px);
  border-color: var(--border-soft-blue);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.persona-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: var(--hover-bg);
}

.persona-icon .lucide {
  height: 28px;
  width: 28px;
}

.persona-icon--blue   { color: var(--color-info-dark); }
.persona-icon--orange { color: var(--color-orange); }
.persona-icon--green  { color: var(--color-success); }
.persona-icon--purple { color: var(--color-purple); }

.persona-item h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}

.persona-item p {
  font-size: var(--fs-base);
  color: var(--text-soft);
  margin: 0;
  line-height: var(--lh-normal);
}

/* ==========================================================================
   10. FAQ ACCORDION SECTION
   ========================================================================== */

.faq-container {
  max-width: 800px;
  margin: var(--space-10) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-soft-blue);
  box-shadow: 0px 4px 12px rgba(59, 130, 246, 0.08);
}

.faq-item.active {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0px 4px 14px rgba(59, 130, 246, 0.12);
}

/* FAQ Question Button */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-main);
  transition: all var(--transition-base);
}

.faq-question:hover {
  color: var(--text-main);
}

.faq-icon {
  font-size: 24px;
  color: #3b82f6;
  transition: transform var(--transition-base), color var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item.active .faq-answer {
  padding-bottom: var(--space-5);
}

.faq-answer p {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--text-soft);
  line-height: var(--lh-relaxed);
  border-top: 1px solid var(--text-muted);
  padding: var(--space-3) var(--space-5) 0px;
}

/* ==========================================================================
   11. CTA SECTION
   ========================================================================== */

.cta-section {
  padding: var(--space-14) var(--space-6);
}

.cta-inner {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  border-radius: var(--radius-3xl);
  background: var(--bg-cta);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
}

.cta-title {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--space-3);
  line-height: var(--lh-tight);
}

.cta-description {
  font-size: var(--fs-lg);
  max-width: 580px;
  margin: 0 auto 28px;
  opacity: 0.95;
  line-height: var(--lh-normal);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

/* ---- Footer Main ---- */
.site-footer {
  background: var(--bg-card);
  margin-top: auto;
}

.footer-main {
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Col 1: Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo-link {
  display: inline-block;
  line-height: 1;
  max-width: fit-content;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-tagline {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 400px;
  margin: 0;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  font-weight: var(--fw-medium);
  max-width: fit-content;
  transition: all var(--transition-base);
}

.footer-email .lucide {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.footer-email:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);  
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--hover-bg);
  color: var(--text-soft);
  border: 1.5px solid var(--border-subtle);
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.footer-social-btn .lucide {
  width: 16px;
  height: 16px;
}

.footer-social-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* PWA Install Button (footer) */
.footer-install-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  padding: 8px 16px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0px 3px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
  transform: translateY(0);
}
.footer-install-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0px 4px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25);
}
.footer-install-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0px 0px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.05s, box-shadow 0.05s !important;
}
.footer-install-btn .lucide {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Col 2 & 3 */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: fit-content;
}

.footer-col-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  transition: color var(--transition-base), transform var(--transition-base);
}

.footer-col-links a .lucide {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-soft);
  transition: color var(--transition-base);
}

.footer-col-links a:hover {
  color: var(--accent-primary);
  transform: translateX(3px);
}

.footer-col-links a:hover .lucide {
  color: var(--accent-primary);
}

/* ---- Giant Brand Wordmark (Footer Watermark) ---- */
.footer-wordmark-wrap {
  position: relative;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  text-align: center;
  padding-top: var(--space-8);
  padding-bottom: var(--space-4);
}

.footer-wordmark-wrap .container {
  max-width: 100%;
  padding: 0 var(--space-3);
}

.footer-wordmark-text {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--fw-extrabold);
  font-size: clamp(2.35rem, 11.8vw, 11rem);
  line-height: 1;
  letter-spacing: 0.035em;
  padding: 0 6px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-main);
  opacity: 0.25;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 15%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.15) 68%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, #000 15%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.15) 68%, transparent 82%);
  transition: opacity var(--transition-base);
}

.site-footer:hover .footer-wordmark-text {
  opacity: 0.36;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-bottom-inner p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
}

.footer-made-with {
  color: var(--text-soft);
}

.footer-heart {
  color: #e11d48;
  display: inline-block;
  vertical-align: middle;
  fill: #e11d48;
  animation: heartbeat 1.4s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.25); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.2); }
  56%       { transform: scale(1); }
}

/* ==========================================================================
   13. STATIC PAGES (About, Contact, Privacy, Terms, Guide)
   ========================================================================== */

/* Guide Page Components */
.guide-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin: 0 auto;
}

.guide-subheading {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-main);
  margin: var(--space-5) 0 var(--space-3);
}

.guide-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-tag-list span {
  display: inline-block;
  padding: 5px 14px;
  background: var(--hover-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  font-weight: var(--fw-medium);
}

.guide-steps-list {
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.guide-steps-list li {
  font-size: var(--fs-base);
  color: var(--text-soft);
  line-height: 1.7;
}

.guide-list {
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: disc;
}

.guide-list li {
  font-size: var(--fs-base);
  color: var(--text-soft);
  line-height: 1.7;
}

.guide-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--hover-bg);
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: var(--space-5);
}

.guide-tip-box .lucide {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-tip-box p {
  font-size: var(--fs-base);
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
}

/* Free vs Premium Comparison Table */
.guide-compare-table {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  margin-top: var(--space-5);
}

.guide-compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid var(--border-subtle);
}

.guide-compare-row:last-child {
  border-bottom: none;
}

.guide-compare-header {
  background: var(--hover-bg);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-compare-row > div {
  padding: 12px 16px;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.guide-compare-row > div:last-child {
  border-right: none;
}

.guide-compare-row > div:nth-child(2),
.guide-compare-row > div:nth-child(3) {
  justify-content: center;
}

.guide-check {
  color: var(--color-success, #16a34a) !important;
  font-weight: var(--fw-bold) !important;
}

.guide-cross {
  color: var(--text-muted) !important;
}

/* Page Header */
.page-header {
  position: relative;
  margin-top: -82px; /* Pulls background up under fixed header */
  padding: calc(64px + 82px) var(--space-6) 72px;
  min-height: 330px;
  box-sizing: border-box;
  text-align: center;
  border: none;
  overflow: hidden;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(at 0% 0%, var(--hero-glow-1) 0, transparent 50%),
    radial-gradient(at 100% 10%, var(--hero-glow-2) 0, transparent 50%);
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-subtitle {
  font-size: var(--fs-md);
  color: var(--text-soft);
  max-width: 900px;
  margin: 0 auto;
}

/* Content Box */
.content-box {
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: var(--transition-base);
}

.content-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-soft-blue);
}

.content-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-4);
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-3);
}

.content-subtitle {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--text-main);
}

.content-text {
  font-size: var(--fs-md);
  color: var(--text-soft);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

.content-text:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   14. CONTACT PAGE
   ========================================================================== */

/* Contact Grid — original 2-column layout (contact.ejs) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  max-width: var(--content-xl);
  margin: 0 auto;
}

.contact-form-wrapper,
.contact-info-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.contact-form-wrapper:hover,
.contact-info-wrapper:hover {
  transform: translateY(-3px);
  border-color: var(--border-soft-blue);
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

.form-label {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-main);
}

.form-label-optional {
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  color: var(--text-muted);
  margin-left: 4px;
}

.form-help {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-section);
  color: var(--text-main);
  transition: border-color var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px var(--input-focus-ring);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Validation States */
.form-error {
  font-size: var(--fs-sm);
  color: var(--color-error);
  margin-top: 6px;
  display: none;
}

.form-input.error {
  border-color: var(--color-error) !important;
}

.form-input.valid {
  border-color: var(--color-success) !important;
}

/* Select Dropdown */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Input with Icon */
.form-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
  transition: color 0.2s;
}

.form-input-with-left {
  padding-left: 40px;
}

/* Contact Info List */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.contact-info-item .icon-box {
  flex-shrink: 0;
  margin-bottom: 0;
}

.contact-info-item h4 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: var(--fs-base);
  color: var(--text-soft);
  margin: 0;
}

.contact-link {
  color: var(--accent-primary);
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Alert message wrapper (replaces inline margin-bottom) */
.contact-message {
  margin-bottom: var(--space-5);
}

/* Extras grid: Quick Help + Follow Us */
.contact-extras-section {
  padding-top: 0;
  padding-bottom: var(--space-14);
}

.contact-extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: var(--content-xl);
  margin: 0 auto;
}

.contact-extra-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

.contact-extra-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-main);
  margin-bottom: var(--space-3);
}

.contact-extra-card-title .lucide {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-extra-card-desc {
  font-size: var(--fs-base);
  color: var(--text-soft);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* Follow Us social links inside card */
.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--hover-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-main);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.contact-social-link:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.contact-social-link .lucide {
  width: 16px;
  height: 16px;
}

/* About page: Follow Us wrapper (full-width, centered) */
.about-follow-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   15. LEGAL PAGES (Privacy, Terms)
   ========================================================================== */

.legal-content {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.legal-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
}

.legal-section:hover {
  transform: translateY(-3px);
  border-color: var(--border-soft-blue);
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin: var(--space-4) 0;
}

.legal-list li {
  font-size: var(--fs-md);
  color: var(--text-soft);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-3);
  padding-left: 28px;
  position: relative;
}

.legal-list li::before {
  content: "\2192"; /* arrow — escaped to survive non-UTF-8-safe file transfers */
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: var(--fw-semibold);
}

.legal-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: var(--fw-medium);
}

.legal-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   16. ALERT MESSAGES (Success/Error)
   ========================================================================== */

.alert {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-md);
  animation: slideDown var(--transition-slow);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert .lucide {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Success Alert */
.alert-success {
  background: var(--color-success-bg);
  border: 1px solid var(--border-subtle);
  color: var(--color-success);
}

.alert-success .lucide {
  color: var(--color-emerald);
}

/* Error Alert */
.alert-error {
  background: var(--color-error-bg);
  border: 1px solid var(--border-subtle);
  color: var(--color-error);
}

.alert-error .lucide {
  color: var(--color-red-500);
}

/* ==========================================================================
   17. AUTH PAGES (Login / Register)
   ========================================================================== */

.auth-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-subtle);
  padding: 28px var(--space-6) 26px;
}

.auth-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  text-align: center;
  margin-bottom: 22px;
}

.auth-subtitle {
  font-size: var(--fs-base);
  color: var(--text-soft);
  text-align: center;
  margin-top: -6px;
  margin-bottom: 18px;
}

/* Auth Alert */
.auth-alert {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: var(--space-4);
}

.auth-alert .lucide {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-alert-error .auth-alert-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #ed1b1b;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ed1b1b;
}

/* Info / Success style for auth messages */
.auth-alert-info {
  background: var(--color-success-bg);
  border: 1px solid var(--border-subtle);
  color: var(--color-success);
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: 14px;
}

.auth-submit-btn {
  width: 100%;
  margin-top: var(--space-2);
}

/* Auth Footer */
.auth-footer-text {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  opacity: 0.85;
}

.auth-footer-text .lucide {
  width: 14px;
  height: 14px;
  vertical-align: -3px;
  margin-right: 4px;
}

.auth-footer-border {
  margin-top: 18px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.auth-link {
  color: var(--accent-primary);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.password-requirements {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Dark mode adjustments for validation */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* ==========================================================================
   17b. AUTH SPLIT LAYOUT (Login / Register standalone pages)
   ========================================================================== */

.auth-split {
  height: 100vh;
  max-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 40.7%) 1fr;
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
}

/* Left — form column (40.7% white card area) */
.auth-split-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 48px;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-page);
  position: relative;
  z-index: 2;
  scrollbar-gutter: stable;
}

.auth-split .auth-card {
  max-width: 440px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-top: auto;
  margin-bottom: auto;
  flex-shrink: 0;
}

/* Top bar (back link + theme toggle) */
.auth-split-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 440px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.auth-back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color 0.18s;
}
.auth-back-link:hover { color: var(--accent-primary); }
.auth-back-link .lucide { width: 16px; height: 16px; }

.auth-theme-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
}
.auth-theme-btn:hover { color: var(--text-main); background: var(--bg-card); }

/* Auth header inside split */
.auth-split .auth-header { margin-bottom: 24px; }
.auth-split .auth-title { text-align: left; margin-bottom: 4px; }
.auth-split .auth-subtitle { text-align: left; margin-top: 0; }

/* Auth footer inside split */
.auth-split .auth-footer {
  width: 100%;
  max-width: 440px;
  margin-top: 20px;
  flex-shrink: 0;
}

/* Avatar overlay pinned exactly to 40.7% boundary with 2px overlap to eliminate hairline seam */
.auth-avatar-overlay {
  position: absolute;
  top: 0;
  left: 40.7%;
  transform: translateX(calc(-40.73% - 2px));
  height: 100vh;
  width: auto;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-avatar-overlay .auth-avatar-img {
  height: 100vh;
  width: auto;
  max-width: none;
  aspect-ratio: 2752 / 1536;
  object-fit: contain;
  display: block;
  /* Shadow directed to bottom-right so it falls on dark panel without leaving a dark edge on the white card */
  filter: drop-shadow(6px 12px 28px rgba(0, 0, 0, 0.38));
}

/* Right — brand panel (59.3% dark area) */
.auth-brand {
  position: sticky;
  top: 0;
  height: 100vh;
  background: radial-gradient(circle at top left, #140037 0%, #020617 40%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.auth-brand-inner {
  /* Dynamic 39.5vh offset matches boy's exact width across all screen heights (laptops, 1080p, 2K, 4K) */
  padding: 40px 32px 40px calc(39.5vh + 36px);
  color: #fff;
  max-width: calc(39.5vh + 540px);
  width: 100%;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  text-decoration: none;
}
.auth-brand-logo img { height: 36px; }
.auth-brand-logo-text {
  font-size: 22px;
  font-weight: var(--fw-extrabold);
  color: #fff;
}

.auth-brand-tagline {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: var(--fw-extrabold);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.auth-brand-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin-bottom: 36px;
}

/* Stats grid (2×2 for 4 items) */
.auth-brand-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin-bottom: 36px;
}

.auth-brand-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-brand-stat-num {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: var(--fw-extrabold);
  color: #fff;
  line-height: 1;
}

.auth-brand-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Features list */
.auth-brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-brand-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-brand-feat-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-brand-feat-icon .lucide { width: 18px; height: 18px; stroke: #fff; }

.auth-brand-features strong {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: #fff;
  margin-bottom: 2px;
}
.auth-brand-features span {
  font-size: var(--fs-caption);
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
}

/* 2-column row for paired fields (e.g. password + confirm) */
.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.auth-form-row .form-group { margin: 0; }

@media (max-width: 580px) {
  .auth-form-row { grid-template-columns: 1fr; }
}

/* Mobile / Tablet: single column, avatar & brand hidden */
@media (max-width: 1024px) {
  .auth-split {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .auth-avatar-overlay { display: none; }
  .auth-brand { display: none; }
  .auth-split-form {
    padding: 24px 20px 40px;
    align-items: center;
    height: auto;
    max-height: none;
    min-height: 100vh;
    overflow-y: visible;
  }
}

@media (max-width: 480px) {
  .auth-split-form { padding: 20px 16px 36px; }
  .auth-split-topbar { margin-bottom: 24px; }
}

/* ==========================================================================
   18. COOKIE CONSENT UI
   ========================================================================== */

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--space-4);
  z-index: 9998;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 var(--space-4);
}

.cookie-banner.hidden {
  display: none !important;
}

.cookie-content {
  pointer-events: auto;
  width: min(960px, 100% - 32px);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(185, 190, 198, 0.25);
  border-radius: 15px;
  padding: var(--space-6) var(--space-4);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  color: #e5e7eb;
  animation: slideUpBanner 0.4s ease;
}

@keyframes slideUpBanner {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: #f9fafb;
}

.cookie-text p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5f5;
}

.cookie-text a {
  color: #38bdf8;
  text-decoration: underline;
  transition: color var(--transition-base);
}

.cookie-text a:hover {
  color: #0ea5e9;
}

/* Cookie Actions */
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
  min-width: 210px;
}

/* Base Cookie Button */
.ck-btn-cookie {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  border-radius: var(--radius-full) !important;
  border: 1px solid transparent !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: var(--fw-semibold) !important;
  cursor: pointer !important;
  transition: all var(--transition-base) !important;
  white-space: nowrap !important;
  font-family: var(--font-body) !important;
}

.ck-btn-cookie .lucide {
  width: 1rem !important;
  height: 1rem !important;
}

/* Primary Button (Accept) */
.ck-btn-cookie.ck-btn-primary {
  background: linear-gradient(135deg, var(--color-success), #22c55e) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35) !important;
}

.ck-btn-cookie.ck-btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5) !important;
  background: linear-gradient(135deg, #15803d, var(--color-success)) !important;
}

/* Secondary Button (Decline) */
.ck-btn-cookie.btn-secondary {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.ck-btn-cookie.btn-secondary:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

/* Outline Button (Customize) */
.ck-btn-cookie.ck-btn-outline {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.ck-btn-cookie.ck-btn-outline:hover {
  background: rgba(59, 130, 246, 0.22) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

/* ==========================================================================
   COOKIE SETTINGS MODAL
   ========================================================================== */

/* Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.cookie-modal-overlay.hidden {
  display: none;
}

/* Modal Container */
.cookie-modal {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  padding: var(--space-6);
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: modalSlideIn 0.3s ease;
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal Header */
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.cookie-modal-header h2 {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: #f9fafb;
  margin: 0;
}

.cookie-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.4);
  background: transparent;
  color: #60a5fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  padding: 0;
}

.cookie-close-btn .lucide {
  width: 20px;
  height: 20px;
}

.cookie-close-btn:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #f9fafb;
  border-color: rgba(148, 163, 184, 0.5);
}

/* Modal Body */
.cookie-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: var(--space-4);
  padding-right: 8px; /* Space for scrollbar */
  overflow-y: auto;
}


/* Cookie Category */
.cookie-category {
  padding: var(--space-4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  margin-bottom: var(--space-3);
  background: rgba(15, 23, 42, 0.6);
  transition: all var(--transition-base);
}

.cookie-category:hover {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.8);
}

.cookie-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.cookie-cat-header h4 {
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: #f9fafb;
  margin: 0;
}

.cookie-category p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Required Badge */
.cookie-badge-required {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 26px;
  transition: all 0.3s ease;
}

.cookie-toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, var(--color-success), #22c55e);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(22px);
}

/* Modal Footer */
.cookie-modal-footer {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.cookie-modal-footer .ck-btn-cookie.full-width {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .cookie-content {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-3);
  }
  
  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .ck-btn-cookie {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-modal {
    padding: var(--space-4);
    max-height: 92vh;
  }
  
  .cookie-modal-header h2 {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   19. RESPONSIVE DESIGN
   ========================================================================== */

/* Compact Desktop Header for Tablet Landscape (961px–1120px) */
@media (max-width: 1120px) {
  .site-header {
    width: calc(100% - 28px);
    padding: 8px 14px;
  }

  .site-logo-img {
    height: 30px;
  }

  .nav-list {
    gap: 4px;
  }

  .nav-link {
    padding: 5px 8px;
    font-size: 13px;
    gap: 4px;
    white-space: nowrap;
  }

  .desktop-actions {
    gap: 8px;
  }
}

/* Tablet & Below (960px) */
@media (max-width: 960px) {
  .nav-list {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  .how-step-card {
    padding: var(--space-5);
  }
  
  .step-number {
    font-size: 44px;
  }
}

/* Tablet Specific (768px) */
@media (max-width: 768px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .site-header {
    width: calc(100% - 24px);
    padding: 8px 12px;
    top: 8px;
  }
  .page-wrapper {
    padding-top: 72px;
  }
  
  .site-header .nav-list {
    display: none;
  }
  
  .desktop-actions .header-auth-btn,
  .desktop-actions .user-menu-wrapper {
    display: none;
  }

  .desktop-actions .mobile-menu-btn {
    display: flex;
  }

  .header-theme-toggle {
    margin-right: 4px;
  }

  .contact-grid,
  .contact-extras-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .content-box,
  .contact-form-wrapper,
  .contact-info-wrapper,
  .legal-section {
    padding: var(--space-6);
  }
  
  .page-header {
    margin-top: -72px;
    padding: calc(var(--space-8) + 72px) var(--space-4) var(--space-6);
    min-height: auto;
  }
  
}

/* Mobile (640px and below) */
@media (max-width: 640px) {  
  .hero-title {
    font-size: 32px;
  }

  .hero-section {
    margin-top: -72px;
    padding: calc(60px + 72px) 0 var(--space-5);
  }
  
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-main {
    padding: 40px 0 var(--space-5);
  }

  .footer-wordmark-wrap {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .footer-wordmark-wrap .container {
    padding: 0 var(--space-2);
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .footer-bottom-inner .dmca-badge {
    order: 3;
    margin-top: 4px;
  }

  .chart-title {
    font-size: 14px;
  }

  .auth-card {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }
  
  .auth-title {
    font-size: 22px;
  }

  .how-step-card {
    padding: var(--space-4);
  }
  
  .step-number {
    font-size: 36px;
  }

  .step-title {
    font-size: var(--fs-xl);
  }
  
  .faq-question {
    font-size: var(--fs-base);
    padding: var(--space-4);
  }
  
  .faq-answer {
    padding: 0 var(--space-4);
  }
  
  .faq-item.active .faq-answer {
    padding: 0 var(--space-4) var(--space-4);
  }
  
  .faq-icon {
    font-size: 20px;
  }
}

/* ==========================================================================
   GLOBAL SCROLL PROGRESS BAR + BACK TO TOP
   ========================================================================== */

/* Thin gradient bar at top */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999;
  background: var(--accent-gradient);
  transform-origin: left center;
  transition: width 0.15s linear;
  pointer-events: none;
}

/* ── Floating action stack (social + back-to-top) ── */
.float-stack {
  position: fixed;
  right: 15px;
  bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 9999;
}

/* Telegram / WhatsApp floating buttons */
.float-social-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.float-social-btn .lucide {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
}
.float-social-btn:hover { transform: translateY(-2px); }
.float-social-btn:active { transform: translateY(0); }

.float-social-btn--tg {
  background: #229ED9;
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.45);
}
.float-social-btn--tg:hover { box-shadow: 0 8px 20px rgba(34, 158, 217, 0.6); }

.float-social-btn--wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}
.float-social-btn--wa:hover { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6); }

/* Pulse ring animation */
.float-pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  animation: float-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
.float-social-btn--tg .float-pulse { background: rgba(34, 158, 217, 0.5); }
.float-social-btn--wa .float-pulse { background: rgba(37, 211, 102, 0.5); }

@keyframes float-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* Back to Top Button */
.back-to-top {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-gradient);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out,
              box-shadow 0.2s ease-out, background 0.2s ease-out;
  z-index: 9999;
}

.back-to-top .lucide {
  width: 20px;
  height: 20px;
}

/* Visible state */
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover / active */
.back-to-top:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  background: var(--accent-gradient);
}

.back-to-top:active {
  transform: translateY(1px);
}

/* ==========================================================================
   NOTIFICATION PERMISSION CARD (below navbar, top-right)
   ========================================================================== */

.notif-perm-banner {
  position: fixed;
  top: -280px;
  left: 50%;
  transform: translate3d(-50%, 0, 0); /* Force GPU acceleration to prevent mobile scroll clipping */
  width: 320px;
  z-index: 9989;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 20px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: top 0.45s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.notif-perm-banner.notif-banner-visible {
  top: 76px;
}

.notif-dismiss-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.notif-dismiss-btn:hover {
  color: var(--text-main);
  background: var(--bg-section-soft);
}

.notif-dismiss-btn .lucide { width: 15px; height: 15px; }

.notif-perm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent-gradient);
  border-radius: 50%;
  flex-shrink: 0;
}

.notif-perm-icon .lucide {
  width: 26px;
  height: 26px;
  color: #fff;
}

.notif-perm-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.notif-perm-desc {
  font-size: var(--fs-base);
  color: var(--text-soft);
  margin: 0;
  line-height: 1.5;
}

.notif-allow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 16px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0px 3px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  transform: translateY(0);
}

.notif-allow-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0px 4px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25);
}

.notif-allow-btn:active {
  transform: translateY(3px);
  box-shadow: 0px 0px 0px transparent;
}

.notif-allow-btn .lucide { width: 15px; height: 15px; }

@media (max-width: 480px) {
  .notif-perm-banner { left: 12px; right: 12px; width: auto; transform: none; }
}

/* ==========================================================================
   PWA INSTALL BANNER
   ========================================================================== */

.pwa-install-banner {
  position: fixed;
  bottom: -180px;
  left: 20px;
  width: 290px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 9990;
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 14px 14px 12px;
}

.pwa-install-banner.pwa-banner-visible {
  bottom: 20px;
}

.pwa-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pwa-banner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pwa-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pwa-banner-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  white-space: nowrap;
}

.pwa-banner-text span {
  font-size: var(--fs-xs);
  color: var(--text-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 16px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: var(--fs-caption);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0px 3px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  transform: translateY(0);
  white-space: nowrap;
}

.pwa-install-btn:hover {
  background: var(--btn-gradient);
  transform: translateY(-1px);
  box-shadow: 0px 4px 0px #3730a3, inset 0px 2px 0px rgba(255, 255, 255, 0.25);
}

.pwa-install-btn:active {
  transform: translateY(3px);
  box-shadow: 0px 0px 0px transparent;
}

.pwa-install-btn .lucide {
  width: 14px;
  height: 14px;
}


.pwa-dismiss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pwa-dismiss-btn:hover {
  background: var(--hover-bg, #f1f5f9);
  color: var(--text-main, #1e293b);
}

.pwa-dismiss-btn .lucide {
  width: 16px;
  height: 16px;
}



/* Mobile */
@media (max-width: 480px) {
  .pwa-install-banner {
    left: 12px;
    width: calc(100% - 24px);
    max-width: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-main {
    padding: 36px 0 var(--space-4);
  }

  .footer-wordmark-wrap {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }
}

/* ==========================================================================
   20. SHARE CARD MODAL — shared across test-result and practice result pages
   ========================================================================== */

.share-card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.share-card-overlay.hidden {
  display: none;
}

.share-card-modal {
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* ── Card Preview ── */
.share-card-preview {
  color: var(--text-main);
  padding: 24px 24px 20px;
  text-align: center;
  position: relative;
}

.share-card-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-section-soft);
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s;
}

.share-card-close:hover {
  background: var(--border-subtle);
}

.share-card-brand {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.share-card-logo-img {
  height: 24px;
  width: auto;
}

.share-card-trophy {
  width: 16px;
  height: 16px;
  color: #f59e0b;
}

.share-card-trophy.hidden {
  display: none;
}

/* ── Dotted divider (used for the title + footer URL) ── */
.share-card-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.share-card-divider-line {
  flex: 1;
  max-width: 50px;
  height: 1px;
  background: var(--border-subtle);
}

.share-card-divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
  flex-shrink: 0;
}

.share-card-divider-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.share-card-footer .share-card-divider-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Score ring (Chart.js doughnut, same pattern as profile-completion ring) ──
   Stacked (ring on top, text below) by default; becomes a side-by-side row
   on wider screens via the min-width media query further down. ── */
.share-card-score-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.share-card-ring-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.share-card-ring-score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.share-card-ring-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}

.share-card-ring-total {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--text-soft);
}

.share-card-score-text {
  text-align: center;
}

.share-card-pct {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 2px;
}

.share-card-message {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.share-card-message-sub {
  font-size: var(--fs-xs);
  color: var(--text-soft);
}

/* ── Stats row (color-coded icon + label, neutral value, divided by hairlines) ── */
.share-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.share-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  position: relative;
}

.share-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: var(--border-subtle);
}

.share-stat-icon {
  width: 18px;
  height: 18px;
}

.share-stat-value {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
}

.share-stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.share-stat-correct .share-stat-icon,
.share-stat-correct .share-stat-label { color: #16a34a; }

.share-stat-wrong .share-stat-icon,
.share-stat-wrong .share-stat-label { color: #dc2626; }

.share-stat-time .share-stat-icon,
.share-stat-time .share-stat-label { color: #2563eb; }

.share-stat-accuracy .share-stat-icon,
.share-stat-accuracy .share-stat-label { color: #7c3aed; }

.share-card-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.share-card-badge {
  background: var(--bg-section-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.share-badge-percentile {
  background: rgba(250, 204, 21, 0.2);
  border-color: rgba(250, 204, 21, 0.4);
}

/* ── Share Action Buttons (native share + copy only) ── */
.share-card-actions {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--admin-active-bg);
  flex-wrap: wrap;
}

.share-card-actions-label {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text-main);
}

.share-card-actions-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.share-card-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 10px 20px 16px;
}

.share-platform-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}

.share-platform-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.share-platform-btn:active {
  transform: translateY(0);
}

.share-platform-btn svg {
  flex-shrink: 0;
}

.share-platform-btn .lucide {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.share-platform-btn.share-btn-loading {
  pointer-events: none;
  animation: share-btn-pulse 0.9s ease-in-out infinite;
}

/* Opacity, not rotation — html2canvas blocks the main thread long enough on slower phones
   that a spinning icon stutters mid-rotation; a pulse degrades gracefully if a frame drops. */
@keyframes share-btn-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.btn-copy-link {
  background: var(--color-purple);
  color: #fff;
}

.btn-native-share {
  background: var(--accent-gradient);
  color: #fff;
}

/* ── Mobile ── */
@media (max-width: 420px) {
  .share-card-ring-wrap {
    width: 110px;
    height: 110px;
  }

  .share-card-ring-num {
    font-size: 26px;
  }

  .share-card-actions {
    gap: 8px;
    padding: 16px;
  }

  .share-card-modal {
    width: 95vw;
  }

  .share-stat-value {
    font-size: 15px;
  }

  .share-stat-label {
    font-size: 9px;
  }
}

/* ── Desktop / wider screens: ring + score text sit side-by-side instead of stacked ── */
@media (min-width: 480px) {
  .share-card-modal {
    max-width: 480px;
  }

  .share-card-score-row {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }

  .share-card-ring-wrap {
    margin-bottom: 0;
  }

  .share-card-score-text {
    text-align: left;
  }
}

/* ============================================================
   21. DAILY CHALLENGE TEASER (home page)
   ============================================================ */
.daily-teaser-wrap {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: nowrap;
}
.daily-teaser-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex: 1 1 auto;
}
.daily-teaser-icon {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.daily-teaser-icon svg { width: 28px; height: 28px; color: #fff; }
.daily-teaser-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.daily-teaser-desc {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
.daily-teaser-btn {
  white-space: nowrap;
  background: #fff;
  color: #6366f1;
  border-radius: var(--radius-md);
  border: none;
  padding: var(--space-2) var(--space-4);
  font-weight: var(--fw-bold);
  text-decoration: none;
  font-size: var(--fs-sm);
  box-shadow: 0px 2px 0px #cbd5e1;
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
  transform: translateY(0);
  flex-shrink: 0;
}
.daily-teaser-btn:hover { 
  opacity: 0.95; 
  color: #6366f1; 
  transform: translateY(-1px);
  box-shadow: 0px 3px 0px #cbd5e1;
}
.daily-teaser-btn:active {
  transform: translateY(2px) !important;
  box-shadow: 0px 0px 0px transparent !important;
  transition: transform 0.05s, box-shadow 0.05s !important;
}

/* Game variant — cyan theme */
.daily-teaser-game {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}
.daily-teaser-icon-game { /* inherits from .daily-teaser-icon */ }
.daily-teaser-btn-game  { color: #0891b2; box-shadow: 0px 2px 0px #cbd5e1; }
.daily-teaser-btn-game:hover { color: #0891b2; box-shadow: 0px 3px 0px #cbd5e1; }
.daily-teaser-desc strong { color: #fff; }
.daily-teaser-diff {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 7px;
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* 2-column grid for the two cards */
.daily-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .daily-teaser-wrap   { padding: var(--space-4); flex-wrap: wrap; }
  .daily-teaser-btn    { width: 100%; text-align: center; }
}

@media (max-width: 768px) {
  .daily-teaser-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   22. STUDENT OF THE MONTH SPOTLIGHT (home page)
   ============================================================ */
.home-som-section {
  margin-top: 36px;
  margin-bottom: 12px;
}

.home-som-card {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: var(--space-7, 36px);
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl, 24px);
  padding: 32px 36px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.03),
    0 16px 36px -8px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(245, 158, 11, 0.16);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

[data-theme="dark"] .home-som-card {
  background: var(--bg-card);
  border-color: rgba(51, 65, 85, 0.6);
  box-shadow: 
    0 16px 36px -10px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(245, 158, 11, 0.2);
}

.home-som-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px -2px rgba(0, 0, 0, 0.04),
    0 20px 42px -8px rgba(15, 23, 42, 0.09),
    0 0 0 1px rgba(245, 158, 11, 0.32);
}

/* Left Column: Visual Graphic with soft ambient aura */
.home-som-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 220px;
}

.home-som-visual::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.45) 0%, rgba(245, 158, 11, 0.12) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .home-som-visual::before {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.08) 50%, transparent 70%);
}

.home-som-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 230px;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(217, 119, 6, 0.22));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-som-card:hover .home-som-img {
  transform: scale(1.04);
}

/* Right Column: Content */
.home-som-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 14px);
  min-width: 0;
}

/* Student of the Month Pill Modifier (extends .hero-badge) */
.home-som-badge {
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 0;
  padding: 6px 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-som-badge .lucide {
  width: 15px;
  height: 15px;
  margin-top: -0.5px;
}

.home-som-badge span {
  display: inline-block;
  line-height: 1;
  transform: translateY(1.5px);
}

/* Champion Name */
.home-som-name {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: var(--fw-extrabold);
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.015em;
  word-wrap: break-word;
}

/* Subtitle */
.home-som-subtitle {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.5;
  max-width: 600px;
}

/* Stats Row */
.home-som-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.home-som-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-section-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl, 14px);
  padding: 10px 18px;
  min-width: 110px;
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

[data-theme="dark"] .home-som-stat-item {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(51, 65, 85, 0.6);
}

.home-som-stat-item:hover {
  background: var(--bg-section);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

[data-theme="dark"] .home-som-stat-item:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(99, 102, 241, 0.4);
}

.home-som-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 2px;
}

.home-som-stat-val {
  font-size: 18px;
  font-weight: var(--fw-bold, 700);
  color: var(--text-main);
  line-height: 1.2;
  font-variant-numeric: normal;
  letter-spacing: -0.01em;
}

/* Bottom Footer / CTA */
.home-som-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
}

.home-som-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: linear-gradient(135deg, #ff6800 0%, #ea580c 40%, #d97706 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.32);
  transition: all var(--transition-base);
}

.home-som-cta:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateX(2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.42);
}

.home-som-cta .lucide {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
}

.home-som-cta:hover .lucide {
  transform: translateX(3px);
}

/* Responsive (Mobile & Tablet) */
@media (max-width: 860px) {
  .home-som-section {
    margin-top: 24px;
    margin-bottom: 0px;
  }
  .home-som-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 18px;
    gap: 16px;
  }
  .home-som-visual {
    min-height: 150px;
  }
  .home-som-visual::before {
    width: 130px;
    height: 130px;
  }
  .home-som-img {
    max-width: 170px;
    max-height: 150px;
    margin: 0 auto;
  }
  .home-som-badge {
    align-self: center;
    font-size: 10px;
    padding: 5px 14px;
  }
  .home-som-badge span {
    transform: translateY(1.2px);
  }
  .home-som-name {
    font-size: 22px;
  }
  .home-som-subtitle {
    margin: 0 auto;
    font-size: 12.5px;
  }
  .home-som-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .home-som-stat-item {
    min-width: 0;
    padding: 8px 10px;
    align-items: center;
  }
  .home-som-stat-val {
    font-size: 16px;
  }
  .home-som-footer {
    justify-content: center;
    margin-top: 6px;
  }
  .home-som-cta {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: var(--fs-caption);
  }
}

/* =======================================================
   Google Auth Styles
======================================================= */
.auth-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 5px 0;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-or-divider span {
  padding: 0 10px;
  color: var(--text-main);
  font-size: var(--fs-caption);
}

.auth-google-btn {
  background-color: var(--hover-bg);
  color: var(--text-main);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-shadow: 0px 2px 0px var(--border-subtle);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
  transform: translateY(0);
}

.auth-google-btn:hover {
  background-color: var(--admin-active-bg);
  box-shadow: 0px 3px 0px rgba(0, 126, 255, 0.4);
  transform: translateY(-1px);
}
.auth-google-btn:active {
  transform: translateY(2px);
  box-shadow: 0px 0px 0px transparent;
}
/* ==========================================================================
   COMMON AVATAR & BADGE COMPONENTS
   ========================================================================== */

.player-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.player-avatar {
  font-size: 28px;
  color: var(--text-soft);
}

.player-name {
  font-weight: var(--fw-medium);
}

.you-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 6px;
  background: var(--accent-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
}

.player-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  background: var(--bg-section-soft);
}

.lb-premium-badge,
.lb-verified-badge,
.lb-unverified-badge,
.lb-not-added-badge {
  margin-left: 4px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  vertical-align: -3px;
  fill: currentColor;
  stroke: var(--bg-card);
  stroke-width: 2;
}

.lb-premium-badge {
  color: var(--accent-primary);
}

.lb-verified-badge {
  color: var(--color-emerald);
}

.lb-unverified-badge {
  color: var(--color-orange);
}

.lb-not-added-badge {
  color: var(--text-muted);
}

.dc-attempt-count { 
  display: inline-flex; 
  align-items: center; 
  gap: 3px; 
  font-size: var(--fs-xs); 
  color: inherit; 
  opacity: 0.8; 
  padding-left: 10px; 
}
.dc-attempt-count .lucide { 
  width: 14px; 
  height: 14px; 
}
/* ============================================================
   22. REVEAL ON SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}
.reveal-zoom {
  transform: scale(0.95);
}
.reveal-left.reveal-visible, .reveal-right.reveal-visible, .reveal-zoom.reveal-visible {
  transform: translateX(0) scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ============================================================
   23. BILINGUAL QUESTION LANGUAGE FORMATTING
   ============================================================ */
.q-lang-en {
  display: block;
}
.q-lang-hi {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1.5px dashed rgba(100, 116, 139, 0.4);
  color: var(--text-main);
}
[data-theme="dark"] .q-lang-hi {
  border-top-color: rgba(148, 163, 184, 0.35);
}
