/* ========================================
   CheckMyPropertyTax.com Design System - Premium Edition
   Mobile-First Responsive CSS
   ======================================== */

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

/* ========================================
   CSS Variables & Premium Theme
   ======================================== */
:root {
  /* Brand Colors - CheckMyPropertyTax.com */
  --color-primary: #5398f7;
  --color-primary-light: #7DB4F9;
  --color-primary-dark: #2B7CF5;
  --color-navy: #0D1C2E;
  --color-navy-light: #1A2F45;
  --color-sky: #EDF2F7;
  --color-sky-light: #F7FAFC;
  --color-green: #48BB78;
  --color-teal: #7BE9D4;
  --color-sand: #F7F5F2;
  --color-slate: #718096;
  --color-slate-light: #A0AEC0;
  --color-info: #5398f7;
  --color-opportunity: #FFC107;
  --color-favorable: #48BB78;
  --color-error: #E53E3E;
  
  /* Brand Gradients */
  --gradient-brand: linear-gradient(135deg, #5398f7 0%, #48BB78 100%);
  --gradient-navy: linear-gradient(135deg, #0D1C2E 0%, #1A2F45 100%);
  --gradient-sky: linear-gradient(180deg, #F7FAFC 0%, #EDF2F7 100%);
  --gradient-hero: linear-gradient(135deg, rgba(237, 242, 247, 0.95) 0%, rgba(247, 250, 252, 0.98) 100%);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(13, 28, 46, 0.12);
  
  /* Semantic Color Mapping */
  --bg: #ffffff;
  --bg2: var(--color-sand);
  --bg-gradient: var(--gradient-hero);
  --ink: var(--color-navy);
  --muted: var(--color-slate);
  --brand: var(--color-primary);
  --brand-hover: var(--color-primary-dark);
  --card: #ffffff;
  --ring: #e2e8f0;
  
  /* Premium Shadow System */
  --shadow-xs: 0 1px 2px 0 rgba(13, 28, 46, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(13, 28, 46, 0.06);
  --shadow: 0 4px 6px -1px rgba(13, 28, 46, 0.08), 0 2px 4px -1px rgba(13, 28, 46, 0.04);
  --shadow-md: 0 8px 12px -2px rgba(13, 28, 46, 0.1), 0 4px 6px -2px rgba(13, 28, 46, 0.05);
  --shadow-lg: 0 16px 24px -4px rgba(13, 28, 46, 0.12), 0 8px 12px -4px rgba(13, 28, 46, 0.08);
  --shadow-xl: 0 24px 48px -12px rgba(13, 28, 46, 0.18), 0 12px 24px -8px rgba(13, 28, 46, 0.12);
  --shadow-ambient: 0 0 0 1px rgba(13, 28, 46, 0.04), 0 1px 3px 0 rgba(13, 28, 46, 0.06);
  --shadow-glow: 0 0 20px rgba(31, 94, 255, 0.2);
  
  /* Alert/Status Colors */
  --error-bg: #fef2f2;
  --error-text: var(--color-error);
  --error-border: #ffcdd2;
  
  --success-bg: #e8f5e9;
  --success-text: var(--color-favorable);
  --success-border: var(--color-favorable);
  
  --warning-bg: #fff8e1;
  --warning-text: #f57c00;
  --warning-border: var(--color-opportunity);
  
  --info-bg: var(--color-sky);
  --info-text: var(--color-info);
  --info-border: var(--color-info);
  
  /* Premium Spacing Scale */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;
  
  --section-pad: clamp(48px, 8vw, 96px);
  
  /* Premium Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 999px;
  
  /* Premium Typography Scale */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  --font-size-5xl: 48px;
  --font-size-6xl: 60px;
  
  /* Premium Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Typography Fonts */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   Base & Reset Styles
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Typography
   ======================================== */
h1 {
  font-family: var(--font-body);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-body);
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.25;
  margin: 2rem 0 1rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(18px, 2.5vw, 20px);
  line-height: 1.4;
  margin: 1.5rem 0 0.75rem;
  color: var(--ink);
  font-weight: 600;
}

h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-hover);
}

ul, ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin: 0 0 0.5rem;
}

.muted {
  color: var(--muted);
}

.last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ========================================
   Layout & Containers
   ======================================== */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 28px;
  }
}

.content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: var(--font-size-base);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}

@media (min-width: 640px) {
  .container {
    padding: 20px 28px;
  }
}

