/* === VinFast Evo — Stitch Cyber-Electric === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --color-primary: #b4c5ff;
  --color-on-primary: #002a78;
  --color-primary-container: #2563eb;
  --color-on-primary-container: #eeefff;
  --color-secondary: #4edea3;
  --color-on-secondary: #003824;
  --color-secondary-container: #00a572;
  --color-error: #ffb4ab;
  --color-background: #11131b;
  --color-surface: #11131b;
  --color-surface-variant: #32343d;
  --color-surface-container-lowest: #0c0e16;
  --color-surface-container-low: #191b23;
  --color-surface-container: #1d1f27;
  --color-surface-container-high: #282a32;
  --color-surface-container-highest: #32343d;
  --color-on-surface: #e1e2ed;
  --color-on-surface-variant: #c3c6d7;
  --color-outline: #8d90a0;
  --color-outline-variant: #434655;
  /* Stitch border radii */
  --radius-sm: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;
  /* Stitch spacing */
  --sp-xs: 4px; --sp-base: 8px; --sp-sm: 12px; --sp-md: 24px;
  --sp-lg: 40px; --sp-xl: 64px; --sp-gutter: 24px;
  --margin-desktop: 48px;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--color-background); color: var(--color-on-surface); font-family: 'Inter', sans-serif; line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--margin-desktop); }
h1,h2,h3,h4 { font-family: 'Inter', sans-serif; text-transform: uppercase; color: var(--color-on-surface); }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* Stitch utilities */
.blueprint-grid { background-image: linear-gradient(to right, rgba(37,99,235,0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(37,99,235,0.05) 1px, transparent 1px); background-size: 24px 24px; }
.glow-blue { box-shadow: 0 0 20px rgba(37,99,235,0.3); }
.glow-green { box-shadow: 0 0 15px rgba(16,185,129,0.25); }

/* Range slider — exact Stitch style */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; background: #1F2937; border-radius: 5px; background-image: linear-gradient(#2563EB, #2563EB); background-repeat: no-repeat; width: 100%; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%; background: #FFF; cursor: pointer; box-shadow: 0 0 10px rgba(37,99,235,0.5); border: 2px solid #2563EB; }

/* Typography scale — from Stitch config */
.text-display-lg { font-size: 48px; line-height: 1.1; letter-spacing: 0.05em; font-weight: 800; }
.text-headline-lg { font-size: 32px; line-height: 1.2; letter-spacing: 0.02em; font-weight: 700; }
.text-headline-md { font-size: 24px; line-height: 1.3; letter-spacing: 0.02em; font-weight: 700; }
.text-body-lg { font-size: 18px; line-height: 1.6; font-weight: 400; }
.text-body-md { font-size: 16px; line-height: 1.5; font-weight: 400; }
.text-label-sm { font-size: 12px; line-height: 1; letter-spacing: 0.1em; font-weight: 600; }

/* === HEADER === */
.header { position: fixed; top: 0; width: 100%; z-index: 50; background: rgba(17,19,27,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(67,70,85,0.3); box-shadow: 0 0 20px rgba(180,197,255,0.2); transition: all 0.3s ease-out; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-base) 0; }
.logo { font-size: 32px; letter-spacing: -0.05em; color: var(--color-primary); font-style: italic; font-weight: 900; text-transform: uppercase; text-decoration: none; }
.nav { display: flex; align-items: center; gap: var(--sp-lg); }
.nav a { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-on-surface-variant); text-decoration: none; transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--color-primary); }
.nav a.active { border-bottom: 2px solid var(--color-primary); padding-bottom: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease-out; border: none; text-decoration: none; }
.btn-primary { background: var(--color-primary-container); color: white; padding: var(--sp-md) var(--sp-lg); border-radius: var(--radius-xl); }
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 0 20px rgba(37,99,235,0.3); }
.btn-outline { background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); padding: var(--sp-md) var(--sp-lg); border-radius: var(--radius-xl); }
.btn-outline:hover { background: rgba(180,197,255,0.05); }
.btn-sm { padding: var(--sp-xs) var(--sp-md); border-radius: var(--radius-lg); }
.btn-pill { border-radius: var(--radius-full); }

