@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #7C3AED;
  --gold-light:  #8B5CF6;
  --gold-dark:   #6D28D9;
  --gold-glow:   rgba(124, 58, 237, 0.15);
  --accent:      #7C3AED;
  --accent-light:#8B5CF6;
  --accent-glow: rgba(124,58,237,0.18);
  --bg-deep:     #0D0D1A;
  --bg-sidebar:  #111127;
  --bg-main:     #13132A;
  --bg-card:     #1A1A35;
  --bg-card2:    #1F1F3A;
  --bg-input:    #14142A;
  --border:      #2A2A4A;
  --border-gold: rgba(124, 58, 237, 0.3);
  --text-pri:    #E8E8F0;
  --text-sec:    #8888aa;
  --text-mute:   #555578;
  --green:       #2ECC71;
  --teal:        #0D9488;
  --red:         #E74C3C;
  --coral:       #E11D48;
  --blue:        #2563EB;
  --cyan:        #06B6D4;
  --orange:      #F67E22;
  --purple:      #7C3AED;
  --sidebar-w:   220px;
  --sidebar-w-collapsed: 64px;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
}

html[data-theme="light"] {
  --bg-deep:     #F0F2FF;
  --bg-sidebar:  #FFFFFF;
  --bg-main:     #F5F7FF;
  --bg-card:     #FFFFFF;
  --bg-card2:    #F8F9FF;
  --bg-input:    #FFFFFF;
  --text-pri:    #1A1A2E;
  --text-sec:    #555570;
  --text-mute:   #777795;
  --border:      #E0E0F0;
  --shadow:      0 4px 24px rgba(80,80,120,0.12);
}

html, body { height: 100%; }

html { overflow-x: hidden; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-pri);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-sidebar); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 3px; transition: background 0.2s; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.6); }

/* ===== SIDEBAR ===== */
#sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  transition: width 0.25s ease, transform 0.25s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#sidebar.collapsed {
  width: var(--sidebar-w-collapsed);
}
#sidebar.collapsed .logo-text,
#sidebar.collapsed .logo-sub,
#sidebar.collapsed .nav-item span:not(.nav-icon),
#sidebar.collapsed .nav-label,
#sidebar.collapsed .sidebar-footer {
  display: none;
}
#sidebar.collapsed .nav-item { justify-content: center; padding: 0.7rem; border-left: none; }
#sidebar.collapsed .sidebar-logo { justify-content: center; }
#sidebar.collapsed ~ #main {
  margin-left: var(--sidebar-w-collapsed);
  width: calc(100vw - var(--sidebar-w-collapsed));
  max-width: calc(100vw - var(--sidebar-w-collapsed));
}

.sidebar-logo {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(124,58,237,0.35);
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pri);
  letter-spacing: 0.3px;
  display: block;
}

.logo-sub {
  display: inline-block;
  font-size: 0.55rem;
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-logo-img {
  height: 48px !important;
  width: auto !important;
  object-fit: contain !important;
  max-width: 180px !important;
  background: transparent;
  display: block;
}
#sidebar.collapsed .sidebar-logo-img {
  height: 28px;
  max-width: 32px;
  object-position: left center;
}

.sidebar-nav {
  padding: 0.75rem 0;
  flex: 1 0 auto;
}

.sidebar-upgrade { flex-shrink: 0; }

.nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-mute);
  padding: 0.75rem 1.25rem 0.35rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  color: var(--text-sec);
  border-left: 3px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  user-select: none;
}

.nav-item:hover {
  color: var(--text-pri);
  background: rgba(124,58,237,0.08);
  border-left-color: rgba(124,58,237,0.5);
  padding-left: 1.4rem;
}

.nav-item.active {
  color: #fff;
  background: #7C3AED;
  border-left-color: transparent;
  border-radius: 0 8px 8px 0;
  margin-right: 12px;
  box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}

html[data-theme="light"] .nav-item.active {
  color: #6D28D9;
  background: #EDE9FE;
  box-shadow: 0 4px 15px rgba(124,58,237,0.14);
}

.nav-icon { font-size: 0.85rem; width: 20px; text-align: center; flex-shrink: 0; }

.nav-icon-wrap {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.nav-icon-wrap.purple  { background: rgba(124,58,237,0.18); }
.nav-icon-wrap.cyan    { background: rgba(6,182,212,0.18); }
.nav-icon-wrap.blue    { background: rgba(37,99,235,0.18); }
.nav-icon-wrap.orange  { background: rgba(246,126,34,0.18); }
.nav-icon-wrap.pink    { background: rgba(236,72,153,0.18); }
.nav-icon-wrap.green   { background: rgba(16,185,129,0.18); }
.nav-icon-wrap.teal    { background: rgba(13,148,136,0.18); }
.nav-icon-wrap.indigo  { background: rgba(99,102,241,0.18); }
.nav-icon-wrap.coral   { background: rgba(225,29,72,0.18); }
.nav-icon-wrap.gray    { background: rgba(136,136,170,0.12); }

.nav-badge-new {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 0.4rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

.sidebar-upgrade {
  margin: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(124,58,237,0.08));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 12px;
  text-align: left;
}
.upgrade-icon { font-size: 1.3rem; margin-bottom: 0.4rem; }
.upgrade-title { font-size: 0.85rem; font-weight: 700; color: var(--text-pri); margin-bottom: 0.25rem; }
.upgrade-desc { font-size: 0.72rem; color: var(--text-sec); line-height: 1.4; margin-bottom: 0.65rem; }
.upgrade-btn {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.upgrade-btn:hover {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

/* ===== HAMBURGER (mobile) ===== */
#hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-pri);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 0.5rem;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 90;
}
.sidebar-backdrop.show { display: block; }

/* ===== MAIN CONTENT ===== */
#main {
  margin-left: var(--sidebar-w);
  /* Fixed sidebar is out of flex flow, so flex:1 would give 100vw then
     margin-left pushes content 220px past the viewport. Use explicit width
     instead so the right edge stays inside the viewport. */
  width: calc(100vw - var(--sidebar-w));
  max-width: calc(100vw - var(--sidebar-w));
  min-width: 0;
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-main);
  transition: margin-left 0.25s ease, width 0.25s ease, max-width 0.25s ease;
  box-sizing: border-box;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.topbar-left { display: flex; align-items: center; min-width: 0; flex-shrink: 1; }

.page-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-pri);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

#server-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-sec);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-mute);
}
.status-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.offline { background: var(--red); }