/* ========================================
   Navigation - Mobile First
   ======================================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .nav {
    margin-bottom: 24px;
    flex-wrap: nowrap;
  }
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5em;
  color: var(--ink);
}

.brand img {
  height: 100px;
  width: auto;
}

@media (min-width: 640px) {
  .brand {
    font-size: 2em;
  }
  
  .brand img {
    height: 140px;
  }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (min-width: 640px) {
  .nav-left {
    gap: 32px;
  }
}

.nav-left-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

@media (min-width: 640px) {
  .nav-left-links {
    gap: 24px;
  }
}

.nav-left-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.nav-left-links a:hover {
  color: var(--brand);
}

.nav-left-links a.admin-active,
.nav-left-links a.active,
.nav-left-links a.nav-link-dashboard {
  color: var(--brand);
  font-weight: 600;
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown > span {
  color: #1C2B4D;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  min-height: 44px;
}

.nav-dropdown:hover > span {
  color: var(--brand-hover);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 20px var(--shadow-lg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--ring);
  z-index: 1000;
  padding: 8px 0;
  margin-top: 0;
}

.nav-dropdown:hover .dropdown-content,
.dropdown-content:hover,
.nav-dropdown.active .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--ink);
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-content a:hover {
  background: var(--bg2);
  color: var(--brand);
}

.dropdown-content a.active {
  background: var(--brand);
  color: #fff;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: var(--transition);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  bottom: -8px;
}

/* Right side navigation buttons */
.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (min-width: 640px) {
  .nav-right {
    gap: 16px;
  }
}

/* ========================================
   Premium Buttons with Micro-Interactions
   ======================================== */
.btn {
  position: relative;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-weight: 600;
  cursor: pointer;
  font-size: var(--font-size-base);
  font-family: var(--font-body);
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-ambient);
}

.btn-outline::before {
  background: var(--gradient-brand);
}

.btn-outline:hover {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline:hover::before {
  opacity: 0.08;
}

.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ring);
  box-shadow: var(--shadow-sm);
}

.btn-secondary::before {
  background: var(--color-sky-light);
}

.btn-secondary:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 16px 32px;
  font-size: var(--font-size-lg);
  min-height: 56px;
  border-radius: var(--radius-lg);
}

.btn-small {
  padding: 10px 18px;
  font-size: var(--font-size-sm);
  min-height: 40px;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* Navigation link buttons */
.nav-link-btn {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-link-btn:hover {
  background: var(--bg2);
  color: var(--brand);
}

.nav-btn-primary {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-btn-primary:hover {
  background: var(--brand-hover);
  color: #fff;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.input-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-input,
.input-field {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--ring);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  background: var(--bg);
  color: var(--ink);
  transition: var(--transition);
  font-family: var(--font-body);
  min-height: 48px;
  box-shadow: var(--shadow-ambient);
}

.form-input:hover,
.input-field:hover {
  border-color: var(--color-slate-light);
}

.form-input:focus,
.input-field:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(31, 94, 255, 0.1);
  transform: translateY(-1px);
}

.form-input::placeholder,
.input-field::placeholder {
  color: var(--color-slate-light);
}

textarea.form-input,
textarea.input-field {
  min-height: 120px;
  resize: vertical;
}

/* ========================================
   Premium Cards
   ======================================== */
.card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .card {
    padding: 32px;
  }
}

.card h2 {
  margin: 0 0 16px;
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--ink);
}

.card h3 {
  margin: 0 0 12px;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--ink);
}

.card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.card p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Grid Layouts - Mobile First
   ======================================== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .grid {
    gap: 24px;
    margin-bottom: 24px;
  }
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .data-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.data-item {
  padding: 12px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
}

.data-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.data-value {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--ink);
}

/* ========================================
   Tables - Mobile Responsive
   ======================================== */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px var(--shadow);
  min-width: 600px;
}

@media (min-width: 640px) {
  table {
    min-width: auto;
  }
}

th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  border-bottom: 2px solid var(--ring);
  background: var(--bg2);
}

@media (min-width: 640px) {
  th {
    padding: 16px;
  }
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--ring);
  color: var(--ink);
  vertical-align: top;
}

@media (min-width: 640px) {
  td {
    padding: 16px;
  }
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(248, 250, 252, 0.5);
}

tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.3);
}

/* ========================================
   Premium Hero Section
   ======================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-top: 20px;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 32px;
    min-height: 80vh;
    align-items: center;
  }
}

.value-prop {
  padding-right: 0;
  text-align: center;
}

@media (min-width: 640px) {
  .value-prop {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .value-prop {
    padding-right: 40px;
  }
}

.value-prop h1 {
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.05;
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-weight: 600;
}

.value-prop h2 {
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: #2E8B57;
  font-weight: 600;
}

.value-prop .subtitle {
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-size: var(--font-size-lg);
  line-height: 1.6;
  font-weight: 400;
}

.value-prop .features-intro {
  color: var(--ink);
  margin: 0 0 1.5rem;
  font-size: var(--font-size-base);
  font-weight: 500;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: var(--font-size-base);
  line-height: 1.5;
  font-weight: 400;
  text-align: left;
}

.benefits li::before {
  content: '•';
  color: var(--brand);
  font-weight: bold;
  font-size: 20px;
  flex-shrink: 0;
}

/* Premium Form Column */
.form-column {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  height: fit-content;
}

@media (min-width: 640px) {
  .form-column {
    padding: 48px;
  }
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h3 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.form-header p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  font-weight: 400;
}

/* ========================================
   Badges & Pills
   ======================================== */
.badge {
  display: inline-block;
  border: 1px solid var(--ring);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  background: var(--bg2);
  color: var(--ink);
  font-size: var(--font-size-sm);
}

.pill {
  border: 1px solid var(--ring);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  background: var(--bg2);
  color: var(--ink);
  font-weight: 500;
  font-size: var(--font-size-sm);
}

