
/* ═══ $100B PREMIUM — Lead Machine / Marketing Funnels (scoped to #leadmachine) ═══
   Foundation already at line ~4740 (text dark, tabs glass/active, inputs,
   dark div → white glass + blue shadow). This block adds: animated glow
   lines, hover lifts, unified blue palette (kills red/yellow/purple/gold
   on prospecting categories EXCEPT semantic success-green), and safety
   overrides for .ai-panel-title ghost text. */

/* ── .ai-panel-title / .ai-panel-subtitle — force dark on light bg ── */
#leadmachine .ai-panel-title, #leadmachine .section-heading {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  text-shadow: none !important;
}
#leadmachine .ai-panel-subtitle, #leadmachine .section-sub {
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
}

/* ── Hero banner: dark navy → premium glass + animated blue glow ── */
#leadmachine > div[style*="linear-gradient(135deg,#0a1428"],
#leadmachine > div[style*="linear-gradient(135deg, #0a1428"] {
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(0,101,241,0.04)) !important;
  border: 0.5px solid rgba(0,101,241,0.18) !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0,101,241,0.05), 0 14px 40px rgba(0,101,241,0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
#leadmachine > div[style*="linear-gradient(135deg,#0a1428"]::before,
#leadmachine > div[style*="linear-gradient(135deg, #0a1428"]::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #0055d4, #0065f1, #2d7af8, #0065f1, #0055d4) !important;
  background-size: 200% 100% !important;
  animation: z100bCardGlow 4s ease-in-out infinite !important;
  z-index: 2 !important;
}
/* Hero heading "Lead Machine" in alt-blue #1A7FE8 → ZOOM blue */
#leadmachine [style*="color:#1A7FE8"], #leadmachine [style*="color: #1A7FE8"],
#leadmachine [style*="color:#4FA8FF"], #leadmachine [style*="color: #4FA8FF"],
#leadmachine [style*="color:#0F5BAD"], #leadmachine [style*="color: #0F5BAD"] {
  color: #0065f1 !important;
  -webkit-text-fill-color: #0065f1 !important;
}
#leadmachine [style*="border:1px solid rgba(26,127,232"] {
  border-color: rgba(0,101,241,0.22) !important;
}
#leadmachine [style*="background:rgba(26,127,232"] {
  background: rgba(0,101,241,0.08) !important;
}

/* ── Active tab animation upgrade (global rule sets gradient — add sweep) ── */
#leadmachine .inner-tab.active {
  background: linear-gradient(135deg, #0055d4, #0065f1, #2d7af8) !important;
  background-size: 200% 100% !important;
  animation: z100bCardGlow 6s ease-in-out infinite !important;
  border: none !important;
}

/* ── Premium treatment for .ai-panel cards + generic stat cards ── */
#leadmachine .ai-panel {
  position: relative !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.96) !important;
  border: 0.5px solid rgba(0,101,241,0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 3px rgba(0,101,241,0.05), 0 10px 28px rgba(0,101,241,0.07) !important;
}
#leadmachine .ai-panel::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #0055d4, #0065f1, #2d7af8, #0065f1, #0055d4) !important;
  background-size: 200% 100% !important;
  animation: z100bCardGlow 4s ease-in-out infinite !important;
  z-index: 1 !important;
}

