:root {
  --bg: #07080b;
  --panel: #101217;
  --panel-soft: #171a21;
  --text: #f7f7f8;
  --muted: #a4a8b3;
  --line: rgba(255, 255, 255, 0.1);
  --red: #d71920;
  --red-bright: #ff2b33;
  --red-deep: #8d0713;
  --gold: #f4c76a;
  --glass: rgba(255, 255, 255, 0.055);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --shadow-red: 0 22px 70px rgba(215, 25, 32, 0.22);
}

body.theme-light {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-soft: #eef1f5;
  --text: #10131a;
  --muted: #5e6675;
  --line: rgba(15, 23, 42, 0.12);
  --glass: rgba(15, 23, 42, 0.045);
  --shadow: 0 22px 64px rgba(15, 23, 42, 0.12);
  --shadow-red: 0 22px 54px rgba(215, 25, 32, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 6%, rgba(215, 25, 32, 0.2), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(244, 199, 106, 0.08), transparent 22%),
    linear-gradient(180deg, #07080b 0%, #0a0b10 42%, #07080b 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.theme-light {
  background:
    radial-gradient(circle at 16% 6%, rgba(215, 25, 32, 0.12), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(244, 199, 106, 0.16), transparent 22%),
    linear-gradient(180deg, #f7f8fb 0%, #eef1f6 45%, #f9fafc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

body.theme-light::before {
  background:
    linear-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

body::after {
  content: "";
  position: fixed;
  inset: auto -18% -36% -18%;
  z-index: -1;
  height: 48vh;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(215, 25, 32, 0.16), transparent 62%);
  filter: blur(18px);
  animation: glowDrift 10s ease-in-out infinite alternate;
}

body.theme-light::after {
  background: radial-gradient(ellipse at center, rgba(215, 25, 32, 0.11), transparent 62%);
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 64px);
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.92), rgba(16, 18, 24, 0.76), rgba(7, 8, 11, 0.92));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

body.theme-light .site-header {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 252, 0.82), rgba(255, 255, 255, 0.94));
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 43, 51, 0.72), transparent);
  opacity: 0.72;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 43, 51, 0.22));
  transition: transform 220ms ease, filter 220ms ease;
}

.brand:hover img {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 0 24px rgba(255, 43, 51, 0.35));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a,
.nav-toggle,
.sidebar-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 180ms ease;
}

.main-nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.sidebar-link:hover,
.sidebar-link.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: 180ms ease;
}

.theme-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b0d12, #252a35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease;
}

.theme-toggle strong {
  min-width: 35px;
  font-size: 12px;
  font-weight: 900;
}

body.theme-light .theme-toggle {
  background: rgba(15, 23, 42, 0.04);
}

body.theme-light .theme-toggle-track {
  background: linear-gradient(135deg, #f8fafc, #d7dce5);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.16);
}

body.theme-light .theme-toggle-thumb {
  transform: translateX(18px);
  background: var(--red);
}

.language-switcher button {
  min-width: 34px;
  border: 0;
  border-radius: 999px;
  padding: 7px 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: 180ms ease;
}

.language-switcher button:hover,
.language-switcher button.active {
  color: #fff;
  background: var(--red);
}

.nav-toggle {
  display: none;
  border-color: var(--line);
  border-radius: 6px;
  padding: 9px 12px;
}

body.theme-light .main-nav a:hover,
body.theme-light .sidebar-link:hover,
body.theme-light .sidebar-link.active,
body.theme-light .language-switcher,
body.theme-light .hero-stats span,
body.theme-light .btn-ghost,
body.theme-light .btn-soft,
body.theme-light .filters,
body.theme-light .korea-search,
body.theme-light .vehicle-card,
body.theme-light .service-panel,
body.theme-light .calculator,
body.theme-light .faq details,
body.theme-light .contact-card,
body.theme-light .footer,
body.theme-light .modal-card,
body.theme-light .condition-report,
body.theme-light .condition-summary > div,
body.theme-light .condition-legend,
body.theme-light .option-card,
body.theme-light .finder-select,
body.theme-light .price-breakdown > div,
body.theme-light .spec-pill,
body.theme-light .data-panel,
body.theme-light .order-form,
body.theme-light .admin-shell,
body.theme-light .admin-card {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

body.theme-light input,
body.theme-light select,
body.theme-light textarea,
body.theme-light .option-filter {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
  color: #8a93a3;
}

body.theme-light .hero-media {
  filter: saturate(0.9) brightness(1.18);
}

body.theme-light .hero-media::after {
  background: rgba(255, 255, 255, 0.18);
}

body.theme-light .hero-media {
  background:
    linear-gradient(90deg, rgba(245, 246, 248, 0.94), rgba(245, 246, 248, 0.42), rgba(245, 246, 248, 0.78)),
    url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=2200&q=80") center/cover;
}

body.theme-light .hero-overlay {
  background:
    radial-gradient(circle at 72% 54%, rgba(215, 25, 32, 0.18), transparent 27%),
    radial-gradient(circle at 36% 34%, rgba(244, 199, 106, 0.18), transparent 20%),
    linear-gradient(0deg, var(--bg), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 34%);
}

body.theme-light .vehicle-card,
body.theme-light .modal-card,
body.theme-light .option-card,
body.theme-light .condition-report {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.88)),
    #fff;
}

