/* Shared frosted materials: navigation floats above a quieter content layer. */
:root {
  --ink: #302631;
  --muted: #67556b;
  --paper: transparent;
  --white: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .78);
  --green: #9347aa;
  --green-2: #49344e;
  --violet: #9347aa;
  --gold: #a74976;
  --blue: #9347aa;
  --ruby: #b43d59;
  --accent: #873794;
  --accent-hover: #722783;
  --brand-muted: #865474;
  --placeholder: #806c85;
  --control-fill: rgba(255, 255, 255, .48);
  --control-line: rgba(255, 255, 255, .9);
  --soft-fill: rgba(255, 255, 255, .32);
  --soft-line: rgba(255, 255, 255, .63);
  --button-fill: rgba(255, 255, 255, .54);
  --button-hover: rgba(255, 255, 255, .86);
  --glass-solid: #f2e8ef;
  --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, .64), rgba(255, 255, 255, .35));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .28), 0 14px 36px rgba(96, 42, 90, .09);
  --header-fill: linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .38));
  --header-shadow: inset 0 1px 0 #fff, 0 8px 28px rgba(94, 44, 87, .11);
  --modal-fill: linear-gradient(145deg, rgba(255, 255, 255, .91), rgba(245, 231, 242, .86));
  --focus-ring: rgba(147, 71, 170, .55);
  --page-background:
    radial-gradient(ellipse at 5% 8%, rgba(205, 164, 175, .22), transparent 48%),
    radial-gradient(ellipse at 91% 23%, rgba(185, 175, 198, .16), transparent 46%),
    radial-gradient(ellipse at 46% 92%, rgba(202, 181, 186, .13), transparent 54%),
    linear-gradient(135deg, #e6e1e3, #e5e3e8 46%, #e8e2e3);
}

html { color-scheme: light; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page-background);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.app-shell, .page-shell, .catalog-main, .listing-main, .page-main, .vinkot-home {
  background: transparent;
}

