/* Tinder 4 SaaSpreneurs — Estolla-inspired light theme */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Brand palette (from refs) */
  --color-brand: #C04B63;
  --color-brand-dark: #9B3D52;
  --color-brand-light: #FDF2F4;
  --color-brand-muted: #E8B4BE;

  --bg-main: #FFF8FA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF5F7;
  --bg-input: #FFFFFF;

  --border-light: rgba(192, 75, 99, 0.14);
  --border-active: rgba(192, 75, 99, 0.35);

  --text-primary: #2A1F25;
  --text-secondary: #6B5560;
  --text-muted: #9A8A92;

  --grad-primary: linear-gradient(135deg, #C04B63 0%, #D4627A 100%);
  --grad-secondary: linear-gradient(135deg, #C04B63 0%, #9B3D52 100%);
  --grad-success: linear-gradient(135deg, #C04B63 0%, #9B3D52 100%);
  --grad-dark: linear-gradient(180deg, #FDF2F4 0%, #FFFFFF 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(253, 242, 244, 0.6) 100%);

  --color-heart: #C04B63;
  --color-reject: #D64545;
  --color-gold: #B8860B;
  --color-info: #5B8DEF;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-premium: 0 8px 32px rgba(192, 75, 99, 0.1);
  --shadow-glow: 0 0 24px rgba(192, 75, 99, 0.15);

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Global Reset & Base Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #FFFFFF;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

body.landing-active {
  background: #FFFFFF;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-brand-light);
}
::-webkit-scrollbar-thumb {
  background: var(--color-brand-muted);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* ========== LANDING PAGE (Estolla ref) ========== */

.landing-page {
  min-height: 100vh;
  background: #FFFFFF;
}

.landing-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.landing-logo {
  justify-self: start;
}

.landing-nav {
  display: flex;
  gap: 28px;
  justify-self: center;
  justify-content: center;
}

.landing-header-cta {
  justify-self: end;
}

.landing-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-nav-link:hover {
  color: var(--color-brand);
}

.landing-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-dot {
  color: var(--color-brand);
}

.landing-header-cta {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  justify-self: end;
}

.landing-mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-primary);
  cursor: pointer;
}

.btn-landing-primary {
  background: var(--color-brand);
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(192, 75, 99, 0.25);
}

.btn-landing-primary:hover {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
}

.btn-landing-ghost {
  background: transparent;
  color: var(--text-primary);
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-landing-ghost:hover {
  color: var(--color-brand);
}

.btn-landing-outline {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1.5px solid var(--color-brand-muted);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-landing-outline:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.btn-hero-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* Hero */
.landing-hero {
  background: linear-gradient(180deg, #FDF2F4 0%, #FFF5F8 55%, #FFFFFF 100%);
  padding: 48px 24px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Floating background snippets */
.landing-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-item {
  position: absolute;
  opacity: 0;
  animation: floatDrift linear infinite;
  white-space: nowrap;
  user-select: none;
}

.float-code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  color: rgba(192, 75, 99, 0.22);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(192, 75, 99, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  backdrop-filter: blur(2px);
}

.float-emoji {
  font-size: 22px;
  filter: grayscale(20%);
  opacity: 0.35;
}

@keyframes floatDrift {
  0% {
    opacity: 0;
    transform: translateY(20px) translateX(0) rotate(-2deg);
  }
  12% { opacity: 0.7; }
  50% {
    transform: translateY(-30px) translateX(var(--float-drift, 10px)) rotate(2deg);
  }
  88% { opacity: 0.5; }
  100% {
    opacity: 0;
    transform: translateY(-70px) translateX(calc(var(--float-drift, 10px) * -1)) rotate(-1deg);
  }
}

.animate-hero-in {
  animation: heroRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.hero-visual,
.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-card {
  animation: cardBob 4s ease-in-out infinite;
}

.hero-card-right {
  animation-delay: -2s;
}

@keyframes cardBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-heart {
  animation: heartBeat 1.4s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-card {
  position: relative;
}

.hero-card-photo {
  width: 140px;
  height: 170px;
  border-radius: 20px;
  border: 3px solid var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(192, 75, 99, 0.15);
}

.founder-photo {
  background: linear-gradient(160deg, #FCE4EC 0%, #F8BBD0 100%);
}

.idea-photo {
  background: linear-gradient(160deg, #FFF3E0 0%, #FFE0B2 100%);
}

.hero-avatar {
  font-size: 56px;
}

.hero-bubble {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  max-width: 160px;
  box-shadow: var(--shadow-premium);
  line-height: 1.35;
}

.hero-bubble-left {
  top: -12px;
  right: -20px;
}

.hero-bubble-right {
  bottom: -12px;
  left: -20px;
}

.hero-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-brand);
  width: 80px;
}

.hero-dotted-line {
  width: 80px;
  height: 30px;
}

.hero-heart {
  width: 36px;
  height: 36px;
  background: var(--color-brand);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: -8px;
  box-shadow: 0 4px 12px rgba(192, 75, 99, 0.3);
}

.hero-copy {
  max-width: 620px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(54px, 5vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-highlight {
  color: var(--color-brand);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-clouds {
  position: relative;
  margin-top: -40px;
  line-height: 0;
}

.clouds-svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* Stats bar */
.landing-stats {
  background: var(--color-brand);
  color: #FFFFFF;
  padding: 48px 24px;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 32px;
  align-items: start;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-desc {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.88;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
  align-self: stretch;
  min-height: 120px;
}

/* Features */
.landing-features {
  padding: 72px 24px;
  background: #FFFFFF;
  text-align: center;
}

.features-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 48px;
  color: var(--text-primary);
}

.features-heart {
  color: var(--color-brand);
}

.features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 0 16px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border: 2px solid var(--color-brand);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
  color: var(--color-brand);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(192, 75, 99, 0.12);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* How it works + stories */
.landing-section-alt {
  padding: 72px 24px;
  background: var(--color-brand-light);
}

.section-alt-title {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.steps-row {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-premium);
}

.step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  background: var(--color-brand);
  color: #FFFFFF;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.step-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.stories-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.story-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  margin: 0;
  box-shadow: var(--shadow-premium);
}

.story-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 12px;
}

.story-card cite {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand);
  font-style: normal;
}

.landing-final-cta {
  text-align: center;
  margin-top: 40px;
}

.landing-footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
}

.landing-footer-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
}

.landing-footer p {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .landing-header {
    grid-template-columns: 1fr auto;
    padding: 16px 20px;
  }

  .landing-nav {
    display: none;
  }

  .landing-logo {
    justify-self: start;
  }

  .landing-header-cta {
    display: none;
  }

  .landing-mobile-menu {
    display: block;
    justify-self: end;
  }

  .stats-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stat-divider {
    display: none;
  }

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

  .hero-card-photo {
    width: 110px;
    height: 140px;
  }
}

.landing-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  z-index: 50;
  box-shadow: var(--shadow-premium);
}

/* ========== APP SHELL ========== */

.app-shell {
  background: var(--bg-main);
  min-height: 100vh;
}

/* Layout Core Elements */
.app-container {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 24px 16px;
  position: relative;
}

/* Custom Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  z-index: 10;
  box-shadow: var(--shadow-premium);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  color: var(--color-brand);
  font-size: 24px;
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover {
  color: var(--color-brand);
  background: var(--color-brand-light);
}

.nav-btn.active {
  color: var(--color-brand);
  background: var(--color-brand-light);
  box-shadow: inset 0 0 0 1px var(--border-light);
}

@media (max-width: 600px) {
  #appNavbar .brand-text {
    display: none;
  }
}

/* Onboarding Modal System */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 31, 37, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.onboarding-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(192, 75, 99, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  max-height: min(90vh, 560px);
}

.btn-close-onboarding {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.btn-close-onboarding:hover {
  color: var(--color-brand);
}

.onboarding-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-brand);
}

.onboarding-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: -8px;
}

/* Onboarding step wizard */
.onboarding-step-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 4px 0 8px;
}

.step-pill {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.step-pill:hover {
  border-color: var(--color-brand-muted);
  color: var(--color-brand);
}

.step-pill.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(192, 75, 99, 0.22);
}

.step-pill.done {
  background: var(--color-brand-light);
  border-color: var(--color-brand-muted);
  color: var(--color-brand);
}

.onboarding-panels {
  min-height: 220px;
  position: relative;
}

.onboarding-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: panelFadeIn 0.25s ease;
}

.onboarding-panel.active {
  display: flex;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.panel-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.panel-heading-spaced {
  margin-top: 8px;
}

.panel-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -6px;
}

.panel-label-spaced {
  margin-top: 4px;
}

.form-input-compact {
  min-height: 0;
}

.choice-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.handle-pill-row,
.vibe-pill-row,
.persona-pill-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.handle-pill-row::-webkit-scrollbar,
.vibe-pill-row::-webkit-scrollbar,
.persona-pill-row::-webkit-scrollbar,
.category-scroll-row::-webkit-scrollbar {
  display: none;
}

.choice-pill {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(192, 75, 99, 0.04);
}

.choice-pill:hover {
  border-color: var(--color-brand-muted);
  color: var(--color-brand);
}

.choice-pill.selected {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(192, 75, 99, 0.22);
}

.category-scroll-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-height: 132px;
  overflow-y: auto;
  padding: 4px 2px;
}

.onboarding-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.btn-onboarding-back {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

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

.onboarding-actions .btn-submit {
  flex: 1;
  margin-top: 0;
}

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

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(192, 75, 99, 0.04);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(192, 75, 99, 0.12);
}

.form-select {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(192, 75, 99, 0.04);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C04B63' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(192, 75, 99, 0.12);
}

/* Onboarding category chips */
.category-chip {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(192, 75, 99, 0.04);
}

.category-chip:hover {
  border-color: var(--color-brand-muted);
  color: var(--color-brand);
}

.category-chip.selected {
  background: var(--color-brand);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(192, 75, 99, 0.25);
}

.btn-submit {
  background: var(--color-brand);
  border: none;
  color: white;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-spring);
  box-shadow: 0 4px 15px rgba(192, 75, 99, 0.25);
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  background: var(--color-brand-dark);
  box-shadow: 0 6px 20px rgba(192, 75, 99, 0.3);
}