body.theme-light .vehicle-body,
body.theme-light .modal-body,
body.theme-light .footer {
  color: var(--text);
}

body.theme-light .price-main {
  box-shadow: 0 18px 40px rgba(215, 25, 32, 0.18);
}

body.theme-light .rks-price {
  color: #07080b;
}

body.theme-light .site-footer,
body.theme-light footer {
  background: #101217;
  color: #fff;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 122px clamp(18px, 5vw, 76px) 46px;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.96), rgba(7, 8, 11, 0.48), rgba(7, 8, 11, 0.82)),
    url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=2200&q=80") center/cover;
  transform: scale(1.04);
  animation: heroFloat 14s ease-in-out infinite alternate, showroomPulse 8s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 54%, rgba(215, 25, 32, 0.3), transparent 26%),
    radial-gradient(circle at 36% 34%, rgba(244, 199, 106, 0.09), transparent 20%),
    linear-gradient(0deg, var(--bg), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%);
}

.hero-content {
  position: relative;
  width: min(1420px, 100%);
}

.hero-content::before {
  content: "";
  position: absolute;
  left: -28px;
  top: -26px;
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-bright), transparent);
  box-shadow: 0 0 26px rgba(255, 43, 51, 0.45);
}

.eyebrow {
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.52);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
}

h3 {
  font-size: 22px;
}

.hero-content p:not(.eyebrow),
.section-heading p,
.section-copy p,
.service-panel p {
  color: var(--muted);
  max-width: 720px;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(215, 25, 32, 0.25);
}

.order-form,
.sold-message-panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.order-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: rgba(7, 8, 11, 0.75);
  color: var(--text);
}

.order-message {
  margin: 12px 0 0;
  color: #9df2b6;
  font-weight: 800;
}

.order-message.is-error {
  color: #ff8d93;
}

.sold-message-panel {
  max-width: 680px;
  margin: 0 auto;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
}

.load-more {
  color: #fff !important;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(215, 25, 32, 0.25);
}

#koreaLoadMoreBtn,
#koreaLoadMoreBtn.load-more,
#koreaLoadMoreBtn.encar-load-more,
body.theme-light #koreaLoadMoreBtn,
body.theme-light #koreaLoadMoreBtn.load-more,
body.theme-light #koreaLoadMoreBtn.encar-load-more {
  color: #fff !important;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep)) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 18px 42px rgba(215, 25, 32, 0.25) !important;
}

.load-more:hover {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 46px rgba(215, 25, 32, 0.34);
}

.btn-soft {
  background: #cfd7e3;
  color: #11141b;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(10, 14, 22, 0.18);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.hero-stats > span,
.about-metrics > span {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 0 0, rgba(255, 43, 51, 0.16), transparent 48%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 38px rgba(0, 0, 0, 0.18);
  transition: transform 220ms ease, border-color 220ms ease;
}

.hero-stats > span::after,
.about-metrics > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.12), transparent 80%);
  transform: translateX(-120%);
  transition: transform 700ms ease;
}