/* === HERO === */
.hero { position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden; padding: 0 var(--margin-desktop); padding-top: 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); width: 100%; max-width: 1440px; margin: 0 auto; align-items: center; }
.hero-content { z-index: 10; display: flex; flex-direction: column; gap: var(--sp-md); }
.hero-badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-secondary); background: rgba(78,222,163,0.1); padding: var(--sp-xs) var(--sp-sm); border-radius: var(--radius-full); border: 1px solid rgba(78,222,163,0.2); width: fit-content; }
.hero-title { font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-title .highlight { color: var(--color-primary); font-style: italic; }
.hero-subtitle { font-size: 18px; line-height: 1.6; color: var(--color-on-surface-variant); max-width: 28rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); padding-top: var(--sp-md); }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-on-surface-variant); margin-bottom: var(--sp-xs); }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: 0.02em; color: var(--color-primary); }
.hero-actions { display: flex; align-items: center; gap: var(--sp-md); padding-top: var(--sp-lg); }
.hero-visual { position: relative; }
.hero-visual .glow { position: absolute; inset: -40px; background: rgba(180,197,255,0.1); filter: blur(100px); border-radius: 9999px; }
.hero-visual img { width: 100%; height: auto; object-fit: contain; position: relative; z-index: 10; filter: drop-shadow(0 0 30px rgba(37,99,235,0.4)); }
.hero-visual .telemetry { position: absolute; bottom: 0; right: 0; padding: var(--sp-md); background: rgba(17,19,27,0.4); backdrop-filter: blur(20px); border: 1px solid rgba(67,70,85,0.3); border-radius: var(--radius-xl); z-index: 20; display: flex; align-items: center; gap: var(--sp-sm); }

/* === SECTIONS === */
.section { padding: var(--sp-xl) 0; }
.section-badge { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary); }
.section-badge.green { color: var(--color-secondary); letter-spacing: 0.3em; }
.section-title { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; margin-top: var(--sp-xs); }
.section-desc { font-size: 16px; color: var(--color-on-surface-variant); margin-top: var(--sp-xs); max-width: 32rem; }

/* === CALCULATOR === */
.calc-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--sp-xl); }
.slider-group { display: flex; flex-direction: column; gap: var(--sp-base); }
/* gap handled by .calc-sliders — no extra margin needed */
.slider-header { display: flex; justify-content: space-between; align-items: flex-end; }
.slider-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-on-surface-variant); }
.slider-val { font-size: 24px; font-weight: 700; color: var(--color-primary); }
.slider-val .unit { font-size: 16px; font-weight: 400; }
.slider-range { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; color: var(--color-outline); text-transform: uppercase; letter-spacing: 0.1em; }
.results-card { background: var(--color-surface-container-high); border: 1px solid rgba(67,70,85,0.4); border-radius: var(--radius-xl); padding: var(--sp-lg); position: relative; overflow: hidden; }
.results-card .accent { position: absolute; top: 0; right: 0; margin-right: -64px; margin-top: -64px; width: 192px; height: 192px; background: rgba(180,197,255,0.1); filter: blur(60px); border-radius: 9999px; }
.comparison { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-xl); position: relative; z-index: 1; }
.comparison .side { text-align: center; }
.comparison .side-label { font-size: 10px; font-weight: 700; color: var(--color-outline); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--sp-xs); }
.comparison .gas-price { font-size: 32px; font-weight: 700; color: var(--color-error); }
.comparison .evo-price { font-size: 32px; font-weight: 700; color: var(--color-secondary); }
.comparison .vs { font-weight: 700; font-style: italic; opacity: 0.3; font-size: 24px; }
.savings-box { background: rgba(78,222,163,0.05); border: 1px solid rgba(78,222,163,0.2); border-radius: var(--radius-lg); padding: var(--sp-md); text-align: center; margin-bottom: var(--sp-gutter); position: relative; z-index: 1; }
.savings-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-secondary); margin-bottom: var(--sp-xs); }
.savings-amount { font-size: 40px; font-weight: 800; color: var(--color-on-surface); line-height: 1; margin-bottom: var(--sp-xs); }
.breakdown { display: flex; flex-direction: column; gap: 0; margin-bottom: var(--sp-lg); position: relative; z-index: 1; }
.breakdown-row { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-xs) 0; border-bottom: 1px solid rgba(67,70,85,0.1); }
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row .label { font-size: 16px; color: var(--color-on-surface-variant); }
.breakdown-row .value { font-size: 24px; font-weight: 700; color: var(--color-secondary); }
.refund-note { text-align: center; font-size: 11px; color: var(--color-on-surface-variant); margin-top: var(--sp-sm); position: relative; z-index: 1; }