/* Status Badges */
.property-status,
.protest-badge,
.time-badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.status-ready,
.protest-higher {
  background: var(--info-bg);
  color: var(--info-text);
}

.status-pending,
.protest-moderate,
.protest-lower {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.status-filed {
  background: #dbeafe;
  color: #2563eb;
}

.protest-insufficient {
  background: #f3f4f6;
  color: #6b7280;
}

.time-badge {
  background: var(--color-sky);
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ========================================
   Messages & Alerts
   ======================================== */
.error-message {
  background: var(--error-bg);
  color: var(--error-text);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--error-border);
}

.success-message {
  background: var(--success-bg);
  color: var(--success-text);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--success-border);
}

.warning-message {
  background: var(--warning-bg);
  color: var(--warning-text);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--warning-border);
}

/* ========================================
   Progress & Timeline
   ======================================== */
.progress-bar {
  background: var(--bg2);
  border-radius: var(--radius-sm);
  height: 8px;
  margin: 8px 0;
  overflow: hidden;
}

.progress-fill {
  background: var(--brand);
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.3s ease;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.timeline li::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ring);
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline li.completed::before {
  background: var(--brand);
}

.timeline li.current::before {
  background: #2563eb;
}

.timeline-content h4 {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--ink);
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

/* ========================================
   Highlights & Special Sections
   ======================================== */
.highlight,
.highlight-box {
  background: linear-gradient(120deg, var(--color-sky) 0%, rgba(230, 238, 255, 0.5) 100%);
  padding: 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--brand);
  margin: 1.5rem 0;
}

.highlight p,
.highlight-box p {
  margin: 0;
}

.intro-box {
  background: linear-gradient(135deg, var(--color-sky) 0%, rgba(230, 238, 255, 0.3) 100%);
  border: 1px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 1.5rem 0;
}

.intro-box p {
  margin: 0;
}

.tip-box,
.success-tip {
  background: var(--info-bg);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 20px;
  color: var(--success-text);
  font-size: var(--font-size-sm);
}

.step,
.step-card,
.faq-item {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px var(--shadow);
}

@media (min-width: 640px) {
  .step,
  .step-card,
  .faq-item {
    padding: 24px;
  }
}

.step h3,
.step-card h3,
.faq-item h3 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--font-size-lg);
}

.step p,
.step-card p,
.faq-item p {
  margin: 0 0 1rem;
}

.step p:last-child,
.step-card p:last-child,
.faq-item p:last-child {
  margin: 0;
}

.step-card {
  position: relative;
}

.step-number {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--brand);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-base);
}

.success-note {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 2rem 0;
}

.success-note p {
  margin: 0;
}

.success-note strong {
  color: var(--success-text);
}

.tips-section {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 2rem 0;
  box-shadow: 0 1px 3px var(--shadow);
}

@media (min-width: 640px) {
  .tips-section {
    padding: 24px;
  }
}

.tips-section h2 {
  margin-top: 0;
}

.tip-item {
  margin: 1rem 0;
  padding: 12px;
  background: var(--color-sky);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.tip-item strong {
  color: var(--brand);
}

/* ========================================
   Stats & Property Cards
   ======================================== */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  text-align: center;
  padding: 16px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
}

.stat-value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-card {
  margin-bottom: 24px;
}

.property-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.property-address {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--ink);
}

/* ========================================
   Login & Auth Specific
   ======================================== */

/* Auth Overlay for Homepage */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 28, 46, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  opacity: 1;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.auth-overlay.hidden {
  display: none;
  opacity: 0;
}

.auth-overlay-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--spacing-xl) 0;
}

/* Auth Page Background */
.auth-page-body {
  background: linear-gradient(135deg, rgba(247, 249, 252, 0.8) 0%, rgba(252, 253, 254, 0.9) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  overflow-y: auto;
}

.auth-page-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--spacing-xl) 0;
}

/* Logo at top */
.auth-logo {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.auth-logo img {
  height: 70px;
  width: auto;
  max-width: 280px;
}

@media (min-width: 640px) {
  .auth-logo img {
    height: 90px;
    max-width: 320px;
  }
}

/* Auth Card */
.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(13, 28, 46, 0.08);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .auth-card {
    padding: 48px 48px;
  }
}

/* Auth Titles */
.auth-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 var(--spacing-sm) 0;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-slate);
  margin: 0 0 var(--spacing-2xl) 0;
}

.auth-text {
  font-size: var(--font-size-base);
  color: var(--color-slate);
  margin: 0 0 var(--spacing-2xl) 0;
  line-height: 1.5;
}

.auth-email {
  color: var(--color-navy);
  font-weight: 600;
}

/* Auth Form */
.auth-form {
  text-align: left;
}

.auth-form .form-group {
  margin-bottom: var(--spacing-xl);
}

.auth-form .btn {
  margin-top: var(--spacing-lg);
}

/* Auth Icon */
.auth-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
}

/* Auth Tip */
.auth-tip {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md);
  background: var(--color-sky-light);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-slate);
  text-align: left;
  line-height: 1.5;
}

