/* ===========================
   PROPOSALIQ — PREMIUM STYLES
   =========================== */

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

:root {
  /* Typography System (Inter / Geist) */
  --font-sans: 'Inter', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', 'Geist', -apple-system, sans-serif;

  /* Color Tokens (Minimal Indigo SaaS Palette) */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-header: #ffffff;

  --card-bg: #ffffff;
  --card-bg-elevated: #ffffff;
  --card-border: #e5e7eb;
  --card-border-purple: #4f46e5;
  --card-border-hover: #4f46e5;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --accent-indigo: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  
  --emerald: #10b981;
  --emerald-soft: #ecfdf5;
  --amber: #f59e0b;
  --rose: #ef4444;

  --purple: #4f46e5;
  --purple-light: #6366f1;
  --purple-glow: rgba(79, 70, 229, 0.15);

  /* Strict 8px Grid Spacing Tokens */
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;

  --sidebar-w: 240px;
  --header-h: 60px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-item-h: 40px;
}

/* Global focus-visible ring for WCAG AA keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

body {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: var(--text-primary);
  display: block;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ============================================================
   SIDEBAR — PREMIUM NAVIGATION
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  border-right: 1px solid var(--card-border-purple);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

/* Subtle top glow inside sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.6), rgba(59,130,246,0.4), transparent);
  z-index: 1;
}

/* ---- Logo ---- */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  position: relative;
  transition: padding 0.32s cubic-bezier(0.4, 0, 0.2, 1), justify-content 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.5), 0 0 0 1px rgba(124,58,237,0.3);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.logo-text {
  font-size: 16.5px; font-weight: 800;
  background: linear-gradient(90deg, #c4b5fd, #93c5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  transition: opacity 0.25s ease;
}
.logo-version {
  position: absolute;
  right: 38px; top: 50%; transform: translateY(-50%);
  font-size: 9px; font-weight: 700;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}

/* Collapse Toggle Button */
.sidebar-collapse-btn {
  position: absolute;
  right: -10px;
  top: 32px;
  width: 20px;
  height: 20px;
  background: var(--bg-sidebar);
  border: 1px solid var(--card-border-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 105;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  padding: 0;
}
.sidebar-collapse-btn:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  transform: scale(1.1);
}
.sidebar-collapse-btn svg {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Nav container ---- */
.sidebar-nav {
  flex: 1;
  padding: 16px 10px 8px;
  display: flex;
  flex-direction: column;
}

/* ---- Section labels ---- */
.nav-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.22);
  padding: 14px 12px 6px;
  text-transform: uppercase;
  transition: padding 0.32s cubic-bezier(0.4, 0, 0.2, 1), justify-content 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
}

/* ---- Nav items ---- */
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  height: var(--nav-item-h);
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2px;
  position: relative;
  overflow: hidden;
}

.nav-item span:not(.nav-icon) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(124,58,237,0.3) 0%, rgba(124,58,237,0.08) 100%);
  color: #fff;
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--purple-light), var(--blue));
  box-shadow: 0 0 10px rgba(124,58,237,0.8);
}

/* ---- CATEGORY PILLS BAR ---- */
.category-pills-wrap {
  margin-bottom: 12px;
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.category-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.category-pill:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}
.category-pill.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(59, 130, 246, 0.3));
  border-color: #a78bfa;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

/* ---- MAIN WRAPPER ---- */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   TOP HEADER — DARK GLASS SaaS
   ============================================================ */
.top-header {
  background: rgba(14, 9, 27, 0.95) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--card-border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  gap: 16px;
  color: var(--text-primary);
}

.hamburger {
  display: none;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.hamburger:hover {
  background: rgba(124,58,237,0.12);
  border-color: var(--card-border-purple);
  color: var(--purple-light);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 11px;
  padding: 8px 14px;
  min-width: 230px;
  transition: all 0.18s ease;
}
.header-search:hover {
  border-color: var(--card-border-purple);
  background: rgba(124,58,237,0.06);
}
.search-icon {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
  cursor: default;
}
.search-input::placeholder { color: var(--text-muted); }
.nav-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 2.2px;
  transition: transform 0.2s ease, stroke 0.2s ease;
  color: inherit;
}
.nav-item:hover .nav-svg {
  transform: scale(1.08);
}

/* ---- Coming Soon nav items ---- */
.nav-item-soon {
  opacity: 0.42;
  cursor: default;
  position: relative;
}
.nav-item-soon:hover {
  opacity: 0.58;
  transform: none;
  background: rgba(255,255,255,0.03);
}
.nav-item-soon::after {
  content: 'Soon';
  font-size: 9px;
  font-weight: 700;
  background: rgba(124,58,237,0.4);
  color: rgba(255,255,255,0.8);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  letter-spacing: 0.04em;
  border: 1px solid rgba(124,58,237,0.25);
  transition: opacity 0.2s ease;
}

/* ---- Upgrade card ---- */
.sidebar-upgrade {
  padding: 12px 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  transition: padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.upgrade-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg,
    rgba(124,58,237,0.18) 0%,
    rgba(59,130,246,0.1) 100%
  );
  border: 1px solid rgba(124,58,237,0.22);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.upgrade-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(124,58,237,0.15), transparent 60%);
  pointer-events: none;
}
.upgrade-icon { font-size: 20px; flex-shrink: 0; }
.upgrade-text strong {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.upgrade-text p {
  color: rgba(255,255,255,0.42);
  font-size: 10.5px;
  margin: 0;
  line-height: 1.4;
}
.btn-upgrade {
  width: 100%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(124,58,237,0.45);
  letter-spacing: 0.01em;
}
.btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.55);
}
.btn-upgrade:active { transform: translateY(0); }

/* ============================================================
   COLLAPSED SIDEBAR STATES (Desktop Collapse)
   ============================================================ */
.sidebar.collapsed {
  width: 70px;
}
.sidebar.collapsed .sidebar-logo {
  justify-content: center;
  padding: 24px 10px;
}
.sidebar.collapsed .logo-text,
.sidebar.collapsed .logo-version,
.sidebar.collapsed .upgrade-card,
.sidebar.collapsed .nav-item-soon::after {
  opacity: 0 !important;
  pointer-events: none;
}
.sidebar.collapsed .logo-text,
.sidebar.collapsed .logo-version,
.sidebar.collapsed .upgrade-card {
  display: none !important;
}
.sidebar.collapsed .sidebar-collapse-btn svg {
  transform: rotate(180deg);
}
.sidebar.collapsed .nav-item {
  font-size: 0 !important;
  justify-content: center;
  padding: 0 12px;
  transform: none !important;
}
.sidebar.collapsed .nav-item .nav-icon {
  margin: 0 !important;
}
.sidebar.collapsed .nav-section-label {
  font-size: 0 !important;
  padding: 14px 0 6px;
  justify-content: center;
}
.sidebar.collapsed .nav-section-label::after {
  display: none !important;
}
.sidebar.collapsed .nav-section-label::before {
  content: '•••';
  font-size: 8px;
  color: rgba(255,255,255,0.18);
  letter-spacing: 1px;
}
.sidebar.collapsed .sidebar-upgrade {
  padding: 12px 10px;
  display: flex;
  justify-content: center;
}
.sidebar.collapsed .btn-upgrade {
  font-size: 0 !important;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124,58,237,0.35);
}
.sidebar.collapsed .btn-upgrade::before {
  content: '🚀';
  font-size: 15px;
}


/* ---- MAIN WRAPPER ---- */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   TOP HEADER — PREMIUM
   ============================================================ */
.top-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 2px 12px rgba(0,0,0,0.04);
  gap: 16px;
}

/* ---- Hamburger ---- */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.hamburger {
  display: none;
  width: 38px; height: 38px;
  background: none;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.hamburger:hover {
  background: #f0edf8;
  border-color: rgba(124,58,237,0.2);
  color: var(--purple);
}

/* ---- Search ---- */
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f3f8;
  border: 1.5px solid transparent;
  border-radius: 11px;
  padding: 8px 14px;
  min-width: 230px;
  transition: all 0.18s ease;
}
.header-search:hover {
  border-color: rgba(124,58,237,0.15);
  background: #f0edf8;
}
.search-icon {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-input {
  border: none;
  background: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
  cursor: default;
}
.search-input::placeholder { color: var(--text-muted); }

/* ---- Header right cluster ---- */
.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ---- Upgrade button ---- */
.btn-header-upgrade {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.22s ease;
  box-shadow: 0 3px 12px rgba(124,58,237,0.35);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-header-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.45);
}
.btn-header-upgrade:active { transform: translateY(0); }

/* ---- Icon button base (notification, overflow) ---- */
.notif-btn {
  position: relative;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  font-size: 17px;
  color: var(--text-secondary);
  transition: all 0.18s ease;
  border: 1.5px solid transparent;
  background: transparent;
  flex-shrink: 0;
}
.notif-btn:hover {
  background: #f0edf8;
  border-color: rgba(124,58,237,0.15);
  color: var(--purple);
}
.notif-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}

/* ---- User avatar area ---- */
.user-avatar {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 5px 10px 5px 6px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
  position: relative;
  flex-shrink: 0;
}
.user-avatar:hover {
  background: #f0edf8;
  border-color: rgba(124,58,237,0.18);
}
.user-avatar img {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.35);
  background: #e8e0f8;
  flex-shrink: 0;
  object-fit: cover;
}
.user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-plan {
  font-size: 10.5px;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
}

/* ---- CONTENT AREA ---- */
.content-area {
  padding: 12px 16px 24px;
  flex: 1;
}

/* ============================================================
   HERO — PREMIUM AI SaaS
   ============================================================ */

.hero-section {
  position: relative;
  padding: 10px 0 12px;
  overflow: hidden;
}

/* ---- Ambient background orbs ---- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  z-index: 0;
  animation: orbDrift 12s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(124,58,237,0.13) 0%, transparent 70%);
  top: -80px; right: -60px;
  animation-duration: 14s;
}
.hero-orb-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
  bottom: -60px; left: 30%;
  animation-duration: 10s;
  animation-direction: alternate-reverse;
}
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, 15px) scale(1.06); }
}

/* ---- Single-column centered hero layout ---- */
.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ---- LEFT: Copy side ---- */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Eyebrow pill */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.22);
  color: var(--purple);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  width: fit-content;
  animation: heroFadeUp 0.6s ease both;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(124,58,237,0.7);
  animation: pulse 2s infinite;
}

/* Main heading */
.hero-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
  animation: heroFadeUp 0.6s ease 0.1s both;
}

