/* CanvassLite - Mobile-first CSS */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-50: #eff6ff;
  --green: #22c55e;
  --green-bg: #f0fdf4;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --orange: #f97316;
  --orange-100: #ffedd5;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.06);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s; text-decoration: none;
  font-family: inherit; line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(37,99,235,.3); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-50); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn-ghost { background: none; color: var(--gray-600); border: none; }
.btn-ghost:hover { color: var(--gray-900); }
.btn-green { background: var(--green); color: #fff; }
.btn-amber { background: var(--amber); color: #fff; }
.btn-red { background: var(--red); color: #fff; }

/* ---- INPUTS ---- */
input, textarea, select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); font-size: 15px; font-family: inherit;
  transition: border .2s, box-shadow .2s; background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--gray-700); }

/* ---- CARD ---- */
.card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 24px; border: 1px solid var(--gray-100);
}

/* ---- BADGE ---- */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600;
}

/* ---- TOAST ---- */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--gray-900); color: #fff; padding: 10px 24px; border-radius: 99px;
  font-size: 14px; opacity: 0; transition: all .3s; z-index: 9999; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ================================================================
   LANDING PAGE
   ================================================================ */
.landing-body { background: #fff; }

/* -- Nav -- */
.landing-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 800; color: var(--gray-900);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--gray-600); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--gray-900); text-decoration: none; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* -- Hero -- */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--primary-50) 0%, #fff 100%);
  overflow: hidden;
}
.hero .container {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 40px; font-weight: 900; line-height: 1.12; letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.gradient-text {
  color: var(--primary);
}
.hero-sub {
  font-size: 17px; color: var(--gray-500); max-width: 480px; margin-bottom: 32px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-proof { font-size: 13px; color: var(--gray-400); }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone-mock {
  width: 280px; height: 500px;
  background: var(--gray-900); border-radius: 36px; padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.05), 0 40px 60px -20px rgba(0,0,0,.15);
  position: relative;
}
.phone-mock::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px; background: var(--gray-900); border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; background: #f8fafc; border-radius: 26px;
  overflow: hidden; display: flex; flex-direction: column;
}
.mock-header {
  padding: 32px 16px 10px; background: #fff;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-dot.green { background: var(--green); }
.mock-map {
  flex: 1; position: relative;
  background: linear-gradient(160deg, #e3edf7 0%, #eef2f7 40%, #e8f4ec 100%);
  overflow: hidden;
}
.mock-streets { position: absolute; inset: 0; }
.street { position: absolute; background: rgba(255,255,255,.6); }
.street.h { left: 0; right: 0; height: 2px; }
.street.v { top: 0; bottom: 0; width: 2px; }
.mock-pin {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2);
  z-index: 1; transition: transform .2s;
}
.mock-pin.green { background: var(--green); }
.mock-pin.amber { background: var(--amber); }
.mock-pin.red { background: var(--red); }
.mock-pin.gray { background: var(--gray-400); }
.mock-gps {
  position: absolute; bottom: 30%; left: 50%;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(37,99,235,.15), 0 1px 4px rgba(0,0,0,.2);
  z-index: 2; animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(37,99,235,.15), 0 1px 4px rgba(0,0,0,.2); }
  50% { box-shadow: 0 0 0 12px rgba(37,99,235,.08), 0 1px 4px rgba(0,0,0,.2); }
}
.mock-bottom-bar {
  display: flex; justify-content: space-around; padding: 14px;
  background: #fff; border-top: 1px solid var(--gray-100);
}
.mock-stat { font-size: 12px; color: var(--gray-500); }
.mock-stat strong { color: var(--gray-900); font-weight: 700; }

/* -- Proof bar -- */
.proof-bar { padding: 28px 0; border-bottom: 1px solid var(--gray-100); }
.proof-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--gray-400); font-weight: 500;
}
.proof-logos .sep { color: var(--gray-200); }

/* -- Demo Video -- */
.demo-video { padding: 0 0 20px; }
.video-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  cursor: pointer;
  background: #000;
}
.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}
.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  display: block;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.video-wrapper:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.1); }
@media (max-width: 768px) {
  .demo-video { padding: 0 0 16px; }
  .video-wrapper { margin: 0 16px; border-radius: 8px; }
}

