/* ============================================================   CONTORA — Premium dark design system   ORGANIZATION: 1 Tokens 2 Base 3 Layout 4 Components 5 Pages   6 Dashboard 7 Utilities 8 Animations 9 Responsive 10 Cursor   ============================================================ */
/* --- 1. DESIGN TOKENS (default = light) --- */
:root {
  --bg: #F5F5F5;
  --bg-deep: #EBEBEB;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --input-bg: rgba(255, 255, 255, 0.92);
  --nav-glass: rgba(255, 255, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.52);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --border: #EBEBEB;
  --border-strong: #D1D1D1;
  --backdrop-glass: blur(20px) saturate(160%);
  --backdrop-glass-subtle: blur(14px) saturate(140%);
  --primary: #1A06FF;
  --primary-dim: rgba(26, 6, 255, 0.04);
  --primary-border: rgba(26, 6, 255, 0.15);
  --primary-glow: rgba(26, 6, 255, 0.1);
  --primary-hover: #0E00D9;
  --blue: var(--primary);
  --blue2: var(--primary-hover);
  --blue3: rgba(26, 6, 255, 0.08);
  --navy: #080808;
  --bg2: var(--surface);
  --bg3: var(--surface-raised);
  --bg4: rgba(245, 245, 245, 0.8);
  --text: #080808;
  --text2: #1A1A1A;
  --text3: #5C5C5C;
  --green: #16a34a;
  --green-bg: rgba(22, 163, 74, 0.1);
  --green-border: rgba(22, 163, 74, 0.22);
  --orange: #d97706;
  --orange-bg: rgba(217, 119, 6, 0.1);
  --orange-border: rgba(217, 119, 6, 0.22);
  --red: #dc2626;
  --red-bg: rgba(220, 38, 38, 0.08);
  --red-border: rgba(220, 38, 38, 0.2);
  --border2: var(--primary-border);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --sidebar-expanded: 220px;
  --sidebar-collapsed: 64px;
  --sidebar-current: var(--sidebar-expanded);
  --content-max: 1180px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 16px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 22px 56px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 36px rgba(26, 6, 255, 0.25);
  --transition: all 0.2s ease;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-fast: 0.18s;
  --dur-med: 0.28s;
  --glow-blue: 0 0 28px rgba(26, 6, 255, 0.35);
  --sidebar-bg: rgba(255, 255, 255, 0.82);
  --sidebar-backdrop: var(--backdrop-glass);
  --sidebar-border: rgba(15, 23, 42, 0.08);
  /* --- STEPPER / QUIZ THEME --- */
  --quiz-bg: rgba(255, 255, 255, 0.9);
  --quiz-border: rgba(0, 0, 0, 0.1);
  --step-bg: #e5e7eb;
  --step-text: #6b7280;
  --step-connector: #e5e7eb;
}

[data-theme="dark"] {
  --bg: #0A0A0C; /* Deep blue-black base */
  --bg-deep: #050506;
  --surface: #161618; /* Cards slightly lighter than BG */
  --surface-raised: #1F1F22;
  --input-bg: rgba(30, 30, 34, 0.9);
  --nav-glass: rgba(10, 10, 12, 0.88); /* More solid for readability */
  --glass: rgba(255, 255, 255, 0.08); /* Slightly less transparent */
  --glass-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --backdrop-glass: blur(28px) saturate(180%);
  --backdrop-glass-subtle: blur(20px) saturate(160%);
  --text: rgba(255, 255, 255, 0.96); /* Primary - Heading */
  --text2: rgba(255, 255, 255, 0.78); /* Secondary - Description */
  --text3: rgba(255, 255, 255, 0.58); /* Tertiary - Label (safe) */
  --primary: #5247FF; /* More vibrant blue for dark mode */
  --primary-dim: rgba(82, 71, 255, 0.15);
  --primary-border: rgba(82, 71, 255, 0.35);
  --primary-glow: rgba(82, 71, 255, 0.3);
  --primary-hover: #6B62FF;
  --blue3: rgba(82, 71, 255, 0.18);
  --bg2: var(--surface);
  --bg3: var(--surface-raised);
  --bg4: rgba(30, 30, 34, 0.8);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
  --green-border: rgba(34, 197, 94, 0.2);
  --orange: #f59e0b;
  --orange-bg: rgba(245, 158, 11, 0.1);
  --orange-border: rgba(245, 158, 11, 0.2);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.08);
  --red-border: rgba(248, 113, 113, 0.2);
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 0 40px rgba(26, 6, 255, 0.4);
  --glow-blue: 0 0 32px rgba(26, 6, 255, 0.45);
  --sidebar-bg: rgba(8, 13, 22, 0.94);
  --sidebar-backdrop: blur(20px) saturate(180%);
  --sidebar-border: rgba(255, 255, 255, 0.08);
  /* --- STEPPER / QUIZ THEME --- */
  --quiz-bg: rgba(10, 20, 40, 0.6);
  --quiz-border: rgba(255, 255, 255, 0.08);
  --step-bg: #222;
  --step-text: #a3a3a3;
  --step-connector: #333;
}

/* --- 2. BASE --- */
:root {
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -25%, rgba(26, 6, 255, 0.09), transparent 52%), radial-gradient(ellipse 55% 45% at 100% 20%, rgba(99, 102, 241, 0.05), transparent 42%);
  color: var(--text);
  display: block;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.cta-title,
.more-title,
.res-hero-title,
.today-focus-title,
.save-title,
.ideas-title,
.save-progress-title,
.saved-empty-title,
.plan-empty-state .empty-title {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── HERO LOGO DECORATION (Subtle Imprint) ── */
.hero-logo-bg {
  position: absolute;
  top: 58%;
  right: -12%;
  transform: translateY(-50%) rotate(-8deg);
  width: 48vw;
  height: 48vw;
  max-width: 700px;
  max-height: 700px;
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
  color: var(--primary);
  transition: opacity 0.3s ease;
}
[data-theme="dark"] .hero-logo-bg {
  opacity: 0.09;
}

body[data-theme="dark"] {
  /* Highlights moved to extreme corners to avoid text areas */
  background-image: 
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(82, 71, 255, 0.12), transparent 80%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(82, 71, 255, 0.08), transparent 80%);
}

body::before {
  content: '';
  position: fixed;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  /* Top Left corner highlight */
  background: radial-gradient(circle at 0% 0%, rgba(82, 71, 255, 0.1), transparent 75%);
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

body[data-theme="dark"]::before {
  background: radial-gradient(circle at 0% 0%, rgba(82, 71, 255, 0.14), transparent 75%);
}

.page {
  display: none;
  width: 100%;
  min-height: calc(100vh - 80px);
  padding: 0;
  box-sizing: border-box;
}

.context-bar {
  width: 100%;
  margin: 0 0 8px 0;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
}

[data-theme="dark"] .context-bar {
  background: transparent;
}

.context-bar small, 
.context-bar div:first-child {
  font-size: 11px;
  opacity: 0.5;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 700;
}

.context-bar strong,
.context-bar div:nth-child(2) {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
  color: var(--text);
}

.context-bar #dashProgressIndicator {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.7;
}

.page.active {
  display: block;
}

.main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 48px 40px 48px;
  box-sizing: border-box;
}

/* Ensure dynamic content is also wrapped properly and shares the same padding */
.page > .fade, 
.page > .dashboard-view {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 48px 40px 48px;
  box-sizing: border-box;
}

.result-hero {
  margin-bottom: 24px;
}

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.weekly-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* --- utilities --- */
.u-text-center {
  text-align: center;
}

#quiz.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---- Loading Page Fix ---- */
#loading {
  display: none;
}

#loading.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- 3. LAYOUT: top nav (landing) --- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  width: 100%;
  background: var(--nav-glass);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.nav-link {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  /* shrink navbar buttons (excluding theme btn) */
  .nav-actions .btn-sm-ghost {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
    margin-right: 0 !important;
  }

  /* make primary CTA less bulky */
  .nav-actions .nav-cta {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
  }

  /* reduce gap between buttons */
  .nav-actions {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .nav-actions .btn-sm-ghost {
    display: none;
  }
}

/* ── Brand Logo & Text ── */

.brand { 
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
/* Ensure logo proportions are always square/1:1 */
.brand-icon, .auth-brand-icon, .auth-logo-large svg, .brand-watermark, .hero-logo-bg {
  aspect-ratio: 1 / 1;
}

.brand-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}
/* Logo Colors System */
.brand-icon-outer { fill: #1A06FF; }
.brand-icon-inner { fill: #080808; }
[data-theme="dark"] .brand-icon-inner { fill: #FFFFFF; }


.logo-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

/* Subtly differentiate brand logo from other text */
[data-theme="dark"] .logo-text {
  color: #FFFFFF;
}

.nav-r {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text2);
}

.theme-btn:hover {
  background: var(--glass-strong);
  border-color: var(--primary-border);
  transform: translateY(-1px);
  color: var(--text);
}

.btn-nav {
  padding: 10px var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--primary);
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  transition: var(--transition);
}

.btn-nav:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* --- 4. COMPONENTS: buttons --- */
.btn-primary {
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--primary-hover);
  box-shadow: 0 8px 24px rgba(26, 6, 255, 0.2);
}

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

.btn-ghost {
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text2);
  font-family: inherit;
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--primary-border);
  color: var(--primary-hover);
  background: var(--primary-dim);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  transition: var(--transition);
}

.btn-sm:hover {
  background: var(--primary-hover);
  transform: scale(1.02) translateY(-1px);
  box-shadow: var(--glow-blue);
}

.btn-sm-ghost {
  padding: 10px 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-sm-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-sm-ghost:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.02);
}

/* --- 5. PAGES: landing hero --- */
#landing {
  min-height: 70vh;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--space-6);
  z-index: 1;
}

/* --- HERO AURORA + ICONS --- */
.hero-aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0) 100%);
}

.floating-icon {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: transform 0.2s ease-out, opacity 0.3s ease;
}

[data-theme="dark"] .floating-icon {
  background: transparent !important;
  border: none !important;
  opacity: 0.9;
}

.floating-icon img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  filter: none !important;
  object-fit: contain;
}

[data-theme="dark"] .twitter img {
  filter: invert(1) !important;
}

.floating-icon:hover {
  transform: scale(1.05) !important;
  opacity: 1;
}

/* Toned down icon glows */
.instagram {
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.1);
}

.youtube {
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.1);
}

.tiktok {
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.08);
}

.twitter {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.linkedin {
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.1);
}

/* Positioned wide apart and away from center text */
.f-yt {
  top: 20%;
  left: 15%;
}

.f-insta {
  top: 25%;
  right: 15%;
}

.f-tiktok {
  top: 50%;
  left: 8%;
}

.f-tw {
  bottom: 20%;
  right: 18%;
}

.f-in {
  bottom: 15%;
  left: 18%;
}

@keyframes floatY {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-25px) rotate(3deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes floatXY {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(15px, -20px) rotate(2deg);
  }

  66% {
    transform: translate(-10px, 15px) rotate(-2deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* ============================================================   GLOBAL AURORA BACKGROUND & ATMOSPHERIC FADE   ============================================================ */
#aurora-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  /* Visual tuning: blur and saturate to make it atmospheric */
  filter: blur(80px) saturate(120%);
  opacity: 0.7;
}

#aurora-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Atmospheric Smooth Fade    Fades out the aurora seamlessly into the background color */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Default dark mode fade (#020617 / rgb(2,6,23)) */
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.4) 40%, rgba(2, 6, 23, 0.9) 70%, #020617 100%);
}

/* Light mode override for fade (#f8fafc / rgb(248,250,252)) */
body:not([data-theme="dark"])::after {
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.4) 40%, rgba(248, 250, 252, 0.9) 70%, #f8fafc 100%);
}