/* ===== PAGES ===== */
.page {
  display: none;
  padding: 1.75rem;
  flex: 1;
}
.page.active { display: block; animation: pageFadeIn 0.35s ease; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: rgba(124,58,237,0.2);
}

.card-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-mute);
  margin-bottom: 0.5rem;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

.stat-card.sc-purple { background: linear-gradient(135deg, #2D1B69 0%, #1A1040 100%); border-color: rgba(124,58,237,0.25); }
.stat-card.sc-teal   { background: linear-gradient(135deg, #0F3D3E 0%, #0D1F2D 100%); border-color: rgba(13,148,136,0.25); }
.stat-card.sc-coral  { background: linear-gradient(135deg, #4A1525 0%, #2D0F1A 100%); border-color: rgba(225,29,72,0.25); }
.stat-card.sc-blue   { background: linear-gradient(135deg, #1A2A5E 0%, #0F1935 100%); border-color: rgba(37,99,235,0.25); }

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-icon-box {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.stat-icon-box.purple { background: rgba(124,58,237,0.25); }
.stat-icon-box.teal   { background: rgba(13,148,136,0.25); }
.stat-icon-box.coral  { background: rgba(225,29,72,0.25); }
.stat-icon-box.blue   { background: rgba(37,99,235,0.25); }

.stat-menu {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s;
  letter-spacing: 2px;
}
.stat-menu:hover { color: rgba(255,255,255,0.8); }

.stat-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  margin-top: 0.5rem;
  color: var(--green);
  font-weight: 600;
}
.stat-trend.neutral { color: rgba(255,255,255,0.4); }
.stat-trend.down { color: var(--red); }
.trend-sub { font-weight: 400; color: rgba(255,255,255,0.35); margin-left: 0.15rem; }

/* Wave animation */
.stat-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%; height: 30px;
  pointer-events: none;
}
.wave-path { opacity: 0.15; }
.sc-purple .wave-path { fill: #7C3AED; animation: waveFloat 4s ease-in-out infinite; }
.sc-teal .wave-path   { fill: #0D9488; animation: waveFloat 5s ease-in-out infinite; }
.sc-coral .wave-path  { fill: #E11D48; animation: waveFloat 4.5s ease-in-out infinite; }
.sc-blue .wave-path   { fill: #2563EB; animation: waveFloat 5.5s ease-in-out infinite; }

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

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-pri);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 7px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  min-height: 36px;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #111;
}
.btn-gold:hover:not(:disabled) { background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 4px 16px rgba(124,58,237,0.35); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-sec);
}
.btn-outline:hover:not(:disabled) { border-color: var(--gold-dark); color: var(--gold); transform: translateY(-1px); }

.btn-danger {
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.3);
  color: var(--red);
}
.btn-danger:hover:not(:disabled) { background: rgba(231,76,60,0.25); }

.btn-blue {
  background: rgba(52,152,219,0.15);
  border: 1px solid rgba(52,152,219,0.3);
  color: var(--blue);
}
.btn-blue:hover:not(:disabled) { background: rgba(52,152,219,0.25); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; min-height: 28px; }
.btn-lg { padding: 0.8rem 2rem; font-size: 0.95rem; min-height: 44px; }
.btn-full { width: 100%; }

.btn .btn-spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

/* ===== TABLES ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

thead th {
  background: var(--bg-card2);
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, transform 0.2s ease;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(124,58,237,0.06); }

td {
  padding: 0.75rem 1rem;
  color: var(--text-pri);
  vertical-align: middle;
}

/* ===== LEAD TABLE CELLS ===== */
.lead-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.lead-avatar {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.lead-info { min-width: 0; }
.lead-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-pri);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.lead-sub {
  font-size: 0.72rem;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.phone-cell {
  font-size: 0.83rem;
  white-space: nowrap;
}
.rating-cell {
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
}
.source-badge {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-new            { background: rgba(52,152,219,0.18); color: #6dc0e8; }
.badge-called         { background: rgba(155,89,182,0.18); color: #c07ee8; }
.badge-interested     { background: rgba(46,204,113,0.18); color: #5de89a; }
.badge-not_interested { background: rgba(231,76,60,0.18); color: #f08080; }
.badge-active         { background: rgba(46,204,113,0.18); color: #5de89a; }
.badge-paused         { background: rgba(136,136,170,0.18); color: #8888aa; }
.badge-pending        { background: rgba(52,152,219,0.18); color: #6dc0e8; }
.badge-completed      { background: rgba(46,204,113,0.18); color: #5de89a; }
.badge-failed         { background: rgba(231,76,60,0.18); color: #f08080; }
.badge-no_answer      { background: rgba(246,126,34,0.18); color: #f0a05a; }
.badge-google_maps    { background: rgba(212,175,55,0.18); color: var(--gold); }
.badge-justdial       { background: rgba(231,76,60,0.18); color: #f08080; }
.badge-sulekha        { background: rgba(155,89,182,0.18); color: #c07ee8; }
.badge-excel          { background: rgba(46,204,113,0.18); color: #5de89a; }
.badge-website        { background: rgba(155,89,182,0.18); color: #c07ee8; }
.badge-webhook        { background: rgba(52,152,219,0.18); color: #6dc0e8; }
.badge-manual         { background: rgba(136,136,170,0.18); color: #8888aa; }
.badge-queued         { background: rgba(246,126,34,0.18); color: #f0a05a; }
.badge-coming-soon    { background: rgba(212,175,55,0.15); color: var(--gold); border: 1px solid var(--border-gold); font-size: 0.65rem; }

/* email status badges */
.badge-not-sent       { background: rgba(136,136,170,0.18); color: #8888aa; }
.badge-sent           { background: rgba(52,152,219,0.18); color: #6dc0e8; }
.badge-opened         { background: rgba(46,204,113,0.18); color: #5de89a; }
.badge-replied        { background: rgba(212,175,55,0.18); color: var(--gold); }
.badge-bounced        { background: rgba(231,76,60,0.18); color: #f08080; }

/* campaign status */
.badge-draft          { background: rgba(136,136,170,0.18); color: #8888aa; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.8rem; color: var(--text-sec); margin-bottom: 0.4rem; font-weight: 500; }
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.65rem 0.9rem;
  color: var(--text-pri);
  font-size: 0.88rem;
  transition: border-color 0.18s;
  outline: none;
}
.form-control:focus { border-color: var(--gold-dark); }
.form-control::placeholder { color: var(--text-mute); }

textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }

.form-hint { font-size: 0.72rem; color: var(--text-mute); margin-top: 0.25rem; }

.range-wrap { display: flex; align-items: center; gap: 0.75rem; }
input[type=range] {
  -webkit-appearance: none;
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}
.range-val {
  min-width: 38px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
}

/* ===== CHECKBOX ===== */
input[type=checkbox] {
  accent-color: var(--gold);
  width: 15px; height: 15px;
  cursor: pointer;
}

/* ===== TOGGLE ===== */
.toggle-wrap { display: flex; align-items: center; gap: 0.6rem; }
.toggle {
  position: relative;
  width: 44px; height: 24px;
  display: inline-block;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: var(--text-mute);
  border-radius: 50%;
  transition: all 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--gold-glow); border: 1px solid var(--gold-dark); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); background: var(--gold); }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.5rem 0.9rem;
  flex: 1;
  max-width: 280px;
}
.search-bar span { color: var(--text-mute); }
.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-pri);
  font-size: 0.85rem;
  width: 100%;
}
.search-bar input::placeholder { color: var(--text-mute); }

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text-sec);
  background: transparent;
  transition: all 0.15s;
}
.filter-tab:hover { border-color: var(--gold-dark); color: var(--gold); }
.filter-tab.active { background: var(--gold-glow); border-color: var(--gold-dark); color: var(--gold); }

/* ===== SOURCE TABS (Find Leads) ===== */
.source-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.source-tab {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text-sec);
  background: var(--bg-card2);
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.source-tab:hover { border-color: var(--gold-dark); color: var(--gold); }
.source-tab.active {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 2px 12px rgba(212,175,55,0.18);
}

/* ===== EMAIL SUB-TABS ===== */
.subtabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.subtab {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-sec);
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all 0.15s;
}
.subtab:hover { color: var(--gold); }
.subtab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ===== BULK ACTIONS ===== */
.bulk-bar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 7px;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--gold);
  flex-wrap: wrap;
}
.bulk-bar.visible { display: flex; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-sec);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.page-btns { display: flex; gap: 0.35rem; }
.page-btn {
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-sec);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--gold-dark); color: var(--gold); }
.page-btn.active { background: var(--gold-glow); border-color: var(--gold-dark); color: var(--gold); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== LOADING SPINNER ===== */
.spinner-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--text-sec);
  font-size: 0.88rem;
}
.spinner-wrap.show { display: flex; }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PROGRESS BAR ===== */
.progress-wrap { margin: 1rem 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-sec); margin-bottom: 0.35rem; }
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 4px;
  width: 0%;
  transition: width 0.6s ease;
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}
.progress-fill.is-sending {
  animation: shimmer 1.4s linear infinite, progressPulse 2s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}
.progress-status {
  font-size: 0.75rem;
  color: var(--text-mute);
  margin-top: 0.35rem;
  font-style: italic;
}
/* Animated "..." dots for sending state */
.dot-anim { display: inline; }
.dot-anim span { animation: dotFade 1.4s ease-in-out infinite; opacity: 0; }
.dot-anim span:nth-child(1) { animation-delay: 0s; }
.dot-anim span:nth-child(2) { animation-delay: 0.22s; }
.dot-anim span:nth-child(3) { animation-delay: 0.44s; }
@keyframes dotFade {
  0%, 60%, 100% { opacity: 0; }
  30%            { opacity: 1; }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-mute);
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.5; }
.empty-state p { font-size: 0.88rem; }

/* ===== CAMPAIGN CARDS ===== */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.campaign-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.18s;
}
.campaign-card:hover { border-color: var(--gold-dark); box-shadow: 0 0 20px var(--gold-glow); }
.campaign-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; }
.campaign-meta { display: flex; gap: 1rem; margin-top: 0.75rem; flex-wrap: wrap; }
.campaign-meta-item { font-size: 0.78rem; color: var(--text-sec); }
.campaign-meta-item span { display: block; font-size: 1rem; font-weight: 700; color: var(--text-pri); }

/* ===== INTEGRATION CARDS ===== */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.integration-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.integration-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.integration-icon {
  width: 40px; height: 40px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.integration-title { font-size: 0.95rem; font-weight: 700; }
.integration-desc { font-size: 0.78rem; color: var(--text-sec); margin-top: 0.15rem; }

/* ===== CODE BLOCK ===== */
.code-block {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--gold-light);
  white-space: pre-wrap;
  word-break: break-all;
  position: relative;
  margin: 0.75rem 0;
}

/* ===== DRAG DROP ===== */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  color: var(--text-sec);
  font-size: 0.88rem;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--gold-dark);
  background: var(--gold-glow);
  color: var(--gold);
}
.drop-zone .drop-icon { font-size: 2rem; margin-bottom: 0.5rem; opacity: 0.6; }

/* ===== WEBHOOK LOG ===== */
.webhook-log {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--text-sec);
  max-height: 140px;
  overflow-y: auto;
  margin-top: 0.75rem;
}
.webhook-hit { color: var(--green); }

/* ===== TOAST ===== */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-pri);
  box-shadow: var(--shadow);
  animation: slideIn 0.25s ease;
  min-width: 240px;
  max-width: 360px;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--blue); }
.toast.warning { border-left: 3px solid var(--orange); }

@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(110%); }
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 0.95rem; font-weight: 700; }
.modal-close { cursor: pointer; font-size: 1.2rem; background: none; border: none; color: var(--text-sec); }
.modal-close:hover { color: var(--gold); }
.modal-body { padding: 1.25rem; overflow-y: auto; }

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* ===== GRID HELPERS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ===== DIVIDER ===== */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* ===== LLM SELECTOR ===== */
.llm-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  background: var(--bg-input);
  transition: all 0.18s;
}
.llm-option:hover { border-color: var(--gold-dark); }
.llm-option input[type=radio] { accent-color: var(--gold); }
.llm-option.selected { border-color: var(--gold); background: var(--gold-glow); }
.llm-option .llm-name { font-weight: 600; color: var(--text-pri); font-size: 0.88rem; }
.llm-option .llm-cost { font-size: 0.75rem; color: var(--text-mute); margin-left: 0.5rem; }
.llm-option .llm-tag {
  margin-left: auto;
  font-size: 0.7rem;
  background: var(--gold-glow);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
}

/* ===== STATUS PILLS ===== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-card2);
  border: 1px solid var(--border);
}
.status-pill.connected { color: var(--green); border-color: rgba(46,204,113,0.3); }
.status-pill.disconnected { color: var(--text-mute); }
.status-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.connected .dot { box-shadow: 0 0 6px var(--green); }

/* ===== MY LEADS TABLE — force horizontal scroll ===== */
.leads-table-wrap {
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  position: relative;
  width: 100%;
}
.leads-table-wrap table {
  min-width: unset;
  width: 100%;
  table-layout: fixed;
}
.leads-table-wrap th:nth-child(1)  { width: 40px; }
.leads-table-wrap th:nth-child(2)  { width: 180px; min-width: 180px; }
.leads-table-wrap th:nth-child(3)  { width: 120px; min-width: 120px; }
.leads-table-wrap th:nth-child(4)  { width: 130px; min-width: 130px; }
.leads-table-wrap th:nth-child(5)  { width: 100px; min-width: 100px; }
.leads-table-wrap th:nth-child(6)  { width: 55px; }
.leads-table-wrap th:nth-child(7)  { width: 70px; }
.leads-table-wrap th:nth-child(8)  { width: 90px; }
.leads-table-wrap th:nth-child(9)  { width: 130px; }
.leads-table-wrap th:nth-child(10) { width: 160px; }
.leads-table-wrap th, .leads-table-wrap td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leads-table-wrap td.email-col {
  min-width: 220px;
}

/* Sticky Actions column — always visible on the right */
.leads-table-wrap thead th.actions-col,
.leads-table-wrap tbody td.actions-col {
  position: sticky;
  right: 0;
  background: var(--bg-card);
  z-index: 10;
  min-width: 180px;
  white-space: nowrap;
  box-shadow: -3px 0 8px rgba(0,0,0,0.18);
}
.leads-table-wrap thead th.actions-col {
  background: var(--bg-card2);
  z-index: 11;
}
html[data-theme="light"] .leads-table-wrap thead th.actions-col { background: #F8F9FF; }
html[data-theme="light"] .leads-table-wrap tbody td.actions-col { background: #FFFFFF; }
tbody tr:hover td.actions-col { background: rgba(124,58,237,0.06); }

/* ===== MOBILE CARD VIEW ===== */
.mobile-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.mobile-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}
.mobile-card-row .lbl { color: var(--text-mute); font-size: 0.75rem; }

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

@media (max-width: 768px) {
  #hamburger { display: inline-flex; align-items: center; justify-content: center; }
  #sidebar {
    transform: translateX(-100%);
  }
  #sidebar.show { transform: translateX(0); box-shadow: 8px 0 32px rgba(0,0,0,0.6); }
  #main { margin-left: 0 !important; width: 100% !important; max-width: 100vw !important; }
  .topbar { padding: 0.75rem 1rem; }
  .page { padding: 1rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-value { font-size: 1.5rem; }
  .stat-card { padding: 1rem; }

  .table-wrap.responsive { display: none; }
  .mobile-cards { display: block; }

  .btn { min-height: 40px; }
  .btn-sm { min-height: 32px; }
}

@media (min-width: 769px) {
  .mobile-cards { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .topbar-right #server-status span { display: none; }
  .topbar-search { display: none; }
  .topbar-ai-status { display: none; }
  .topbar-user-info { display: none; }
}

/* ===== NEW TOPBAR ELEMENTS ===== */
.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  min-width: 160px;
  max-width: 320px;
  flex: 1;
  margin: 0 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.topbar-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.topbar-search-icon { color: var(--text-mute); font-size: 0.85rem; flex-shrink: 0; }
.topbar-search input {
  background: none; border: none; outline: none;
  color: var(--text-pri); font-size: 0.85rem; width: 100%;
  font-family: inherit;
}
.topbar-search input::placeholder { color: var(--text-mute); }
.topbar-kbd {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.7rem;
  color: var(--text-mute);
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-sec);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.topbar-icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--gold-glow);
}
.theme-toggle-btn .theme-toggle-icon::before {
  content: "\263E";
}
html[data-theme="light"] .theme-toggle-btn .theme-toggle-icon::before {
  content: "\2600";
}
.topbar-icon-btn.plus-btn {
  background: var(--gold);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
}
.topbar-icon-btn.plus-btn:hover {
  background: var(--gold-light);
  box-shadow: 0 0 12px rgba(124,58,237,0.4);
}

.topbar-ai-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-sec);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

.heartbeat-svg {
  flex-shrink: 0;
  overflow: visible;
}
.heartbeat-line {
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: heartbeat-dash 2s ease-in-out infinite;
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}
@keyframes heartbeat-dash {
  0%   { stroke-dashoffset: 0; opacity: 1; }
  50%  { stroke-dashoffset: -30; opacity: 0.6; }
  100% { stroke-dashoffset: -60; opacity: 1; }
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 10px;
  transition: background 0.2s;
  margin-left: 0.25rem;
  flex-shrink: 0;
}
.topbar-user:hover { background: var(--bg-card); }

.topbar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #06B6D4);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.topbar-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  max-width: 120px;
}
.topbar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-pri);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-user-plan {
  font-size: 0.68rem;
  color: var(--text-mute);
}
.topbar-chevron {
  font-size: 0.7rem;
  color: var(--text-mute);
  margin-left: 0.15rem;
}