/* Animated gradient text */
.hero-gradient-animated {
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 50%, #a855f7 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.hero-sub {
  font-size: 14.5px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 10px;
  max-width: 480px;
  animation: heroFadeUp 0.6s ease 0.2s both;
}

/* CTA Buttons */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  animation: heroFadeUp 0.6s ease 0.3s both;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(124,58,237,0.38), 0 2px 6px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.hero-cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124,58,237,0.48), 0 4px 8px rgba(0,0,0,0.1);
}
.hero-cta-primary:hover::after { opacity: 1; }
.hero-cta-primary:active { transform: translateY(-1px); }

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: #fff;
  color: var(--text-primary);
  border: 1.5px solid #e0dded;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.hero-cta-secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(124,58,237,0.04);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124,58,237,0.15);
}
.hero-cta-secondary:active { transform: translateY(0); }

/* Quick shortcut pills */
.hero-shortcuts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  animation: heroFadeUp 0.6s ease 0.4s both;
}
.hero-shortcut-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 2px;
}
.hero-shortcut-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  background: #fff;
  border: 1px solid #e5e3ef;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.hero-shortcut-btn:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}

/* ---- RIGHT: Preview side ---- */
.hero-preview {
  position: relative;
  animation: heroFadeUp 0.7s ease 0.2s both;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Floating AI cards ---- */
.hero-float-card {
  position: absolute;
  background: rgba(15, 10, 28, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border-purple);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  min-width: 130px;
  color: var(--text-primary);
}
.hero-float-card-1 {
  top: 8px;
  left: -24px;
  animation: floatCard1 5s ease-in-out infinite;
}
.hero-float-card-2 {
  bottom: 48px;
  left: -28px;
  animation: floatCard2 6s ease-in-out infinite;
}
.hero-float-card-3 {
  top: 20px;
  right: -20px;
  animation: floatCard3 4.5s ease-in-out infinite;
}

@keyframes floatCard1 {
  0%,100% { transform: translateY(0px) rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(0deg); }
}
@keyframes floatCard2 {
  0%,100% { transform: translateY(0px) rotate(1.5deg); }
  50%      { transform: translateY(-6px) rotate(0.5deg); }
}
@keyframes floatCard3 {
  0%,100% { transform: translateY(0px) rotate(-0.5deg); }
  50%      { transform: translateY(-10px) rotate(0.5deg); }
}

.hero-float-icon { font-size: 22px; flex-shrink: 0; }
.hero-float-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.hero-float-val {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.hero-float-green { color: #34d399; }
.hero-float-purple { color: var(--purple-light); }

/* ---- Main dashboard card ---- */
.hero-dash-card {
  background: #0f0a1c;
  border-radius: 20px;
  border: 1px solid var(--card-border-purple);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 58, 237, 0.15);
  padding: 20px;
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 5;
  color: var(--text-primary);
}

.hero-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
}
.hero-dash-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.hero-dash-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: pulse 2s infinite;
}
.hero-dash-badge {
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(59,130,246,0.08));
  color: var(--purple);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.03em;
}

/* Metrics */
.hero-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.hero-metric {
  display: grid;
  grid-template-columns: 100px 1fr 36px;
  align-items: center;
  gap: 10px;
}
.hero-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.hero-metric-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
.hero-metric-fill {
  height: 100%;
  border-radius: 99px;
  animation: barGrow 1.2s cubic-bezier(0.34,1.56,0.64,1) both;
}
.hero-metric-fill-purple { background: linear-gradient(90deg, var(--purple), #a855f7); }
.hero-metric-fill-blue   { background: linear-gradient(90deg, var(--blue-dark), var(--blue)); }
.hero-metric-fill-green  { background: linear-gradient(90deg, #16a34a, #4ade80); }
@keyframes barGrow {
  from { width: 0 !important; }
}
.hero-metric-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: right;
}

/* Proposal preview strip */
.hero-proposal-preview {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--card-border);
}
.hero-proposal-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.hero-proposal-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
.hero-line {
  height: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(124,58,237,0.25) 50%, rgba(255,255,255,0.06) 100%);
  background-size: 200% 100%;
  border-radius: 99px;
}
.hero-line-long  { width: 100%; }
.hero-line-med   { width: 75%; }
.hero-line-short { width: 50%; }
.hero-line-anim {
  animation: lineShimmer 2.5s ease-in-out infinite;
}
@keyframes lineShimmer {
  0%   { background-position: 200% 0; opacity: 0.7; }
  50%  { background-position: 0% 0; opacity: 1; }
  100% { background-position: -200% 0; opacity: 0.7; }
}
.hero-proposal-actions {
  display: flex;
  gap: 8px;
}
.hero-action-chip {
  font-size: 11px;
  font-weight: 600;
  background: var(--purple);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* ---- Entrance animation ---- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-preview {
    max-width: 420px;
    margin: 0 auto;
  }
  .hero-dash-card { max-width: 100%; }
  .hero-float-card-1 { left: -10px; }
  .hero-float-card-2 { left: -10px; }
  .hero-float-card-3 { right: -10px; }
}
@media (max-width: 640px) {
  .hero-section { padding: 32px 0 24px; }
  .hero-heading  { font-size: 1.9rem; }
  .hero-sub      { font-size: 14.5px; margin-bottom: 24px; }
  .hero-ctas     { gap: 10px; }
  .hero-cta-primary, .hero-cta-secondary { width: 100%; justify-content: center; }
  .hero-shortcuts { gap: 6px; }
  .hero-float-card { display: none; }
  .hero-preview { min-height: auto; }
  .hero-dash-card { padding: 16px; border-radius: 16px; }
  .hero-metric { grid-template-columns: 90px 1fr 32px; }
}

/* ---- GLASS CARD ---- */
.glass-card {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid var(--card-border-purple);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

/* ---- MAIN GRID ---- */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  margin-bottom: 16px;
}

/* ============================================================
   STATS STRIP & TESTIMONIALS (v3.0.0 Brand Redesign)
   ============================================================ */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin: 12px 0 16px;
  backdrop-filter: blur(12px);
  gap: 14px;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* TESTIMONIALS SECTION */
.testimonials-section {
  margin: 20px 0;
}
.testimonials-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 16px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-gold);
  box-shadow: 0 12px 32px rgba(240, 180, 41, 0.12);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  gap: 3px;
}
.testimonial-quote {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: normal;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
}
.testimonial-info {
  display: flex;
  flex-direction: column;
}
.testimonial-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* SCROLL REVEAL (SAFE DEFAULT VISIBILITY) */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* LIGHT THEME PARITY FOR NEW COMPONENTS */
[data-theme="light"] .stats-strip {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .stat-number {
  color: var(--purple);
}
[data-theme="light"] .testimonial-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .testimonial-quote {
  color: #1e293b;
}


.form-panel {
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--card-border-purple);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  transition: all 0.25s ease;
}
.form-panel:hover {
  border-color: var(--card-border-hover);
}
.panel-header {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 10px;
}
.panel-title { 
  font-size: 18px; 
  font-weight: 800; 
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.panel-badge {
  font-size: 11px; 
  font-weight: 700;
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
  padding: 5px 12px; 
  border-radius: 50px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.panel-badge.loading { background: rgba(234,179,8,0.15); color: #fbbf24; border-color: rgba(234,179,8,0.3); }
.panel-badge.done { background: rgba(34,197,94,0.15); color: #34d399; border-color: rgba(34,197,94,0.3); }
.panel-badge.error { background: rgba(239,68,68,0.15); color: #f87171; border-color: rgba(239,68,68,0.3); }
.panel-badge.demo { background: rgba(245,158,11,0.15); color: #fb923c; border-color: rgba(245,158,11,0.3); }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-label {
  display: block; 
  font-size: 12.5px; 
  font-weight: 700;
  color: var(--text-primary); 
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.form-textarea, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 13.5px; 
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  resize: vertical;
}
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-textarea:focus, .form-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 16px var(--purple-glow);
  background: rgba(124, 58, 237, 0.06);
}
.form-select option {
  background: #0f0a1c;
  color: #f8fafc;
}

/* Privacy Trust Badge */
.privacy-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: 8px;
}

/* Sample Job Quick Buttons */
.sample-job-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.sample-job-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sample-job-btn {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}
.sample-job-btn:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: var(--purple);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Tone & Platform Pills */
.tone-pills, .platform-pills {
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px;
}
.tone-pill, .platform-pill {
  padding: 8px 16px; 
  border-radius: 10px;
  font-size: 12.5px; 
  font-weight: 600;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04); 
  color: var(--text-secondary);
  cursor: pointer; 
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}
.tone-pill.active, .platform-pill.active {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff; 
  border-color: transparent;
  box-shadow: 0 4px 14px var(--purple-glow);
}
.tone-pill:hover, .platform-pill:hover {
  border-color: var(--card-border-purple); 
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.1);
}
.tone-pill.active:hover, .platform-pill.active:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

/* Generate Button */
.btn-generate {
  position: relative;
  width: 100%; 
  padding: 16px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: #fff; 
  border: none; 
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 14.5px; 
  font-weight: 700;
  cursor: pointer; 
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  margin-top: 8px;
  letter-spacing: 0.01em;
}
.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45);
}
.btn-generate:active { 
  transform: translateY(0); 
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Proposal Output */
.proposal-output {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border-purple);
  border-radius: 14px;
  overflow: hidden;
  animation: fadeInUp 0.4s ease;
}
.output-header {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--card-border);
  font-size: 13px; 
  font-weight: 700;
  color: var(--text-primary);
}
.output-actions { display: flex; gap: 8px; }
.output-btn {
  padding: 6px 14px; 
  border-radius: 8px;
  background: var(--purple); 
  color: #fff;
  border: none; 
  font-size: 12px; 
  font-weight: 700;
  cursor: pointer; 
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
  font-family: var(--font-sans);
}
.output-btn:hover { 
  background: #6d28d9; 
  transform: translateY(-1px);
}
.output-text {
  padding: 20px; 
  font-size: 13.5px; 
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  font-family: var(--font-sans);
}

/* ---- ANALYTICS PANEL ---- */
.analytics-panel {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--card-border-purple);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  transition: all 0.25s ease;
  color: var(--text-primary);
}
.analytics-panel::-webkit-scrollbar {
  width: 4px;
}
.analytics-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.analytics-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* AI Cards */
.ai-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  transition: all 0.22s ease;
}
.ai-card:hover { 
  transform: translateY(-2px); 
  border-color: var(--card-border-purple);
  background: rgba(124, 58, 237, 0.05);
}
.ai-card.wide { width: 100%; }
.ai-card-top {
  display: flex; 
  align-items: center; 
  gap: 8px;
  margin-bottom: 8px;
}
.ai-card-icon { font-size: 15px; display: flex; align-items: center; justify-content: center; color: var(--purple); }
.ai-svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2.2px;
  vertical-align: middle;
}