/* ---- Noise overlay for subtle texture (Optional, but adds nice grain) ---- */
.aurora-noise {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

:root:not([data-theme="dark"]) .aurora-noise,
body:not([data-theme="dark"]) .aurora-noise {
  opacity: 0.05;
}

/* ============================================================   DARK MODE AURORA — richer, more vivid   ============================================================ */
body[data-theme="dark"] .aurora-noise {
  opacity: 0.15;
}

/* ============================================================   REDUCED MOTION — respect prefers-reduced-motion   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .aurora-orb {
    animation: none !important;
    opacity: 0.4;
  }
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(var(--space-7), 6vw, 56px) clamp(var(--space-6), 5vw, 48px);
  background: var(--glass);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md), 0 0 60px rgba(26, 6, 255, 0.08);
  animation: fadeUp 0.55s ease both;
}

body[data-theme="dark"] .hero-card {
  box-shadow: var(--shadow-md), 0 0 80px rgba(26, 6, 255, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-hover);
  margin-bottom: var(--space-6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: badgePulse 2.8s ease-in-out infinite, fadeUp 0.5s ease both;
}

@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(26, 6, 255, 0.25);
  }

  50% {
    transform: scale(1.02);
    opacity: 0.92;
    box-shadow: 0 0 24px rgba(26, 6, 255, 0.2);
  }
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: dotPulse 2s ease-in-out infinite;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--primary-glow);
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.65;
    transform: scale(1.35);
  }
}

h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.06em;
  margin-bottom: 16px;
  color: var(--text);
  animation: fadeUp 0.55s 0.06s ease both;
}

h1 .blue {
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#landing .hero h1 {
  text-wrap: balance;
}

h1 .hero-grad {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text2);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 32px;
  animation: fadeUp 0.55s 0.12s ease both;
}

.cta-row {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.55s 0.18s ease both;
}

.cta-row .btn-primary {
  padding: 16px 40px;
  box-shadow: 0 8px 32px rgba(26, 6, 255, 0.25);
}

.cta-row .btn-sm-ghost {
  padding: 14px 28px;
}

/* --- landing stats --- */
.stats-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  background: var(--bg-secondary);
  border-radius: 32px;
  margin-top: -32px;
  position: relative;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat-card {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-theme="dark"] .stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .stat-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
}

[data-theme="dark"] .stat-number {
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  opacity: 0.6;
  color: var(--text);
  margin-top: 4px;
  font-weight: 600;
}

/* --- landing sections & glass cards --- */
.section {
  padding: 100px var(--space-6);
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-2);
  line-height: 1.12;
}

.section-sub {
  font-size: 16px;
  color: var(--text2);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: var(--space-5);
  max-width: 520px;
}

.section--center .section-tag,
.section--center .section-title,
.section--center .section-sub {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section--center .section-sub {
  max-width: 560px;
}

.preview-grid {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.preview-card {
  width: 280px;
  max-width: 100%;
  padding: var(--space-5);
}

.preview-card .step-title {
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.step-card {
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: var(--backdrop-glass-subtle);
  -webkit-backdrop-filter: var(--backdrop-glass-subtle);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 6, 255, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.step-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 40px rgba(26, 6, 255, 0.12);
}

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

.step-num {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--primary-hover);
  margin-bottom: var(--space-4);
}

.step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.step-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.75;
}

.features-bg {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feat {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: var(--backdrop-glass-subtle);
  -webkit-backdrop-filter: var(--backdrop-glass-subtle);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow-sm);
}

.feat:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 6, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feat:nth-child(2) {
  border-color: rgba(26, 6, 255, 0.2);
  background: rgba(26, 6, 255, 0.02);
  box-shadow: 0 8px 24px rgba(26, 6, 255, 0.04);
}

.feat:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 36px rgba(26, 6, 255, 0.1);
}

.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: var(--space-4);
}

.feat-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.feat-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}

.cta-section {
  background: var(--bg-secondary);
  padding: 80px var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section::before {
  content: '';
  position: absolute;
  width: min(560px, 90vw);
  height: min(560px, 90vw);
  background: radial-gradient(circle, rgba(26, 6, 255, 0.22), transparent 68%);
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(50px);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.cta-sub {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: var(--space-6);
  line-height: 1.65;
}

/* --- marquee --- */
.marquee-section {
  padding: var(--space-6) 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-section::-webkit-scrollbar {
  display: none;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
  padding: 0 20px;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  border-right: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.marquee-item:hover {
  color: var(--primary);
  background: var(--primary-dim);
  transform: translateY(-2px);
}

.marquee-item span {
  font-size: 20px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

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

/* --- more / preview feature grid --- */
.more-section {
  padding: 60px var(--space-6);
  background: radial-gradient(circle at top right, var(--bg-secondary), var(--bg-primary));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.more-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.more-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-3);
}

.more-sub {
  font-size: 15px;
  color: var(--text2);
  text-align: center;
  margin-bottom: var(--space-6);
  line-height: 1.65;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.more-card:nth-child(1) {
  border-color: rgba(26, 6, 255, 0.15);
  background: rgba(26, 6, 255, 0.015);
}

.more-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: var(--primary-border);
}

.more-card-vis {
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.more-card-vis--score {
  background: linear-gradient(145deg, rgba(26, 6, 255, 0.14), var(--surface));
}

.more-card-vis--ideas {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.1), var(--surface));
}

.more-card-vis--times {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.1), var(--surface));
}

.more-card-vis--chat {
  background: linear-gradient(145deg, #0f172a, #1e3a5f);
}

.more-demo {
  padding: var(--space-4);
  width: 100%;
}

.more-demo-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.more-demo-label--blue {
  color: var(--primary);
  text-align: center;
}

.more-demo-label--green {
  color: var(--green);
}

.more-demo-label--amber {
  color: var(--orange);
}

.more-demo-label--muted {
  color: var(--text3);
}

.more-demo-score-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 0 24px rgba(26, 6, 255, 0.25);
  line-height: 1.1;
}

.more-demo-score-ring span:first-child {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

.more-demo-score-ring .more-demo-score-denom {
  font-size: 9px;
  color: var(--text3);
  font-weight: 700;
}

.more-demo-bars {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0 var(--space-4);
}

.more-demo-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(26, 6, 255, 0.15);
  overflow: hidden;
}

.more-demo-bar-fill {
  height: 100%;
  border-radius: 2px;
}

.more-demo-bar-fill--blue {
  background: var(--primary);
}

.more-demo-bar-fill--green {
  background: var(--green);
}

.more-demo-idea-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.more-demo-chip {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.more-demo-chip--cta {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  border-color: var(--green-border);
  font-weight: 700;
}

.more-demo-times-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.more-demo-time-cell {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  text-align: center;
  border: 1px solid var(--border);
}

.more-demo-time-cell .dow {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
}

.more-demo-time-cell .slot {
  font-size: 14px;
  font-weight: 900;
  color: var(--orange);
}

.more-demo-time-cell .slot--green {
  color: var(--green);
}

.more-demo-time-cell .tag {
  font-size: 9px;
  font-weight: 700;
  margin-top: 2px;
}

.more-demo-chat-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.more-demo-bubble {
  border-radius: 10px;
  padding: var(--space-2) var(--space-3);
  font-size: 11px;
  line-height: 1.5;
  border: 1px solid var(--border);
}

.more-demo-bubble--user {
  background: rgba(26, 6, 255, 0.18);
  color: rgba(248, 250, 252, 0.9);
  border-color: rgba(26, 6, 255, 0.35);
  border-radius: 10px 10px 10px 2px;
}

.more-demo-bubble--ai {
  background: var(--glass);
  color: var(--text2);
  align-self: flex-end;
  border-radius: 10px 10px 2px 10px;
}

.more-card-body {
  padding: var(--space-5);
}

.more-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.more-card-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.more-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.more-card-link:hover {
  gap: 10px;
  color: var(--primary-hover);
}

/* --- testimonials --- */
.testi-section {
  padding: 50px var(--space-6);
  background: var(--bg);
}

.testi-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: var(--space-8);
}

.testi-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: var(--backdrop-glass-subtle);
  -webkit-backdrop-filter: var(--backdrop-glass-subtle);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow-sm);
}

.testi-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: 0 12px 32px rgba(26, 6, 255, 0.08);
}

.testi-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 36px rgba(26, 6, 255, 0.08);
}

.testi-stars {
  font-size: 14px;
  margin-bottom: var(--space-3);
}

.testi-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: var(--space-5);
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testi-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.testi-handle {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}

/* ============================================================
   HOOK COACH v4 — INTELLIGENCE STYLES
   ============================================================ */

.hook-result-panel.v4-intel {
  animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.score-circle-lg.gold {
  border-color: #FCD34D !important;
  color: #FCD34D !important;
  box-shadow: 0 0 20px rgba(252, 211, 77, 0.2);
}

.pattern-alert {
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.pattern-tag {
  font-size: 10px;
  font-weight: 900;
  background: var(--purple);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  margin-right: 12px;
}

.pattern-insight-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.pattern-break {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.break-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--purple);
  letter-spacing: 0.05em;
}

.break-text {
  font-size: 14px;
  color: var(--text2);
  font-weight: 600;
}

.brutal-verdict {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--surface);
  border-left: 4px solid var(--red);
  border-radius: 4px 16px 16px 4px;
}

.brutal-note-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  font-style: italic;
}

