/* =====================================================================
   MADLAN-INSPIRED THEME - Warm white, clean typography, accessible
   ===================================================================== */

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

/* === PALETTE === */
:root {
  --bg: #fdfaf6;
  --surface: #ffffff;
  --surface-2: #faf7f2;
  --border: #e8e3da;
  --text: #1a1a2e;
  --text-2: #4b5563;
  --text-muted: #8b8478;
  --accent: #ff5a5f;
  --accent-2: #ff8a8d;
  --accent-soft: #fff0f0;
  --primary: #2563eb;
  --primary-soft: #eff6ff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow: 0 4px 14px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 26, 46, 0.10);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
}

/* === BASE === */
html, body {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* hide animated blob background */
.bg-blob, .bg-shape { display: none !important; }

/* === TOPBAR === */
.topbar {
  background: var(--surface) !important;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px !important;
}
.brand h1 {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  letter-spacing: -0.01em;
}
.brand .subtitle {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
}
.brand-mark {
  font-size: 1.6rem !important;
}

/* === TABS === */
.tabs {
  background: transparent !important;
  border: none !important;
}
.tab {
  background: transparent !important;
  color: var(--text-2) !important;
  border: none !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  border-radius: var(--r-sm) !important;
  transition: all 0.15s !important;
}
.tab:hover {
  background: var(--surface-2) !important;
  color: var(--text) !important;
}
.tab.active {
  background: var(--accent) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(255, 90, 95, 0.30);
}

/* === BANNERS === */
.strict-banner, .disclaimer-banner {
  background: var(--surface-2) !important;
  color: var(--text-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  padding: 12px 18px !important;
  margin: 14px 28px !important;
  font-size: 0.85rem !important;
  font-weight: 500;
  box-shadow: none !important;
}
.strict-banner strong, .disclaimer-banner strong {
  color: var(--text) !important;
}

/* === MAIN CONTAINER === */
.container {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 24px 28px !important;
}

/* === PANELS === */
.panel {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  padding: 32px !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 20px;
}
.panel h2 {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  letter-spacing: -0.015em;
  margin: 0 0 6px !important;
}
.panel h3 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin: 28px 0 14px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.panel h4 {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--text-2) !important;
  margin: 16px 0 8px !important;
}
.muted {
  color: var(--text-muted) !important;
  font-size: 0.88rem !important;
}

/* === FIELDS === */
.field { margin-bottom: 1rem !important; }
.field label {
  display: block;
  font-weight: 600 !important;
  font-size: 0.83rem !important;
  color: var(--text-2) !important;
  margin-bottom: 6px !important;
  letter-spacing: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  font-weight: 500;
  transition: all 0.15s !important;
  box-shadow: none !important;
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--text-muted) !important;
  font-weight: 400;
}
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: #c7c0b3 !important;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.12) !important;
}

/* === BUTTONS === */
.btn-primary {
  background: var(--accent) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--r-sm) !important;
  padding: 11px 22px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer;
  transition: all 0.15s !important;
  box-shadow: 0 2px 8px rgba(255, 90, 95, 0.25) !important;
  font-family: inherit;
}
.btn-primary:hover {
  background: #e74e53 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 90, 95, 0.35) !important;
}
.btn-primary.big {
  padding: 14px 28px !important;
  font-size: 1rem !important;
  border-radius: var(--r) !important;
}
.btn-secondary {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: none !important;
  font-family: inherit;
}
.btn-secondary:hover {
  background: var(--border) !important;
}
.btn-link {
  background: transparent !important;
  color: var(--primary) !important;
  border: none !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-decoration: none;
  padding: 6px 10px !important;
  font-family: inherit;
}
.btn-link:hover { text-decoration: underline; }

/* === DIRECTION GRID === */
.direction-grid {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  padding: 12px !important;
  border-radius: var(--r) !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px !important;
}
.direction-grid label {
  background: var(--surface) !important;
  color: var(--text) !important;
  padding: 10px 14px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  cursor: pointer;
  transition: all 0.15s;
}
.direction-grid label:hover {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
}
.direction-grid label:has(input:checked) {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
  box-shadow: 0 2px 8px rgba(255, 90, 95, 0.30) !important;
}