.ai-card-label { 
  font-size: 11px; 
  font-weight: 700; 
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ai-card-value {
  font-size: 16.5px; 
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1.2;
}
.ai-card-strategy {
  font-size: 12px; 
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 500;
}

.progress-bar {
  height: 5px; 
  background: #e6e4f0;
  border-radius: 99px; 
  overflow: hidden;
}
.progress-fill {
  height: 100%; 
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
.progress-fill.purple { background: linear-gradient(90deg, var(--purple), var(--purple-light)); }
.progress-fill.blue   { background: linear-gradient(90deg, var(--blue-dark), var(--blue)); }
.progress-fill.green  { background: linear-gradient(90deg, #16a34a, #4ade80); }
.progress-fill.orange { background: linear-gradient(90deg, #ea580c, #fb923c); }
.progress-fill.red    { background: linear-gradient(90deg, #dc2626, #f87171); }

/* ---- INSIGHTS SECTION ---- */
.insights-section {
  animation: fadeInUp 0.5s ease;
  margin-top: 32px;
}
.section-title {
  font-size: 18px; 
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.insight-card {
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--card-border-purple);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.22s ease;
  color: var(--text-primary);
}
.insight-card:hover { 
  transform: translateY(-3px); 
  border-color: var(--card-border-hover);
  background: rgba(124, 58, 237, 0.05);
}
.insight-header {
  display: flex; 
  align-items: center; 
  gap: 8px;
  font-size: 13.5px; 
  font-weight: 800;
  margin-bottom: 14px; 
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
  letter-spacing: -0.01em;
}
.insight-header.pain { color: #f87171; }
.insight-header.wants { color: var(--purple-light); }
.insight-header.avoid { color: #fb923c; }
.insight-header.tips { color: #38bdf8; }
.insight-list { list-style: none; }
.insight-list li {
  font-size: 12.5px; 
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.55;
}
.insight-list li:last-child {
  border-bottom: none;
}
.insight-list li::before {
  content: '›'; 
  color: var(--purple-light);
  margin-right: 6px; 
  font-weight: 800;
  font-size: 14px;
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  z-index: 999;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: #0f0a1c;
  border: 1px solid var(--card-border-purple);
  border-radius: 20px;
  padding: 36px; max-width: 400px; width: 90%;
  text-align: center; position: relative;
  animation: fadeInUp 0.3s ease;
  color: var(--text-primary);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.06); border: none; font-size: 16px;
  cursor: pointer; color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: var(--text-primary); }
.modal-icon { font-size: 40px; margin-bottom: 12px; }
.modal-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.modal-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.modal-features { text-align: left; margin-bottom: 20px; }
.modal-feature { font-size: 13.5px; padding: 5px 0; color: var(--text-secondary); }
.modal-price { font-size: 16px; color: var(--text-muted); }
.price-big { font-size: 42px; font-weight: 800; color: var(--purple-light); }

/* ---- SIDEBAR OVERLAY (MOBILE) ---- */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}

/* ---- DEMO BANNER CLASS ---- */
.demo-banner {
  display: none;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid rgba(251,191,36,0.2);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.demo-banner.visible { display: block; }
.demo-banner-title {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-banner-text {
  margin-bottom: 12px;
  color: rgba(255,255,255,0.92);
  font-size: 12.5px;
}
.demo-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-banner-btn-primary {
  background: #fff;
  color: #b45309;
  border: none;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  font-family: 'Inter', sans-serif;
}
.demo-banner-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.demo-banner-btn-secondary {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.demo-banner-btn-secondary:hover { background: rgba(255,255,255,0.28); }

/* ---- ANIMATIONS & TRANSITIONS ---- */
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(12px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-slide-up {
  animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Loading skeleton helper */
.loading-skeleton {
  background: linear-gradient(90deg, #f4f3f8 25%, #e8e6f2 50%, #f4f3f8 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s infinite linear;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

/* Hover Lift Effect */
.hover-lift {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Smooth page transition for tabs */
.form-panel {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1c9e8; border-radius: 99px; }
* { scrollbar-width: thin; scrollbar-color: #d1c9e8 transparent; }

/* ---- CONNECT AI BUTTON (Primary CTA in topbar) ---- */
.btn-settings {
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.22s ease;
  box-shadow: 0 3px 10px rgba(124,58,237,0.32);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-settings:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124,58,237,0.48);
}
.btn-settings:active { transform: translateY(0); }

/* ---- LANG TOGGLE (now in overflow menu, hidden from topbar) ---- */
.lang-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; text-align: left; width: 100%;
  transition: background var(--transition);
}
.lang-toggle-btn:hover { background: rgba(124,58,237,0.08); }

/* ---- HEADER OVERFLOW MENU ---- */
.header-overflow-btn {
  position: relative;
  width: 36px; height: 36px;
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.08);
  color: var(--text-secondary);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.18s ease;
  user-select: none;
  flex-shrink: 0;
}
.header-overflow-btn:hover {
  background: #f0edf8;
  border-color: rgba(124,58,237,0.2);
  color: var(--purple);
}
.header-overflow-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.12),
    0 4px 12px rgba(0,0,0,0.06);
  min-width: 210px;
  z-index: 9999;
  padding: 6px;
  overflow: hidden;
}
.header-overflow-menu.open { display: block; animation: headerMenuIn 0.18s ease; }
@keyframes headerMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.overflow-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  border-radius: 9px;
  transition: background 0.15s ease;
  font-family: 'Inter', sans-serif;
}
.overflow-item:hover { background: #f5f3ff; color: var(--purple); }

/* ---- AI STATUS PILL ---- */
.ai-status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f4f3f8;
  border: 1.5px solid rgba(0,0,0,0.06);
  border-radius: 50px;
  padding: 5px 13px 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: default;
  transition: all 0.18s ease;
}
.ai-status-pill:hover {
  border-color: rgba(124,58,237,0.15);
  background: #f0edf8;
}
.ai-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #d1d5db;
  transition: background 0.3s;
  flex-shrink: 0;
}
.ai-dot.connected {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 4px rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 10px rgba(34,197,94,0.8); }
}

/* ---- TRIAL BADGE ---- */
.trial-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 50px;
  animation: trialPulse 2s infinite;
  cursor: pointer;
  white-space: nowrap;
}
@keyframes trialPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}

/* ---- SETTINGS MODAL EXTRAS ---- */
.api-key-steps {
  text-align: left; margin-bottom: 16px;
}
.api-step {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
  padding: 5px 0;
}
.api-step a { color: var(--purple); text-decoration: none; }
.api-step a:hover { text-decoration: underline; }
.step-num {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff; font-size: 10px; font-weight: 700;
  width: 20px; height: 20px; min-width: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.api-key-input-wrap {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 4px;
}
.api-key-input {
  flex: 1;
  border: 1.5px solid #e2e0ed;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; outline: none;
  transition: all 0.2s ease;
  background: #ffffff;
}
.api-key-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.08);
}
.toggle-key-btn {
  background: #f4f3f8; border: 1.5px solid #e2e0ed;
  border-radius: 12px; padding: 11px 14px;
  cursor: pointer; font-size: 14px;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}
.toggle-key-btn:hover { background: #e8e0f8; border-color: rgba(124,58,237,0.25); color: var(--purple); }
.toggle-key-btn:active { transform: scale(0.98); }
.modal-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-clear-key {
  background: none; border: 1.5px solid #e2e0ed;
  color: var(--text-secondary); padding: 12px;
  border-radius: 12px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}
.btn-clear-key:hover { border-color: #dc2626; color: #dc2626; background: rgba(220,38,38,0.02); }
.btn-clear-key:active { transform: scale(0.98); }
.api-key-note {
  font-size: 11px; color: var(--text-muted);
  margin-top: 10px; text-align: center;
}

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #1a1523; color: #fff;
  padding: 12px 20px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  z-index: 9999; max-width: 320px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transform: translateY(20px); opacity: 0;
  transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.toast-success { border-left: 4px solid #22c55e; }
.toast.toast-error   { border-left: 4px solid #ef4444; }
.toast.toast-info    { border-left: 4px solid var(--purple); }

/* ---- MISC ---- */
.required { color: #ef4444; }
.ai-card-value.sm { font-size: 13px; }

/* ============================================================
   MOBILE LOGO (shown in header when sidebar is hidden)
   ============================================================ */
.header-logo-mobile {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.header-logo-mobile .logo-icon-sm {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 10px; color: #fff;
  box-shadow: 0 2px 8px rgba(124,58,237,0.35);
  letter-spacing: -0.3px;
}
.header-logo-mobile .logo-text-sm {
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* ============================================================
   RESPONSIVE — NAVIGATION & LAYOUT
   ============================================================ */

/* Collapse AI pill text on mid-width */
@media (max-width: 1200px) {
  .btn-settings { display: none; }
  .ai-status-pill span:not(.ai-dot) { display: none; }
  .ai-status-pill {
    padding: 10px;
    border-radius: 50%;
    min-width: unset;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
  }
}

/* Collapse upgrade button and header search */
@media (max-width: 1024px) {
  .btn-header-upgrade { display: none; }
  .header-search { min-width: 180px; }
}

/* Tab/Grid layouts on Tablet/Large Mobile */
@media (max-width: 1100px) {
  .main-grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  .analytics-panel { 
    position: static; 
    max-height: none;
    width: 100%;
  }
  .analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }
  .insights-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 16px;
  }
}

/* Mobile responsive navigation & details */
@media (max-width: 820px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 40px rgba(0,0,0,0.3);
  }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.28s ease;
  }
  .sidebar-overlay.open {
    display: block;
    opacity: 1;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  
  .main-wrapper { margin-left: 0; }
  
  /* Touch target sizes (minimum 44x44px) */
  .hamburger { 
    display: flex; 
    width: 44px; 
    height: 44px; 
    align-items: center; 
    justify-content: center;
  }
  .notif-btn, .header-overflow-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .stats-row { grid-template-columns: 1fr 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .content-area { padding: 16px; }
  .header-search { display: none; }
  .header-logo-mobile { display: flex; }
  .user-avatar .user-info { display: none; }
  .user-avatar {
    padding: 6px;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .hero-heading { font-size: 1.8rem; }
  .user-info { display: none; }
  .analytics-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 24px 16px; border-radius: 16px; }
  .top-header { padding: 0 16px; gap: 10px; }
  .content-area { padding: 12px; }
  .form-panel {
    padding: 20px;
    border-radius: 16px;
  }
  .panel-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  .panel-title {
    font-size: 16px;
  }
  .btn-generate {
    padding: 14px;
    font-size: 14px;
  }
  .proposal-output {
    margin-top: 16px;
  }
  .output-text {
    padding: 16px;
    font-size: 13px;
  }
  .output-header {
    padding: 10px 14px;
  }
}

/* ==========================================
   AUTH OVERLAY
   ========================================== */
.auth-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex;
  z-index: 2000;
  min-height: 100vh;
  overflow-y: auto;
}

/* LEFT PANEL */
.auth-left {
  flex: 1;
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}
.auth-left::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  border-radius: 50%;
}

.auth-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 40px;
}
.auth-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.5);
}
.auth-logo-text {
  font-size: 20px; font-weight: 800;
  background: linear-gradient(90deg, #a855f7, #60a5fa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-tagline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.2;
  color: #fff; margin-bottom: 14px;
  letter-spacing: -0.02em;
  position: relative; z-index: 1;
}
.auth-subtitle {
  color: rgba(255,255,255,0.72);
  font-size: 15px; margin-bottom: 36px;
  position: relative; z-index: 1;
}

.auth-features {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 36px;
  position: relative; z-index: 1;
}
.auth-feature {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.75);
}
.af-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; min-width: 32px;
}

.auth-social-proof {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.5);
  position: relative; z-index: 1;
}
.auth-avatars { display: flex; }
.auth-avatars img {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--sidebar-bg);
  margin-left: -8px; background: #2d1b69;
}
.auth-avatars img:first-child { margin-left: 0; }
.auth-social-proof strong { color: rgba(255,255,255,0.8); }

/* RIGHT PANEL */
.auth-right {
  width: 460px; min-width: 360px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
  background: #fff;
}

.auth-card {
  width: 100%; max-width: 400px;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

/* TABS */
.auth-tabs {
  display: flex; gap: 4px;
  background: #f1f0f5;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1; padding: 9px;
  border: none; background: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  transition: all var(--transition);
}
.auth-tab.active {
  background: #fff; color: var(--purple);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* GOOGLE BTN */
.google-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; border: 1.5px solid #e2e0ed;
  border-radius: 12px;
  padding: 12px; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; font-weight: 700;
  color: var(--text-primary);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 16px;
}
.google-btn:hover {
  background: #fafafc;
  border-color: var(--purple);
  box-shadow: 0 4px 12px rgba(124,58,237,0.08);
  transform: translateY(-1px);
}
.google-btn:active {
  transform: translateY(0);
}

/* DIVIDER */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e2e0ed;
}
.auth-divider span { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }

/* FIELDS */
.auth-form { }
.auth-field { margin-bottom: 16px; }
.auth-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  background: #ffffff; border: 1.5px solid #e2e0ed;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif; font-size: 13.5px;
  color: var(--text-primary); outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01);
}
.auth-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.08), inset 0 1px 2px rgba(0, 0, 0, 0.01);
  background: #fff;
}
.auth-pass-wrap { position: relative; }
.auth-pass-wrap .auth-input { padding-right: 42px; }
.auth-eye {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--text-muted);
  transition: color 0.2s;
}
.auth-eye:hover { color: var(--purple); }