.risk-badge {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.risk-low { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.risk-medium { background: rgba(234, 179, 8, 0.1); color: #eab308; }
.risk-high { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.deep-failure-text {
  font-size: 14px;
  color: var(--text3);
  margin-top: 12px;
  opacity: 0.8;
}

.strategic-shift-banner {
  margin-bottom: 24px;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shift-label {
  font-size: 11px;
  font-weight: 900;
  opacity: 0.7;
  letter-spacing: 0.1em;
}

.shift-value {
  font-size: 15px;
  font-weight: 700;
}

.diag-item.action-step::before {
  background: var(--blue) !important;
  content: "→" !important;
  font-size: 12px !important;
}

.best-rewrite-card {
  background: var(--bg2);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.1);
  position: relative;
}

.best-rewrite-card .rewrite-type {
  font-size: 11px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.rewrite-card.secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
}

.rewrite-card.secondary .rw-text {
  color: var(--text2);
  margin-top: 8px;
  line-height: 1.4;
}

.rewrite-card.secondary .rw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rewrite-card.secondary .rewrite-type {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.6;
}

.post-hook-flow {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  animation: slideUpFade 0.4s ease forwards;
}

.next-step-card {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.next-step-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.next-step-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.next-step-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.continue-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.continue-btn:hover {
  transform: translateX(4px);
  filter: brightness(1.1);
}

.execution-feedback-loop {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  animation: slideUpFade 0.5s ease forwards;
}

.feedback-card {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.feedback-question {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.feedback-options {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.feedback-chip {
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-chip:hover {
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-2px);
}

.feedback-chip.rating-low:hover { border-color: var(--red); color: var(--red); }
.feedback-chip.rating-okay:hover { border-color: var(--gold); color: var(--gold); }
.feedback-chip.rating-good:hover { border-color: var(--green); color: var(--green); }

.learning-insight-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.02));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  animation: slideUpFade 0.6s ease forwards;
}

.learning-insight-card::before {
  content: 'SYSTEM LEARNING';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 8px;
  font-weight: 900;
  color: var(--purple);
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.learning-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.learning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.learning-sec-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.learning-sec-label.best { color: var(--green); }
.learning-sec-label.avoid { color: var(--red); opacity: 0.8; }

.learning-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.learning-item {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 6px;
  padding-left: 12px;
  position: relative;
}

.learning-item::before {
  content: '→';
  position: absolute;
  left: 0;
  color: inherit;
  opacity: 0.5;
}

.dna-nudge {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  animation: slideUpFade 0.4s ease forwards;
}

.dna-nudge-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 12px;
}

.dna-nudge-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 16px;
}

.dna-actions {
  display: flex;
  gap: 8px;
}

.dna-btn {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dna-btn.apply {
  background: #f59e0b;
  color: #fff;
  border: none;
}

.dna-btn.dismiss {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text3);
}

.dna-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.diagnosis-v4 {
  margin-top: 32px;
  padding: 24px;
  background: rgba(239, 68, 68, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.1);
}

.diagnosis-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diagnosis-list li {
  font-size: 14px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.diagnosis-list li::before {
  content: "!";
  width: 18px;
  height: 18px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rewrites-v4 {
  margin-top: 40px;
}

.rewrite-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rewrite-card {
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.rewrite-card:hover {
  border-color: var(--blue);
  transform: translateX(4px);
  background: rgba(26, 6, 255, 0.02);
}

.rw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rw-type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  background: rgba(26, 6, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

.rw-copy-btn {
  background: transparent;
  border: none;
  color: var(--text3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.rw-copy-btn:hover {
  background: var(--border);
  color: var(--text);
}

.rw-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}

.rw-reasoning {
  font-size: 12px;
  color: var(--text3);
  font-style: italic;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}


/* --- FAQ --- */
.faq-section {
  padding: 40px var(--space-6);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--glass);
  backdrop-filter: var(--backdrop-glass-subtle);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
  background: var(--bg-primary);
}

.faq-q {
  padding: var(--space-5) var(--space-5);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  user-select: none;
  transition: background 0.2s ease;
}

.faq-q:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.active .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
  padding: 0 var(--space-5) var(--space-5);
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
}

/* ============================================================   12. LANDING PAGE — CTA Sections (handled above in section 7)   ============================================================ */
.notion-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  gap: 10px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease !important;
}

.notion-icon-badge {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}


.notion-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: 0.5s;
}

.notion-btn:hover::before {
  left: 100%;
}

.notion-btn:hover {
  transform: translateY(-1px);
  background: #252525 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notion-btn:active {
  transform: translateY(0);
  background: #1a1a1a !important;
}

.notion-btn:disabled {
  background: #111 !important;
  opacity: 0.5;
  cursor: not-allowed;
}


/* Spinner for loading states */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

[data-theme="dark"] .notion-btn {
  background: linear-gradient(135deg, #fff, #e2e8f0);
  color: #000 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .notion-btn:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--primary) !important;
}

[data-theme="dark"] .notion-btn img {
  filter: none !important;
}

[data-theme="dark"] .notion-btn .spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: #000;
}

/* ============================================================
   PREMIUM MICRO-INTERACTIONS
   ============================================================ */

/* Button Hover & Active States */
button,
.btn-primary,
.btn-ghost,
.btn-sm,
.btn-sm-ghost,
.auth-submit-btn,
.opt,
.opt-s,
.plan-item,
.hook,
.nav-tab-btn,
.theme-btn {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    opacity 0.3s ease !important;
}

button:hover:not(:disabled),
.btn-primary:hover:not(:disabled),
.btn-ghost:hover:not(:disabled),
.btn-sm:hover:not(:disabled),
.btn-sm-ghost:hover:not(:disabled),
.auth-submit-btn:hover:not(:disabled),
.opt:hover,
.opt-s:hover,
.nav-tab-btn:hover:not(.active) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 6, 255, 0.15);
}

button:active:not(:disabled),
.btn-primary:active:not(:disabled),
.btn-ghost:active:not(:disabled),
.btn-sm:active:not(:disabled),
.btn-sm-ghost:active:not(:disabled),
.auth-submit-btn:active:not(:disabled),
.nav-tab-btn:active {
  transform: scale(0.97) translateY(0px);
}

/* Input Focus Glow */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(26, 6, 255, 0.12) !important;
  outline: none;
}

/* Section & Card Entry Animations */
.section,
.res-card,
.idea-item,
.plan-section,
.quiz-wrap,
.auth-modal-card {
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Global Button Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  border-top-color: #fff;
  animation: authSpin 0.6s linear infinite;
}

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

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
  position: relative;
  z-index: 10;
  width: 100%;
}

.footer-top {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-7);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

.footer-brand .brand {
  margin-bottom: var(--space-5);
}
.footer-brand .brand-icon {
  width: 36px;
  height: 36px;
}
.footer-brand .brand-text {
  font-size: 18px;
}
[data-theme="dark"] .brand-text {
  color: #FFFFFF;
}
/* Colors are now handled globally near line 300 */

/* ── BRAND WATERMARK (Micro-Integration) ── */
.brand-watermark {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 120px;
  height: 120px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  transform: rotate(15deg);
}
[data-theme="dark"] .brand-watermark {
  opacity: 0.05;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: var(--space-4);
}

.footer-socials {
  display: flex;
  gap: var(--space-2);
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social:hover {
  border-color: var(--primary-border);
  background: var(--primary-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(26, 6, 255, 0.15);
}

.footer-col-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--primary-hover);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-5) var(--space-6);
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-copy {
  font-size: 12px;
  color: var(--text3);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-4);
}

.footer-bottom-link {
  font-size: 12px;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-bottom-link:hover {
  color: var(--primary-hover);
}

@media(max-width:768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1/-1;
  }
}

@media(max-width:480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* --- quiz --- */
#quiz {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: calc(64px + var(--space-6)) var(--space-6) var(--space-7);
  background: var(--bg);
}

.quiz-wrap {
  width: 100%;
  max-width: 660px;
  padding: var(--space-8);
  background: var(--quiz-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--quiz-border);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .quiz-wrap {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.03);
}

/* --- STEPPER INDICATORS --- */
.step-indicator-row {
  display: flex;
  width: 100%;
  align-items: center;
  margin-bottom: 48px;
}

.step-indicator {
  position: relative;
  cursor: default;
  outline: none;
  z-index: 2;
}

.step-indicator-inner {
  display: flex;
  height: 2.2rem;
  width: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--step-bg);
  color: var(--step-text);
  border: 1px solid var(--quiz-border);
  transition: all 0.3s ease;
}

.active-step .step-indicator-inner {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue2);
  transform: scale(1.1);
}

.completed-step .step-indicator-inner {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 15px rgba(26, 6, 255, 0.5);
}

.active-step .step-indicator-inner {
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.7), 0 0 30px rgba(26, 6, 255, 0.6);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px rgba(26, 6, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 25px rgba(26, 6, 255, 0.8);
  }

  100% {
    box-shadow: 0 0 10px rgba(26, 6, 255, 0.4);
  }
}

.step-connector {
  position: relative;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  height: 2px;
  flex: 1;
  background-color: var(--step-connector);
  border-radius: 4px;
  overflow: hidden;
}

.step-connector-inner {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width 0.4s ease;
}

.step-connector.complete .step-connector-inner {
  width: 100%;
}

.step-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.quiz-q {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 6px;
  color: var(--text);
}

.quiz-sub {
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 32px;
  line-height: 1.55;
}

.opts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 28px;
}

.opt {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.opt:hover {
  border-color: rgba(26, 6, 255, 0.4);
  background: rgba(26, 6, 255, 0.03);
  transform: translateY(-2px);
}

.opt.sel {
  border: 1px solid rgba(26, 6, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(26, 6, 255, 0.4), 0 0 25px rgba(26, 6, 255, 0.35), 0 0 60px rgba(99, 102, 241, 0.25);
  transform: scale(1.02);
  background: rgba(26, 6, 255, 0.05);
}

.opt-icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

[data-theme="dark"] .icon img,
[data-theme="dark"] .opt-icon img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.opt-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.opt-desc {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}

.opts-single {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.opt-s {
  padding: 17px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.opt-s:hover {
  border-color: rgba(26, 6, 255, 0.4);
  background: rgba(26, 6, 255, 0.03);
  transform: translateX(3px);
}

.opt-s.sel {
  border: 1px solid rgba(26, 6, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(26, 6, 255, 0.4), 0 0 25px rgba(26, 6, 255, 0.35), 0 0 60px rgba(99, 102, 241, 0.25);
  transform: scale(1.02);
  background: rgba(26, 6, 255, 0.05);
}

.radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.opt-s.sel .radio {
  background: var(--blue);
  border-color: var(--blue);
}

.opt-s.sel .radio::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.opt-s-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.opt-s-desc {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
  line-height: 1.45;
}

.custom-input-wrap {
  margin-top: 14px;
  display: none;
}

.custom-input-wrap.show {
  display: block;
}

.custom-niche-in {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--input-bg);
  border: 1px solid var(--primary);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
  box-shadow: 0 0 0 2px rgba(26, 6, 255, 0.15);
}

.custom-niche-in::placeholder {
  color: var(--text3);
  font-weight: 400;
}

.custom-niche-in:focus {
  box-shadow: 0 0 0 3px rgba(26, 6, 255, 0.25);
}

.btn-custom-continue {
  width: 100%;
  margin-top: 14px;
  padding: 14px 22px;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.btn-back {
  padding: 11px 24px;
  border-radius: 100px;
  background: transparent;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  font-family: inherit;
  transition: var(--transition);
}

.btn-back:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-next {
  padding: 13px 32px;
  border-radius: 100px;
  background: var(--blue);
  border: 2px solid var(--blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  font-family: inherit;
  transition: var(--transition);
}

.btn-next:hover {
  background: var(--blue2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 6, 255, 0.35);
}

.btn-next:disabled {
  opacity: .3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================   15. LOADING PAGE   ============================================================ */
#loading {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
  background: var(--bg);
}

.loading-box {
  text-align: center;
  max-width: 420px;
}

.ring {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-8);
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite, ringGlow 1.8s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(26, 6, 255, 0.35);
}

@keyframes ringGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 6, 255, 0.38);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

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

.loading-t {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.5px;
  min-height: 32px;
  transition: opacity 0.15s var(--ease-out);
  text-shadow: 0 0 48px rgba(26, 6, 255, 0.2);
}

.loading-text-tick {
  opacity: 0.35;
}

.loading-s {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
}

.dots {
  display: inline-flex;
  gap: 7px;
  margin-top: 28px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: dot 1.4s ease infinite;
}

.dots span:nth-child(2) {
  animation-delay: .2s;
}

.dots span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes dot {

  0%,
  80%,
  100% {
    transform: scale(.6);
    opacity: .35;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================================   16. RESULT PAGE — Hero & Tabs (dashboard workspace in section 28)   ============================================================ */
#result {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 0;
  background: var(--bg);
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-hero {
  padding: 0 48px 0px 48px; 
  text-align: left;
  position: relative;
  width: 100%;
  max-width: 1160px; 
  margin: 0 auto;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border-subtle);
  animation: heroEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.2s ease, transform 0.2s ease, margin 0.2s ease, padding 0.2s ease, height 0.2s ease, filter 0.2s ease;
  overflow: hidden;
}

.result-hero.hidden {
  opacity: 0;
  transform: translateY(-20px);
  filter: blur(8px);
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  height: 0;
  border-bottom: none;
  pointer-events: none;
}

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

.result-hero-card {
  position: relative;
  z-index: 1;
  width: 100%; 
  margin: 0;
  padding: 8px 0 16px 0;
  background: transparent; 
  border: none;
  box-shadow: none;
  text-align: left;
}

.result-hero-card .res-hero-h {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 4px;
  margin-bottom: 6px;
}

.res-hero-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--text2); /* Rely on token opacity (78%) */
  line-height: 1.3;
  width: 100%;
  margin: 0;
}

@media (max-width: 1000px) {
  .result-hero-card {
    padding: 40px 24px;
    text-align: center;
  }
}

.res-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(74, 222, 128, 0.04);
  border: 1px solid rgba(74, 222, 128, 0.1);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4ade80;
  opacity: 0.7;
  margin-bottom: 20px;
}

.res-hero-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.1;
}

.tabs-wrap {
  display: block;
}

.tabs {
  display: flex;
}

.tab-icon {
  font-size: 14px;
  opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.tab-content {
  display: none;
  width: 100%;
  max-width: 1160px; /* TASK 1: Rebalanced width */
  margin: 0 auto;
  padding: 0 48px 40px; /* TASK 2: Locked Alignment */
  box-sizing: border-box;
  min-height: 60vh;
}

.tab-content.active {
  display: block;
}

body.dashboard-active .tab-content {
  max-width: var(--content-max);
  padding: var(--space-5) var(--space-6) var(--space-7);
}

/* ============================================================   17. RESULT PAGE — Cards & Content   ============================================================ */
.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.res-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.res-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-border);
}

