:root {
  --ink: #101114;
  --muted: #6c7078;
  --line: #e9eaf0;
  --surface: #f5f6f8;
  --page: #fbfaf6;
  --card: #fffefa;
  --nav-bg: rgba(255,255,255,.52);
  --blue: #2979ff;
  --gold: #d4a943;
  --danger: #e84343;
  --app-w: 430px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #efeee9; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid rgba(41,121,255,.45); outline-offset: 2px; }
.theme-toggle:focus-visible, .language-toggle:focus-visible, .currency-toggle:focus-visible, .contact-trigger:focus-visible, .nav-item:focus-visible { outline: none; }
.desktop-backdrop { position: fixed; inset: 0; background: radial-gradient(circle at 50% 15%, #fff 0 18%, #e8e9ed 56%, #d8dadd 100%); }
.app-shell { position: relative; width: min(100%, var(--app-w)); min-height: 100dvh; margin: 0 auto; background: var(--page); overflow: hidden; box-shadow: 0 30px 90px rgba(31, 35, 45, .18); }
.app-shell::before { content: ""; position: fixed; z-index: 50; width: min(100%, var(--app-w)); height: 1px; background: rgba(255,255,255,.5); }

.status-bar { position: fixed; z-index: 38; top: 0; width: min(100%, var(--app-w)); height: calc(34px + env(safe-area-inset-top)); display: flex; align-items: flex-end; justify-content: space-between; padding: 0 24px 8px; background: rgba(251,250,246,.9); backdrop-filter: blur(18px); font-size: 13px; }
.status-icons { display: flex; gap: 7px; align-items: center; font-size: 12px; }
.signal { font-size: 8px; letter-spacing: -1px; transform: skewY(-8deg); }
.battery { display: block; width: 21px; height: 10px; border: 1.6px solid #111; border-radius: 3px; position: relative; }
.battery::after { content: ""; position: absolute; right: -3px; top: 2px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: #111; }
.battery::before { content: ""; position: absolute; inset: 1.5px; background: #111; border-radius: 1px; }

.app-content { min-height: 100dvh; padding: calc(18px + env(safe-area-inset-top)) 20px calc(112px + env(safe-area-inset-bottom)); overflow-x: hidden; background: var(--page); }
.view { display: none; animation: viewIn .32s cubic-bezier(.2,.7,.2,1); }
.view.is-active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.page-header, .simple-header { display: flex; justify-content: space-between; align-items: center; margin: 9px 0 20px; }
.page-header h1, .simple-header h1 { margin: 0; font-size: 34px; line-height: 1; letter-spacing: -.045em; }
.eyebrow { margin: 0 0 6px; font-size: 10px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: #989ca5; font-weight: 750; }
.page-header .eyebrow { font-size: 8px; letter-spacing: .11em; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 5px; perspective: 700px; }
.theme-toggle, .language-toggle, .currency-toggle { width: 38px; height: 38px; display: grid; place-items: center; padding: 8px; border: 1px solid rgba(255,255,255,.72); border-radius: 14px; background: rgba(255,255,255,.48); box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 8px 18px rgba(52,48,40,.1), 0 2px 5px rgba(52,48,40,.07); backdrop-filter: blur(18px) saturate(145%); -webkit-backdrop-filter: blur(18px) saturate(145%); transform: translateZ(8px); transition: transform .2s ease, box-shadow .25s ease, background .4s ease, color .4s ease; }
.theme-toggle:active, .language-toggle:active, .currency-toggle:active, .contact-trigger:active { transform: translateY(1px) translateZ(2px); box-shadow: inset 0 1px 2px rgba(30,30,30,.12), 0 3px 8px rgba(30,30,30,.08); }
.theme-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-sun { display: none; }
.language-toggle { padding: 0; color: #52565e; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.currency-toggle { padding: 0; color: #4e525a; font-size: 17px; font-weight: 800; }
.contact-trigger { height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid rgba(25,27,31,.82); border-radius: 14px; color: #fff; background: linear-gradient(145deg, rgba(35,37,42,.95), rgba(16,18,21,.98)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 9px 18px rgba(30,31,34,.19), 0 2px 5px rgba(20,20,22,.13); font-size: 10px; font-weight: 750; transform: translateZ(10px); transition: transform .2s ease, box-shadow .25s ease, background .4s ease, color .4s ease; }
.top-contact-panel { max-height: 0; margin: -8px 0 0; padding: 0 17px; overflow: hidden; opacity: 0; border: 1px solid transparent; border-radius: 23px; background: rgba(255,255,255,.5); transform: translateY(-8px) perspective(800px) rotateX(-2deg); transition: max-height .42s cubic-bezier(.2,.72,.2,1), opacity .25s, transform .35s, margin .35s, padding .35s, border-color .35s, background .45s ease; backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%); }
.top-contact-panel.is-open { max-height: 460px; margin: -6px 0 18px; padding: 17px; opacity: 1; border-color: rgba(255,255,255,.7); transform: perspective(800px) rotateX(0); box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 18px 36px rgba(30,34,42,.14), 0 4px 10px rgba(30,34,42,.08); }
.top-contact-heading { display: flex; align-items: center; gap: 12px; }
.contact-logo { flex: 0 0 48px; width: 48px; height: 48px; padding: 3px; overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: 15px; background: rgba(255,255,255,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 9px 18px rgba(30,32,38,.16); }
.contact-logo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 11px; }
.top-contact-heading h3 { margin: 0; font-size: 17px; }
.top-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 15px 0 11px; }
.top-contact-grid > * { min-width: 0; min-height: 64px; display: flex; flex-direction: column; justify-content: center; padding: 11px; color: inherit; text-decoration: none; border: 1px solid rgba(255,255,255,.68); border-radius: 14px; background: rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 10px 20px rgba(38,39,43,.12), 0 3px 7px rgba(38,39,43,.07); backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%); transform: perspective(600px) translateZ(12px); transition: transform .2s ease, box-shadow .2s ease, background .4s ease; }
.top-contact-grid > *:active { transform: perspective(600px) translateZ(2px) translateY(1px); box-shadow: inset 0 1px 2px rgba(30,30,30,.12), 0 4px 9px rgba(30,30,30,.08); }
.top-contact-grid > :first-child { grid-row: span 2; }
.top-contact-grid span { margin-bottom: 5px; color: #8d9097; font-size: 9px; }
.top-contact-grid strong { font-size: 11px; line-height: 1.35; }
.social-contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 0 10px; }
.social-contact-links a { min-height: 45px; display: flex; align-items: center; justify-content: center; gap: 8px; color: inherit; text-decoration: none; border: 1px solid rgba(255,255,255,.7); border-radius: 14px; background: rgba(255,255,255,.43); box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 9px 18px rgba(38,39,43,.11); backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%); font-size: 11px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease; }
.social-contact-links a:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(30,30,30,.12), 0 3px 8px rgba(30,30,30,.08); }
.social-contact-links svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-contact-links .social-dot { fill: currentColor; stroke: none; }
.top-contact-panel .primary-button { min-height: 46px; }
.currency-panel { max-height: 0; margin: -8px 0 0; padding: 0 17px; overflow: hidden; opacity: 0; border: 1px solid transparent; border-radius: 23px; background: rgba(255,255,255,.52); transform: translateY(-8px) perspective(800px) rotateX(-2deg); transition: max-height .48s cubic-bezier(.2,.72,.2,1), opacity .25s, transform .35s, margin .35s, padding .35s, border-color .35s, background .45s ease; backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%); }
.currency-panel.is-open { max-height: 620px; margin: -6px 0 18px; padding: 17px; opacity: 1; border-color: rgba(255,255,255,.72); transform: perspective(800px) rotateX(0); box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 18px 36px rgba(30,34,42,.14), 0 4px 10px rgba(30,34,42,.08); }
.currency-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.currency-heading h3 { margin: 0; font-size: 20px; }
.rate-refresh { width: 39px; height: 39px; border: 1px solid rgba(255,255,255,.72); border-radius: 13px; background: rgba(255,255,255,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 8px 16px rgba(35,37,42,.1); font-size: 21px; }
.rate-refresh.is-loading { animation: rateSpin .8s linear infinite; }
@keyframes rateSpin { to { transform: rotate(360deg); } }
.rate-status { margin: 10px 0; color: #858991; font-size: 9px; }
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rates-grid > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 15px; background: rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 10px 19px rgba(35,37,42,.11); }
.rates-grid > div > strong { grid-column: 1 / -1; font-size: 11px; }
.rates-grid span { display: grid; gap: 3px; }.rates-grid small { color: #8b8f97; font-size: 8px; }.rates-grid b { font-size: 14px; }
.currency-calculator { display: grid; gap: 10px; margin-top: 12px; padding: 13px; border: 1px solid rgba(255,255,255,.72); border-radius: 16px; background: rgba(255,255,255,.44); box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 12px 22px rgba(35,37,42,.12); }
.currency-calculator label { display: grid; gap: 6px; color: #858991; font-size: 9px; }
.currency-calculator input, .currency-direction select { width: 100%; height: 43px; padding: 0 11px; color: inherit; border: 1px solid rgba(135,137,143,.18); border-radius: 12px; outline: 0; background: rgba(255,255,255,.62); font-weight: 700; }
.currency-direction { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 8px; align-items: center; }
.currency-direction button { width: 40px; height: 40px; border: 0; border-radius: 12px; color: #fff; background: #25282e; font-size: 19px; }
.currency-result { display: flex; justify-content: space-between; align-items: end; gap: 10px; padding-top: 2px; }
.currency-result span { color: #838790; font-size: 9px; }.currency-result strong { font-size: 20px; letter-spacing: -.03em; }
.rate-source-link { display: block; margin-top: 11px; color: #246ccf; text-align: center; text-decoration: none; font-size: 9px; font-weight: 700; }
.circle-button { width: 48px; height: 48px; padding: 12px; border: 0; border-radius: 50%; background: #f5f5f5; }
.circle-button svg, .search-box svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.search-box { width: 100%; height: 58px; display: grid; grid-template-columns: 24px 1fr 25px; align-items: center; gap: 14px; padding: 0 17px; text-align: left; color: #777b84; background: rgba(255,255,255,.46); border: 1px solid rgba(255,255,255,.76); border-radius: 19px; box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 12px 25px rgba(31,35,45,.09), 0 3px 7px rgba(31,35,45,.05); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); transition: background .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease; }
.search-box span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.sliders { stroke-width: 1.6 !important; }
.chips { display: flex; gap: 10px; margin: 18px -20px 18px 0; padding-right: 20px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 43px; padding: 0 20px; border: 0; border-radius: 23px; background: var(--card); box-shadow: 0 6px 18px rgba(34,38,48,.045); color: #5e626a; font-size: 13px; }
.chip.is-active { background: #17191d; color: #fff; }

.hero-carousel { position: relative; margin-bottom: 26px; }
.hero-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 23px; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; width: 100%; height: 246px; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; border-radius: 23px; background: #e9eef6; cursor: pointer; isolation: isolate; }
.hero-photo, .vehicle-media, .detail-media, .saved-thumb { background-repeat: no-repeat; background-size: cover; background-position: center; }
.hero-photo { position: absolute; inset: 0; transform: scale(1.015); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245,248,253,1) 0%, rgba(245,248,253,.99) 42%, rgba(245,248,253,.58) 58%, rgba(245,248,253,0) 78%); }
.hero-copy { position: relative; z-index: 2; width: 63%; padding: 20px 0 0 20px; }
.featured-pill, .card-tag { display: inline-flex; align-items: center; min-height: 25px; padding: 0 10px; border-radius: 13px; color: #1c4f93; background: #dbeaff; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.hero-copy h2 { margin: 17px 0 5px; font-size: 22px; line-height: 1.02; letter-spacing: -.035em; }
.hero-copy p { margin: 0 0 13px; color: #5d626b; font-size: 12px; }
.hero-price { display: block; margin-bottom: 4px; font-size: 21px; letter-spacing: -.02em; }
.hero-meta { display: block; color: #6d7179; font-size: 10px; }
.hero-button { position: absolute; z-index: 3; bottom: 18px; left: 20px; min-width: 118px; height: 42px; border: 0; border-radius: 21px; color: #fff; background: #111316; font-size: 12px; font-weight: 650; }
.favorite-button { position: absolute; z-index: 5; top: 14px; right: 13px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.76), 0 3px 12px rgba(20,24,32,.08); }
.favorite-button::before { content: "♡"; display: block; font-family: Arial, sans-serif; font-size: 27px; line-height: 1; transform: translateY(1px); }
.favorite-button.is-favorite::before { content: "♥"; color: var(--blue); font-size: 23px; }
.hero-slide > .favorite-button { right: 3px; width: 50px; height: 50px; }
.hero-dots { position: absolute; z-index: 3; bottom: 14px; left: 50%; display: flex; gap: 6px; transform: translateX(-50%); }
.hero-dot { width: 6px; height: 6px; border: 0; border-radius: 50%; background: rgba(20,20,22,.2); padding: 0; }
.hero-dot.is-active { background: #111; }

.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 15px; }
.section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.section-heading button { border: 0; background: transparent; color: #5f626a; font-size: 12px; }
.section-heading button span { margin-left: 7px; font-size: 22px; vertical-align: -2px; }
.section-heading .reset-filters { padding: 8px 11px; border-radius: 12px; color: #b33434; background: rgba(230,70,70,.1); font-size: 10px; font-weight: 750; }
.section-heading .reset-filters[hidden] { display: none; }
.vehicle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vehicle-card { min-width: 0; overflow: hidden; border: 1px solid #ebe9e2; border-radius: 19px; background: var(--card); box-shadow: 0 7px 20px rgba(28,32,42,.05); cursor: pointer; }
.vehicle-media { position: relative; height: 106px; background-color: #eceff3; }
.vehicle-media .favorite-button { top: 8px; right: 6px; width: 38px; height: 38px; }
.vehicle-media .favorite-button::before { font-size: 23px; }
.vehicle-media .favorite-button.is-favorite::before { font-size: 20px; }
.card-tag { position: absolute; top: 11px; left: 10px; min-height: 23px; padding: 0 8px; text-transform: none; background: #dff6d8; color: #287d32; }
.card-tag.blue { background: #dcecff; color: #2461aa; }
.card-tag.purple { background: #eee4ff; color: #6433a8; }
.vehicle-body { padding: 11px 12px 13px; }
.vehicle-body h3 { min-height: 34px; margin: 0 0 7px; font-size: 14px; line-height: 1.18; letter-spacing: -.02em; }
.vehicle-specs { display: flex; flex-wrap: wrap; gap: 6px 10px; color: #70747c; font-size: 9.5px; }
.vehicle-price { display: block; margin-top: 9px; font-size: 16px; }
.contact-card { display: block; margin-top: 25px; padding: 18px; border: 1px solid #e8eaf0; border-radius: 22px; background: linear-gradient(145deg,#fff,#f7f8fb); box-shadow: 0 8px 24px rgba(28,32,42,.055); }
.contact-heading { display: flex; align-items: center; gap: 13px; }
.contact-icon { flex: 0 0 45px; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#f5d378,#9b6814); color: #111; font-weight: 900; font-size: 20px; }
.contact-label { margin: 1px 0 5px; color: #989ca5; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.contact-card h3 { margin: 0; font-size: 18px; }
.address-row { display: grid; grid-template-columns: 34px 1fr 12px; align-items: center; gap: 10px; margin-top: 16px; padding: 13px; color: inherit; text-decoration: none; border: 1px solid #e9eaf0; border-radius: 15px; background: #fff; }
.address-row .pin-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: #eaf2ff; font-size: 20px; }
.address-row strong { display: block; font-size: 12px; }
.address-row small { display: block; margin-top: 3px; color: #7a7e86; font-size: 9px; }
.address-row b { color: #888c94; font-size: 21px; }
.contact-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 2px 0; color: #777b84; font-size: 10px; }
.contact-actions a { padding: 8px 12px; border-radius: 12px; color: #1d60c7; background: #eaf2ff; text-decoration: none; font-size: 10px; font-weight: 750; }

.bottom-nav { position: fixed; z-index: 40; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), calc(var(--app-w) - 24px)); height: 74px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 12px; transform: translateX(-50%) perspective(900px) translateZ(14px); background: var(--nav-bg); border: 1px solid rgba(255,255,255,.68); border-radius: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.94), inset 0 -1px 0 rgba(255,255,255,.2), 0 18px 38px rgba(26,30,40,.18), 0 4px 10px rgba(26,30,40,.08); backdrop-filter: blur(30px) saturate(155%); -webkit-backdrop-filter: blur(30px) saturate(155%); transition: background .45s ease, border-color .45s ease, box-shadow .45s ease; }
.nav-item { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 3px 0 1px; border: 0; background: transparent; color: #6d7077; }
.nav-item small { display: block; min-height: 12px; font-size: 9px; line-height: 1.2; white-space: nowrap; }
.nav-item.is-active { color: var(--blue); font-weight: 700; }
.nav-svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-icon { position: relative; display: block; width: 24px; height: 22px; }
.home-icon::before { content: ""; position: absolute; left: 4px; bottom: 1px; width: 16px; height: 14px; border: 2px solid currentColor; border-radius: 3px; }
.home-icon::after { content: ""; position: absolute; left: 5px; top: 0; width: 13px; height: 13px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); border-radius: 2px; }
.search-icon { border: 2px solid currentColor; width: 18px; height: 18px; border-radius: 50%; margin-right: 5px; }
.search-icon::after { content: ""; position: absolute; right: -6px; bottom: -4px; width: 8px; height: 2px; background: currentColor; transform: rotate(45deg); border-radius: 2px; }
.tag-icon { width: 22px; height: 17px; margin-top: 2px; border: 2px solid currentColor; border-radius: 4px; transform: rotate(-45deg); }
.tag-icon::after { content: ""; position: absolute; right: 3px; top: 4px; width: 3px; height: 3px; border: 1.5px solid currentColor; border-radius: 50%; }
.heart-icon::before { content: "♡"; position: absolute; inset: -6px 0 0; font-family: Arial,sans-serif; font-size: 30px; }
.menu-icon { height: 22px; background: transparent; }
.menu-icon::before { content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor; }

.simple-header { margin-top: 14px; }
.count-badge { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #17191d; font-size: 13px; }
.view-note { margin: -6px 0 24px; color: var(--muted); font-size: 12px; }
.saved-list { display: grid; gap: 13px; }
.saved-row-wrap { position: relative; overflow: hidden; border-radius: 18px; background: var(--danger); }
.delete-saved { position: absolute; right: 0; top: 0; bottom: 0; width: 76px; display: grid; place-items: center; border: 0; color: #fff; background: var(--danger); font-size: 27px; }
.saved-row { position: relative; z-index: 2; min-height: 112px; display: grid; grid-template-columns: 125px 1fr; gap: 13px; padding: 9px; background: #fff; border: 1px solid #ededf1; border-radius: 18px; transition: transform .25s ease; touch-action: pan-y; }
.saved-row.is-swiped { transform: translateX(-76px); }
.saved-thumb { height: 94px; border-radius: 12px; }
.saved-info { align-self: center; min-width: 0; }
.saved-info h3 { margin: 6px 0; font-size: 14px; }
.saved-info p { margin: 0; color: var(--muted); font-size: 10px; }
.sold-pill { display: inline-flex; padding: 4px 8px; border-radius: 9px; color: #fff; background: var(--danger); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.empty-state { padding: 45px 25px; text-align: center; color: var(--muted); border: 1px dashed #dfe1e7; border-radius: 20px; }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 17px; }

.sell-intro { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; margin-bottom: 22px; padding: 15px; border-radius: 18px; background: #f2f6ff; }
.sell-intro span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 800; }
.sell-intro p { margin: 0; color: #5f6570; font-size: 12px; line-height: 1.45; }
.sell-form, .field-label { display: grid; gap: 13px; }
.sell-form label, .field-label { display: grid; gap: 7px; color: #43474e; font-size: 11px; font-weight: 700; }
.sell-form label span { float: right; color: #a0a3aa; font-weight: 400; }
.sell-form input, .sell-form textarea, .field-label select { width: 100%; min-height: 51px; padding: 13px 14px; border: 1px solid #e3e5e9; border-radius: 14px; outline: 0; background: #fafafa; resize: vertical; font-weight: 400; }
.sell-form input:focus, .sell-form textarea:focus, .field-label select:focus { border-color: #9abbff; box-shadow: 0 0 0 3px #e9f0ff; background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.primary-button { width: 100%; min-height: 53px; border: 0; border-radius: 16px; color: #fff; background: #141619; font-size: 13px; font-weight: 750; }
.privacy-note { margin: -1px 12px 0; color: #989ba3; text-align: center; font-size: 9px; line-height: 1.4; }
.menu-logo { height: 192px; overflow: hidden; border-radius: 24px; background: #080808; }
.menu-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.menu-list { margin: 18px 0; border: 1px solid var(--line); border-radius: 19px; overflow: hidden; }
.menu-list a, .menu-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 17px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-list > :last-child { border-bottom: 0; }
.menu-list span { color: var(--muted); font-size: 11px; }.menu-list strong { text-align: right; font-size: 12px; line-height: 1.35; }
.telegram-button { background: var(--blue); }

.overlay { position: fixed; z-index: 55; inset: 0; width: min(100%, var(--app-w)); margin: 0 auto; background: rgba(7,9,13,.34); opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px); }
.overlay.is-visible { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 60; bottom: 0; width: min(100%, var(--app-w)); max-height: 86dvh; padding: 11px 22px calc(26px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #fff; transform: translateY(105%); transition: transform .4s cubic-bezier(.2,.72,.24,1); box-shadow: 0 -20px 50px rgba(20,25,35,.15); }
.sheet.is-open { transform: translateY(0); }
.sheet-grabber { width: 42px; height: 5px; margin: 0 auto 18px; border-radius: 4px; background: #d8d9dd; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.sheet-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.close-button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f2f4; font-size: 23px; font-weight: 300; }
.filter-sheet .field-label { margin-bottom: 15px; }
.price-label { display: flex; justify-content: space-between; margin: 22px 2px 12px; font-size: 11px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.price-inputs label { display: grid; gap: 6px; color: #797d85; font-size: 9px; font-weight: 700; }
.price-inputs input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #e2e4e9; border-radius: 13px; outline: 0; background: #fafafa; font-size: 13px; font-weight: 650; }
.dual-range { position: relative; height: 42px; margin: 10px 0 17px; }
.range-track { position: absolute; left: 2px; right: 2px; top: 20px; height: 4px; overflow: hidden; border-radius: 3px; background: #e2e5eb; }
.range-track span { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: inherit; background: var(--blue); }
.dual-range input[type="range"] { position: absolute; inset: 10px 0 auto; width: 100%; height: 24px; margin: 0; padding: 0; pointer-events: none; appearance: none; -webkit-appearance: none; background: transparent; }
.dual-range input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.dual-range input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 2px 8px rgba(30,90,190,.3); pointer-events: auto; -webkit-appearance: none; }
.dual-range input[type="range"]::-moz-range-track { height: 4px; background: transparent; }
.dual-range input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 2px 8px rgba(30,90,190,.3); pointer-events: auto; }

.detail-panel { position: fixed; z-index: 65; inset: 0; width: min(100%, var(--app-w)); margin: 0 auto; overflow-y: auto; background: #fff; opacity: 0; pointer-events: none; transform: translateY(35px) scale(.97); transform-origin: 50% 70%; transition: .42s cubic-bezier(.2,.72,.2,1); }
.detail-panel.is-open { opacity: 1; pointer-events: auto; transform: none; }
.detail-top { position: relative; height: 344px; overflow: hidden; background: #eef1f5; }
.detail-media { position: absolute; inset: 0; background-position: center; background-size: cover; transform: scale(1.01); }
.detail-top::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.18)); pointer-events: none; }
.detail-back, .detail-fav { position: absolute; z-index: 3; top: calc(40px + env(safe-area-inset-top)); width: 43px; height: 43px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); }
.detail-back { left: 18px; font-size: 25px; }.detail-fav { right: 18px; font-size: 26px; }
.detail-back { display: grid; place-items: center; padding: 0; }
.detail-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-count { position: absolute; z-index: 3; right: 18px; bottom: 17px; padding: 7px 10px; color: #fff; background: rgba(0,0,0,.55); border-radius: 13px; font-size: 10px; }
.detail-content { position: relative; z-index: 2; margin-top: -15px; padding: 24px 21px calc(105px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fff; }
.detail-content h1 { margin: 7px 0 8px; font-size: 27px; letter-spacing: -.045em; }
.detail-sub { margin: 0; color: var(--muted); font-size: 12px; }
.detail-price { display: block; margin: 20px 0; font-size: 26px; }
.detail-spec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.detail-spec { padding: 13px 8px; border-radius: 14px; background: #f5f6f8; text-align: center; }
.detail-spec span { display: block; margin-bottom: 5px; color: #8c9097; font-size: 9px; }.detail-spec strong { font-size: 11px; }
.detail-section { margin-top: 25px; }.detail-section h3 { margin: 0 0 10px; font-size: 17px; }.detail-section p { margin: 0; color: #60646c; font-size: 12px; line-height: 1.65; }
.seller-bar { position: fixed; z-index: 5; bottom: 0; width: min(100%, var(--app-w)); padding: 13px 20px calc(13px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); box-shadow: 0 -10px 25px rgba(20,25,35,.08); backdrop-filter: blur(18px); }
.seller-bar button { background: var(--blue); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(95px + env(safe-area-inset-bottom)); max-width: 320px; padding: 12px 16px; border-radius: 14px; color: #fff; background: rgba(16,18,22,.92); font-size: 11px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.theme-transition { position: fixed; z-index: 99; inset: 0; width: min(100%, var(--app-w)); margin: 0 auto; pointer-events: none; opacity: 0; background: radial-gradient(circle at 78% 18%, rgba(255,190,112,.58), rgba(188,92,92,.34) 27%, rgba(38,40,48,.92) 78%); }
.theme-transition.is-active { animation: sunsetTheme .78s cubic-bezier(.4,0,.2,1) both; }
@keyframes sunsetTheme { 0% { opacity: 0; } 42% { opacity: .9; } 58% { opacity: .9; } 100% { opacity: 0; } }

html[data-theme="dark"] {
  --ink: #f1efe8;
  --muted: #a8abb3;
  --line: #3a3d44;
  --surface: #30333a;
  --page: #23252b;
  --card: #2b2e35;
  --nav-bg: rgba(43,46,53,.58);
}
html[data-theme="dark"] body { background: #181a1f; }
html[data-theme="dark"] .desktop-backdrop { background: radial-gradient(circle at 50% 15%, #2d3037 0 18%, #1d1f24 58%, #15171b 100%); }
html[data-theme="dark"] .status-bar { background: rgba(35,37,43,.9); }
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .language-toggle,
html[data-theme="dark"] .currency-toggle { color: #f1c75b; border-color: rgba(255,255,255,.1); background: rgba(54,57,65,.56); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 20px rgba(0,0,0,.22); }
html[data-theme="dark"] .theme-moon { display: none; }
html[data-theme="dark"] .theme-sun { display: block; }
html[data-theme="dark"] .contact-trigger { color: #202228; background: #f0ede4; }
html[data-theme="dark"] .top-contact-panel { border-color: rgba(255,255,255,.1); background: rgba(44,47,55,.58); }
html[data-theme="dark"] .currency-panel { border-color: rgba(255,255,255,.1); background: rgba(44,47,55,.62); }
html[data-theme="dark"] .contact-logo { border-color: rgba(255,255,255,.12); background: rgba(64,67,76,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 22px rgba(0,0,0,.25); }
html[data-theme="dark"] .top-contact-grid > * { border-color: rgba(255,255,255,.1); background: rgba(66,69,78,.46); box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 12px 22px rgba(0,0,0,.24); }
html[data-theme="dark"] .social-contact-links a { border-color: rgba(255,255,255,.1); background: rgba(66,69,78,.46); box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 10px 20px rgba(0,0,0,.22); }
html[data-theme="dark"] .rates-grid > div,
html[data-theme="dark"] .currency-calculator { border-color: rgba(255,255,255,.1); background: rgba(66,69,78,.46); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 12px 22px rgba(0,0,0,.24); }
html[data-theme="dark"] .rate-refresh,
html[data-theme="dark"] .currency-calculator input,
html[data-theme="dark"] .currency-direction select { color: var(--ink); border-color: rgba(255,255,255,.1); background: rgba(51,54,62,.7); }
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .vehicle-card,
html[data-theme="dark"] .saved-row,
html[data-theme="dark"] .menu-list,
html[data-theme="dark"] .field-label select,
html[data-theme="dark"] .sell-form input,
html[data-theme="dark"] .sell-form textarea,
html[data-theme="dark"] .price-inputs input { color: var(--ink); border-color: #3a3d44; background: var(--card); }
html[data-theme="dark"] .chip { color: #b7bac2; background: #2b2e35; }
html[data-theme="dark"] .chip.is-active { color: #202228; background: #f0ede4; }
html[data-theme="dark"] .hero-slide { background: #30343c; }
html[data-theme="dark"] .hero-slide::after { background: linear-gradient(90deg, rgba(35,38,44,1) 0%, rgba(35,38,44,.97) 42%, rgba(35,38,44,.58) 60%, rgba(35,38,44,0) 80%); }
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .hero-meta,
html[data-theme="dark"] .vehicle-specs,
html[data-theme="dark"] .view-note,
html[data-theme="dark"] .detail-sub,
html[data-theme="dark"] .detail-section p { color: #aeb1b9; }
html[data-theme="dark"] .favorite-button,
html[data-theme="dark"] .detail-back,
html[data-theme="dark"] .detail-fav { color: #f2f0e9; background: rgba(43,46,53,.94); box-shadow: none; }
html[data-theme="dark"] .search-box { border-color: rgba(255,255,255,.1); background: rgba(55,58,67,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 14px 28px rgba(0,0,0,.2); }
html[data-theme="dark"] .bottom-nav { border-color: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 38px rgba(0,0,0,.34), 0 4px 10px rgba(0,0,0,.2); }
html[data-theme="dark"] .nav-item { color: #aeb2bb; }
html[data-theme="dark"] .nav-item.is-active { color: #4d91ff; }
html[data-theme="dark"] .section-heading button { color: #b1b4bc; }
html[data-theme="dark"] .sheet,
html[data-theme="dark"] .detail-panel,
html[data-theme="dark"] .detail-content,
html[data-theme="dark"] .seller-bar { color: var(--ink); background: #23252b; }
html[data-theme="dark"] .detail-spec { background: #30333a; }
html[data-theme="dark"] .detail-spec span { color: #9ea2ab; }
html[data-theme="dark"] .sell-intro { background: #283246; }
html[data-theme="dark"] .menu-logo { border: 1px solid #3a3d44; }
html[data-theme="dark"] .close-button { color: var(--ink); background: #34373e; }
html[data-theme="dark"] .range-track { background: #454850; }

html.telegram-host .status-bar { display: none; }
html.telegram-host .app-content { padding-top: calc(18px + max(env(safe-area-inset-top), var(--tg-safe-top, 0px))); }

.splash { position: fixed; z-index: 100; inset: 0; width: min(100%, var(--app-w)); margin: 0 auto; display: grid; place-items: center; background: #050505; transition: opacity .55s ease, visibility .55s; }
.splash img { width: 100%; height: 100%; object-fit: cover; animation: logoBreath 1.8s ease-in-out both; }
.splash-line { position: absolute; left: 25%; right: 25%; bottom: 44px; height: 2px; overflow: hidden; background: rgba(255,255,255,.1); }
.splash-line span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg,#8c5a12,#ffd979); transform-origin: left; animation: loadLine 1.75s ease both; }
.splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes logoBreath { 0% { opacity: .25; transform: scale(1.04); filter: blur(5px); } 55%,100% { opacity: 1; transform: scale(1); filter: none; } }
@keyframes loadLine { from { transform: scaleX(0); } }

@media (min-width: 620px) {
  :root { --app-w: min(720px, calc(100vw - 48px)); }
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100dvh - 48px); max-height: calc(100dvh - 48px); border: 8px solid var(--page); border-radius: 52px; }
  .app-content, .detail-panel { height: calc(100dvh - 64px); min-height: 0; overflow-y: auto; }
  .status-bar { top: 32px; border-radius: 40px 40px 0 0; }
  .bottom-nav { bottom: 44px; border-radius: 24px; }
  .overlay, .splash { top: 32px; bottom: 32px; height: auto; border-radius: 43px; overflow: hidden; }
  .detail-panel { top: 32px; bottom: 32px; height: auto; border-radius: 43px; overflow-x: hidden; overflow-y: auto; }
  .sheet { bottom: 32px; }
  .vehicle-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .hero-slide { height: 300px; }
  .hero-copy { width: 52%; padding: 30px 0 0 30px; }
  .hero-button { left: 30px; bottom: 25px; }
  .detail-top { height: 420px; }
  .detail-content { padding-left: 34px; padding-right: 34px; }
  .seller-bar { bottom: 32px; }
}

@media (max-width: 375px) {
  .app-content { padding-left: 15px; padding-right: 15px; }
  .vehicle-grid { gap: 10px; }
  .vehicle-media { height: 96px; }
  .vehicle-body { padding: 10px; }
}