.auth-row-between {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.auth-remember {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-secondary); cursor: pointer;
}

.auth-terms {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 16px; margin-top: 4px;
}

.auth-link {
  background: none; border: none; cursor: pointer;
  color: var(--purple); font-size: inherit;
  font-weight: 600; text-decoration: none;
  padding: 0;
}
.auth-link:hover { text-decoration: underline; }

/* SUBMIT BTN */
.auth-submit-btn {
  position: relative;
  width: 100%; padding: 14px;
  background: #2563eb !important;
  color: #ffffff !important; border: none; border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer; overflow: hidden;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-submit-btn span, .auth-submit-btn * {
  color: #ffffff !important;
  font-weight: 700 !important;
}
.auth-submit-btn:hover { background: #1d4ed8 !important; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.45); }
.auth-submit-btn:active { transform: translateY(0); }
.auth-submit-btn:disabled { background: rgba(37,99,235,0.6) !important; cursor: not-allowed; transform: none !important; box-shadow: none !important; }


.auth-switch {
  text-align: center; font-size: 13px;
  color: var(--text-secondary); margin-top: 4px;
}

.auth-demo-skip {
  display: block; width: 100%; text-align: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 11.5px;
  margin-top: 16px; padding: 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.auth-demo-skip:hover { color: var(--purple); }

/* AUTH ERROR */
.auth-error {
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-left: 3px solid #dc2626;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px; color: #dc2626;
  margin-bottom: 14px;
}

/* USER DROPDOWN */
.user-avatar { position: relative; }
.user-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  min-width: 200px; z-index: 200;
  padding: 8px;
  animation: fadeInUp 0.2s ease;
}
.user-dropdown.open { display: block; }
.user-dropdown-email {
  font-size: 11.5px; color: var(--text-muted);
  padding: 6px 10px 10px;
  word-break: break-all;
}
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.dropdown-item {
  display: block; width: 100%;
  background: none; border: none;
  text-align: left; padding: 9px 12px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--text-primary);
  cursor: pointer; transition: background var(--transition);
}
.dropdown-item:hover { background: #f7f6fb; }
.dropdown-item.danger { color: #dc2626; }
.dropdown-item.danger:hover { background: rgba(220,38,38,0.06); }

/* RESPONSIVE AUTH */
@media (max-width: 820px) {
  .auth-overlay { flex-direction: column; }
  .auth-left { padding: 36px 24px; flex: none; }
  .auth-right { width: 100%; min-width: unset; padding: 24px 16px; }
  .auth-tagline { font-size: 1.8rem; }
  .auth-features { display: none; }
}
@media (max-width: 480px) {
  .auth-card { padding: 20px 16px; }
  .auth-left { padding: 24px 20px; }
}

/* ==============================
   TEMPLATE GALLERY
   ============================== */
.template-gallery-section {
  margin: 2rem 0;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem; flex-wrap: wrap; gap: 10px;
}
.template-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.tpl-card {
  background: #fff;
  border: 1.5px solid rgba(124,58,237,0.1);
  border-radius: 16px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.tpl-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--tpl-color, #7c3aed);
  border-radius: 16px 16px 0 0;
}
.tpl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: var(--tpl-color, #7c3aed);
}
.tpl-card-icon { font-size: 28px; margin-bottom: 8px; }
.tpl-card-name { font-size: 14px; font-weight: 700; color: #1e1b4b; margin-bottom: 8px; }
.tpl-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.tpl-tag {
  font-size: 10px; background: #f0edf8; color: #7c3aed;
  padding: 2px 7px; border-radius: 20px; font-weight: 500;
}
.tpl-card-action {
  font-size: 12px; font-weight: 600;
  color: var(--tpl-color, #7c3aed);
  margin-top: 6px;
}

/* ==============================
   TEMPLATE EDITOR MODAL
   ============================== */
.tpl-editor-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.tpl-editor-icon { font-size: 32px; }
.tpl-editor-header h2 { font-size: 20px; font-weight: 800; color: #1e1b4b; margin: 0; }

/* ==============================
   VISUAL TEMPLATE EDITOR MODAL
   ============================== */
.tpl-editor-modal {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: #f0f2f5;
  z-index: 1001;
  overflow: hidden;
}
.tpl-editor-topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #1e1b4b; padding: 12px 20px;
  flex-shrink: 0; flex-wrap: wrap; gap: 10px;
}
.tpl-editor-topbar h2 {
  color: #fff; font-size: 15px; font-weight: 700; margin: 0;
}
.tpl-editor-topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tpl-topbar-btn {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #fff; padding: 8px 16px;
  border-radius: 10px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-sans);
}
.tpl-topbar-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3); transform: translateY(-1.5px); }
.tpl-topbar-btn:active { transform: translateY(0) scale(0.98); }
.tpl-topbar-btn.green { background: #10b981; border-color: #10b981; }
.tpl-topbar-btn.green:hover { background: #059669; border-color: #059669; }
.tpl-topbar-btn.red { background: rgba(239,68,68,0.3); border-color: #ef4444; }
.tpl-topbar-btn.red:hover { background: #ef4444; border-color: #ef4444; }

.tpl-editor-hint {
  background: #fffbeb; border-bottom: 1px solid #fde68a;
  padding: 8px 20px; font-size: 12.5px; color: #92400e;
  flex-shrink: 0;
}
.tpl-doc-canvas {
  flex: 1; overflow-y: auto;
  padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center;
}

/* ---- DOCUMENT STYLES ---- */
.doc-header {
  width: 100%; max-width: 780px;
  border-radius: 16px 16px 0 0;
  padding: 36px 40px 32px;
  display: flex; align-items: flex-start; gap: 20px;
  color: #fff;
}
.doc-header-icon { font-size: 48px; flex-shrink: 0; }
.doc-header-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; opacity: 0.8; margin-bottom: 6px; }
.doc-title {
  font-size: 26px; font-weight: 800; margin: 0 0 12px;
  outline: none; border-bottom: 2px dashed rgba(255,255,255,0.3);
  min-width: 200px;
}
.doc-title:focus { border-bottom-color: #fff; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; opacity: 0.9; }
.doc-meta b { outline: none; border-bottom: 1px dashed rgba(255,255,255,0.5); }
.doc-meta b:focus { background: rgba(255,255,255,0.1); border-radius: 4px; }

.doc-body {
  background: #fff;
  width: 100%; max-width: 780px;
  border-radius: 0 0 16px 16px;
  padding: 32px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  margin-bottom: 40px;
}
.doc-section { margin-bottom: 28px; }
.doc-section-label {
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.doc-text {
  font-size: 14px; line-height: 1.8; color: #374151;
  outline: none; padding: 8px; border-radius: 6px;
  border: 1px dashed transparent;
  transition: border 0.2s;
}
.doc-text:focus { border-color: #d1d5db; background: #f9fafb; }

.doc-list {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.doc-list li {
  padding: 10px 14px;
  border-radius: 6px;
  background: #f9fafb;
  font-size: 13.5px; color: #374151;
  outline: none;
  transition: background 0.2s;
}
.doc-list li:focus { background: #f0f2f5; }

.doc-add-btn {
  background: none; border: 1.5px dashed;
  border-radius: 6px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  margin-top: 4px; font-family: inherit;
  transition: all 0.2s;
}
.doc-add-btn:hover { opacity: 0.7; }

/* Timeline */
.doc-timeline { display: flex; flex-direction: column; gap: 0; }
.doc-timeline-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.doc-timeline-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.doc-timeline-phase {
  font-size: 12px; font-weight: 700; min-width: 100px;
  outline: none; padding: 2px 4px; border-radius: 4px;
}
.doc-timeline-phase:focus { background: #f0f2f5; }
.doc-timeline-task {
  font-size: 13.5px; color: #374151; flex: 1;
  outline: none; padding: 2px 4px; border-radius: 4px;
}
.doc-timeline-task:focus { background: #f0f2f5; }

/* Price Box */
.doc-price-box {
  border: 2px solid; border-radius: 12px;
  padding: 24px; text-align: center;
}
.doc-price-amount {
  font-size: 42px; font-weight: 800;
  outline: none; display: inline-block;
  border-bottom: 2px dashed; padding-bottom: 4px;
}
.doc-price-note {
  font-size: 13px; color: #6b7280; margin-top: 8px;
  outline: none;
}

/* Why grid */
.doc-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-why-card {
  background: #f9fafb; border-radius: 10px;
  padding: 12px 14px; font-size: 13.5px; color: #374151;
  display: flex; gap: 8px; align-items: flex-start;
  outline: none; transition: background 0.2s; cursor: text;
}
.doc-why-card:focus { background: #f0f2f5; }
.doc-why-icon { font-size: 16px; font-weight: 800; flex-shrink: 0; }

/* CTA Section */
.doc-cta-section {
  border-radius: 12px; padding: 24px;
  text-align: center; color: #fff; margin-top: 8px;
}
.doc-cta-text {
  font-size: 18px; font-weight: 700;
  outline: none; margin-bottom: 6px;
}
.doc-cta-sub { font-size: 13px; opacity: 0.85; outline: none; }

/* Editable highlight */
[contenteditable]:hover { background: rgba(124,58,237,0.04); border-radius: 4px; }

@media (max-width: 640px) {
  .template-gallery { grid-template-columns: repeat(2, 1fr); }
  .doc-header { padding: 24px 20px; flex-direction: column; gap: 10px; }
  .doc-body { padding: 20px; }
  .doc-why-grid { grid-template-columns: 1fr; }
  .doc-title { font-size: 20px; }
  .tpl-doc-canvas { padding: 16px 8px; }
  .feature-tabs { gap: 6px; }
  .feature-tab { font-size: 12px; padding: 8px 12px; }
}

@media (max-width: 480px) {
  .template-gallery { grid-template-columns: 1fr; }
  .doc-timeline-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============================================================
   FEATURE TABS
   ============================================================ */
.feature-tabs-wrap {
  padding: 0 0 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.feature-tabs-wrap::-webkit-scrollbar { display: none; }

.feature-tabs {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 2px 16px rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.1);
  width: fit-content;
  min-width: 100%;
}

.feature-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.feature-tab:hover {
  background: rgba(124,58,237,0.06);
  color: #7c3aed;
}

.feature-tab.active {
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}

.feature-tab span {
  font-size: 15px;
}

/* ============================================================
   COLD EMAIL GENERATOR — OUTPUT CARDS
   ============================================================ */

/* Character Counter */
.ce-char-counter {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Output Card */
.ce-output-card {
  background: #fff;
  border: 1px solid rgba(124,58,237,0.1);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
  animation: ceCardIn 0.35s ease forwards;
}
.ce-output-card:hover {
  box-shadow: 0 4px 20px rgba(124,58,237,0.1);
}

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

/* Staggered animation delay for each card */
.ce-output-card:nth-child(1) { animation-delay: 0.05s; }
.ce-output-card:nth-child(2) { animation-delay: 0.10s; }
.ce-output-card:nth-child(3) { animation-delay: 0.15s; }
.ce-output-card:nth-child(4) { animation-delay: 0.20s; }
.ce-output-card:nth-child(5) { animation-delay: 0.25s; }
.ce-output-card:nth-child(6) { animation-delay: 0.30s; }

.ce-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(59,130,246,0.04));
  border-bottom: 1px solid rgba(124,58,237,0.08);
}

.ce-output-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.ce-output-body {
  padding: 16px;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Inter', sans-serif;
}

/* Subject Lines numbered list */
.ce-subject-line {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
  align-items: flex-start;
}
.ce-subject-line:last-child { border-bottom: none; }
.ce-subject-num {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}
.ce-subject-text {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
}

/* Action Buttons Row */
.ce-action-btns {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ce-action-btn {
  flex: 1;
  min-width: 110px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ce-action-btn:active {
  transform: scale(0.98);
}

.ce-copy-all {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}
.ce-copy-all:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,0.45); }

.ce-export {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16,185,129,0.25);
}
.ce-export:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,185,129,0.4); }

.ce-save {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245,158,11,0.25);
}
.ce-save:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.4); }

/* History List */
.ce-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f9f8fd;
  border: 1px solid rgba(124,58,237,0.08);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 10px;
}
.ce-history-item:hover {
  background: rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.2);
  transform: translateX(2px);
}
.ce-history-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.ce-history-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.ce-history-time {
  font-size: 11px;
  color: var(--text-muted);
}
.ce-history-restore {
  font-size: 11px;
  color: var(--purple);
  font-weight: 600;
  white-space: nowrap;
}

/* Loading skeleton for output cards */
.ce-loading-pulse {
  background: linear-gradient(90deg, #f0edf8 25%, #e8e4f4 50%, #f0edf8 75%);
  background-size: 200% 100%;
  animation: cePulse 1.4s infinite;
  border-radius: 6px;
  height: 14px;
  margin-bottom: 8px;
}
@keyframes cePulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 640px) {
  .ce-action-btns { flex-direction: column; }
  .ce-action-btn { min-width: 100%; }
  .ce-output-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===========================
   HERO TRUST BADGES
   =========================== */
.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  margin-bottom: 4px;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(167, 243, 208, 0.85);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 20px;
  padding: 4px 12px;
  letter-spacing: 0.01em;
  transition: background 0.2s, border-color 0.2s;
}

.hero-trust-badge:hover {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.32);
}

@media (max-width: 640px) {
  .hero-trust-badges {
    gap: 8px 10px;
  }
  .hero-trust-badge {
    font-size: 11.5px;
    padding: 3px 10px;
  }
}

/* ===========================
   HOW PROPOSALIQ WORKS SECTION
   =========================== */
.how-section {
  padding: 16px 20px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.how-header {
  text-align: center;
  margin-bottom: 16px;
}

.how-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.how-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-light);
  display: inline-block;
  animation: pulse 2s infinite;
}

.how-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.how-subtitle {
  font-size: 15px;
  color: rgba(203, 213, 225, 0.65);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cards row */
.how-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

/* Individual card */
.how-card {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px 32px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  backdrop-filter: blur(6px);
}

.how-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-3px);
}

/* Top row: step number + icon */
.how-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.how-step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(148, 163, 184, 0.5);
  font-variant-numeric: tabular-nums;
}