/* -- Section headers -- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.section-header p { font-size: 16px; color: var(--gray-500); max-width: 500px; margin: 0 auto; }

/* -- Features -- */
.features { padding: 88px 0; background: var(--gray-50); }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.feature-card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 28px; transition: box-shadow .25s, transform .25s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--primary-50); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* -- Political Features -- */
.political-features { padding: 88px 0; background: linear-gradient(180deg, #eff6ff 0%, var(--gray-50) 100%); }

/* -- Industries -- */
.industries { padding: 72px 0; }
.industries-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
  max-width: 960px; margin: 0 auto;
}
.industry-card {
  text-align: center; padding: 28px 20px;
  border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  background: #fff; transition: box-shadow .25s, transform .25s;
}
.industry-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.industry-icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  background: var(--primary-50); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.industry-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--gray-800); }
.industry-card p { font-size: 14px; color: var(--gray-500); line-height: 1.5; }

/* -- How it works -- */
.how-it-works { padding: 88px 0; }
.steps-grid {
  display: flex; align-items: flex-start; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.step-card {
  flex: 1; min-width: 200px; max-width: 280px; text-align: center; padding: 24px;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.step-arrow { display: flex; align-items: center; padding-top: 36px; }

/* -- Pricing -- */
.pricing { padding: 88px 0; background: var(--gray-50); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.price-card {
  background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius-xl);
  padding: 36px 28px; text-align: center; position: relative; transition: box-shadow .25s;
}
.price-card:hover { box-shadow: var(--shadow-lg); }
.price-card.popular {
  border-color: var(--primary); box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 18px;
  border-radius: 99px; font-size: 12px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.price-card h3 { font-size: 18px; font-weight: 700; color: var(--gray-700); margin-bottom: 4px; }
.price { font-size: 48px; font-weight: 900; letter-spacing: -0.03em; margin: 8px 0 4px; }
.price span { font-size: 16px; font-weight: 500; color: var(--gray-400); }
.price-onetime { font-size: 14px; font-weight: 600; color: var(--gray-400); text-align: center; margin-bottom: 4px; }
.price-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 28px; }
.price-card li {
  padding: 8px 0; font-size: 14px; color: var(--gray-600);
  border-bottom: 1px solid var(--gray-50);
  display: flex; align-items: center; gap: 10px;
}
.price-card li::before {
  content: '';
  display: inline-block; width: 20px; height: 20px; flex-shrink: 0;
  background: var(--green-bg); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* -- Testimonials -- */
.testimonials { padding: 80px 0; background: var(--gray-50); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.testimonial-card {
  background: #fff; border-radius: 16px; padding: 32px;
  border: 1px solid var(--gray-100);
  display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow .2s;
}
.testimonial-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.testimonial-stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }
.testimonial-quote {
  font-size: 15px; line-height: 1.7; color: var(--gray-600);
  flex: 1;
}
.testimonial-author { border-top: 1px solid var(--gray-100); padding-top: 16px; display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: 14px; color: var(--gray-800); }
.testimonial-role { font-size: 13px; color: var(--gray-400); margin-top: 2px; }
.testimonial-industry {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--primary); background: var(--blue-bg);
  padding: 3px 10px; border-radius: 99px; margin-top: 8px;
}

/* -- Final CTA -- */
.final-cta {
  padding: 88px 0; text-align: center;
  background: linear-gradient(135deg, var(--gray-900) 0%, #1e3a5f 100%);
  color: #fff;
}
.final-cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.final-cta p { font-size: 17px; color: rgba(255,255,255,.55); margin-bottom: 32px; }
.final-cta .btn-primary {
  background: #fff; color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.final-cta .btn-primary:hover { background: var(--gray-100); transform: translateY(-1px); }

/* -- Footer -- */
.landing-footer { padding: 32px 0; border-top: 1px solid var(--gray-100); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-inner p { font-size: 13px; color: var(--gray-400); }


/* ================================================================
   AUTH PAGES
   ================================================================ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--gray-50);
}
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-box .subtitle { color: var(--gray-500); margin-bottom: 24px; font-size: 15px; }
.auth-box .form-group { margin-bottom: 16px; }

/* ================================================================
   ONBOARDING
   ================================================================ */
.onboarding { min-height: 100vh; padding: 40px 20px; max-width: 560px; margin: 0 auto; }
.progress-bar { display: flex; gap: 6px; margin-bottom: 40px; }
.progress-bar .step {
  flex: 1; height: 4px; background: var(--gray-200); border-radius: 99px; transition: background .3s;
}
.progress-bar .step.active { background: var(--primary); }
.ob-step { display: none; }
.ob-step.active { display: block; }
.ob-step h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.ob-step p { color: var(--gray-500); margin-bottom: 24px; }
.ob-step textarea { min-height: 120px; }
.invite-box {
  background: var(--gray-100); padding: 16px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.invite-box code { flex: 1; font-size: 14px; word-break: break-all; }
.ob-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.ob-type-btn { padding: 16px 12px; text-align: center; font-size: 14px; border-width: 2px; display: flex; flex-direction: column; align-items: center; }
@media (max-width: 380px) {
  .onboarding { padding: 24px 16px; }
  .ob-type-grid { grid-template-columns: 1fr; }
  .ob-type-btn { flex-direction: row; gap: 10px; text-align: left; padding: 12px 16px; justify-content: flex-start; }
  .ob-type-btn .ob-type-emoji { margin-bottom: 0; }
  .ob-step h2 { font-size: 20px; }
}

/* ================================================================
   VOLUNTEER MAP (app.html)
   ================================================================ */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--gray-200);
  gap: 8px;
}
.app-header > div:first-child { flex: 1; min-width: 0; }
.app-header .campaign { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.app-header .session-badge { font-size: 12px; color: var(--green); font-weight: 600; }
.header-actions { display: flex; gap: 4px; flex-shrink: 0; }
.header-actions .btn { padding: 6px 10px; font-size: 13px; }
@media (max-width: 480px) {
  .app-header { padding: 8px 10px; }
  .app-header .campaign { font-size: 13px; }
  .header-actions .btn { padding: 6px 8px; font-size: 12px; }
}

#map { position: fixed; top: 52px; bottom: 0; left: 0; right: 0; z-index: 1; }

/* Team map markers */
.team-marker { background: none !important; border: none !important; }
#team-map { background: var(--gray-100); }
#team-map .leaflet-popup-content-wrapper { border-radius: 8px; }
#team-map .leaflet-popup-content { margin: 12px; }

/* Route optimization markers */
.route-number { background: none !important; border: none !important; }

/* Active button state */
.btn-ghost.active { background: var(--primary); color: #fff; }

.offline-badge {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #fff; padding: 4px 16px; border-radius: 99px;
  font-size: 12px; font-weight: 600; z-index: 1001; display: none;
}

/* Bottom sheet */
.bottom-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1002;
  background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  padding: 14px 16px; transform: translateY(100%); transition: transform .3s ease;
  max-height: 90vh; max-height: 90dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.bottom-sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 4px; background: var(--gray-300); border-radius: 99px;
  margin: 0 auto 6px;
}
.sheet-name { font-size: 16px; font-weight: 700; }
.sheet-address { color: var(--gray-500); font-size: 13px; margin-bottom: 2px; }
.sheet-notes { font-size: 12px; color: var(--gray-500); margin-bottom: 4px; font-style: italic; }
.sheet-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 4px; }
.sheet-actions button {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 2px; border-radius: var(--radius); border: 1.5px solid var(--gray-200);
  background: #fff; cursor: pointer; font-size: 10px; font-weight: 600; transition: all .15s;
}
.sheet-actions button:hover { border-color: var(--gray-300); }
.sheet-actions button.active { border-color: var(--primary); background: var(--primary-light); }
.sheet-actions .dot { width: 10px; height: 10px; border-radius: 50%; }

/* List view */
.list-view {
  position: fixed; top: 52px; bottom: 0; left: 0; right: 0; z-index: 2;
  background: var(--gray-50); overflow-y: auto;
}
.list-filter {
  position: sticky; top: 0; z-index: 3; background: #fff;
  padding: 10px 16px; display: flex; flex-direction: column; gap: 6px;
  border-bottom: 1px solid var(--gray-200);
}
.list-filter input { width: 100%; font-size: 14px; padding: 8px 12px; box-sizing: border-box; }
.list-filter select { width: 100%; font-size: 14px; padding: 8px; border-radius: var(--radius); border: 1px solid var(--gray-200); box-sizing: border-box; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--gray-100);
}
.list-item-info { flex: 1; min-width: 0; }
.list-item-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-address { font-size: 13px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .badge { font-size: 11px; white-space: nowrap; }
.btn-directions {
  display: flex; align-items: center; gap: 4px; padding: 8px 12px;
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius);
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn-directions svg { width: 14px; height: 14px; fill: currentColor; }

/* Chat panel */
.chat-panel {
  position: fixed; top: 52px; right: 0; bottom: 0; width: 100%; max-width: 360px;
  background: #fff; z-index: 1003; transform: translateX(100%); transition: transform .3s;
  display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(0,0,0,.1);
}
.chat-panel.open { transform: translateX(0); }
.chat-header {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between; font-weight: 700;
}
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; }
.chat-msg { margin-bottom: 12px; }
.chat-msg .author { font-size: 12px; font-weight: 700; color: var(--primary); }
.chat-msg .text { font-size: 14px; }
.chat-msg .time { font-size: 11px; color: var(--gray-500); margin-left: 6px; }
.chat-input {
  padding: 12px; border-top: 1px solid var(--gray-200);
  display: flex; gap: 8px;
}
.chat-input input { flex: 1; }

/* ================================================================
   DASHBOARD
   ================================================================ */
.dash-layout { display: flex; min-height: 100vh; }

.dash-sidebar {
  width: 240px; background: #fff; border-right: 1px solid var(--gray-200);
  padding: 16px 0; flex-shrink: 0; display: flex; flex-direction: column;
}
.dash-sidebar .logo { padding: 0 20px; margin-bottom: 4px; font-size: 18px; }
.dash-sidebar .campaign-label { font-size: 12px; color: var(--gray-500); padding: 0 20px; margin-bottom: 24px; }
.dash-sidebar nav { flex: 1; }
.dash-sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: var(--gray-600); font-size: 14px; font-weight: 500;
  transition: all .15s; border-left: 3px solid transparent;
}
.dash-sidebar nav a:hover { background: var(--gray-50); color: var(--gray-900); text-decoration: none; }
.dash-sidebar nav a.active {
  background: var(--primary-50); color: var(--primary); font-weight: 600;
  border-left-color: var(--primary);
}
.dash-sidebar .sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--gray-200); }
.dash-sidebar .user-info { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dash-sidebar .avatar, .member-card .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.dash-main { flex: 1; padding: 32px; overflow-y: auto; overflow-x: hidden; background: var(--gray-50); }
.dash-main h1 { font-size: 24px; font-weight: 800; margin-bottom: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { padding: 20px; }
.stat-card .stat-value { font-size: 36px; font-weight: 900; letter-spacing: -0.02em; }
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; padding: 10px 14px; background: var(--gray-50);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--gray-500); border-bottom: 1px solid var(--gray-200);
}
td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); }
tr:hover td { background: var(--gray-50); }