/* === BENTO GRID === */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-gutter); }
.bento-card { position: relative; overflow: hidden; background: var(--color-surface-container-high); border: 1px solid rgba(67,70,85,0.3); border-radius: var(--radius-xl); padding: var(--sp-lg); display: flex; flex-direction: column; transition: all 0.3s; }
.bento-card:hover { border-color: rgba(180,197,255,0.5); }
.bento-card.span-2 { grid-column: span 2; min-height: 400px; justify-content: flex-end; background: var(--color-surface-container-low); }
.bento-card.span-2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; transition: opacity 0.3s; }
.bento-card.span-2:hover img { opacity: 0.5; }
.bento-card .card-content { position: relative; z-index: 10; }
.bento-card .card-content.right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.bento-card .icon-wrap { width: 48px; height: 48px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-md); }
.bento-card .icon-wrap.blue { background: rgba(180,197,255,0.1); }
.bento-card .icon-wrap.green { background: rgba(78,222,163,0.1); }
.bento-card h3 { font-size: 24px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: var(--sp-base); }
.bento-card p { font-size: 16px; color: var(--color-on-surface-variant); max-width: 28rem; }

/* === CTA === */
.cta-section { position: relative; overflow: hidden; }
.cta-section .bg-blur { position: absolute; inset: 0; background: rgba(180,197,255,0.05); filter: blur(120px); }
.cta-card { background: var(--color-surface-container); border: 1px solid rgba(67,70,85,0.5); border-radius: 32px; padding: var(--sp-xl); max-width: 56rem; margin: 0 auto; backdrop-filter: blur(12px); text-align: center; position: relative; z-index: 10; }
.cta-card h2 { font-size: 48px; font-weight: 800; text-transform: uppercase; margin-bottom: var(--sp-md); }
.cta-card h2 .highlight { color: var(--color-primary); font-style: italic; }
.cta-badges { display: flex; flex-wrap: wrap; gap: var(--sp-gutter); justify-content: center; align-items: center; }
.cta-badge { background: rgba(50,52,61,0.5); border: 1px solid rgba(67,70,85,0.4); padding: var(--sp-md); border-radius: var(--radius-xl); display: flex; align-items: center; gap: var(--sp-md); text-align: left; }
.cta-badge .badge-title { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; }
.cta-badge .badge-sub { font-size: 10px; color: var(--color-on-surface-variant); }

/* === FOOTER === */
.footer { background: var(--color-surface-container-lowest); border-top: 1px solid rgba(67,70,85,0.1); margin-top: var(--sp-xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-md); padding: var(--sp-xl) 0; }
.footer-logo { font-size: 40px; color: var(--color-primary); opacity: 0.5; font-style: italic; font-weight: 900; text-transform: uppercase; margin-bottom: var(--sp-sm); display: block; }
.footer-desc { font-size: 16px; color: var(--color-on-surface-variant); max-width: 20rem; margin-bottom: var(--sp-md); }
.footer-social { display: flex; gap: var(--sp-md); }
.footer-social a { color: var(--color-on-surface-variant); text-decoration: none; transition: color 0.2s; }
.footer-social a:hover { color: var(--color-primary); }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--sp-md); }
.footer-col nav { display: flex; flex-direction: column; gap: var(--sp-xs); }
.footer-col nav a { font-size: 12px; font-weight: 600; color: var(--color-on-surface-variant); text-decoration: none; transition: color 0.2s; }
.footer-col nav a:hover { color: var(--color-secondary); }
.footer-col input { background: var(--color-surface-container-high); border: 1px solid rgba(67,70,85,0.3); border-radius: var(--radius-lg); padding: var(--sp-sm); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-on-surface); width: 100%; outline: none; font-family: inherit; }
.footer-col input:focus { border-color: var(--color-primary); }
.footer-col .newsletter-btn { background: var(--color-on-surface); color: var(--color-surface); padding: var(--sp-xs) 0; border-radius: var(--radius-lg); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; width: 100%; border: none; cursor: pointer; transition: background 0.2s; margin-top: var(--sp-sm); }
.footer-col .newsletter-btn:hover { background: var(--color-primary); }
.footer-bottom { padding: var(--sp-md) 0; border-top: 1px solid rgba(67,70,85,0.05); }
.footer-bottom p { font-size: 10px; color: var(--color-on-surface-variant); text-transform: uppercase; letter-spacing: 0.1em; }