.hero-stats > span:hover,
.about-metrics > span:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 43, 51, 0.34);
}

.hero-stats > span:hover::after,
.about-metrics > span:hover::after {
  transform: translateX(120%);
}

.hero-stats strong,
.about-metrics strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.hero-stats em {
  max-width: 170px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.hero-search-panel {
  width: min(1400px, calc(100vw - 36px));
  margin: 22px 0 20px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 242, 247, 0.94)),
    radial-gradient(circle at 92% 0, rgba(215, 25, 32, 0.18), transparent 32%);
  color: #080a0f;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  animation: panelRise 700ms ease both;
}

.finder-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.finder-select {
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background: #fff;
  color: #151922;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.finder-select:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 25, 32, 0.46);
  box-shadow: 0 10px 24px rgba(11, 15, 24, 0.08);
}

.finder-select span {
  color: #5d6675;
  font-size: 12px;
  font-weight: 800;
}

.finder-select strong {
  overflow: hidden;
  color: #080a0f;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advanced-search-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.advanced-search-row input {
  background: #fff;
  color: #080a0f;
  border-color: #dfe3ea;
}

.section {
  position: relative;
  padding: 94px clamp(18px, 5vw, 76px);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 12% 0, rgba(255, 43, 51, 0.08), transparent 28%);
}

.section-heading {
  margin-bottom: 30px;
}

.showroom {
  background:
    linear-gradient(180deg, rgba(9, 10, 14, 0.96), rgba(15, 17, 23, 0.98)),
    radial-gradient(circle at 82% 8%, rgba(255, 43, 51, 0.12), transparent 26%);
  border-block: 1px solid var(--line);
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(7, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.korea-search {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 100% 0, rgba(215, 25, 32, 0.14), transparent 34%);
  box-shadow: var(--shadow);
}

.korea-search::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red-bright), transparent);
}

.korea-search h3 {
  margin-bottom: 0;
}

.korea-search-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 10px;
}

.results-summary .korea-search-form {
  display: none;
}

.search-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.korea-results {
  margin-bottom: 28px;
}

.showroom-divider {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 46px 0 28px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 43, 51, 0.16), rgba(255, 255, 255, 0.04), transparent),
    rgba(12, 14, 20, 0.72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.showroom-divider::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 43, 51, 0.55), transparent);
}

.showroom-divider span {
  color: var(--red-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.showroom-divider strong {
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0e13;
  color: var(--text);
  padding: 12px 13px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 43, 51, 0.72);
  background: #11141b;
  box-shadow: 0 0 0 4px rgba(255, 43, 51, 0.08);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.load-more-wrap [hidden] {
  display: none;
}

.vehicle-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(21, 24, 33, 0.98), rgba(10, 12, 18, 0.98)),
    radial-gradient(circle at 100% 0, rgba(255, 43, 51, 0.12), transparent 34%);
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.vehicle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 32%, transparent 70%, rgba(255, 43, 51, 0.12));
  opacity: 0;
  transition: opacity 240ms ease;
}

.vehicle-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 43, 51, 0.32);
  box-shadow: var(--shadow), var(--shadow-red);
}

.vehicle-card:hover::before {
  opacity: 1;
}

.vehicle-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #111;
  transition: transform 550ms ease, filter 240ms ease;
}

.vehicle-card-image {
  cursor: pointer;
}

.vehicle-card-image:focus-visible {
  outline: 3px solid rgba(255, 43, 51, 0.8);
  outline-offset: -6px;
}

.vehicle-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.vehicle-body {
  position: relative;
  z-index: 2;
  padding: 18px;
}

.vehicle-meta,
.price-row,
.admin-row-actions,
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-meta span,
.status-pill,
.price-breakdown span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.status-pill {
  color: var(--text);
  font-weight: 800;
}

.status-available {
  border-color: rgba(74, 222, 128, 0.4);
}

.status-sold {
  border-color: rgba(248, 113, 113, 0.5);
}

.status-delivered {
  border-color: rgba(96, 165, 250, 0.5);
}

.price-row {
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
}

.price {
  font-size: 24px;
  font-weight: 900;
}

