/* ==========================================================================
   SPEEDMATH - MAIN STYLESHEET (Refactored & Optimized)
   Import variables first, then build upon them
   ========================================================================== */

/* Import CSS Variables + Shared Components */
@import url('variables.css');
@import url('components.css');

/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: var(--lh-normal);
  font-size: var(--fs-md);
  -webkit-font-smoothing: antialiased;
  transition: var(--transition-colors);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Page Wrapper with Background Pattern */
.page-wrapper {
  min-height: 100vh;
  background-image: var(--hero-pattern);
  background-size: var(--hero-pattern-size);
}

/* ==========================================================================
   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-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.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 {
  width: 20px;
  height: 20px;
  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: 18px;
  height: 18px;
}

/* Feature/Icon Boxes (Large) */
.icon-box .lucide {
  width: 28px;
  height: 28px;
  stroke-width: 2.5px;
}

/* Hero Badge (Small) */
.hero-badge .lucide {
  width: 15px;
  height: 15px;
  color: var(--accent-primary);
}

/* 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;
}

/* ==========================================================================
   4. BUTTONS (Enhanced with Variables)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-base);
}

/* Primary Gradient Button */
.btn-gradient {
  background: var(--accent-gradient);
  color: #ffffff;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  background: var(--btn-gradient);
}

/* Outline Button */
.btn-outline {
  background: rgba(248, 250, 252, 0.9);
  color: var(--text-main);
  border: 2px solid var(--border-subtle);
  padding: 10px 15px;
}

[data-theme="dark"] .btn-outline {
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.btn-outline:hover {
  background: var(--admin-hover-bg);
  transform: translateY(-2px);
}

.btn-accent{
  border: 2px solid var(--border-subtle);
}
/* Primary Solid Button */
.btn-primary {
  background: var(--btn-gradient);
  color: white;
  padding: 8px 20px;
}

.btn-primary:hover {
  opacity: 0.9;
  background: var(--accent-gradient);
}

/* White Button */
.btn-white {
  background: var(--btn-gradient);
  color: var(--text-cta);
}

.btn-white:hover {
  background: var(--accent-gradient);
  color: var(--text-cta);
  transform: translateY(-2px);
}

/* Icon Button (Theme Toggle) */
.btn-icon {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  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.3);
  box-shadow: var(--shadow-sm);
  background: var(--admin-hover-bg);
  transform: translateY(-1px);
}



/* Theme Toggle Visibility (CSS-driven) */
.header-theme-toggle #icon-moon { display: block; }
.header-theme-toggle #icon-sun { display: none; }

[data-theme="dark"] .header-theme-toggle #icon-moon { display: none; }
[data-theme="dark"] .header-theme-toggle #icon-sun { display: block; }

/* Logout Button */
.logout-btn {
  background: var(--btn-gradient);
  padding: 10px 18px;
}

.logout-btn:hover {
  background: linear-gradient(135deg, var(--color-error), #b91c1c);
  transform: translateY(-1px);
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
}

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-img {
  height: 36px;
  max-width: 200px;
  display: block;
}

/* Navigation Links */
.nav-list {
  display: flex;
  gap: 10px;
}

.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(--admin-hover-bg);
}

.nav-link.active {
  background-color: var(--admin-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;
}

/* User Menu Dropdown */
.user-menu-wrapper {
  position: relative;
}

/* Toggle Button (Icon only now) */
.user-menu-toggle {
  /* Inherits .btn-icon styles mostly, adjusting specifics */
  color: var(--text-main);
}

.user-menu-toggle:hover,
.user-menu-wrapper.open .user-menu-toggle {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-sm);
  background: var(--admin-hover-bg);
  color: var(--accent-secondary);
}

.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 {
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
}

[data-theme="dark"] .user-role.badge-admin {
  background: rgba(249, 115, 22, 0.25);
  color: #fdba74;
}


.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  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;
  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;
}

.user-menu-item.logout {
  border-top: 1px solid var(--border-subtle);
  color: var(--accent-secondary);
}

.user-menu-item.logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-secondary);
}

/* Mobile drawer logout link */
.logout-link {
  color: var(--accent-secondary) !important;
}

.logout-link:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  display: none;
}

.mobile-overlay.open {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--bg-page);
  border-left: 1px solid var(--border-subtle);
  padding: var(--space-8);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  z-index: var(--z-drawer);
}

.mobile-drawer.open {
  transform: translateX(0);
}

/* ============================================================
   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: 1rem 0;
}

/* Mobile drawer nav links column */
.mobile-drawer nav {
  align-items: flex-start;
}

