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

:root {
  /* Color Palette - Premium HSL Colors */
  --primary: hsl(224, 85%, 55%);
  --primary-hover: hsl(224, 85%, 48%);
  --primary-light: hsl(224, 90%, 96%);
  --primary-glow: rgba(37, 99, 235, 0.15);
  
  --accent: hsl(199, 95%, 48%);
  --accent-light: hsl(199, 90%, 95%);
  
  --success: hsl(150, 84%, 37%);
  --success-light: hsl(150, 75%, 95%);
  
  --warning: hsl(38, 92%, 50%);
  --warning-light: hsl(38, 90%, 95%);
  
  --danger: hsl(350, 80%, 50%);
  --danger-light: hsl(350, 80%, 96%);

  /* Neutrals */
  --bg-app: hsl(210, 40%, 98%);
  --bg-card: hsl(0, 0%, 100%);
  --text-main: hsl(222, 47%, 12%);
  --text-muted: hsl(215, 16%, 47%);
  --border-color: hsl(214, 32%, 91%);
  
  --bg-dark: hsl(222, 47%, 9%);
  --text-dark: hsl(210, 40%, 98%);

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 4px 12px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 24px -6px rgba(15, 23, 42, 0.08), 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 4px 20px -4px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 20px 50px rgba(37, 99, 235, 0.18);
  
  /* Borders & Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand strong {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 800;
}

/* Layout Utilities */
.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.white-section {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Navigation */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-b: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.03);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-info strong {
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-info span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: -2px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), hsl(224, 85%, 52%));
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-light {
  background-color: #fff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background-color: var(--bg-dark);
  color: #fff;
}

.btn-dark:hover {
  background-color: #1e293b;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Hero Section */
.hero {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(96, 165, 250, 0.15), transparent 35%),
              radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.12), transparent 30%),
              linear-gradient(180deg, #fff, var(--bg-app) 100%);
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-ticks {
  display: flex;
  gap: 24px;
}

.hero-tick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.hero-tick svg {
  color: var(--success);
  width: 18px;
  height: 18px;
}

/* Card General */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

/* Calculator & Wizard Card */
.wizard-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-glow);
  padding: 32px;
  position: relative;
}

.wizard-header {
  margin-bottom: 24px;
}

.wizard-title {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.wizard-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* Wizard Steps Indicator */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.step-indicator {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-app);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
}

.step-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;
}

.step-indicator.active .step-dot {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.step-indicator.active .step-label {
  color: var(--primary);
}

.step-indicator.completed .step-dot {
  background-color: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-indicator.completed .step-label {
  color: var(--success);
}

/* Wizard Form Step Panes */
.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-group label span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-app);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-suffix {
  position: relative;
}

.input-suffix input {
  padding-right: 48px;
}

.input-suffix::after {
  content: attr(data-suffix);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 14px;
}

/* Select Styling */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

/* City Info Alert */
.info-alert {
  background-color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: hsl(224, 76%, 35%);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.info-alert svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.info-alert.warning {
  background-color: var(--warning-light);
  border-color: rgba(245, 158, 11, 0.15);
  color: hsl(38, 92%, 25%);
}

.info-alert.warning svg {
  color: var(--warning);
}

.info-alert.danger {
  background-color: var(--danger-light);
  border-color: rgba(239, 68, 68, 0.12);
  color: hsl(350, 80%, 25%);
}

.info-alert.danger svg {
  color: var(--danger);
}

/* Wizard Buttons */
.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}

.wizard-footer .btn {
  flex: 1;
}

.wizard-footer .btn-back {
  flex: 0 0 auto;
}

/* Wizard Results Page */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-card {
  background: linear-gradient(135deg, var(--bg-dark), #1e293b);
  border-radius: var(--radius-md);
  padding: 24px;
  color: #fff;
  text-align: center;
}

.result-heading {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 800;
  margin-bottom: 8px;
}

.result-value {
  font-size: 40px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  letter-spacing: -0.02em;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-subcard {
  background-color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.1);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

.result-subcard .result-heading {
  color: var(--text-muted);
}

.result-subcard .result-value {
  font-size: 22px;
  color: var(--primary);
}

.result-explainer {
  font-size: 13px;
  color: var(--text-muted);
  background-color: var(--bg-app);
  padding: 14px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

/* File Upload Field */
.file-upload-wrapper {
  position: relative;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--bg-app);
}

.file-upload-wrapper:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.file-upload-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.file-upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.file-selected-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  display: none;
}

/* Three Cards Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  padding: 32px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.benefit-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Timeline/Steps Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.step-card {
  padding: 24px;
  position: relative;
}

.step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 36px;
  font-weight: 900;
  color: rgba(37, 99, 235, 0.08);
  font-family: 'Outfit', sans-serif;
}

.step-card .num-badge {
  background-color: var(--primary);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Split Info Section */
.split-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.split-left h2 {
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.split-left p {
  color: var(--text-muted);
  font-size: 16px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.checklist-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 14px;
}

.checklist-item svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.faq-left h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--bg-app);
  color: var(--primary);
}

.faq-icon {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

details.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '⌄';
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

details.faq-item[open] summary::after {
  transform: rotate(180deg);
}

details.faq-item p {
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  margin-top: -1px;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--bg-dark) 40%, hsl(222, 47%, 15%));
  border-radius: var(--radius-lg);
  padding: 60px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  box-shadow: var(--shadow-lg);
}