.price-card {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.durres-price {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2px;
  padding: 16px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #c9042c, #8b0718),
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.28), transparent 34%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(169, 4, 36, 0.24);
}

.durres-price::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -24%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(18deg);
  animation: priceSweep 5.5s ease-in-out infinite;
}

.durres-price strong {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}

.durres-price span {
  font-size: 13px;
  font-weight: 900;
}

.rks-price {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2f7, #cdd3de);
  color: #080a0f;
}

.rks-price span {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 10px;
  background: #1f65ff;
  color: #ffe66b;
  font-size: 12px;
  font-weight: 950;
}

.rks-price strong {
  padding: 12px 8px 12px 12px;
  font-size: 22px;
  line-height: 1;
}

.rks-price em {
  padding-right: 12px;
  color: #12151c;
  font-style: normal;
  font-weight: 700;
}

.photo-count {
  margin-top: -4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-actions .btn {
  min-height: 48px;
}

.card-actions .btn:first-child,
.card-actions .btn:last-child {
  grid-column: 1 / -1;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
  gap: 34px;
  align-items: center;
}

.service-panel,
.about-metrics,
.login-panel,
.dashboard {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(23, 26, 33, 0.96), rgba(15, 17, 23, 0.96)),
    radial-gradient(circle at 100% 0, rgba(255, 43, 51, 0.12), transparent 32%);
  box-shadow: var(--shadow);
}

.service-panel {
  position: relative;
  overflow: hidden;
  padding: 32px;
}

.service-panel::before,
.calculator-form::before,
.calculator-results::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 36%);
  opacity: 0.7;
}

.calculator-section {
  background:
    linear-gradient(180deg, #090a0e 0%, #101217 100%),
    radial-gradient(circle at 20% 12%, rgba(244, 199, 106, 0.08), transparent 24%);
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.calculator-form,
.calculator-results,
.faq-grid details {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.032)),
    radial-gradient(circle at 100% 0, rgba(215, 25, 32, 0.08), transparent 36%);
  box-shadow: var(--shadow);
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
}

.calculator-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calculator-form input,
.calculator-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #090b10;
  color: var(--text);
}

.calculator-results {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.calculator-results div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.calculator-results strong {
  color: var(--text);
  font-size: 18px;
}

.calculator-results .calculator-total {
  margin-top: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 43, 51, 0.48);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.18), rgba(255, 255, 255, 0.045));
  color: var(--text);
}

.calculator-total strong {
  color: #fff;
  font-size: 26px;
}

.calculator-results p {
  color: var(--muted);
  font-size: 14px;
}

.process-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.process-list span {
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.process-list span:hover {
  color: var(--text);
  transform: translateX(6px);
}

.about-metrics {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-grid details {
  padding: 20px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.faq-grid details:hover,
.contact-card:hover {
  border-color: rgba(255, 43, 51, 0.45);
  box-shadow: var(--shadow-red);
}

.faq-grid details:hover {
  transform: translateY(-3px);
}

.faq-grid summary {
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.faq-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-section {
  background:
    linear-gradient(180deg, #090a0e, #07080b),
    radial-gradient(circle at 70% 12%, rgba(255, 43, 51, 0.12), transparent 30%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, #161a23, #0f1117),
    radial-gradient(circle at 100% 0, rgba(255, 43, 51, 0.12), transparent 36%);
  font-size: 22px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-bright), transparent);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 180ms ease;
}

.contact-card span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card:hover::after {
  transform: scaleX(1);
}

.site-footer {
  padding: 52px clamp(18px, 5vw, 76px) 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, #111318, #0b0c10),
    radial-gradient(circle at 80% 0, rgba(255, 43, 51, 0.1), transparent 30%);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  color: var(--red-bright);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-socials a,
.back-to-top {
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.footer-socials a {
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  font-size: 13px;
}

.footer-socials a:hover,
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1.15fr;
  gap: 48px;
  padding: 54px 0 58px;
}

.footer-grid h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.footer-grid a,
.footer-grid p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 750;
}

.footer-grid a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.9);
  transition: color 180ms ease, transform 180ms ease;
}

.footer-grid a:hover {
  color: var(--red-bright);
  transform: translateX(5px);
}

.footer-grid a span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 43, 51, 0.48);
  border-radius: 999px;
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 950;
}

