@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

/* ======================================================================
   DESIGN SYSTEM — MyBabeAI · ORIGINAL BRAND IDENTITY
   Warm ember/amber tones · deep charcoal · editorial boldness
   NOT a copy of any competitor. 100% original.
   ====================================================================== */

:root {
  /* ── Core Palette: Deep Charcoal + Warm Ember ── */
  --bg-dark: #0f0f0f;
  --bg-darker: #0a0a0a;
  --bg-warm: #141210;
  --surface-dark: rgba(22, 20, 18, 0.9);
  --surface-card: rgba(28, 26, 22, 0.65);
  --surface-card-hover: rgba(38, 34, 28, 0.8);
  --surface-elevated: rgba(32, 28, 24, 0.92);

  /* ── Signature Accent: Ember / Amber / Copper ── */
  --primary-gold: #e8944a;
  --primary-gold-hover: #f0a85e;
  --accent-ember: #e86b3a;
  --accent-amber: #f0c850;
  --accent-copper: #c87850;
  --accent-cream: #f5e6d0;
  --accent-ice: #a0d4e8;
  --accent-sage: #8bbb9a;

  /* ── Gradients ── */
  --gradient-primary: linear-gradient(135deg, #e86b3a 0%, #e8944a 50%, #f0c850 100%);
  --gradient-warm: linear-gradient(135deg, #e86b3a 0%, #c87850 100%);
  --gradient-cool: linear-gradient(135deg, #a0d4e8 0%, #8bbb9a 100%);
  --gradient-luxury: linear-gradient(135deg, #f0c850 0%, #e8944a 40%, #e86b3a 100%);
  --gradient-ember: linear-gradient(135deg, #e86b3a 0%, #e8944a 100%);

  /* ── Text ── */
  --text-main: #f2ece4;
  --text-secondary: #bfb5a6;
  --text-muted: #807568;
  --text-faint: #5a5248;

  /* ── Borders & Glass ── */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(232, 148, 74, 0.25);
  --glass-bg: rgba(15, 15, 15, 0.78);
  --glass-border: rgba(255, 255, 255, 0.07);

  /* ── Status ── */
  --ok-green: #5ec269;
  --danger-red: #e85a5a;
  --warning-amber: #f0c850;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.6), 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-pink: 0 4px 24px rgba(232, 148, 74, 0.15), 0 0 48px rgba(232, 107, 58, 0.08);
  --shadow-glow: 0 0 40px rgba(232, 148, 74, 0.12), 0 0 80px rgba(232, 107, 58, 0.06);

  /* ── Animation ── */
  --anim-fast: 0.15s;
  --anim-normal: 0.3s;
  --anim-slow: 0.6s;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ======================================================================
   RESET & BASE
   ====================================================================== */

* { box-sizing: border-box; }

html { margin: 0; padding: 0; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-darker);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0; padding: 0;
  min-height: 100vh;

  /* Warm atmospheric glow */
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 5%, rgba(232, 107, 58, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 85% 90%, rgba(200, 120, 80, 0.04), transparent);
  background-attachment: fixed;
}

/* Subtle animated ember glow */
body::before {
  content: '';
  position: fixed;
  top: -15%; left: -10%;
  width: 45vw; height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 148, 74, 0.03) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none; z-index: -1;
  animation: orbFloat1 25s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%; right: -5%;
  width: 40vw; height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 120, 80, 0.03) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none; z-index: -1;
  animation: orbFloat2 30s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(4vw, 2vh); }
  66% { transform: translate(-2vw, -1vh); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-3vw, -2vh); }
  66% { transform: translate(2vw, 3vh); }
}

.auth-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(232, 148, 74, 0.04), transparent 60%);
  pointer-events: none; z-index: -1;
}

a { color: inherit; text-decoration: none; transition: 0.25s all ease; }

/* ======================================================================
   TYPOGRAPHY — Syne for display, Space Grotesk for headings, DM Sans for body
   ====================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  color: var(--text-main);
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
}

.text-gold {
  background: var(--gradient-luxury);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ======================================================================
   LAYOUT UTILITIES
   ====================================================================== */

.container { width: min(1200px, 92vw); margin: 0 auto; }