/* 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: rgba(37, 99, 235, 0.12);
}

/* Dark mode active link */
[data-theme="dark"] .nav-link[aria-current="page"] {
  color: var(--accent-secondary);
  background-color: rgba(79, 70, 229, 0.2);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.hero-section {
  padding: var(--space-14) 0 var(--space-10);
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  background-color: var(--admin-hover-bg);
  border: 2px solid var(--border-subtle);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

/* Hero Title */
.hero-title {
  font-size: clamp(36px, 5vw, 50px);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
}

/* Hero Description */
.hero-description {
  font-size: var(--fs-lg);
  color: var(--text-soft);
  max-width: 750px;
  margin: 0 auto 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: var(--fs-4xl);
  font-weight: var(--fw-black);
  margin-bottom: var(--space-2);
  line-height: var(--lh-tight);
  text-align: center;
}

.page-title .lucide {
  width: 36px;
  height: 36px;
  stroke-width: 2.5px;
  color: var(--text-main);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-soft);
  margin-bottom: var(--space-8);
}

/* ===== STATS BAR ===== */
/* 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: 960px;
  margin: 0 auto;
}

.stats-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--space-5) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.stats-bar-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.stats-bar-value {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: 1.1;
}

.stats-bar-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  text-align: center;
}

/* Hero Section CTA Buttons */
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: nowrap;
}

/* 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:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

/* 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 - Ionicons 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-black);
  line-height: 1;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.20), rgba(249, 115, 22, 0.20));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .step-number-enhanced {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.35), rgba(249, 115, 22, 0.35));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 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: 1rem;
  color: var(--text-secondary);
  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: 0.9375rem;
  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) {
  .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) {
  .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: 0.9375rem;
  }


  .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: 10px 20px;
  }
}

/* Extra small devices */
@media (max-width: 400px) {

  .hero-actions {
    gap: var(--space-2);
  }

  .hero-actions .btn {
    padding: 9px 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:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

.persona-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: rgba(37, 99, 235, 0.08);
}

.persona-icon .lucide {
  height: 28px;
  width: 28px;
}

[data-theme="dark"] .persona-icon {
  background: rgba(37, 99, 235, 0.16);
}

.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(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.faq-item.active {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

/* 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(--accent-primary);
}

.faq-icon {
  font-size: 24px;
  color: var(--accent-primary);
  transition: transform 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-black);
  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;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
  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);
  transition: color var(--transition-base);
}

.footer-email .lucide {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.footer-email:hover {
  color: var(--accent-primary);
}

/* 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(--admin-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;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.footer-install-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.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-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.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);
}

/* 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-primary);
  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(--admin-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(--admin-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-sm);
  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(--admin-hover-bg);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  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-check {
  color: var(--success, #16a34a) !important;
  font-weight: var(--fw-bold) !important;
}

.guide-cross {
  color: var(--text-muted) !important;
}

/* Page Header */
.page-header {
  padding: var(--space-12) var(--space-6) var(--space-8);
  text-align: center;
}

.page-title {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--space-3);
  color: var(--text-main);
}

.page-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-soft);
  max-width: 640px;
  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(--accent-primary);
}

.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 {
  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(--accent-primary);
}

/* 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-label {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-main);
}

.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(--accent-primary);
}

.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: flex-start;
  gap: var(--space-4);
}

.contact-info-item .icon-box {
  flex-shrink: 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-sm);
  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(--admin-hover-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  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(--accent-primary);
}

.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: "→";
  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;
}

/* Disclaimer Box */
.disclaimer-box {
  background: rgba(249, 115, 22, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-top: var(--space-4);
}

[data-theme="dark"] .disclaimer-box {
  background: rgba(249, 115, 22, 0.1);
}

/* ==========================================================================
   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: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-success);
}

.alert-success .lucide {
  color: var(--color-emerald);
}

[data-theme="dark"] .alert-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* Error Alert */
.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--color-error);
}

.alert-error .lucide {
  color: var(--color-red-500);
}

[data-theme="dark"] .alert-error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* ==========================================================================
   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: 14px;
  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-2);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: var(--space-4);
}

.auth-alert .lucide {
  width: 20px;
  height: 20px;
}

.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: rgb(37 235 59 / 6%);
  border: 1px solid rgb(55 235 37 / 35%);
  color: #048f24;
}

[data-theme="dark"] .auth-alert-info {
  background: rgb(145 252 177 / 16%);
  border-color: rgb(3 151 22 / 80%);
  color: #03d735;
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: 14px;
}