.footer-grid p {
  justify-content: space-between;
  gap: 20px;
}

.footer-grid p span {
  color: rgba(255, 255, 255, 0.88);
}

.footer-grid p strong {
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: calc(clamp(18px, 5vw, 76px) * -1);
  padding: 28px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.footer-credit {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.back-to-top {
  width: 52px;
  height: 52px;
  font-size: 28px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 740px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(13, 15, 20, 0.98), rgba(7, 8, 11, 0.98)),
    radial-gradient(circle at 100% 0, rgba(255, 43, 51, 0.1), transparent 30%);
  box-shadow: var(--shadow);
}

.admin-shell.logged-out {
  display: block;
  max-width: 520px;
  min-height: auto;
  margin: 0 auto;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(8, 9, 13, 0.98), rgba(12, 14, 20, 0.98)),
    radial-gradient(circle at 0 0, rgba(215, 25, 32, 0.16), transparent 34%);
  border-right: 1px solid var(--line);
}

.admin-sidebar img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.sidebar-link {
  width: 100%;
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}

.admin-content {
  padding: 24px;
  overflow: hidden;
}

.login-panel {
  max-width: 440px;
  padding: 28px;
}

.login-panel form,
.vehicle-form {
  display: grid;
  gap: 12px;
}

.import-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 100% 0, rgba(255, 43, 51, 0.1), transparent 30%);
}

.import-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.import-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.carapis-status {
  align-self: end;
  padding: 14px;
  border: 1px solid rgba(157, 242, 182, 0.24);
  border-radius: 6px;
  color: #9df2b6;
  background: rgba(157, 242, 182, 0.06);
  font-weight: 800;
}

.api-key-panel {
  display: grid;
  gap: 10px;
}

.carapis-status.is-error {
  border-color: rgba(255, 141, 147, 0.34);
  color: #ff8d93;
  background: rgba(255, 141, 147, 0.06);
}

.carapis-search {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.hint,
.empty-state,
.login-message {
  color: var(--muted);
}

.login-message {
  min-height: 24px;
  font-weight: 800;
}

.dashboard {
  padding: 22px;
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mini-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: 180ms ease;
}

.mini-btn:hover {
  border-color: rgba(255, 43, 51, 0.48);
  background: rgba(215, 25, 32, 0.13);
}

.mini-btn:disabled,
.mini-btn.is-disabled {
  opacity: 0.36;
  cursor: not-allowed;
  filter: grayscale(1);
  pointer-events: none;
}

.mini-btn-danger {
  border-color: rgba(248, 113, 113, 0.65);
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.28), rgba(120, 18, 24, 0.22));
  color: #fff;
}

.mini-btn-danger:hover {
  border-color: rgba(255, 145, 150, 0.9);
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.48), rgba(120, 18, 24, 0.34));
}

.mini-btn-danger.is-sold-confirmed {
  opacity: 1;
  filter: none;
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(34, 197, 94, 0.18);
  color: #d8ffe3;
}

.order-row-sold {
  opacity: 0.72;
}

.order-row-sold td {
  background: rgba(255, 255, 255, 0.018);
}

.actions-locked {
  align-items: center;
}

.danger {
  color: #ff8d93;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.image-admin {
  display: grid;
  gap: 12px;
}

.upload-box {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, background 180ms ease;
}

.upload-box:hover {
  border-color: rgba(255, 43, 51, 0.48);
  background: rgba(255, 43, 51, 0.06);
}

.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.upload-preview img {
  height: 92px;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.message {
  min-height: 24px;
  margin-bottom: 12px;
  color: #9df2b6;
}

.admin-tab,
.hidden,
.empty-state {
  display: none;
}

.admin-tab.active,
.empty-state.show {
  display: block;
}

.modal,
.option-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal.hidden,
.option-modal.hidden {
  display: none;
}

.modal-backdrop,
.option-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(215, 25, 32, 0.18), transparent 28%),
    rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, #10131a, #090b10),
    radial-gradient(circle at 100% 0, rgba(255, 43, 51, 0.12), transparent 32%);
  box-shadow: var(--shadow);
  animation: modalIn 180ms ease both;
}