/* Icon bubble */
.how-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-icon-blue {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.how-icon-purple {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: #a78bfa;
}

.how-icon-green {
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.how-card-title {
  font-size: 16px;
  font-weight: 650;
  color: #e2e8f0;
  margin-bottom: 10px;
  line-height: 1.35;
}

.how-card-desc {
  font-size: 13.5px;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.65;
}

/* Connecting arrow between cards (desktop only) */
.how-card-connector {
  display: none;
}

@media (min-width: 769px) {
  .how-card-connector {
    display: block;
    position: absolute;
    top: 50px;
    right: -16px;
    width: 12px;
    height: 12px;
    border-top: 2px solid rgba(124, 58, 237, 0.35);
    border-right: 2px solid rgba(124, 58, 237, 0.35);
    transform: rotate(45deg);
    z-index: 2;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .how-section {
    padding: 48px 20px 40px;
  }
  .how-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .how-card {
    padding: 22px 20px 26px;
  }
  .how-title {
    font-size: 22px;
  }
}

/* ===========================
   FEATURES SECTION
   =========================== */
.features-section {
  padding: 56px 32px 60px;
  max-width: 960px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 40px;
}

.features-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.features-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-light);
  display: inline-block;
  animation: pulse 2s infinite;
}

.features-title {
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* 4-column grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Each feature card */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 22px 18px;
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
  cursor: default;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(124, 58, 237, 0.28);
  transform: translateY(-2px);
}

/* Icon bubble */
.feature-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-purple {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #a78bfa;
}

.feature-icon-blue {
  background: rgba(59, 130, 246, 0.13);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #60a5fa;
}

.feature-icon-green {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: #34d399;
}

.feature-icon-red {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #f87171;
}

.feature-icon-yellow {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

/* Text */
.feature-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feature-title {
  font-size: 14px;
  font-weight: 650;
  color: #e2e8f0;
  line-height: 1.3;
}

.feature-desc {
  font-size: 12.5px;
  color: rgba(148, 163, 184, 0.78);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features-section {
    padding: 40px 16px 44px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feature-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
  }
  .feature-icon-wrap {
    flex-shrink: 0;
  }
  .features-title {
    font-size: 20px;
  }
}

/* ===========================
   BENEFITS SECTION
   =========================== */
.benefits-section {
  padding: 56px 32px 64px;
  max-width: 960px;
  margin: 0 auto;
}

.benefits-header {
  text-align: center;
  margin-bottom: 44px;
}

.benefits-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.benefits-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  animation: pulse 2s infinite;
}

.benefits-title {
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.benefits-subtitle {
  font-size: 14.5px;
  color: rgba(148, 163, 184, 0.7);
  line-height: 1.6;
}

/* 3-column grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Individual benefit card */
.benefit-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid transparent;
  border-radius: 16px;
  padding: 24px 20px;
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
}

.benefit-card:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  border-left-color: #34d399;
  transform: translateY(-2px);
}

/* Large emoji */
.benefit-emoji {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.benefit-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.benefit-card-title {
  font-size: 15px;
  font-weight: 650;
  color: #e2e8f0;
  line-height: 1.3;
}

.benefit-card-desc {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.78);
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 860px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .benefits-section {
    padding: 40px 16px 48px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .benefit-card {
    padding: 18px 16px;
  }
  .benefit-emoji {
    font-size: 24px;
  }
  .benefits-title {
    font-size: 20px;
  }
}

/* ===========================
   PRODUCT PREVIEW SECTION
   =========================== */
.preview-section {
  padding: 16px 20px 24px;
  max-width: 1020px;
  margin: 0 auto;
}

.preview-header {
  text-align: center;
  margin-bottom: 16px;
}

.preview-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.preview-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  display: inline-block;
  animation: pulse 2s infinite;
}