.res-card.full {
  grid-column: 1/-1;
  padding: 36px 40px;
  background: var(--surface-raised);
  border: 1px solid var(--primary-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  opacity: 0.98;
}

.res-card.full .card-body {
  font-size: 16px;
  opacity: 0.85;
  line-height: 1.7;
}

.card-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.card-body {
  font-size: 14px;
  color: var(--text2);
  opacity: 0.6;
  line-height: 1.85;
}

.hooks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hook {
  padding: 14px 16px 14px 32px;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.hook:hover {
  border-color: var(--primary-border);
  background: var(--primary-dim);
  box-shadow: 0 0 28px rgba(26, 6, 255, 0.12);
  transform: translateY(-1px);
}

.hook::before {
  content: '"';
  position: absolute;
  left: 12px;
  top: 11px;
  color: var(--primary);
  font-weight: 900;
  font-size: 17px;
}

.hook-copy {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
  background: var(--surface-raised);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.hook:hover .hook-copy {
  opacity: 1;
}

.cta-copy-box {
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-5);
  cursor: pointer;
  transition: var(--transition);
}

.cta-copy-box:hover {
  box-shadow: 0 0 32px rgba(26, 6, 255, 0.2);
  transform: translateY(-1px);
}

.cta-copy-box .cta-copy-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-hover);
  margin-left: var(--space-2);
}

/* Pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--blue3);
  border: 1.5px solid var(--border2);
  font-size: 12px;
  color: var(--blue);
  font-weight: 700;
  transition: var(--transition);
}

.pill:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Roadmap */
.roadmap-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roadmap-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.roadmap-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 4px 12px rgba(26, 6, 255, 0.2);
}

.roadmap-text {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.75;
  flex: 1;
}

.res-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ============================================================   18. RESULT PAGE — Best Times   ============================================================ */
.times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.time-card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--glass);
  backdrop-filter: var(--backdrop-glass-subtle);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.time-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(26, 6, 255, 0.1);
}

.time-day {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.time-slot {
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.5px;
}

.time-why {
  font-size: 11px;
  color: var(--text3);
  margin-top: 5px;
  line-height: 1.45;
}

.time-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-top: 8px;
}

.time-badge.hot {
  background: rgba(220, 38, 38, .1);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.time-badge.good {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

/* ============================================================   19. RESULT PAGE — Content Ideas   ============================================================ */
.ideas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.ideas-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.idea-item {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: var(--backdrop-glass-subtle);
  -webkit-backdrop-filter: var(--backdrop-glass-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  cursor: default;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.idea-item:hover {
  border-color: var(--primary-border);
  background: var(--primary-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(26, 6, 255, 0.1);
}

.idea-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--blue3);
  border: 1.5px solid var(--border2);
  font-size: 12px;
  font-weight: 900;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.idea-content {
  flex: 1;
  min-width: 0;
}

.idea-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.idea-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--blue3);
  border: 1px solid var(--border2);
}

.idea-platform {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.idea-trend {
  font-size: 10px;
  font-weight: 700;
  color: var(--text2);
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--border);
  max-width: 100%;
  line-height: 1.35;
}

.idea-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.45;
}

.idea-desc {
  font-size: 12px;
  color: var(--text2); /* Increased to Secondary level for better readability */
  line-height: 1.55;
}

.idea-tags {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.idea-tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  background: var(--blue3);
  color: var(--blue);
  border: 1px solid var(--border2);
}

.idea-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.btn-more {
  padding: 6px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: left;
}

.btn-more:hover {
  color: var(--text);
  background: var(--surface-raised);
}

.btn-more.active {
  color: var(--primary);
  background: var(--primary-dim);
}

.more-actions-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.more-actions-menu.show {
  max-height: 200px;
  opacity: 1;
  margin-top: 2px;
  pointer-events: auto;
}

.idea-copy-btn,
.idea-remix-btn {
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--dur-fast) var(--ease-out), background .2s;
  padding: 7px 12px;
  border-radius: 8px;
  width: 100%;
  text-align: left;
}

.idea-copy-btn {
  color: var(--blue);
  background: var(--bg3);
  border: 1px solid var(--border2);
}

.idea-remix-btn {
  color: var(--text2);
  background: transparent;
  border: 1px solid var(--border);
}

.idea-remix-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue3);
}

/* ============================================================   20. RESULT PAGE — Hook Tester   ============================================================ */
.hook-tester {
  background: var(--glass);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.hook-input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.hook-textarea {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  resize: none;
  transition: var(--transition);
  line-height: 1.65;
  min-height: 88px;
}

.hook-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 6, 255, 0.25);
}

.hook-textarea::placeholder {
  color: var(--text3);
}

.hook-char {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
}

.hook-score-wrap {
  display: none;
}

.hook-score-wrap.show {
  display: block;
}

.score-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.score-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid;
  flex-shrink: 0;
}

.score-num {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
}

.score-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: -2px;
}

.score-circle.great {
  border-color: var(--green);
  color: var(--green);
}

.score-circle.good {
  border-color: var(--orange);
  color: var(--orange);
}

.score-circle.weak {
  border-color: var(--red);
  color: var(--red);
}

.score-verdict {
  flex: 1;
  min-width: 180px;
}

.score-verdict-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}

.score-verdict-sub {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 22px;
}

.score-bar-item {
  display: grid;
  grid-template-columns: 145px 1fr 38px;
  gap: 10px;
  align-items: center;
}

.score-bar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
}

.score-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width .9s cubic-bezier(.4, 0, .2, 1);
}

.score-bar-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  text-align: right;
}

.score-tips {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.score-tip {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.60;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.score-tip.pos {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--text);
}

.score-tip.neg {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--text);
}

.score-tip.neu {
  background: var(--orange-bg);
  border: 1px solid var(--orange-border);
  color: var(--text);
}

.tip-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================   21. RESULT PAGE — Save Strategy Section   ============================================================ */
.save-section {
  background: var(--glass);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-md);
}

.save-section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(26, 6, 255, 0.12);
  pointer-events: none;
}

.save-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.save-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: var(--space-6);
  line-height: 1.65;
}

.save-btns {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-save {
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  font-family: inherit;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.btn-save:hover {
  transform: scale(1.02) translateY(-1px);
  box-shadow: var(--glow-blue);
  background: var(--primary-hover);
}

.btn-save-ghost {
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text2);
  font-family: inherit;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-save-ghost:hover {
  border-color: var(--primary-border);
  color: var(--primary-hover);
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 0 24px rgba(26, 6, 255, 0.12);
}

/* ============================================================   22. RESULT PAGE — Chat   ============================================================ */
.chat-box {
  background: var(--glass);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.chat-msgs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.msg {
  padding: 13px 17px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.70;
  max-width: 90%;
}

.msg.ai {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text2);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-row {
  display: flex;
  gap: 10px;
}

.chat-in {
  flex: 1;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.chat-in:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 6, 255, 0.2);
}

.chat-in::placeholder {
  color: var(--text3);
}

.chat-send {
  padding: 13px 24px;
  border-radius: 100px;
  background: var(--blue);
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  font-family: inherit;
  transition: var(--transition);
}

.chat-send:hover {
  background: var(--primary-hover);
  transform: scale(1.02) translateY(-1px);
  box-shadow: var(--glow-blue);
}

/* ============================================================   23. TOAST (Floating System)   ============================================================ */
.toast-container {
  position: fixed !important;
  top: 24px !important;
  right: 24px !important;
  left: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  z-index: 1000000 !important;
  pointer-events: none !important;
  width: auto !important;
  height: auto !important;
  min-height: unset !important;
  min-width: unset !important;
  max-height: unset !important;
  flex: unset !important;
}

.toast {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: fit-content !important;
  max-width: 320px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: rgba(10, 10, 12, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  color: #fff !important;
  pointer-events: auto !important;
  animation: toastIn .28s cubic-bezier(0.2, 1, 0.3, 1) !important;
  overflow: hidden !important;
  height: auto !important;
  flex: unset !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  min-height: unset !important;
  min-width: unset !important;
  align-self: flex-end !important;
}

.toast * {
  flex: unset !important;
  height: auto !important;
}

.toast.success {
  border-left: 2px solid #6366f1 !important;
}

.toast.error {
  border-left: 2px solid #f43f5e !important;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px) translateX(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }
}

/* ============================================================   24. ANIMATIONS   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade {
  animation: fadeUp .45s ease both;
}

.fade-d1 {
  animation: fadeUp .45s .06s ease both;
}

.fade-d2 {
  animation: fadeUp .45s .12s ease both;
}

.fade-d3 {
  animation: fadeUp .45s .18s ease both;
}

/* ============================================================   25. RESPONSIVE / MOBILE   ============================================================ */
@media(max-width:640px) {
  nav {
    padding: 14px 20px;
  }

  .opts-grid {
    grid-template-columns: 1fr;
  }

  .res-grid {
    grid-template-columns: 1fr;
  }

  .steps,
  .features,
  .times-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 20px 24px;
  }

  .stats-strip {
    flex-wrap: wrap;
  }

  .score-bar-item {
    grid-template-columns: 100px 1fr 32px;
  }

  .save-btns {
    flex-direction: column;
    align-items: center;
  }

  h1 {
    letter-spacing: -1.5px;
  }

  .tab {
    padding: 14px 14px;
    font-size: 12px;
  }
}

@media(max-width:768px) {
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .more-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:480px) {
  .more-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================   26. CUSTOM CURSOR   ============================================================ */
#cur-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s;
}

#cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 130, 246, .5);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

#cur-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  animation: cglow 2.2s ease-in-out infinite;
}

@keyframes cglow {

  0%,
  100% {
    opacity: .55;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

body.cur-click #cur-dot {
  width: 6px;
  height: 6px;
}

body.cur-click #cur-ring {
  width: 54px;
  height: 54px;
  opacity: .3;
}

* {
  cursor: none !important;
}

body:has(#quiz.active) footer,
body:has(#loading.active) footer,
body:has(#result.active) footer {
  display: none !important;
}

/* ============================================================   27. QUIZ SLIDE TRANSITION   ============================================================ */
.quiz-slide {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
}

.quiz-slide.quiz-slide-in {
  opacity: 1;
  transform: translateY(0);
}

.quiz-slide.quiz-slide-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .24s var(--ease-out), transform .24s var(--ease-out);
  pointer-events: none;
}

/* AI Scanner Animation */
/* --- ADVANCED HOOK AUDITOR UI --- */
.ai-scanner {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--blue3);
  border-radius: 20px;
  overflow: hidden;
  margin: 25px 0;
}

.ai-scanner::after {
  content: "";
  display: block;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: scan 1.2s infinite ease-in-out;
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(300%);
  }
}

.analyzing-text {
  font-size: 10px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  animation: analyzingPulse 1s ease-in-out infinite;
}

@keyframes analyzingPulse {

  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.hook-scan-block {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-6);
  text-align: center;
}

.hook-scan-sub {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}

.hook-result-panel {
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
  animation: fadeUp 0.4s ease both;
}

.score-bars--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.score-bars--two-col .score-bar-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}

.score-bars--two-col .score-bar-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
}