/* Blur is applied to the outer surface, not repeatedly to its content. */
.topbar, .topbar.scrolled,
.catalog-filters, .catalog-toolbar, .car-card, .catalog-empty,
.listing-price-box, .detail-section, .listing-sticky,
.modal-card, .toast, .page-hero, .auth-panel,
.client-panel, .client-hero-card, .manager-card, .portal-card,
.admin-command-bar, .admin-card, .admin-chat-card,
.portal-metrics article, .client-admin-grid article, .task-board article,
.v-home-offer, .v-contact-band, .v-principle-grid article,
.v-feature-split, .v-contract, .v-process-grid article, .v-contacts {
  color: var(--ink);
  background: var(--glass-fill);
  border: 1px solid var(--line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  backdrop-filter: blur(24px) saturate(1.45);
  border-radius: 28px;
}

.topbar, .topbar.scrolled {
  top: 14px;
  border-radius: 999px;
  background: var(--header-fill);
  -webkit-backdrop-filter: blur(34px) saturate(1.7);
  backdrop-filter: blur(34px) saturate(1.7);
  box-shadow: var(--header-shadow);
}
.nav a { color: var(--ink); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.section-kicker, .eyebrow, .car-brand, .listing-card .car-brand { color: var(--accent); }
h1, h2, h3, .car-price, .listing-price-box strong, .listing-sticky h3 {
  font-family: inherit;
  color: var(--ink);
  letter-spacing: -.035em;
}

.catalog-heading {
  display: block;
  overflow: visible;
  padding: 45px clamp(18px, 4vw, 56px) 28px;
  background: transparent;
  text-align: center;
}
.catalog-heading > div:first-child { margin-inline: auto; }
.catalog-heading::after { display: none; }
.catalog-heading h1 {
  margin: 0 0 25px;
  font-size: clamp(25px, 4.1vw, 52px);
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--ink);
}
.catalog-country-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
[data-page="catalog"] .catalog-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 24px; }
[data-page="catalog"] .catalog-preset { min-height: 44px; padding: 11px 20px; }
.country-pill {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  gap: 8px;
  color: var(--muted);
  background: var(--soft-fill);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 12px rgba(62, 80, 120, .035);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease, box-shadow .18s ease;
}
.country-pill:hover { background: var(--button-hover); }
.country-pill.is-active, .country-pill[aria-pressed="true"] {
  color: var(--accent);
  background: var(--button-hover);
  box-shadow: var(--glass-shadow);
}
.country-flag { display: inline-flex; width: 22px; height: 16px; flex: 0 0 22px; overflow: hidden; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(48, 26, 48, .12); }
.country-flag svg, .country-flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.catalog-toolbar {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  min-height: 0;
  justify-content: flex-end;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 22px;
}
.catalog-filters { padding: 24px 20px; }
@media (min-width: 981px) {
  .catalog-workspace {
    grid-template-areas: ". sorting" ". feedback" ". tags" "filters cars" ". more";
    row-gap: 0;
  }
  .catalog-results { display: contents; }
  .catalog-toolbar { grid-area: sorting; }
  .catalog-feedback { grid-area: feedback; }
  .active-filters { grid-area: tags; }
  .catalog-filters { grid-area: filters; }
  .catalog-grid { grid-area: cars; }
  .load-more { grid-area: more; }
}
.filter-title h2 { font-size: 22px; font-weight: 650; }
.filter-field span, .sort-control span {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 600;
}
.text-button, .back-link, .back-link:hover { color: var(--accent); }
.filter-note { color: var(--muted); font-size: 11px; }
.catalog-feedback { margin-bottom: 14px; padding: 12px 16px; border-radius: 18px; }

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select, textarea, .filter-field input, .filter-field select, .sort-control select,
.v-contacts input, .v-contacts select, .v-contacts textarea {
  color: var(--ink);
  background: var(--control-fill);
  border: 1px solid var(--control-line);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(67, 86, 125, .035), 0 1px 0 rgba(255, 255, 255, .25);
}
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
select option { color: var(--ink); background: var(--glass-solid); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
.toggle-track { background: rgba(92, 104, 128, .25); box-shadow: inset 0 1px 2px rgba(55, 65, 90, .1); }
.power-toggle input:checked + .toggle-track { background: #30b967; }
.power-toggle input:focus-visible + .toggle-track { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.primary, .secondary, .ghost, .menu-button, .close {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .66), 0 5px 15px rgba(43, 78, 135, .075);
  transition: background .18s ease, box-shadow .18s ease;
}
.primary {
  color: #fff;
  background: linear-gradient(155deg, #a34b9d, #793ea0);
}
.primary:hover { background: linear-gradient(155deg, #903985, #6c2f92); }
.secondary, .ghost, .menu-button, .close, .listing-actions .secondary, .listing-sticky .secondary {
  color: var(--ink);
  background: var(--button-fill);
}
.topbar:not(.scrolled) .ghost, .topbar.scrolled .secondary { color: var(--ink); background: var(--button-fill); border-color: var(--line); }
.secondary:hover, .ghost:hover, .close:hover { color: var(--accent); background: var(--button-hover); }
.primary:disabled, .secondary:disabled { opacity: .55; }
.listing-actions .button-link, .listing-actions .car-action { min-height: 42px; font-size: 12px; }
.listing-sticky .listing-service-button { height: 46px; min-height: 46px; }
.header-controls { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 8px; }
.theme-toggle {
  display: inline-grid;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--button-fill);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--glass-shadow);
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.theme-toggle:hover { color: var(--accent); background: var(--button-hover); }
.theme-toggle svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.car-card { border-radius: 27px; }
.car-card.listing-card { padding: 0; }
.car-card:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow), 0 18px 40px rgba(77, 35, 75, .09); }
.car-card-body { background: transparent; }
.listing-card .car-card-body { padding: 16px 18px 18px; }
.listing-card .car-card-body h2 { font-size: 19px; font-weight: 650; line-height: 1.15; }
.listing-card .car-brand { color: var(--brand-muted); font-size: 10px; font-weight: 500; }
.car-image-wrap { background: rgba(255, 255, 255, .2); border-radius: 21px; }
.listing-card .car-image-wrap { margin: 12px 12px 0; }
.source-label {
  color: var(--ink);
  background: var(--button-fill);
  border: 1px solid var(--control-line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(33, 50, 70, .08);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}
.listing-specs { gap: 5px; margin-top: 10px; }
.listing-specs span, .active-filters span, .price-badge, .feature-list span,
.report-grid div, .report-summary article, .vinkot-check-grid article,
.contract-points div, .v-feature-list div, .admin-table.modern .admin-row,
.admin-car-list article, .payment-row, .chat-message {
  color: var(--muted);
  background: var(--soft-fill);
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}
.listing-specs span { padding: 5px 7px; font-size: 11px; line-height: 1.35; white-space: normal; overflow: visible; text-overflow: clip; border-radius: 13px; }
.car-price, .listing-card .car-price, .catalog-grid .car-price { color: var(--ink); font-size: 23px; font-weight: 700; margin-top: 12px; }
.price-badge { color: var(--muted); margin-top: 8px; padding: 4px 8px; font-size: 10px; font-weight: 500; border-radius: 999px; }
.active-filters span { color: var(--accent); border-radius: 999px; font-weight: 600; }
.listing-actions { margin-top: 16px; }
.market-price-badge { border: 1px solid rgba(255, 255, 255, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); font-weight: 650; }
.market-price-below_market { color: #fff; background: #d63146; }
.market-price-excellent_price { color: #46621c; background: rgba(216, 241, 157, .86); }
.market-price-market_price { color: #fff; background: #16834a; }
.market-price-above_market { color: #fff; background: #7d41df; }
.market-price-pending, .market-price-empty {
  color: var(--muted);
  background: var(--control-fill);
  border: 1px solid var(--line);
}
.market-price-pending::before { background: var(--accent); }

.listing-title-row h1 { font-weight: 650; line-height: 1.04; font-size: clamp(34px, 5vw, 65px); }
.listing-price-box strong { font-size: 29px; font-weight: 700; }
.detail-section h2, .listing-section-head h2 { font-weight: 650; }
.detail-section p, .listing-lead, .listing-price-box p, .listing-price-box small,
.listing-sticky p, .listing-sticky li, .listing-sticky .market-price-caption { color: var(--muted); }
.listing-sticky h3 { color: var(--ink); }
.detail-section { padding: 24px; }
.listing-sticky { padding: 26px; }
.detail-grid > div { border-bottom-color: rgba(110, 132, 165, .12); }
.listing-slider-frame { border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--glass-shadow); border-radius: 28px; }
.listing-slider-nav, .listing-slider-count, .photo-lightbox-close, .photo-lightbox-nav {
  color: #fff;
  background: rgba(36, 48, 70, .35);
  border: 1px solid rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.photo-lightbox { background: rgba(14, 22, 38, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.photo-lightbox-close:hover, .photo-lightbox-nav:hover { background: rgba(87, 119, 171, .5); border-color: rgba(255, 255, 255, .8); }
.gallery-thumb { background: rgba(255, 255, 255, .4); border-radius: 15px; }
.gallery-thumb.is-active { border-color: var(--accent); }
.modal { background: rgba(48, 64, 88, .18); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.modal-card { background: var(--modal-fill); }
.toast { color: var(--ink); border-radius: 18px; }
.scroll-top {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 17px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  background: var(--glass-fill);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  backdrop-filter: blur(24px) saturate(1.45);
  cursor: pointer;
}
.scroll-top[hidden], body:has(.modal.open, dialog[open], .photo-lightbox.open) .scroll-top { display: none; }
.scroll-top:hover { background: var(--button-hover); }
.scroll-top:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.scroll-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.load-more-note { max-width: 45ch; margin: 10px auto 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.listing-loader, .catalog-feedback, .price-warning { color: var(--muted); background: var(--control-fill); border-color: var(--line); }

.v-home-hero { border-radius: 32px; gap: 16px; overflow: visible; }
.v-home-photo { min-height: 580px; border-radius: 32px; }
.v-home-offer { border-radius: 32px; }
.v-home-offer h1 { font-weight: 650; }
.v-home-directions span, .v-principle-grid span, .v-process-grid b { color: var(--accent); background: var(--control-fill); border-color: var(--line); border-radius: 999px; }
.v-contact-band { padding: 30px; }
.v-feature-content, .v-contract-content { background: transparent; }
.v-contract-image { background: rgba(255, 255, 255, .25); }
.v-feature-list div { padding: 16px; }
.v-feature-split, .v-contract { overflow: hidden; }
.v-process-grid article, .v-principle-grid article { border-radius: 24px; }
.v-portal { color: var(--ink); background: transparent; }
.v-portal p, .v-portal .section-kicker { color: var(--muted); }
.v-contacts .lead-form, .lead-form.compact { background: transparent; }
.page-hero { padding: 30px; }
.auth-panel.standalone { max-width: 520px; }
.admin-tabs, .status-tabs { padding: 5px; border-radius: 999px; background: var(--soft-fill); }
.admin-tabs button, .status-tabs button { color: var(--muted); background: transparent; border-radius: 999px; }
.admin-tabs button.active, .status-tabs button.active { color: var(--accent); background: var(--button-hover); box-shadow: var(--glass-shadow); }
.admin-table.modern .admin-row { border-radius: 18px; }
.message-list div, .chat-form { color: var(--ink); background: var(--soft-fill); border: 1px solid var(--soft-line); box-shadow: var(--glass-shadow); }
.chat-message.from-client { background: rgba(177, 122, 202, .2); }

/* Keep older page components on the same material and text palette. */
.sync-status { color: var(--ink); background: var(--glass-fill); border-color: var(--line); box-shadow: var(--glass-shadow); }
.catalog-quick-facts span, .report-detail-list article, .report-detail-title,
.timeline-item, .timeline.enhanced .timeline-item, .doc-row, .admin-row,
.checklist-grid div, .report-badge {
  color: var(--ink);
  background: var(--soft-fill);
  border-color: var(--soft-line);
}
.report-detail-list li { border-color: var(--soft-line); }
.report-detail-title span, .task-board article > span { color: var(--accent); }
.checklist-grid .done { color: var(--ink); }
.catalog-heading p:not(.section-kicker), .bare-price-note, .v-home-subtitle, .v-home-directions,
.v-section-heading > p:last-child, .v-contact-band p, .v-principle-grid p,
.v-feature-list p, .v-process-grid p, .v-contract-content > p:not(.section-kicker),
.v-contacts-copy p:last-child, .client-hero-card p, .portal-card p, .admin-card p,
.portal-empty p, .client-progress-ring span, .portal-metrics span,
.portal-card-head > span, .admin-car-title small, .doc-row small, .payment-row small,
.admin-row small, .task-board small, .message-list small,
.timeline.enhanced .timeline-item small, .report-detail-list li span { color: var(--muted); }
.v-portal .secondary { color: var(--ink); background: var(--button-fill); border-color: var(--line); }
.client-progress-ring {
  color: var(--ink);
  background: radial-gradient(circle closest-side, var(--glass-solid) 72%, transparent 73%),
    conic-gradient(var(--accent) var(--progress), var(--soft-line) 0);
}
.car-tag { color: #fff; background: var(--accent); }
.danger { color: #fff; background: var(--ruby); }
.listing-form-status, .report-grid em { color: var(--ruby); }
.skeleton { background-image: linear-gradient(90deg, rgba(167, 122, 161, .14) 25%, rgba(255, 255, 255, .46) 50%, rgba(167, 122, 161, .14) 75%); }

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f8edf6;
  --muted: #cdb8ce;
  --white: rgba(47, 31, 51, .82);
  --line: rgba(245, 210, 239, .2);
  --green: #d8a1ef;
  --green-2: #38263e;
  --violet: #d8a1ef;
  --gold: #eea8c3;
  --blue: #d8a1ef;
  --ruby: #ff9aad;
  --accent: #e1adf4;
  --accent-hover: #f1c9ff;
  --brand-muted: #c9a7c4;
  --placeholder: #b8a0bd;
  --control-fill: rgba(31, 21, 37, .68);
  --control-line: rgba(241, 204, 236, .24);
  --soft-fill: rgba(234, 190, 227, .075);
  --soft-line: rgba(237, 193, 230, .14);
  --button-fill: rgba(230, 186, 223, .1);
  --button-hover: rgba(234, 190, 230, .19);
  --glass-solid: #2b1e32;
  --glass-fill: linear-gradient(145deg, rgba(59, 39, 65, .84), rgba(36, 25, 43, .76));
  --glass-shadow: inset 0 1px 0 rgba(255, 222, 247, .17), inset 0 -1px 0 rgba(255, 222, 247, .035), 0 14px 36px rgba(8, 2, 14, .23);
  --header-fill: linear-gradient(145deg, rgba(65, 40, 68, .9), rgba(36, 24, 44, .86));
  --header-shadow: inset 0 1px 0 rgba(255, 222, 247, .2), 0 8px 28px rgba(8, 2, 14, .28);
  --modal-fill: linear-gradient(145deg, rgba(59, 39, 65, .97), rgba(36, 25, 43, .97));
  --focus-ring: rgba(226, 168, 247, .78);
  --page-background:
    radial-gradient(ellipse at 5% 8%, rgba(122, 39, 76, .28), transparent 48%),
    radial-gradient(ellipse at 91% 23%, rgba(96, 51, 145, .27), transparent 46%),
    radial-gradient(ellipse at 46% 92%, rgba(108, 43, 85, .2), transparent 54%),
    linear-gradient(135deg, #20151f, #1c1527 46%, #231520);
}
html[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); opacity: .94; }
html[data-theme="dark"] .country-pill,
html[data-theme="dark"] .source-label,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html[data-theme="dark"] select, html[data-theme="dark"] textarea,
html[data-theme="dark"] .primary, html[data-theme="dark"] .secondary,
html[data-theme="dark"] .ghost, html[data-theme="dark"] .menu-button,
html[data-theme="dark"] .close, html[data-theme="dark"] .listing-specs span,
html[data-theme="dark"] .active-filters span, html[data-theme="dark"] .price-badge,
html[data-theme="dark"] .feature-list span, html[data-theme="dark"] .report-grid div,
html[data-theme="dark"] .report-summary article, html[data-theme="dark"] .vinkot-check-grid article,
html[data-theme="dark"] .contract-points div, html[data-theme="dark"] .v-feature-list div,
html[data-theme="dark"] .admin-table.modern .admin-row, html[data-theme="dark"] .admin-car-list article,
html[data-theme="dark"] .payment-row, html[data-theme="dark"] .chat-message { box-shadow: var(--glass-shadow); }
html[data-theme="dark"] .topbar, html[data-theme="dark"] .topbar.scrolled { color: var(--ink); }
html[data-theme="dark"] .primary { color: #fff; background: linear-gradient(155deg, #a14c9b, #79409e); }
html[data-theme="dark"] .primary:hover { background: linear-gradient(155deg, #ac50a4, #8848af); }
html[data-theme="dark"] .car-tag { color: #fff; background: #7f3a95; }
html[data-theme="dark"] .danger { color: #fff; background: #b43d59; }
html[data-theme="dark"] .secondary:hover, html[data-theme="dark"] .ghost:hover,
html[data-theme="dark"] .close:hover { color: var(--accent-hover); }
html[data-theme="dark"] .car-image-wrap, html[data-theme="dark"] .gallery-thumb,
html[data-theme="dark"] .listing-slider-frame, html[data-theme="dark"] .v-contract-image { background: rgba(11, 7, 18, .3); border-color: var(--line); }
html[data-theme="dark"] .detail-grid > div { border-bottom-color: var(--soft-line); }
html[data-theme="dark"] .toggle-track { background: rgba(223, 188, 227, .24); }
html[data-theme="dark"] .toggle-track::after { background: #f8edf6; }
html[data-theme="dark"] .modal { background: rgba(10, 5, 16, .65); }
html[data-theme="dark"] .photo-lightbox { background: rgba(9, 5, 14, .94); }
html[data-theme="dark"] .photo-lightbox-close:hover,
html[data-theme="dark"] .photo-lightbox-nav:hover { background: rgba(156, 105, 171, .48); }
html[data-theme="dark"] .chat-message.from-client { background: rgba(174, 112, 198, .17); }
html[data-theme="dark"] .checklist-grid .done span { background: #b577ce; border-color: #b577ce; box-shadow: inset 0 0 0 4px var(--glass-solid); }
html[data-theme="dark"] .route-point { color: #fff; background: #8e51a8; }
html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] textarea:-webkit-autofill,
html[data-theme="dark"] select:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 1000px var(--glass-solid) inset; caret-color: var(--ink); }
html[data-theme="dark"] .market-price-below_market { color: #fff; background: #d63146; }
html[data-theme="dark"] .market-price-excellent_price { color: #46621c; background: #d8f19d; }
html[data-theme="dark"] .market-price-market_price { color: #fff; background: #16834a; }
html[data-theme="dark"] .market-price-above_market { color: #fff; background: #7d41df; }
html[data-theme="dark"] .market-price-badge { border-color: rgba(255, 255, 255, .24); }
html[data-theme="dark"] .price-warning { color: #f1d299; background: rgba(174, 124, 53, .15); border-color: rgba(224, 172, 91, .3); }
html[data-theme="dark"] .skeleton { background-image: linear-gradient(90deg, rgba(182, 133, 190, .08) 25%, rgba(227, 185, 234, .17) 50%, rgba(182, 133, 190, .08) 75%); }

@media (max-width: 980px) {
  .nav { background: var(--glass-fill); border: 1px solid var(--line); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); box-shadow: var(--glass-shadow); }
}
@media (max-width: 640px) {
  .topbar, .topbar.scrolled { top: 10px; left: 12px; right: 12px; padding: 8px 15px; }
  .catalog-heading { padding: 30px 18px 24px; }
  .catalog-heading h1 { margin-bottom: 20px; font-size: clamp(25px, 6.6vw, 39px); }
  .country-pill { padding: 10px 16px; min-height: 42px; font-size: 13px; }
  .catalog-country-tabs { gap: 7px; }
  .catalog-filters, .catalog-toolbar, .car-card, .detail-section, .listing-price-box, .listing-sticky, .modal-card { border-radius: 23px; }
  .catalog-toolbar { justify-content: stretch; width: 100%; }
  .sort-control { width: 100%; grid-template-columns: auto minmax(0, 1fr); }
  .listing-title-row h1 { font-size: 37px; }
  .listing-price-box strong { font-size: 26px; }
  .v-home-photo { min-height: 360px; }
  .v-contact-band, .page-hero { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .car-card, .car-image, .country-pill, .primary, .secondary, .theme-toggle, .toggle-track, .toggle-track::after { transition: none; }
  .car-card:hover, .car-card:hover .car-image { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  :root, html[data-theme="dark"] {
    --glass-fill: var(--glass-solid);
    --white: var(--glass-solid);
    --header-fill: var(--glass-solid);
    --modal-fill: var(--glass-solid);
    --control-fill: var(--glass-solid);
    --button-fill: var(--glass-solid);
    --button-hover: var(--glass-solid);
    --soft-fill: var(--glass-solid);
  }
  .topbar, .topbar.scrolled, .modal-card, .country-pill, .source-label { background: var(--glass-solid); }
  .topbar, .topbar.scrolled, .catalog-filters, .catalog-toolbar, .car-card, .catalog-empty,
  .listing-price-box, .detail-section, .listing-sticky, .modal-card, .toast, .scroll-top, .page-hero,
  .auth-panel, .client-panel, .client-hero-card, .manager-card, .portal-card,
  .admin-command-bar, .admin-card, .admin-chat-card, .portal-metrics article,
  .client-admin-grid article, .task-board article, .v-home-offer, .v-contact-band,
  .v-principle-grid article, .v-feature-split, .v-contract, .v-process-grid article,
  .v-contacts, .nav, .country-pill, .source-label, .modal, .photo-lightbox,
  .listing-slider-nav, .listing-slider-count, .photo-lightbox-close, .photo-lightbox-nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root, html[data-theme="dark"] { --glass-fill: var(--glass-solid); --header-fill: var(--glass-solid); --modal-fill: var(--glass-solid); --control-fill: var(--glass-solid); }
  .topbar, .topbar.scrolled, .modal-card, .nav, .country-pill, .source-label { background: var(--glass-solid); }
}

/* Configuration details use the same frosted material and theme tokens. */
.listing-configuration-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; }
.listing-source-notice { max-width: 65ch; margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.listing-configuration-action p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.listing-configuration-action button:disabled { cursor: not-allowed; opacity: .6; }
.configuration-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  color: var(--ink);
  background: var(--modal-fill);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  backdrop-filter: blur(28px) saturate(1.45);
  overscroll-behavior: contain;
}
.configuration-dialog::backdrop { background: rgba(28, 20, 34, .4); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.configuration-dialog [hidden] { display: none !important; }
.configuration-dialog-card { padding: 28px; }
.configuration-dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: -28px -28px 0; padding: 28px; background: var(--modal-fill); border-bottom: 1px solid var(--soft-line); }
.configuration-dialog-header h2 { margin: 0; font-size: clamp(23px, 4.4vw, 31px); line-height: 1.15; font-weight: 650; }
.configuration-dialog-header .section-kicker { margin: 0 0 9px; }
.configuration-close { position: static; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; }
.configuration-description, .configuration-metadata, .configuration-footer { color: var(--muted); font-size: 13px; line-height: 1.6; }
.configuration-description { margin: 18px 0; }
.configuration-title { margin: 0 0 7px; font-size: 18px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.configuration-metadata { margin: 0 0 22px; }
.configuration-status { line-height: 1.6; }
.configuration-status:empty { display: none; }
.configuration-retry { margin-bottom: 18px; }
.configuration-translation-note { margin: 0 0 20px; padding: 13px 16px; color: var(--muted); background: var(--soft-fill); border: 1px solid var(--soft-line); border-radius: 16px; font-size: 13px; line-height: 1.55; }
.configuration-power-note { margin: 0 0 20px; padding: 16px; background: var(--soft-fill); border: 1px solid var(--soft-line); border-radius: 18px; }
.configuration-power-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; }
.configuration-power-heading h3 { flex: 1 1 100%; margin: 0; font-size: 16px; font-weight: 650; }
.configuration-power-heading span { color: var(--muted); font-size: 12px; }
.configuration-power-heading strong { color: var(--accent); font-size: 17px; }
.configuration-power-note p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.configuration-group { margin: 0 0 26px; }
.configuration-group:last-child { margin-bottom: 0; }
.configuration-group h3 { margin: 0 0 10px; color: var(--accent); font-size: 17px; font-weight: 650; }
.configuration-group dl { margin: 0; }
.configuration-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; padding: 13px 0; border-bottom: 1px solid var(--soft-line); line-height: 1.5; overflow-wrap: anywhere; }
.configuration-row dt { color: var(--muted); }
.configuration-row dd { margin: 0; font-weight: 600; }
.configuration-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.configuration-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--soft-line); }
.configuration-footer a { color: var(--accent); }
.listing-price-dialog { width: min(740px, calc(100vw - 32px)); }
.listing-price-rows { margin: 20px 0; }
.listing-price-rows .configuration-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.listing-price-rows dd { text-align: right; font-variant-numeric: tabular-nums; }
.listing-price-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 20px; margin: 24px 0 12px; padding: 18px; background: var(--soft-fill); border: 1px solid var(--soft-line); border-radius: 18px; }
.listing-price-total strong { font-size: 22px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .configuration-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 23px; }
  .configuration-dialog-card { padding: 22px 18px; }
  .configuration-dialog-header { margin: -22px -18px 0; padding: 22px 18px; }
  .configuration-row { grid-template-columns: 1fr; gap: 5px; }
  .listing-configuration-action button { width: 100%; }
  .listing-price-rows .configuration-row { grid-template-columns: 1fr; gap: 5px; }
  .listing-price-rows dd { text-align: left; }
}
@media (prefers-reduced-transparency: reduce) {
  .configuration-dialog { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .configuration-dialog-header { background: var(--glass-solid); }
  .configuration-dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