@media (max-width: 768px) {
  .topbar-search { display: none; }
  .topbar-ai-status span { display: none; }
  .topbar-user-info { display: none; }
  .topbar-chevron { display: none; }
}

/* ===== BOTTOM STATS BAR ===== */
.bottom-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.bstat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bstat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.bstat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.bstat-icon.purple { background: rgba(124,58,237,0.2); }
.bstat-icon.teal   { background: rgba(13,148,136,0.2); }
.bstat-icon.coral  { background: rgba(225,29,72,0.2); }
.bstat-icon.blue   { background: rgba(37,99,235,0.2); }
.bstat-icon.green  { background: rgba(16,185,129,0.2); }

.bstat-info { min-width: 0; flex: 1; }
.bstat-label {
  font-size: 0.7rem;
  color: var(--text-mute);
  margin-bottom: 0.2rem;
  white-space: nowrap;
}
.bstat-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.bstat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-pri);
}
.bstat-change {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
}
.bstat-change.up {
  color: var(--green);
  background: rgba(46,204,113,0.12);
}
.bstat-change.down {
  color: var(--red);
  background: rgba(231,76,60,0.12);
}
.bstat-change.excellent {
  color: var(--green);
  font-size: 0.68rem;
}
.bstat-spark {
  flex-shrink: 0;
  margin-left: auto;
}