/* Auth Footer Link */
.auth-footer-link {
  margin-top: var(--spacing-xl);
  font-size: var(--font-size-sm);
  color: var(--color-slate);
}

.auth-footer-link .link-primary {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer-link .link-primary:hover {
  text-decoration: underline;
}

/* Auth Page Footer */
.auth-page-footer {
  margin-top: var(--spacing-2xl);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-slate);
}

.auth-page-footer .link-muted {
  color: var(--color-slate);
  text-decoration: none;
}

.auth-page-footer .link-muted:hover {
  color: var(--color-navy);
  text-decoration: underline;
}

/* Code Input Styling */
.code-input {
  text-align: center;
  font-size: 24px;
  letter-spacing: 8px;
  font-weight: 600;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

/* Spinner Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(83, 152, 247, 0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

/* Primary Button for Auth */
.btn-primary {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(83, 152, 247, 0.3);
}

.btn-primary:disabled {
  background: var(--color-slate-light);
  cursor: not-allowed;
  transform: none;
}

/* Legacy Login Container (keep for compatibility) */
.login-container {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .login-container {
    padding: 48px 40px;
  }
}

.logo {
  margin-bottom: 32px;
  text-align: center;
}

.logo img {
  height: 48px;
  width: auto;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .logo img {
    height: 60px;
  }
}

.welcome {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 32px 0;
}

.signin-btn {
  width: 100%;
  background: #1f2328;
  color: white;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  transition: var(--transition);
  min-height: 44px;
}

.signin-btn:hover {
  background: #2c3136;
}

.signin-btn:disabled {
  background: #8b949e;
  cursor: not-allowed;
}

.forgot-link {
  color: #0969da;
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  display: block;
  text-align: left;
  margin-top: 8px;
}

.forgot-link:hover {
  text-decoration: underline;
}

.footer-links {
  margin-top: 48px;
  font-size: var(--font-size-sm);
  color: #656d76;
  line-height: 1.4;
}

.footer-links a {
  color: #0969da;
  text-decoration: none;
  margin: 0 4px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.privacy-note {
  margin-top: 12px;
  font-size: var(--font-size-sm);
  color: #656d76;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .success-icon {
    font-size: 80px;
    margin-bottom: 24px;
  }
}

.success-title {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px 0;
}

.success-text {
  color: #656d76;
  font-size: var(--font-size-base);
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.success-email {
  font-weight: 600;
  color: var(--ink);
}

/* ========================================
   Dashboard Specific
   ======================================== */
.dashboard {
  margin-top: 0;
}

.welcome h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.welcome p {
  color: var(--muted);
  margin: 0;
  font-size: var(--font-size-base);
}

/* ========================================
   Admin Specific
   ======================================== */
.admin-header {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px var(--shadow);
}

@media (min-width: 640px) {
  .admin-header {
    padding: 24px;
  }
}

.admin-title {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--ink);
}

.admin-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: var(--font-size-base);
}

.search-box {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px var(--shadow);
}

@media (min-width: 640px) {
  .search-box {
    padding: 24px;
  }
}

.results-section {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 1px 3px var(--shadow);
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .results-section {
    padding: 24px;
  }
}

.results-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--ink);
}

.run-btn {
  background: var(--brand);
  color: white;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  min-height: 44px;
}

.run-btn:hover {
  background: var(--brand-hover);
}

.run-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* ========================================
   Premium Footer
   ======================================== */
.footer,
footer {
  margin-top: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--ring);
  color: var(--muted);
  text-align: center;
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

.footer a,
footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  transition: var(--transition-fast);
}

.footer a:hover,
footer a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Footer Counties Bar */
.footer-counties {
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ring);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-counties-label {
  display: block;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-slate-light);
  margin-bottom: 6px;
}

.footer-counties-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  color: var(--muted);
}

.footer-counties-list li {
  margin: 0;
  white-space: nowrap;
}

.footer-counties-list li:not(:last-child)::after {
  content: "\00b7";
  color: var(--color-slate-light);
  margin: 0 6px;
}

.footer-counties-abbr {
  color: var(--color-slate-light);
  font-size: 11px;
}

@media (max-width: 480px) {
  .footer-counties-list {
    font-size: 11px;
    line-height: 1.8;
  }
}

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

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-24 {
  margin-bottom: 24px;
}

.phase-col {
  font-weight: 600;
  color: var(--brand);
}

.dates-col {
  color: var(--muted);
  font-style: italic;
}