.flex-row { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.hidden { display: none !important; }

/* ======================================================================
   BUTTONS
   ====================================================================== */

.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none;
  transition: all 0.25s ease;
  font-family: inherit;
  position: relative; overflow: hidden;
}

.btn:active { transform: scale(0.97); transition-duration: 0.05s; }

/* Ripple */
.btn::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0; pointer-events: none;
}

.btn:active::after { width: 300px; height: 300px; opacity: 0; transition: width 0s, height 0s, opacity 0.5s ease; }

/* Primary CTA */
.btn-gold {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(232, 107, 58, 0.25), 0 0 30px rgba(232, 148, 74, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.8rem 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f07a4a 0%, #f0a058 50%, #f5d060 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 107, 58, 0.35), 0 0 50px rgba(232, 148, 74, 0.12);
}

.btn-gold:active { transform: scale(0.97) translateY(0); }

/* Shimmer sweep */
@keyframes goldShimmerSweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

.btn-gold::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  pointer-events: none; transition: none;
}

.btn-gold:hover::before { animation: goldShimmerSweep 0.6s ease forwards; }

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(232, 148, 74, 0.35);
  box-shadow: 0 0 20px rgba(232, 148, 74, 0.08);
}

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.04); }

/* ======================================================================
   SIDEBAR NAVIGATION
   ====================================================================== */

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 240px;
  background: rgba(14, 13, 12, 0.92);
  backdrop-filter: blur(40px) saturate(1.2);
  -webkit-backdrop-filter: blur(40px) saturate(1.2);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
  display: flex; flex-direction: column;
  padding: 1.5rem 1rem;
  transition: transform 0.3s var(--ease-out-expo);
}

/* Warm gradient line on sidebar edge */
.sidebar::after {
  content: '';
  position: absolute;
  top: 10%; bottom: 10%; right: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(232, 148, 74, 0.15) 30%, rgba(200, 120, 80, 0.15) 70%, transparent);
  pointer-events: none;
}

.sidebar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.4rem;
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2.5rem; padding: 0 0.5rem;
}

.sidebar-brand span { color: white; }

.sidebar-nav { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }

.sidebar-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--text-muted);
  border-radius: 10px;
  font-weight: 600; font-size: 0.92rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(232, 148, 74, 0.08);
  color: var(--text-main);
}

.sidebar-nav a svg { width: 20px; height: 20px; opacity: 0.5; transition: all 0.2s ease; }

.sidebar-nav a:hover svg,
.sidebar-nav a.active svg { opacity: 1; color: var(--primary-gold); }

.sidebar-footer {
  margin-top: auto; padding-top: 1rem;
  display: flex; flex-direction: column; gap: 1rem;
}

.layout-with-sidebar { padding-left: 240px; }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .layout-with-sidebar { padding-left: 0; }
  .sidebar.open { transform: translateX(0); }
}

/* ======================================================================
   TOP NAVIGATION (legacy, some pages still use)
   ====================================================================== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: rgba(14, 13, 12, 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 50;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.4rem;
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--primary-gold);
}

.nav-brand img { height: 24px; }
.nav-brand span { color: white; }

.nav-links { display: flex; gap: 2rem; font-weight: 500; font-size: 0.95rem; }

.nav-links a { color: var(--text-muted); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width var(--anim-normal) var(--ease-out-expo);
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.credits-badge {
  background: rgba(232, 148, 74, 0.06);
  border: 1px solid rgba(232, 148, 74, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--primary-gold);
  display: flex; align-items: center; gap: 0.4rem;
}

.avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  color: white; border: none; cursor: pointer;
}

/* ======================================================================
   MODAL / AGE GATE
   ====================================================================== */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content {
  background: linear-gradient(145deg, rgba(24, 22, 20, 0.98), rgba(16, 14, 12, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 440px; width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(232, 148, 74, 0.04);
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-out-expo);
}

.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-icon {
  width: 64px; height: 64px;
  background: rgba(232, 148, 74, 0.08);
  color: var(--primary-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(232, 148, 74, 0.12);
}

.modal-icon svg { width: 32px; height: 32px; }

.modal-content p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 2rem; font-size: 0.95rem; }

.modal-legal { font-size: 0.75rem; color: var(--text-muted); margin-top: 1.5rem; opacity: 0.7; }

/* ======================================================================
   LANDING HERO
   ====================================================================== */

.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding-top: 70px;
}

