/* =========================================================
   提车模拟器 · Mobile
   小米汽车 App 风格的浅色移动端界面（原创实现）
   ========================================================= */
:root {
  --bg: #f7f5f1;
  --bg-soft: #efede8;
  --card: #ffffff;
  --ink: #191919;
  --ink-2: #333333;
  --sub: #8b8b8b;
  --muted: #b3b0aa;
  --line: #eeece7;
  --line-2: #e3e0da;
  --orange: #ff6900;
  --orange-2: #ff8a3d;
  --orange-soft: #fff0e5;
  --peach: #f8e3d0;
  --peach-2: #f5d8bf;
  --green: #00a86b;
  --green-soft: #e9f7f0;
  --red: #ff4d4f;
  --dark: #1b1b1d;
  --gold: #c99445;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --num: "DIN Alternate", "Bahnschrift", "SF Pro Display", "Arial Narrow", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: #e8e5df;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--orange); color: #fff; }

.is-hidden { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

::-webkit-scrollbar { width: 0; height: 0; }

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 600px) {
  body { display: flex; align-items: center; justify-content: center; padding: 18px 0; }
  .app {
    height: calc(100vh - 36px);
    height: calc(100dvh - 36px);
    border-radius: 38px;
    box-shadow: 0 30px 100px rgba(32, 27, 20, 0.22), 0 2px 0 rgba(255,255,255,.8) inset;
  }
}

.shell { position: relative; height: 100%; background: var(--bg); }
.screen {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(88px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}
.car-svg { width: 100%; height: auto; }
.car-photo { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; user-select: none; pointer-events: none; }
.car-photo.is-crop { height: 100%; }
.color-info small { display: block; color: var(--muted); font-size: 7px; margin-top: 2px; }
.screen.no-tabs { padding-bottom: 0; }

/* ============================= TAB BAR ============================= */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(62px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.92);
  border-top: 1px solid rgba(0,0,0,.05);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.tab-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #b1ada6;
  font-size: 9px; font-weight: 500;
  letter-spacing: .02em;
  transition: color .2s;
}
.tab-item .ic { width: 23px; height: 23px; stroke-width: 1.65; transition: transform .25s var(--ease); }
.tab-item.active { color: var(--orange); }
.tab-item.active .ic { transform: translateY(-1px); stroke-width: 1.9; }
.tab-item .tab-dot {
  position: absolute; top: 9px; right: 26%;
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  border: 1.5px solid #fff;
}
.tab-item.active .tab-dot { display: none; }

/* ============================= GENERAL ============================= */
.px { padding-left: 18px; padding-right: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 46px; padding: 0 20px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255,105,0,.22); }
.btn-primary:active { background: #f25f00; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-soft { background: var(--orange-soft); color: var(--orange); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 11px; }
.btn:disabled { opacity: .4; box-shadow: none; }

.eyebrow { font-size: 9px; letter-spacing: .2em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.mono { font-family: var(--num); font-variant-numeric: tabular-nums; }
.sub { color: var(--sub); }
.orange { color: var(--orange); }
.green { color: var(--green); }
.dark { color: var(--ink); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-head h2 { font-size: 18px; letter-spacing: -.035em; font-weight: 700; }
.section-head .more { color: var(--sub); font-size: 10px; display: flex; align-items: center; gap: 2px; }
.section-head .more .ic { width: 12px; height: 12px; }

.appbar {
  position: sticky; top: 0; z-index: 25;
  padding: calc(8px + var(--safe-top)) 16px 8px;
  background: rgba(247,245,241,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.appbar-inner { height: 42px; display: flex; align-items: center; gap: 10px; }
.appbar h1 { font-size: 17px; font-weight: 650; letter-spacing: -.02em; flex: 1; text-align: center; }
.appbar .appbar-sub { font-size: 9px; color: var(--muted); margin-top: 1px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
}
.icon-btn .ic { width: 18px; height: 18px; }
.icon-btn:active { background: #fff; }
.appbar-side { width: 36px; display: flex; justify-content: flex-end; }

/* ============================= ONBOARDING ============================= */
.onboarding {
  position: absolute; inset: 0; z-index: 60;
  overflow-y: auto;
  padding: calc(28px + var(--safe-top)) 22px calc(28px + var(--safe-bottom));
  background:
    radial-gradient(70% 50% at 78% 18%, rgba(255, 170, 110, .35), transparent 70%),
    radial-gradient(60% 40% at 5% 80%, rgba(255, 214, 180, .4), transparent 70%),
    linear-gradient(160deg, #fffaf5 0%, #f7efe7 60%, #f3e8dc 100%);
  color: var(--ink);
}
.onboarding::before {
  content: "DRIVE";
  position: absolute; right: -20px; top: 36%;
  font-family: var(--num); font-size: 130px; font-weight: 800; letter-spacing: -.08em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,105,0,.08);
  transform: rotate(-90deg); pointer-events: none;
}
.onboarding-logo { display: flex; align-items: center; gap: 9px; }
.logo-mark {
  width: 33px; height: 33px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #ff8a3d, #ff5c00);
  color: #fff; font-family: var(--num); font-size: 20px; font-weight: 900; letter-spacing: -.06em;
  box-shadow: 0 6px 16px rgba(255,105,0,.28), inset 0 1px 0 rgba(255,255,255,.45);
}
.onboarding-logo b { font-family: var(--num); font-size: 14px; letter-spacing: .16em; }
.onboarding-logo > div > span { display: block; font-size: 8px; color: var(--sub); letter-spacing: .18em; margin-top: 1px; }
.onboarding-kicker { margin-top: 34px; }
.onboarding h1 { font-size: clamp(42px, 12vw, 56px); line-height: .98; letter-spacing: -.07em; font-weight: 800; margin-top: 10px; }
.onboarding h1 em { font-style: normal; color: var(--orange); }
.onboarding-lead { color: #6f6a63; font-size: 12px; line-height: 1.8; margin-top: 12px; max-width: 330px; }
.onboarding-car { position: relative; height: 190px; margin: 14px -10px 2px; }
.onboarding-car svg { width: 112%; height: 100%; margin-left: -6%; filter: drop-shadow(0 22px 20px rgba(110, 65, 25, .15)); }
.onboarding-car::after {
  content: ""; position: absolute; left: 24%; right: 24%; bottom: 8%;
  height: 12px; border-radius: 50%;
  background: rgba(120, 70, 30, .13); filter: blur(8px);
}
.onboarding-car-badge {
  position: absolute; right: 4px; top: 4px;
  padding: 7px 10px; border-radius: 10px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  font-size: 8px; color: var(--sub); text-align: right;
  box-shadow: 0 8px 24px rgba(106, 66, 31, .06);
}
.onboarding-car-badge b { display: block; color: var(--ink); font-family: var(--num); font-size: 15px; margin-top: 1px; }
.onboarding-label { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--sub); font-size: 9px; letter-spacing: .12em; }
.profile-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.profile-card {
  position: relative; width: 100%;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px;
  text-align: left;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(83, 53, 25, .035);
  transition: .25s var(--ease);
}
.profile-card:active { transform: scale(.985); }
.profile-card.selected { border-color: rgba(255,105,0,.58); background: rgba(255,255,255,.92); box-shadow: 0 8px 26px rgba(255,105,0,.1); }
.profile-emoji {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; font-size: 21px;
  background: rgba(255, 236, 220, .8);
}
.profile-info { flex: 1; min-width: 0; }
.profile-info b { display: block; font-size: 13px; font-weight: 650; }
.profile-info p { color: var(--sub); font-size: 9.5px; line-height: 1.55; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-money { text-align: right; flex-shrink: 0; }
.profile-money b { font-family: var(--num); font-size: 18px; font-weight: 600; }
.profile-money span { display: block; font-size: 8px; color: var(--muted); }
.profile-card .check-bubble {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: grid; place-items: center;
  border: 2px solid #fff;
  opacity: 0; transform: scale(.5); transition: .25s var(--ease);
}
.profile-card.selected .check-bubble { opacity: 1; transform: scale(1); }
.check-bubble .ic { width: 10px; height: 10px; stroke-width: 3; }
.onboarding-cta { margin-top: 18px; }
.onboarding-cta .btn { width: 100%; height: 52px; font-size: 14px; }
.onboarding-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 8px; line-height: 1.6; letter-spacing: .02em; }

/* ============================= HOME ============================= */
.home-head {
  display: flex; align-items: center; gap: 10px;
  padding: calc(12px + var(--safe-top)) 18px 0;
}
.home-brand { display: flex; align-items: center; gap: 8px; flex: 1; }
.home-brand .logo-mark { width: 28px; height: 28px; border-radius: 9px; font-size: 17px; }
.home-brand b { font-family: var(--num); font-size: 12px; letter-spacing: .17em; }
.home-brand > div > span { display: block; color: var(--sub); font-size: 7.5px; letter-spacing: .14em; margin-top: 1px; }
.location-chip {
  display: flex; align-items: center; gap: 3px;
  height: 30px; padding: 0 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2); font-size: 10px;
}
.location-chip .ic { width: 13px; height: 13px; color: var(--orange); }
.home-head .icon-btn { width: 32px; height: 32px; background: #fff; }
.home-head .icon-btn .ic { width: 16px; height: 16px; }
.home { padding: 0 18px; }
.greeting { margin: 22px 0 16px; }
.greeting h1 { font-size: 27px; line-height: 1.18; letter-spacing: -.045em; font-weight: 700; }
.greeting h1 b { color: var(--orange); font-weight: 700; }
.greeting p { color: var(--sub); font-size: 11px; margin-top: 5px; }

.hero-card {
  position: relative;
  height: 356px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 78% 30%, rgba(255,255,255,.7), transparent 70%),
    linear-gradient(145deg, #fff7ef 0%, #fbe7d5 52%, #f3cfb2 100%);
  box-shadow: 0 18px 40px rgba(165, 102, 45, .12);
  isolation: isolate;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,105,0,.1) .7px, transparent .7px);
  background-size: 13px 13px;
  mask-image: linear-gradient(120deg, transparent 25%, black 90%);
  opacity: .55;
}
.hero-card::after {
  content: "SU7"; position: absolute; right: -8px; bottom: 42px;
  font-family: var(--num); font-size: 100px; font-weight: 800; letter-spacing: -.08em;
  color: rgba(255,255,255,.25);
  z-index: 0;
}
.hero-copy { position: relative; z-index: 3; padding: 21px 22px 0; }
.hero-badge { display: flex; align-items: center; gap: 6px; color: #9b7458; font-size: 8.5px; font-weight: 600; letter-spacing: .14em; }
.hero-badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 7px var(--orange); }
.hero-copy h2 { font-size: 31px; line-height: 1.1; letter-spacing: -.055em; margin-top: 7px; font-weight: 750; }
.hero-copy p { color: #8d6e58; font-size: 10.5px; margin-top: 3px; }
.hero-specs { display: flex; gap: 8px; margin-top: 10px; }
.hero-specs span { padding: 4px 8px; border-radius: 7px; background: rgba(255,255,255,.46); color: #805f49; font-size: 8.5px; font-family: var(--num); }
.hero-car { position: absolute; z-index: 2; left: -7%; right: -7%; bottom: 60px; }
.hero-car svg { width: 100%; height: auto; filter: drop-shadow(0 26px 20px rgba(100, 55, 18, .22)); animation: carFloat 6s ease-in-out infinite; }
.hero-bottom {
  position: absolute; z-index: 4; left: 18px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hero-price { display: flex; align-items: baseline; gap: 3px; }
.hero-price b { font-family: var(--num); font-size: 25px; font-weight: 600; letter-spacing: -.02em; }
.hero-price b small { font-size: 9px; color: #8d6e58; margin-left: 2px; font-weight: 400; }
.hero-price span { display: block; color: #9b7b65; font-size: 8px; margin-top: -2px; }
.hero-cta { display: flex; gap: 7px; }
.hero-cta .btn { height: 38px; padding: 0 15px; font-size: 11px; }
.hero-cta .btn-ghost { background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.8); color: #5d4331; }

@keyframes carFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 19px 0 4px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 7px 0; }
.quick-icon {
  width: 44px; height: 44px; border-radius: 15px;
  display: grid; place-items: center;
  background: #fff; color: var(--orange);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 20px rgba(92, 67, 40, .06);
}
.quick-icon .ic { width: 20px; height: 20px; }
.quick-item span { font-size: 9.5px; color: var(--ink-2); }
.quick-item:active .quick-icon { transform: scale(.94); }

.order-banner {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 14px;
  margin: 13px 0 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #fff0e5, #fff8f2);
  border: 1px solid #ffe3cf;
  text-align: left;
}
.order-banner .ob-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--orange); flex-shrink: 0; }
.order-banner .ob-icon .ic { width: 16px; height: 16px; }
.order-banner .ob-text { flex: 1; font-size: 10px; color: #8c6a55; }
.order-banner .ob-text b { color: var(--ink); font-weight: 600; }
.order-banner .ic-arrow { width: 14px; height: 14px; color: var(--orange); }

.h-scroll {
  display: flex; gap: 11px;
  overflow-x: auto; overscroll-behavior-x: contain;
  margin: 0 -18px; padding: 2px 18px 5px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.mini-car {
  flex: 0 0 166px;
  scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  text-align: left;
  box-shadow: 0 6px 18px rgba(65, 50, 34, .04);
}
.mini-car:active { transform: scale(.985); }
.mini-car-art {
  height: 94px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #fbfaf7, #f1ede6);
}
.mini-car-art svg { width: 118%; height: 100%; margin-left: -9%; }
.mini-car-art .mini-badge {
  position: absolute; top: 8px; left: 9px; padding: 3px 6px;
  border-radius: 5px; background: rgba(255,255,255,.8);
  color: #9b8e81; font-size: 7px; letter-spacing: .06em;
}
.mini-car-body { padding: 10px 11px 11px; }
.mini-car-body h3 { font-size: 13px; letter-spacing: -.02em; font-weight: 650; }
.mini-car-body p { color: var(--sub); font-size: 8.5px; margin-top: 1px; }
.mini-car-price { display: flex; align-items: baseline; gap: 2px; margin-top: 7px; }
.mini-car-price b { font-family: var(--num); font-size: 17px; font-weight: 600; }
.mini-car-price b small { font-size: 8px; color: var(--sub); font-weight: 400; margin-left: 2px; }
.mini-car-price span { color: var(--muted); font-size: 7.5px; margin-left: 2px; }

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-card {
  position: relative; overflow: hidden;
  min-height: 104px; padding: 14px;
  border-radius: 19px;
  background: #fff; border: 1px solid var(--line);
  text-align: left;
}
.service-card.tint { background: linear-gradient(145deg, #fff2e8, #fff9f3); border-color: #f8e5d5; }
.service-card.dark { background: linear-gradient(145deg, #242426, #151517); border-color: #2b2b2d; color: #fff; }
.service-card h3 { font-size: 13px; font-weight: 650; letter-spacing: -.02em; }
.service-card p { color: var(--sub); font-size: 9px; line-height: 1.5; margin-top: 2px; max-width: 130px; }
.service-card.dark p { color: #9e9ea4; }
.service-card .sc-icon { position: absolute; right: 12px; bottom: 11px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,105,0,.08); color: var(--orange); }
.service-card.dark .sc-icon { background: rgba(255,255,255,.08); color: #ffb27d; }
.service-card .sc-icon .ic { width: 15px; height: 15px; }
.service-card .sc-arrow { position: absolute; right: 13px; top: 13px; width: 13px; height: 13px; color: var(--muted); }

.feed-list { display: flex; flex-direction: column; gap: 9px; }
.feed-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 18px; background: #fff; border: 1px solid var(--line);
  text-align: left;
}
.feed-thumb { width: 62px; height: 52px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(145deg, #ffe9d6, #fff7ef); display: grid; place-items: center; color: var(--orange); }
.feed-thumb .ic { width: 24px; height: 24px; }
.feed-copy { flex: 1; min-width: 0; }
.feed-copy b { display: block; font-size: 11.5px; font-weight: 600; }
.feed-copy p { color: var(--sub); font-size: 9px; margin-top: 2px; }
.feed-card .ic-arrow { width: 13px; height: 13px; color: var(--muted); }

/* ============================= CATALOG ============================= */
.page { padding: 0 18px; }
.page-head { padding: 8px 0 2px; }
.page-head h1 { font-size: 29px; letter-spacing: -.055em; font-weight: 750; }
.page-head p { color: var(--sub); font-size: 10.5px; margin-top: 2px; }
.search-bar {
  display: flex; align-items: center; gap: 8px;
  height: 42px; margin-top: 14px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.search-bar .ic { width: 16px; height: 16px; flex-shrink: 0; }
.search-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 12px; }
.search-bar input::placeholder { color: var(--muted); }
.search-clear { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-soft); color: var(--sub); display: grid; place-items: center; }
.search-clear .ic { width: 11px; height: 11px; }

.brand-chips, .filter-chips {
  display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none;
  margin: 12px -18px 0; padding: 2px 18px;
}
.brand-chips::-webkit-scrollbar, .filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  height: 32px; padding: 0 13px;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--sub); font-size: 10.5px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: .2s;
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .chip-dot { width: 5px; height: 5px; border-radius: 50%; }
.filter-chips { margin-top: 8px; }
.filter-chips .chip { height: 28px; padding: 0 11px; font-size: 9.5px; background: transparent; border-color: transparent; color: var(--sub); }
.filter-chips .chip.active { background: var(--orange-soft); border-color: transparent; color: var(--orange); }
.catalog-meta { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 9px; color: var(--sub); font-size: 9px; }
.sort-btn { display: flex; align-items: center; gap: 3px; color: var(--ink-2); font-size: 9.5px; }
.sort-btn .ic { width: 12px; height: 12px; }

.model-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.model-card {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: 23px; overflow: hidden;
  text-align: left;
  box-shadow: 0 6px 20px rgba(67, 50, 33, .035);
}
.model-card:active { transform: scale(.99); }
.model-art {
  height: 150px; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 50% 58%, rgba(255,255,255,.9), transparent 72%),
    linear-gradient(145deg, #fbfaf7, #f0ece5);
}
.model-art svg { width: 108%; height: 100%; margin-left: -4%; }
.model-badges { position: absolute; top: 11px; left: 12px; display: flex; gap: 4px; }
.model-badge { padding: 3px 6px; border-radius: 5px; background: rgba(255,255,255,.78); color: #8a7f72; font-size: 7.5px; }
.model-badge.hot { background: var(--orange-soft); color: var(--orange); }
.model-fav { position: absolute; top: 9px; right: 9px; width: 27px; height: 27px; border-radius: 50%; background: rgba(255,255,255,.8); color: #b0aaa2; display: grid; place-items: center; }
.model-fav .ic { width: 14px; height: 14px; }
.model-fav.on { color: var(--red); }
.model-fav.on .ic { fill: currentColor; }
.model-body { padding: 12px 14px 14px; }
.model-brandline { display: flex; align-items: center; gap: 5px; color: var(--sub); font-size: 8px; letter-spacing: .13em; font-family: var(--num); }
.model-brandline .brand-dot { width: 4px; height: 4px; border-radius: 50%; }
.model-body h3 { font-size: 20px; letter-spacing: -.045em; font-weight: 700; margin-top: 1px; }
.model-sub { color: var(--sub); font-size: 9.5px; margin-top: 1px; }
.model-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.model-tags span { padding: 3px 6px; border-radius: 5px; background: #f7f5f1; color: #7d776e; font-size: 8px; }
.model-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 10px; }
.model-price { display: flex; align-items: baseline; gap: 2px; }
.model-price b { font-family: var(--num); font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.model-price b small { font-size: 8.5px; color: var(--sub); margin-left: 1px; font-weight: 400; }
.model-price span { display: block; color: var(--muted); font-size: 8px; margin-top: -2px; }
.model-arrow { width: 29px; height: 29px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--sub); }
.model-arrow .ic { width: 13px; height: 13px; }
.empty-list { text-align: center; padding: 50px 20px; color: var(--sub); font-size: 11px; }

/* ============================= DETAIL ============================= */
.detail-page { background: var(--bg); min-height: 100%; padding-bottom: calc(92px + var(--safe-bottom)); }
.detail-nav {
  position: sticky; top: 0; z-index: 25;
  padding: calc(8px + var(--safe-top)) 14px 8px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(247,245,241,.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.detail-nav .nav-title { flex: 1; text-align: center; font-size: 13px; font-weight: 600; }
.detail-hero {
  position: relative;
  height: 320px;
  margin: 2px 14px 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(55% 50% at 75% 30%, rgba(255,255,255,.8), transparent 70%),
    linear-gradient(150deg, #fff8f1, #f8e4d2 55%, #efcfb1);
  isolation: isolate;
}
.detail-hero::after {
  content: attr(data-en);
  position: absolute; right: -4px; bottom: 26px;
  font-family: var(--num); font-size: 58px; font-weight: 800; letter-spacing: -.07em;
  color: rgba(255,255,255,.28); white-space: nowrap;
}
.detail-hero-copy { position: relative; z-index: 3; padding: 18px 19px 0; }
.detail-hero-copy .brand { color: #9c7b63; font-size: 8px; letter-spacing: .17em; font-family: var(--num); display: flex; align-items: center; gap: 5px; }
.detail-hero-copy .brand i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.detail-hero-copy h1 { font-size: 27px; letter-spacing: -.05em; margin-top: 4px; font-weight: 750; }
.detail-hero-copy p { color: #8c6d56; font-size: 10px; margin-top: 2px; }
.detail-hero-type { display: flex; gap: 4px; margin-top: 8px; }
.detail-hero-type span { padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,.5); color: #856a56; font-size: 7.5px; }
.detail-car { position: absolute; z-index: 2; left: -8%; right: -8%; bottom: 8px; }
.detail-car svg { width: 100%; height: auto; filter: drop-shadow(0 24px 20px rgba(105, 60, 25, .18)); }
.detail-coupon {
  position: absolute; z-index: 5; top: 16px; right: 15px;
  padding: 5px 8px; border-radius: 7px;
  background: rgba(255,255,255,.7); color: var(--orange);
  font-size: 8px; backdrop-filter: blur(8px);
}
.detail-coupon b { font-family: var(--num); }

.color-dock {
  position: relative;
  z-index: 5;
  margin: -25px 18px 0;
  padding: 11px 13px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(87, 59, 32, .08);
  backdrop-filter: blur(12px);
}
.color-info span { display: block; font-size: 8px; color: var(--sub); letter-spacing: .08em; }
.color-info b { display: block; font-size: 11px; font-weight: 600; margin-top: 1px; }
.color-info i { font-style: normal; color: var(--muted); font-size: 8px; margin-left: 3px; }
.swatches { display: flex; gap: 7px; }
.swatch {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  position: relative;
  box-shadow: inset 0 2px 3px rgba(255,255,255,.3);
  transition: transform .2s;
}
.swatch::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid transparent; transition: .2s; }
.swatch.active::after { border-color: var(--orange); }
.swatch:active { transform: scale(.9); }

.detail-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 19px 0; }
.detail-price b { font-family: var(--num); font-size: 29px; font-weight: 600; letter-spacing: -.03em; }
.detail-price b small { font-size: 10px; color: var(--sub); margin-left: 2px; font-weight: 400; }
.detail-price span { display: block; color: var(--sub); font-size: 9px; margin-top: 1px; }
.detail-meta .meta-note { color: var(--sub); font-size: 8.5px; text-align: right; line-height: 1.5; }

.detail-actions { display: flex; gap: 8px; padding: 12px 18px 0; }
.detail-actions .btn { flex: 1; height: 40px; font-size: 10.5px; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 14px 18px 0; background: var(--line); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.spec-cell { background: #fff; padding: 11px 4px; text-align: center; }
.spec-cell span { display: block; color: var(--muted); font-size: 7.5px; }
.spec-cell b { display: block; font-family: var(--num); font-size: 14px; font-weight: 600; margin-top: 2px; }
.spec-cell b small { font-size: 7px; color: var(--sub); margin-left: 1px; font-weight: 400; }

.detail-section { margin: 11px 14px 0; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.detail-section .ds-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.detail-section .ds-head h2 { font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.detail-section .ds-head span { color: var(--muted); font-size: 8.5px; }
.trim-list { display: flex; flex-direction: column; gap: 7px; }
.trim-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 14px;
  background: #fbfaf8;
  text-align: left;
  transition: .2s;
}
.trim-option.active { border-color: var(--orange); background: #fff8f2; box-shadow: 0 4px 14px rgba(255,105,0,.06); }
.trim-radio { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 1px solid #d8d3cb; display: grid; place-items: center; }
.trim-option.active .trim-radio { border-color: var(--orange); }
.trim-option.active .trim-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.trim-info { flex: 1; min-width: 0; }
.trim-info b { display: block; font-size: 11.5px; font-weight: 600; }
.trim-info small { display: block; color: var(--sub); font-size: 8.5px; margin-top: 1px; }
.trim-price { font-family: var(--num); font-size: 13px; white-space: nowrap; }
.trim-price small { font-size: 7.5px; color: var(--sub); margin-left: 1px; }

.option-link {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.option-link:last-child { border-bottom: 0; padding-bottom: 0; }
.option-link .ol-left { flex: 1; min-width: 0; }
.option-link .ol-left span { display: block; color: var(--muted); font-size: 8px; }
.option-link .ol-left b { display: block; font-size: 11.5px; font-weight: 500; margin-top: 1px; }
.option-link .ol-price { color: var(--sub); font-size: 9px; font-family: var(--num); }
.option-link .ic-chevron { width: 13px; height: 13px; color: var(--muted); flex-shrink: 0; }
.color-row { display: flex; align-items: center; gap: 10px; padding-bottom: 3px; }
.color-row .color-swatches { display: flex; gap: 8px; flex: 1; }
.color-row .swatch { width: 27px; height: 27px; }
.color-row .color-name { font-size: 9px; color: var(--sub); text-align: right; }

.pkg-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.pkg-row:last-child { border-bottom: 0; }
.pkg-check { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 1px solid #d8d3cb; display: grid; place-items: center; transition: .2s; }
.pkg-check .ic { width: 10px; height: 10px; color: #fff; opacity: 0; stroke-width: 3; }
.pkg-row.active .pkg-check { background: var(--orange); border-color: var(--orange); }
.pkg-row.active .pkg-check .ic { opacity: 1; }
.pkg-info { flex: 1; min-width: 0; }
.pkg-info b { display: block; font-size: 11.5px; font-weight: 500; }
.pkg-info small { display: block; color: var(--sub); font-size: 8.5px; margin-top: 1px; }
.pkg-price { font-family: var(--num); font-size: 9.5px; color: var(--sub); white-space: nowrap; }

.detail-summary { margin: 11px 14px 0; padding: 15px 17px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 9.5px; color: var(--sub); }
.summary-row b { font-family: var(--num); font-weight: 500; color: var(--ink-2); }
.summary-row.discount b { color: var(--orange); }
.summary-total { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.summary-total span { font-size: 10px; color: var(--sub); }
.summary-total b { font-family: var(--num); font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.summary-total b small { font-size: 8px; color: var(--sub); margin-left: 1px; font-weight: 400; }
.summary-total em { display: block; text-align: right; font-style: normal; color: var(--muted); font-size: 8px; margin-top: 1px; }
.detail-bottom {
  position: absolute; z-index: 35; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255,255,255,.95);
  border-top: 1px solid rgba(0,0,0,.05);
  backdrop-filter: blur(18px);
}
.detail-bottom .db-price { flex: 1; min-width: 0; }
.detail-bottom .db-price span { display: block; color: var(--sub); font-size: 8px; }
.detail-bottom .db-price b { display: block; font-family: var(--num); font-size: 23px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.detail-bottom .db-price b small { font-size: 8px; color: var(--sub); font-weight: 400; margin-left: 1px; }
.detail-bottom .db-price em { display: block; font-style: normal; color: var(--muted); font-size: 8px; margin-top: 1px; }
.detail-bottom .btn { flex: 0 0 auto; min-width: 128px; height: 44px; font-size: 12px; }
.detail-bottom .btn-icon { width: 44px; padding: 0; min-width: 0; }

/* ============================= SHEETS / MODALS ============================= */
.sheet-root { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
.sheet-root.open { pointer-events: auto; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 18, 15, .36);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex; align-items: flex-end;
  animation: fadeIn .25s ease both;
}
.sheet {
  position: relative;
  width: 100%; max-height: 92%;
  overflow-y: auto;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 8px 18px calc(18px + var(--safe-bottom));
  animation: sheetUp .38s var(--ease) both;
  overscroll-behavior: contain;
}
.sheet.tall { max-height: 94%; }
.sheet-grab { width: 36px; height: 4px; border-radius: 99px; background: #e6e1d9; margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.sheet-head .sh-copy { flex: 1; min-width: 0; }
.sheet-head h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.04em; font-weight: 700; }
.sheet-head p { color: var(--sub); font-size: 10px; line-height: 1.6; margin-top: 3px; }
.sheet-close { width: 30px; height: 30px; border-radius: 50%; background: #f4f1ec; color: var(--sub); display: grid; place-items: center; flex-shrink: 0; }
.sheet-close .ic { width: 13px; height: 13px; }
.sheet-foot {
  position: sticky; bottom: calc(-18px - var(--safe-bottom));
  margin: 16px -18px calc(-18px - var(--safe-bottom));
  padding: 12px 18px calc(14px + var(--safe-bottom));
  display: flex; gap: 8px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.sheet-foot .btn { flex: 1; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }

/* picker */
.picker-list { display: flex; flex-direction: column; gap: 7px; }
.picker-option {
  display: flex; align-items: center; gap: 11px;
  padding: 12px;
  border: 1px solid var(--line); border-radius: 14px;
  background: #fbfaf7; text-align: left;
}
.picker-option.active { border-color: var(--orange); background: #fff8f2; }
.picker-option .p-swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex-shrink: 0; }
.picker-option .p-info { flex: 1; min-width: 0; }
.picker-option .p-info b { display: block; font-size: 11.5px; font-weight: 550; }
.picker-option .p-info small { display: block; color: var(--sub); font-size: 8.5px; margin-top: 1px; }
.picker-option .p-price { font-family: var(--num); font-size: 10px; color: var(--sub); }
.picker-option .p-check { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #ddd8cf; color: #fff; }
.picker-option.active .p-check { background: var(--orange); border-color: var(--orange); }
.picker-option .p-check .ic { width: 10px; height: 10px; opacity: 0; stroke-width: 3; }
.picker-option.active .p-check .ic { opacity: 1; }

/* test drive */
.drive-head { text-align: center; padding-top: 4px; }
.drive-head h2 { font-size: 22px; letter-spacing: -.05em; }
.drive-head p { color: var(--sub); font-size: 10px; margin-top: 3px; }
.traffic-pill { display: flex; justify-content: center; gap: 8px; padding: 10px 14px; margin: 20px auto 0; width: max-content; border-radius: 999px; background: #171718; box-shadow: inset 0 4px 12px rgba(0,0,0,.5); }
.traffic-lamp { width: 30px; height: 30px; border-radius: 50%; background: #2c2c2e; box-shadow: inset 0 2px 4px rgba(0,0,0,.6); transition: .2s; }
.traffic-lamp.on.red { background: #ff514d; box-shadow: 0 0 20px rgba(255,81,77,.8); }
.traffic-lamp.on.green { background: #45d98d; box-shadow: 0 0 20px rgba(69,217,141,.8); }
.drive-hint { text-align: center; color: var(--sub); font-size: 10px; margin-top: 12px; min-height: 15px; }
.reaction-pad {
  width: 100%; height: 112px; margin-top: 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff1e6, #ffe2cb);
  border: 1px solid #ffd9bb;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #7d4e27;
  transition: transform .18s, background .18s;
}
.reaction-pad b { font-size: 19px; letter-spacing: -.02em; }
.reaction-pad span { font-size: 8px; letter-spacing: .16em; color: #b68159; }
.reaction-pad:active, .reaction-pad.hit { transform: scale(.985); background: linear-gradient(145deg, #fff7ef, #ffecd9); }
.reaction-pad.early { background: #fff0ef; border-color: #ffd3d2; animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.drive-result-time { text-align: center; font-family: var(--num); font-size: 57px; line-height: 1; letter-spacing: -.04em; margin-top: 18px; }
.drive-result-time small { font-size: 15px; color: var(--sub); margin-left: 3px; }
.drive-comment { text-align: center; color: var(--sub); font-size: 10px; margin-top: 5px; }
.reward-card {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 12px;
  border-radius: 15px;
  background: #fff9ee; border: 1px solid #f4e3bd;
}
.reward-icon { width: 34px; height: 34px; border-radius: 10px; background: #fff1d4; color: #c58c2b; display: grid; place-items: center; flex-shrink: 0; }
.reward-icon .ic { width: 16px; height: 16px; }
.reward-card b { display: block; font-size: 10.5px; }
.reward-card span { display: block; color: var(--sub); font-size: 8.5px; margin-top: 1px; }
.reward-card .value { margin-left: auto; font-family: var(--num); font-size: 19px; color: #b9811c; }
.drive-stats { display: flex; justify-content: center; gap: 26px; margin-top: 14px; }
.drive-stats div { text-align: center; }
.drive-stats span { display: block; color: var(--muted); font-size: 8px; }
.drive-stats b { font-family: var(--num); font-size: 14px; font-weight: 550; }

/* negotiation */
.nego-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sales-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(145deg, #3b3b3e, #1e1e20); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; position: relative; flex-shrink: 0; }
.sales-avatar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.sales-info { flex: 1; min-width: 0; }
.sales-info b { display: block; font-size: 12px; font-weight: 600; }
.sales-info span { display: block; color: var(--sub); font-size: 8.5px; margin-top: 1px; }
.mood-chip { padding: 4px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 8px; white-space: nowrap; }
.mood-chip.warn { background: #fff7e8; color: #b58123; }
.mood-chip.bad { background: #ffefef; color: var(--red); }
.patience-row { display: flex; align-items: center; gap: 8px; padding: 10px 0 0; }
.patience-row span { color: var(--muted); font-size: 8px; white-space: nowrap; }
.patience-track { flex: 1; height: 4px; border-radius: 99px; background: #f0ece6; overflow: hidden; }
.patience-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffbd74, #ff6900); transition: width .4s var(--ease); }
.patience-row b { font-family: var(--num); font-size: 9px; color: var(--sub); width: 22px; text-align: right; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; margin-top: 13px; padding-right: 2px; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 2px 14px 14px 14px; background: #f7f5f1; color: var(--ink-2); font-size: 10.5px; line-height: 1.65; animation: bubbleIn .3s var(--ease) both; }
.bubble.me { align-self: flex-end; border-radius: 14px 2px 14px 14px; background: #fff0e5; color: #7d4b27; }
.bubble.sys { align-self: center; background: transparent; color: var(--muted); font-size: 8.5px; padding: 0; }
.bubble.good { border: 1px solid #e1f2e9; background: #f1faf6; color: #286e51; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } }
.tactic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.tactic {
  position: relative;
  text-align: left; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: 13px;
  background: #fbfaf8;
}
.tactic:disabled { opacity: .38; }
.tactic .t-tag { color: var(--muted); font-size: 7.5px; }
.tactic .t-chance { position: absolute; right: 10px; top: 10px; color: var(--muted); font-family: var(--num); font-size: 8px; }
.tactic b { display: block; font-size: 11px; margin-top: 1px; font-weight: 600; }
.tactic p { color: var(--sub); font-size: 8px; line-height: 1.45; margin-top: 1px; }
.quote-final { margin-top: 13px; padding: 13px; border-radius: 15px; background: #f2fbf6; border: 1px solid #dff1e7; }
.quote-final .qf-top { display: flex; align-items: center; justify-content: space-between; }
.quote-final .qf-top span { color: var(--sub); font-size: 8.5px; }
.quote-final .qf-top b { font-family: var(--num); font-size: 23px; color: var(--green); font-weight: 600; }
.quote-final .qf-gifts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.quote-final .qf-gifts span { padding: 3px 6px; border-radius: 4px; background: #e9f7f0; color: #3e8063; font-size: 8px; }
.quote-final .qf-actions { display: flex; gap: 7px; margin-top: 10px; }
.quote-final .qf-actions .btn { flex: 1; height: 38px; font-size: 10.5px; }

/* order */
.order-carline { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fbfaf8; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.order-carline .oc-art { width: 72px; height: 43px; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: #f4f0e9; display: flex; align-items: center; }
.order-carline .oc-art svg { width: 100%; height: 100%; }
.order-carline b { display: block; font-size: 11px; }
.order-carline span { display: block; color: var(--sub); font-size: 8.5px; margin-top: 1px; }
.segmented { display: flex; padding: 3px; background: #f4f1ec; border-radius: 11px; }
.segmented button { flex: 1; height: 34px; border-radius: 8px; color: var(--sub); font-size: 10.5px; font-weight: 500; }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 7px rgba(60,45,30,.08); }
.pay-label { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 5px; }
.pay-label span { color: var(--sub); font-size: 9px; }
.pay-label b { font-family: var(--num); font-size: 18px; font-weight: 600; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 99px;
  background: linear-gradient(90deg, var(--orange) var(--pct, 30%), #f0ece6 var(--pct, 30%));
  outline: none; margin: 12px 0 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 19px; height: 19px; border-radius: 50%;
  background: #fff; border: 5px solid var(--orange); box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.range-marks { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; font-family: var(--num); }
.term-pills { display: flex; gap: 6px; }
.term-pills button { flex: 1; height: 33px; border-radius: 9px; background: #f7f5f1; color: var(--sub); font-size: 10px; border: 1px solid transparent; }
.term-pills button.active { background: #fff5ed; border-color: #ffcfab; color: var(--orange); }
.pay-note { color: var(--muted); font-size: 8px; line-height: 1.65; margin-top: 8px; }
.cost-list { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.cost-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9.5px; color: var(--sub); }
.cost-row b { font-family: var(--num); color: var(--ink-2); font-weight: 500; }
.cost-row.discount b { color: var(--orange); }
.cost-row.total { margin-top: 3px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink); }
.cost-row.total b { font-size: 20px; font-weight: 600; }
.health-card { margin-top: 10px; padding: 10px; border-radius: 11px; background: #f8f7f4; border: 1px solid var(--line); }
.health-top { display: flex; align-items: center; justify-content: space-between; font-size: 8.5px; color: var(--sub); }
.health-top b { font-family: var(--num); color: var(--ink); }
.health-track { height: 4px; border-radius: 99px; background: #ece8e1; overflow: hidden; margin: 6px 0 4px; }
.health-fill { height: 100%; border-radius: inherit; background: var(--green); width: 0; transition: width .3s; }
.health-card.warn .health-fill { background: #e3a533; }
.health-card.danger .health-fill { background: var(--red); }
.health-card small { display: block; color: var(--muted); font-size: 8px; line-height: 1.5; }
.alert-box { margin-top: 9px; padding: 8px 10px; border-radius: 9px; background: #fff0ef; border: 1px solid #ffdcd9; color: #b64c4c; font-size: 8.5px; line-height: 1.55; }
.deposit-row { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; color: var(--sub); font-size: 9px; }
.deposit-row b { font-family: var(--num); color: var(--ink); font-size: 14px; }

/* ============================= ORDERS ============================= */
.order-page { padding-bottom: 14px; }
.order-hero {
  margin: 2px 14px 0;
  border-radius: 25px;
  overflow: hidden;
  background:
    radial-gradient(65% 65% at 75% 30%, rgba(255,255,255,.75), transparent 70%),
    linear-gradient(145deg, #fff6ee, #fbe3cf 60%, #f4d2b5);
  position: relative;
  padding: 18px;
}
.order-hero .oh-status { display: flex; align-items: center; gap: 6px; color: #976e52; font-size: 8.5px; letter-spacing: .08em; }
.order-hero .oh-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 7px var(--orange); }
.order-hero h2 { font-size: 23px; letter-spacing: -.045em; margin-top: 4px; font-weight: 700; }
.order-hero .oh-sub { color: #8d6a53; font-size: 9px; margin-top: 2px; }
.order-hero .oh-art { height: 138px; margin: 3px -6px -10px; }
.order-hero .oh-art svg { width: 108%; height: 100%; margin-left: -4%; filter: drop-shadow(0 18px 14px rgba(95,50,15,.16)); }
.order-hero .oh-count { position: absolute; right: 17px; top: 44px; text-align: right; }
.order-hero .oh-count span { display: block; color: #97745c; font-size: 8px; }
.order-hero .oh-count b { font-family: var(--num); font-size: 38px; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.order-hero .oh-count b small { font-size: 10px; color: #8c6a52; font-weight: 400; margin-left: 1px; }
.order-hero .oh-price { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(120,80,45,.13); color: #8a6750; font-size: 8.5px; }
.order-hero .oh-price b { color: var(--ink); font-family: var(--num); font-size: 13px; font-weight: 550; }
.order-actions { display: flex; gap: 7px; padding: 12px 14px 0; }
.order-actions .btn { flex: 1; height: 40px; font-size: 10.5px; }
.order-actions .btn-dark { flex: 1.15; }
.order-panel { margin: 11px 14px 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 21px; }
.order-panel h3 { font-size: 12px; font-weight: 650; display: flex; align-items: center; justify-content: space-between; }
.order-panel h3 span { color: var(--muted); font-size: 8px; font-weight: 400; letter-spacing: .1em; }
.order-info { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9.5px; color: var(--sub); }
.info-row b { color: var(--ink-2); font-family: var(--num); font-weight: 500; }
.info-row b.green { color: var(--green); }
.progress-steps { display: flex; gap: 2px; margin-top: 12px; }
.step-bar { flex: 1; height: 4px; border-radius: 99px; background: #f0ece6; overflow: hidden; }
.step-bar.on { background: var(--orange); }
.step-labels { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 7.5px; }
.step-labels span.on { color: var(--orange); font-weight: 600; }
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
.tl-item { display: flex; gap: 9px; position: relative; padding-bottom: 13px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: -1px; width: 1px; background: #f0ece6; }
.tl-item:last-child::before { display: none; }
.tl-item.done::before { background: #ffd8bb; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 1px solid #ddd8cf; flex-shrink: 0; margin-top: 2px; position: relative; z-index: 1; }
.tl-item.done .tl-dot { background: var(--orange); border-color: var(--orange); }
.tl-item.now .tl-dot { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,105,0,.1); }
.tl-item b { display: block; font-size: 9.5px; font-weight: 500; }
.tl-item small { display: block; color: var(--muted); font-size: 8px; margin-top: 0; }
.tl-item.done b, .tl-item.now b { color: var(--ink); }
.event-list { max-height: 160px; overflow-y: auto; margin-top: 4px; }
.event-item { display: flex; gap: 7px; padding: 6px 0; border-bottom: 1px dashed #f1ede7; color: var(--sub); font-size: 8.5px; line-height: 1.5; }
.event-item:last-child { border-bottom: 0; }
.event-item .ev-day { color: var(--muted); font-family: var(--num); flex-shrink: 0; font-size: 7.5px; padding-top: 1px; }
.event-item.good { color: #3f8567; }
.event-item.bad { color: #c16a6a; }
.order-empty { text-align: center; padding: 48px 24px; }
.order-empty .oe-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--orange); box-shadow: 0 10px 28px rgba(90,65,40,.06); }
.order-empty .oe-icon .ic { width: 28px; height: 28px; }
.order-empty h2 { font-size: 18px; letter-spacing: -.03em; }
.order-empty p { color: var(--sub); font-size: 10px; margin: 4px 0 16px; }
.completed-list { display: flex; flex-direction: column; gap: 8px; }
.completed-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.completed-card .cc-art { width: 76px; height: 44px; overflow: hidden; display: flex; align-items: center; border-radius: 8px; background: #f7f4ef; flex-shrink: 0; }
.completed-card .cc-art svg { width: 100%; height: 100%; }
.completed-card .cc-info { flex: 1; min-width: 0; }
.completed-card .cc-info b { display: block; font-size: 11px; }
.completed-card .cc-info span { display: block; color: var(--sub); font-size: 8.5px; margin-top: 1px; }
.completed-card .cc-grade { width: 30px; height: 30px; border-radius: 9px; background: #fff6e8; color: #b58228; display: grid; place-items: center; font-family: var(--num); font-size: 13px; font-weight: 700; }
.completed-card .cc-grade.s { background: #fff4d9; }
.completed-card .cc-grade.c { background: #ffefef; color: #d25b5b; }

/* ============================= ME ============================= */
.me-page { padding: 0 16px; }
.me-head { display: flex; align-items: center; gap: 12px; padding: 14px 2px 5px; }
.me-avatar { width: 56px; height: 56px; border-radius: 20px; background: linear-gradient(145deg, #ff8b3a, #ff5e00); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; box-shadow: 0 8px 20px rgba(255,105,0,.2); }
.me-info { flex: 1; min-width: 0; }
.me-info h1 { font-size: 20px; letter-spacing: -.03em; }
.me-info p { color: var(--sub); font-size: 9px; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.me-info p span { padding: 2px 6px; border-radius: 4px; background: #fff; border: 1px solid var(--line); font-size: 8px; }
.me-head .icon-btn { background: #fff; }
.wallet-card {
  position: relative; overflow: hidden;
  margin-top: 14px; padding: 18px;
  border-radius: 24px;
  background: linear-gradient(140deg, #262628, #171719 60%, #101012);
  color: #fff;
  box-shadow: 0 18px 34px rgba(20,18,15,.18);
}
.wallet-card::before { content: ""; position: absolute; right: -40px; top: -70px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(255,105,0,.45), transparent 68%); }
.wallet-label { font-size: 8px; color: #9c9ca2; letter-spacing: .12em; }
.wallet-amount { font-family: var(--num); font-size: 35px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; margin-top: 1px; }
.wallet-amount small { font-size: 11px; color: #b0b0b6; font-family: var(--font); margin-left: 2px; font-weight: 400; }
.wallet-sub { display: flex; gap: 18px; margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.wallet-sub div span { display: block; color: #95959b; font-size: 7.5px; }
.wallet-sub div b { display: block; font-family: var(--num); font-size: 13px; font-weight: 500; margin-top: 1px; }
.wallet-actions { display: flex; gap: 7px; margin-top: 13px; }
.wallet-actions .btn { flex: 1; height: 36px; font-size: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: #fff; }
.wallet-actions .btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.me-section { margin: 17px 0 0; }
.me-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; padding: 0 2px; }
.me-section-head h2 { font-size: 15px; letter-spacing: -.025em; }
.me-section-head span { color: var(--sub); font-size: 9px; }
.garage-scroll { display: flex; gap: 9px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 3px; scrollbar-width: none; }
.garage-scroll::-webkit-scrollbar { display: none; }
.garage-card { flex: 0 0 190px; background: #fff; border: 1px solid var(--line); border-radius: 19px; overflow: hidden; text-align: left; }
.garage-art { height: 94px; background: linear-gradient(145deg, #fbfaf7, #f1ede6); overflow: hidden; }
.garage-art svg { width: 112%; height: 100%; margin-left: -6%; }
.garage-copy { padding: 9px 11px 11px; }
.garage-copy b { display: block; font-size: 12px; font-weight: 600; }
.garage-copy span { display: block; color: var(--sub); font-size: 8.5px; margin-top: 1px; }
.garage-copy .g-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.garage-copy .g-meta span { margin: 0; }
.garage-copy .g-meta b { font-family: var(--num); font-size: 11px; font-weight: 500; }
.empty-garage { padding: 22px 16px; border: 1px dashed var(--line-2); border-radius: 18px; text-align: center; color: var(--sub); font-size: 9.5px; }
.empty-garage .btn { margin-top: 9px; }
.achievements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ach-item { padding: 9px 4px; border-radius: 13px; background: #fff; border: 1px solid var(--line); text-align: center; opacity: .38; }
.ach-item.on { opacity: 1; }
.ach-icon { width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 9px; display: grid; place-items: center; background: #f7f4ef; color: var(--sub); }
.ach-item.on .ach-icon { background: #fff3e5; color: var(--orange); }
.ach-icon .ic { width: 14px; height: 14px; }
.ach-item b { display: block; font-size: 7.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-card { margin-top: 17px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-row .mr-icon { width: 30px; height: 30px; border-radius: 9px; background: #f8f5f0; display: grid; place-items: center; color: var(--sub); flex-shrink: 0; }
.menu-row .mr-icon .ic { width: 15px; height: 15px; }
.menu-row .mr-text { flex: 1; font-size: 11px; }
.menu-row .mr-text small { display: block; color: var(--muted); font-size: 8px; margin-top: 1px; }
.menu-row .ic-chevron { width: 12px; height: 12px; color: var(--muted); }
.switch { width: 38px; height: 22px; border-radius: 99px; background: #e4e0d9; position: relative; transition: .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.16); transition: .2s; }
.switch.on { background: var(--orange); }
.switch.on::after { transform: translateX(16px); }
.me-footer { text-align: center; color: var(--muted); font-size: 8px; line-height: 1.7; padding: 20px 0 2px; }

/* ============================= DELIVERY ============================= */
.delivery-page {
  position: relative;
  min-height: 100%;
  padding: calc(24px + var(--safe-top)) 16px calc(26px + var(--safe-bottom));
  background:
    radial-gradient(80% 55% at 50% 12%, rgba(255, 166, 102, .28), transparent 70%),
    linear-gradient(180deg, #fff9f3 0%, #f7f5f1 55%);
  text-align: center;
  overflow: hidden;
}
.delivery-page .eyebrow { letter-spacing: .22em; }
.delivery-page h1 { font-size: 40px; line-height: 1.02; letter-spacing: -.065em; font-weight: 800; margin-top: 8px; }
.delivery-page h1 em { font-style: normal; color: var(--orange); }
.delivery-sub { color: var(--sub); font-size: 9.5px; margin-top: 5px; }
.delivery-art { position: relative; height: 210px; margin: 4px -8px 0; }
.delivery-art svg { width: 108%; height: 100%; margin-left: -4%; filter: drop-shadow(0 26px 22px rgba(100,55,20,.16)); }
.delivery-art::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 13%; height: 10px; border-radius: 50%; background: rgba(100,55,20,.13); filter: blur(7px); }
.delivery-meta { display: flex; justify-content: center; gap: 10px; align-items: center; color: var(--sub); font-size: 8px; margin: 0 0 12px; }
.delivery-meta .line { width: 18px; height: 1px; background: var(--line-2); }
.delivery-meta b { color: var(--ink-2); font-weight: 500; }
.receipt { background: #fff; border: 1px solid var(--line); border-radius: 22px; text-align: left; overflow: hidden; box-shadow: 0 12px 34px rgba(80,60,35,.06); }
.receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.receipt-head .rh-title { display: flex; align-items: center; gap: 6px; color: var(--sub); font-size: 8.5px; }
.receipt-head .rh-title .ic { width: 13px; height: 13px; color: var(--orange); }
.receipt-head .rh-no { font-family: var(--num); color: var(--muted); font-size: 8px; }
.receipt-body { padding: 13px 15px; display: flex; flex-direction: column; gap: 5px; }
.receipt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; color: var(--sub); }
.receipt-row b { color: var(--ink-2); font-family: var(--num); font-weight: 500; }
.receipt-row b.green { color: var(--green); }
.receipt-score { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-top: 1px solid var(--line); background: #fffdf9; }
.grade-badge { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: #fff3e3; color: #c08323; font-family: var(--num); font-size: 24px; font-weight: 700; }
.grade-badge.s { background: #fff1ce; color: #b17b17; }
.grade-badge.b { background: #f5f2ed; color: #777; }
.grade-badge.c { background: #ffeded; color: #d05a5a; }
.grade-copy { flex: 1; text-align: left; }
.grade-copy b { display: block; font-size: 11px; }
.grade-copy p { color: var(--sub); font-size: 8.5px; line-height: 1.5; margin-top: 1px; }
.grade-score { text-align: right; }
.grade-score b { display: block; font-family: var(--num); font-size: 22px; font-weight: 600; line-height: 1; }
.grade-score span { color: var(--muted); font-size: 7px; letter-spacing: .12em; }
.delivery-actions { display: flex; gap: 8px; margin-top: 16px; }
.delivery-actions .btn { flex: 1; height: 44px; font-size: 11px; }
.delivery-note { color: var(--muted); font-size: 8px; margin-top: 12px; }

/* ============================= TOAST / CONFETTI ============================= */
.toast {
  position: absolute; z-index: 120; left: 50%; bottom: calc(80px + var(--safe-bottom));
  transform: translate(-50%, 12px);
  max-width: calc(100% - 36px);
  padding: 9px 15px;
  border-radius: 99px;
  background: rgba(27,27,29,.92);
  color: #fff;
  font-size: 10.5px; text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; color: #ffb27d; }
.confetti { position: absolute; inset: 0; z-index: 110; width: 100%; height: 100%; pointer-events: none; }

/* ============================= HELP / MISC ============================= */
.help-steps { display: flex; flex-direction: column; gap: 13px; }
.help-step { display: flex; gap: 10px; align-items: flex-start; }
.help-step .num { width: 24px; height: 24px; flex-shrink: 0; border-radius: 8px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; font-family: var(--num); font-size: 9px; }
.help-step b { display: block; font-size: 11px; font-weight: 600; }
.help-step p { color: var(--sub); font-size: 9px; line-height: 1.65; margin-top: 1px; }
.info-block { font-size: 9px; color: var(--sub); line-height: 1.7; }
.confirm-copy { font-size: 11px; color: var(--sub); line-height: 1.8; }
.fade-up { animation: fadeUp .35s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ============================= REAL CAR PHOTOS ============================= */
.onboarding-car .car-photo {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 24px 20px rgba(110, 65, 25, .16));
}
.hero-car { left: 6%; right: 6%; bottom: 52px; }
.hero-car .car-photo {
  width: 100%; height: auto;
  filter: drop-shadow(0 26px 20px rgba(100, 55, 18, .22));
  animation: carFloat 6s ease-in-out infinite;
}
.model-art .car-photo {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 16px 16px rgba(80, 55, 30, .16));
}
.mini-car-art .car-photo {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(80, 55, 30, .14));
}
.detail-car { left: 8%; right: 8%; bottom: 30px; height: 160px; }
.detail-car .car-photo {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 24px 20px rgba(105, 60, 25, .18));
}
.order-hero .oh-art .car-photo {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 16px 13px rgba(95, 50, 15, .16));
}
.delivery-art .car-photo {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 26px 22px rgba(100, 55, 20, .16));
}
.garage-art .car-photo,
.order-carline .oc-art .car-photo,
.completed-card .cc-art .car-photo {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(80, 55, 30, .12));
}

@media (max-width: 360px) {
  .hero-card { height: 330px; }
  .hero-copy h2 { font-size: 27px; }
  .hero-car { bottom: 56px; }
  .quick-icon { width: 39px; height: 39px; border-radius: 13px; }
  .quick-item span { font-size: 8.5px; }
  .greeting h1 { font-size: 24px; }
  .app { border-radius: 0; }
  .tab-item { font-size: 8px; }
  .tactic-grid { grid-template-columns: 1fr; }
  .achievements { grid-template-columns: repeat(4, 1fr); }
  .hero-cta .btn { padding: 0 11px; }
}

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