.auth-submit-btn {
  width: 100%;
  margin-top: var(--space-2);
}

/* Auth Footer */
.auth-footer-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
}

.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 */
[data-theme="dark"] .form-error {
  color: #fca5a5;
}

[data-theme="dark"] .form-input {
  background: #020617;
}

[data-theme="dark"] .form-input.error {
  border-color: var(--color-error) !important;
}

[data-theme="dark"] .form-input.valid {
  border-color: var(--color-success) !important;
}

[data-theme="dark"] .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");
}

[data-theme="dark"] .form-select option {
  background: #020617;
  color: var(--text-main);
}

/* ==========================================================================
   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-main) !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: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: var(--text-muted);
  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;
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
}

/* Webkit specific scrollbar styling for Chrome/Safari */
.cookie-modal-body::-webkit-scrollbar {
  width: 6px;
}

.cookie-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.cookie-modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.3);
  border-radius: 10px;
}

/* 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
   ========================================================================== */

/* Tablet & Below (960px) */
@media (max-width: 960px) {
  .nav-list {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }

  /* Dashboard Sidebar - Hide on tablet/mobile */
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  
  .dashboard-sidebar {
    display: none;
  }
  
  .dashboard-bottom-tabs {
    display: block;
  }
  
  .dashboard-content {
    padding-bottom: 80px; /* Space for bottom tabs */
  }
  
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .dashboard-quick-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .dashboard-charts-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-wrapper {
    height: 280px;
  }
  
  .dashboard-chart-card:has(#operationChart) .chart-wrapper {
    height: 280px;
  }
  
  .chart-no-data {
    height: 250px;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  .how-step-card {
    padding: var(--space-5);
  }
  
  .step-visual {
    gap: var(--space-3);
  }
  
  .step-number {
    font-size: 44px;
  }
  
  .step-icon-large {
    width: 56px;
    height: 56px;
    font-size: 32px;
  }
}

/* Tablet Specific (768px) */
@media (max-width: 768px) {
  .site-header {
    padding-block: 14px;
  }
  
  .site-header .nav-list {
    display: none;
  }
  
  .desktop-actions .header-auth-btn,
  .desktop-actions .user-menu-wrapper {
    display: none;
  }

  .desktop-actions .mobile-menu-btn {
    display: inline-flex;
  }

  .header-theme-toggle {
    margin-right: 4px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .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 {
    padding: var(--space-8) var(--space-6) var(--space-6);
  }
  
  .dashboard-combined-card {
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-5);
  }
  
  .combined-card-divider {
    height: 1px;
    width: 100%;
  }
  
  .best-score-value {
    font-size: 42px;
  }
  
  .week-value {
    font-size: 32px;
  }
  
  .weekly-comparison {
    gap: var(--space-4);
  }
}

/* Mobile (640px and below) */
@media (max-width: 640px) {  
  .hero-title {
    font-size: 32px;
  }
  
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
  
  .dashboard-wrapper {
    padding-top: 28px;
  }
  
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .dashboard-combined-card {
    padding: var(--space-4);
  }
  
  .best-score-value {
    font-size: 36px;
  }
  
  .week-value {
    font-size: 28px;
  }
  
  .week-arrow .lucide {
    width: 24px;
    height: 24px;
  }
  
  .dashboard-chart-card {
    padding: var(--space-4);
  }
  
  .chart-title {
    font-size: 14px;
  }
  
  .chart-wrapper {
    height: 240px;
  }
  
  .dashboard-chart-card:has(#operationChart) .chart-wrapper {
    height: 250px;
  }
  
  .chart-no-data {
    height: 220px;
    padding: 1rem;
  }
  
  .chart-no-data .lucide {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .chart-no-data p {
    font-size: 0.85rem;
  }
  
  .recent-session-item {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  
  .auth-card {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }
  
  .auth-title {
    font-size: 22px;
  }

  .how-step-card {
    padding: var(--space-4);
  }
  
  .step-visual {
    gap: var(--space-3);
  }
  
  .step-number {
    font-size: 36px;
  }
  
  .step-icon-large {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }
  
  .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: 24px;
  bottom: 24px;
  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: 0 14px 30px rgba(15, 23, 42, 0.7);
  transform: translateY(-1px);
  background: var(--accent-gradient);
}

.back-to-top:active {
  transform: translateY(1px);
}

/* Dark theme tweak (optional) */
[data-theme="dark"] .back-to-top {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   NOTIFICATION PERMISSION BANNER (header slide-down)
   ========================================================================== */

.notif-perm-banner {
  position: fixed;
  top: -90px;
  left: 0;
  right: 0;
  z-index: 9989;
  background: var(--accent-gradient);
  color: #fff;
  padding: 10px 20px;
  transition: top 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.notif-perm-banner.notif-banner-visible {
  top: 0;
}

.notif-perm-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notif-perm-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.notif-perm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
}

.notif-perm-icon .lucide {
  width: 18px;
  height: 18px;
  color: #fbbf24;
}

.notif-perm-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.notif-perm-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.notif-perm-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-perm-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.notif-allow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #fbbf24;
  color: #1e1b4b;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.notif-allow-btn:hover {
  background: #f59e0b;
  transform: translateY(-1px);
}

.notif-allow-btn .lucide {
  width: 14px;
  height: 14px;
}

.notif-later-btn {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.notif-later-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.notif-dismiss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.2s;
}

.notif-dismiss-btn:hover {
  color: #fff;
}

.notif-dismiss-btn .lucide {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .notif-perm-text span { display: none; }
  .notif-perm-banner { padding: 10px 14px; }
  .notif-later-btn { display: 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: 12px;
  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: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.pwa-install-btn:hover {
  background: var(--btn-gradient);
}

.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;
}

/* Dark mode */
[data-theme="dark"] .pwa-install-banner {
  background: var(--bg-card, #1e293b);
  border-color: var(--border-subtle, #334155);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .pwa-banner-text strong {
  color: var(--text-main, #f1f5f9);
}


[data-theme="dark"] .pwa-dismiss-btn:hover {
  background: var(--hover-bg, #334155);
}

/* 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 28px;
  }
}

/* ==========================================================================
   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: #ffffff;
  border-radius: 20px;
  max-width: 380px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* ── Card Preview (gradient header) ── */
.share-card-preview {
  background: var(--accent-gradient);
  color: #fff;
  padding: 28px 24px 24px;
  text-align: center;
}

.share-card-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  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: rgba(255, 255, 255, 0.35);
}

.share-card-brand {
  margin-bottom: 6px;
}

.share-card-logo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  opacity: 0.85;
  text-transform: uppercase;
}

.share-card-title {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 20px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.share-card-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-bottom: 14px;
}

.share-card-score-main {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.share-card-score-sep {
  font-size: 30px;
  opacity: 0.6;
  margin: 0 2px;
}

.share-card-score-total {
  font-size: 30px;
  font-weight: 600;
  opacity: 0.8;
}

.share-card-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.share-card-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 3px;
}

.share-card-pct {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 20px;
}

.share-card-stats {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.share-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 11px;
}

.share-stat-icon {
  font-style: normal;
  font-size: 12px;
}

.share-card-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.share-card-badge {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 600;
}

.share-badge-percentile {
  background: rgba(250, 204, 21, 0.35);
}

.share-card-footer {
  font-size: 11px;
  opacity: 0.55;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

/* ── Share Action Buttons ── */
.share-card-actions {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #ffffff;
}

.share-platform-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}

.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;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-telegram {
  background: #2aabee;
  color: #fff;
}

.btn-copy-link {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.btn-native-share {
  background: #6366f1;
  color: #fff;
}

/* ── Dark Mode ── */
[data-theme="dark"] .share-card-modal {
  background: #1e2030;
}

[data-theme="dark"] .share-card-actions {
  background: #1e2030;
}

[data-theme="dark"] .btn-copy-link {
  background: #2d3748;
  color: #e2e8f0;
  border-color: #4a5568;
}

[data-theme="dark"] .btn-copy-link:hover {
  background: #374151;
}

/* ── Mobile ── */
@media (max-width: 420px) {
  .share-card-score-main {
    font-size: 44px;
  }

  .share-card-score-sep,
  .share-card-score-total {
    font-size: 24px;
  }

  .share-card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
  }

  .share-card-modal {
    width: 95vw;
  }

  .share-platform-btn {
    padding: 12px 8px;
    font-size: 13px;
  }
}

/* ============================================================
   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-sm);
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
.daily-teaser-btn {
  white-space: nowrap;
  background: #fff;
  color: #6366f1;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-weight: var(--fw-bold);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.daily-teaser-btn:hover { opacity: 0.9; color: #6366f1; }

/* 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; }
.daily-teaser-btn-game:hover { color: #0891b2; }
.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; }
  .daily-teaser-grid   { grid-template-columns: 1fr; }
}