/* === METHOD CARDS - clear differentiation === */
.methods-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 14px !important;
  margin: 16px 0 !important;
}
.method-card {
  background: var(--surface) !important;
  border: 2px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  padding: 18px !important;
  transition: all 0.2s !important;
  box-shadow: var(--shadow-sm) !important;
  position: relative;
  overflow: hidden;
}
.method-card:hover {
  border-color: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow) !important;
}
.method-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: var(--accent);
}
.method-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.method-head strong {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
}
.method-weight {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
}
.method-desc {
  font-size: 0.82rem !important;
  color: var(--text-2) !important;
  line-height: 1.55;
  margin: 8px 0 12px;
  font-weight: 500;
}
.method-est {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  letter-spacing: -0.02em;
  margin: 6px 0;
}
.method-sub {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  font-weight: 600;
}

/* === HERO VALUATION === */
.valuation-result {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-xl) !important;
  padding: 32px !important;
  margin: 20px 0 !important;
  box-shadow: var(--shadow) !important;
}

/* === COMPARABLE ROWS === */
.comp-rows .comp-row {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  padding: 14px 18px !important;
  margin-bottom: 8px !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all 0.15s;
}
.comp-rows .comp-row:hover {
  border-color: var(--accent) !important;
  box-shadow: var(--shadow) !important;
}

/* === VERSION STAMP === */
#versionStamp {
  background: var(--text) !important;
  color: white !important;
  font-family: 'Heebo', monospace !important;
  font-size: 11px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  opacity: 0.85 !important;
  box-shadow: var(--shadow) !important;
}

/* === DARK TOGGLE === */
.dark-toggle {
  background: var(--surface) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 100;
  box-shadow: var(--shadow);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .container { padding: 16px !important; }
  .panel { padding: 20px !important; }
  .topbar { padding: 12px 16px !important; flex-direction: column; gap: 10px; }
}

/* === DARK MODE === */
body.dark-mode {
  --bg: #0f1115;
  --surface: #1a1d24;
  --surface-2: #1f232b;
  --border: #2d333d;
  --text: #f3f4f6;
  --text-2: #d1d5db;
  --text-muted: #9ca3af;
  --accent: #ff7a7f;
  --accent-soft: rgba(255, 122, 127, 0.12);
}
body.dark-mode .panel { background: var(--surface) !important; border-color: var(--border) !important; }
body.dark-mode .field input, body.dark-mode .field select, body.dark-mode .field textarea {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* === DARK MODE: tabs row === */
body.dark-mode .topbar {
  background: #15171c !important;
  border-bottom: 1px solid var(--border) !important;
}
body.dark-mode .tabs { background: transparent !important; }
body.dark-mode .tab { color: #cbd5e1 !important; }
body.dark-mode .tab:hover { background: rgba(255,255,255,0.04) !important; color: white !important; }
body.dark-mode .tab.active { background: var(--accent) !important; color: white !important; }

/* === DARK MODE: banners (strict + disclaimer) === */
body.dark-mode .strict-banner,
body.dark-mode .disclaimer-banner {
  background: #1a1d24 !important;
  border: 1px solid #2d333d !important;
  color: #cbd5e1 !important;
}
body.dark-mode .strict-banner strong,
body.dark-mode .disclaimer-banner strong {
  color: #f3f4f6 !important;
}

/* === DARK MODE: rental estimate box (was warm yellow gradient) === */
body.dark-mode #rentalEstimateBox > div {
  background: linear-gradient(135deg, #2d2510, #3a2f15) !important;
  border-right-color: #f59e0b !important;
  color: #fde68a !important;
}
body.dark-mode #rentalEstimateBox h3 { color: #fcd34d !important; }
body.dark-mode #rentalEstimateBox div[style*="background:white"],
body.dark-mode #rentalEstimateBox div[style*="background: white"] {
  background: #1a1d24 !important;
  color: #fde68a !important;
}
body.dark-mode #rentalEstimateBox div[style*="color:#6d28d9"],
body.dark-mode #rentalEstimateBox div[style*="color:#5b21b6"] { color: #fcd34d !important; }

/* === DARK MODE: neighborhood prescan box (green gradient → dark teal) === */
body.dark-mode #neighborhoodPrescanBox {
  background: linear-gradient(135deg, #0d2826, #122d2a) !important;
  border-right-color: #14b8a6 !important;
  color: #a7f3d0 !important;
}
body.dark-mode #neighborhoodPrescanBox h3 { color: #5eead4 !important; }
body.dark-mode #neighborhoodPrescanBox div[style*="background:white"],
body.dark-mode #neighborhoodPrescanBox div[style*="background: white"] {
  background: #1a1d24 !important;
  color: #a7f3d0 !important;
}
body.dark-mode #neighborhoodPrescanBox div[style*="color:#065f46"],
body.dark-mode #neighborhoodPrescanBox div[style*="color:#047857"],
body.dark-mode #neighborhoodPrescanBox div[style*="color:#dc2626"] {
  color: #5eead4 !important;
}
body.dark-mode #neighborhoodPrescanBox span[style*="background:#fef3c7"] {
  background: #422006 !important;
  color: #fcd34d !important;
}
body.dark-mode #neighborhoodPrescanBox span[style*="background:#dbeafe"] {
  background: #0c2d54 !important;
  color: #93c5fd !important;
}

