/* ==========================================================================
   GYVO — Vehicle Cost Reality Check Stylesheet (Top-Class Design System)
   ========================================================================== */

:root {
  --bg: #090e0b;
  --card-bg: #101914;
  --card-inner: #15221b;
  --card-hover: #1b2c23;
  --ink: #f0f5f2;
  --ink-dim: #a3b8ab;
  --ink-faint: #6c8274;
  --green: #34d399;
  --green-dark: #10b981;
  --green-glow: rgba(52, 211, 153, 0.18);
  --green-subtle: rgba(52, 211, 153, 0.08);
  --gold: #f5a623;
  --gold-glow: rgba(245, 166, 35, 0.16);
  --line: #203328;
  --line-bright: rgba(52, 211, 153, 0.35);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.16);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  --bg: #f7faf8;
  --card-bg: #ffffff;
  --card-inner: #f0f5f2;
  --card-hover: #e7efe9;
  --ink: #0d1712;
  --ink-dim: #4d6154;
  --ink-faint: #758b7e;
  --green: #059669;
  --green-dark: #047857;
  --green-glow: rgba(5, 150, 105, 0.15);
  --green-subtle: rgba(5, 150, 105, 0.08);
  --gold: #b45309;
  --gold-glow: rgba(180, 83, 9, 0.12);
  --line: #dbe4de;
  --line-bright: rgba(5, 150, 105, 0.35);
  --danger: #dc2626;
  --danger-glow: rgba(220, 38, 38, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.05);
}

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

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.5;
  transition: background-color .25s ease, color .25s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .bg-glow {
  background: radial-gradient(ellipse at center, rgba(5, 150, 105, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.top-nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 5px 14px 5px;
  background: linear-gradient(135deg, rgba(14, 20, 16, 0.94) 0%, rgba(8, 12, 10, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 
    0 8px 24px -4px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 1.5px;
}

[data-theme="light"] .brand-logo {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 243, 0.95) 100%);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 6px 20px -2px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.brand-logo:hover {
  border-color: rgba(255, 255, 255, 0.22);
  opacity: 0.95;
}

[data-theme="light"] .brand-logo:hover {
  border-color: rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.brand-logo .site-logo-img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: filter 0.25s ease;
}

[data-theme="light"] .brand-logo .site-logo-img {
  filter: brightness(0.95) contrast(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-logo .nav-brand-tagline {
  font-size: 9px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.brand-logo .tagline-bullet {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

[data-theme="light"] .brand-logo .nav-brand-tagline {
  color: #0d8a5b;
  text-shadow: none;
}

[data-theme="light"] .brand-logo .tagline-bullet {
  color: #fbbf24;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: var(--shadow-md);
}

.back-btn:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.theme-toggle-btn {
  background: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all .2s ease;
  box-shadow: var(--shadow-md);
}

.theme-toggle-btn:hover {
  border-color: var(--green);
  color: var(--green);
  transform: scale(1.05);
}

/* ==========================================================================
   Header Section
   ========================================================================== */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px 80px;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  padding: 24px 10px 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--green-subtle);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--ink);
}

h1 .highlight {
  background: linear-gradient(135deg, var(--green) 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="light"] h1 .highlight {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub {
  color: var(--ink-dim);
  font-size: 15.5px;
  font-weight: 500;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ==========================================================================
   Main Calculator Card
   ========================================================================== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  padding: 36px 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Step Progress Bar Indicator
   ========================================================================== */
.step-progress-bar {
  margin-bottom: 32px;
  position: relative;
}

.step-progress-track {
  position: absolute;
  top: 14px;
  left: 36px;
  right: 36px;
  height: 3px;
  background: var(--line);
  z-index: 1;
  border-radius: 2px;
}

.step-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--green-glow);
}

.step-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.step-node-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card-inner);
  border: 2px solid var(--line);
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.step-node-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.step-node.active .step-node-dot {
  background: var(--card-bg);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.step-node.active .step-node-label {
  color: var(--green);
}

.step-node.completed .step-node-dot {
  background: var(--green);
  border-color: var(--green);
  color: #04241a;
}

.step-node.completed .step-node-label {
  color: var(--ink-dim);
}

/* ==========================================================================
   Step Transitions & Headers
   ========================================================================== */
.step {
  display: none;
  animation: stepFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.on {
  display: block;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Step 1: Vehicle Count Choices
   ========================================================================== */
.choices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0 32px;
}

.choice {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 14px;
  text-align: center;
  background: var(--card-inner);
  cursor: pointer;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  user-select: none;
}

.choice i {
  font-size: 26px;
  color: var(--ink-dim);
  transition: color .2s ease, transform .2s ease;
}

.choice:hover {
  border-color: rgba(52, 211, 153, 0.4);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.choice:hover i {
  color: var(--green);
  transform: scale(1.08);
}

.choice.selected {
  border-color: var(--green);
  background: var(--green-subtle);
  color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 8px 20px var(--green-glow);
}

.choice.selected i {
  color: var(--green);
}

.choice input {
  display: none;
}

/* ==========================================================================
   Step 2: Form Inputs, Grid, and Segmented Controls
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin: 16px 0;
}

label {
  font-size: 13.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Hide Chrome/Safari/Firefox number spinners for clean input look */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input,
select {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  background: var(--card-inner);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  box-sizing: border-box;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
  cursor: pointer;
}

[data-theme="light"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select option {
  background-color: #101914;
  color: #f0f5f2;
  padding: 12px;
  font-size: 14.5px;
  font-family: var(--font-body);
}

[data-theme="light"] select option {
  background-color: #ffffff;
  color: #0d1712;
}

input::placeholder {
  color: var(--ink-faint);
  font-weight: 400;
  opacity: 0.85;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3.5px var(--green-glow);
  background: var(--card-bg);
}

input.field-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px var(--danger-glow) !important;
  animation: fieldShake 0.35s ease;
}

@keyframes fieldShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-4px);
  }

  40% {
    transform: translateX(4px);
  }

  60% {
    transform: translateX(-3px);
  }

  80% {
    transform: translateX(3px);
  }
}

/* Segmented Control matching input box dimensions */
.type-segmented-control {
  display: flex;
  gap: 4px;
  background: var(--card-inner);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  overflow: hidden;
  align-items: stretch;
}

.type-btn {
  flex: 1 1 0%;
  width: 50%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 12px;
  background: transparent;
  border: 1px solid transparent;
  outline: none;
  color: var(--ink-dim);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-sizing: border-box;
}

.type-btn i {
  font-size: 17px;
  transition: transform 0.2s ease;
}

.type-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .type-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.type-btn.active {
  background: var(--card-bg);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .type-btn.active {
  background: #ffffff;
  color: var(--green-dark);
  border: 1px solid rgba(5, 150, 105, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Range Sliders
   ========================================================================== */
.slider {
  background: var(--card-inner);
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 16px;
  margin: 16px 0;
  transition: border-color .2s ease;
}

.slider:hover {
  border-color: rgba(52, 211, 153, 0.3);
}

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

.sh span strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.sh span small {
  color: var(--ink-dim);
  font-size: 12.5px;
  font-weight: 500;
  display: block;
  margin-top: 2px;
  line-height: 1.3;
}

.sh strong:last-child {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

input[type=range] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  outline: none;
  padding: 0;
  margin: 16px 0 4px;
  accent-color: var(--green);
  cursor: pointer;
  border: none;
}

/* ==========================================================================
   Buttons & Actions
   ========================================================================== */
button {
  border: 0;
  border-radius: 14px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
  box-sizing: border-box;
  min-height: 52px;
}

.primary {
  background: var(--green);
  color: #062419;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 20px var(--green-glow);
  letter-spacing: 0.01em;
}

[data-theme="light"] .primary {
  color: #ffffff;
}

.primary:hover {
  background: #2ec287;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(52, 211, 153, 0.4);
}

.btn-continue {
  width: 100%;
  font-size: 16.5px;
  padding: 16px 32px;
  min-height: 54px;
}

.secondary {
  background: var(--card-inner);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  min-height: 52px;
}

.secondary:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--card-hover);
  transform: translateY(-1px);
}

.buttons {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  align-items: center;
}

.buttons.single-btn {
  justify-content: stretch;
}

.buttons.single-btn button {
  width: 100%;
}

/* ==========================================================================
   Step 3: Vehicle List Items
   ========================================================================== */
.vehicle-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-inner);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 12px 0;
  gap: 16px;
  transition: border-color .2s ease, transform .2s ease;
}

.vehicle-card-item:hover {
  border-color: rgba(52, 211, 153, 0.35);
}

.vehicle-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.vehicle-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-subtle);
  border: 1px solid var(--line-bright);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.vehicle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vehicle-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vehicle-name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.vehicle-fuel-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(245, 166, 35, 0.12);
  color: var(--gold);
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.vehicle-fuel-pill.petrol {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.3);
}

.vehicle-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vehicle-tag {
  font-size: 12.5px;
  color: var(--ink-dim);
  font-weight: 500;
}

.vehicle-tag.cost {
  color: var(--green);
  font-weight: 700;
  font-family: var(--font-mono);
}

.vehicle-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all .2s ease;
}