.preview-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.preview-subtitle {
  font-size: 15px;
  color: rgba(148, 163, 184, 0.7);
}

/* Alternating item rows */
.preview-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.preview-item {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}

.preview-item-reverse {
  grid-template-columns: 1fr 1.5fr;
}

.preview-item-reverse .preview-mockup { order: 2; }
.preview-item-reverse .preview-caption { order: 1; }

/* Browser mockup frame */
.preview-mockup {
  background: #0f0b1e;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04);
}

/* Browser top bar */
.pm-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pm-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pm-dot-red    { background: #f87171; }
.pm-dot-yellow { background: #fbbf24; }
.pm-dot-green  { background: #34d399; }

.pm-url {
  font-size: 11px;
  color: rgba(148,163,184,0.5);
  margin-left: 8px;
  font-family: monospace;
}

/* Mockup body */
.pm-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pm-panel-title {
  font-size: 13px;
  font-weight: 650;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Badges */
.pm-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.04em;
}
.pm-badge-purple { background: rgba(124,58,237,0.2); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); }
.pm-badge-blue   { background: rgba(59,130,246,0.2); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.pm-badge-green  { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }

/* Textarea mock */
.pm-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: rgba(148,163,184,0.8);
  line-height: 1.55;
}

/* Field row */
.pm-row {
  display: flex;
  gap: 8px;
}
.pm-field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pm-label { font-size: 10px; color: rgba(148,163,184,0.55); font-weight: 500; }
.pm-select-pill {
  font-size: 11px;
  padding: 5px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 6px;
  color: rgba(203,213,225,0.8);
}

/* Generate button mock */
.pm-btn-generate {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Output preview shimmer lines */
.pm-output-preview {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-output-label {
  font-size: 11px;
  color: #a78bfa;
  font-weight: 600;
  margin-bottom: 4px;
}
.pm-output-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
}
.pm-line-full { width: 100%; }
.pm-line-lg   { width: 85%; }
.pm-line-med  { width: 68%; }
.pm-line-sm   { width: 45%; }

@keyframes shimmerLine {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}
.pm-anim { animation: shimmerLine 2s ease-in-out infinite; }

/* Analysis grid */
.pm-analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pm-analysis-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 12px;
}
.pm-analysis-label { font-size: 10px; color: rgba(148,163,184,0.5); margin-bottom: 4px; }
.pm-analysis-val   { font-size: 13px; font-weight: 650; }
.pm-val-white  { color: #e2e8f0; }
.pm-val-green  { color: #34d399; }
.pm-val-yellow { color: #fbbf24; }
.pm-val-red    { color: #f87171; }

/* Insight box */
.pm-insight-box {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 8px;
  padding: 10px 12px;
}
.pm-insight-label { font-size: 10px; color: #a78bfa; font-weight: 600; margin-bottom: 4px; }
.pm-insight-text  { font-size: 11.5px; color: rgba(203,213,225,0.8); line-height: 1.55; }

/* Scam result */
.pm-scam-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
}
.pm-scam-safe { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); }
.pm-scam-icon { font-size: 24px; }
.pm-scam-status { font-size: 13px; font-weight: 650; color: #34d399; }
.pm-scam-sub    { font-size: 11px; color: rgba(148,163,184,0.65); }

/* Check list */
.pm-check-list { display: flex; flex-direction: column; gap: 5px; }
.pm-check-item {
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 6px;
}
.pm-check-pass { color: rgba(203,213,225,0.8); background: rgba(255,255,255,0.02); }
.pm-check-pass span { color: #34d399; font-weight: 700; }
.pm-check-warn { color: #fbbf24; background: rgba(245,158,11,0.06); }
.pm-check-warn span { font-weight: 700; }

/* Risk bar */
.pm-risk-bar-wrap { display: flex; flex-direction: column; gap: 5px; }
.pm-risk-label { font-size: 10px; color: rgba(148,163,184,0.5); }
.pm-risk-track { height: 6px; background: rgba(255,255,255,0.07); border-radius: 4px; overflow: hidden; }
.pm-risk-fill  { height: 100%; border-radius: 4px; }
.pm-risk-low   { background: #34d399; }
.pm-risk-val   { font-size: 11.5px; font-weight: 600; }

/* Client tags */
.pm-client-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.pm-client-tag {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.pm-tag-blue   { background: rgba(59,130,246,0.12);  color: #60a5fa;  border: 1px solid rgba(59,130,246,0.22); }
.pm-tag-purple { background: rgba(124,58,237,0.12); color: #a78bfa; border: 1px solid rgba(124,58,237,0.22); }
.pm-tag-green  { background: rgba(16,185,129,0.12);  color: #34d399;  border: 1px solid rgba(16,185,129,0.22); }
.pm-tag-yellow { background: rgba(245,158,11,0.12);  color: #fbbf24;  border: 1px solid rgba(245,158,11,0.22); }

/* Tone row */
.pm-tone-row { display: flex; align-items: center; gap: 8px; }
.pm-tone-label { font-size: 11px; color: rgba(148,163,184,0.55); }
.pm-tone-pill {
  font-size: 11.5px;
  padding: 4px 12px;
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 20px;
  font-weight: 500;
}

/* Score circle */
.pm-score-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 10px;
}
.pm-score-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: conic-gradient(#34d399 84%, rgba(255,255,255,0.07) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.pm-score-circle::after {
  content:'';
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #0f0b1e;
}
.pm-score-num {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 700;
  color: #34d399;
}
.pm-score-pct {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: #34d399;
}
.pm-score-label { font-size: 13px; font-weight: 650; color: #e2e8f0; }
.pm-score-sub   { font-size: 11px; color: rgba(148,163,184,0.6); margin-top: 3px; }

/* Metric rows */
.pm-metrics-list { display: flex; flex-direction: column; gap: 8px; }
.pm-metric-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-metric-name { font-size: 11.5px; color: rgba(203,213,225,0.7); min-width: 90px; }
.pm-metric-track { flex: 1; height: 5px; background: rgba(255,255,255,0.07); border-radius: 4px; overflow: hidden; }
.pm-metric-fill  { height: 100%; border-radius: 4px; }
.pm-fill-blue   { background: #60a5fa; }
.pm-fill-green  { background: #34d399; }
.pm-fill-yellow { background: #fbbf24; }
.pm-metric-pct  { font-size: 11px; color: rgba(148,163,184,0.7); min-width: 36px; text-align: right; }

/* Caption */
.preview-caption {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview-cap-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.preview-cap-desc {
  font-size: 14.5px;
  color: rgba(148, 163, 184, 0.78);
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 860px) {
  .preview-item,
  .preview-item-reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .preview-item-reverse .preview-mockup { order: 0; }
  .preview-item-reverse .preview-caption { order: 0; }
  .preview-section { padding: 48px 20px 56px; }
  .preview-list { gap: 52px; }
}

/* ===========================
   SITE FOOTER
   =========================== */
.site-footer {
  margin-top: 24px;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  background: rgba(255, 255, 255, 0.015);
}
.site-footer-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 52px 32px 32px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  align-items: flex-start;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.footer-logo-text { font-size: 17px; font-weight: 700; color: #f1f5f9; }
.footer-tagline { font-size: 13.5px; color: rgba(148,163,184,0.7); line-height: 1.6; margin-bottom: 8px; max-width: 280px; }
.footer-powered { font-size: 12.5px; color: rgba(148,163,184,0.5); }
.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  font-size: 13.5px;
  color: rgba(148,163,184,0.75);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.18s;
}
.footer-link:hover { color: #a78bfa; }
.footer-bottom {
  max-width: 1020px;
  margin: 0 auto;
  padding: 20px 32px 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-copy { font-size: 12.5px; color: rgba(148,163,184,0.5); }
.footer-bottom-link { color: rgba(148,163,184,0.6); text-decoration: none; }
.footer-bottom-link:hover { color: #a78bfa; }
.footer-disclaimer { font-size: 11.5px; color: rgba(148,163,184,0.35); line-height: 1.5; max-width: 600px; }

@media (max-width: 768px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 24px; }
  .footer-links-group { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { padding: 16px 20px 24px; }
}
@media (max-width: 480px) {
  .footer-links-group { grid-template-columns: 1fr; }
}

/* ============================================================
   LIGHT THEME OVERRIDES (data-theme="light")
   ============================================================ */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.92);

  --card-bg: #ffffff;
  --card-bg-elevated: #f1f5f9;
  --card-border: #e2e8f0;
  --card-border-purple: rgba(124, 58, 237, 0.2);
  --card-border-hover: rgba(124, 58, 237, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --purple: #7c3aed;
  --purple-light: #6d28d9;
  --purple-glow: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] body {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(59, 130, 246, 0.04) 0%, transparent 45%);
  color: #0f172a;
}

[data-theme="light"] .top-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

[data-theme="light"] .glass-card,
[data-theme="light"] .form-panel,
[data-theme="light"] .analytics-panel,
[data-theme="light"] .ai-card,
[data-theme="light"] .insight-card,
[data-theme="light"] .proposal-output,
[data-theme="light"] .modal-card,
[data-theme="light"] .hero-dash-card,
[data-theme="light"] .hero-float-card,
[data-theme="light"] .how-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .benefit-card,
[data-theme="light"] .preview-mockup {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select,
[data-theme="light"] .header-search {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .form-select option {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .tone-pill,
[data-theme="light"] .platform-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

[data-theme="light"] .tone-pill.active,
[data-theme="light"] .platform-pill.active {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #ffffff;
  border-color: transparent;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .how-title,
[data-theme="light"] .features-title,
[data-theme="light"] .benefits-title,
[data-theme="light"] .preview-title,
[data-theme="light"] .preview-cap-title,
[data-theme="light"] .benefit-card-title,
[data-theme="light"] .feature-title,
[data-theme="light"] .how-card-title,
[data-theme="light"] .panel-title,
[data-theme="light"] .section-title {
  color: #0f172a;
}

[data-theme="light"] .hero-sub,
[data-theme="light"] .how-subtitle,
[data-theme="light"] .features-subtitle,
[data-theme="light"] .benefits-subtitle,
[data-theme="light"] .preview-subtitle,
[data-theme="light"] .preview-cap-desc,
[data-theme="light"] .benefit-card-desc,
[data-theme="light"] .feature-desc,
[data-theme="light"] .how-card-desc {
  color: #475569;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-section {
  padding: 16px 20px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 16px;
}

.pricing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.pricing-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  display: inline-block;
  animation: pulse 2s infinite;
}

.pricing-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.pricing-subtitle {
  font-size: 15px;
  color: rgba(148, 163, 184, 0.75);
  line-height: 1.6;
}

/* 2-column grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Base card */
.pricing-card {
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* Free card */
.pricing-card-free {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pro card — glowing purple */
.pricing-card-pro {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.18) 0%, rgba(59, 130, 246, 0.12) 100%);
  border: 1px solid rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15), 0 20px 60px rgba(0,0,0,0.25);
}

/* "Most Popular" badge */
.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
}

.pricing-plan-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 12px;
  margin-top: 8px;
}

.pricing-plan-label-pro {
  color: #a78bfa;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-price-original {
  font-size: 18px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.45);
  text-decoration: line-through;
  margin-right: 4px;
}

.pricing-price {
  font-size: 46px;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-price-pro {
  color: #a78bfa;
  font-size: 46px;
}

.pricing-period {
  font-size: 14px;
  color: rgba(148, 163, 184, 0.6);
  font-weight: 500;
  margin-bottom: 3px;
}

.pricing-launch-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  margin-top: 2px;
}

.pricing-plan-desc {
  font-size: 13.5px;
  color: rgba(148, 163, 184, 0.65);
  line-height: 1.55;
  margin-bottom: 24px;
}

/* Feature list */
.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

.pricing-feature.pf-missing {
  color: rgba(148, 163, 184, 0.38);
}

.pricing-feature strong {
  color: #f1f5f9;
  font-weight: 700;
}

.pf-icon {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.pf-check {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.pf-check-pro {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.pf-cross {
  background: rgba(239, 68, 68, 0.08);
  color: rgba(248, 113, 113, 0.45);
  border: 1px solid rgba(239, 68, 68, 0.12);
}

/* CTAs */
.pricing-cta {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: var(--font-sans);
  border: none;
  position: relative;
  overflow: hidden;
}

.pricing-cta-free {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.pricing-cta-free:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.pricing-cta-pro {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pricing-cta-pro:hover {
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.55);
  transform: translateY(-2px);
}

.pricing-guarantee {
  margin-top: 12px;
  font-size: 11.5px;
  color: rgba(148, 163, 184, 0.5);
  text-align: center;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 700px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pricing-card-pro {
    order: -1;
  }
  .pricing-section {
    padding: 48px 16px 56px;
  }
}

/* Light theme overrides for pricing */
[data-theme="light"] .pricing-card-free {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
[data-theme="light"] .pricing-title { color: #0f172a; }
[data-theme="light"] .pricing-plan-desc { color: #475569; }
[data-theme="light"] .pricing-feature { color: #334155; }
[data-theme="light"] .pricing-feature.pf-missing { color: #94a3b8; }
[data-theme="light"] .pricing-feature strong { color: #0f172a; }
[data-theme="light"] .pricing-price { color: #0f172a; }
[data-theme="light"] .pricing-cta-free {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}
[data-theme="light"] .pricing-cta-free:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ============================================================
   ENHANCED API KEY ONBOARDING MODAL
   ============================================================ */
.onboarding-modal {
  max-width: 460px !important;
  width: 90%;
  padding: 32px 28px 24px;
}

.onboarding-header {
  text-align: center;
  margin-bottom: 24px;
}

.onboarding-icon {
  font-size: 38px;
  margin-bottom: 10px;
  line-height: 1;
}

.onboarding-title {
  font-size: 20px !important;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0 0 6px !important;
  letter-spacing: -0.02em;
}

.onboarding-desc {
  font-size: 13.5px;
  color: rgba(148, 163, 184, 0.75);
  line-height: 1.55;
  margin: 0;
}

.onboarding-desc strong {
  color: #a78bfa;
}

/* Steps container */
.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4px;
}

/* Connector line between steps */
.onboarding-connector {
  width: 2px;
  height: 16px;
  background: rgba(124, 58, 237, 0.25);
  margin-left: 17px;
}

/* Each step row */
.onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Step number circle */
.onboarding-step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(59,130,246,0.2));
  border: 1.5px solid rgba(124, 58, 237, 0.4);
  color: #a78bfa;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.onboarding-step-body {
  flex: 1;
  padding-bottom: 4px;
}

.onboarding-step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 3px;
}

.onboarding-step-desc {
  font-size: 12.5px;
  color: rgba(148, 163, 184, 0.7);
  line-height: 1.5;
}

.onboarding-step-desc strong {
  color: #f1f5f9;
}

/* "Open Google AI Studio →" action button */
.onboarding-step-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(59,130,246,0.15));
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 8px;
  color: #a78bfa;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.onboarding-step-action-btn:hover {
  background: linear-gradient(135deg, rgba(124,58,237,0.35), rgba(59,130,246,0.25));
  border-color: rgba(124, 58, 237, 0.65);
  color: #c4b5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Inline code tag */
.onboarding-code {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #a78bfa;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11.5px;
  font-family: 'Courier New', Courier, monospace;
}

/* Security note bar */
.onboarding-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 10px;
  font-size: 12px;
  color: rgba(148, 184, 163, 0.85);
  line-height: 1.4;
}

/* Light theme overrides */
[data-theme="light"] .onboarding-title { color: #0f172a; }
[data-theme="light"] .onboarding-step-title { color: #1e293b; }
[data-theme="light"] .onboarding-step-desc { color: #64748b; }
[data-theme="light"] .onboarding-step-desc strong { color: #0f172a; }
[data-theme="light"] .onboarding-desc { color: #475569; }
[data-theme="light"] .onboarding-code {
  background: #f1f0ff;
  border-color: #c4b5fd;
  color: #7c3aed;
}
[data-theme="light"] .onboarding-security-note {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* ============================================================
   BEFORE / AFTER PROPOSAL COMPARISON SECTION
   ============================================================ */
.comparison-section {
  padding: 16px 20px 24px;
  max-width: 1040px;
  margin: 0 auto;
}

/* Header */
.comparison-header {
  text-align: center;
  margin-bottom: 16px;
}

.comparison-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.comparison-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f87171;
  display: inline-block;
  animation: pulse 2s infinite;
}

.comparison-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.comparison-subtitle {
  font-size: 15px;
  color: rgba(148, 163, 184, 0.75);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* 3-column grid: bad | vs | good */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}

/* Base card */
.comparison-card {
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.25s ease;
}

.comparison-card:hover { transform: translateY(-3px); }

/* Bad card */
.comparison-card-bad {
  background: rgba(239, 68, 68, 0.05);
  border: 1.5px solid rgba(239, 68, 68, 0.2);
}

/* Good card */
.comparison-card-good {
  background: rgba(52, 211, 153, 0.05);
  border: 1.5px solid rgba(52, 211, 153, 0.22);
  box-shadow: 0 0 32px rgba(52, 211, 153, 0.06);
}

/* Card top badge */
.comparison-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  width: fit-content;
  letter-spacing: 0.01em;
}

.comparison-badge-bad {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.comparison-badge-good {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.comparison-badge-icon { font-size: 14px; }

/* Reply rate bar */
.comparison-rate-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-rate-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(148, 163, 184, 0.6);
  white-space: nowrap;
}

.comparison-rate-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.comparison-rate-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s ease;
}

.comparison-fill-bad { background: #ef4444; }
.comparison-fill-good {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.comparison-rate-pct {
  font-size: 12.5px;
  font-weight: 800;
  color: #f87171;
  white-space: nowrap;
}

.comparison-rate-pct-good { color: #34d399; }

/* Proposal text box (mock editor look) */
.comparison-proposal-box {
  border-radius: 12px;
  overflow: hidden;
}

.comparison-box-bad { border: 1px solid rgba(239, 68, 68, 0.15); }
.comparison-box-good { border: 1px solid rgba(52, 211, 153, 0.2); }

.comparison-box-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-box-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.comparison-dot-bad { background: rgba(239, 68, 68, 0.5); }
.comparison-dot-good { background: rgba(52, 211, 153, 0.5); }

.comparison-box-label {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.5);
  letter-spacing: 0.04em;
}

.comparison-box-label-good { color: rgba(52, 211, 153, 0.7); }

.comparison-proposal-text {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comparison-proposal-text p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(203, 213, 225, 0.85);
  margin: 0;
}

.comparison-card-bad .comparison-proposal-text p {
  color: rgba(203, 213, 225, 0.5);
  text-decoration: none;
}

.comparison-highlight {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}

/* Issues / Feature list */
.comparison-issues-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.comparison-issue,
.comparison-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
}

.comparison-issue { color: rgba(148, 163, 184, 0.5); }
.comparison-feature-item { color: #cbd5e1; }

.comparison-issue-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.comparison-feature-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* VS divider column */
.comparison-vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 60px;
}

.comparison-vs-line {
  width: 1.5px;
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  min-height: 60px;
}

.comparison-vs-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(148, 163, 184, 0.6);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* CTA row below cards */
.comparison-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
}

.comparison-cta-btn {
  font-size: 15px !important;
  padding: 14px 32px !important;
}

.comparison-cta-note {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.45);
  text-align: center;
}

/* Responsive */
@media (max-width: 840px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .comparison-vs-divider {
    flex-direction: row;
    padding-top: 0;
    padding: 16px 0;
  }
  .comparison-vs-line {
    flex: 1;
    width: auto;
    height: 1.5px;
    min-height: unset;
  }
  .comparison-vs-badge {
    width: 34px;
    height: 34px;
  }
  .comparison-section { padding: 48px 16px 56px; }
}

/* Light theme overrides */
[data-theme="light"] .comparison-title { color: #0f172a; }
[data-theme="light"] .comparison-card-bad {
  background: #fff5f5;
  border-color: rgba(239, 68, 68, 0.25);
}
[data-theme="light"] .comparison-card-good {
  background: #f0fdf4;
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.08);
}
[data-theme="light"] .comparison-proposal-text p { color: #334155; }
[data-theme="light"] .comparison-card-bad .comparison-proposal-text p { color: #94a3b8; }
[data-theme="light"] .comparison-issue { color: #94a3b8; }
[data-theme="light"] .comparison-feature-item { color: #334155; }
[data-theme="light"] .comparison-vs-badge {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
}

/* ============================================================
   CHROME EXTENSION SHOWCASE SECTION
   ============================================================ */
.ext-section {
  padding: 72px 32px 80px;
  max-width: 1060px;
  margin: 0 auto;
}

/* 2-col layout: text | mockup */
.ext-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ---- LEFT CONTENT ---- */
.ext-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.ext-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.ext-subtitle {
  font-size: 14.5px;
  color: rgba(148, 163, 184, 0.75);
  line-height: 1.65;
  margin-bottom: 30px;
}

/* Feature list */
.ext-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ext-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ext-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-top: 1px;
}

.ext-icon-yellow {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.ext-icon-green {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.ext-icon-blue {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.ext-feature-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ext-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
}

.ext-feature-desc {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.68);
  line-height: 1.55;
}

/* CTA row */
.ext-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ext-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: all 0.22s ease;
  font-family: var(--font-sans);
}

.ext-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.5);
}

.ext-cta-note {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.45);
  line-height: 1.4;
}

/* ---- RIGHT MOCKUP ---- */
.ext-visual {
  display: flex;
  justify-content: center;
}

.ext-browser-mockup {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 10, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

/* Browser top bar */
.ext-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ext-browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.ext-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.ext-dot-red    { background: #ef4444; }
.ext-dot-yellow { background: #f59e0b; }
.ext-dot-green  { background: #22c55e; }

.ext-url-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.55);
}

.ext-badge-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: #a78bfa;
  white-space: nowrap;
}

.ext-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a78bfa;
  animation: pulse 1.5s infinite;
}

/* Fake job card */
.ext-job-card {
  padding: 16px;
  position: relative;
}

.ext-job-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.ext-job-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ext-job-tag {
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(148, 163, 184, 0.7);
  padding: 2px 8px;
  border-radius: 6px;
}

.ext-scam-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.ext-scam-safe {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.ext-job-desc {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.5);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Floating ProposalIQ overlay panel */
.ext-overlay-panel {
  background: linear-gradient(145deg, rgba(15, 10, 40, 0.98), rgba(20, 12, 50, 0.98));
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.12);
}

.ext-overlay-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.ext-overlay-logo {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  border-radius: 6px;
  color: white;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ext-overlay-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
  flex: 1;
}

.ext-overlay-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #34d399;
}

.ext-score-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 1.5s infinite;
}

/* Skeleton proposal lines */
.ext-overlay-proposal {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.ext-proposal-line {
  height: 7px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.ext-proposal-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.2), transparent);
  animation: shimmer 2s infinite;
}

.ext-pl-full  { width: 100%; }
.ext-pl-wide  { width: 88%;  }
.ext-pl-med   { width: 72%;  }
.ext-pl-short { width: 52%;  }

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 100%;  }
}

/* Inject button */
.ext-inject-btn {
  width: 100%;
  padding: 8px 14px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: all 0.2s;
}

.ext-inject-btn:hover {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
  .ext-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ext-visual { order: -1; }
  .ext-section { padding: 48px 16px 56px; }
}

/* Light theme overrides */
[data-theme="light"] .ext-title { color: #0f172a; }
[data-theme="light"] .ext-feature-title { color: #1e293b; }
[data-theme="light"] .ext-feature-desc { color: #64748b; }
[data-theme="light"] .ext-subtitle { color: #475569; }
[data-theme="light"] .ext-browser-mockup {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
[data-theme="light"] .ext-url-bar {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}
[data-theme="light"] .ext-job-title { color: #0f172a; }
[data-theme="light"] .ext-job-desc  { color: #94a3b8; }
[data-theme="light"] .ext-overlay-panel {
  background: #0f0a1e;
}

/* ============================================================
   PROPOSAL EXPORT ACTION BUTTONS
   ============================================================ */

/* Make action bar wrap cleanly on small screens */
.output-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* Icon-enriched export buttons */
.output-btn-icon {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.output-btn-icon svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Download button — subtle blue tint to distinguish */
#downloadTxtBtn {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

#downloadTxtBtn:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.4);
  color: #bfdbfe;
  transform: translateY(-1px);
}

/* Copy button — subtle green tint */
#copyBtn {
  background: rgba(52, 211, 153, 0.07);
  border-color: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
}

#copyBtn:hover {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
  transform: translateY(-1px);
}

/* Light theme overrides */
[data-theme="light"] #downloadTxtBtn {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #3b82f6;
}
[data-theme="light"] #downloadTxtBtn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}
[data-theme="light"] #copyBtn {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}
[data-theme="light"] #copyBtn:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

/* ============================================================
   ONBOARDING PROGRESS BAR
   ============================================================ */

.onboarding-bar {
  grid-column: 1 / -1;
  background: linear-gradient(135deg,
    rgba(124, 58, 237, 0.08) 0%,
    rgba(59, 130, 246, 0.06) 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  padding: 16px 20px 18px;
  margin-bottom: 4px;
  transition: opacity 0.5s ease, max-height 0.5s ease;
  max-height: 300px;
  overflow: hidden;
}

.onboarding-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.onboarding-bar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a78bfa;
}

.onboarding-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onboarding-pct {
  font-size: 12px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.7);
  white-space: nowrap;
}

.onboarding-dismiss {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(148, 163, 184, 0.45);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: var(--font-sans);
  flex-shrink: 0;
}
.onboarding-dismiss:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.onboarding-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}

.onboarding-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
  transition: width 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.onboarding-steps-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 10px;
}

.ob-step-connector {
  flex: 1;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.06);
  min-width: 16px;
  max-width: 48px;
}

.onboarding-step-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
  cursor: default;
  min-width: 0;
}

.onboarding-step-pill.ob-step-done {
  background: rgba(52, 211, 153, 0.07);
  border-color: rgba(52, 211, 153, 0.2);
}

.ob-step-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
  position: relative;
}

.ob-step-num {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ob-check-svg {
  position: absolute;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fff;
}

.ob-check-done {
  background: linear-gradient(135deg, #10b981, #34d399);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.35);
}
.ob-check-done .ob-check-svg {
  opacity: 1;
  transform: scale(1);
}
.ob-check-done .ob-step-num {
  opacity: 0;
  transform: scale(0.4);
  position: absolute;
}

.ob-step-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ob-step-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}
.ob-step-done .ob-step-name { color: #34d399; }

.ob-step-hint {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ob-all-done {
  background: linear-gradient(135deg,
    rgba(52, 211, 153, 0.1) 0%,
    rgba(16, 185, 129, 0.07) 100%);
  border-color: rgba(52, 211, 153, 0.3);
}
.ob-all-done .onboarding-bar-label { color: #34d399; }
.ob-all-done .onboarding-pct { color: #34d399; font-size: 13px; }

@media (max-width: 680px) {
  .onboarding-steps-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .ob-step-connector { display: none; }
  .onboarding-step-pill { width: 100%; }
  .ob-step-name, .ob-step-hint { white-space: normal; }
}

[data-theme="light"] .onboarding-bar {
  background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
  border-color: rgba(124, 58, 237, 0.2);
}
[data-theme="light"] .onboarding-track { background: #e2e8f0; }
[data-theme="light"] .onboarding-step-pill { background: #ffffff; border-color: #e2e8f0; }
[data-theme="light"] .onboarding-step-pill.ob-step-done { background: #f0fdf4; border-color: #bbf7d0; }
[data-theme="light"] .ob-step-check { background: #f1f5f9; border-color: #cbd5e1; color: #94a3b8; }
[data-theme="light"] .ob-step-name { color: #334155; }
[data-theme="light"] .ob-step-done .ob-step-name { color: #16a34a; }
@media (max-width: 768px) {
  .beginner-steps-grid {
    grid-template-columns: 1fr !important;
  }
}
[data-theme="light"] .ob-step-connector { background: #e2e8f0; }
[data-theme="light"] .ob-all-done { background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%); border-color: rgba(52,211,153,0.35); }

/* ============================================================
   v4.0.0 HYPER-PREMIUM SAAS REBUILD COMPONENTS
   ============================================================ */

/* PRODUCT DROPDOWN IN HEADER */
.nav-has-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 260px;
  background: rgba(14, 10, 26, 0.95);
  border: 1px solid var(--card-border-purple);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  z-index: 1000;
}
.nav-has-dropdown:hover .nav-dropdown-menu,
.nav-has-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.nav-dropdown-item:hover {
  background: rgba(124, 58, 237, 0.12);
  color: var(--text-primary);
  transform: translateX(3px);
}
.nav-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
}

/* PROFILE SETTINGS FORM */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.profile-full {
  grid-column: span 2;
}

/* MY PROPOSALS HISTORY TRACKER */
.proposals-history-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.history-search-input {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
}
.history-filter-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
}
.history-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.history-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}
.history-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-draft { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.status-applied { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.status-replied { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.status-interview { background: rgba(240, 180, 41, 0.15); color: var(--gold-light); }
.status-won { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.status-rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* ANALYTICS DASHBOARD */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}
.metric-lbl {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* FAQ ACCORDION */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 840px;
  margin: 0 auto;
}
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover {
  border-color: var(--card-border-gold);
}
.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  display: block;
}
.faq-icon {
  transition: transform 0.2s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* SEO RESOURCES / BLOG CARDS */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.resource-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-purple);
}
.resource-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.resource-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.resource-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   FULL-SCREEN MOBILE & PC/LAPTOP RESPONSIVENESS
   ============================================================ */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  background: #ffffff !important;
  display: block !important;
}

#publicHomepageSection {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;
  background: #ffffff !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.saas-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 48px 64px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

.saas-nav {
  width: 100% !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

#productPreviewFrame {
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  border-radius: 16px !important;
}

@media (max-width: 1024px) {
  .saas-container {
    padding: 0 24px 48px !important;
  }
}

@media (max-width: 900px) {
  .pricing-grid-3tier {
    grid-template-columns: 1fr !important;
  }
  .hero-controls-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-scores-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .saas-container {
    padding: 0 16px 32px !important;
  }
  .saas-nav {
    padding: 0 16px !important;
    margin: 0 -16px 0 !important;
  }
  .saas-nav-links {
    display: none !important;
  }
  #productPreviewFrame {
    border-radius: 12px !important;
  }
  #productPreviewFrame > div:nth-child(2) {
    grid-template-columns: 1fr !important;
  }
  #productPreviewFrame > div:nth-child(2) > div:first-child {
    display: none !important;
  }
}

/* ---- PIQ Brand Logo ---- */
.piq-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.piq-logo-img { height: 38px; width: auto; max-width: 100%; object-fit: contain; display: block; border-radius: 6px; }
.footer-brand .piq-logo-img { height: 34px; width: auto; }
@media(max-width:480px) {
  .piq-logo-img { height: 32px; }
}