.score-bars--two-col .score-bar-track {
  height: 6px;
}

@media (max-width: 640px) {
  .score-bars--two-col {
    grid-template-columns: 1fr;
  }
}

.rewrite-box {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--primary-dim);
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary-border);
}

.rewrite-box-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--primary-hover);
  margin-bottom: var(--space-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rewrite-box-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  font-weight: 500;
}

.score-circle--compact {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 900;
  font-size: 24px !important;
  border-width: 4px !important;
}

/* ============================================================   6. DASHBOARD — horizontal tab bar (no sidebar)   ============================================================ */
body.dashboard-active {
  background: var(--bg);
  overflow-x: hidden;
}

body.dashboard-active>nav {
  display: flex !important;
}

.tabs-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--backdrop-glass-subtle);
  -webkit-backdrop-filter: var(--backdrop-glass-subtle);
}

.tabs {
  display: flex;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}

.tab:hover {
  color: var(--text2);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-icon {
  font-size: 14px;
}

.tab-content {
  display: none;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-5) var(--space-6) var(--space-7);
  box-sizing: border-box;
  min-height: 60vh;
}

.tab-content.active {
  display: block;
}

body.dashboard-active .tab-content {
  max-width: var(--content-max);
  padding: var(--space-5) var(--space-6) var(--space-7);
}

/* ============================================================
   PREMIUM FLOATING SIDEBAR
   ============================================================ */

#result.page.active {
  display: flex !important;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  gap: 0;
  background: var(--bg);
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-y: auto;
  padding: 0;
  transition: all 0.3s ease;
}

.dashboard-nav {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background: var(--bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  margin-bottom: 0;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Push actions to right */
  padding: 0 16px !important; /* Reduced padding as requested */
  height: 60px;
}

.dashboard-nav .nav-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

body.dashboard-active #landingNav {
  display: none !important;
}

/* ============================================================
   PREMIUM GLASS SIDEBAR SYSTEM (2025 UPGRADE)
   ============================================================ */

.premium-sidebar {
  --sb-expanded: 260px;
  --sb-collapsed: 80px;
  --sb-current: var(--sb-expanded);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --accent-gradient: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  
  width: var(--sb-current) !important;
  min-width: var(--sb-current) !important;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  left: 0;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-right: 1px solid var(--glass-border);
  padding: 0;
  z-index: 10001;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ambient Gradient Glow (Asymmetric) */
.premium-sidebar::after {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(26, 6, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Glass Depth & Top Highlight */
.premium-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 0;
}

/* 1. TOP: Header Zone */
.sb-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 20px 20px;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.sb-brand-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(26, 6, 255, 0.3));
  flex-shrink: 0;
}

.sb-brand-text {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.sb-toggle-v2 {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sb-toggle-v2:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: scale(1.05);
}

.sb-header-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 0 18px;
  z-index: 1;
  opacity: 0.5;
}

/* 2. MIDDLE: Navigation Zone */
.sb-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
  scrollbar-width: none;
}
.sb-nav::-webkit-scrollbar { display: none; }

.sb-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--text3);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
}

.sb-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transform: translateX(1px);
}

.sb-nav-item.active {
  background: rgba(82, 71, 255, 0.08);
  color: #FFFFFF;
  font-weight: 600;
  border: 1px solid rgba(82, 71, 255, 0.2);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Active State Accent Line */
.sb-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 2px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px var(--primary);
}

.sb-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sb-nav-icon img,
.sb-nav-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.6;
  transition: all 0.3s ease;
}

/* Specific handling for legacy image icons (inverting black to white) */
[data-theme="dark"] .sb-nav-icon img {
  filter: invert(1) brightness(2);
}

/* Active/Hover states */
.sb-nav-item.active .sb-nav-icon img,
.sb-nav-item.active .sb-nav-icon svg,
.sb-nav-item:hover .sb-nav-icon img,
.sb-nav-item:hover .sb-nav-icon svg {
  opacity: 1;
  transform: scale(1.1);
}

[data-theme="dark"] .sb-nav-item.active .sb-nav-icon img,
[data-theme="dark"] .sb-nav-item:hover .sb-nav-icon img {
  filter: invert(1) brightness(3);
}

.sb-nav-item.active .sb-nav-icon img,
.sb-nav-item.active .sb-nav-icon svg {
  filter: drop-shadow(0 0 4px rgba(26, 6, 255, 0.3));
}

/* 3. BOTTOM: System + Profile Zone */
.sb-footer {
  padding: 20px 14px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.05);
  border-top: 1px solid var(--glass-border);
}

/* Theme Row (Integrated) */
.sb-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text3);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.sb-theme-row:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--glass-border);
}

.sb-theme-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sb-theme-switch {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sb-theme-knob {
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sb-theme-row.active .sb-theme-knob { 
  transform: translateX(16px); 
}

.sb-theme-row.active .sb-theme-switch { 
  background: var(--primary); 
  box-shadow: 0 0 12px var(--primary-glow);
  border-color: rgba(255, 255, 255, 0.2);
}

.sb-theme-row:not(.active) .sb-theme-knob { 
  transform: translateX(0); 
}

.sb-theme-row:not(.active) .sb-theme-switch { 
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* Profile Card */
.sb-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sb-profile-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.sb-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.sb-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
}

.sb-profile-info {
  overflow: hidden;
}

.sb-profile-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sb-profile-role {
  color: var(--text3);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.8; /* Ensure visibility in dark mode */
}

.sb-profile-avatar img {
  filter: none !important; /* Keep avatar as is */
}

[data-theme="dark"] .sb-toggle-v2 img,
[data-theme="dark"] .sb-theme-info img {
  filter: invert(1) brightness(2);
}

/* Collapse State Handling */
.premium-sidebar.collapsed {
  --sb-current: var(--sb-collapsed);
}

.premium-sidebar.collapsed .sb-brand-text,
.premium-sidebar.collapsed .sb-nav-label,
.premium-sidebar.collapsed .sb-profile-info,
.premium-sidebar.collapsed .sb-theme-info .sb-nav-label,
.premium-sidebar.collapsed .sb-theme-switch {
  display: none;
}

.premium-sidebar.collapsed .sb-brand { gap: 0; }
.premium-sidebar.collapsed .sb-nav-item { padding: 12px; justify-content: center; }

/* ================= HELP PANEL (SLIDE-IN GUIDE) ================= */
.help-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.help-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.help-panel {
  position: absolute;
  top: 0;
  right: -440px; /* Adjusted for wider panel */
  width: min(420px, 92vw);
  height: 100%;
  background: var(--nav-glass);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  color: var(--text);
  overflow-y: auto;
  z-index: 100001;
}

.help-panel-overlay.active .help-panel {
  transform: translateX(-440px);
}

.help-header {
  padding: 40px 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.help-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}

.help-subtitle {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}

.help-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.help-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 4px;
}

.help-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.25s var(--ease-out);
}

.help-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.help-card-h {
  font-size: 16px; /* Slightly larger */
  font-weight: 800;
  margin-bottom: 16px; /* More spacing */
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}

.help-tip-item span {
  opacity: 0.7; /* Reduced for hierarchy */
}

.help-tip-item strong {
  opacity: 1;
}

.help-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  mask-image: linear-gradient(to bottom, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 92%, transparent 100%);
}

.help-footer-anchor {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.6;
  letter-spacing: -0.01em;
}

.help-cta-btn {
  width: 100%;
  font-size: 12px;
  padding: 12px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.help-cta-btn:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-1px);
}

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

/* Section Highlight Effect */
.section-highlight {
  position: relative;
  animation: sectionPulseHighlight 2s ease forwards;
  z-index: 50;
}

@keyframes sectionPulseHighlight {
  0% { outline: 4px solid var(--primary); outline-offset: 8px; box-shadow: 0 0 0 rgba(74, 222, 128, 0); }
  30% { outline: 4px solid var(--primary); outline-offset: 4px; box-shadow: 0 0 30px var(--primary-glow); }
  100% { outline: 0px solid transparent; outline-offset: 0px; box-shadow: 0 0 0 rgba(74, 222, 128, 0); }
}

.help-progress-wrap {
  padding: 0 32px 20px 32px;
  margin-top: -10px;
}

.help-progress-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.help-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.help-progress-inner {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--primary-glow);
}

.help-tip-item:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.help-tip-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--primary-glow);
}

.help-close-btn {
  position: absolute;
  top: 40px;
  right: 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text2);
  transition: all 0.3s var(--ease-out);
}

.help-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: rotate(90deg);
}

.pro-tip-tag {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(82, 71, 255, 0.1);
  color: var(--primary);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.premium-sidebar.collapsed .sb-nav-item::before { display: none; }
.premium-sidebar.collapsed .sb-theme-row { padding: 12px; justify-content: center; }
.premium-sidebar.collapsed .sb-profile-card { padding: 10px; justify-content: center; }

.premium-sidebar.collapsed .sb-toggle-v2 {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
}

.premium-sidebar.collapsed .sb-toggle-v2 svg {
  transform: rotate(180deg);
}

/* Layout Rebalance for Collapsed Sidebar */
body.dashboard-active.sb-collapsed .kit-nav {
  left: 80px !important;
  width: calc(100% - 80px) !important;
}

.sb-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 8px 20px;
  opacity: 0.5;
}

.sb-controls-group {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Relaxed, intentional spacing */
  padding: 6px;
  background: rgba(255, 255, 255, 0.02); /* Faint surface shift */
  border-radius: 14px;
  margin: 0 8px 18px; /* Controlled imperfection in rhythm */
}
/* Execution System */
.dash-execution-block {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-field-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-input, .dash-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 16px;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}

.dash-input:focus, .dash-textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.dash-textarea {
  min-height: 120px;
  line-height: 1.6;
  resize: vertical;
}

.execution-mode .app-sidebar,
.execution-mode .app-navbar,
.execution-mode .dash-header,
.execution-mode .dash-grid {
  filter: blur(8px);
  pointer-events: none;
  opacity: 0.3;
}

.execution-mode .dash-primary-action {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 100000;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 0 100px rgba(0,0,0,0.8), 0 0 40px var(--primary-glow);
}

.dash-log-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.dash-log-status--pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.dash-log-status--success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
/* ============================================================
   SIDEBAR RESPONSIVE — Hide on small screens
   ============================================================ */
@media (max-width: 900px) {
  .premium-sidebar {
    display: none !important;
  }
  .gooey-nav-mobile {
    display: flex !important;
  }
  #result.page.active {
    display: block !important;
  }
}

@media (min-width: 901px) {
  .gooey-nav-mobile {
    display: none !important;
  }
}


@keyframes dashFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- First Move Card Refinement ---- */
.first-move-card {
  padding: 32px 36px !important; /* Premium breathing room */
  margin-bottom: 32px !important;
  background: rgba(82, 71, 255, 0.08) !important; /* Deeper tint for readability */
  border: 1px solid rgba(82, 71, 255, 0.2) !important;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2); /* Darker base tint */
}

.first-move-tag {
  background: rgba(99, 102, 241, 0.1) !important; /* TASK 3: Softened accent */
  color: var(--primary) !important;
  border: 1px solid rgba(99, 102, 241, 0.15);
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  padding: 3px 10px !important;
  margin-bottom: 20px !important;
  border-radius: 4px;
}

.first-move-action-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.first-move-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.first-move-col-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 8px;
}

.first-move-col-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
}

.first-move-col-text.highlight {
  color: var(--text);
  font-weight: 600;
}

body.dashboard-active #tab-strategy .res-grid .res-card {
  animation: dashFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

body.dashboard-active #tab-strategy .res-grid .res-card:nth-child(1) {
  animation-delay: 0s;
}

body.dashboard-active #tab-strategy .res-grid .res-card:nth-child(2) {
  animation-delay: 0.07s;
}