.action-btn:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.action-btn.delete-btn {
  padding: 0 10px;
  color: var(--ink-dim);
}

.action-btn.delete-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-glow);
}

/* ==========================================================================
   Step 4: Results & Intelligence Dashboard
   ========================================================================== */
.hero-stat-block {
  text-align: center;
  padding: 12px 0 24px;
}

.big {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--green) 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  margin: 6px 0;
}

[data-theme="light"] .big {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.stat {
  background: var(--card-inner);
  border: 1px solid var(--line);
  padding: 20px 16px;
  border-radius: 16px;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease;
}

.stat:hover {
  border-color: rgba(52, 211, 153, 0.35);
  transform: translateY(-2px);
}

.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.stat small {
  color: var(--ink-dim);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.km {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.12) 0%, rgba(16, 185, 129, 0.15) 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--ink);
  text-align: center;
  padding: 24px;
  border-radius: 18px;
  margin: 22px 0;
}

[data-theme="light"] .km {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(5, 150, 105, 0.12) 100%);
  border-color: rgba(5, 150, 105, 0.3);
}

.km small {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.km b {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  display: block;
  color: var(--green);
  margin: 6px 0;
  letter-spacing: -0.02em;
}

.km span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
}

.mix {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--card-inner);
  border: 1px solid var(--line);
  padding: 24px 28px;
  border-radius: 18px;
  margin: 22px 0;
}