@media (max-width: 1024px) {
  .bottom-stats-bar { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .bottom-stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   PHASE 7 — FINAL ANIMATIONS & POLISH
   ============================================================= */

/* ----- Page load: subtle body fade-in ----- */
@keyframes appFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: appFadeIn 0.45s ease-out both;
}

/* ----- Smooth scrollbar (firefox + webkit polish) ----- */
* { scrollbar-width: thin; scrollbar-color: rgba(124,58,237,0.35) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track {
  background: rgba(13,13,26,0.4);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124,58,237,0.4), rgba(109,40,217,0.4));
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.25s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(139,92,246,0.75), rgba(124,58,237,0.75));
  background-clip: padding-box;
  border: 2px solid transparent;
}
::-webkit-scrollbar-corner { background: transparent; }

html[data-theme="light"] ::-webkit-scrollbar-track {
  background: rgba(240,242,255,0.85);
}
html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124,58,237,0.28), rgba(109,40,217,0.28));
  background-clip: padding-box;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(124,58,237,0.5), rgba(109,40,217,0.5));
  background-clip: padding-box;
}

/* ----- Sidebar nav items: glowing left border on hover ----- */
.nav-item {
  transition:
    color 0.25s ease,
    background 0.3s ease,
    border-left-color 0.3s ease,
    padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}