body.dashboard-active #tab-strategy .res-grid .res-card:nth-child(3) {
  animation-delay: 0.14s;
}

body.dashboard-active #tab-strategy .res-grid .res-card:nth-child(4) {
  animation-delay: 0.21s;
}

body.dashboard-active #tab-strategy .res-grid .res-card:nth-child(5) {
  animation-delay: 0.28s;
}

body.dashboard-active #tab-strategy .res-grid .res-card:nth-child(6) {
  animation-delay: 0.35s;
}

@keyframes resBadgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.35);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
  }
}

body.dashboard-active .res-badge {
  animation: resBadgePulse 2.6s ease-in-out infinite;
}

/* ---- QUIZ SLIDE TRANSITIONS ---- */
.quiz-slide {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.quiz-slide.quiz-slide-in {
  opacity: 1;
  transform: translateY(0);
}

.quiz-slide.quiz-slide-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

/* ============================================================   11. BORDER GLOW — edge-aware cursor-following glow   Converted from React Bits BorderGlow → pure CSS / vanilla JS   Apply class "border-glow-card" to any card element   ============================================================ */
.border-glow-card {
  --border-radius: var(--radius-lg);
  --card-bg: var(--surface);
  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  display: grid;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: none;
  overflow: visible;
  transition: border-color 0.2s ease;
}

/* Subtle hover lift */
.border-glow-card:hover {
  border-color: var(--border-strong);
}

/* ---- Pseudo-layer base ---- */
.border-glow-card::before,
.border-glow-card::after,
.border-glow-card>.edge-light {
  display: none !important;
}

/* ---- Fade out when NOT hovered ---- */
.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active)>.edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* ---- Coloured mesh-gradient border (::before) ---- */
.border-glow-card::before {
  border: 1px solid transparent;
  background: linear-gradient(var(--card-bg) 0 100%) padding-box, linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box, var(--gradient-one, radial-gradient(at 80% 55%, hsla(220, 90%, 65%, 1) 0px, transparent 50%)) border-box, var(--gradient-two, radial-gradient(at 69% 34%, hsla(200, 85%, 60%, 1) 0px, transparent 50%)) border-box, var(--gradient-three, radial-gradient(at 8% 6%, hsla(260, 80%, 72%, 1) 0px, transparent 50%)) border-box, var(--gradient-four, radial-gradient(at 41% 38%, hsla(210, 90%, 64%, 1) 0px, transparent 50%)) border-box, var(--gradient-five, radial-gradient(at 86% 85%, hsla(190, 90%, 70%, 1) 0px, transparent 50%)) border-box, var(--gradient-six, radial-gradient(at 82% 18%, hsla(240, 80%, 72%, 1) 0px, transparent 50%)) border-box, var(--gradient-seven, radial-gradient(at 51% 4%, hsla(210, 85%, 65%, 1) 0px, transparent 50%)) border-box, var(--gradient-base, linear-gradient(#1A06FF 0 100%)) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mask-image: conic-gradient(from var(--cursor-angle) at center, black calc(var(--cone-spread) * 1%), transparent calc((var(--cone-spread) + 15) * 1%), transparent calc((100 - var(--cone-spread) - 15) * 1%), black calc((100 - var(--cone-spread)) * 1%));
}

/* ---- Coloured mesh fill near edges (::after) ---- */
.border-glow-card::after {
  border: 1px solid transparent;
  background: var(--gradient-one, radial-gradient(at 80% 55%, hsla(220, 90%, 65%, 1) 0px, transparent 50%)) padding-box, var(--gradient-two, radial-gradient(at 69% 34%, hsla(200, 85%, 60%, 1) 0px, transparent 50%)) padding-box, var(--gradient-three, radial-gradient(at 8% 6%, hsla(260, 80%, 72%, 1) 0px, transparent 50%)) padding-box, var(--gradient-four, radial-gradient(at 41% 38%, hsla(210, 90%, 64%, 1) 0px, transparent 50%)) padding-box, var(--gradient-five, radial-gradient(at 86% 85%, hsla(190, 90%, 70%, 1) 0px, transparent 50%)) padding-box, var(--gradient-six, radial-gradient(at 82% 18%, hsla(240, 80%, 72%, 1) 0px, transparent 50%)) padding-box, var(--gradient-seven, radial-gradient(at 51% 4%, hsla(210, 85%, 65%, 1) 0px, transparent 50%)) padding-box, var(--gradient-base, linear-gradient(#1A06FF 0 100%)) padding-box;
  mask-image: linear-gradient(to bottom, black, black), radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%), radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%), radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%), radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%), radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%), conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-composite: subtract, add, add, add, add, add;
  -webkit-mask-composite: source-out, source-over, source-over, source-over, source-over, source-over;
  opacity: calc(var(--fill-opacity, 0.5) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

/* ---- Outer glow layer (.edge-light) ---- */
.border-glow-card>.edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 1;
  mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

[data-theme="light"] .border-glow-card>.edge-light {
  mix-blend-mode: normal;
}

.border-glow-card>.edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--glow-color, hsl(220deg 80% 70% / 100%)), inset 0 0 1px 0 var(--glow-color-60, hsl(220deg 80% 70% / 60%)), inset 0 0 3px 0 var(--glow-color-50, hsl(220deg 80% 70% / 50%)), inset 0 0 6px 0 var(--glow-color-40, hsl(220deg 80% 70% / 40%)), inset 0 0 15px 0 var(--glow-color-30, hsl(220deg 80% 70% / 30%)), inset 0 0 25px 2px var(--glow-color-20, hsl(220deg 80% 70% / 20%)), inset 0 0 50px 2px var(--glow-color-10, hsl(220deg 80% 70% / 10%)), 0 0 1px 0 var(--glow-color-60, hsl(220deg 80% 70% / 60%)), 0 0 3px 0 var(--glow-color-50, hsl(220deg 80% 70% / 50%)), 0 0 6px 0 var(--glow-color-40, hsl(220deg 80% 70% / 40%)), 0 0 15px 0 var(--glow-color-30, hsl(220deg 80% 70% / 30%)), 0 0 25px 2px var(--glow-color-20, hsl(220deg 80% 70% / 20%)), 0 0 50px 2px var(--glow-color-10, hsl(220deg 80% 70% / 10%));
}

/* ---- Inner content wrapper ---- */
.border-glow-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: auto;
  z-index: 1;
}

/* ---- Dark theme adjustments ---- */
[data-theme="dark"] .border-glow-card {
  --card-bg: var(--surface);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---- Landing page step-card integration ---- */
.step-card.border-glow-card {
  background: var(--card-bg);
  backdrop-filter: var(--backdrop-glass-subtle);
  -webkit-backdrop-filter: var(--backdrop-glass-subtle);
  box-shadow: var(--shadow-sm);
}

.step-card.border-glow-card:hover {
  box-shadow: var(--shadow-md), 0 0 40px rgba(26, 6, 255, 0.12);
}

/* ---- Feature card integration ---- */
.feat.border-glow-card {
  background: var(--card-bg);
  backdrop-filter: var(--backdrop-glass-subtle);
  -webkit-backdrop-filter: var(--backdrop-glass-subtle);
  box-shadow: var(--shadow-sm);
}

.feat.border-glow-card:hover {
  box-shadow: var(--shadow-md), 0 0 36px rgba(26, 6, 255, 0.1);
}

/* ---- More-card integration ---- */
.more-card.border-glow-card {
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.more-card.border-glow-card:hover {
  box-shadow: var(--shadow-md), 0 0 40px rgba(26, 6, 255, 0.1);
}

/* ---- Testimonial card integration ---- */
.testi-card.border-glow-card {
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.testi-card.border-glow-card:hover {
  box-shadow: var(--shadow-md), 0 0 32px rgba(26, 6, 255, 0.1);
}

/* ---- Ensure glow doesn't clip inside section containers ---- */
.steps,
.features,
.more-grid,
.testi-grid,
.preview-grid {
  overflow: visible;
}

.features-bg,
.more-section,
.testi-section {
  overflow: visible;
}

/* --- FLOATING THEME TOGGLE --- */
.theme-toggle-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-floating:hover {
  transform: scale(1.1) rotate(12deg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  border-color: var(--primary);
}

/* --- CUSTOM GLASSMorphism ICONS --- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin-right: 0.2em;
  position: relative;
  transition: transform 0.2s ease;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon:hover {
  transform: scale(1.1);
}

.feat-icon .icon {
  width: 24px;
  height: 24px;
}

.tab .icon,
.nav-tab-btn .icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}


/* --- TIME DASHBOARD STYLES --- */
.region-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
  min-width: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.region-select:hover {
  border-color: var(--primary-border);
  box-shadow: 0 0 20px var(--primary-glow);
}

[data-theme="dark"] .region-select {
  background: #1a2332;
}

.breakdown-list>div:last-child {
  border-bottom: none !important;
}

[data-theme="dark"] .theme-toggle-floating {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* --- GOOEY NAV TAB BUTTONS --- */
.nav-tab-btn {
  padding: 10px 24px;
  border-radius: 30px;
  border: 1.5px solid var(--border-strong) !important;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.nav-tab-btn:hover {
  background: var(--primary-dim);
  border-color: var(--primary-border) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 6, 255, 0.15);
}

.nav-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary) !important;
  box-shadow: 0 0 24px var(--primary-glow);
}

/* ============================================================
   CURSOR RESTORE — custom cursor system removed
   ============================================================ */
*,
*::before,
*::after {
  cursor: auto !important;
}

button,
[role="button"],
a,
select,
label[for],
input[type="checkbox"],
input[type="radio"],
.tab,
.opt,
.opt-s,
.faq-q,
.pillar-btn,
.hook,
.plan-item,
.more-card-link,
.footer-link,
.footer-social,
.idea-item,
.idea-copy-btn,
.idea-remix-btn,
.ideas-gen-more-btn,
.btn-primary,
.btn-ghost,
.btn-sm,
.btn-sm-ghost,
.btn-nav,
.btn-more,
.btn-save,
.btn-save-ghost,
.btn-back,
.btn-next,
.chat-send,
.theme-btn,
.theme-toggle-floating,
.nav-tab-btn,
.pillar-btn,
.add-plan-btn,
.plan-remove,
.plan-generate-btn,
.region-select,
.marquee-item,
.today-hook-chip {
  cursor: pointer !important;
}

input,
textarea {
  cursor: text !important;
}

[disabled],
.disabled {
  cursor: not-allowed !important;
}


/* ============================================================
   PILLAR SELECTOR - filter bar above idea cards
   ============================================================ */
.pillar-selector {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 16px 20px 20px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.pillar-selector::-webkit-scrollbar {
  display: none;
}

.pillar-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex-shrink: 0;
  opacity: 0.85;
  white-space: nowrap;
  letter-spacing: 0.03em;
  scroll-snap-align: center;
  animation: microFloat 4s ease-in-out infinite;
}

.pillar-btn:hover {
  opacity: 1;
  background: var(--glass-strong);
  border-color: var(--primary-border);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 6, 255, 0.15);
}

.pillar-btn:hover .icon {
  filter: drop-shadow(0 0 8px var(--primary-glow)) brightness(1.2);
}

.pillar-btn.active {
  opacity: 1;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.06);
  font-weight: 600;
  box-shadow: 0 10px 28px var(--primary-glow);
  filter: brightness(1.05);
  animation: none;
  /* stop floating on active */
}

.pillar-btn:active {
  transform: scale(0.96);
}

.pillar-btn .icon {
  width: 17px;
  height: 17px;
  margin-right: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

@keyframes microFloat {

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

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

/* ============================================================
   PILLAR BADGE - small tag on idea cards
   ============================================================ */
.pillar-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  display: inline-block;
}

/* ============================================================
   ADD TO PLAN BUTTON - on each idea card
   ============================================================ */
.add-plan-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.add-plan-btn:hover {
  border-color: var(--primary-border);
  color: var(--primary);
  background: var(--primary-dim);
  box-shadow: 0 0 16px rgba(26, 6, 255, 0.15);
}

.add-plan-btn:active {
  transform: scale(0.96);
}

.add-plan-btn.added {
  background: var(--primary-dim);
  border-color: var(--primary-border);
  color: var(--primary);
  pointer-events: none;
}

/* ============================================================
   YOUR PLAN SECTION - below idea cards
   ============================================================ */
.plan-section {
  margin-top: 16px;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: var(--backdrop-glass-subtle);
  -webkit-backdrop-filter: var(--backdrop-glass-subtle);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.plan-section:hover {
  border-color: rgba(26, 6, 255, 0.15);
}

.plan-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-empty {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.65;
  padding: 12px 0;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.plan-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  cursor: pointer;
}

.plan-item:hover {
  border-color: var(--primary-border);
  background: var(--primary-dim);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(26, 6, 255, 0.08);
}

.plan-item:active {
  transform: scale(0.985) translateX(2px);
}

.plan-day {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 48px;
}

.plan-idea-text {
  flex: 1;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.plan-remove {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  font-family: inherit;
}

.plan-remove:hover {
  border-color: var(--red-border);
  color: var(--red);
}

.btn-sm {
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-sm-ghost {
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  font-family: inherit;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.plan-generate-btn {
  width: 100%;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 4px;
}

.plan-generate-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.01) translateY(-1px);
  box-shadow: var(--glow-blue), 0 8px 24px rgba(26, 6, 255, 0.3);
  filter: brightness(1.05);
}

.plan-generate-btn:active {
  transform: scale(0.98) translateY(0);
}

.plan-pillar-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--blue3);
  color: var(--primary);
  border: 1px solid var(--border2);
  flex-shrink: 0;
}

/* ============================================================
   UPGRADES 3,4,5,6 STYLES
   ============================================================ */
.pulse-ready {
  animation: pulseReady 1.5s infinite ease-in-out;
  box-shadow: 0 0 15px rgba(22, 163, 74, 0.4);
  background: var(--green) !important;
  color: #fff !important;
  border-color: var(--green) !important;
}

@keyframes pulseReady {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(22, 163, 74, 0.4);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 25px rgba(22, 163, 74, 0.8);
    transform: scale(1.02);
  }
}

.plan-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 900;
  color: white;
  transition: all 0.3s;
}