/* Sortable table columns */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { background: var(--gray-100); }
th.sortable .sort-icon { margin-left: 4px; font-size: 10px; opacity: 0.4; }
th.sortable .sort-icon::after { content: '⇅'; }
th.sortable.asc .sort-icon { opacity: 1; }
th.sortable.asc .sort-icon::after { content: '↑'; }
th.sortable.desc .sort-icon { opacity: 1; }
th.sortable.desc .sort-icon::after { content: '↓'; }

/* Edit button in table */
.btn-edit { padding: 4px 8px; font-size: 12px; background: var(--gray-100); border: none; border-radius: 4px; cursor: pointer; }
.btn-edit:hover { background: var(--gray-200); }

/* Smart Import */
#drop-zone.drag-over { border-color: var(--primary); background: var(--primary-50); }
.column-mapping-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.column-mapping-row:last-child { border-bottom: none; }
.column-mapping-row .original { font-family: monospace; font-size: 13px; color: var(--gray-600); }
.column-mapping-row .arrow { color: var(--gray-400); }
.column-mapping-row select { padding: 6px 8px; font-size: 13px; min-width: 140px; }
.column-mapping-row .confidence {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--green-bg);
  color: var(--green);
}
.column-mapping-row .confidence.medium { background: var(--amber-bg); color: #92400e; }
.column-mapping-row .confidence.low { background: var(--gray-100); color: var(--gray-500); }
.data-table { font-size: 13px; }
.data-table th { font-size: 11px; padding: 6px 10px; }
.data-table td { padding: 6px 10px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .filters input { width: auto; min-width: 160px; }

/* Tabs */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Sub-tabs */
.sub-tabs { display: flex; gap: 0; }
.sub-tab {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.sub-tab:hover { color: var(--gray-700); }
.sub-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.sub-tab-content { display: none; }
.sub-tab-content.active { display: block; }
.settings-sub-tab-content { display: none; }
.settings-sub-tab-content.active { display: block; }

/* Analytics charts grid */
.analytics-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* Sessions */
.session-card { border: 1px solid var(--gray-200); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.session-card .session-info h3 { font-size: 16px; font-weight: 700; }
.session-card .session-info p { font-size: 13px; color: var(--gray-500); }

/* Team */
.member-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.member-card:last-child { border-bottom: none; }
.member-card .member-info { flex: 1; }
.member-card .member-info .name { font-weight: 600; font-size: 15px; }
.member-card .member-info .role { font-size: 13px; color: var(--gray-500); text-transform: capitalize; }

/* CSV modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius-xl); padding: 28px; width: 100%; max-width: 480px; max-height: 90vh; max-height: 90dvh; overflow-y: auto; box-shadow: var(--shadow-xl); -webkit-overflow-scrolling: touch; }
.modal h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.modal textarea { min-height: 150px; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; position: sticky; bottom: -28px; background: #fff; padding: 12px 0 0; }
@media (max-width: 480px) { .modal-actions { bottom: -16px; } }

@media (max-width: 480px) {
  .modal-overlay { padding: 10px; align-items: flex-start; padding-top: 10px; }
  .modal { padding: 16px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: var(--radius); }
  .modal h2 { font-size: 18px; }
  .modal textarea { min-height: 100px; }
}


.mobile-menu-btn { display: none; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* Nav: hide links, make actions compact */
  .nav-links { display: none; }
  .nav-inner { padding: 10px 0; }
  .logo { font-size: 16px; }
  .logo svg { width: 24px; height: 24px; }
  .nav-actions .btn-ghost { padding: 8px 12px; font-size: 13px; }
  .nav-actions .btn-primary { padding: 8px 16px; font-size: 13px; }

  /* Hero */
  .hero { padding: 32px 0 40px; }
  .hero .container { gap: 32px; }
  .hero-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 16px; }
  .hero h1 { font-size: 28px; line-height: 1.15; }
  .hero-sub { font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn-lg { padding: 12px 20px; font-size: 14px; flex: 1; min-width: 0; }
  .hero-proof { font-size: 12px; }

  /* Phone mockup */
  .hero-visual { justify-content: center; }
  .phone-mock { width: 220px; height: 380px; border-radius: 28px; padding: 8px; }
  .phone-mock::before { width: 60px; height: 18px; top: 8px; }
  .phone-screen { border-radius: 20px; }
  .mock-header { padding: 24px 12px 8px; font-size: 11px; }
  .mock-bottom-bar { padding: 10px; }
  .mock-stat { font-size: 11px; }

  /* Proof bar */
  .proof-bar { padding: 20px 0; }
  .proof-logos { font-size: 12px; gap: 8px; }
  .proof-logos .sep { display: none; }

  /* Section headers */
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 24px; }
  .section-header p { font-size: 14px; }

  /* Features */
  .features { padding: 56px 0; }
  .political-features { padding: 56px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 20px; }

  /* Industries */
  .industries { padding: 48px 0; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .industry-card { padding: 20px 12px; }
  .industry-icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .industry-card h4 { font-size: 14px; }
  .industry-card p { font-size: 12px; }

  /* How it works */
  .how-it-works { padding: 56px 0; }
  .steps-grid { flex-direction: column; align-items: center; gap: 8px; }
  .step-card { padding: 16px; }
  .step-arrow { transform: rotate(90deg); padding-top: 0; }

  /* Pricing */
  .pricing { padding: 56px 0; }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .price-card { padding: 28px 20px; }
  .price-card.popular { transform: none; }
  .price { font-size: 40px; }

  /* Testimonials */
  .testimonials { padding: 56px 0; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonial-card { padding: 24px; }

  /* Final CTA */
  .final-cta { padding: 56px 0; }
  .final-cta h2 { font-size: 24px; }
  .final-cta p { font-size: 15px; }

  /* Footer */
  .footer-inner { justify-content: center; text-align: center; flex-direction: column; }

  /* Dashboard */
  .dash-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1100;
    transform: translateX(-100%); transition: transform .3s;
    box-shadow: 4px 0 20px rgba(0,0,0,.1);
  }
  .dash-sidebar.open { transform: translateX(0); }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.3);
    z-index: 1050; backdrop-filter: blur(2px);
  }
  .sidebar-overlay.open { display: block; }
  .mobile-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--gray-200);
  }
  .hamburger, .mobile-menu-btn { background: none; border: none; font-size: 22px; cursor: pointer; padding: 4px; display: block; }
  .dash-main { padding: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  /* Analytics charts - stack on mobile */
  .analytics-charts-grid { grid-template-columns: 1fr; }
  #tab-analytics .table-wrap { overflow-x: auto; }
  #tab-analytics table { min-width: 600px; }
  /* Admin tables - scrollable on mobile */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 700px; }
  /* Admin h1 smaller on mobile */
  .dash-main h1 { font-size: 24px; }
  /* Admin action buttons wrap */
  .dash-main td .btn { margin-bottom: 4px; }
}