/* === MODAL === */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: var(--transition-fast); padding: var(--sp-md); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }

/* Stitch-style modal */
.modal.modal-stitch { background: var(--color-surface-container); width: 100%; max-width: 560px; max-height: calc(100vh - 48px); overflow-y: auto; border-radius: var(--radius-xl); border: 1px solid rgba(67,70,85,0.3); position: relative; padding: 0; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 30; background: rgba(0,0,0,0.5); border: none; color: #fff; font-size: 20px; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }
.modal-close:hover { background: rgba(37,99,235,0.6); }

/* Hero banner */
.modal-hero { position: relative; height: 180px; overflow: hidden; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(60%); opacity: 0.7; }
.modal-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-surface-container) 0%, transparent 60%); }
.modal-hero-content { position: absolute; bottom: var(--sp-md); left: var(--sp-lg); }
.modal-avail-badge { display: inline-block; background: rgba(78,222,163,0.15); color: var(--color-secondary); border: 1px solid rgba(78,222,163,0.3); font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-full); margin-bottom: var(--sp-xs); }
.modal-title { font-size: 24px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-on-surface); margin: 0; }

/* Form body */
.modal-body { padding: var(--sp-lg); }
.modal-form { display: flex; flex-direction: column; gap: var(--sp-md); }
.form-group { display: flex; flex-direction: column; gap: var(--sp-base); margin: 0; }
.form-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-outline); }

/* Inputs */
.form-group input,
.form-group select { width: 100%; padding: 12px 16px; background: var(--color-surface-container-lowest); border: 1px solid rgba(67,70,85,0.4); border-radius: var(--radius-lg); color: var(--color-on-surface); font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none; }
.form-group select option { background: #1d1f27; color: var(--color-on-surface); }
.form-group input:focus,
.form-group select:focus { border-color: var(--color-primary); box-shadow: 0 0 12px rgba(180,197,255,0.15); }
.form-group input::placeholder { color: rgba(141,144,160,0.5); }

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon-wrap input,
.input-icon-wrap select { padding-right: 40px; }
.input-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 20px; color: rgba(141,144,160,0.5); }

/* 2-column form row */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }

/* Phone prefix */
.phone-wrap { display: flex; }
.phone-prefix { display: flex; align-items: center; padding: 0 12px; background: var(--color-surface-container-high); border: 1px solid rgba(67,70,85,0.4); border-right: none; border-radius: var(--radius-lg) 0 0 var(--radius-lg); font-size: 13px; font-weight: 600; color: var(--color-on-surface-variant); white-space: nowrap; }
.phone-wrap input { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

/* Color swatches */
.color-swatch-group { display: flex; gap: var(--sp-lg); }
.color-swatch-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.color-swatch-item input[type="radio"] { display: none; }
.swatch { width: 48px; height: 48px; border-radius: 50%; border: 3px solid transparent; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.color-swatch-item input:checked + .swatch { border-color: var(--color-primary); transform: scale(1.12); box-shadow: 0 0 12px rgba(180,197,255,0.4); }
.swatch-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--color-outline); text-transform: uppercase; }

/* Price summary */
.price-summary { background: rgba(40,42,50,0.5); border: 1px solid rgba(67,70,85,0.2); border-radius: var(--radius-lg); padding: var(--sp-md); }
.price-summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-xs); font-size: 14px; color: var(--color-on-surface-variant); }
.price-val { color: var(--color-on-surface); font-weight: 700; }
.price-note { font-size: 10px; color: var(--color-outline); text-transform: uppercase; letter-spacing: 0.1em; font-style: italic; }

/* Submit button */
.btn-submit-stitch { display: flex; align-items: center; justify-content: center; gap: var(--sp-sm); width: 100%; background: var(--color-primary); color: var(--color-on-primary); padding: 16px; border-radius: var(--radius-xl); font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; border: none; cursor: pointer; transition: all 0.2s; box-shadow: 0 0 15px rgba(180,197,255,0.4); }
.btn-submit-stitch:hover { filter: brightness(1.1); transform: scale(1.01); }
.btn-submit-stitch:active { transform: scale(0.98); }