.nav-item:hover {
  border-left-color: var(--gold);
  box-shadow:
    inset 4px 0 0 var(--gold),
    inset 6px 0 14px -4px rgba(124,58,237,0.55),
    0 0 0 1px rgba(124,58,237,0.05);
}
.nav-item:not(.active)::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 3px;
  height: 0;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--gold);
  pointer-events: none;
}
.nav-item:not(.active):hover::before {
  height: 70%;
}

/* ----- Stat cards: stronger lift + glow on hover ----- */
.stat-card {
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.4),
    0 0 24px rgba(124,58,237,0.18);
}
.stat-card.sc-purple:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 28px rgba(124,58,237,0.35); }
.stat-card.sc-teal:hover   { box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 28px rgba(13,148,136,0.35); }
.stat-card.sc-coral:hover  { box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 28px rgba(225,29,72,0.35); }
.stat-card.sc-blue:hover   { box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 28px rgba(37,99,235,0.35); }

/* ----- Wave charts: amplify + add a second drift layer ----- */
.stat-wave { animation: waveDrift 8s ease-in-out infinite; }
@keyframes waveDrift {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50%      { transform: translateX(4px) scaleY(1.08); }
}
.wave-path {
  transition: opacity 0.3s ease;
}
.stat-card:hover .wave-path { opacity: 0.32; }

/* ----- Heartbeat line: layered pulse + glow ----- */
.heartbeat-svg { filter: drop-shadow(0 0 3px rgba(46,204,113,0.45)); }
.heartbeat-line {
  stroke-dasharray: 60;
  animation:
    heartbeat-dash 2s ease-in-out infinite,
    heartbeat-pulse 1.4s ease-in-out infinite;
}
@keyframes heartbeat-pulse {
  0%, 100% { filter: drop-shadow(0 0 1px rgba(46,204,113,0.5)); }
  50%      { filter: drop-shadow(0 0 5px rgba(46,204,113,0.9)); }
}

/* ----- Table rows: smoother hover with subtle shift ----- */
tbody tr {
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
tbody tr:hover {
  background: linear-gradient(90deg, rgba(124,58,237,0.10), rgba(124,58,237,0.04));
  box-shadow: inset 3px 0 0 var(--gold);
}

/* ----- Buttons: scale + glow on hover ----- */
.btn {
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.2s ease;
  will-change: transform;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.03);
}
.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}
.btn-gold:hover:not(:disabled) {
  box-shadow:
    0 6px 22px rgba(124,58,237,0.55),
    0 0 0 1px rgba(139,92,246,0.4);
}
.btn-outline:hover:not(:disabled) {
  box-shadow: 0 0 16px rgba(124,58,237,0.25);
}
.btn-danger:hover:not(:disabled) {
  box-shadow: 0 0 16px rgba(231,76,60,0.35);
  transform: translateY(-1px) scale(1.03);
}
.btn-blue:hover:not(:disabled) {
  box-shadow: 0 0 16px rgba(37,99,235,0.35);
  transform: translateY(-1px) scale(1.03);
}

/* Topbar icon buttons share the scale-and-glow language */
.topbar-icon-btn { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.topbar-icon-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(124,58,237,0.4);
}