.pie {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}

.pie:after {
  content: "Cost Mix";
  position: absolute;
  inset: 34px;
  background: var(--card-inner);
  border-radius: 50%;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink-dim);
}

.line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
}

.line span {
  color: var(--ink-dim);
  font-weight: 500;
}

.life {
  text-align: center;
  background: var(--card-inner);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 18px;
  margin: 22px 0;
}

.life small {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}

.life b {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--green);
  display: block;
  margin: 6px 0;
}

.protect {
  text-align: center;
  background: linear-gradient(135deg, #0f241a 0%, #07150e 100%);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #ffffff;
  padding: 36px 30px;
  border-radius: 20px;
  margin: 26px 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .protect {
  background: linear-gradient(135deg, #063d28 0%, #04241a 100%);
}

.protect small {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.protect h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 10px 0 12px;
  color: #ffffff;
}

.protect p {
  max-width: 620px;
  margin: 10px auto;
  line-height: 1.6;
  font-size: 14.5px;
  color: #c2d6cd;
}

.protect button {
  background: var(--green);
  color: #04241a;
  margin-top: 16px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 26px;
  box-shadow: 0 4px 18px rgba(52, 211, 153, 0.35);
}

.protect button:hover {
  background: #2ec287;
  transform: translateY(-2px);
}

.note {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  margin-top: 18px;
  line-height: 1.55;
  text-align: center;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notification {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: rgba(18, 26, 22, 0.95);
  border: 1px solid rgba(245, 166, 35, 0.45);
  color: #f7ede2;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 166, 35, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90%;
}

.toast-notification.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.toast-icon {
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #ffffff;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .step-progress-bar {
    margin-bottom: 24px;
  }

  .step-progress-track {
    left: 20px;
    right: 20px;
  }

  .step-node-label {
    font-size: 10px;
  }

  .step-node-dot {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .choices {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .mix {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .buttons {
    flex-direction: row;
    gap: 10px;
  }

  .buttons button {
    flex: 1;
    height: 48px;
    padding: 0 16px;
  }

  .vehicle-card-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .vehicle-item-left {
    width: 100%;
  }

  .vehicle-item-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .vehicle-item-actions .action-btn {
    flex: 1;
    height: 40px;
  }

  .vehicle-item-actions .action-btn.delete-btn {
    flex: 0 0 44px;
  }
}

@media (max-width: 480px) {
  .top-nav {
    padding: 16px 16px 0;
  }

  main {
    padding: 12px 14px 70px;
  }

  .card {
    padding: 22px 16px;
  }

  h1 {
    font-size: 26px;
  }

  .type-btn {
    font-size: 12.5px;
    padding: 8px 6px;
    gap: 5px;
  }

  .type-btn i {
    font-size: 15px;
  }

  .buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .buttons button {
    width: 100%;
    min-height: 52px;
  }
}

/* ==========================================================================
   Gyvo Family Vehicle TCO Calculator Layout & Components
   ========================================================================== */
.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 80px;
  position: relative;
  z-index: 1;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.sticky {
  position: sticky;
  top: 24px;
}

.step-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.step-row .step {
  height: 6px;
  flex: 1;
  border-radius: 99px;
  background: var(--line);
  transition: all 0.3s ease;
  display: block;
}

.step-row .step.on {
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--green);
  margin: 28px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--ink-dim);
  font-size: 11.5px;
  font-family: var(--font-mono);
  margin-top: 6px;
}

.range-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 14px;
  align-items: center;
}

.range-edit input[type=number] {
  text-align: right;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
}

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

.help {
  color: var(--ink-dim);
  font-size: 12.5px;
  margin-top: 6px;
  line-height: 1.45;
}

.market-note {
  display: none;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.45;
}

.market-note.show {
  display: block;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--card-inner);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 16px 0;
  gap: 16px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.toggle:hover {
  border-color: var(--line-bright);
}

.switch {
  width: 48px;
  height: 26px;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  box-sizing: border-box;
}

.switch:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.switch:hover {
  border-color: rgba(52, 211, 153, 0.4);
}

.switch.on {
  background: linear-gradient(135deg, var(--green) 0%, #10b981 100%);
  border-color: var(--green);
  box-shadow: 0 0 14px var(--green-glow), inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.switch.on:after {
  transform: translateX(22px);
  box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.25);
}

.finance {
  display: none;
  background: var(--card-inner);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 12px;
}

.finance.show {
  display: block;
}

.finance-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 16px;
}

.choice.on {
  border-color: var(--green);
  background: var(--green-subtle);
  color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.side-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.side-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

.side-sub {
  color: var(--ink-dim);
  font-size: 13px;
  margin-top: 4px;
  font-weight: 500;
}

.vehicle-chip {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--card-inner);
  transition: border-color 0.2s;
}

.vehicle-chip:hover {
  border-color: var(--line-bright);
}

.vehicle-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
}

.vehicle-chip small {
  color: var(--ink-dim);
  font-size: 12px;
}

.empty {
  padding: 36px 20px;
  text-align: center;
  background: var(--card-inner);
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--ink-dim);
}

.empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--green-subtle);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
  border: 1px solid var(--line-bright);
}