/* Form messages */
.form-message { padding: 14px 16px; border-radius: var(--radius-lg); font-size: 14px; font-weight: 600; display: none; }
.form-message.success { display: block; background: rgba(78,222,163,0.1); color: var(--color-secondary); border: 1px solid rgba(78,222,163,0.2); }
.form-message.error { display: block; background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

/* === MOBILE NAV TOGGLE === */
.nav-toggle { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--color-on-surface); border-radius: 2px; transition: all 0.3s ease; }
.nav.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-surface-container); border-bottom: 1px solid var(--color-outline-variant); padding: var(--sp-md) var(--margin-desktop); gap: var(--sp-md); z-index: 100; }
.header.scrolled { background: rgba(17,19,27,0.95); box-shadow: 0 4px 24px rgba(0,0,0,0.4); }

/* === SOCIAL PROOF === */
.social-proof { background: var(--color-surface-container-low); border-top: 1px solid rgba(67,70,85,0.2); border-bottom: 1px solid rgba(67,70,85,0.2); }
.social-proof-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-xl); align-items: center; }
.social-proof-header { grid-column: 1; }
.proof-stats { grid-column: 2; display: flex; align-items: center; gap: var(--sp-lg); justify-content: center; }
.proof-stat { text-align: center; }
.proof-number { font-size: 40px; font-weight: 900; letter-spacing: -0.02em; color: var(--color-on-surface); line-height: 1; }
.proof-number.highlight { color: var(--color-secondary); }
.proof-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-on-surface-variant); margin-top: var(--sp-xs); }
.proof-divider { width: 1px; height: 48px; background: var(--color-outline-variant); }
.progress-wrap { grid-column: 3; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: var(--sp-sm); }
.progress-bar { height: 8px; background: var(--color-surface-container-highest); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--color-secondary-container), var(--color-secondary)); border-radius: var(--radius-full); transition: width 1s cubic-bezier(0.16,1,0.3,1); }

/* === CALC SLIDERS === */
.calc-sliders { display: flex; flex-direction: column; gap: var(--sp-lg); }

/* Reserve button in results card */
.btn-reserve { width: 100%; padding: var(--sp-gutter); border-radius: var(--radius-lg); font-size: 16px; font-weight: 700; letter-spacing: 0.1em; position: relative; z-index: 1; }

/* ========================================
   ADMIN DESIGN SYSTEM — Stitch Cyber-Electric
   ======================================== */

/* === HUD PANEL (shared) === */
.hud-panel { position: relative; overflow: hidden; background: rgba(29,31,39,0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--color-outline-variant); border-radius: var(--radius-xl); }

/* === ADMIN SHELL LAYOUT === */
.admin-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--color-background);
}

/* === SIDEBAR === */
.admin-sidebar {
    width: 260px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    background: rgba(17,19,27,0.95);
    border-right: 1px solid var(--color-outline-variant);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-logo {
    padding: 32px 28px 24px;
    border-bottom: 1px solid var(--color-outline-variant);
}
.sidebar-logo a { text-decoration: none; }
.sidebar-logo .logo-eyebrow {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-on-surface-variant);
    font-weight: 700;
    margin-bottom: 6px;
}
.sidebar-nav {
    padding: 20px 16px;
    flex: 1;
}
.sidebar-nav-section {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-on-surface-variant);
    padding: 0 12px;
    margin-bottom: 8px;
    margin-top: 24px;
    font-weight: 700;
}
.sidebar-nav-section:first-child { margin-top: 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-on-surface-variant);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
    margin-bottom: 4px;
}
.sidebar-nav a:hover {
    background: rgba(180,197,255,0.06);
    color: var(--color-on-surface);
}
.sidebar-nav a.active {
    background: rgba(180,197,255,0.12);
    color: var(--color-primary);
}
.sidebar-nav a .nav-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}
.sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid var(--color-outline-variant);
}
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}
.sidebar-footer a:hover { background: rgba(239,68,68,0.1); }