/* Warm atmospheric gradient behind hero */
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(232, 107, 58, 0.1), transparent),
    radial-gradient(ellipse 60% 50% at 70% 80%, rgba(200, 120, 80, 0.06), transparent),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(240, 200, 80, 0.03), transparent),
    linear-gradient(to bottom, var(--bg-darker), rgba(15, 15, 15, 0.95));
  z-index: 0;
}

.hero-video-wrapper {
  position: absolute; inset: 0; z-index: 1;
}

.hero-video-wrapper video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.7) brightness(0.85) contrast(1.1);
}

.hero-video-wrapper::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg-darker) 0%, rgba(10, 10, 10, 0.3) 40%, rgba(10, 10, 10, 0.5) 100%),
    radial-gradient(circle at center, transparent 0%, rgba(10, 10, 10, 0.4) 100%);
  z-index: 2;
}

.hero-content {
  position: relative; z-index: 10;
  text-align: center;
  max-width: 850px;
  padding: 3rem 2rem;
}

.hero-subtitle {
  color: var(--primary-gold);
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 30px rgba(232, 148, 74, 0.2);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 1.5rem auto 2.5rem;
  max-width: 580px;
  line-height: 1.7;
}

/* ======================================================================
   CARDS (Companion, Pricing, Landing, Legacy)
   ====================================================================== */

.companion-card,
.pricing-card,
.landing-card,
.legacy-card {
  background: linear-gradient(145deg, rgba(26, 24, 20, 0.7), rgba(18, 16, 14, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: all 0.35s var(--ease-out-expo);
}

.companion-card:hover,
.pricing-card:hover,
.landing-card:hover,
.legacy-card:hover {
  border-color: rgba(232, 148, 74, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 25px rgba(232, 148, 74, 0.06);
  transform: translateY(-4px);
}

.legacy-card {
  padding: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.legacy-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.legacy-card span {
  color: var(--text-muted);
  font-size: 0.9rem; line-height: 1.5;
  display: block;
}

/* Grid Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

#statsGrid, #quickCards, #faq {
  position: relative; z-index: 10;
  width: min(1200px, 92vw);
  margin: 4rem auto;
}

/* Staggered fade-in */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out-expo) forwards;
  animation-delay: var(--delay, 0s);
}

.card-hover-lift {
  transition: transform var(--anim-normal) var(--ease-out-expo),
    box-shadow var(--anim-normal) var(--ease-out-expo);
}

.card-hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 20px rgba(232, 148, 74, 0.06);
}

/* Card image effects */
.companion-card img,
.pricing-card img,
.landing-card img,
.legacy-card img {
  transition: transform 3s ease, filter 0.4s ease;
  will-change: transform;
}

.companion-card:hover img,
.pricing-card:hover img,
.landing-card:hover img,
.legacy-card:hover img { transform: scale(1.05); }

.img-loading { filter: blur(20px); transition: filter 0.5s ease; }
.img-loaded { filter: blur(0); }

/* NSFW badge */
.nsfw-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(232, 107, 58, 0.85);
  color: white;
  font-size: 0.65rem; font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  z-index: 5;
  text-transform: uppercase;
}

/* ======================================================================
   TOAST NOTIFICATIONS
   ====================================================================== */

.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(22, 20, 18, 0.96);
  backdrop-filter: blur(16px);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem; font-weight: 600;
  z-index: 9999;
  border: 1px solid rgba(232, 148, 74, 0.2);
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

@keyframes toastSlideIn {
  0% { transform: translateX(120%); opacity: 0; }
  60% { transform: translateX(-8px); opacity: 1; }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut { to { transform: translateX(120%); opacity: 0; } }

@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }

.toast-top-right {
  position: fixed;
  top: 1.5rem; right: 1.5rem; left: auto; bottom: auto;
  transform: none; max-width: 380px;
  animation: toastSlideIn 0.5s var(--ease-spring) forwards;
}

.toast-top-right.dismiss { animation: toastSlideOut 0.3s ease forwards; }

.toast-progress {
  position: absolute; bottom: 0; left: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 0 0 12px 12px;
  animation: toastProgress 4s linear forwards;
}