/* === DARK MODE: methods v2 cards === */
body.dark-mode .methods-section {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
body.dark-mode .methods-section .methods-header h3 { color: var(--text) !important; }
body.dark-mode .methods-section .muted { color: var(--text-2) !important; }
body.dark-mode .method-card-v2 {
  background: #1a1d24 !important;
  color: var(--text) !important;
}
body.dark-mode .method-card-v2 .m-title strong { color: var(--text) !important; }
body.dark-mode .method-card-v2 .m-desc { color: #cbd5e1 !important; }
body.dark-mode .method-card-v2 .m-when { color: #94a3b8 !important; border-top-color: #2d333d !important; }
body.dark-mode .method-card-v2 .m-numbers {
  background: #15171c !important;
}
body.dark-mode .method-card-v2 .m-stats { color: #cbd5e1 !important; }

/* === DARK MODE: hero valuation === */
body.dark-mode .valuation-result {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* === DARK MODE: comparable rows === */
body.dark-mode .comp-rows .comp-row {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* === DARK MODE: direction grid === */
body.dark-mode .direction-grid {
  background: #15171c !important;
  border-color: var(--border) !important;
}
body.dark-mode .direction-grid label {
  background: #1a1d24 !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
body.dark-mode .direction-grid label:hover {
  background: #2d333d !important;
  border-color: var(--accent) !important;
}

/* === DARK MODE: autocomplete dropdown === */
body.dark-mode .ac-results,
body.dark-mode .autocomplete-suggestions {
  background: #1a1d24 !important;
  border: 1px solid var(--border) !important;
}
body.dark-mode .ac-item,
body.dark-mode .autocomplete-suggestion {
  color: var(--text) !important;
}
body.dark-mode .ac-item:hover,
body.dark-mode .ac-item.active,
body.dark-mode .autocomplete-suggestion:hover {
  background: #2d333d !important;
}

/* === DARK MODE: buttons === */
body.dark-mode .btn-secondary {
  background: #1f232b !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
body.dark-mode .btn-secondary:hover {
  background: #2d333d !important;
}
body.dark-mode .btn-link {
  color: #93c5fd !important;
}

/* === DARK MODE: tag/badge in autocomplete === */
body.dark-mode .ac-item .tag,
body.dark-mode label.tag {
  background: rgba(255,122,127,0.15) !important;
  color: #fda4af !important;
}

/* === DARK MODE: report empty state === */
body.dark-mode .report-empty-state {
  background: var(--surface-2) !important;
  border: 2px dashed var(--accent) !important;
  color: var(--text) !important;
}
body.dark-mode .report-empty-state h2 { color: #fda4af !important; }
body.dark-mode .report-empty-state strong { color: white !important; }

/* === DARK MODE: any white inline backgrounds === */
body.dark-mode [style*="background:white"],
body.dark-mode [style*="background: white"],
body.dark-mode [style*="background:#ffffff"],
body.dark-mode [style*="background: #ffffff"] {
  background: #1a1d24 !important;
}

/* === DARK MODE: force readable text inside any colored gradient box === */
body.dark-mode div[style*="linear-gradient"][style*="135deg"] {
  color: #e5e7eb !important;
}

/* === METHODS V2 - distinct, color-coded cards === */
.methods-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin: 24px 0;
}
.methods-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  border: none !important;
  padding: 0 !important;
}
.methods-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.method-card-v2 {
  background: white;
  border-radius: 14px;
  padding: 18px 20px;
  border-left: 6px solid #ccc;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.method-card-v2:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.method-card-v2 .m-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.method-card-v2 .m-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.method-card-v2 .m-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}
.method-card-v2 .m-title strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.method-card-v2 .m-best {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
}
.method-card-v2 .m-weight {
  text-align: center;
  min-width: 60px;
}
.method-card-v2 .m-weight-bar {
  width: 60px;
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}
.method-card-v2 .m-weight-bar > div {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s;
}
.method-card-v2 .m-weight span {
  font-size: 0.75rem;
  font-weight: 800;
}
.method-card-v2 .m-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.55;
}
.method-card-v2 .m-numbers {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 4px;
}
.method-card-v2 .m-est {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.method-card-v2 .m-stats {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}
.method-card-v2 .m-sep { opacity: 0.5; }
.method-card-v2 .m-conf {
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}
.method-card-v2 .m-conf.high { background: #d1fae5; color: #065f46; }
.method-card-v2 .m-conf.med { background: #fef3c7; color: #78350f; }
.method-card-v2 .m-conf.low { background: #fee2e2; color: #991b1b; }
.method-card-v2 .m-when {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  margin-top: auto;
}

/* === RENTAL BOX - cleaner === */
#rentalEstimateBox > div {
  background: linear-gradient(135deg, #fff7ed, #fef3c7) !important;
  border-right: 5px solid #f59e0b !important;
  color: #78350f !important;
}

/* === NEIGHBORHOOD PRESCAN BOX === */
#neighborhoodPrescanBox {
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1) !important;
  border-right: 5px solid #0d9488 !important;
}

/* === COLOR & LIFE LAYER - subtle accents on the warm palette === */

/* Top accent stripe on body */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff5a5f 0%, #ff8a8d 25%, #ffb347 50%, #14b8a6 75%, #6366f1 100%);
  z-index: 1000;
}

/* Topbar - subtle warmth */
.topbar {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%) !important;
}
.brand-mark {
  background: linear-gradient(135deg, #ff5a5f, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand h1 {
  background: linear-gradient(135deg, #1a1a2e 0%, #ff5a5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tab icons get hover color */
.tab span:first-child {
  transition: transform 0.2s;
  display: inline-block;
}
.tab:hover span:first-child {
  transform: scale(1.2);
}

/* Panel - subtle warm gradient top edge */
.panel {
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff5a5f, #ffb347, #14b8a6);
  opacity: 0.6;
}

/* Section headings with colored side accent */
.panel h3 {
  position: relative;
  padding-right: 14px !important;
  border-bottom: 2px solid transparent !important;
  background-image: linear-gradient(white, white), linear-gradient(90deg, #ff5a5f 0%, transparent 60%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.panel h3::before {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 70%;
  background: linear-gradient(180deg, #ff5a5f, #ffb347);
  border-radius: 2px;
}

/* Add color to important numbers */
.method-est, .method-card-v2 .m-est {
  background: linear-gradient(135deg, currentColor, currentColor);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Confidence badge animations */
.m-conf.high { animation: pulseSoft 3s ease-in-out infinite; }
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.3); }
  50% { box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}

/* Button primary - warm rainbow gradient */
.btn-primary {
  background: linear-gradient(135deg, #ff5a5f 0%, #ff8a8d 50%, #ffb347 100%) !important;
  background-size: 200% 100% !important;
  transition: background-position 0.3s, transform 0.15s, box-shadow 0.15s !important;
}
.btn-primary:hover {
  background-position: 100% 0% !important;
  background: linear-gradient(135deg, #e74e53 0%, #ff5a5f 50%, #ff9a5e 100%) !important;
  background-size: 200% 100% !important;
}

/* Tab active - subtle gradient instead of flat */
.tab.active {
  background: linear-gradient(135deg, #ff5a5f, #ff7a7f) !important;
}

/* Field focus - color the box-shadow rainbow */
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.18),
              0 4px 12px rgba(255, 90, 95, 0.08) !important;
}

/* Direction grid - colored check pop */
.direction-grid label:has(input:checked) {
  background: linear-gradient(135deg, #ff5a5f, #ffb347) !important;
  box-shadow: 0 4px 14px rgba(255, 90, 95, 0.35) !important;
}

/* Disclaimer banner - colored gradient stripe */
.disclaimer-banner {
  position: relative;
  background: linear-gradient(135deg, #fffaf3 0%, #fef3c7 100%) !important;
  border: 1px solid #fed7aa !important;
  color: #7c2d12 !important;
}
.disclaimer-banner strong { color: #9a3412 !important; }

.strict-banner {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%) !important;
  border: 1px solid #99f6e4 !important;
  color: #115e59 !important;
}
.strict-banner strong { color: #134e4a !important; }

/* Valuation result - rainbow border */
.valuation-result {
  position: relative;
  border: 2px solid transparent !important;
  background-image: linear-gradient(white, white),
                    linear-gradient(135deg, #ff5a5f, #ffb347, #14b8a6, #6366f1) !important;
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Method card - subtle hover glow tied to its color */
.method-card-v2 {
  transition: all 0.3s !important;
}
.method-card-v2:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10),
              0 0 0 1px currentColor !important;
}

/* "המוביל" star badge - shiny gold gradient */
.method-card-v2 .m-best {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
  animation: shineGold 4s ease-in-out infinite;
}
@keyframes shineGold {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

/* Auto-analyze progress bar - rainbow gradient */
.aa-step.done {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
}
.aa-step.loading {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
}

/* Neighborhood prescan box - more colorful */
#neighborhoodPrescanBox {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 50%, #fffaf3 100%) !important;
}

/* Rental box - more colorful */
#rentalEstimateBox > div {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fef3c7 100%) !important;
}

/* Comparable row hover */
.comp-rows .comp-row {
  position: relative;
}
.comp-rows .comp-row::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff5a5f, #ffb347);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.2s;
}
.comp-rows .comp-row:hover::before { opacity: 1; }

/* Version stamp - subtle pop */
#versionStamp {
  background: linear-gradient(135deg, #1a1a2e, #2d2d44) !important;
}

/* Dark mode - keep the colorful accents, dimmer */
body.dark-mode .panel::before {
  opacity: 0.5;
}
body.dark-mode .brand h1 {
  background: linear-gradient(135deg, #f3f4f6 0%, #ff7a7f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.dark-mode .panel h3 {
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(90deg, #ff7a7f 0%, transparent 60%);
}
body.dark-mode .disclaimer-banner {
  background: linear-gradient(135deg, #3a2410 0%, #2a1a0a 100%) !important;
  border: 1px solid #6b3410 !important;
  color: #fde68a !important;
}
body.dark-mode .disclaimer-banner strong { color: #fcd34d !important; }
body.dark-mode .strict-banner {
  background: linear-gradient(135deg, #0d2826 0%, #122d2a 100%) !important;
  border: 1px solid #14524a !important;
  color: #a7f3d0 !important;
}
body.dark-mode .strict-banner strong { color: #5eead4 !important; }
body.dark-mode .valuation-result {
  background-image: linear-gradient(var(--surface), var(--surface)),
                    linear-gradient(135deg, #ff7a7f, #ffb347, #14b8a6, #6366f1) !important;
}