/* ── Prospecting tab: RED expired category → ZOOM blue (NO red) ── */
#leadmachine [style*="border-color:rgba(248,113,113"],
#leadmachine [style*="border-color: rgba(248,113,113"] {
  border-color: rgba(0,101,241,0.30) !important;
}
#leadmachine [style*="background:rgba(248,113,113"],
#leadmachine [style*="background: rgba(248,113,113"] {
  background: rgba(0,101,241,0.06) !important;
}
#leadmachine [style*="border:1px solid rgba(248,113,113"],
#leadmachine [style*="border: 1px solid rgba(248,113,113"] {
  border-color: rgba(0,101,241,0.22) !important;
}
#leadmachine [style*="color:#F87171"], #leadmachine [style*="color: #F87171"],
#leadmachine [style*="color:#DC2626"], #leadmachine [style*="color: #DC2626"] {
  color: #0065f1 !important;
  -webkit-text-fill-color: #0065f1 !important;
}
/* Red-gradient "+" buttons → blue with white text */
#leadmachine button[style*="linear-gradient(135deg,#DC2626,#F87171"],
#leadmachine button[style*="linear-gradient(135deg, #DC2626, #F87171"] {
  background: linear-gradient(135deg, #0055d4, #0065f1) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,101,241,0.26) !important;
}
#leadmachine button[style*="linear-gradient(135deg,#DC2626,#F87171"] *,
#leadmachine button[style*="linear-gradient(135deg, #DC2626, #F87171"] * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ── YELLOW FSBO category → ZOOM blue (NO yellow) ── */
#leadmachine [style*="background:rgba(251,191,36"],
#leadmachine [style*="background: rgba(251,191,36"] {
  background: rgba(0,101,241,0.06) !important;
}
#leadmachine [style*="border:1px solid rgba(251,191,36"],
#leadmachine [style*="border: 1px solid rgba(251,191,36"] {
  border-color: rgba(0,101,241,0.22) !important;
}
#leadmachine [style*="color:#FBBF24"], #leadmachine [style*="color: #FBBF24"],
#leadmachine [style*="color:#D97706"], #leadmachine [style*="color: #D97706"],
#leadmachine [style*="color:#F59E0B"], #leadmachine [style*="color: #F59E0B"] {
  color: #0065f1 !important;
  -webkit-text-fill-color: #0065f1 !important;
}
#leadmachine button[style*="linear-gradient(135deg,#D97706,#FBBF24"],
#leadmachine button[style*="linear-gradient(135deg, #D97706, #FBBF24"] {
  background: linear-gradient(135deg, #0055d4, #0065f1) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,101,241,0.26) !important;
}
#leadmachine button[style*="linear-gradient(135deg,#D97706,#FBBF24"] *,
#leadmachine button[style*="linear-gradient(135deg, #D97706, #FBBF24"] * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ── Alt-blue Just Listed gradient (#1A7FE8 → #4FA8FF) → ZOOM blue ── */
#leadmachine button[style*="linear-gradient(135deg,#1A7FE8,#4FA8FF"],
#leadmachine button[style*="linear-gradient(135deg, #1A7FE8, #4FA8FF"] {
  background: linear-gradient(135deg, #0055d4, #0065f1) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,101,241,0.26) !important;
}
#leadmachine button[style*="linear-gradient(135deg,#1A7FE8,#4FA8FF"] *,
#leadmachine button[style*="linear-gradient(135deg, #1A7FE8, #4FA8FF"] * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ── Green Just Sold — keep semantic success, fix color:#000 → white ── */
#leadmachine button[style*="linear-gradient(135deg,#059669,#34D399"],
#leadmachine button[style*="linear-gradient(135deg, #059669, #34D399"] {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(5,150,105,0.28) !important;
}
#leadmachine button[style*="linear-gradient(135deg,#059669,#34D399"] *,
#leadmachine button[style*="linear-gradient(135deg, #059669, #34D399"] * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* #34D399 text → darker green for light bg legibility */
#leadmachine [style*="color:#34D399"], #leadmachine [style*="color: #34D399"] {
  color: #059669 !important;
  -webkit-text-fill-color: #059669 !important;
}

/* ── Purple Circle Prospecting gradient (#7C4DFF → #B388FF) → ZOOM blue ── */
#leadmachine button[style*="linear-gradient(135deg,#7C4DFF,#B388FF"],
#leadmachine button[style*="linear-gradient(135deg, #7C4DFF, #B388FF"] {
  background: linear-gradient(135deg, #0055d4, #0065f1) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,101,241,0.26) !important;
}
#leadmachine button[style*="linear-gradient(135deg,#7C4DFF,#B388FF"] *,
#leadmachine button[style*="linear-gradient(135deg, #7C4DFF, #B388FF"] * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
#leadmachine [style*="color:#7C4DFF"], #leadmachine [style*="color: #7C4DFF"],
#leadmachine [style*="color:#B388FF"], #leadmachine [style*="color: #B388FF"] {
  color: #0065f1 !important;
  -webkit-text-fill-color: #0065f1 !important;
}