/* === ADMIN MAIN CONTENT === */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 0; /* flex trick: forces shrink without blocking sticky */
}
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-outline-variant);
    background: rgba(17,19,27,0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.admin-page-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-on-surface-variant);
    font-weight: 700;
    white-space: nowrap;
}
.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-on-surface-variant);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-breadcrumb span { color: var(--color-primary); }
.admin-content {
    padding: 24px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* === STAT CARDS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    padding: 22px 20px 20px;
    position: relative;
    border-radius: var(--radius-xl);
    min-width: 0;
    overflow: hidden;
}
.stat-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.stat-card-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-on-surface-variant);
    font-weight: 700;
}
.stat-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(180,197,255,0.08);
    color: var(--color-primary);
    font-size: 18px;
}
.stat-card-icon.green { background: rgba(78,222,163,0.08); color: var(--color-secondary); }
.stat-card-icon.yellow { background: rgba(255,193,7,0.08); color: #ffc107; }
.stat-card-icon.red { background: rgba(239,68,68,0.08); color: #ef4444; }
.stat-card-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--color-on-surface);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stat-card-sub {
    font-size: 11px;
    color: var(--color-on-surface-variant);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-top: 8px;
}
.trend-up { background: rgba(78,222,163,0.1); color: var(--color-secondary); }

/* === SECTION HEADER === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-heading {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-on-surface);
}
.section-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-fast);
}
.section-link:hover { opacity: 0.7; }

/* === HUD TABLE === */
/* hud-table-wrapper wraps INSIDE hud-panel so overflow: hidden on panel doesn't block scroll */
.hud-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 5;
}
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 2px solid var(--color-outline-variant); }
th {
    padding: 14px 20px;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--color-on-surface-variant);
    letter-spacing: 0.18em;
    font-weight: 700;
    white-space: nowrap;
}
td {
    padding: 18px 20px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: rgba(180,197,255,0.03); }
tbody tr:last-child td { border-bottom: none; }

/* === STATUS BADGES === */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.status-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-pending { background: rgba(255,193,7,0.1); color: #ffc107; border: 1px solid rgba(255,193,7,0.2); }
.status-pending::before { background: #ffc107; }
.status-confirmed { background: rgba(78,222,163,0.1); color: var(--color-secondary); border: 1px solid rgba(78,222,163,0.2); }
.status-confirmed::before { background: var(--color-secondary); }
.status-cancelled { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.status-cancelled::before { background: #ef4444; }
.status-refunded { background: rgba(180,197,255,0.1); color: var(--color-primary); border: 1px solid rgba(180,197,255,0.2); }
.status-refunded::before { background: var(--color-primary); }

/* === BOOKING CODE === */
.booking-code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.08em;
    background: rgba(180,197,255,0.06);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* === ACTION LINKS === */
.action-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}
.action-btn-confirm { color: var(--color-secondary); background: rgba(78,222,163,0.08); border-color: rgba(78,222,163,0.2); }
.action-btn-confirm:hover { background: rgba(78,222,163,0.15); }
.action-btn-cancel { color: #ef4444; background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); }
.action-btn-cancel:hover { background: rgba(239,68,68,0.15); }

/* === LOGIN PAGE === */
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.login-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180,197,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.login-card {
    width: 100%;
    max-width: 440px;
    padding: 52px 48px;
    position: relative;
    z-index: 10;
}
.login-header { text-align: center; margin-bottom: 44px; }
.login-eyebrow {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-on-surface-variant);
    font-weight: 700;
    margin-bottom: 16px;
}
.login-title { font-size: 22px; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.login-divider {
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    margin: 20px auto 0;
    border-radius: 2px;
}
.login-error {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 28px;
}
.form-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-on-surface-variant);
    font-weight: 700;
    margin-bottom: 8px;
}
.form-group { margin-bottom: 24px; }
.admin-shell .form-group input,
.admin-shell .form-group select,
.admin-shell .form-group textarea,
.login-card .form-group input,
.login-card .form-group select,
.login-card .form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-outline-variant);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--color-on-surface);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition-fast);
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.admin-shell .form-group input:focus,
.admin-shell .form-group select:focus,
.admin-shell .form-group textarea:focus,
.login-card .form-group input:focus,
.login-card .form-group select:focus {
    border-color: var(--color-primary);
    background: rgba(180,197,255,0.04);
}
.admin-shell .form-group input::placeholder,
.login-card .form-group input::placeholder { color: var(--color-on-surface-variant); opacity: 0.5; }

/* === SETTINGS FORM === */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.settings-section { padding: 36px; }
.settings-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(180,197,255,0.15);
}
.settings-hint { font-size: 11px; color: var(--color-on-surface-variant); margin-top: 6px; }
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 13px; font-weight: 600; }
.toggle-sub { font-size: 11px; color: var(--color-on-surface-variant); margin-top: 2px; }
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    cursor: pointer;
    transition: 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--color-primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* === SUCCESS/ERROR MESSAGES === */