/* Swipe Stack Engine Styling */
.swipe-deck {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swipe-card {
  position: absolute;
  width: 100%;
  max-width: 440px;
  height: 500px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: grab;
  user-select: none;
  animation: cardDealIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardDealIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.swipe-card:active {
  cursor: grabbing;
}

.card-header-accent {
  height: 6px;
  background: var(--grad-primary);
}

.card-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card-cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-brand-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--color-brand);
  border: 1px solid var(--border-light);
}

.card-score-badge {
  text-align: right;
}

.card-score-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-gold);
}

.card-score-lbl {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: -4px;
}

.card-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 500;
  margin-bottom: 20px;
}

.card-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.bullet-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.bullet-icon {
  margin-top: 3px;
  font-size: 14px;
}

.bullet-icon.right {
  color: hsl(142, 70%, 45%);
}

.bullet-icon.left {
  color: hsl(350, 70%, 50%);
}

.card-preview-text {
  font-size: 12.5px;
  background: var(--color-brand-light);
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px dashed var(--border-light);
  margin-top: 16px;
  line-height: 1.4;
}

/* Action Controls Panel */
.action-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.action-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition-spring);
  box-shadow: var(--shadow-premium);
}

.action-btn.reject {
  color: var(--color-reject);
}

.action-btn.reject:hover {
  background: var(--color-reject);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.action-btn.heart {
  color: var(--color-heart);
}

.action-btn.heart:hover {
  background: var(--color-heart);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

.deck-empty {
  text-align: center;
  padding: 48px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  max-width: 440px;
  width: 100%;
}

.deck-empty-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.deck-empty-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.deck-empty-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Drag Transform System Classes */
.swipe-card.dragging {
  transition: none !important;
}

.swipe-card.swipe-left-anim {
  transform: translate(-500px, 50px) rotate(-30deg) !important;
  opacity: 0 !important;
}

.swipe-card.swipe-right-anim {
  transform: translate(500px, 50px) rotate(30deg) !important;
  opacity: 0 !important;
}

/* Match Celebration view overlay */
.match-celebration {
  position: fixed;
  inset: 0;
  background: rgba(253, 242, 244, 0.97);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  overflow: hidden;
}

.match-heart-pulse {
  font-size: 80px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heartPulse 1.2s infinite ease-in-out;
  margin-bottom: 24px;
}

@keyframes heartPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.2)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 30px rgba(244, 63, 94, 0.6)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.2)); }
}