.modal-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 56px);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 8, 11, 0.9);
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
}

.option-modal {
  z-index: 110;
}

.option-panel {
  position: relative;
  width: min(560px, calc(100vw - 28px));
  max-height: 84vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
  color: #07080b;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #e7eaf0;
}

.option-head h3 {
  margin-bottom: 0;
  color: #07080b;
}

.option-filter {
  width: calc(100% - 44px);
  margin: 16px 22px 8px;
  background: #f4f6f9;
  color: #11141b;
  border-color: #e0e4eb;
}

.option-list {
  overflow: auto;
  padding: 8px 22px 22px;
}

.option-row {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  background: transparent;
  color: #11141b;
  text-align: left;
  cursor: pointer;
  font-size: 18px;
}

.option-row:hover {
  color: var(--red);
}

.option-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e3e7ed;
}

.option-dot.active {
  border: 5px solid #0a0c10;
  background: #fff;
}

.details-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  padding: 0 24px 24px;
}

.gallery-main {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
  cursor: zoom-in;
}

.gallery-main:focus-visible {
  outline: 3px solid rgba(255, 43, 51, 0.82);
  outline-offset: 4px;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.thumbs img {
  height: 76px;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.gallery-count {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.gallery-count span:last-child {
  color: var(--red-bright);
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 18px;
}

.photo-lightbox.hidden {
  display: none;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
}

.photo-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  height: min(92vh, 900px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 80% 4%, rgba(215, 25, 32, 0.18), transparent 28%),
    #050608;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.photo-lightbox-panel > img {
  width: 100%;
  height: 100%;
  max-height: calc(92vh - 128px);
  object-fit: contain;
  padding: 18px 70px 10px;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 12, 18, 0.9);
  color: #fff;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.photo-lightbox-close:hover,
.photo-lightbox-nav:hover {
  transform: scale(1.04);
  border-color: rgba(255, 43, 51, 0.55);
  background: rgba(215, 25, 32, 0.9);
}

.photo-lightbox-close {
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
}

.photo-lightbox-nav {
  top: 50%;
  width: 50px;
  height: 70px;
  border-radius: 10px;
  font-size: 48px;
  line-height: 1;
  transform: translateY(-50%);
}

.photo-lightbox-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.photo-lightbox-prev {
  left: 14px;
}

.photo-lightbox-next {
  right: 14px;
}

.photo-lightbox-footer {
  display: grid;
  gap: 10px;
  padding: 10px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
}

.photo-lightbox-footer span {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.photo-lightbox-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.photo-lightbox-thumbs button {
  flex: 0 0 96px;
  height: 62px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #11141b;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.62;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.photo-lightbox-thumbs button.active,
.photo-lightbox-thumbs button:hover {
  opacity: 1;
  border-color: var(--red-bright);
  transform: translateY(-1px);
}

.photo-lightbox-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.details-copy {
  padding-top: 4px;
}

.price-breakdown {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.price-breakdown span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
  font-size: 15px;
}

.price-breakdown span + span {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.price-breakdown strong {
  color: var(--text);
  font-size: 18px;
}

.vehicle-data-panel {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 100% 0, rgba(255, 43, 51, 0.08), transparent 34%);
}

.vehicle-data-panel h3 {
  margin: 0 0 18px;
  font-size: 28px;
}

.vehicle-data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.data-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(92px, auto);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-item:last-child {
  border-bottom: 0;
}

.data-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--red-bright);
  background: rgba(255, 255, 255, 0.045);
  font-size: 15px;
  line-height: 1;
}

.data-label {
  min-width: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}

.data-item strong {
  min-width: 0;
  color: var(--text);
  text-align: right;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.insurance-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 43, 51, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(215, 25, 32, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
}

.insurance-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.insurance-panel h3 {
  margin: 2px 0 0;
  font-size: 22px;
}

.insurance-report-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.insurance-report-card {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 43, 51, 0.08)),
    rgba(0, 0, 0, 0.14);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.insurance-report-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 43, 51, 0.45);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 43, 51, 0.14)),
    rgba(0, 0, 0, 0.16);
}