.msg-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: rgba(78,222,163,0.08);
    border: 1px solid rgba(78,222,163,0.2);
    color: var(--color-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

/* === MOBILE SIDEBAR OVERLAY === */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}
.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Hamburger button — hidden on desktop */
.admin-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-outline-variant);
    background: transparent;
    color: var(--color-on-surface);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.admin-menu-btn:hover { background: rgba(180,197,255,0.08); }
.admin-menu-btn .material-symbols-outlined { font-size: 22px; }

/* === ADMIN GRID LAYOUTS (class-based, not inline) === */
.admin-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
    width: 100%;
    min-width: 0;
}
.admin-bottom-grid > * { min-width: 0; }
.admin-side-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* === ADMIN RESPONSIVE === */

/* Tablet wide — stats 2×2, bottom grid collapses */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-bottom-grid { grid-template-columns: 1fr; }
    .admin-side-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* Tablet — sidebar becomes slide-in drawer */
@media (max-width: 900px) {
    .admin-sidebar {
        position: fixed;
        left: -270px;
        top: 0;
        height: 100vh;
        z-index: 200;
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
        width: 260px;
    }
    .admin-sidebar.open { left: 0; }
    .admin-main { width: 100%; }
    .admin-menu-btn { display: flex; }
    .admin-topbar { padding: 12px 16px; }
    .admin-content { padding: 16px; }
}

/* Mobile */
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px 12px; }
    .stat-card-value { font-size: 18px; }
    .stat-card-label { font-size: 9px; letter-spacing: 0.1em; }
    .stat-card-icon { width: 28px; height: 28px; }
    .stat-card-icon .material-symbols-outlined { font-size: 15px; }
    .admin-side-col { grid-template-columns: 1fr; }
    .admin-topbar-right { display: none !important; }
    .admin-content { padding: 12px; }
    th { padding: 10px 12px; font-size: 9px; }
    td { padding: 12px 12px; font-size: 12px; }
    .booking-code { font-size: 10px; padding: 3px 6px; }
    .status-badge { font-size: 9px; padding: 3px 7px; }
    .action-btn { padding: 5px 8px; font-size: 10px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) {
  .hero-grid, .calc-grid, .bento-grid, .footer-grid { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .hero { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
  .cta-badges { flex-direction: column; }
  .social-proof-inner { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .social-proof-header { grid-column: 1; }
  .proof-stats { grid-column: 1; }
  .progress-wrap { grid-column: 1; }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }

  /* Container & spacing */
  .container { padding: 0 var(--sp-gutter); }
  .hero { padding-left: var(--sp-gutter); padding-right: var(--sp-gutter); padding-top: 88px; }

  /* Hero */
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Slider — stack label above value to prevent overlap */
  .slider-header { flex-direction: column; align-items: flex-start; gap: var(--sp-xs); }
  .slider-val { font-size: 20px; }
  .slider-val .unit { font-size: 14px; }

  /* Calculator results card */
  .results-card { padding: var(--sp-md); }
  .comparison .gas-price,
  .comparison .evo-price { font-size: 22px; }
  .savings-amount { font-size: 28px; }

  /* Breakdown rows — stack label above value on very narrow */
  .breakdown-row { flex-wrap: wrap; gap: 2px; }
  .breakdown-row .label { font-size: 13px; width: 100%; }
  .breakdown-row .value { font-size: 16px; }

  /* Social proof */
  .proof-stats { flex-wrap: wrap; justify-content: center; gap: var(--sp-md); }
  .proof-divider { display: none; }
  .proof-number { font-size: 32px; }

  /* CTA */
  .cta-card { padding: var(--sp-lg); border-radius: 20px; }
  .cta-card h2 { font-size: 28px; }
  .cta-badges { flex-direction: column; align-items: stretch; }

  /* Footer */
  .footer-col input { font-size: 14px; }

  /* Modal — scrollable on small screens */
  .modal {
    margin: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 32px 20px;
    max-width: calc(100vw - 32px);
  }

  /* Tech section inline padding override */
  .section-side-pad { padding-left: var(--sp-gutter) !important; padding-right: var(--sp-gutter) !important; }

  /* Modal responsive */
  .modal.modal-stitch { max-height: calc(100vh - 32px); border-radius: var(--radius-lg); }
  .modal-body { padding: var(--sp-md); }
  .form-row-2 { grid-template-columns: 1fr; gap: var(--sp-sm); }
  .modal-hero { height: 140px; }
  .modal-title { font-size: 20px; }
  .color-swatch-group { gap: var(--sp-md); }
  .swatch { width: 40px; height: 40px; }
}
