:root {
  --bg: #080d18;
  --panel: #101827;
  --panel2: #131e31;
  --line: #26334b;
  --text: #eef4ff;
  --muted: #9ca9bd;
  --accent: #45e0a8;
  --accent2: #61a7ff;
  --danger: #ff6d7a;
  --warn: #ffcf63;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
  --content: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% -10%, #17304b 0, transparent 30%),
    radial-gradient(circle at 90% 10%, #173b32 0, transparent 26%),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.modal-open, body.cookie-pending { overflow: hidden; }
img, svg, canvas, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, form, fieldset { min-width: 0; }
h1, h2, h3, p, li, dd, dt, a, span, strong { overflow-wrap: anywhere; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

/* Header / navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,13,24,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-header-inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand { display: inline-flex; gap: 11px; align-items: center; font-weight: 800; letter-spacing: -.02em; flex: 0 0 auto; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 10px 30px rgba(69,224,168,.16); }
.site-nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.site-nav a { color: #d6deeb; white-space: nowrap; }
.site-nav a:hover { color: #fff; }
.nav-pill, .btn { border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 750; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; line-height: 1.25; text-align: center; }
.nav-pill, .btn-primary { background: var(--accent); color: #06130f!important; }
.btn-secondary { background: #1c2940; color: var(--text); border: 1px solid #33415a; }
.btn-danger { background: #3b1d25; color: #ffdce1; border: 1px solid #6c2c39; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn:hover, .nav-pill:hover { filter: brightness(1.07); }
.btn:focus-visible, .nav-pill:focus-visible, .footer-links a:focus-visible, .nav-toggle:focus-visible, .consent-option:focus-visible { outline: 3px solid rgba(97,167,255,.42); outline-offset: 2px; }
.btn-small { padding: 9px 12px; font-size: 13px; }
.btn.is-disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; cursor: not-allowed; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #111c2d; color: var(--text); padding: 9px; cursor: pointer; flex: 0 0 auto; }
.nav-toggle > span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.nav-toggle.is-open > span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open > span:nth-of-type(3) { opacity: 0; }
.nav-toggle.is-open > span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }
.admin-nav { color: #ffd989!important; font-weight: 800; }

/* Main layout */
.page-shell { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 38px 0 70px; min-width: 0; }
.hero { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(320px,.88fr); gap: clamp(28px,4vw,54px); align-items: center; min-height: 68vh; padding: 48px 0 42px; }
.hero > * { min-width: 0; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { font-size: clamp(42px,5.7vw,72px); line-height: 1.01; letter-spacing: -.052em; margin: 14px 0 22px; max-width: 820px; text-wrap: balance; }
.hero p { font-size: clamp(18px,1.7vw,21px); color: var(--muted); max-width: 700px; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.trust-row { display: flex; gap: 12px 20px; flex-wrap: wrap; margin-top: 30px; color: #c2cddd; font-size: 14px; }
.trust-row span::before { content: '✓'; color: var(--accent); margin-right: 7px; }
.demo-phone { width: min(100%,440px); justify-self: end; background: linear-gradient(180deg,#17243a,#0c1422); border: 1px solid #30405a; border-radius: 34px; padding: 18px; box-shadow: var(--shadow); transform: rotate(1.5deg); transform-origin: center; }
.demo-screen { background: #f7f9fc; color: #0d1522; border-radius: 24px; padding: clamp(22px,3vw,30px); text-align: center; min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
.demo-screen .safe-icon { width: 62px; height: 62px; border-radius: 18px; background: #dff8ee; color: #0c8e60; display: grid; place-items: center; margin: 0 auto 18px; font-size: 26px; }
.demo-screen h3 { font-size: clamp(24px,2.4vw,28px); margin: 0 0 10px; }
.demo-screen p { color: #596476; }
.demo-screen .fake-btn { background: #0a1322; color: #fff; border-radius: 12px; padding: 14px; margin-top: 18px; font-weight: 800; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 34px 0 0; }
.feature { min-width: 0; background: rgba(16,24,39,.82); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.feature .icon { font-size: 26px; }
.feature h3 { margin: 14px 0 8px; }
.feature p { color: var(--muted); margin: 0; }

/* Panels / forms */
.panel { min-width: 0; background: linear-gradient(180deg,rgba(19,30,49,.96),rgba(13,21,35,.96)); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px,4vw,34px); box-shadow: var(--shadow); }
.panel.narrow { max-width: 700px; margin: 22px auto; }
.section-title { margin: 0 0 6px; font-size: clamp(28px,4vw,42px); letter-spacing: -.035em; line-height: 1.12; }
.section-sub { margin: 0 0 26px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1/-1; }
.field label { font-size: 13px; font-weight: 750; color: #cbd6e5; }
.field input, .field select, .field textarea, .admin-search input { width: 100%; min-width: 0; border: 1px solid #30405b; background: #0b1423; color: var(--text); border-radius: 12px; padding: 13px 14px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus, .admin-search input:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(97,167,255,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.form-section { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); margin-top: 12px; }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section h3 { margin: 0 0 14px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; }
.checkbox input { margin-top: 4px; flex: 0 0 auto; }
.error-list { background: #391a22; border: 1px solid #73303e; color: #ffd9de; border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.flash { padding: 13px 16px; border-radius: 13px; margin-bottom: 18px; overflow-wrap: anywhere; }
.flash.success { background: #123326; border: 1px solid #255e48; color: #caffec; }
.flash.error { background: #391a22; border: 1px solid #73303e; color: #ffd9de; }
.flash.info { background: #132b46; border: 1px solid #2d557e; color: #d9ebff; }
.captcha-wrap { margin: 16px 0; max-width: 100%; overflow: hidden; }
.captcha-note { font-size: 12px; color: var(--muted); margin: 6px 0; }
.captcha-consent-box { border: 1px solid #30405b; background: #0a1622; border-radius: 14px; padding: 15px; overflow: visible; }
.captcha-consent-box strong { display: block; margin-bottom: 4px; }
.security-box { background: #0a1622; border: 1px solid #1d4252; border-radius: 16px; padding: 16px; color: #bfd5dd; font-size: 14px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.hp { display: none!important; }

/* Dashboard / vehicles */
.dashboard-head, .admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dashboard-head > *, .admin-head > * { min-width: 0; }
.dashboard-actions, .vehicle-actions, .admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vehicle-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.vehicle-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.vehicle-top { padding: 22px; display: flex; justify-content: space-between; gap: 18px; min-width: 0; }
.vehicle-meta { min-width: 0; }
.vehicle-meta h3 { margin: 0 0 5px; }
.vehicle-meta p { margin: 0; color: var(--muted); }
.plate { display: inline-block; max-width: 100%; background: #e8edf4; color: #101722; padding: 7px 10px; border-radius: 8px; font-weight: 900; letter-spacing: .08em; border: 2px solid #fff; overflow-wrap: anywhere; }
.qr-mini { flex: 0 0 auto; background: #fff; padding: 12px; border-radius: 16px; width: 132px; height: 132px; object-fit: contain; }
.vehicle-actions { padding: 16px 22px; border-top: 1px solid var(--line); }
.status-dot { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; color: var(--muted); }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.status-dot.off::before { background: var(--danger); }
.empty-state { padding: 28px 8px; text-align: center; color: var(--muted); }

/* QR / scan */
.qr-card-wrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.8fr); gap: 28px; align-items: center; }
.qr-card-wrap > * { min-width: 0; }
.qr-card { width: 53.98mm; height: 85.60mm; max-width: 100%; background: #fff; color: #07111f; border-radius: 4mm; padding: 4.8mm 4.2mm; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.28); margin: auto; }
.qr-card .top, .qr-card .bottom { font-weight: 900; line-height: 1.1; font-size: 4.1mm; }
.qr-card .brandline { font-size: 2.35mm; color: #697484; font-weight: 800; letter-spacing: .08em; display: inline-flex; align-items: center; justify-content: center; gap: 1.5mm; }
.qr-card .brandline img { width: 5mm; height: 5mm; border-radius: 1.2mm; flex: 0 0 auto; }
.qr-slot { width: 44mm; height: 44mm; max-width: 100%; display: grid; place-items: center; }
.qr-slot img, .qr-slot canvas { max-width: 100%!important; max-height: 100%!important; width: 100%!important; height: 100%!important; }
.qr-detail-panel { overflow: hidden; }
.qr-detail-copy { min-width: 0; }
.qr-vehicle-summary { display: flex; flex-direction: column; gap: 3px; }
.qr-vehicle-summary span, .qr-vehicle-summary small { color: var(--muted); }
.qr-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.qr-actions form { margin: 0; }
.print-toolbar { max-width: 700px; margin: 0 auto 24px; }
.print-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.scan-shell { max-width: 620px; margin: 40px auto; }
.scan-panel { text-align: center; }
.scan-icon { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg,#1e5747,#173e65); font-size: 30px; }
.reason-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.reason-option { min-width: 0; }
.reason-option input { position: absolute; opacity: 0; }
.reason-option span { display: block; padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: #0b1423; cursor: pointer; }
.reason-option input:checked + span { border-color: var(--accent); background: #123326; }

/* Legal */
.legal { max-width: 860px; margin: 20px auto; }
.legal h1 { font-size: clamp(34px,5vw,44px); line-height: 1.08; }
.legal h2 { margin-top: 34px; line-height: 1.2; }
.legal p, .legal li { color: #c0cad9; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal code { overflow-wrap: anywhere; }
.legal .notice { padding: 16px; border-radius: 14px; background: #2d2716; border: 1px solid #635522; color: #ffe9a8; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: 13px; }
.site-footer-inner { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 30px 0; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.footer-brand { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.footer-brand-head { display: inline-flex; align-items: center; gap: 9px; color: var(--text); margin-bottom: 2px; }
.footer-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.footer-copyright { margin-top: 6px; color: #738198; font-size: 12px; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; min-width: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 34px; color: var(--muted); line-height: 1.2; }
.footer-links a:hover { color: var(--text); }

/* Cookie / consent */
.cookie-banner { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; padding: 18px; background: rgba(3,8,15,.68); backdrop-filter: blur(6px); }
.cookie-card { width: min(960px,100%); max-height: min(82vh,720px); overflow: auto; background: #101b2d; border: 1px solid #30405b; border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.45); padding: 24px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; }
.cookie-copy { min-width: 0; max-width: 650px; }
.cookie-copy h2 { margin: 4px 0 8px; font-size: 24px; }
.cookie-copy p { margin: 0 0 10px; color: var(--muted); line-height: 1.55; }
.cookie-copy a { text-decoration: underline; color: #dce7f7; }
.cookie-current { font-size: 13px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin: 0; }

.consent-page { max-width: 760px; }
.consent-status-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; background: #0b1423; }
.consent-status-box span { color: var(--muted); font-size: 13px; }
.consent-options { display: grid; gap: 12px; margin-top: 18px; }
.consent-option { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: #0b1423; color: var(--text); padding: 16px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 13px; text-align: left; cursor: pointer; }
.consent-option:hover { border-color: #40516e; background: #101b2d; }
.consent-option.is-selected { border-color: #2f8f70; background: #10281f; }
.consent-option-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #17243a; color: var(--accent); font-weight: 900; }
.consent-option strong { display: block; margin-bottom: 3px; }
.consent-option small { display: block; color: var(--muted); line-height: 1.45; }
.consent-page-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* Admin */
.admin-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { min-width: 0; background: linear-gradient(180deg,rgba(19,30,49,.96),rgba(13,21,35,.96)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; }
.stat-card span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.stat-card strong { font-size: 40px; line-height: 1.1; margin: 8px 0 4px; }
.stat-card small { color: var(--muted); }
.admin-panel { box-shadow: none; }
.admin-section-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; min-width: 0; }
.admin-section-head > * { min-width: 0; }
.admin-section-head h2 { margin: 0; font-size: 22px; }
.admin-section-head p { margin: 4px 0 0; }
.admin-user-list { display: flex; flex-direction: column; min-width: 0; }
.admin-user-row { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 4px; border-top: 1px solid rgba(255,255,255,.07); transition: .18s ease; }
.admin-user-row:first-child { border-top: 0; }
.admin-user-row:hover { padding-left: 10px; padding-right: 10px; background: rgba(255,255,255,.025); border-radius: 12px; }
.admin-user-main { display: flex; flex-direction: column; min-width: 0; }
.admin-user-main strong, .admin-user-main span, .admin-user-main small { overflow-wrap: anywhere; }
.admin-user-main span, .admin-user-main small { color: var(--muted); }
.admin-user-meta { display: flex; gap: 9px; align-items: center; justify-content: flex-end; flex-wrap: wrap; color: var(--muted); font-size: 13px; min-width: 0; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.badge.ok { background: #123326; border-color: #255e48; color: #caffec; }
.badge.warn { background: #3a3015; border-color: #665522; color: #ffe59c; }
.badge.off { background: #391a22; border-color: #73303e; color: #ffd9de; }
.badge.admin { background: #352c16; border-color: #6b5922; color: #ffe59c; }
.admin-search { display: flex; gap: 10px; margin-bottom: 16px; min-width: 0; }
.admin-search input { flex: 1 1 260px; }
.pagination { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 20px; }
.pagination a { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.pagination a.active { background: var(--accent); color: #06130f; border-color: var(--accent); }
.admin-two-col { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0; }
.detail-grid div { min-width: 0; background: #0b1423; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 13px; }
.detail-grid dt { font-size: 12px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.detail-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.admin-actions { margin-top: 18px; }
.admin-actions form { margin: 0; max-width: 100%; }
.admin-actions.compact { margin-top: 0; justify-content: flex-end; }
.admin-actions.compact .btn { padding: 9px 11px; font-size: 12px; }
.admin-vehicle-list { display: flex; flex-direction: column; min-width: 0; }
.admin-vehicle { min-width: 0; display: flex; justify-content: space-between; gap: 16px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.07); }
.admin-vehicle:first-child { border-top: 0; }
.admin-vehicle > * { min-width: 0; }
.admin-vehicle p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.vehicle-name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plate.small { font-size: 12px; padding: 4px 7px; margin-top: 8px; }
.admin-warning { background: #2d2716; border: 1px solid #635522; color: #ffe9a8; border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }

/* Tablet */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0,1fr) minmax(300px,.8fr); gap: 28px; }
  .hero h1 { font-size: clamp(40px,6.2vw,58px); }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-grid .feature:last-child:nth-child(odd) { grid-column: 1/-1; }
  .admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 28px; }
  .demo-phone { justify-self: center; transform: none; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .qr-card-wrap { grid-template-columns: 1fr; }
  .dashboard-head, .admin-head { align-items: flex-start; flex-direction: column; }
  .dashboard-head > *, .admin-head > * { width: 100%; }
  .admin-user-row { align-items: flex-start; flex-direction: column; }
  .admin-user-meta { justify-content: flex-start; }
  .admin-vehicle { flex-direction: column; }
  .admin-actions.compact { justify-content: flex-start; }
}

/* Mobile navigation */
@media (max-width: 760px) {
  .site-header-inner, .page-shell, .site-footer-inner { width: min(var(--content), calc(100% - 24px)); }
  .site-header-inner { min-height: 62px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 110;
    padding: 10px;
    background: #101a2b;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 22px 55px rgba(0,0,0,.45);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 10px 12px; border-radius: 10px; white-space: normal; }
  .site-nav a:not(.nav-pill):hover { background: rgba(255,255,255,.04); }
  .site-nav .nav-pill { margin-top: 4px; }
  .page-shell { padding: 26px 0 54px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .feature:last-child:nth-child(odd) { grid-column: auto; }
  .admin-stats { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .reason-grid { grid-template-columns: 1fr; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-links { justify-content: flex-start; gap: 6px 16px; }
  .cookie-card { grid-template-columns: 1fr; align-items: stretch; padding: 20px; gap: 18px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 220px; }
}

@media (max-width: 560px) {
  .brand-logo { width: 36px; height: 36px; border-radius: 10px; }
  .hero { padding: 18px 0 28px; }
  .hero h1 { font-size: clamp(36px,10.4vw,44px); letter-spacing: -.04em; }
  .hero p { font-size: 17px; }
  .hero-actions, .dashboard-actions, .vehicle-actions, .qr-actions, .print-actions, .admin-actions:not(.compact) { align-items: stretch; flex-direction: column; }
  .hero-actions .btn, .dashboard-actions .btn, .vehicle-actions .btn, .qr-actions .btn, .qr-actions form, .print-actions .btn, .admin-actions:not(.compact) .btn, .admin-actions:not(.compact) form { width: 100%; }
  .admin-actions:not(.compact) form .btn { width: 100%; }
  .trust-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .demo-phone { width: 100%; padding: 12px; border-radius: 26px; }
  .demo-screen { min-height: 330px; border-radius: 19px; padding: 22px 18px; }
  .panel { border-radius: 16px; padding: 18px; }
  .vehicle-top { flex-direction: column; padding: 18px; }
  .qr-mini { width: 116px; height: 116px; }
  .vehicle-actions { padding: 14px 18px; }
  .admin-search { flex-direction: column; }
  .admin-search .btn { width: 100%; }
  .admin-section-head { align-items: flex-start; flex-direction: column; }
  .admin-actions.compact { flex-direction: column; align-items: stretch; width: 100%; }
  .admin-actions.compact form, .admin-actions.compact .btn { width: 100%; }
  .g-recaptcha { transform: scale(.84); transform-origin: left top; margin-bottom: -12px; }
  .legal { margin: 0 auto; }
  .cookie-banner { padding: 8px; align-items: flex-end; }
  .cookie-card { border-radius: 16px; max-height: 88vh; }
  .consent-status-box { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  .site-header-inner, .page-shell, .site-footer-inner { width: min(var(--content), calc(100% - 16px)); }
  .brand { gap: 8px; font-size: 14px; }
  .hero h1 { font-size: 34px; }
  .panel { padding: 15px; }
  .cookie-card { padding: 16px; }
  .g-recaptcha { transform: scale(.76); margin-bottom: -20px; }
}

@media print {
  body { background: #fff; overflow: visible; }
  .cookie-banner { display: none!important; }
  .site-header, .site-footer, .page-shell > *:not(.print-only) { display: none!important; }
  .page-shell { padding: 0; margin: 0; width: auto; }
  .print-only { display: block!important; }
  .qr-card { box-shadow: none; border: 0; border-radius: 0; margin: 0; width: 53.98mm; height: 85.60mm; max-width: none; }
  .no-print { display: none!important; }
  @page { size: 53.98mm 85.60mm; margin: 0; }
}