.insurance-report-card strong {
  font-size: 17px;
}

.insurance-report-card span {
  color: var(--muted);
  line-height: 1.45;
}

.insurance-report-card em {
  color: var(--red-bright);
  font-style: normal;
  font-weight: 900;
}

.insurance-report-card.is-unavailable {
  opacity: 0.72;
}

.insurance-report-card.is-unavailable:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.12);
}

.insurance-badge {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.insurance-good {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(34, 197, 94, 0.1);
}

.insurance-bad {
  border-color: rgba(248, 113, 113, 0.62);
  background: rgba(215, 25, 32, 0.16);
}

.insurance-warn {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.1);
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.insurance-grid div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.insurance-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insurance-grid strong {
  color: var(--text);
  line-height: 1.45;
}

.description-panel {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.description-panel h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.description-panel span,
.description-heading {
  display: block;
  line-height: 1.55;
}

.description-panel span {
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.condition-report {
  display: grid;
  gap: 24px;
}

.condition-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.condition-head h2 {
  margin: 4px 0 8px;
}

.condition-head p {
  margin: 0;
  color: var(--muted);
}

.condition-status {
  min-width: 210px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.condition-status span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.condition-status strong {
  font-size: 20px;
}

.condition-good {
  border-color: rgba(34, 197, 94, 0.45);
}

.condition-bad {
  border-color: rgba(248, 113, 113, 0.55);
}

.condition-warn {
  border-color: rgba(251, 191, 36, 0.55);
}

.condition-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.condition-diagram {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 249, 0.96)),
    #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.condition-diagram strong {
  color: #5f6673;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.car-blueprint {
  position: relative;
  min-height: 250px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.07) 10% 11%, transparent 11% 89%, rgba(255, 255, 255, 0.07) 89% 90%, transparent 90%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 58%);
  overflow: hidden;
}

.car-blueprint-real {
  min-height: auto;
  aspect-ratio: 1.36;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(17, 24, 39, 0.045), transparent 55%),
    linear-gradient(180deg, #fff, #f6f6f6);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 18px 40px rgba(17, 24, 39, 0.14);
}