.cta-left h2 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 12px;
}

.cta-left p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  max-width: 600px;
}

/* Footer */
.footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-disclaimer {
  font-size: 11px;
  color: hsl(215, 12%, 60%);
  margin-top: 24px;
  line-height: 1.6;
  text-align: justify;
}

/* ==========================================================================
   ADMIN DASHBOARD CSS
   ========================================================================== */
.admin-body {
  background-color: hsl(210, 40%, 96%);
}

.admin-header {
  background-color: var(--bg-dark);
  color: #fff;
  padding: 16px 0;
  box-shadow: var(--shadow-md);
}

.admin-header .brand-info strong {
  background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-header .brand-info span {
  color: var(--accent);
}

.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.admin-title-row {
  margin: 32px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-title-row h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 24px;
}

.stat-card:nth-child(2) .stat-icon {
  background-color: var(--success-light);
  color: var(--success);
}
.stat-card:nth-child(3) .stat-icon {
  background-color: var(--accent-light);
  color: var(--accent);
}
.stat-card:nth-child(4) .stat-icon {
  background-color: var(--warning-light);
  color: var(--warning);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.stat-number {
  font-size: 26px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  margin-top: 2px;
}

/* Table Controls */
.filter-bar {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.filter-select {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  background-color: var(--bg-app);
}

.filter-select:focus {
  border-color: var(--primary);
}

.search-input {
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  width: 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.search-input:focus {
  border-color: var(--primary);
  width: 280px;
}

/* Leads Table Card */
.table-card {
  padding: 0;
  margin-bottom: 60px;
  box-shadow: var(--shadow-sm);
}

.table-wrapper {
  overflow-x: auto;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.leads-table th {
  background-color: var(--bg-app);
  padding: 16px 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.leads-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
  vertical-align: middle;
}

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

.leads-table tr {
  transition: background-color 0.2s ease;
}

.leads-table tr:hover {
  background-color: hsla(210, 40%, 96%, 0.4);
}

.lead-name-col {
  display: flex;
  flex-direction: column;
}

.lead-name-col strong {
  color: var(--text-main);
  font-size: 15px;
}

.lead-name-col span {
  font-size: 12px;
  color: var(--text-muted);
}

.lead-city-badge {
  display: inline-block;
  background-color: var(--bg-app);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.badge-status.neu {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-status.prüfung, .badge-status.in-prüfung {
  background-color: var(--accent-light);
  color: var(--accent);
}

.badge-status.rentabel {
  background-color: var(--success-light);
  color: var(--success);
}

.badge-status.nicht-rentabel {
  background-color: var(--danger-light);
  color: var(--danger);
}

.badge-status.abgeschlossen {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: min(700px, 90%);
  max-height: 85vh;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 22px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 140px);
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h3 {
  font-size: 15px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.detail-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.detail-value.highlight {
  color: var(--primary);
  font-size: 18px;
}

.detail-value.success {
  color: var(--success);
  font-size: 18px;
}

/* File Download / View In Modal */
.file-download-box {
  background-color: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-box-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-box-icon {
  font-size: 28px;
}

.file-box-name {
  font-weight: 700;
  font-size: 14px;
}

.file-box-size {
  font-size: 12px;
  color: var(--text-muted);
}

/* Admin Actions section in Modal */
.admin-notes-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-notes-area textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-app);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  resize: vertical;
  min-height: 80px;
}

.admin-notes-area textarea:focus {
  border-color: var(--primary);
  background-color: #fff;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid, .split-grid, .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .benefits-grid, .steps-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px;
  }
  
  .cta-left p {
    margin: 0 auto;
  }
  
  .cta .btn {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .nav-links, .footer-links {
    display: none;
  }
  
  .hero-ticks {
    flex-direction: column;
    gap: 12px;
  }
  
  .benefits-grid, .steps-grid, .stats-grid, .checklist-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-input {
    width: 100%;
  }
  
  .search-input:focus {
    width: 100%;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADMIN BURGER MENU & SIDEBAR CSS
   ========================================================================== */

.burger-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.burger-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.burger-btn svg {
  display: block;
}

.admin-sidebar {
  position: fixed;
  top: 77px; /* Header height */
  left: -280px; /* Hidden by default */
  width: 280px;
  height: calc(100vh - 77px);
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  z-index: 99;
  transition: var(--transition);
  padding: 24px 16px;
  overflow-y: auto;
}

.admin-sidebar.open {
  left: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-link:hover {
  background-color: var(--bg-app);
  color: var(--primary);
}

.sidebar-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.sidebar-icon {
  font-size: 18px;
}

/* Panel Switch Animation */
.admin-panel-view {
  display: none;
}

.admin-panel-view.active {
  display: block;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