/* ----- Page transitions: slightly richer fade ----- */
.page.active {
  animation: pageFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cards staggered entrance inside a freshly active page */
.page.active .card,
.page.active .stat-card,
.page.active .bstat-card {
  animation: cardRise 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.page.active .stat-card:nth-child(1),
.page.active .bstat-card:nth-child(1) { animation-delay: 0.04s; }
.page.active .stat-card:nth-child(2),
.page.active .bstat-card:nth-child(2) { animation-delay: 0.08s; }
.page.active .stat-card:nth-child(3),
.page.active .bstat-card:nth-child(3) { animation-delay: 0.12s; }
.page.active .stat-card:nth-child(4),
.page.active .bstat-card:nth-child(4) { animation-delay: 0.16s; }
.page.active .stat-card:nth-child(5),
.page.active .bstat-card:nth-child(5) { animation-delay: 0.20s; }
@keyframes cardRise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== AUTH OVERLAY ===== */
#auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0D0D1A 0%, #111127 50%, #0D0D1A 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  background: #1A1A35;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,58,237,0.1);
  margin: 1rem;
}

.auth-logo-img {
  height: 48px;
  max-width: 200px;
  object-fit: contain;
  background: transparent;
  display: block;
  margin: 0 auto 0.5rem;
}

.auth-sub {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.auth-switch {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-sec);
  margin-top: 1.25rem;
}

.auth-switch a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

/* ===== PLAN BADGE (topbar) ===== */
.plan-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.plan-badge.free    { background: rgba(136,136,170,0.2); color: var(--text-mute); }
.plan-badge.starter { background: rgba(37,99,235,0.2);   color: #60A5FA; }
.plan-badge.pro     { background: linear-gradient(135deg,rgba(245,158,11,0.3),rgba(251,191,36,0.2)); color: #FBBF24; border: 1px solid rgba(245,158,11,0.4); }
.plan-badge.agency  { background: linear-gradient(135deg,rgba(124,58,237,0.4),rgba(109,40,217,0.3)); color: #A78BFA; border: 1px solid rgba(124,58,237,0.4); }

/* ===== PRO LOCK OVERLAY ===== */
.feature-lock-wrap {
  position: relative;
}
.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,13,26,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 10;
}
.lock-overlay .lock-icon { font-size: 2rem; }
.lock-overlay .lock-title { font-size: 0.95rem; font-weight: 700; color: var(--text-pri); }
.lock-overlay .lock-sub   { font-size: 0.78rem; color: var(--text-sec); }

/* ===== PRICING PAGE ===== */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.pricing-toggle-label { font-size: 0.9rem; font-weight: 600; color: var(--text-sec); }
.pricing-toggle-label.active { color: var(--text-pri); }
.save-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 0.4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.pricing-card.popular {
  border: 2px solid #F59E0B;
  box-shadow: 0 0 30px rgba(245,158,11,0.2), 0 8px 30px rgba(0,0,0,0.4);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: #1A1A35;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 0.25rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-pri);
  line-height: 1;
  margin: 0.75rem 0 0.25rem;
}
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-sec); }

.pricing-save {
  font-size: 0.75rem;
  color: #10B981;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.pricing-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--text-sec);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .fi-check { color: #10B981; flex-shrink: 0; }
.pricing-features li .fi-x     { color: var(--text-mute); flex-shrink: 0; }
.pricing-features li .fi-key   { font-size: 0.75rem; }
.fi-label { font-weight: 600; color: var(--text-pri); margin-right: 0.25rem; }

.pricing-btn {
  display: block;
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 10px;
  background: var(--border);
  color: var(--text-pri);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.pricing-btn.gold {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: #1A1A35;
}
.pricing-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.mini-plans-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.mini-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .mini-plans-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mini-plans-grid { grid-template-columns: 1fr; } }

.mini-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.mini-plan-info { flex: 1; }
.mini-plan-name { font-size: 0.88rem; font-weight: 600; color: var(--text-pri); margin-bottom: 0.25rem; }
.mini-plan-desc { font-size: 0.72rem; color: var(--text-mute); }
.mini-plan-price { text-align: right; flex-shrink: 0; }
.mini-plan-amount { font-size: 1.2rem; font-weight: 800; color: var(--text-pri); }
.mini-plan-period { font-size: 0.7rem; color: var(--text-mute); }
.mini-plan-save   { font-size: 0.68rem; color: #10B981; font-weight: 600; }

/* ===== COMING SOON BADGE ===== */
.badge-coming-soon {
  display: inline-block;
  background: rgba(245,158,11,0.15);
  color: #FBBF24;
  border: 1px solid rgba(245,158,11,0.3);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== DUMMY PAGE STYLES ===== */
.dummy-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}
.dummy-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wa-conversation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
/* ===== WHATSAPP AGENT — HOW IT WORKS ===== */
.wa-flow-steps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5rem 0;
}
.wa-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 70px;
}
.wa-flow-icon {
  font-size: 1.5rem;
  background: var(--gold-glow);
  border: 1.5px solid var(--gold-dark);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-flow-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-sec);
  text-align: center;
}
.wa-flow-arrow {
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
@media (max-width: 560px) { .wa-flow-arrow { display: none; } }

/* ===== WHATSAPP AGENT — PROPERTY CARDS ===== */
.wa-property-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  margin-bottom: 0.7rem;
}
.wa-property-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.wa-property-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-pri);
}
.wa-property-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.wa-property-tag {
  font-size: 0.7rem;
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  border-radius: 4px;
  padding: 1px 7px;
}
.wa-property-desc {
  font-size: 0.8rem;
  color: var(--text-sec);
}

/* ===== WHATSAPP AGENT — CHAT PREVIEW ===== */
.wa-chat-preview {
  background: #07071a;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px solid var(--border);
}
.wa-chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  max-width: 78%;
}
.wa-chat-bubble.wa-lead { align-self: flex-start; }
.wa-chat-bubble.wa-ai  { align-self: flex-end; align-items: flex-end; }
.wa-chat-who {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wa-chat-bubble.wa-lead .wa-chat-who { color: var(--text-mute); }
.wa-chat-bubble.wa-ai  .wa-chat-who { color: var(--gold); }
.wa-chat-text {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  font-size: 0.83rem;
  line-height: 1.55;
}
.wa-chat-bubble.wa-lead .wa-chat-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-pri);
  border-radius: 12px 12px 12px 2px;
}
.wa-chat-bubble.wa-ai .wa-chat-text {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #fff;
  border-radius: 12px 12px 2px 12px;
}

.connect-btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) { .referral-stats-grid { grid-template-columns: 1fr; } }
.ref-stat-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.ref-stat-val { font-size: 1.75rem; font-weight: 800; color: var(--text-pri); }
.ref-stat-label { font-size: 0.75rem; color: var(--text-mute); margin-top: 0.25rem; }
.referral-link-box {
  background: var(--bg-input);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.referral-link-text {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  word-break: break-all;
}
.commission-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.commission-item {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.commission-rate { font-size: 1.1rem; font-weight: 800; color: #FBBF24; }

/* ===== AUTH CLOSE BUTTON ===== */
.auth-box { position: relative; }
.auth-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-mute);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
  z-index: 10;
}
.auth-close-btn:hover { color: var(--text-pri); background: var(--bg-card2); }

/* ===== ONBOARDING BANNER ===== */
#onboarding-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(90deg, rgba(124,58,237,0.18), rgba(6,182,212,0.12));
  border-bottom: 1px solid rgba(124,58,237,0.25);
  padding: 0.6rem 1.5rem;
  font-size: 0.83rem;
  color: var(--text-pri);
  flex-wrap: wrap;
  justify-content: space-between;
}
.onboarding-dismiss {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.onboarding-dismiss:hover { border-color: var(--gold); color: var(--gold); }

/* ===== PRICING IMPROVEMENTS ===== */
.pricing-card.popular:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(245,158,11,0.35), 0 8px 30px rgba(0,0,0,0.4);
}
.pricing-card:not(.popular):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.2), 0 4px 20px rgba(0,0,0,0.4);
}
.pricing-social-proof {
  font-size: 0.82rem;
  color: var(--text-sec);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
}
.pricing-countdown {
  font-size: 0.82rem;
  color: var(--text-sec);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
}
.pricing-orig {
  margin-top: 0.25rem;
  min-height: 1.1rem;
}

/* ===== WHATSAPP GUIDE MODAL ===== */
.wa-guide-step {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.wa-guide-step:last-child { border-bottom: none; }
.wa-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
}
.wa-step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 0.35rem;
}
.wa-step-desc {
  font-size: 0.82rem;
  color: var(--text-sec);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.wa-step-img {
  font-size: 0.78rem;
  color: var(--gold);
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-style: italic;
}

/* ── Sending Schedule ── */
.schedule-status-box {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.batch-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--text-pri);
  border-radius: 20px;
  padding: 0.2rem 0.6rem 0.2rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.batch-time-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-mute);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}
