/* Apex — car marketplace (graphite + electric azure) */
:root {
  --bg-0: #070a0f;
  --bg-1: #0f1620;
  --glow: rgba(56, 132, 255, 0.30);
  --glow-2: rgba(45, 212, 191, 0.14);
  --accent: #3b82f6;
  --accent-2: #1d4ed8;
  --on-accent: #ffffff;
  --app-bg: #0b0e14;
  --app-bg-2: #141a24;
  --ink: #eef2f8;
  --muted: #8894a6;
  --line: rgba(255, 255, 255, 0.08);
  --card: #121822;
  --pos: #34d399;
}

.ax-head { padding: 6px 20px 4px; display: flex; align-items: center; justify-content: space-between; }
.ax-head .hi { font-size: 12.5px; color: var(--muted); }
.ax-head .h { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--ink); margin-top: 1px; }
.ax-ava { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #fff; font-weight: 800; }

.ax-search { margin: 12px 20px 4px; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.ax-search .gi { width: 19px; height: 19px; color: var(--muted); }
.ax-search .flt { margin-left: auto; color: var(--accent); display: grid; place-items: center; }
.ax-search .flt .gi { width: 18px; height: 18px; color: var(--accent); }

/* featured hero */
.feature { margin: 14px 20px 6px; border-radius: 24px; overflow: hidden; position: relative; cursor: pointer; border: 1px solid var(--line); }
.feature .img { height: 176px; position: relative; display: grid; place-items: center; }
.feature .img .gi { width: 128px; height: 90px; color: rgba(255,255,255,0.92); }
.feature .img .gi * { vector-effect: normal; stroke-width: 1.3; }
.feature .badge { position: absolute; top: 14px; left: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); color: #fff; padding: 6px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.feature .badge .gi { width: 13px; height: 13px; }
.feature .meta { background: var(--card); padding: 16px 18px; }
.feature .meta .row { display: flex; align-items: flex-end; justify-content: space-between; }
.feature .meta h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.feature .meta .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.feature .meta .price { font-size: 19px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.feature .specs { display: flex; gap: 8px; margin-top: 14px; }
.feature .specs .s { flex: 1; background: var(--app-bg-2); border-radius: 12px; padding: 9px; text-align: center; }
.feature .specs .s .gi { width: 17px; height: 17px; color: var(--accent); }
.feature .specs .s b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 3px; }
.feature .specs .s span { font-size: 9.5px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* section header */
.ax-sec { padding: 20px 20px 10px; display: flex; align-items: center; justify-content: space-between; }
.ax-sec h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); }
.ax-sec a { font-size: 12px; color: var(--accent); font-weight: 600; }

/* type chips */
.tchips { display: flex; gap: 9px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
.tchips::-webkit-scrollbar { display: none; }
.tchip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 9px 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tchip .gi { width: 16px; height: 16px; }
.tchip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* listing rows */
.lst { padding: 4px 20px 6px; display: flex; flex-direction: column; gap: 12px; }
.car-row { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; cursor: pointer; transition: transform 0.16s; }
.car-row:active { transform: scale(0.99); }
.car-row .thumb { width: 78px; height: 62px; border-radius: 13px; flex: 0 0 auto; display: grid; place-items: center; }
.car-row .thumb .gi { width: 58px; height: 42px; color: rgba(255,255,255,0.92); }
.car-row .thumb .gi * { vector-effect: normal; stroke-width: 1.4; }
.car-row .info { flex: 1; min-width: 0; }
.car-row .info h5 { font-size: 15px; color: var(--ink); font-weight: 700; }
.car-row .info .mt { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.car-row .info .mt i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); display: inline-block; }
.car-row .info .price { font-size: 15px; font-weight: 800; color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }
.car-row .fav { width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto; border: 1px solid var(--line); background: var(--app-bg-2); display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.car-row .fav .gi { width: 18px; height: 18px; }
.car-row .fav.on { color: #f43f6b; border-color: rgba(244,63,107,0.4); background: rgba(244,63,107,0.12); }

.empty { text-align: center; padding: 60px 34px; color: var(--muted); }
.empty .gi { width: 48px; height: 48px; color: var(--accent); }
.empty h4 { font-family: var(--font-display); font-size: 19px; color: var(--ink); margin: 14px 0 6px; font-weight: 600; }
.empty p { font-size: 13px; line-height: 1.55; }

.screen-h1 { font-family: var(--font-display); font-size: 25px; font-weight: 600; color: var(--ink); padding: 4px 20px 2px; }
.screen-sub { font-size: 12.5px; color: var(--muted); padding: 0 20px 8px; }

/* account */
.acc-prof { display: flex; align-items: center; gap: 14px; margin: 8px 20px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.acc-prof .av { width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px; }
.acc-prof h3 { font-size: 17px; color: var(--ink); font-weight: 700; }
.acc-prof p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.acc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 8px 20px; }
.acc-stats .st { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; text-align: center; }
.acc-stats .st b { font-size: 20px; color: var(--ink); font-weight: 800; }
.acc-stats .st span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.acc-menu { padding: 8px 20px 6px; display: flex; flex-direction: column; gap: 2px; }
.acc-menu .mrow { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.acc-menu .mrow .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--app-bg-2); display: grid; place-items: center; color: var(--accent); }
.acc-menu .mrow .ic .gi { width: 19px; height: 19px; }
.acc-menu .mrow h5 { flex: 1; font-size: 14px; color: var(--ink); font-weight: 600; }
.acc-menu .mrow .go { color: var(--muted); display: grid; place-items: center; }
.acc-menu .mrow .go .gi { width: 18px; height: 18px; }

/* detail sheet */
.sheet { background: var(--app-bg); }
.d-hero { height: 200px; border-radius: 22px; margin: 2px 0 14px; position: relative; display: grid; place-items: center; }
.d-hero .gi { width: 168px; height: 118px; color: rgba(255,255,255,0.95); }
.d-hero .gi * { vector-effect: normal; stroke-width: 1.25; }
.d-hero .pill { position: absolute; top: 14px; left: 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); color: #fff; padding: 6px 11px; border-radius: 999px; }
.d-hero .dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.d-hero .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.d-hero .dots i.on { background: #fff; width: 16px; border-radius: 3px; }
.d-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.d-title h2 { font-size: 22px; font-weight: 700; color: var(--ink); }
.d-title .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.d-title .price { font-size: 21px; font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin: 16px 0 4px; }
.spec-grid .sp { background: var(--app-bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; text-align: center; }
.spec-grid .sp .gi { width: 20px; height: 20px; color: var(--accent); }
.spec-grid .sp b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 5px; }
.spec-grid .sp span { font-size: 9.5px; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; }

.fin { margin: 18px 0 4px; background: var(--app-bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.fin .top { display: flex; align-items: baseline; justify-content: space-between; }
.fin .top .lbl { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fin .top .mo { font-size: 26px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.fin .top .mo small { font-size: 12px; color: var(--muted); font-weight: 600; }
.fin .dp { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 14px 0 4px; }
.fin .dp b { color: var(--ink); font-weight: 700; }
.fin .terms { display: flex; gap: 8px; margin-top: 14px; }
.fin .terms button { flex: 1; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 12px; padding: 10px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.fin .terms button.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.d-desc { font-size: 13px; line-height: 1.6; color: #aeb8c6; margin: 16px 0 10px; }

/* range slider */
.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 4px; background: var(--card); outline: none; margin: 6px 0 0; }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--app-bg); box-shadow: 0 4px 12px -2px var(--accent); cursor: pointer; }
.rng::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid var(--app-bg); border-radius: 50%; background: var(--accent); cursor: pointer; }

.d-fav { width: 52px; height: 52px; border-radius: 15px; flex: 0 0 auto; border: 1px solid var(--line); background: var(--app-bg-2); display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.d-fav .gi { width: 22px; height: 22px; }
.d-fav.on { color: #f43f6b; border-color: rgba(244,63,107,0.4); background: rgba(244,63,107,0.12); }

/* sell sheet */
.sell-hd { font-size: 13px; color: var(--muted); padding: 2px 0 12px; }
.opt-group { margin-bottom: 16px; }
.opt-group .lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.opt.sel { border-color: var(--accent); background: var(--accent); color: #fff; }
.estimate { margin: 6px 0 2px; background: linear-gradient(135deg, #12233f, #0c1526); border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-align: center; }
.estimate .k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.estimate .v { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--ink); margin-top: 5px; font-variant-numeric: tabular-nums; }
.estimate .r { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