.match-title {
  font-size: 42px;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.match-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 380px;
  margin-bottom: 32px;
}

.match-card-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-glow);
}

.match-card-preview h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.match-card-preview p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.match-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.match-btn-chat {
  background: var(--grad-success);
  border: none;
  color: white;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.match-btn-chat:hover {
  transform: translateY(-2px);
}

.match-btn-close {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.match-btn-close:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

/* Matches Hub list View */
.matches-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.match-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-premium);
}

.match-item:hover {
  border-color: var(--color-brand-muted);
  background: var(--bg-card-hover);
}

.match-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-name {
  font-size: 18px;
  font-weight: 700;
}

.match-cat-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--color-brand-light);
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--color-brand);
}

.match-tagline-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.match-status-row {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
}

.compatibility-badge {
  color: var(--color-heart);
  font-weight: 700;
}

.expiry-badge {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.expiry-badge.unlocked {
  color: hsl(142, 70%, 45%);
}

.expiry-badge.locked {
  color: var(--color-gold);
}

.expiry-badge.ghosted {
  color: var(--color-reject);
}

.btn-chat-action {
  background: var(--grad-secondary);
  border: none;
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-spring);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  white-space: nowrap;
}

.btn-chat-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.35);
}

/* Chat and Detail Pane split view Overlay */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 120;
  display: flex;
  flex-direction: column;
}