.batch-time-chip button:hover { color: var(--red); }

/* ── Warm-up schedule display ── */
.warmup-info-box {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}
.warmup-week-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.warmup-week-row:last-of-type { border-bottom: none; }
.warmup-week-label { color: var(--text-sec); font-weight: 600; }
.warmup-week-val   { color: var(--text-mute); }

/* ================================================================
   FIX 1 — ANALYTICS CHART CONTAINERS
   Constrain canvas to a fixed height so Chart.js never expands the
   card. `position:relative` is required by Chart.js responsive mode.
   ================================================================ */
.chart-wrap {
  position: relative;
  height: 200px;
  max-height: 200px;
  overflow: hidden;
}

/* ================================================================
   FIX 2 — FULL MOBILE RESPONSIVE OVERHAUL
   ================================================================ */

/* ── Topbar: fixed on mobile so it stays visible while scrolling ── */
@media (max-width: 768px) {
  .topbar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    height: 56px;
    z-index: 99;
    padding: 0 0.875rem;
    box-sizing: border-box;
  }

  /* Push page content below the fixed topbar */
  #main { padding-top: 56px; }
  .page { padding: 0.875rem; }

  /* Sidebar slides in above the topbar on mobile */
  #sidebar { z-index: 110; }

  /* ── Stats grid: 2 cols on mobile ── */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

  /* ── All multi-column grids collapse to 1 col ── */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* ── Buttons: proper 44 px touch target ── */
  .btn       { min-height: 44px; font-size: 0.88rem; }
  .btn-sm    { min-height: 36px; }
  .btn-gold, .btn-outline, .btn-danger { border-radius: 10px; }

  /* ── Modals: bottom-sheet style on mobile ── */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    max-width: 100%;
    width: 100%;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    margin: 0;
  }
  .modal-header { padding: 1.1rem 1.25rem; }
  .modal-close  { font-size: 1.5rem; padding: 0.25rem; min-width: 36px; min-height: 36px; }
  .modal-body   { padding: 1rem 1.25rem; max-height: calc(92dvh - 60px); }

  /* ── Email Center: tabs horizontally scrollable ── */
  .subtabs {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.25rem;
    padding-bottom: 2px;
  }
  .subtabs::-webkit-scrollbar { display: none; }
  .subtab { flex-shrink: 0; white-space: nowrap; }

  /* ── Find Leads: source tabs scrollable ── */
  .source-tabs {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.25rem;
  }
  .source-tabs::-webkit-scrollbar { display: none; }
  .source-tab { flex-shrink: 0; white-space: nowrap; }

  /* ── Section headers: stack on mobile ── */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* ── Textareas / inputs: full width ── */
  .form-control, textarea.form-control { width: 100%; box-sizing: border-box; }

  /* ── Tables → cards (already have .mobile-cards but ensure hiding) ── */
  .table-wrap.responsive { display: none !important; }
  .mobile-cards          { display: block !important; }

  /* ── Analytics: collapse to 1-col stack ── */
  #page-analytics .grid-2 { grid-template-columns: 1fr; }

  /* ── Campaign grid: single column ── */
  .campaign-grid { grid-template-columns: 1fr !important; }

  /* ── Integration grid ── */
  .integration-grid { grid-template-columns: 1fr !important; }

  /* ── Connected account cards: better stacking ── */
  .connected-account-card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .connected-account-card > div:last-child {
    width: 100%;
    justify-content: flex-end;
  }

  /* ── Schedule / batch chip list ── */
  #batch-times-list, #settings-batch-times-list { gap: 0.35rem; }

  /* ── Bottom stats bar ── */
  .bottom-stats-bar { grid-template-columns: repeat(2, 1fr) !important; }

  /* ── Card padding tighter ── */
  .card { padding: 1rem; }
  .stat-card { padding: 0.9rem; }
  .stat-value { font-size: 1.5rem; }

  /* ── Topbar: hide non-essential items but keep avatar ── */
  .topbar-search        { display: none !important; }
  .topbar-ai-status     { display: none !important; }
  .topbar-icon-btn.plus-btn { display: none; }

  /* ── Page title on mobile: smaller + never wraps ── */
  .page-title { font-size: 0.9rem; max-width: 160px; }
}

/* ── Very small phones (375 px and below) ── */
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 1.35rem; }
  .bottom-stats-bar { grid-template-columns: 1fr 1fr !important; }

  /* Hide extra topbar icon buttons to keep header clean */
  .topbar-icon-btn:not(#theme-toggle):not([onclick*="showUserMenu"]) { display: none; }
}

/* ── Tablet: 769 – 1024 px ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .campaign-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-stats-bar { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .grid-4  { grid-template-columns: repeat(2, 1fr); }
}

/* ── Desktop: keep mobile-cards hidden ── */
@media (min-width: 769px) {
  .mobile-cards { display: none !important; }
}

/* ===== PWA INSTALL BUTTON ===== */
.install-btn {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.install-btn:hover {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}
.install-btn.hidden { display: none; }

/* =================================================================
   HOW IT WORKS — ENHANCED TUTORIAL SECTIONS
   ================================================================= */

/* Numbered step grid */
.hiw-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem;
  position: relative;
}
.hiw-steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: linear-gradient(90deg, rgba(124,58,237,0.5), rgba(139,92,246,0.5));
  z-index: 0;
  pointer-events: none;
}
.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.3rem;
  position: relative;
  z-index: 1;
}
.hiw-step-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(109,40,217,0.12));
  border: 2px solid rgba(124,58,237,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  box-shadow: 0 0 18px rgba(124,58,237,0.18);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.hiw-step:hover .hiw-step-icon {
  background: linear-gradient(135deg, rgba(124,58,237,0.38), rgba(109,40,217,0.22));
  border-color: var(--gold-light);
  box-shadow: 0 0 28px rgba(124,58,237,0.38);
  transform: scale(1.1) translateY(-3px);
}
.hiw-step-num {
  position: absolute;
  top: -5px;
  right: calc(50% - 38px);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(124,58,237,0.4);
}
.hiw-step-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.hiw-step-desc {
  font-size: 0.68rem;
  color: var(--text-mute);
  line-height: 1.45;
}

/* Feature checklist */
.hiw-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.75rem 0;
}
.hiw-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.81rem;
  color: var(--text-sec);
  padding: 0.55rem 0.65rem;
  background: var(--bg-card2);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.hiw-feature-item:hover { border-color: rgba(124,58,237,0.3); }