/* Form utilities */
.form-description {
  margin: 0 0 2rem 0;
  color: var(--muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  font-weight: 400;
}

.form-headline {
  margin: 0 0 0.75rem 0;
  color: var(--ink);
  font-size: var(--font-size-xl);
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
}

@media (min-width: 640px) {
  .form-headline {
    font-size: var(--font-size-2xl);
  }
}

.form-subheadline {
  margin: 0 0 1.5rem 0;
  color: var(--muted);
  font-size: var(--font-size-sm);
  text-align: center;
}

.form-benefits-list {
  margin: 0 0 1.5rem 0;
  padding: 0 0 0 1.25rem;
  color: var(--ink);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  text-align: left;
}

.form-benefits-list li {
  margin-bottom: 0.25rem;
}

.form-label-light {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.form-input-group {
  margin-bottom: 24px;
}

.trust-signals {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.trust-signals span {
  white-space: nowrap;
}

.checkbox-group {
  margin-top: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.link-underline {
  color: var(--ink);
  text-decoration: underline;
}

.form-footer-text {
  margin: 20px 0 0 0;
  font-size: var(--font-size-sm);
  color: var(--muted);
  text-align: center;
}

.form-serving-line {
  margin: 12px 0 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  line-height: 1.6;
}

/* Navigation utilities */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--ring);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links-group {
  display: flex;
  gap: 24px;
  align-items: center;
}

.user-email {
  color: var(--muted);
  font-size: var(--font-size-sm);
}

/* Login page utilities */
.login-page-container {
  margin-top: 80px;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Loading state utilities */
.loading-container {
  text-align: center;
  padding: 40px 20px;
}

.loading-emoji {
  font-size: 48px;
  margin-bottom: 20px;
}

/* Admin utilities */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-loading-text {
  text-align: center;
  color: var(--muted);
  padding: 40px;
}

/* Footer utilities */
.footer-admin-links {
  margin-top: 8px;
  font-size: 12px;
  display: none; /* Hidden by default, shown only to admin via JS */
}

/* Table column width utilities */
.col-20 {
  width: 20%;
}

.col-30 {
  width: 30%;
}

.text-muted-italic {
  font-style: italic;
  color: var(--muted);
}

/* ========================================
   Illustrations
   ======================================== */
.illustration {
  margin-top: 3rem;
  text-align: center;
}

.illustration-emoji {
  font-size: 80px;
  opacity: 0.8;
}

@media (min-width: 640px) {
  .illustration-emoji {
    font-size: 120px;
  }
}

/* ========================================
   Responsive Helpers
   ======================================== */
.mobile-only {
  display: block;
}

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

.desktop-only {
  display: none;
}

@media (min-width: 640px) {
  .desktop-only {
    display: block;
  }
}

/* ========================================
   Pricing Grid - Responsive
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

/* ========================================
   Premium How It Works Section
   ======================================== */
.how-it-works-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 var(--spacing-lg);
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 4rem;
}

.how-it-works-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.015em;
}

.how-it-works-subtitle {
  font-size: var(--font-size-lg);
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.how-it-works-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg);
  border: 1px solid var(--ring);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.how-it-works-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand);
}

.how-it-works-icon {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-xl);
  display: inline-block;
  transition: var(--transition-bounce);
}

.how-it-works-card:hover .how-it-works-icon {
  transform: scale(1.1);
}

.how-it-works-step-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}

.how-it-works-step-text {
  font-size: var(--font-size-base);
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  .nav,
  .footer,
  footer,
  .btn,
  button {
    display: none !important;
  }
  
  .card,
  .table-container {
    page-break-inside: avoid;
  }
}

/* ========================================
   New Hero Section - Mockup Design
   ======================================== */
.hero-new {
  position: relative;
  background-image: 
    linear-gradient(135deg, rgba(247, 250, 252, 0.92) 0%, rgba(247, 250, 252, 0.75) 35%, rgba(247, 250, 252, 0.15) 70%, rgba(247, 250, 252, 0.05) 100%),
    url('/hero-background.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: var(--spacing-4xl) var(--spacing-lg);
  min-height: 650px;
}

.hero-new-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.hero-new-left {
  padding-right: var(--spacing-xl);
  padding-top: 8px;
}

.hero-new-headline {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 14px 0;
}

.hero-new-callout {
  margin-bottom: var(--spacing-2xl);
  font-size: var(--font-size-base);
  color: var(--color-navy);
}

.hero-new-disclaimer {
  color: var(--color-slate);
  font-size: var(--font-size-sm);
}

.hero-new-dashboard-preview {
  max-width: 400px;
  margin-top: var(--spacing-2xl);
}

.hero-new-dashboard-preview img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.result-preview-card {
  background: #F7F5F2;
  border-radius: var(--radius-xl);
  border: 1px solid #E0DDD8;
  overflow: hidden;
  max-width: 460px;
}

.result-preview-header {
  padding: 24px 28px 20px;
}

.result-preview-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 12px;
}

.result-preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.result-preview-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.result-preview-badge--alert {
  background: #fef2f2;
  color: #dc2626;
}

.result-preview-badge--opportunity {
  background: #f0fdfa;
  color: #0d9488;
}

.result-preview-address {
  font-size: 15px;
  font-weight: 600;
  color: #0D1C2E;
  letter-spacing: 0.3px;
}

.result-preview-savings {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6f9f4 100%);
  border-top: 1px solid #E0DDD8;
  border-bottom: 1px solid #E0DDD8;
  padding: 24px 28px;
  text-align: center;
}

.result-preview-savings-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 8px;
  line-height: 1.4;
}

.result-preview-savings-amount {
  font-size: 40px;
  font-weight: 800;
  color: #00B88A;
  line-height: 1.1;
  margin-bottom: 6px;
}