/* ======================================================================
   FORMS
   ====================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea, select {
  transition: border-color var(--anim-normal) ease,
    box-shadow var(--anim-normal) ease,
    background-color var(--anim-normal) ease;
}

@keyframes inputFocusGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(232, 148, 74, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(232, 148, 74, 0.08); }
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-gold);
  animation: inputFocusGlow 2s ease-in-out infinite;
}

/* Custom checkbox */
.checkbox-custom { position: relative; display: inline-flex; align-items: center; cursor: pointer; user-select: none; gap: 0.5rem; }
.checkbox-custom input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

.checkbox-custom .checkmark {
  width: 20px; height: 20px;
  border: 2px solid var(--border-subtle);
  border-radius: 4px; background: transparent;
  transition: all var(--anim-fast) ease;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.checkbox-custom input[type="checkbox"]:checked + .checkmark { background: var(--primary-gold); border-color: var(--primary-gold); }

.checkbox-custom .checkmark::after {
  content: '';
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--anim-fast) var(--ease-spring);
}

.checkbox-custom input[type="checkbox"]:checked + .checkmark::after { transform: rotate(45deg) scale(1); }

/* ======================================================================
   CUSTOM SCROLLBAR
   ====================================================================== */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: rgba(232, 148, 74, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(232, 148, 74, 0.4); }

* { scrollbar-width: thin; scrollbar-color: rgba(232, 148, 74, 0.2) var(--bg-darker); }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ======================================================================
   SELECTION & MISC
   ====================================================================== */

::selection { background: rgba(232, 148, 74, 0.3); color: #fff; }
::-moz-selection { background: rgba(232, 148, 74, 0.3); color: #fff; }

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

body { animation: pageEntrance 0.4s ease both; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-loading {
  background: linear-gradient(90deg, var(--surface-dark) 25%, rgba(255,255,255,0.03) 50%, var(--surface-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
  color: transparent !important;
  pointer-events: none; user-select: none;
}

.skeleton-loading * { visibility: hidden; }

/* Pulse glow for online indicators */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(94, 194, 105, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(94, 194, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 194, 105, 0); }
}

.pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }

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

.breathing { animation: breathing 3s ease-in-out infinite; }

/* Active nav glow */
@keyframes navPulseGlow {
  0%, 100% { text-shadow: 0 0 4px rgba(232, 148, 74, 0.15); }
  50% { text-shadow: 0 0 12px rgba(232, 148, 74, 0.3); }
}

.nav-links a.active,
.sidebar-nav a.active { animation: navPulseGlow 2.5s ease-in-out infinite; }

/* Paywall tier grid */
.paywall-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }

@media (max-width: 640px) { .paywall-tier-grid { grid-template-columns: 1fr; } }

/* ======================================================================
   FAQ
   ====================================================================== */

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-grid details {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.faq-grid summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-grid summary::-webkit-details-marker { display: none; }

.faq-grid summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-grid details[open] summary::after {
  content: '-';
  transform: rotate(180deg);
}

.faq-grid details p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
  margin: 0;
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */

@media (max-width: 768px) {
  .nav-links { display: none; }
  h1 { font-size: 2.2rem; }
  .modal-content { padding: 1.5rem; }
  .navbar { padding: 0 1rem; }
  .btn { min-height: 44px; min-width: 44px; }
  .sidebar-nav a { min-height: 44px; }
  .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
  input[type="text"], input[type="email"], input[type="password"],
  input[type="search"], input[type="url"], input[type="number"],
  textarea, select { min-height: 44px; }
  .checkbox-custom .checkmark { width: 24px; height: 24px; }
  .toast-top-right { top: 1rem; right: 1rem; left: 1rem; max-width: none; }
  .hero-section { min-height: 60vh; }
}

/* ======================================================================
   REDUCED MOTION
   ====================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body { animation: none; }
  body::before, body::after { animation: none; }
  .skeleton-loading { animation: none; background: var(--surface-dark); }
  .fade-in-up { opacity: 1; transform: none; animation: none; }
  .breathing, .pulse-glow { animation: none; }
  .companion-card img, .pricing-card img, .landing-card img, .legacy-card img { transition: none; }
  .nav-links a.active, .sidebar-nav a.active { animation: none; }
}

/* Skeleton pulse */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
