/* DriveKnox — "cinematic" theme: graphite, brushed-silver lines, one racing-red accent for actions.
   Design system from the ui-ux-pro-max skill: automotive → motion-driven hero + dark OLED, metallic accents. */
:root {
  --night: #070708; --bg: #0b0c0e; --card: #131417; --card2: #1a1b1f;
  --line: rgba(192, 196, 204, .12); --line2: rgba(192, 196, 204, .24);
  --ink: #f2f3f5; --ink2: #a3a8b3; --ink3: #737885;
  --silver: #c0c4cc; --red: #e10600; --red-d: #b80500;
  --brand: var(--red); --accent: var(--silver); --ok: #3ccf8e; --bad: #ff5a52; --warn: #f2b84b;
  --r: 6px; --r-lg: 10px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
  --display: "Syncopate", "Archivo", sans-serif;
  --font: "Archivo", -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); overflow-x: clip; }
a { color: var(--ink); text-decoration-color: var(--line2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--silver); }
img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; line-height: 1.1; text-transform: uppercase; }
h3 { font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink2); }
.small { font-size: 13.5px; }
.gold { color: var(--silver); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top); background: rgba(11, 12, 14, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.logo img { width: 30px; height: 30px; }
.logo b { font-weight: 700; }
.logo span { color: var(--silver); font-weight: 400; }
#nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
#nav a, #nav button { color: var(--ink2); text-decoration: none; padding: 9px 13px; border-radius: var(--r); background: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: color .2s, background .2s; }
#nav a:hover, #nav button:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
#nav .cta { color: #fff; background: var(--red); font-weight: 600; }
#nav .cta:hover { background: var(--red-d); }
.badge-n[hidden] { display: none; }
.badge-n { font-style: normal; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; }
.avatar { width: 32px; height: 32px; border-radius: 99px; object-fit: cover; border: 1px solid var(--line2); }

/* ---------- buttons + forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: var(--r); border: 1px solid var(--line2); background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .12s; }
.btn:hover { border-color: var(--silver); background: rgba(255, 255, 255, .04); }
.btn:active { transform: translateY(1px); }
.btn.primary { color: #fff; border-color: var(--red); background: var(--red); letter-spacing: .02em; }
.btn.primary:hover { background: var(--red-d); border-color: var(--red-d); }
.btn.green { background: #0f8a5f; border-color: #0f8a5f; color: #fff; }
.btn.danger { color: var(--bad); border-color: rgba(255, 90, 82, .35); }
.btn.sm { min-height: 36px; padding: 6px 13px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line2); border-radius: var(--r); font: inherit; font-size: 15.5px; background: var(--card); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
select option { background: var(--card); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--ink3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--silver); box-shadow: 0 0 0 3px rgba(192, 196, 204, .18); }
input:disabled { color: var(--ink3); }
input[type=date], input[type=datetime-local] { color-scheme: dark; }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 15px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--red); }
.section-title { font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 72px 0 20px; color: var(--ink); }

/* ---------- hero: full-bleed driving film ---------- */
.hero { position: relative; isolation: isolate; margin: 0 calc(50% - 50vw); min-height: max(620px, calc(100svh - 68px)); display: flex; align-items: flex-end; overflow: clip; background: var(--night); }
.hero-film { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; background: #111 center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 7, 8, .88) 0%, rgba(7, 7, 8, .55) 45%, rgba(7, 7, 8, .1) 75%),
              linear-gradient(0deg, var(--bg) 0%, rgba(11, 12, 14, .6) 26%, transparent 55%),
              linear-gradient(180deg, rgba(7, 7, 8, .55), transparent 22%); }
.hero-in { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 140px 22px 56px; }
.hero h1 { margin: 0 0 20px; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.01em; max-width: 13ch; color: #fff; text-wrap: balance; }
.hero-in > p { margin: 0 0 30px; color: #d5d8de; max-width: 46ch; font-size: 18px; }
.film-ctrl { position: absolute; z-index: 2; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 12px; color: var(--ink3); font-size: 12px; }
.film-ctrl a { color: var(--ink3); }
.film-btn { width: 44px; height: 44px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(11, 12, 14, .6); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.film-btn:hover { border-color: var(--silver); background: rgba(11, 12, 14, .85); }
.film-btn svg { width: 16px; height: 16px; fill: currentColor; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--ink2); }
.popular a { color: var(--ink); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line2); border-radius: var(--r); font-weight: 600; letter-spacing: .08em; font-size: 12.5px; background: rgba(11, 12, 14, .5); transition: border-color .2s; }
.popular a:hover { border-color: var(--silver); }

/* search widget: one solid bar */
.sw { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 1px; align-items: stretch; padding: 0; border-radius: var(--r-lg); max-width: 1060px; color: var(--ink); background: var(--line2); border: 1px solid var(--line2); overflow: visible; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95); }
.sw > * { background: rgba(19, 20, 23, .94); padding: 12px 14px; margin: 0; }
.sw > :first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.sw > :last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.sw label { font-size: 11.5px; color: var(--ink2); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.sw input { background: transparent; border: 0; padding: 4px 0; min-height: 34px; font-size: 16px; font-weight: 500; }
.sw input:focus { box-shadow: none; }
.sw > :focus-within { background: #1d1f23; }
.sw .btn { height: auto; min-height: 64px; padding: 0 34px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.sw.compact { margin-bottom: 18px; max-width: none; box-shadow: none; }
.combo { position: relative; }
.loc-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; max-height: 380px; overflow-y: auto; color: var(--ink); min-width: 300px;
  background: #17181b; border: 1px solid var(--line2); border-radius: var(--r-lg); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .95); }
.loc-list li[role=option] { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--r); cursor: pointer; }
.loc-list li[role=option]:hover, .loc-list li.on { background: rgba(255, 255, 255, .06); }
.loc-list .grp { font-size: 11.5px; font-weight: 700; color: var(--ink3); padding: 8px 10px 4px; letter-spacing: .1em; text-transform: uppercase; }
.loc-list .ico { font-style: normal; width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r); background: rgba(255, 255, 255, .06); color: var(--silver); }
.loc-list b { display: block; font-size: 14.5px; } .loc-list small { color: var(--ink2); font-size: 13px; }
.loc-list em { font-style: normal; font-size: 12.5px; color: var(--ok); font-weight: 600; white-space: nowrap; }
.loc-list .none { padding: 12px; color: var(--ink2); font-size: 14px; }

/* ---------- home sections ---------- */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 8px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.props div { padding: 26px 24px; border-left: 1px solid var(--line); }
.props div:first-child { border-left: 0; padding-left: 0; }
.props b { display: block; font-size: 16.5px; margin-bottom: 6px; }
.props span { color: var(--ink2); font-size: 14.5px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how div { position: relative; padding: 26px 24px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--silver); }
.how i { font-style: normal; display: block; margin-bottom: 14px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--red); }
.how b { display: block; font-size: 18px; margin-bottom: 6px; }
.how span { color: var(--ink2); font-size: 15px; }
.types { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.type { padding: 20px 8px; text-align: center; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.type i { display: block; font-style: normal; font-size: 22px; margin-bottom: 8px; color: var(--silver); }
.type:hover { border-color: var(--silver); background: var(--card2); }
.brands { display: flex; gap: 10px; flex-wrap: wrap; }
.brand-pill { padding: 10px 18px; border-radius: var(--r); border: 1px solid var(--line2); font-weight: 600; font-size: 14.5px; color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s; }
.brand-pill:hover, .brand-pill.on { border-color: var(--silver); background: rgba(255, 255, 255, .04); }
.host-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 80px 0 !important; padding: 44px !important; border-radius: var(--r-lg) !important;
  background: linear-gradient(100deg, var(--card2), var(--card) 60%) !important; border: 1px solid var(--line) !important; border-left: 3px solid var(--red) !important; }
.host-cta h2 { font-size: 24px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: transparent; color: var(--ink); border: 1px solid var(--line2); padding: 6px 14px; border-radius: var(--r); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.chip:hover, .chip.on { border-color: var(--silver); background: rgba(255, 255, 255, .06); }

/* ---------- panels, cards, results ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; }
.results-head h2 { font-size: 22px; }
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: border-color .3s; }
.card:hover { border-color: rgba(192, 196, 204, .45); }
.card .ph { aspect-ratio: 16/10; background: #17181b center/cover no-repeat; position: relative; transition: transform .6s var(--ease); }
.card:hover .ph { transform: scale(1.03); }
.badge { position: absolute; z-index: 1; top: 12px; left: 12px; background: rgba(11, 12, 14, .78); color: var(--ink); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; padding: 5px 10px; border-radius: var(--r); }
.badge.right { left: auto; right: 12px; color: #fff; background: var(--red); }
.badge.off { background: var(--bad); color: #fff; }
.card .body { position: relative; z-index: 1; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; background: var(--card); }
.card .make { font-size: 12px; color: var(--ink2); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card h3 { margin: 0; font-size: 18px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { border: 1px solid var(--line); color: var(--ink2); font-size: 12.5px; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.price { font-weight: 700; font-size: 22px; margin-top: auto; letter-spacing: -.01em; }
.price small { font-weight: 500; color: var(--ink2); font-size: 13.5px; }
.price-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12.5px; color: var(--ink2); }
.pager { display: flex; justify-content: center; gap: 8px; margin: 28px 0; }
.empty { text-align: center; padding: 64px 20px; color: var(--ink2); }

.steps { display: flex; align-items: center; gap: 10px; margin: 28px 0 20px; font-size: 14.5px; color: var(--ink2); }
.step { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 500; }
.step span { width: 30px; height: 30px; border-radius: 99px; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--card); }
.step.on { color: var(--ink); font-weight: 700; }
.step.on span { background: var(--red); color: #fff; border-color: var(--red); }
.step.done span { background: transparent; color: var(--ok); border-color: rgba(60, 207, 142, .5); }
.steps .bar { flex: 1; height: 1px; background: var(--line2); }
.trip-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; margin-bottom: 18px; }
.trip-bar span { display: block; }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.filterbar select { width: auto; min-height: 42px; padding: 8px 12px; font-size: 14.5px; font-weight: 500; }
.filterbar .sort { margin-left: auto; border-color: var(--silver); font-weight: 600; }
.filterbar .check { border: 1px solid var(--line2); border-radius: var(--r); padding: 9px 12px; font-size: 14.5px; }

/* ---------- car detail + checkout ---------- */
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; margin: 24px 0 64px; align-items: start; }
.gallery .main { aspect-ratio: 16/10; border-radius: var(--r-lg); background: #17181b center/cover no-repeat; border: 1px solid var(--line); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs img { width: 100px; height: 66px; object-fit: cover; border-radius: var(--r); cursor: pointer; border: 2px solid transparent; flex: none; opacity: .55; transition: opacity .2s; }
.thumbs img:hover { opacity: .9; }
.thumbs img.on { border-color: var(--silver); opacity: 1; }
.contact-box { position: sticky; top: 88px; }
.contact-box .price { font-size: 30px; }
.phone-reveal { font-size: 24px; font-weight: 700; margin: 8px 0; color: var(--ink); letter-spacing: .02em; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 18px 0; }
.kv div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 15px; }
.kv b { display: block; font-size: 11.5px; color: var(--ink2); font-weight: 600; margin-bottom: 2px; letter-spacing: .08em; text-transform: uppercase; }
.know div { font-size: 14.5px; }
.terms { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.terms li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-size: 14.5px; }
.terms li span { color: var(--ink2); }
.stack { display: grid; gap: 16px; }
.durs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.durs .chip { font: inherit; font-size: 13.5px; }
.breakdown { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; display: grid; gap: 7px; font-size: 15px; }
.breakdown div { display: flex; justify-content: space-between; }
.breakdown span { color: var(--ink2); }
.breakdown .total { border-top: 1px solid var(--line2); padding-top: 8px; margin-top: 4px; font-size: 16.5px; }
.breakdown .total span { color: var(--ink); font-weight: 700; }
.err { color: var(--bad); margin: 4px 0 0; }
.feat { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.feat li::before { content: '✓'; color: var(--silver); font-weight: 800; margin-right: 8px; }
.feat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.co-car { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
.co-car .ph { height: 106px; border-radius: var(--r); background: #17181b center/cover; }
.co-car .make { font-size: 12px; color: var(--ink2); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.renter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r); padding: 12px 14px; margin: 8px 0; font-size: 14px; }
.renter span { display: block; font-size: 11.5px; color: var(--ink2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- auth + dashboard ---------- */
.auth-page { min-height: calc(100vh - 260px); display: grid; place-items: start center; padding: 48px 0 72px; }
.auth { width: 100%; max-width: 460px; margin: 0; padding: 32px; }
.auth h2 { margin: 0 0 10px; font-size: 24px; }
.center { text-align: center; justify-content: center; }
.hint { display: block; color: var(--ink2); font-size: 13px; margin-top: 5px; }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; }
.gbtn { display: flex; justify-content: center; min-height: 44px; margin: 18px 0 4px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink2); font-size: 13.5px; margin: 14px 0 18px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 22px 0 18px; }
.otp input { text-align: center; font-size: 24px; font-weight: 700; padding: 14px 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 24px 0 22px; overflow-x: auto; }
.tabs a { padding: 12px 14px; text-decoration: none; color: var(--ink2); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: #fff; border-bottom-color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; color: var(--ink2); }
.stat b { display: block; font-size: 28px; font-weight: 700; color: var(--ink); }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
th { background: rgba(255, 255, 255, .03); font-size: 11.5px; color: var(--ink2); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
tr:hover td { background: rgba(255, 255, 255, .02); }
.table-wrap { overflow-x: auto; margin-bottom: 30px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mycar { display: grid; grid-template-columns: 140px 1fr auto; gap: 18px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; margin-bottom: 12px; }
.mycar .ph { width: 140px; height: 90px; border-radius: var(--r); background: #17181b center/cover; }
.img-edit { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.img-edit div { position: relative; }
.img-edit img { width: 104px; height: 68px; object-fit: cover; border-radius: var(--r); }
.img-edit button { position: absolute; top: -6px; right: -6px; background: var(--bad); color: #fff; border: 0; border-radius: 99px; width: 22px; height: 22px; cursor: pointer; }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: var(--ink2); font-weight: 600; border: 1px solid var(--line); }
.pill.ok { background: rgba(60, 207, 142, .1); color: var(--ok); border-color: rgba(60, 207, 142, .3); }
.pill.bad { background: rgba(255, 90, 82, .1); color: var(--bad); border-color: rgba(255, 90, 82, .3); }
.pill.warn { background: rgba(242, 184, 75, .1); color: var(--warn); border-color: rgba(242, 184, 75, .3); }

/* ---------- host verification + reviews ---------- */
.banner { border-radius: var(--r); padding: 13px 16px; margin: 0 0 18px; font-size: 15px; border: 1px solid; }
.banner.ok { background: rgba(60, 207, 142, .07); border-color: rgba(60, 207, 142, .3); color: #b6f0d5; }
.banner.warn { background: rgba(242, 184, 75, .07); border-color: rgba(242, 184, 75, .3); color: #f8dfa9; }
.banner.bad { background: rgba(255, 90, 82, .07); border-color: rgba(255, 90, 82, .3); color: #ffc4c0; }
.note { font-size: 13px; margin: 4px 0; } .note.bad, .bad-text { color: var(--bad); } .note.warn, .warn-text { color: var(--warn); } .ok-text { color: var(--ok); }
.car-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.danger-zone { margin-top: 20px; border-color: rgba(255, 90, 82, .3); }
.form-section { margin: 28px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 12px; border: 1.5px dashed var(--line2); border-radius: var(--r); background: rgba(255, 255, 255, .02); cursor: pointer; text-align: center; font-weight: 500; color: var(--ink2); font-size: 14px; transition: border-color .2s, color .2s; }
.drop:hover, .file-field:focus-within .drop { border-color: var(--silver); color: var(--ink); }
.drop img { max-height: 90px; border-radius: var(--r); }
.doc-link { font-weight: 600; font-size: 13px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 14px; }
.review.is-pending { border-left: 3px solid var(--warn); }
.review-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 12px; }
.review-body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; margin-bottom: 12px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14.5px; }
.facts dt { color: var(--ink2); } .facts dd { margin: 0; font-weight: 600; }
.doc-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.doc-thumbs a { text-decoration: none; color: var(--ink2); font-size: 13px; display: grid; gap: 4px; }
.doc-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); background: var(--card2); }

/* ---------- toast + footer ---------- */
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(140px); z-index: 99; max-width: 90vw; padding: 13px 20px; border-radius: var(--r); font-weight: 500; color: var(--ink);
  background: #1d1f23; border: 1px solid var(--line2); border-left: 3px solid var(--ok); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.err { border-left-color: var(--bad); }
.footer { border-top: 1px solid var(--line); background: var(--night); padding: 48px 0 calc(30px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink2); }
.footer p { margin: 4px 0; }
.footer b { color: var(--ink); }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.footer-links b { display: block; font-size: 11.5px; font-weight: 700; margin-bottom: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { display: block; text-decoration: none; color: var(--ink2); padding: 3px 0; }
.footer-links a:hover { color: var(--ink); }

/* ---------- motion (fx.js) ---------- */
.fx-on .card { --rx: 0deg; --ry: 0deg; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .45s var(--ease), border-color .3s; }
.fx-on .card.tilting { transition: transform .08s linear, border-color .3s; }
.fx-on #app.page-in { animation: pageIn .4s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fx-on .gallery .main.flip { animation: flip .4s var(--ease); }
@keyframes flip { from { opacity: .4; } }
.hero-in > * { animation: rise .8s var(--ease) both; }
.hero-in > :nth-child(2) { animation-delay: .1s; } .hero-in > :nth-child(3) { animation-delay: .2s; } .hero-in > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; }
  .contact-box { position: static; }
  .sw { grid-template-columns: 1fr 1fr; } .sw-loc { grid-column: 1 / -1; } .sw .btn { grid-column: 1 / -1; }
  .sw > :first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; } .sw > :last-child, .sw .btn { border-radius: 0 0 var(--r-lg) var(--r-lg); min-height: 54px; }
  .props, .how { grid-template-columns: 1fr; }
  .props div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .props div:first-child { border-top: 0; }
  .types { grid-template-columns: repeat(4, 1fr); }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .host-cta { flex-direction: column; align-items: flex-start; }
  .mycar { grid-template-columns: 100px 1fr; } .mycar .ph { width: 100px; height: 66px; } .mycar .row-actions { grid-column: 1 / -1; }
  .filterbar .sort { margin-left: 0; }
  .review-body { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 12, 14, .82) 45%, rgba(7, 7, 8, .3) 75%, rgba(7, 7, 8, .55) 100%); }
  .hero-in { padding-top: 34svh; }
  .film-ctrl { top: 16px; bottom: auto; right: 16px; }
}
@media (max-width: 600px) {
  .topbar-in { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  #nav { width: 100%; gap: 2px; } #nav .cta { margin-right: auto; }
  #nav a, #nav button { padding: 7px 9px; font-size: 14px; }
  .sw { grid-template-columns: 1fr; }
  .grid2, .grid3, .grid4, .renter { grid-template-columns: 1fr; }
  .types { grid-template-columns: repeat(2, 1fr); }
  .steps .step { font-size: 0; gap: 0; } .steps .step.on { font-size: 13px; gap: 6px; }
  .co-car { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-in > p { font-size: 16.5px; }
  .section-title { font-size: 18px; margin-top: 52px; }
  .otp { gap: 6px; } .otp input { font-size: 20px; padding: 12px 0; }
  .auth { padding: 22px; }
}
