/* =========================================================
   CORE VARIABLES & RESET
   ========================================================= */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --primary-glow: rgba(13, 148, 136, 0.15);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-white: #ffffff;
  --bg-off: #f8fafc;
  --border: #e2e8f0;
  --header-h: 44px;
  --header-bg: #000e0e;
  --footer-bg: #000e0e;
  --logo-blue: #2563eb;
  --logo-purple: #7c3aed;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-xl: 0 30px 60px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}


/* =========================================================
   HEADER
   ========================================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #000e0e;
  z-index: 500;
  border-bottom: 1px solid #afaab4;
  overflow: hidden;
}

/* Animated sparkle running along header bottom border — matches aivalue.in */
#site-header::before,
#site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -50px;
  width: 50px;
  height: 1px;
  background: radial-gradient(circle, #ffd270 25%, transparent 50%);
  box-shadow:
    0 0 4px #ffd270,
    0 0 8px #ffd270,
    0 0 12px #ffd270;
  animation: sparkleFly 2s linear infinite;
}
#site-header::before { animation-delay: 0s; }
#site-header::after  { animation-delay: 1s; }

@keyframes sparkleFly {
  0%   { left: -50px; opacity: 0.7; }
  50%  { opacity: 1; }
  100% { left: 100%; opacity: 0.7; }
}

.header-inner {
  width: 100%;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  cursor: default;
}
.header-logo img { display: block; }
.header-vertical {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  border-left: 1px solid #afaab4;
  padding-left: 10px;
  line-height: 1;
}

.header-nav {
  display: flex;
  gap: 0;
  margin-left: auto;
}
.header-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  padding: 0 0.75rem;
  height: 70%;
  display: flex;
  align-items: center;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--logo-blue), var(--logo-purple));
  transition: width 0.3s ease;
}