.plan-dot.pending {
  background: transparent;
}

.plan-dot.in-progress {
  background: var(--primary);
  border-color: var(--primary);
  animation: inProgressPulse 2s infinite ease-in-out;
}

@keyframes inProgressPulse {

  0%,
  100% {
    box-shadow: 0 0 0px var(--primary-glow);
  }

  50% {
    box-shadow: 0 0 12px var(--primary-glow);
  }
}

.plan-dot.completed {
  background: var(--green);
  border-color: var(--green);
  animation: checkPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.active-plan-item {
  border-color: var(--primary-border);
  background: linear-gradient(135deg, var(--surface-raised), var(--primary-dim));
  box-shadow: inset 0 0 12px var(--primary-dim);
}

.plan-today-tag {
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: todaySlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1), badgePulse 2.8s ease-in-out infinite;
}

@keyframes todaySlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.add-plan-btn:active {
  transform: scale(0.92);
  box-shadow: 0 0 25px var(--primary-glow);
}

.btn-more:active {
  transform: scale(0.92);
}

.exec-check input:checked {
  animation: checkPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes checkPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.welcome-banner {
  background: linear-gradient(135deg, var(--primary-dim), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--primary-border);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: dashFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.intel-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid transparent;
  display: inline-block;
  letter-spacing: 0.05em;
}

.intel-tag.viral {
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.1);
}

.intel-tag.fast {
  color: #1A06FF;
  border-color: rgba(26, 6, 255, 0.3);
  background: rgba(26, 6, 255, 0.1);
}

.intel-tag.auth {
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.1);
}

.intel-tag.rel {
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.3);
  background: rgba(236, 72, 153, 0.1);
}

/* ============================================================
   EMPTY STATE STYLES
   ============================================================ */
.plan-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  animation: dashFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.plan-empty-state .empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-empty-state .empty-sub {
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 24px;
  line-height: 1.5;
  max-width: 280px;
}

/* Removed legacy toast block to avoid inheritance issues */

/* Removed legacy toast icon block */

/* ============================================================
   CONTORA PHASE 1 RESET
   ============================================================ */
.today-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.today-focus-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text);
  margin: 14px 0 18px;
  letter-spacing: -0.04em;
}

.today-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.today-focus-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  margin-bottom: 6px;
}

.today-focus-copy {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
}

.today-focus-actions,
.save-progress-actions,
.ideas-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.today-focus-actions {
  margin-top: 18px;
}

.today-hook-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.today-hook-chip {
  border: 1px solid var(--primary-border);
  background: var(--primary-dim);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.today-hook-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 6, 255, 0.12);
}

.today-mini-plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 18px;
}

.today-mini-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.today-mini-plan-day {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.today-mini-plan-window,
.today-mini-plan-angle,
.weekly-slot-reason,
.weekly-queue-meta,
.ideas-subtitle,
.niche-note,
.save-progress-copy,
.saved-empty-copy {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
}

.trend-brief-grid,
.weekly-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.trend-brief-summary,
.weekly-slot-title {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 700;
  margin: 12px 0;
}

.trend-brief-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.trend-brief-meta,
.idea-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trend-brief-meta {
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text3);
}

.save-progress-card {
  margin-top: 28px;
  padding: 22px;
}

.save-progress-title,
.saved-empty-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
}

.ideas-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ideas-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
  margin: 10px 0 6px;
}

.idea-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(26, 6, 255, 0.08);
  border: 1px solid var(--primary-border);
  color: var(--primary-hover);
}

/* Pillar badge — per-pillar colour via inline CSS vars */
.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--pillar-bg, rgba(109, 40, 217, 0.12));
  border: 1px solid var(--pillar-border, rgba(109, 40, 217, 0.28));
  color: var(--pillar-color, #6D28D9);
  transition: filter 0.2s ease;
}

.idea-item:hover .pillar-badge {
  filter: brightness(1.1);
}

/* Angle pill — smaller, more muted; secondary to the pillar badge */
.idea-angle-pill {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--border) !important;
  color: var(--text3) !important;
  font-weight: 700 !important;
}

/* Sub-angle chip — shows which sub-angle drove the idea */
.sub-angle-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text3);
  margin-left: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.idea-item:hover .sub-angle-chip {
  color: var(--text2);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Adaptive Intelligence: Reasoning Text */
.idea-reasoning {
  font-size: 11px;
  color: var(--accent);
  background: rgba(var(--accent-rgb, 26, 6, 255), 0.06);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 10px 0 14px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border: 1px solid rgba(var(--accent-rgb, 26, 6, 255), 0.12);
  animation: reasoningFadeIn 0.5s ease forwards;
}

.idea-reasoning .icon {
  font-size: 12px;
  opacity: 0.9;
}

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

/* Identity Profile Badge */
.profile-badge {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb, 26, 6, 255), 0.3);
  display: inline-flex;
  align-items: center;
}

.profile-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(var(--accent-rgb, 26, 6, 255), 0.45);
}

/* Pressure System */
.pressure-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mission System */
.mission-card {
  background: linear-gradient(135deg, rgba(var(--accent-rgb, 26, 6, 255), 0.1), rgba(var(--accent-rgb, 26, 6, 255), 0.02));
  border: 1px solid rgba(var(--accent-rgb, 26, 6, 255), 0.2);
  padding: 32px;
  border-radius: 20px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.mission-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.mission-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.mission-desc {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 24px;
  max-width: 500px;
}

.mission-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mission-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb, 26, 6, 255), 0.4);
}

/* Performance Feedback Loop */
.feedback-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.feedback-modal {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 24px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
}

.feedback-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-opt {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 16px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.feedback-opt span {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
}

.feedback-opt:hover {
  background: rgba(var(--accent-rgb, 26, 6, 255), 0.1);
  border-color: var(--accent);
}


.confidence-strong {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #22c55e;
}

.confidence-promising {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.26);
  color: #f59e0b;
}

.confidence-weak {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.24);
  color: #f87171;
}

.lead-tag {
  margin-bottom: 12px;
  width: fit-content;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.28);
  color: #fb923c;
}

.idea-card-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 8px;
}

.weekly-slot {
  padding: 20px;
}

.weekly-slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.weekly-slot-day {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.weekly-slot-window {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.weekly-queue-card {
  margin-top: 26px;
  padding: 20px;
}

.weekly-queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.weekly-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.weekly-queue-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.plan-empty,
.saved-empty {
  padding: 46px 20px;
  text-align: center;
}

.hook-coach-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hook-review-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hook-review-type,
.hook-review-band {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
}

.sb-nav-item.active {
  color: var(--primary);
  background: rgba(26, 6, 255, 0.05);
  box-shadow: 0 0 15px rgba(26, 6, 255, 0.1);
}

.nav-cta:active, .save-done-btn:active {
  transform: scale(0.96);
}

.hook-review-type {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hook-review-block {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.hook-review-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  margin-bottom: 8px;
}

.hook-review-copy,
.hook-review-highlight,
.hook-review-item {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.hook-review-highlight {
  font-size: 18px;
  font-weight: 800;
}

.hook-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hook-review-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(26, 6, 255, 0.06);
  border: 1px solid rgba(26, 6, 255, 0.16);
}

@media (max-width: 960px) {
  .today-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .today-focus-grid {
    grid-template-columns: 1fr;
  }

  .weekly-queue-item,
  .today-mini-plan-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ============================================================
   SAVED LIBRARY — Execution View & Done State
   ============================================================ */
.saved-idea-done {
  opacity: 0.55;
}

.saved-idea-done .idea-title {
  text-decoration: line-through;
  text-decoration-color: var(--text3);
}

.btn-done-active {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: #22c55e !important;
}

.saved-exec-view {
  animation: fadeUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  margin-top: 16px;
}

.saved-exec-panel {
  padding: 20px;
  border-radius: 18px;
  background: var(--primary-dim);
  border: 1px solid rgba(26, 6, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.saved-exec-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 4px;
}

.saved-exec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.saved-exec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.saved-exec-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  padding-top: 2px;
}

.saved-exec-section-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.saved-exec-hook {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-style: italic;
}

.idea-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.idea-use-btn,
.idea-copy-btn,
.idea-remix-btn {
  padding: 8px 16px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  height: auto !important;
  width: auto !important;
}

.idea-use-btn {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(26, 6, 255, 0.25) !important;
}

.idea-copy-btn,
.idea-remix-btn {
  background: var(--surface-raised) !important;
  border: 1px solid var(--border) !important;
  color: var(--text2) !important;
}

.idea-copy-btn:hover,
.idea-remix-btn:hover {
  border-color: var(--primary-border) !important;
  background: var(--primary-dim) !important;
  color: var(--primary) !important;
}

/* ============================================================
   IDEA ENGINE — Generate More footer
   ============================================================ */
.ideas-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 24px;
  border-top: 1px solid var(--border);
}

.ideas-counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
}

.ideas-gen-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--primary);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(26, 6, 255, 0.3);
}

.ideas-gen-more-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 6, 255, 0.4);
  filter: brightness(1.08);
}

.ideas-gen-more-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.ideas-gen-more-btn:disabled {
  opacity: 0.55;
  cursor: default;
  filter: none;
}