/* ── Gold "Other" gradient (#C9A84C → #A08030) → ZOOM blue ── */
#leadmachine button[style*="linear-gradient(135deg,#C9A84C,#A08030"],
#leadmachine button[style*="linear-gradient(135deg, #C9A84C, #A08030"] {
  background: linear-gradient(135deg, #0055d4, #0065f1) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,101,241,0.26) !important;
}
#leadmachine button[style*="linear-gradient(135deg,#C9A84C,#A08030"] *,
#leadmachine button[style*="linear-gradient(135deg, #C9A84C, #A08030"] * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ── Form group labels — ZOOM blue uppercase ── */
#leadmachine .form-group label, #leadmachine label {
  color: #0065f1 !important;
  -webkit-text-fill-color: #0065f1 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
#leadmachine input:focus, #leadmachine select:focus, #leadmachine textarea:focus {
  outline: none !important;
  border-color: #0065f1 !important;
  box-shadow: 0 0 0 3px rgba(0,101,241,0.10) !important;
}
#leadmachine input[type="checkbox"], #leadmachine input[type="radio"] {
  accent-color: #0065f1 !important;
}

/* ── Prospecting section wrapper (red gradient banner) → blue wash ── */
#leadmachine div[style*="linear-gradient(135deg,rgba(248,113,113,0.08)"],
#leadmachine div[style*="linear-gradient(135deg, rgba(248,113,113,0.08)"] {
  background: linear-gradient(145deg, rgba(0,101,241,0.06), rgba(0,101,241,0.02)) !important;
  border: 0.5px solid rgba(0,101,241,0.22) !important;
  position: relative !important;
  overflow: hidden !important;
}
#leadmachine div[style*="linear-gradient(135deg,rgba(248,113,113,0.08)"]::before,
#leadmachine div[style*="linear-gradient(135deg, rgba(248,113,113,0.08)"]::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #0055d4, #0065f1, #2d7af8, #0065f1, #0055d4) !important;
  background-size: 200% 100% !important;
  animation: z100bCardGlow 4s ease-in-out infinite !important;
  z-index: 1 !important;
}

/* ── Muted text tokens the global rule might miss ── */
#leadmachine [style*="color:#546080"], #leadmachine [style*="color: #546080"],
#leadmachine [style*="color:#8A96B8"], #leadmachine [style*="color: #8A96B8"] {
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
}

/* ── color:#000 on non-gradient buttons (inherits dark body text; OK) ── */
/* but ensure ALL gradient buttons force white text */
#leadmachine button[style*="linear-gradient"] {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
#leadmachine button[style*="linear-gradient"] * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ── Radial glow halos in hero (alt-blue) → ZOOM blue ── */
#leadmachine [style*="radial-gradient(circle,rgba(26,127,232"],
#leadmachine [style*="radial-gradient(circle, rgba(26,127,232"] {
  background: radial-gradient(circle, rgba(0,101,241,0.10) 0%, transparent 70%) !important;
}

/* Prospecting Hub semantic color restoration (Phase 4 fix).
   The z100b-leadmachine overrides above unify the Lead Machine palette to
   ZOOM blue, which was intentional for the legacy prospecting UI. The new
   Prospecting Hub needs semantic color:
     red    = DNC / danger / delete,
     yellow = FSBO / warning,
     green  = callable / success,
     purple = Sphere,
     orange = Online Lead / Door Knock.
   Scoped to #panel-lm2-prospecting so the rest of Lead Machine keeps its
   unified blue palette. Specificity is 0,2,1,0 (#leadmachine +
   #panel-lm2-prospecting + attr selector) vs the kill rules' 0,1,1,0, so
   these win regardless of source order. Placed after z100b for defense. */