@media (min-width: 769px) {
  .mobile-header { display: none; }
  .hero .container { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 48px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .sheet-actions { max-width: 400px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 52px; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   JOIN PAGE
   ================================================================ */
.join-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--gray-50);
}

/* ================================================================
   TRIAL BANNER & OVERLAY
   ================================================================ */
.trial-banner {
  padding: 10px 16px; text-align: center; font-size: 14px; font-weight: 600; border-radius: 8px; margin-bottom: 16px;
}
.trial-banner.trial-active { background: var(--primary-light); color: var(--primary-dark); }
.trial-banner.trial-expired { background: #fef2f2; color: #dc2626; }
.trial-banner a { color: inherit; text-decoration: underline; }

.trial-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.trial-overlay-content {
  background: #fff; border-radius: 12px; padding: 32px; max-width: 400px; text-align: center;
}
.trial-overlay-content h2 { margin-bottom: 8px; }
.trial-overlay-content p { color: var(--gray-500); margin-bottom: 20px; font-size: 14px; }

/* ================================================================
   BILLING PRICING MODAL
   ================================================================ */
/* Plan badge in sidebar */
.plan-badge {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 600; background: var(--primary-light); color: var(--primary);
  transition: background .2s;
}
.plan-badge:hover { background: var(--primary-50); text-decoration: none; }
.plan-badge.trial { background: var(--amber-bg); color: #b45309; }
.plan-badge.expired { background: var(--red-bg); color: #dc2626; }

.plan-details-features { list-style: none; padding: 0; margin: 16px 0 0; }
.plan-details-features li {
  padding: 10px 0; font-size: 14px; color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 10px;
}
.plan-details-features li::before {
  content: '';
  display: inline-block; width: 20px; height: 20px; flex-shrink: 0;
  background: var(--green-bg); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

.billing-pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.billing-pricing-card {
  background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 24px 16px; text-align: center; cursor: pointer; position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.billing-pricing-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.billing-pricing-card.recommended { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.billing-pricing-card.current { border-color: var(--gray-300); cursor: default; opacity: 0.7; }
.billing-pricing-card.current:hover { border-color: var(--gray-300); box-shadow: none; }
.billing-rec-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 3px 14px;
  border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.billing-pricing-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.billing-price { font-size: 32px; font-weight: 900; margin: 8px 0; letter-spacing: -0.02em; }
.billing-price span { font-size: 14px; font-weight: 500; color: var(--gray-400); }
.billing-pricing-card ul { list-style: none; margin-bottom: 16px; }
.billing-pricing-card li {
  padding: 4px 0; font-size: 13px; color: var(--gray-600);
}

@media (max-width: 480px) {
  .billing-pricing-grid { grid-template-columns: 1fr; gap: 12px; }
  .billing-pricing-card { padding: 16px 12px; }
  .billing-price { font-size: 26px; }
  .billing-pricing-card h3 { font-size: 14px; }
  .billing-pricing-card li { font-size: 12px; padding: 2px 0; }
  .billing-pricing-card ul { margin-bottom: 12px; }
}

/* ================================================================
   NOTIFICATION BADGE
   ================================================================ */
.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  margin-left: 4px;
}

/* ================================================================
   RESPONSIVE UTILITIES
   ================================================================ */
.show-mobile { display: none; }
.hide-mobile { display: inline; }
@media (max-width: 480px) {
  .show-mobile { display: inline; }
  .hide-mobile { display: none; }
  .industries-grid { grid-template-columns: 1fr; }
  .testimonials-grid { gap: 12px; }
  .testimonial-card { padding: 20px; }
  .feature-grid { gap: 10px; }
}

/* Floating Dashboard Button (FAB) for mobile */
.dash-fab {
  position: fixed;
  bottom: 24px;
  left: 16px;
  z-index: 900;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
}
.dash-fab svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}
.dash-fab:hover, .dash-fab:active {
  background: #1d4ed8;
  transform: scale(1.05);
}
/* Show FAB only on mobile when active */
@media (max-width: 600px) {
  .dash-fab.active {
    display: flex;
    animation: fab-pulse 2s ease-in-out 3;
  }
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5); }
  50% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.8); }
}

/* ---- MARKER CLUSTERING ---- */
.marker-cluster {
  background-clip: padding-box;
  border-radius: 50%;
}
.marker-cluster div {
  width: 36px;
  height: 36px;
  margin-left: 2px;
  margin-top: 2px;
  text-align: center;
  border-radius: 50%;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.marker-cluster-small {
  background-color: rgba(37, 99, 235, 0.4);
}
.marker-cluster-small div {
  background-color: rgba(37, 99, 235, 0.8);
}
.marker-cluster-medium {
  background-color: rgba(251, 191, 36, 0.4);
}
.marker-cluster-medium div {
  background-color: rgba(251, 191, 36, 0.9);
}
.marker-cluster-large {
  background-color: rgba(239, 68, 68, 0.4);
}
.marker-cluster-large div {
  background-color: rgba(239, 68, 68, 0.8);
}
.marker-cluster:hover {
  cursor: pointer;
}

/* Individual pins when clustered */
.cluster-pin-container {
  background: transparent !important;
  border: none !important;
}
.cluster-pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}
.cluster-pin.highlighted {
  border-color: #2563eb;
  border-width: 3px;
  transform: scale(1.3);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.4);
}
.cluster-pin.active-checkin {
  border-color: #2563eb;
  border-width: 3px;
  transform: scale(2);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3), 0 3px 8px rgba(37, 99, 235, 0.4);
  animation: checkin-pulse 2s ease-in-out infinite;
  z-index: 9999 !important;
}
@keyframes checkin-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3), 0 3px 8px rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.15), 0 3px 12px rgba(37, 99, 235, 0.5); }
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-300);
  border-radius: 24px;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Weather Banner */
.weather-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  z-index: 500;
}
/* App page: weather banner fixed below header */
body > .weather-banner {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 999;
}
.weather-banner .weather-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.weather-banner .weather-temp {
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
}
.weather-banner .weather-sep {
  color: var(--gray-300);
}
.weather-banner .weather-desc {
  color: var(--gray-600);
}
.weather-banner .weather-alert {
  color: var(--amber);
  font-weight: 600;
}
.weather-banner .weather-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  flex-shrink: 0;
}
.weather-banner .weather-close:hover {
  background: var(--gray-200);
  color: var(--gray-600);
}
@media (max-width: 600px) {
  .weather-banner {
    font-size: 12px;
    padding: 6px 10px;
    gap: 6px;
  }
  .weather-banner .weather-icon { font-size: 16px; }
}