@keyframes ideaCardAppear {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.idea-card-appear {
  animation: ideaCardAppear 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}


/* ============================================================
   PREMIUM AUTH MODAL
   ============================================================ */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-card {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal-overlay.active .auth-modal-card {
  transform: scale(1);
}

/* STRATEGY GRID & LISTS */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.strategy-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 16px 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.strategy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strategy-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text2);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.strategy-list-item:last-child {
  border-bottom: none;
}

.strategy-list-item::before {
  content: "→";
  color: var(--primary);
  font-weight: 800;
  margin-top: 1px;
}

/* FINAL FAQ OVERRIDE - FORCE HIDE BY DEFAULT */
.faq-a {
  display: block !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease !important;
}

.faq-item.active .faq-a {
  max-height: 500px !important;
  opacity: 1 !important;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg) !important;
}

.faq-a-inner {
  padding: 0 var(--space-5) var(--space-5);
}
/* ============================================================
   EXECUTION DASHBOARD
   ============================================================ */
.dashboard-view {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px 48px;
  box-sizing: border-box;
}
.dash-status-alert {
  background: rgba(26, 6, 255, 0.05);
  border: 1px solid rgba(26, 6, 255, 0.15);
  padding: 16px 24px;
  border-radius: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  margin-top: 12px;
}
.dash-status-alert.status-warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.dash-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.dash-list-item:last-child { border-bottom: none; }
.dash-item-name { font-weight: 700; color: var(--text); font-size: 15px; }
.dash-item-meta { font-size: 12px; color: var(--text3); margin-top: 4px; }
.dash-item-check { color: #22c55e; font-weight: 900; font-size: 18px; }

.dash-week-group { margin-bottom: 32px; }
.dash-week-date { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 12px; }
.dash-week-list { display: flex; flex-direction: column; gap: 8px; }
.dash-week-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text2); }
.dash-week-bullet { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: 0.5; }
.dash-week-type { font-size: 10px; background: var(--glass); padding: 2px 8px; border-radius: 99px; margin-left: auto; color: var(--text3); }

.dash-empty { color: var(--text3); font-size: 14px; font-style: italic; opacity: 0.6; }

/* --- Execution System: Refinements --- */
.floating-timer {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timer-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text3);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.timer-clock {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

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

.streak-active-glow {
  position: relative;
}

.streak-active-glow::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  background: radial-gradient(circle, rgba(26, 6, 255, 0.08) 0%, transparent 70%);
  z-index: -1;
  border-radius: 20px;
  animation: streakGlowPulse 3s infinite ease-in-out;
}


@keyframes streakGlowPulse {
  0% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.4; transform: scale(0.95); }
}

/* ============================================================
   WEEKLY PLAN EXECUTION STYLES
   ============================================================ */
.weekly-slot {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  user-select: none;
}

.weekly-slot:hover:not(.completed) {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary-border);
  background: var(--primary-dim);
}

.weekly-slot:active:not(.completed) {
  transform: translateY(-2px) scale(1.01);
}

.weekly-slot.completed {
  opacity: 0.5;
  border-color: var(--green-border);
  background: var(--green-bg);
  pointer-events: none;
}

.weekly-slot.completed .weekly-slot-title,
.weekly-slot.completed .weekly-slot-reason {
  text-decoration: line-through;
  opacity: 0.7;
}

.weekly-slot-check {
  width: 20px;
  height: 20px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 4px 12px var(--green-border);
  animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.weekly-slot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Time Context Tags */
.time-tag {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 0.05em;
}

.time-today .time-tag {
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.time-tomorrow .time-tag {
  background: var(--glass);
  color: var(--text3);
  border: 1px solid var(--border);
}

.time-past .time-tag {
  background: rgba(0,0,0,0.05);
  color: var(--text3);
  opacity: 0.6;
}

.weekly-slot.time-past:not(.completed) {
  opacity: 0.6;
  filter: grayscale(0.5);
}

/* Dashboard Primary Action Highlight */
.dash-primary-action {
  background: linear-gradient(135deg, var(--primary-dim) 0%, rgba(26,6,255,0.01) 100%);
  border: 1px solid var(--primary-border);
  box-shadow: 0 10px 30px rgba(26,6,255,0.05);
}

.dash-skipped-alert {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-md);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInUp 0.3s ease;
}

.dash-skipped-alert::before {
  content: "⚠️";
  font-size: 14px;
}

/* Return Highlight Animation */
.return-highlight {
  animation: returnPulse 2s ease-in-out infinite;
  border-color: var(--primary) !important;
  transform: scale(1.02);
}

@keyframes returnPulse {
  0% { box-shadow: 0 0 0 0 rgba(26,6,255,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(26,6,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,6,255,0); }
}

/* Premium Active Sidebar Item Animation */
.sb-nav-item.active {
  background: var(--glass);
  border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(26, 6, 255, 0.15);
  z-index: 2;
}

.sb-nav-item.active .sb-nav-icon img,
.sb-nav-icon svg {
  filter: brightness(1.2) drop-shadow(0 0 4px rgba(26, 6, 255, 0.3));
}

.sb-nav-item.active .sb-nav-label {
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   CONTORA — Calendar & Planning UI Redesign
   ============================================================ */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.calendar-day-header {
  padding: 16px;
  background: var(--bg-deep);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.calendar-day-header:last-child {
  border-right: none;
}

.calendar-cell {
  min-height: 140px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.calendar-cell:hover {
  background: var(--primary-dim);
  z-index: 2;
}

.calendar-cell:last-child, 
.calendar-cell:nth-child(7n) {
  border-right: none;
}

.calendar-date-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--text3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.calendar-cell--today {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.calendar-cell--today .calendar-date-num {
  color: var(--primary);
}

.calendar-add-idea {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.calendar-cell:hover .calendar-add-idea {
  opacity: 0.6;
}

/* Calendar Cards */
.cal-card {
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--surface-raised);
}

.cal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.cal-card--confession { border-left: 3px solid #3b82f6; background: rgba(59, 130, 246, 0.05); }
.cal-card--tutorial { border-left: 3px solid #a855f7; background: rgba(168, 85, 247, 0.05); }
.cal-card--observation { border-left: 3px solid #94a3b8; background: rgba(148, 163, 184, 0.05); }
.cal-card--contrast { border-left: 3px solid #22c55e; background: rgba(34, 197, 94, 0.05); }
.cal-card--story { border-left: 3px solid #f59e0b; background: rgba(245, 158, 11, 0.05); }
.cal-card--challenge { border-left: 3px solid #ef4444; background: rgba(239, 68, 68, 0.05); }
.cal-card--mythbust { border-left: 3px solid #06b6d4; background: rgba(6, 182, 212, 0.05); }
.cal-card--experimental { border-left: 3px solid #ec4899; background: rgba(236, 72, 153, 0.05); }
.cal-card--chaos { border-left: 3px solid #f97316; background: rgba(249, 115, 22, 0.05); }

.cal-card--done {
  opacity: 0.4;
  text-decoration: line-through;
}

.cal-more-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--text3);
  text-align: center;
  padding: 4px;
  opacity: 0.8;
}

/* Floating Panels */
.floating-panel {
  position: absolute;
  z-index: 10000;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  padding: 20px;
  animation: panelPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
}

.floating-panel::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--surface);
}

.floating-panel--above::before {
  top: auto;
  bottom: -8px;
  border-bottom: none;
  border-top: 8px solid var(--surface);
}

@keyframes panelPop {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.panel-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.panel-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-item {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.panel-item-hook {
  font-size: 11px;
  color: var(--text3);
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Backlog Section */
.backlog-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.backlog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.backlog-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.backlog-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: var(--primary-dim);
  color: var(--primary);
  border-radius: 6px;
  align-self: flex-start;
}

.backlog-date-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-deep);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.backlog-date-picker:focus-within {
  border-color: var(--primary);
}

.backlog-date-input {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  flex: 1;
  outline: none;
  cursor: pointer;
}

/* Drop Indicator */
.calendar-cell.drag-over {
  background: var(--primary-dim);
  box-shadow: inset 0 0 0 2px var(--primary);
}

/* Month Transition */
.calendar-animate-in {
  animation: calFadeIn 0.4s ease-out;
}

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

/* Empty State */
.calendar-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background: var(--bg-deep);
  border: 2px dashed var(--border);
  border-radius: 24px;
  margin-top: 24px;
}

.calendar-empty-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.calendar-empty-sub {
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 24px;
}
/* Streak Indicator */
.streak-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff8c00, #ff4500);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
  animation: streakGlow 2s infinite alternate;
}

@keyframes streakGlow {
  from { box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3); }
  to { box-shadow: 0 4px 25px rgba(255, 69, 0, 0.5); }
}

/* Missed Day */
.calendar-cell--missed {
  position: relative;
}

.calendar-cell--missed::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
}

.missed-label {
  font-size: 9px;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Today Status */
.today-status {
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
}

.today-status--warning { color: #f59e0b; }
.today-status--success { color: var(--primary); }

/* Card Completion */
.cal-card--done::before {
  content: '✓ ';
  font-weight: 800;
}

/* New Item Animation */
.cal-card-new {
  animation: cardPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardPop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* ============================================================
   SETTINGS V2 — UNTITLED UI STYLE
   ============================================================ */

.settings-v2-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px 48px;
  min-height: calc(100vh - 80px);
  background: var(--bg);
}

/* Breadcrumb / Back Link */
.settings-back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.settings-back-link:hover {
  color: var(--text);
}

.settings-v2-header {
  margin-bottom: 32px;
}

.settings-v2-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.settings-v2-subtitle {
  font-size: 15px;
  color: var(--text3);
  margin-bottom: 32px;
  opacity: 0.8;
}

/* Horizontal Tabs — Untitled UI Style */
.settings-v2-nav {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.settings-v2-nav::-webkit-scrollbar { display: none; }

.settings-v2-nav-item {
  background: none;
  border: none;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.settings-v2-nav-item:hover {
  color: var(--text);
}

.settings-v2-nav-item.active {
  color: var(--primary);
}

.settings-v2-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* Settings Sections — 2 Column Layout */
.settings-v2-content {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
}

.settings-v2-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-strong);
}

.settings-v2-section:last-child {
  border-bottom: none;
}

.settings-v2-section-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-v2-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.settings-v2-section-desc {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.5;
}

.settings-v2-section-fields {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-v2-section-fields .settings-v2-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.settings-avatar-upload-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.settings-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-avatar-preview .sb-avatar-fallback {
  width: 100%;
  height: 100%;
  font-size: 32px;
}

.settings-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-v2-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
}

/* Inputs & Form Elements */
.settings-v2-input,
.settings-v2-select {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.settings-v2-input:hover,
.settings-v2-select:hover {
  border-color: var(--text3);
}

.settings-v2-input:focus,
.settings-v2-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-dim);
}

.settings-v2-input[readonly] {
  background: var(--bg);
  color: var(--text3);
  cursor: not-allowed;
  border-color: var(--border);
}

.settings-v2-field-hint {
  font-size: 14px;
  color: var(--text3);
  margin-top: 4px;
}

/* Buttons */
.settings-v2-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  width: fit-content;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--text3);
}

.btn-danger {
  background: #fff;
  border: 1px solid #fee2e2;
  color: #d12424;
}

.btn-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* Toggle Switch — Untitled Style */
.settings-v2-toggle {
  width: 36px;
  height: 20px;
  background: var(--border-strong);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.settings-v2-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-v2-toggle.active {
  background: var(--primary);
}

.settings-v2-toggle.active::after {
  transform: translateX(16px);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .settings-v2-container { padding: 32px 20px; }
  .settings-v2-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .settings-v2-section-fields { max-width: 100%; }
}

/* --- CUSTOM ANIMATIONS --- */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.completion-reward {
  animation: rewardPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-color: var(--orange) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3) !important;
}

@keyframes rewardPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.dash-sec-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  font-weight: 800;
  margin-bottom: 24px;
}

.idea-action-btn { pointer-events: auto !important; position: relative; z-index: 9999; }