.hiw-feature-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: #10B981;
  font-weight: 700;
  margin-top: 1px;
}

/* Source pill tags */
.hiw-sources-grid {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
  align-items: center;
}
.hiw-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sec);
  transition: all 0.18s;
}
.hiw-source-pill:hover {
  border-color: rgba(124,58,237,0.4);
  color: var(--gold-light);
  background: var(--gold-glow);
}

/* Speed-to-lead / stat highlight box */
.hiw-stat-highlight {
  background: linear-gradient(135deg, rgba(124,58,237,0.13), rgba(109,40,217,0.06));
  border: 1px solid rgba(124,58,237,0.28);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.hiw-stat-icon { font-size: 1.75rem; flex-shrink: 0; }
.hiw-stat-text { font-size: 0.83rem; color: var(--text-sec); line-height: 1.55; }
.hiw-stat-text strong { color: var(--gold-light); font-size: 0.95rem; display: block; margin-bottom: 0.2rem; }

/* 3-scenario cards */
.hiw-scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0;
}
.hiw-scenario-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  transition: border-color 0.2s;
}
.hiw-scenario-card:hover { border-color: rgba(124,58,237,0.3); }
.hiw-scenario-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hiw-scenario-tag.interested  { background: rgba(16,185,129,0.15);  color: #10B981; border: 1px solid rgba(16,185,129,0.3); }
.hiw-scenario-tag.not-now     { background: rgba(246,126,34,0.15);  color: #F67E22; border: 1px solid rgba(246,126,34,0.3); }
.hiw-scenario-tag.unsubscribe { background: rgba(136,136,170,0.12); color: var(--text-mute); border: 1px solid var(--border); }
.hiw-scenario-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 0.3rem;
}
.hiw-scenario-desc { font-size: 0.74rem; color: var(--text-mute); line-height: 1.45; }

/* Email thread mock */
.hiw-email-thread {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 0.75rem 0;
}
.hiw-email-header {
  background: var(--bg-card2);
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.3px;
}
.hiw-email-msg {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.hiw-email-msg:last-child { border-bottom: none; }
.hiw-email-from {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-mute);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hiw-email-from.ai-from { color: var(--gold-light); }
.hiw-email-body {
  font-size: 0.8rem;
  color: var(--text-sec);
  line-height: 1.55;
}

/* Call script preview */
.hiw-call-script {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 0.75rem 0;
}
.hiw-call-script-header {
  background: var(--bg-card2);
  padding: 0.5rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border-bottom: 1px solid var(--border);
}
.hiw-call-line {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.hiw-call-line:last-child { border-bottom: none; }
.hiw-call-speaker {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex-shrink: 0;
  padding-top: 3px;
  min-width: 36px;
}
.hiw-call-speaker.ai   { color: var(--gold-light); }
.hiw-call-speaker.lead { color: var(--text-mute); }
.hiw-call-text { color: var(--text-sec); line-height: 1.5; }

/* Call analytics preview cards */
.hiw-analytics-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
.hiw-analytics-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
  transition: border-color 0.2s;
}
.hiw-analytics-card:hover { border-color: rgba(124,58,237,0.3); }
.hiw-analytics-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}
.hiw-analytics-label { font-size: 0.68rem; color: var(--text-mute); line-height: 1.35; }

/* "Sounds Human" guarantee badge */
.hiw-guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #10B981;
  margin: 0.75rem 0;
}

/* Upgrade CTA panel */
.hiw-upgrade-cta {
  margin-top: 1.75rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.16), rgba(109,40,217,0.07));
  border: 1px solid rgba(124,58,237,0.28);
  border-radius: 16px;
  text-align: center;
}
.hiw-upgrade-cta-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pri);
  margin-bottom: 0.4rem;
}
.hiw-upgrade-cta-sub {
  font-size: 0.83rem;
  color: var(--text-sec);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.hiw-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2.25rem;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 20px rgba(124,58,237,0.32);
}
.hiw-upgrade-btn:hover {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  box-shadow: 0 8px 32px rgba(124,58,237,0.52);
  transform: translateY(-2px) scale(1.02);
}

/* Sub-header for sections within tutorial cards */
.hiw-sub-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-pri);
  margin: 1.25rem 0 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== RESPONSIVE — HIW ===== */
@media (max-width: 900px) {
  .hiw-steps-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hiw-steps-grid::before { display: none; }
  .hiw-analytics-preview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hiw-steps-grid { grid-template-columns: 1fr 1fr; }
  .hiw-features-grid { grid-template-columns: 1fr; }
  .hiw-scenarios { grid-template-columns: 1fr; }
  .hiw-analytics-preview { grid-template-columns: 1fr 1fr; }
  .hiw-step { flex-direction: row; text-align: left; gap: 0.75rem; align-items: flex-start; }
  .hiw-step-icon { width: 46px; height: 46px; font-size: 1.1rem; margin-bottom: 0; flex-shrink: 0; }
  .hiw-step-num { right: auto; left: 26px; top: -4px; }
  .hiw-step-title, .hiw-step-desc { text-align: left; }
  .hiw-upgrade-cta { padding: 1.25rem; }
  .hiw-upgrade-btn { width: 100%; justify-content: center; font-size: 0.88rem; }
}

/* ===== VOICE TEST ===== */
.voice-test-modal {
  max-width: 500px;
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
}

.voice-visualizer {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  border: 2px solid #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  position: relative;
  font-size: 40px;
}

.voice-visualizer.active {
  animation: vt-pulse 1.5s ease-in-out infinite;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #7c3aed;
  opacity: 0;
}

.voice-visualizer.active .pulse-ring {
  animation: vt-ripple 1.5s ease-out infinite;
}

@keyframes vt-ripple {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes vt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  50%       { box-shadow: 0 0 0 20px rgba(124, 58, 237, 0); }
}

.voice-status {
  font-size: 0.95rem;
  color: #a78bfa;
  margin: 0.75rem 0;
  min-height: 22px;
}

.voice-transcript {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  max-height: 200px;
  overflow-y: auto;
  text-align: left;
  margin: 0.75rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.voice-transcript .assistant { color: #a78bfa; margin-bottom: 6px; }
.voice-transcript .user      { color: #34d399; margin-bottom: 6px; }

.voice-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn-test-voice {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  color: #fff;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}

.btn-test-voice:hover { opacity: 0.88; }