.car-report-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.car-report-lines {
  stroke: #b7b7b7;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.car-main-shell,
.car-open-door,
.car-body-edge {
  fill: #fbfbfb;
}

.car-shaded,
.car-door-panel,
.car-interior-cabin,
.car-seat,
.car-cargo {
  fill: url("#reportShade-exterior");
}

.condition-diagram:nth-child(2) .car-shaded,
.condition-diagram:nth-child(2) .car-door-panel,
.condition-diagram:nth-child(2) .car-interior-cabin,
.condition-diagram:nth-child(2) .car-seat,
.condition-diagram:nth-child(2) .car-cargo {
  fill: url("#reportShade-interior");
}

.car-wheel-real {
  fill: #f7f7f7;
  stroke: #9f9f9f;
  stroke-width: 4;
}

.car-wheel-hub,
.car-light {
  fill: #ececec;
  stroke: #b8b8b8;
}

.car-detail-line,
.car-bumper {
  stroke: #b5b5b5;
  stroke-width: 2;
  fill: none;
}

.car-roof,
.car-hood,
.car-trunk,
.car-side,
.car-wheel,
.damage-dot {
  position: absolute;
  display: block;
}

.car-roof {
  inset: 28% 36% 28%;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 45% 45% 35% 35%;
  background: rgba(255, 255, 255, 0.08);
}

.car-hood,
.car-trunk {
  left: 39%;
  width: 22%;
  height: 18%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
}

.car-hood {
  top: 8%;
}

.car-trunk {
  bottom: 8%;
}

.car-side {
  top: 24%;
  width: 24%;
  height: 52%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50% 18% 18% 50%;
}

.car-side.left {
  left: 8%;
}

.car-side.right {
  right: 8%;
  transform: scaleX(-1);
}

.car-wheel {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.w1 { left: 8%; top: 18%; }
.w2 { right: 8%; top: 18%; }
.w3 { left: 8%; bottom: 18%; }
.w4 { right: 8%; bottom: 18%; }

.damage-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.d1 {
  right: 25%;
  top: 28%;
  background: #7c3aed;
}

.p1 {
  left: 22%;
  bottom: 30%;
  background: #3b82f6;
}

.condition-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.condition-summary > div,
.condition-legend {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.condition-summary h3,
.condition-legend h3 {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.condition-summary span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.condition-legend > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.condition-legend span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.condition-legend b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
}

.legend-red { background: #ef4444; }
.legend-blue { background: #3b82f6; }
.legend-orange { background: #f59e0b; }
.legend-slate { background: #64748b; }
.legend-green { background: #10b981; }
.legend-purple { background: #7c3aed; }

.condition-note {
  margin: 0;
  color: var(--muted);
}

.description-heading {
  margin-top: 8px;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-line {
  color: var(--text);
  border-color: rgba(255, 43, 51, 0.5) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFloat {
  from {
    transform: scale(1.04) translateX(0);
  }
  to {
    transform: scale(1.08) translateX(-18px);
  }
}

@keyframes showroomPulse {
  from {
    filter: saturate(1) contrast(1);
  }
  to {
    filter: saturate(1.14) contrast(1.04);
  }
}

@keyframes glowDrift {
  from {
    transform: translateX(-4%);
    opacity: 0.72;
  }
  to {
    transform: translateX(5%);
    opacity: 1;
  }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes priceSweep {
  0%,
  64% {
    transform: translateX(-120%) rotate(18deg);
  }
  100% {
    transform: translateX(420%) rotate(18deg);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1100px) {
  .filters,
  .korea-search-form,
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .finder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .carapis-search {
    grid-template-columns: repeat(2, 1fr);
  }

  .vehicle-grid,
  .contact-grid,
  .footer-grid,
  .calculator-shell,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .brand span {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    right: 18px;
    display: none;
    width: min(280px, calc(100vw - 36px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0d0f14;
    box-shadow: var(--shadow);
  }

  body.theme-light .main-nav {
    background: rgba(255, 255, 255, 0.96);
  }

  .main-nav.open {
    display: grid;
  }

  .theme-toggle,
  .language-switcher {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 84vh;
  }

  .split-section,
  .admin-shell,
  .import-panel,
  .details-layout,
  .vehicle-data-grid,
  .condition-panels,
  .condition-summary,
  .insurance-report-links,
  .insurance-grid,
  .calculator-shell,
  .faq-grid,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .condition-head {
    display: grid;
  }

  .condition-status {
    min-width: 0;
  }

  .data-item {
    grid-template-columns: 32px minmax(0, 1fr) minmax(82px, auto);
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-top {
    display: grid;
  }

  .gallery-main {
    height: 320px;
  }

  .photo-lightbox-panel > img {
    padding-inline: 54px;
  }

  .photo-lightbox-nav {
    width: 42px;
    height: 58px;
    font-size: 38px;
  }
}

@media (max-width: 620px) {
  .section {
    padding-block: 68px;
  }

  .filters,
  .korea-search-form,
  .finder-grid,
  .advanced-search-row,
  .vehicle-grid,
  .contact-grid,
    .footer-grid,
    .form-grid,
    .import-controls,
    .carapis-search,
    .calculator-form,
    .price-breakdown,
    .condition-legend > div {
    grid-template-columns: 1fr;
  }

  .data-item {
    grid-template-columns: 32px 1fr;
  }

  .data-item strong {
    grid-column: 2;
    text-align: left;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }

  .hero-search-panel {
    padding: 16px;
  }

  h1 {
    font-size: 46px;
  }

  .dashboard-top {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-lightbox {
    padding: 8px;
  }

  .photo-lightbox-panel {
    height: 94vh;
  }

  .photo-lightbox-panel > img {
    max-height: calc(94vh - 112px);
    padding: 58px 10px 6px;
  }

  .photo-lightbox-nav {
    top: auto;
    bottom: 92px;
    width: 48px;
    height: 46px;
    font-size: 34px;
  }

  .photo-lightbox-prev {
    left: 16px;
  }

  .photo-lightbox-next {
    right: 16px;
  }

  .photo-lightbox-thumbs button {
    flex-basis: 78px;
    height: 54px;
  }
}