.empty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.empty p {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 0;
  line-height: 1.45;
}

.summary-mini {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.summary-mini .number {
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-display);
  margin: 4px 0 14px;
}

#results {
  display: none;
}

.results-head {
  padding: 36px 40px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid var(--line-bright);
  color: var(--ink);
  border-radius: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.results-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.mega {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 6px;
  background: linear-gradient(135deg, var(--green) 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .mega {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.monthly {
  color: var(--ink-dim);
  font-size: 16.5px;
  font-weight: 500;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.metric {
  background: var(--card-inner);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric:hover {
  transform: translateY(-2px);
  border-color: var(--line-bright);
}

.metric .n {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--green);
  letter-spacing: -0.02em;
}

.metric p {
  color: var(--ink-dim);
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 500;
}

.breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pie-wrap {
  display: grid;
  place-items: center;
  margin: 20px 0 24px;
}

.pie {
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pie:after {
  content: "Annual TCO";
  position: absolute;
  inset: 26%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--card-bg);
  border-radius: 50%;
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1px solid var(--line);
}

.legend {
  display: grid;
  gap: 10px;
}

.legend-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.legend-row span {
  display: flex;
  align-items: center;
  color: var(--ink-dim);
}

.legend-row strong {
  color: var(--ink);
  font-family: var(--font-mono);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.dep-callout {
  background: var(--green-subtle);
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  padding: 20px;
  margin-top: 20px;
}

.dep-callout small {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dep-callout strong {
  font-size: 22px;
  font-family: var(--font-display);
  color: var(--ink);
  display: block;
  margin: 4px 0 8px;
}

.vehicle-results {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.vehicle-result {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: var(--card-inner);
}

.vehicle-result header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.vehicle-result header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 4px;
}

.vehicle-result header small {
  color: var(--ink-dim);
  font-size: 12.5px;
}

.vehicle-result header strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--green);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mini-grid div {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.mini-grid b {
  display: block;
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--green);
  margin-top: 4px;
}

.mini-grid small {
  color: var(--ink-dim);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.close {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  margin-top: 24px;
  box-shadow: var(--shadow-lg);
}

.close .eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.close h2 {
  font-family: var(--font-display);
  font-size: 28px;
  max-width: 600px;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.25;
}

.close p {
  max-width: 720px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #04241a;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  margin-top: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px var(--green-glow);
}

.cta:hover {
  background: #2ec287;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(52, 211, 153, 0.4);
}

.error {
  display: none;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
  color: var(--ink-dim);
  padding: 6px 10px;
  font-size: 12.5px;
  min-height: auto;
  border: 1px solid transparent;
}

.btn.ghost:hover {
  color: var(--danger);
  background: var(--danger-glow);
  border-color: rgba(239, 68, 68, 0.2);
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sticky {
    position: static;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .breakdown {
    grid-template-columns: 1fr;
  }

  .mini-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {

  .grid2,
  .finance-choice {
    grid-template-columns: 1fr;
  }

  .range-edit {
    grid-template-columns: minmax(0, 1fr) 105px;
  }

  .results-head {
    padding: 24px 20px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .close {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   Reality Check Footer & Socials
   ========================================================================== */
.reality-footer {
  max-width: 1040px;
  margin: 60px auto 30px;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.reality-footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 6px;
}

.powered-by img {
  height: 16px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--card-bg, #111a15);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 18px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--card-inner, #16221b);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.2);
}

.social-link.social-instagram:hover {
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.4);
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.2);
}

.social-link.social-facebook:hover {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.4);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.2);
}

.social-link.social-linkedin:hover {
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.4);
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.2);
}

.social-link.social-youtube:hover {
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .reality-footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 14px;
    margin: 40px auto 20px;
    padding-bottom: 30px;
  }
  .reality-footer-brand {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .footer-socials {
    justify-content: center;
  }
}