.result-preview-savings-annual {
  font-size: 14px;
  color: #6A778B;
  font-weight: 500;
}

.result-preview-stats {
  padding: 20px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.result-preview-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #E0DDD8;
}

.result-preview-stat:last-child {
  border-bottom: none;
}

.result-preview-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: #6A778B;
  text-transform: none;
  letter-spacing: 0;
}

.result-preview-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #0D1C2E;
}

.result-preview-county-line {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #6A778B;
  max-width: 460px;
}

.result-preview-subcopy {
  margin: 20px 0 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  max-width: 460px;
}

.hero-urgency-line {
  font-size: 15px;
  line-height: 1.5;
  color: #374151;
  font-weight: 500;
  font-style: italic;
  margin: 4px 0 0 0;
}

.hero-bridge-copy {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  margin: 0 0 20px 0;
  max-width: 460px;
}

.hero-transition-line {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin: 20px 0 0 0;
  max-width: 460px;
  line-height: 1.5;
}

.hero-new-right {
  display: flex;
  justify-content: flex-end;
}

.hero-new-form-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: var(--spacing-3xl);
  box-shadow: 
    0 24px 48px -16px rgba(13, 28, 46, 0.18),
    0 12px 24px -12px rgba(13, 28, 46, 0.12);
  max-width: 560px;
  width: 100%;
}

.form-footer-disclaimer {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-slate);
  margin-top: var(--spacing-md);
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .hero-new-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  
  .hero-new {
    background-image: 
      linear-gradient(to bottom, rgba(247, 250, 252, 0.95) 0%, rgba(247, 250, 252, 0.85) 60%, rgba(247, 250, 252, 0.5) 100%),
      url('/hero-background.png');
    background-position: center bottom;
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .hero-new-left {
    padding-right: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .hero-new-right {
    justify-content: center;
  }
  
  .hero-new-dashboard-preview {
    max-width: 100%;
  }

  .result-preview-card {
    max-width: 480px;
    width: 100%;
  }

  .result-preview-subcopy {
    text-align: center;
  }

  .result-preview-county-line {
    text-align: center;
  }

  .hero-bridge-copy {
    text-align: center;
    max-width: 520px;
  }

  .hero-transition-line {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-new {
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: auto;
    background-image: 
      linear-gradient(to bottom, rgba(247, 250, 252, 0.96) 0%, rgba(247, 250, 252, 0.90) 70%, rgba(247, 250, 252, 0.6) 100%),
      url('/hero-background.png');
  }
  
  .hero-new-headline {
    font-size: 28px;
  }

  .hero-new-form-card {
    padding: 28px 20px;
  }

  .hero-new-left p {
    font-size: 13px;
  }

  .result-preview-savings-amount {
    font-size: 34px;
  }

  .result-preview-header {
    padding: 20px 20px 16px;
  }

  .result-preview-savings {
    padding: 20px;
  }

  .result-preview-stats {
    padding: 16px 20px 20px;
  }

  .result-preview-county-line {
    margin-top: 10px;
    font-size: 11px;
    text-align: center;
  }

  .hero-urgency-line {
    font-size: 13px;
  }

  .hero-bridge-copy {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .hero-transition-line {
    font-size: 15px;
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .hero-new {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .hero-new-headline {
    font-size: 24px;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .hero-new-left {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .hero-new-form-card {
    padding: 20px 14px;
  }

  .hero-new-container {
    gap: var(--spacing-lg);
  }

  .result-preview-savings-amount {
    font-size: 30px;
  }

  .result-preview-stat-value {
    font-size: 16px;
  }

  .result-preview-stat-label {
    font-size: 10px;
  }

  .hero-bridge-copy {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .hero-transition-line {
    font-size: 14px;
    margin-top: 14px;
  }
}

/* ========================================
   New How It Works Section - Mockup Design
   ======================================== */
.how-it-works-new {
  padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-2xl) var(--spacing-lg);
  background: white;
}

.how-it-works-new-container {
  max-width: 1200px;
  margin: 0 auto;
}

.how-it-works-new-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
  margin: 0 0 var(--spacing-xs) 0;
}

.how-it-works-new-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-slate);
  text-align: center;
  margin: 0 0 var(--spacing-2xl) 0;
}

.how-it-works-new-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2xl);
}

.how-it-works-new-card {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  border: 2px solid #93b5f5;
  border-radius: 12px;
  background: white;
}

.how-it-works-new-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3b6fe0;
  color: white;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}

.how-it-works-new-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto var(--spacing-md);
  width: 80px;
  height: 80px;
}

.how-it-works-new-step {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 var(--spacing-md) 0;
}

.how-it-works-new-desc {
  color: var(--color-slate);
  font-size: var(--font-size-base);
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

.how-it-works-new-price {
  color: var(--color-green);
  font-weight: 700;
}

.how-it-works-new-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.how-it-works-new-list li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--color-slate);
  font-size: var(--font-size-base);
}

.how-it-works-new-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 700;
}

.how-it-works-new-disclaimer {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-slate);
  margin-top: var(--spacing-3xl);
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .how-it-works-new-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
}