.header-nav a:hover { color: #fff; }
.header-nav a:hover::after { width: 100%; }

.header-nav a.nav-active {
  background-color: #e5e5e5;
  color: #1f2937;
  font-weight: 600;
  border-radius: 0.5rem;
}

.header-nav a.nav-disabled {
  color: #334155;
  pointer-events: none;
  cursor: default;
}
.header-nav a.nav-disabled:hover::after {
  width: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.hbtn-ghost {
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  padding: 0 0.75rem;
  height: 70%;
  display: flex;
  align-items: center;
}
.hbtn-ghost:hover { color: #fff; }
.hbtn-logout {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  color: #ef4444;
  background: transparent;
  border: 1px solid rgba(239,68,68,0.3);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.hbtn-logout:hover {
  background: rgba(239,68,68,0.08);
  border-color: #ef4444;
}
.hbtn-primary {
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  color: #030d0d;
  background: var(--primary);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.hbtn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* User chip (authenticated) */
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(13,148,136,0.3);
  cursor: pointer;
  position: relative;
  font-size: 13px;
  color: #cbd5e1;
  transition: all 0.2s;
}
.user-chip:hover { border-color: var(--primary); color: #fff; }
.user-chip-dot {
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #0a1f1f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 12px;
  min-width: 200px;
  box-shadow: var(--shadow-xl);
  z-index: 600;
}
.user-dropdown-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  padding: 4px 8px;
}
.user-dropdown-expiry {
  font-size: 11px;
  color: #94a3b8;
  padding: 2px 8px 8px;
}
.user-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 0;
}
.user-dropdown button {
  width: 100%;
  padding: 8px;
  background: none;
  border: none;
  color: #ef4444;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.user-dropdown button:hover { background: rgba(239,68,68,0.08); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #94a3b8;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile-only login button */
.hbtn-mobile-login {
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  color: #e2e8f0;
  background: transparent;
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: 6px;
  padding: 5px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  margin-left: 0;
  margin-right: 0;
}
.hbtn-mobile-login:hover { color: #fff; border-color: #fff; }


/* =========================================================
   AUTH MODAL — light theme
   ========================================================= */
#auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 13, 13, 0.7);
  backdrop-filter: blur(6px);
}
.auth-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  text-align: center;
  z-index: 1;
}
.auth-close-btn {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.auth-close-btn:hover { color: var(--text-main); }
.auth-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.auth-title {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}
.auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.auth-field-group {
  text-align: left;
  margin-bottom: 14px;
}
.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.auth-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-main);
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.auth-primary-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--text-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.auth-primary-btn:hover { background: var(--primary); transform: translateY(-1px); }
.auth-primary-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.auth-err {
  font-size: 13px;
  color: #dc2626;
  margin-top: 10px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 6px;
  border: 1px solid #fee2e2;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #cbd5e1;
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span { color: #94a3b8; }
.auth-link-btn {
  background: var(--bg-off);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: all 0.2s;
  text-decoration: none;
}
.auth-link-btn:hover {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

/* Success view */
.auth-success-icon {
  width: 52px; height: 52px;
  background: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}
.passphrase-reveal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
}
.passphrase-display {
  flex: 1;
  background: var(--bg-off);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
  word-break: break-all;
  text-align: left;
}
.passphrase-copy-btn {
  padding: 10px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.passphrase-copy-btn:hover { background: var(--primary); color: #fff; }
.copy-confirm {
  font-size: 12px;
  color: #059669;
  margin-bottom: 4px;
}
.auth-expiry-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}


/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  margin-top: calc(var(--header-h) + 8px);
  min-height: calc(100vh - var(--header-h) - 8px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 50px 5%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.hero-inner { padding-top: 4px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #5eead4;
  border: 1px solid rgba(13,148,136,0.35);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 0;
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(13,148,136,0.12);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: #5eead4;
  border-radius: 50%;
  animation: blink 2s infinite;
  box-shadow: 0 0 6px #5eead4;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-title {
  font-family: 'Lora', serif;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 24px;
}
.hero-title-accent {
  color: var(--primary);
  position: relative;
  font-size: 4rem;
  font-style: italic;
  display: block;
  line-height: 1.1;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text-main); }
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero-cta-btn {
  padding: 14px 28px;
  background: var(--text-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(15,23,42,0.2);
}
.hero-cta-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.3);
}
.hero-secondary-btn {
  padding: 14px 20px;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.hero-secondary-btn:hover { border-color: var(--primary); color: var(--primary); }
.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-trust span {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust i { color: var(--primary); }

/* Chat preview card */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.chat-preview-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 360px;
  overflow: hidden;
}
.cp-header {
  background: var(--text-main);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-avatar {
  width: 36px; height: 36px;
  background: rgba(13,148,136,0.2);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(13,148,136,0.3);
  flex-shrink: 0;
}
.cp-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.cp-status {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cp-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s infinite;
}
.cp-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  min-height: 240px;
}
.cp-msg {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 85%;
  animation: fadeSlide 0.4s ease both;
}
.cp-msg.bot {
  background: #fff;
  color: var(--text-main);
  border-bottom-left-radius: 3px;
  box-shadow: var(--shadow-sm);
  align-self: flex-start;
}
.cp-msg.user {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 3px;
  align-self: flex-end;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.cp-msg:nth-child(1) { animation-delay: 0.1s; }
.cp-msg:nth-child(2) { animation-delay: 0.3s; }
.cp-msg:nth-child(3) { animation-delay: 0.5s; }
.cp-msg:nth-child(4) { animation-delay: 0.7s; }
.cp-msg:nth-child(5) { animation-delay: 0.9s; }
.cp-msg:nth-child(6) { animation-delay: 1.1s; }
.cp-msg:nth-child(7) { animation-delay: 1.3s; }
.cp-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cp-languages {
  display: flex;
  gap: 6px;
}
.cp-languages span {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.cp-tagline {
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 0.05em;
}


/* =========================================================
   ROI STRIP
   ========================================================= */
.roi-strip {
  background: linear-gradient(135deg, #020f0f 0%, #041f1a 50%, #020f0f 100%);
  padding: 36px 5%;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(13,148,136,0.15);
  border-bottom: 1px solid rgba(13,148,136,0.15);
}
.roi-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(13,148,136,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.roi-strip-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}
.roi-stat {
  text-align: center;
  padding: 0 48px;
  flex: 1;
}
.roi-number {
  font-family: 'Lora', serif;
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0d9488, #5eead4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.roi-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.roi-divider {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(13,148,136,0.25), transparent);
  flex-shrink: 0;
}


/* =========================================================
   SHARED SECTION STYLES
   ========================================================= */
.section-pad {
  padding: 40px 5%;
}
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.bg-off { background: var(--bg-off); }
.section-label {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Lora', serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 24px;
  line-height: 1.7;
}


/* =========================================================
   HOW IT WORKS
   ========================================================= */
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 24px;
}
.step-card {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.step-number {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.step-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.step-icon {
  width: 40px; height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.step-card h3 {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.step-arrow {
  flex-shrink: 0;
  padding: 0 20px;
  padding-top: 60px;
  color: #cbd5e1;
  font-size: 18px;
}


/* =========================================================
   FEATURES
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-card-cta {
  background: var(--text-main);
  border-color: transparent;
}
.feature-card-cta h3 { color: #fff !important; }
.feature-card-cta p { color: #94a3b8 !important; }
.feature-card-cta .feature-icon-wrap {
  background: rgba(255,255,255,0.08) !important;
  color: var(--primary) !important;
}
.feature-icon-wrap {
  width: 46px; height: 46px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.feature-talk-btn {
  margin-top: 20px;
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.feature-talk-btn:hover { background: var(--primary-dark); }


/* =========================================================
   PRICING
   ========================================================= */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  margin-top: 60px;
  align-items: start;
}
.pricing-card-main {
  background: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}
.pricing-card-main::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(13,148,136,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.pricing-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.pricing-price {
  font-family: 'Lora', serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pricing-currency {
  font-size: 2rem;
  color: var(--primary);
}
.pricing-once {
  font-size: 1rem;
  font-weight: 400;
  color: #94a3b8;
  margin-left: 8px;
  font-family: 'DM Sans', sans-serif;
}
.pricing-tagline {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 32px;
}
.pricing-list {
  list-style: none;
  margin-bottom: 36px;
}
.pricing-list li {
  font-size: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #cbd5e1;
}
.pricing-card-main .pricing-list li:last-child { border-bottom: none; }
.pricing-list i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.pricing-main-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pricing-main-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

.pricing-card-demo {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.pricing-demo-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pricing-card-demo h3 {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.pricing-demo-price {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Lora', serif;
  color: var(--primary);
  margin-bottom: 24px;
}
.pricing-card-demo .pricing-list li {
  color: var(--text-muted);
  border-bottom-color: var(--border);
}
.pricing-card-demo .pricing-list li:last-child { border-bottom: none; }
.pricing-demo-hint {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Interest toast */
.interest-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-main);
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 8000;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.interest-toast i { color: var(--primary); }

.sub-header-tagline {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 49;
  background: linear-gradient(90deg, #000e0e 60%, #001a18 100%);
  border-bottom: 1px solid rgba(13,148,136,0.18);
  text-align: left;
  padding: 5px 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  font-style: bold;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: none;
}
/* =========================================================
   FOOTER — dark, matches aivalue.in
   ========================================================= */
#site-footer {
  background: #000e0e;
  border-top: 1px solid #afaab4;
}
.footer-inline {
  width: 100%;
  padding-top: 6px;
  padding-bottom: 6px;
  color: #e5e5e5;
  box-sizing: border-box;
  align-items: center;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}
.footer-left {
  font-size: 0.85rem;
  font-weight: 400;
  text-align: left;
  flex: 1;
  color: #e5e5e5;
}

/* =========================================================
   CHAT LAUNCHER — bottom right bubble
   ========================================================= */
#chat-launcher-wrapper {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 300;
}
#chat-launcher-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--text-main);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.06);
  transition: all 0.3s;
}
#chat-launcher-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(13,148,136,0.35);
}
#chat-launcher-btn i { font-size: 16px; color: var(--primary); }
#chat-launcher-btn:hover i { color: #fff; }


/* =========================================================
   CHAT WINDOW — bottom right messenger style
   ========================================================= */
#chat-window-container {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  bottom: 12px;
  right: 28px;
  width: min(480px, calc(100vw - 56px));
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(255,255,255,0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 600;
}
.chat-toolbar {
  background: var(--text-main);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.bot-identity { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px;
  background: rgba(13,148,136,0.15);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid rgba(13,148,136,0.3);
  flex-shrink: 0;
}
.bot-name h3 { font-size: 13px; font-weight: 700; color: #fff; margin: 0; }
.status {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
}
.chat-controls { display: flex; gap: 10px; align-items: center; }
#chat-close-btn, #chat-clear-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  line-height: 1;
}
#chat-close-btn:hover { color: #ef4444; }
#chat-clear-btn:hover { color: #fff; }

.demo-banner {
  background: #fffbeb;
  color: #92400e;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #fde68a;
  flex-shrink: 0;
}
.demo-banner.hidden { display: none; }

#chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-track { background: transparent; }
#chat-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

.msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.user {
  align-self: flex-end;
  background: var(--text-main);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-lang-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 2px;
  background: #fff;
}
.lang-btn {
  padding: 3px 10px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang-bar-powered {
  margin-left: auto;
  font-size: 11px;
  color: #94a3b8;
}

.chat-input-area {
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
#user-input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  color: var(--text-main);
  background: #f8fafc;
  transition: border-color 0.2s;
}
#user-input:focus { border-color: var(--primary); background: #fff; }
#mic-btn {
  width: 34px; height: 34px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
#mic-btn:hover { background: #e2e8f0; color: var(--text-main); }
#mic-btn.listening { color: #ef4444; animation: pulse 1.5s infinite; background: #fef2f2; }
#send-btn {
  width: 34px; height: 34px;
  background: var(--text-main);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
#send-btn:hover { background: var(--primary); transform: scale(1.05); }


/* =========================================================
   PROPERTY CARDS — untouched functionally, polished
   ========================================================= */
.property-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}
.prop-card {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.group-separator {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 12px 0 8px 0;
    gap: 10px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.group-separator::before,
.group-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

@media (min-width: 768px) {
  .prop-card { width: calc(50% - 8px); }
}
.prop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.prop-card img { width: 100%; height: 160px; object-fit: cover; }
.prop-badges { display: flex; gap: 5px; padding: 8px 12px 0; flex-wrap: wrap; }
.listing-badge, .legal-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.listing-badge.listing-sale  { background: #dcfce7; color: #15803d; }
.listing-badge.listing-rent  { background: #fef3c7; color: #b45309; }
.listing-badge.listing-lease { background: #ede9fe; color: #6d28d9; }
.legal-badge { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.prop-info { padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.prop-title { font-weight: 700; font-size: 14px; color: var(--text-main); line-height: 1.3; }
.prop-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.prop-meta i { color: #cbd5e1; width: 14px; text-align: center; }
.prop-price { color: #059669; font-weight: 700; font-size: 15px; margin-top: 3px; }
.detail-btn {
  margin: 8px 12px 12px;
  padding: 8px;
  background: var(--text-main);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}
.detail-btn:hover { background: var(--primary); }
.map-link {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  transition: color 0.2s;
}
.map-link:hover { color: var(--primary); }
.map-link i.fa-map-marker-alt { color: #ef4444; }
.load-more-btn {
  background: var(--bg-off);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: block;
  margin: 12px auto 0;
  transition: all 0.2s;
}
.load-more-btn:hover { background: var(--primary-light); transform: translateY(-1px); }


/* =========================================================
   PROPERTY DETAILS MODAL
   ========================================================= */
#property-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 560px;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  color: var(--text-main);
  box-shadow: var(--shadow-xl);
}
#modal-close-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}
#modal-close-btn:hover { background: #e2e8f0; color: #1e293b; }

.modal-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 16px; }
.modal-title { font-family: 'Lora', serif; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.modal-price { color: #059669; font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.modal-section { margin-bottom: 16px; }
.modal-section h4 { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.modal-text { font-size: 14px; line-height: 1.7; color: #334155; }
.modal-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.overview-item { background: var(--bg-off); padding: 8px; border-radius: 6px; font-size: 13px; }
.tag-empty, .spec-empty { opacity: 0.5; font-style: italic; }
.tag-container { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--bg-off); color: var(--text-muted); padding: 4px 10px; border-radius: 4px; font-size: 12px; border: 1px solid var(--border); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spec-item { background: var(--bg-off); padding: 8px; border-radius: 6px; font-size: 13px; }
.spec-label { color: var(--text-muted); font-size: 10px; display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }

/* User info bar — shown at top of dashboard */
.dash-user-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.dash-user-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-user-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.dash-user-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  font-family: 'DM Sans', sans-serif;
}
.dash-user-passphrase {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.dash-passphrase-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}
.dash-title {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}
.dash-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.dash-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-chat-btn {
  padding: 9px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.dash-chat-btn:hover { background: var(--primary-dark); }
.dash-close-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.dash-close-btn:hover { color: var(--text-main); border-color: #94a3b8; }

/* Tabs */
.dash-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.dash-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s;
}
.dash-tab:hover { color: var(--text-main); }
.dash-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Form */
.dash-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  margin-top: 28px;
}
.dash-section-label:first-child { margin-top: 0; }
.dash-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 4px;
}
.dash-field { display: flex; flex-direction: column; gap: 6px; }
.dash-field-full { grid-column: 1 / -1; }
.dash-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.02em;
}
.dash-input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-main);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.dash-input:focus { border-color: var(--primary); }
.dash-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* Radio groups */
.dash-radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  background: #fff;
  user-select: none;
}
.dash-radio input[type="radio"] { display: none; }
.dash-radio:has(input:checked) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Save row */
.dash-save-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.dash-save-status {
  font-size: 13px;
  font-weight: 500;
}
.dash-save-btn {
  padding: 10px 24px;
  background: var(--text-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.dash-save-btn:hover { background: var(--primary); }
.dash-save-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Leads placeholder */
.dash-coming-soon {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.dash-coming-soon i {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
  color: var(--border);
}
.dash-coming-soon h3 {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}
.dash-coming-soon p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
}

/* Dashboard responsive */
@media (max-width: 600px) {
  .dash-form-grid { grid-template-columns: 1fr; }
  .dash-header { gap: 12px; }
  .dash-inner { padding: 20px 16px 60px; }
}

/* =========================================================
   UTILS
   ========================================================= */
.hidden { display: none !important; }

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}


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

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 20px 5%;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .header-nav.mobile-open { display: flex; }
  .header-nav a { font-size: 16px; }
  .hamburger { display: flex; margin-left: 0; }
  .hbtn-ghost { display: none; }
  .hbtn-mobile-login { display: flex; align-items: center; margin-left: auto; }
  .header-actions { gap: 0; margin-left: 0; flex-shrink: 0; }
  .hbtn-logout { padding: 5px 10px; font-size: 12px; gap: 4px; }
  #header-actions-user { margin-left: auto; }
  #header-actions-guest { display: none; }
  .hero-section {
    grid-template-columns: 1fr;
    padding: 40px 5% 60px;
    gap: 40px;
    min-height: auto;
  }
  .hero-inner { padding-top: 4px; }
  .hero-title { font-size: 2.4rem; }
  .hero-title-accent { font-size: 2.9rem; }
  .hero-visual { order: 2; }
  .chat-preview-card { max-width: 100%; }

  .roi-strip-inner { flex-wrap: wrap; gap: 20px; }
  .roi-stat { padding: 0 20px; min-width: 40%; }
  .roi-divider { display: none; }

  .steps-grid { flex-direction: column; gap: 16px; }
  .step-arrow { display: none; }

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

  .pricing-wrap { grid-template-columns: 1fr; }

  #chat-window-container {
    top: calc(var(--header-h) + 5vh);
    bottom: 5vh;
    right: 5vw;
    left: 5vw;
    width: 90vw;
    border-radius: 16px;
  }
  #chat-launcher-wrapper { bottom: 20px; right: 20px; }
  #chat-launcher-btn span { display: none; }
  #chat-launcher-btn { padding: 16px; border-radius: 50%; }

  .section-title { font-size: 1.9rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-title-accent { font-size: 2.4rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-btn, .hero-secondary-btn { text-align: center; justify-content: center; }
  .pricing-card-main { padding: 28px 24px; }
  #auth-modal {
    align-items: flex-start;
    padding-top: 60px;
  }
  .auth-box { padding: 32px 24px; }
}

/* ── Agent Management ─────────────────────────────────────── */
.agents-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.btn-create-agent {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.2s;
}
.btn-create-agent:hover { opacity: 0.85; }

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.agent-card {
  background: #0d1f1f;
  border: 1px solid #1e3535;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}
.agent-card:hover { border-color: #2e5555; }
.agent-card.is-default {
  border-color: #2a4a3a;
  background: #0b1e17;
}

.agent-card-create {
  border: 1.5px dashed #2a4a4a;
  background: transparent;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  min-height: 160px;
}
.agent-card-create:hover { border-color: var(--primary); background: rgba(13,148,136,0.04); }
.agent-card-create-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.agent-card-create-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(13,148,136,0.1);
  border: 1px solid rgba(13,148,136,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 16px; transition: background 0.2s;
}
.agent-card-create:hover .agent-card-create-icon { background: rgba(13,148,136,0.2); }
.agent-card-create-label { font-size: 14px; font-weight: 600; color: #e2e8f0; }
.agent-card-create-sub { font-size: 12px; color: #64748b; line-height: 1.5; }

.agent-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.agent-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
}

.agent-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  background: #1a3a2a;
  color: #4ade80;
  border: 1px solid #2a5a3a;
}
.agent-card-badge-custom {
  background: #1a2a3a;
  color: #60a5fa;
  border-color: #2a3a5a;
}
.btn-agent-delete:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.agent-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agent-card-meta-row {
  font-size: 12px;
  color: #8892a4;
  display: flex;
  gap: 6px;
}
.agent-card-meta-row span {
  color: #b0bec5;
}

.agent-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.btn-agent-configure,
.btn-agent-open,
.btn-agent-delete {
  flex: 1;
  border: none;
  border-radius: 7px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: opacity 0.2s;
}
.btn-agent-configure {
  background: #1e3535;
  color: #a0c4c4;
  border: 1px solid #2e4545;
}
.btn-agent-configure:hover { opacity: 0.8; }
.btn-agent-open {
  background: linear-gradient(135deg, #00c6ff22, #0072ff33);
  color: #7dd3fc;
  border: 1px solid #1e4060;
}
.btn-agent-open:hover { opacity: 0.8; }
.btn-agent-delete {
  flex: 0 0 36px;
  background: #1e1010;
  color: #f87171;
  border: 1px solid #3e1e1e;
}
.btn-agent-delete:hover { opacity: 0.8; }

/* ── Agent Modal ──────────────────────────────────────────── */
.agent-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.agent-modal-overlay.hidden { display: none; }

.agent-modal {
  background: #0d1f1f;
  border: 1px solid #1e3535;
  border-radius: 14px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.agent-modal::-webkit-scrollbar {
  width: 6px;
}
.agent-modal::-webkit-scrollbar-track {
  background: transparent;
  margin: 14px;
}
.agent-modal::-webkit-scrollbar-thumb {
  background: #2e4545;
  border-radius: 3px;
}

.agent-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #1e3535;
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
}
.agent-modal-close {
  background: none;
  border: none;
  color: #8892a4;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}
.agent-modal-close:hover { color: #e2e8f0; }

.agent-modal-body {
  padding: 20px 22px;
  flex: 1;
}
.agent-modal-body .dash-label {
  color: #e2e8f0;
}
.agent-modal-body .dash-section-label {
  color: #a0c4c4;
}
.agent-modal-body .dash-radio span {
  color: #e2e8f0;
}
.agent-modal-body .dash-radio {
  background: #1a2e2e;
  border-color: #2e4545;
  color: #e2e8f0;
}
.agent-modal-body .dash-radio:has(input:checked) {
  background: rgba(0,198,255,0.12);
  border-color: #00c6ff;
  color: #00c6ff;
}

.field-note {
  font-size: 11px;
  color: #6b7280;
  font-weight: 400;
}

.agent-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 22px 18px;
  border-top: 1px solid #1e3535;
}
.btn-modal-cancel {
  background: #1e2e2e;
  border: 1px solid #2e4545;
  color: #8892a4;
  border-radius: 7px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-modal-cancel:hover { color: #e2e8f0; }
.btn-modal-save {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border: none;
  color: #fff;
  border-radius: 7px;
  padding: 9px 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-modal-save:hover { opacity: 0.85; }

/* ── Buy Now chip ─────────────────────────────────────────── */
.dash-user-bar-right {
  margin-left: auto;
}
.btn-buy-now {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-buy-now:hover { opacity: 0.88; }

.btn-buy-now-card {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 7px;
}

/* ── Expiry warning bar ───────────────────────────────────── */
.dash-expiry-warning {
  background: #431407;
  border: 1px solid #7c2d12;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fed7aa;
}
.dash-expiry-warning i { color: #fb923c; flex-shrink: 0; }

/* ── Modal label colours ──────────────────────────────────── */
.agent-modal-body .dash-label { color: #e2e8f0; }
.agent-modal-body .dash-section-label { color: #a0c4c4; }
.agent-modal-body .dash-form-grid { grid-template-columns: 1fr; }
.agent-modal-body .dash-radio span { color: #e2e8f0; }

/* ── Empty state ──────────────────────────────────────────── */
.agents-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 20px;
  border: 1.5px dashed #1e3535;
  border-radius: 12px;
  color: #4a6a6a;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}
.agents-empty-state i { font-size: 28px; color: #2e5555; }

/* ── Buy Now success modal ────────────────────────────────── */
.buy-now-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.buy-now-overlay.hidden { display: none; }
.buy-now-modal {
  background: #0d1f1f;
  border: 1px solid #1e3535;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.buy-now-icon { font-size: 48px; color: #4ade80; }
.buy-now-modal h3 { font-size: 20px; font-weight: 700; color: #e2e8f0; }
.buy-now-modal p { font-size: 14px; color: #8892a4; line-height: 1.6; }
.btn-buy-now-close {
  margin-top: 8px;
  background: #1e3535;
  border: 1px solid #2e4545;
  color: #a0c4c4;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-buy-now-close:hover { color: #e2e8f0; }

/* ── Mobile — full interaction support ────────────────────── */
@media (max-width: 768px) {
.dash-user-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: hidden;
  }
  .dash-user-bar-name { flex: 1; text-align: left; }
  .dash-user-bar-mobile { margin-left: auto; text-align: right; }
  .dash-user-value,
  .dash-user-passphrase {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .dash-user-bar-right {
    width: auto;
    margin-left: 0;
    flex-shrink: 0;
  }
  .btn-buy-now {
    width: auto;
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 6px;
  }

  .dash-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dash-title { font-size: 18px; }

  .dash-tabs { gap: 0; }
  .dash-tab { padding: 10px 14px; font-size: 12px; flex: 1; justify-content: center; }

  .agents-grid { grid-template-columns: 1fr; }
  .agents-toolbar { justify-content: stretch !important; }
  .btn-create-agent { width: 100%; justify-content: center; }

  .agent-card-actions { flex-wrap: nowrap; }
  .btn-agent-configure, .btn-agent-open { font-size: 11px; padding: 9px 4px; }
  .btn-agent-delete { flex: 0 0 40px; }

  .agent-modal-overlay { align-items: flex-end; padding: 0; }
  .agent-modal {
    border-radius: 14px;
    max-height: 92vh;
    width: 100%;
  }
  .agent-modal-header { padding: 16px 18px 12px; }
  .agent-modal-body { padding: 16px 18px; }
  .agent-modal-footer { padding: 12px 18px 24px; }

  .dash-form-grid { grid-template-columns: 1fr; }
  .dash-input { font-size: 16px; } /* prevents iOS zoom on focus */
  .dash-textarea { min-height: 90px; }

  .dash-radio-group { flex-wrap: wrap; gap: 8px; }
  .dash-radio { flex: 1 1 calc(50% - 4px); min-width: 80px; }

  .agent-modal-footer { flex-direction: column-reverse; }
  .btn-modal-save, .btn-modal-cancel { width: 100%; justify-content: center; padding: 13px; font-size: 14px; }

  .buy-now-modal { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .dash-inner { padding: 16px 12px 80px; }
  .dash-user-item { min-width: 40%; }
  .agent-card { padding: 14px; }
  .agent-card-name { font-size: 14px; }
}

/* ── Lead Capture Modal ───────────────────────────────────── */
.lead-capture-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lead-capture-overlay.hidden { display: none; }
.lead-capture-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px 32px;
  max-width: 400px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.lead-capture-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
}
.lead-capture-close:hover { color: var(--text-main); }
.lead-capture-icon {
  font-size: 36px;
  color: var(--primary);
}
.lead-capture-modal h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}
.lead-capture-modal p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.lead-capture-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .lead-capture-modal { padding: 36px 20px 28px; }
}

/* =========================================================
   PRODUCT SECTION
   ========================================================= */

/* Block title — section within the product page */
.product-block-title {
  font-family: 'Lora', serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 72px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.product-block-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 620px;
}

/* ── CAPABILITIES GRID ── */
.product-caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.product-cap-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-cap-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-cap-icon {
  width: 42px; height: 42px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 16px;
}
.product-cap-card h4 {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.product-cap-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── LIVE EXAMPLES ── */
.product-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.product-example-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.product-example-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pChat-bubble, .phat-cont {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 88%;
}
.pChat-user, .pChat-bubble.pChat-user {
  background: var(--primary);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  align-self: flex-end;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 88%;
}
.pChat-bot, .pChat-bubble.pChat-bot {
  background: var(--bg-off);
  color: var(--text-main);
  border-radius: 14px 14px 14px 4px;
  border: 1px solid var(--border);
  align-self: flex-start;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 88%;
}
/* Also handle the original class names used in first card */
.pChat-bubble.pChat-user { background: var(--primary); color: #fff; border-radius: 14px 14px 4px 14px; align-self: flex-end; }
.pChat-bubble.pChat-bot { background: var(--bg-off); color: var(--text-main); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; align-self: flex-start; }
.phat-highlight { font-weight: 700; color: var(--primary-dark); }

/* ── CUSTOMISATIONS ── */
.product-custom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.product-custom-group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.product-custom-group-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-custom-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-custom-list li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.product-custom-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 11px;
  top: 1px;
}

/* ── USAGE BILLING ── */
.product-billing-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}
.product-billing-free {
  background: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: #fff;
}
.product-billing-free-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.product-billing-free-title {
  font-size: 15px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 24px;
}
.product-billing-free-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.product-billing-free-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.product-billing-free-num {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}
.product-billing-free-label {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}
.product-billing-overage {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.product-billing-overage-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
}
.product-billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.product-billing-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 12px 12px 0;
  border-bottom: 1px solid var(--border);
}
.product-billing-table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: top;
}
.product-billing-table tbody tr:last-child td { border-bottom: none; }
.product-billing-table td:nth-child(2) {
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}
.product-billing-table td:nth-child(3) {
  color: var(--text-muted);
  font-size: 12.5px;
}
.product-billing-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  gap: 8px;
}
.product-billing-note i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

/* =============================================
   LEADS TAB — FULL REDESIGN
   ============================================= */

/* Tab badge */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 20px;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: middle;
  animation: badgePop 0.3s ease;
}
.tab-badge.hidden { display: none; }
@keyframes badgePop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* Inner nav */
.leads-inner-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1e3535;
}

.leads-inner-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.leads-inner-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.leads-inner-tab:hover {
  background: #0d1f1f;
  color: #94a3b8;
  border-color: #1e3535;
}
.leads-inner-tab.active {
  background: #0d2a2a;
  color: #e2e8f0;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary)22;
}
.leads-inner-tab.analytics-tab.active {
  background: #1a1a3a;
  border-color: #a78bfa;
  color: #a78bfa;
}

.leads-inner-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: #1e3535;
  color: #64748b;
  min-width: 20px;
  text-align: center;
}
.leads-inner-tab.active .leads-inner-badge {
  background: var(--primary);
  color: #fff;
}
.leads-inner-badge.visit    { background: #1a3a2a; color: #34d399; }
.leads-inner-badge.callback { background: #1a2a3a; color: #60a5fa; }

/* Date filter */
.leads-date-filter { display: flex; align-items: center; }
.leads-date-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0a1818;
  border: 1px solid #1e3535;
  border-radius: 12px;
  padding: 7px 14px;
  transition: border-color 0.2s;
}
.leads-date-wrap:focus-within { border-color: var(--primary); }
.leads-date-icon { color: var(--primary); font-size: 13px; }
.leads-date-input {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  width: 115px;
}
.leads-date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.4) sepia(1) saturate(2) hue-rotate(130deg);
  cursor: pointer;
}
.leads-date-sep { color: #1e3535; font-size: 14px; font-weight: 300; }
.leads-date-clear {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-size: 11px;
  padding: 0;
  display: flex;
  align-items: center;
}
.leads-date-clear.hidden { display: none; }

/* Panels */
.leads-panel { }
.leads-panel.hidden { display: none; }

/* Lead cards */
.leads-loading, .leads-empty {
  text-align: center;
  padding: 60px 24px;
  color: #64748b;
  font-size: 14px;
}
.leads-loading i, .leads-empty i {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
  color: #1e3535;
}

.lead-card {
  display: flex;
  align-items: stretch;
  background: #080f0f;
  border: 1px solid #1a2e2e;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.lead-card:hover {
  border-color: #2e5555;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.lead-card-accent {
  width: 4px;
  flex-shrink: 0;
  border-radius: 14px 0 0 14px;
}
.lead-card-accent.visit    { background: linear-gradient(180deg, #34d399, #10b981); }
.lead-card-accent.callback { background: linear-gradient(180deg, #60a5fa, #3b82f6); }

.lead-card-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lead-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lead-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 16px 14px 8px;
  flex-shrink: 0;
}
.lead-card-cta {
  color: #1e3535;
  font-size: 12px;
  transition: color 0.2s;
}
.lead-card:hover .lead-card-cta { color: var(--primary); }

.lead-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.lead-type-badge.visit    { background: #0b2018; color: #34d399; border: 1px solid #1a4030; }
.lead-type-badge.callback { background: #0b1828; color: #60a5fa; border: 1px solid #1a3050; }

.lead-pipeline-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pipe-new         { background: #0f1e2e; color: #60a5fa; border: 1px solid #1e3555; }
.pipe-contacted   { background: #1e1a0a; color: #fbbf24; border: 1px solid #3a3010; }
.pipe-visit-done  { background: #100f2e; color: #a78bfa; border: 1px solid #2020508; }
.pipe-negotiation { background: #1e0f1e; color: #f472b6; border: 1px solid #3a1a3a; }
.pipe-won         { background: #0b2018; color: #34d399; border: 1px solid #1a4030; }
.pipe-lost        { background: #1e0f0f; color: #f87171; border: 1px solid #3a1a1a; }

.lead-phone {
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
}
.lead-phone:hover { color: #34d399; }
.lead-phone i { color: #4a6a6a; font-size: 11px; }

.lead-property, .lead-booking-time, .lead-notes-preview {
  font-size: 12px;
  color: #4a6a7a;
  display: flex;
  align-items: center;
  gap: 7px;
}
.lead-property i, .lead-booking-time i, .lead-notes-preview i { width: 12px; text-align: center; }
.lead-notes-preview { font-style: italic; color: #3a5565; }

.lead-created-at {
  font-size: 11px;
  color: #2e4a4a;
  white-space: nowrap;
  margin-bottom: 4px;
}

/* Analytics grid */
.leads-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.analytics-chart-card {
  background: #080f0f;
  border: 1px solid #1a2e2e;
  border-radius: 14px;
  padding: 18px;
}
.analytics-chart-card.span-2 { grid-column: span 2; }
.analytics-chart-title {
  font-size: 11px;
  font-weight: 700;
  color: #4a6a7a;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.analytics-chart-title i { color: var(--primary); }

.funnel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.funnel-label { font-size: 11px; color: #64748b; width: 76px; flex-shrink: 0; }
.funnel-bar-wrap { flex: 1; }
.funnel-bar {
  font-size: 10px;
  font-weight: 700;
  color: #050e0e;
  padding: 4px 8px;
  border-radius: 5px;
  min-width: 24px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.funnel-pct { font-size: 10px; color: #2e4a4a; width: 30px; text-align: right; }

.dropoff-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.dropoff-stat {
  background: #0d1a1a;
  border: 1px solid #1a2e2e;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.dropoff-number { font-size: 28px; font-weight: 800; font-family: 'Lora', serif; line-height: 1; margin-bottom: 4px; }
.dropoff-label  { font-size: 10px; color: #4a6a7a; text-transform: uppercase; letter-spacing: 0.06em; }
.dropoff-note   { font-size: 11px; color: #2e4a4a; display: flex; align-items: flex-start; gap: 6px; line-height: 1.5; }
.dropoff-note i { color: #1e3535; margin-top: 2px; flex-shrink: 0; }

/* Lead modal */
.lead-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lead-modal-overlay.hidden { display: none; }
.lead-modal {
  background: #080f0f;
  border: 1px solid #2e5555;
  border-radius: 18px;
  width: 100%;
  max-width: 460px;
  margin: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.lead-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #1a2e2e;
  font-weight: 700;
  font-size: 14px;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}
.lead-modal-header button {
  background: #0d1f1f;
  border: 1px solid #1a2e2e;
  color: #4a6a6a;
  cursor: pointer;
  font-size: 13px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.lead-modal-header button:hover { color: #e2e8f0; border-color: #2e5555; }
.lead-modal-body { padding: 22px; }
.lead-modal-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.lead-modal-label {
  font-size: 11px;
  color: #2e4a4a;
  width: 88px;
  flex-shrink: 0;
  padding-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.lead-modal-value { font-size: 13px; color: #94a3b8; text-decoration: none; }
.lead-call-link { color: #34d399; font-weight: 600; }
.lead-call-link:hover { text-decoration: underline; }
.lead-modal-select {
  background: #0d1a1a;
  border: 1px solid #1a2e2e;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 13px;
  padding: 8px 12px;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
}
.lead-modal-select:focus { outline: none; border-color: var(--primary); }
.lead-modal-notes-row { align-items: flex-start; }
.lead-modal-textarea {
  background: #0d1a1a;
  border: 1px solid #1a2e2e;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 13px;
  padding: 10px 12px;
  width: 100%;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s;
  line-height: 1.6;
}
.lead-modal-textarea:focus { outline: none; border-color: var(--primary); }
.lead-modal-save-btn {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
  letter-spacing: 0.02em;
}
.lead-modal-save-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.lead-modal-save-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

@media (max-width: 900px) {
  .leads-analytics-grid { grid-template-columns: 1fr; }
  .analytics-chart-card.span-2 { grid-column: span 1; }
}
@media (max-width: 600px) {
  .lead-card { flex-direction: column; }
  .lead-card-accent { width: 100%; height: 4px; border-radius: 14px 14px 0 0; }
  .lead-card-meta { flex-direction: row; padding: 0 16px 14px; }
  .leads-inner-nav { flex-direction: column; align-items: flex-start; }
  .leads-date-wrap { flex-wrap: wrap; }
}

/* Search query bars */
.search-query-list { display: flex; flex-direction: column; gap: 8px; }
.search-query-row  { display: flex; align-items: center; gap: 10px; }
.search-query-label { font-size: 11px; color: #8892a4; width: 90px; flex-shrink: 0; }
.search-query-bar-wrap { flex: 1; background: #0d1a1a; border-radius: 4px; height: 6px; }
.search-query-bar { height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), #0ea5e9); transition: width 0.5s ease; }
.search-query-count { font-size: 11px; color: #4a6a7a; width: 20px; text-align: right; }

/* Drop-off progress */
.dropoff-progress-wrap { background: #0d1a1a; border-radius: 8px; height: 8px; margin-top: 12px; overflow: hidden; }
.dropoff-progress-bar  { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #34d399, #0ea5e9); transition: width 0.6s ease; }