.chat-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

.chat-nav-title h3 {
  font-size: 18px;
}

.chat-nav-title p {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-close-chat {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-chat:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.chat-split-container {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.chat-card-accordion {
  width: 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-light);
  background: var(--bg-main);
  overflow: hidden;
}

.chat-card-accordion-summary {
  display: none;
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.chat-card-accordion-summary::-webkit-details-marker {
  display: none;
}

.chat-accordion-chevron {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.chat-card-accordion[open] .chat-accordion-chevron {
  transform: rotate(180deg);
}

@media (min-width: 769px) {
  .chat-card-accordion {
    display: flex;
    flex-direction: column;
  }

  .chat-card-accordion .idea-detail-pane {
    display: flex;
    flex: 1;
    min-height: 0;
  }
}

.idea-detail-pane {
  flex: 1;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-main);
}

.chat-conversation-stack {
  width: 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-brand-light);
}

.vetting-counter {
  padding: 10px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  flex-shrink: 0;
}

.vetting-counter strong {
  color: var(--color-brand);
}

/* Swipe card recap in chat left pane */
.card-recap-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-recap-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-recap-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand);
  background: var(--color-brand-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.card-recap-score {
  text-align: center;
  background: var(--color-brand-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  min-width: 56px;
}

.card-recap-score-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1;
}

.card-recap-score-lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.card-recap-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-recap-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

.card-recap-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-recap-bullet {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.card-recap-bullet i {
  margin-right: 6px;
}

.card-recap-bullet i.right { color: var(--color-brand); }
.card-recap-bullet i.left { color: var(--color-reject); }

.card-recap-preview {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 12px;
  background: var(--color-brand-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.expiry-badge.perfect {
  background: rgba(184, 134, 11, 0.12);
  color: var(--color-gold);
  border: 1px solid rgba(184, 134, 11, 0.3);
}

.expiry-badge.vetting {
  background: rgba(91, 141, 239, 0.1);
  color: var(--color-info);
  border: 1px solid rgba(91, 141, 239, 0.25);
}

.expiry-badge.soft-ghost {
  background: rgba(192, 75, 99, 0.08);
  color: var(--color-brand);
  border: 1px solid var(--border-light);
}

.expiry-badge.hard-ghost {
  background: rgba(214, 69, 69, 0.08);
  color: var(--color-reject);
  border: 1px solid rgba(214, 69, 69, 0.25);
}

/* Perfect vetting success overlay */
.perfect-vetting-overlay {
  position: fixed;
  inset: 0;
  background: rgba(253, 242, 244, 0.97);
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.perfect-vetting-star {
  font-size: 72px;
  margin-bottom: 16px;
  animation: heartPulse 1.2s infinite ease-in-out;
}

.perfect-vetting-title {
  font-size: 36px;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.perfect-vetting-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 380px;
  margin-bottom: 28px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .chat-split-container {
    flex-direction: column;
  }

  .chat-card-accordion {
    width: 100%;
    flex: 0 0 auto;
    border-right: none;
    border-bottom: none;
  }

  .chat-card-accordion-summary {
    display: flex;
  }

  .idea-detail-pane {
    max-height: 45vh;
    padding: 16px;
  }

  .chat-conversation-stack {
    width: 100%;
    flex: 1;
    min-height: 0;
  }
}

/* Paywall Lock Screen styling */
.paywall-lock-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px 32px;
  margin: auto;
  max-width: 100%;
  width: 100%;
}

.paywall-visual {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 200px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, var(--color-brand-light) 0%, #FFFFFF 100%);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-premium);
}

.paywall-preview-blur {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  filter: blur(6px);
  opacity: 0.55;
  pointer-events: none;
}

.blur-line {
  height: 10px;
  background: linear-gradient(90deg, var(--color-brand-muted), transparent);
  border-radius: 6px;
  width: 85%;
}

.blur-line.short { width: 55%; }

.blur-bar {
  height: 36px;
  background: rgba(192, 75, 99, 0.15);
  border-radius: 10px;
  width: 70%;
  margin-top: 4px;
}

.blur-bar.wide { width: 92%; height: 48px; }

.paywall-float {
  position: absolute;
  font-size: 20px;
  z-index: 2;
  animation: paywallFloat 3s ease-in-out infinite;
  opacity: 0.85;
}

.paywall-float-1 { top: 12%; left: 8%; animation-delay: 0s; }
.paywall-float-2 { top: 18%; right: 10%; animation-delay: -1s; }
.paywall-float-3 { bottom: 22%; left: 14%; animation-delay: -2s; }

@keyframes paywallFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}

.paywall-lock-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--color-brand);
  z-index: 3;
  box-shadow: 0 8px 28px rgba(192, 75, 99, 0.25);
}

.paywall-lock-badge-ghost {
  border-color: var(--color-reject);
  color: var(--color-reject);
  background: #FFF5F5;
}

.animate-lock-pulse {
  animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
  0%, 100% {
    box-shadow: 0 8px 28px rgba(192, 75, 99, 0.25);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 8px 36px rgba(192, 75, 99, 0.45);
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.animate-cta-glow {
  animation: ctaGlow 2.5s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 4px 15px rgba(192, 75, 99, 0.25); }
  50% { box-shadow: 0 6px 24px rgba(192, 75, 99, 0.4); }
}

.paywall-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.paywall-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.paywall-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  background: var(--color-brand-light);
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  align-items: center;
  max-width: 320px;
  width: 100%;
}

.paywall-stats-row i {
  color: var(--color-brand);
}

.btn-unlock {
  background: var(--color-brand);
  border: none;
  color: white;
  width: 100%;
  max-width: 320px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-spring);
}

.btn-unlock:hover {
  transform: translateY(-2px);
  background: var(--color-brand-dark);
}

/* Unlocked Detail Card layout */
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.detail-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-body-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.score-bars-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.score-bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.score-bar-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.score-track {
  height: 6px;
  background: var(--color-brand-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-pill);
}

/* Chat threads */
.chat-messages-container {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bubble {
  max-width: 80%;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.45;
  animation: bubblePop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bubblePop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bubble.user {
  background: var(--grad-secondary);
  color: white;
  align-self: flex-end;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.bubble.ai {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  align-self: flex-start;
  border-radius: 18px 18px 18px 4px;
}

.bubble.typing-indicator {
  opacity: 0.6;
  font-size: 22px;
  letter-spacing: 4px;
  padding: 8px 16px;
}

.btn-send-message.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.chat-input-bar {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
  display: flex;
  gap: 12px;
}

.chat-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.chat-input:focus {
  outline: none;
  border-color: var(--color-info);
}

.btn-send-message {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--grad-secondary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-spring);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.btn-send-message:hover {
  transform: scale(1.05);
}

/* Polar checkout modal */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 31, 37, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.checkout-card,
.polar-checkout-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  max-height: min(90vh, 640px);
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0, 98, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.polar-checkout-card *,
.polar-checkout-card *::before,
.polar-checkout-card *::after {
  box-sizing: border-box;
}

.animate-modal-in {
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  flex-shrink: 0;
}

.polar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
}

.polar-logo {
  width: 28px;
  height: 28px;
}

.btn-close-checkout {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.btn-close-checkout:hover {
  color: var(--text-primary);
}

.checkout-product-name {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--text-primary);
  word-break: break-word;
}

.price-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.price-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.price-amount {
  font-size: 22px;
  font-weight: 800;
  color: #0062FF;
}

.polar-payment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}

.checkout-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.checkout-field {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.card-field-container {
  border: 1.5px solid var(--border-light);
  background: #FFFFFF;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 44px;
}

.card-field-container:focus-within {
  border-color: #0062FF;
  box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.1);
}

.card-field-container i {
  color: var(--text-muted);
  flex-shrink: 0;
}

.card-input-field {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  outline: none;
  font-size: 14px;
}

.btn-pay-now,
.polar-pay-btn {
  background: #0062FF;
  border: none;
  color: white;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  flex-shrink: 0;
}

.polar-btn-icon {
  width: 18px;
  height: 18px;
}

.btn-pay-now:hover,
.polar-pay-btn:hover {
  background: #0050D0;
  transform: translateY(-1px);
}

.checkout-secured-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.checkout-secured-footer strong {
  color: #0062FF;
}

@media (max-width: 400px) {
  .checkout-card-row {
    grid-template-columns: 1fr;
  }

  .polar-checkout-card {
    padding: 20px 16px;
  }
}

/* Polar return toast */
.purchase-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 4px solid #0062FF;
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 40px rgba(0, 98, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.purchase-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.purchase-toast i {
  color: #0062FF;
  font-size: 18px;
}

/* User Profile Tab Settings styling */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.avatar-sphere {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

.profile-meta-title h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.profile-meta-title p {
  font-size: 13px;
  color: var(--text-secondary);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.profile-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.profile-stat-num {
  font-size: 24px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-stat-lbl {
  font-size: 11px;
  color: var(--text-secondary);
}

.btn-reset-data {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--color-reject);
  padding: 12px;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  margin-top: 10px;
}

.btn-reset-data:hover {
  background: var(--color-reject);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

/* Utility Animations */
@keyframes heartFloatUp {
  0% { transform: translateY(0) scale(1) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) scale(0.6) rotate(15deg); opacity: 0; }
}

.heart-particle {
  position: absolute;
  color: var(--color-heart);
  pointer-events: none;
  animation: heartFloatUp 1.5s forwards ease-out;
  font-size: 20px;
  z-index: 160;
}