/* Hide Radar "Powered by" branding */
.radar-powered {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ========================================
   Percentile Bar Chart - Summary Status
   ======================================== */

/* Callout Box */
.percentile-callout-box {
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
  border-left: 4px solid #0d9488;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.percentile-chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
  margin: 20px 0;
}

/* Left side: Scale labels */
.percentile-scale {
  position: relative;
  height: 300px;
  width: 45px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.percentile-scale-label {
  position: absolute;
  right: 8px;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* Center: Bar chart */
.percentile-bar-wrapper {
  flex: 0 0 120px;
  height: 300px;
  position: relative;
}

.percentile-bar {
  width: 120px;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.percentile-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px;
}

/* NEW COLOR SCHEME - Reversed (Green at top = good) */
.percentile-segment-upper-new {
  background: linear-gradient(180deg, #48BB78 0%, #38A169 100%);
  flex: 0 0 60%;
}

.percentile-segment-middle-new {
  background: linear-gradient(180deg, #FFC107 0%, #FFB300 100%);
  flex: 0 0 15%;
}

.percentile-segment-lower-new {
  background: linear-gradient(180deg, #FF8C42 0%, #FF7420 100%);
  flex: 0 0 25%;
}

/* Labels inside segments */
.percentile-segment-label {
  font-size: 11px;
  font-weight: 600;
  color: white;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  padding: 4px;
  word-wrap: break-word;
  max-width: 100%;
}

/* Right side: Arrow indicator */
.percentile-arrow-container {
  position: relative;
  height: 300px;
  width: 200px;
  margin-left: 8px;
}

.percentile-arrow-right {
  position: absolute;
  left: -8px;
  transform: translateY(-50%);
  z-index: 10;
}

.percentile-arrow-label {
  position: absolute;
  left: 28px;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: #0d9488;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Tooltip */
.percentile-tooltip {
  position: absolute;
  left: 28px;
  top: 20px;
  transform: translateY(-50%);
  background: rgba(13, 148, 136, 0.95);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 240px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.percentile-arrow-container:hover .percentile-tooltip {
  opacity: 1;
}

/* Legend and description below chart (keeping for backward compatibility) */
.percentile-info-bottom {
  margin-top: 24px;
}

.percentile-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.percentile-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.percentile-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.percentile-legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .percentile-callout-box {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .percentile-chart-container {
    gap: 12px;
    padding: 16px;
  }
  
  .percentile-bar-wrapper {
    flex: 0 0 100px;
    height: 250px;
  }
  
  .percentile-bar {
    width: 100px;
  }
  
  .percentile-scale {
    height: 250px;
    width: 40px;
  }
  
  .percentile-arrow-container {
    height: 250px;
    width: 160px;
  }
  
  .percentile-scale-label {
    font-size: 12px;
  }
  
  .percentile-segment-label {
    font-size: 10px;
  }
  
  .percentile-arrow-label {
    font-size: 11px;
  }
  
  .percentile-tooltip {
    max-width: 180px;
    font-size: 11px;
    padding: 10px 12px;
  }
}

/* ========================================
   Fairness Gauge - Horizontal Meter
   ======================================== */

.fairness-gauge-container {
  margin: 28px 0 24px;
  width: 100%;
}

.fairness-gauge-bar {
  position: relative;
  width: 100%;
  height: 44px;
  background: linear-gradient(90deg, 
    #10b981 0%, 
    #059669 20%, 
    #fbbf24 40%, 
    #f59e0b 55%, 
    #ef4444 75%, 
    #dc2626 100%);
  border-radius: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fairness-gauge-pin {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateX(-50%) translateY(-50%);
  width: 12px;
  height: 60px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.fairness-gauge-pin-top {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid #1f2937;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  margin-bottom: 2px;
}

.fairness-gauge-pin::after {
  content: '';
  position: absolute;
  top: 12px;
  width: 3px;
  height: 36px;
  background: linear-gradient(180deg, #1f2937 0%, #374151 100%);
  border-radius: 1.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.fairness-gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}

.fairness-gauge-label-left,
.fairness-gauge-label-right {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.4;
}

.fairness-gauge-label-left {
  flex: 0 1 auto;
  text-align: left;
}

.fairness-gauge-label-right {
  flex: 0 1 auto;
  text-align: right;
}

/* Data Display Row */
.fairness-data-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 24px;
  background: var(--bg2);
  border-radius: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.fairness-data-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.fairness-data-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.fairness-data-value {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.5px;
}

.fairness-data-divider {
  font-size: 28px;
  color: #d1d5db;
  opacity: 0.4;
  height: 40px;
  display: flex;
  align-items: center;
}

/* Savings tooltip */
.tooltip-trigger {
  position: relative;
}

.savings-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  font-size: 12px;
  font-weight: 400;
  padding: 10px 12px;
  border-radius: 6px;
  width: 240px;
  text-align: center;
  line-height: 1.4;
  z-index: 100;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.savings-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}

.tooltip-trigger:hover .savings-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fairness-gauge-bar {
    height: 40px;
    border-radius: 20px;
  }
  
  .fairness-gauge-pin {
    height: 56px;
  }
  
  .fairness-gauge-pin-top {
    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 8px;
  }
  
  .fairness-gauge-pin::after {
    width: 2.5px;
    height: 32px;
    top: 10px;
  }
  
  .fairness-gauge-labels {
    margin-top: 10px;
    font-size: 10px;
    gap: 8px;
  }
  
  .fairness-data-row {
    gap: 20px;
    padding: 16px 20px;
    margin-top: 20px;
  }
  
  .fairness-data-value {
    font-size: 18px;
  }
  
  .fairness-data-label {
    font-size: 10px;
  }
  
  .fairness-data-divider {
    font-size: 24px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .fairness-gauge-bar {
    height: 36px;
  }
  
  .fairness-gauge-labels {
    font-size: 9px;
  }
  
  .fairness-data-row {
    gap: 16px;
    padding: 14px 16px;
  }
  
  .fairness-data-value {
    font-size: 16px;
  }
}

/* ========================================
   Timeline Component (Success Page)
   ======================================== */

.timeline-container {
  margin: 30px 0;
  padding: 0;
}

.timeline-step {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 30px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.timeline-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg2);
  border: 3px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #9ca3af;
  z-index: 2;
  position: relative;
}

.timeline-step-complete .timeline-step-number {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.timeline-connector {
  width: 3px;
  flex: 1;
  background: #e5e7eb;
  position: absolute;
  top: 44px;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-step:last-child .timeline-connector {
  display: none;
}

.timeline-step-content {
  flex: 1;
  padding-top: 4px;
}

.timeline-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timeline-step-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.timeline-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-badge-complete {
  background: #d1fae5;
  color: #065f46;
}

.timeline-badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.timeline-badge-action {
  background: #fee2e2;
  color: #991b1b;
}

.timeline-step-list {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.timeline-step-list li {
  position: relative;
  padding-left: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.timeline-step-list li:last-child {
  margin-bottom: 0;
}

.timeline-step-list li::before {
  content: '•';
  position: absolute;
  left: -12px;
  color: var(--ink);
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-step {
    gap: 16px;
  }
  
  .timeline-step-number {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  
  .timeline-connector {
    top: 38px;
  }
  
  .timeline-step-header h3 {
    font-size: 1rem;
  }
  
  .timeline-badge {
    font-size: 11px;
    padding: 3px 10px;
  }
  
  .timeline-step-list li {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .timeline-step {
    gap: 12px;
  }
  
  .timeline-step-number {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-width: 2px;
  }
  
  .timeline-connector {
    width: 2px;
    top: 34px;
  }
  
  .timeline-step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .timeline-step-list {
    padding-left: 16px;
  }
}

/* ========================================
   Global Mobile Overrides (≤480px)
   ======================================== */
@media (max-width: 480px) {
  .wrap {
    padding: 12px;
  }

  .container {
    padding: 12px;
  }

  .brand img {
    height: 60px;
  }

  .nav {
    gap: 8px;
    margin-bottom: 10px;
  }

  .nav-left {
    gap: 10px;
  }

  .nav-left-links {
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
  }

  .nav-left-links a {
    font-size: 13px;
    padding: 6px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-right {
    gap: 8px;
    font-size: 13px;
  }

  .nav-right .btn {
    font-size: 13px;
    padding: 8px 12px;
  }

  .nav-dropdown > span {
    font-size: 13px;
  }

  .dropdown-content {
    min-width: 160px;
    left: auto;
    right: 0;
  }

  h1 {
    font-size: clamp(22px, 6vw, 32px);
  }

  h2 {
    font-size: clamp(18px, 5vw, 26px);
  }

  h3 {
    font-size: clamp(16px, 4.5vw, 22px);
  }

  .footer,
  footer {
    padding: 16px 0;
    margin-top: 1rem;
    text-align: center;
  }

  .footer a,
  footer a {
    margin: 4px 6px;
    font-size: 13px;
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }

  .btn {
    font-size: 14px;
    padding: 12px 16px;
  }

  .btn-block {
    width: 100%;
  }

  .card, .card-glass {
    padding: 16px;
    border-radius: 12px;
  }

  .auth-page-body {
    padding: 16px 12px;
  }

  .auth-page-wrapper {
    padding: 16px 0;
  }

  .auth-logo {
    margin-bottom: 20px;
  }

  .auth-logo img {
    height: 56px;
    max-width: 220px;
  }

  .auth-card {
    padding: 24px 16px;
    border-radius: 10px;
  }

  .auth-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .auth-form .form-group {
    margin-bottom: 16px;
  }

  .auth-form .btn {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  .form-input {
    min-height: 48px;
    font-size: 16px;
  }

  .code-input {
    font-size: 20px;
    letter-spacing: 6px;
  }

  .auth-page-footer {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.5;
    padding: 0 4px;
  }

  .auth-page-footer a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    margin: 0 6px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .mobile-stack {
    flex-direction: column !important;
  }

  .mobile-full-width {
    width: 100% !important;
    min-width: 0 !important;
  }

  .mobile-hide {
    display: none !important;
  }

  .mobile-text-center {
    text-align: center !important;
  }

  .mobile-gap-sm {
    gap: 8px !important;
  }
}