/* Red: DNC / danger */
#leadmachine #panel-lm2-prospecting [style*="color:#F87171"],
#leadmachine #panel-lm2-prospecting [style*="color: #F87171"] {
  color: #F87171 !important;
  -webkit-text-fill-color: #F87171 !important;
}
#leadmachine #panel-lm2-prospecting [style*="color:#DC2626"],
#leadmachine #panel-lm2-prospecting [style*="color: #DC2626"] {
  color: #DC2626 !important;
  -webkit-text-fill-color: #DC2626 !important;
}
#leadmachine #panel-lm2-prospecting [style*="color:#B91C1C"],
#leadmachine #panel-lm2-prospecting [style*="color: #B91C1C"] {
  color: #B91C1C !important;
  -webkit-text-fill-color: #B91C1C !important;
}
#leadmachine #panel-lm2-prospecting [style*="background:rgba(248,113,113"],
#leadmachine #panel-lm2-prospecting [style*="background: rgba(248,113,113"] {
  background: rgba(248,113,113,0.1) !important;
}
#leadmachine #panel-lm2-prospecting [style*="border:1px solid rgba(248,113,113"],
#leadmachine #panel-lm2-prospecting [style*="border: 1px solid rgba(248,113,113"],
#leadmachine #panel-lm2-prospecting [style*="border-color:rgba(248,113,113"],
#leadmachine #panel-lm2-prospecting [style*="border-color: rgba(248,113,113"] {
  border-color: rgba(248,113,113,0.3) !important;
}

/* Yellow: FSBO / warnings / legacy banner */
#leadmachine #panel-lm2-prospecting [style*="color:#FBBF24"],
#leadmachine #panel-lm2-prospecting [style*="color: #FBBF24"] {
  color: #FBBF24 !important;
  -webkit-text-fill-color: #FBBF24 !important;
}
#leadmachine #panel-lm2-prospecting [style*="color:#D97706"],
#leadmachine #panel-lm2-prospecting [style*="color: #D97706"] {
  color: #D97706 !important;
  -webkit-text-fill-color: #D97706 !important;
}
#leadmachine #panel-lm2-prospecting [style*="color:#92400E"],
#leadmachine #panel-lm2-prospecting [style*="color: #92400E"] {
  color: #92400E !important;
  -webkit-text-fill-color: #92400E !important;
}
#leadmachine #panel-lm2-prospecting [style*="background:rgba(251,191,36"],
#leadmachine #panel-lm2-prospecting [style*="background: rgba(251,191,36"] {
  background: rgba(251,191,36,0.06) !important;
}
#leadmachine #panel-lm2-prospecting [style*="border:1px solid rgba(251,191,36"],
#leadmachine #panel-lm2-prospecting [style*="border: 1px solid rgba(251,191,36"] {
  border-color: rgba(251,191,36,0.25) !important;
}

/* Green: callable / success */
#leadmachine #panel-lm2-prospecting [style*="color:#34D399"],
#leadmachine #panel-lm2-prospecting [style*="color: #34D399"] {
  color: #34D399 !important;
  -webkit-text-fill-color: #34D399 !important;
}
#leadmachine #panel-lm2-prospecting [style*="color:#065F46"],
#leadmachine #panel-lm2-prospecting [style*="color: #065F46"] {
  color: #065F46 !important;
  -webkit-text-fill-color: #065F46 !important;
}

/* Purple: Sphere */
#leadmachine #panel-lm2-prospecting [style*="color:#B388FF"],
#leadmachine #panel-lm2-prospecting [style*="color: #B388FF"] {
  color: #B388FF !important;
  -webkit-text-fill-color: #B388FF !important;
}
#leadmachine #panel-lm2-prospecting [style*="color:#7C4DFF"],
#leadmachine #panel-lm2-prospecting [style*="color: #7C4DFF"] {
  color: #7C4DFF !important;
  -webkit-text-fill-color: #7C4DFF !important;
}

/* Orange: Online Lead / Door Knock */
#leadmachine #panel-lm2-prospecting [style*="color:#FF6B46"],
#leadmachine #panel-lm2-prospecting [style*="color: #FF6B46"] {
  color: #FF6B46 !important;
  -webkit-text-fill-color: #FF6B46 !important;
}

/* Delete button: keep red border + red text even though DC2626 is also
   caught above; this is belt-and-suspenders for a high-stakes affordance. */
#leadmachine #panel-lm2-prospecting #lmh-expired-delete-btn {
  color: #DC2626 !important;
  -webkit-text-fill-color: #DC2626 !important;
  border-color: #DC2626 !important;
}
