/* ============================================================
   DECLUTTER NG — design tokens & base styles
   Palette: deep green + white
   ============================================================ */

:root {
  --color-primary: #166B4A;
  --color-primary-dark: #0F4A32;
  --color-primary-soft: #E3F0E9;
  --color-accent: #22A06B;
  --color-accent-soft: #E4F6EE;
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-ink: #1F2937;
  --color-ink-soft: #6B7280;
  --color-line: #E4E9E6;
  --color-danger: #C2410C;
  --color-success: #15803D;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(31, 41, 55, .06), 0 4px 14px rgba(31, 41, 55, .06);
  --shadow-float: 0 8px 30px rgba(15, 74, 50, .18);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --tabbar-h: 64px;
  --topbar-h: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: #E9EFEC;
  color: var(--color-ink);
  min-height: 100vh;
}

/* Phone frame on desktop, full-bleed on mobile */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0,0,0,.12);
}
@media (min-width: 520px) {
  body { padding: 24px 0; }
  #app { min-height: calc(100vh - 48px); border-radius: 28px; overflow: hidden; }
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--color-primary);
  color: #fff;
}
.topbar .brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .4px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.topbar .brand svg { width: 26px; height: 26px; }
.topbar .brand em { font-style: normal; color: var(--color-accent); }
.topbar .spacer { flex: 1; }
.topbar .icon-btn {
  width: 38px; height: 38px;
  border: none; background: rgba(255,255,255,.12);
  border-radius: var(--radius-pill);
  color: #fff; font-size: 17px;
  cursor: pointer;
  display: grid; place-items: center;
}
.topbar .icon-btn:active { background: rgba(255,255,255,.25); }

/* ---------- View ---------- */
.view {
  flex: 1;
  padding: 16px 16px calc(var(--tabbar-h) + 24px);
  overflow-y: auto;
}

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  z-index: 20;
}
.tab {
  flex: 1;
  border: none; background: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  font-size: 11px; font-weight: 600;
  color: var(--color-ink-soft);
  cursor: pointer;
  text-decoration: none;
}
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--color-primary); }
.tab.sell {
  color: var(--color-accent);
}
.tab.sell .fab {
  width: 46px; height: 46px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-primary-dark);
  display: grid; place-items: center;
  margin-top: -22px;
  box-shadow: var(--shadow-float);
  border: 3px solid var(--color-bg);
}
.tab.sell .fab svg { width: 24px; height: 24px; }

/* ---------- Typography helpers ---------- */
h1 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
h2 { font-size: 17px; font-weight: 700; }
.muted { color: var(--color-ink-soft); }
.small { font-size: 13px; }
.price { font-weight: 800; color: var(--color-primary-dark); }
.price .naira { font-size: .72em; font-weight: 700; }

/* ---------- Search ---------- */
.search-wrap {
  position: relative;
  margin-bottom: 14px;
}
.search-wrap input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 15px;
  color: var(--color-ink);
  outline: none;
}
.search-wrap input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.search-wrap .icon {
  position: absolute; left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--color-ink-soft);
  pointer-events: none;
}

/* ---------- Chips ---------- */
.chips {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex; align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  font-size: 13px; font-weight: 600;
  color: var(--color-ink-soft);
  cursor: pointer;
}
.chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ---------- Listing grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .12s ease;
}
.card:active { transform: scale(.98); }
.card .thumb {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  font-size: 44px;
  position: relative;
}
.card .thumb .cond {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(255,255,255,.92);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--color-ink-soft);
}
.card .body { padding: 10px 12px 12px; }
.card .title {
  font-size: 13.5px; font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta { margin-top: 6px; display: flex; justify-content: space-between; align-items: center; }
.card .loc { font-size: 11px; color: var(--color-ink-soft); }

/* ---------- Section headers ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 20px 0 12px;
}
.section-head h2 { font-size: 16px; }
.section-head a { font-size: 13px; font-weight: 600; color: var(--color-primary); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 22px 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -30px; top: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(34, 160, 107, .18);
}
.hero h1 { font-size: 20px; margin-bottom: 6px; }
.hero p { font-size: 13.5px; opacity: .85; max-width: 240px; }
.hero .cta {
  display: inline-block;
  margin-top: 14px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 700; font-size: 13.5px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none; cursor: pointer;
}

/* ---------- Detail page ---------- */
.detail-hero {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  font-size: 90px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.detail-title { font-size: 20px; font-weight: 800; margin: 4px 0 8px; }
.detail-price { font-size: 24px; margin-bottom: 14px; }
.detail-price .naira { font-size: 15px; }
.kv { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.kv .row { display: flex; justify-content: space-between; font-size: 14px; }
.kv .row span:first-child { color: var(--color-ink-soft); }
.desc {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 14px; line-height: 1.55;
  color: var(--color-ink);
  box-shadow: var(--shadow-card);
  margin: 16px 0;
}
.seller-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
  flex: none;
}
.seller-card .name { font-weight: 700; font-size: 14.5px; }
.seller-card .sub { font-size: 12px; color: var(--color-ink-soft); }
.seller-card .spacer { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border: none; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-accent { background: var(--color-accent); color: var(--color-primary-dark); }
.btn-ghost {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; margin-top: 14px; }
.btn-row .btn { flex: 1; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px; font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 15px;
  font-family: var(--font);
  color: var(--color-ink);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { font-size: 12px; color: var(--color-ink-soft); margin-top: 5px; }
.field .error { font-size: 12px; color: var(--color-danger); margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--color-danger); }
.field.invalid .error { display: block; }

/* ---------- States ---------- */
.state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-ink-soft);
}
.state .emoji { font-size: 44px; margin-bottom: 12px; }
.state h3 { color: var(--color-ink); font-size: 16px; margin-bottom: 6px; }
.state p { font-size: 13.5px; max-width: 260px; margin: 0 auto 16px; }
.skeleton {
  background: linear-gradient(90deg, #EDF1EE 25%, #F7FAF8 50%, #EDF1EE 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Messages ---------- */
.chat-list .chat-item {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-line);
  text-decoration: none; color: inherit;
}
.chat-item .last { font-size: 13px; color: var(--color-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.thread {
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 90px;
}
.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px; line-height: 1.45;
}
.bubble.me {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble.them {
  align-self: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-bottom-left-radius: 6px;
}
.bubble .time { display: block; font-size: 10.5px; opacity: .65; margin-top: 4px; }
.composer {
  position: fixed;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px);
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  padding: 0 16px;
  display: flex; gap: 8px;
}
#app.no-tab .composer { bottom: calc(env(safe-area-inset-bottom) + 12px); }
.composer input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 15px; outline: none;
}
.composer button {
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 18px; cursor: pointer;
  flex: none;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--tabbar-h) + 20px);
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--color-ink);
  color: #fff;
  font-size: 13.5px; font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 50;
  max-width: 90%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--color-line); margin: 18px 0; border: none; }
.order-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}
.badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: .4px;
}
.badge.pending { background: var(--color-accent-soft); color: #0F4A32; }
.badge.done { background: var(--color-primary-soft); color: var(--color-primary); }
.badge.cancelled { background: #FDE8E8; color: var(--color-danger); }
/* ---------- Photo gallery ---------- */
.gallery { margin-bottom: 16px; }
.gallery .main {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  font-size: 96px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.gallery .main .slide-count {
  position: absolute;
  bottom: 10px; right: 12px;
  background: rgba(31,41,55,.55);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.gallery .thumbs {
  display: flex; gap: 8px;
  margin-top: 10px;
}
.gallery .thumbs button {
  flex: 1;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 30px;
  padding: 0;
}
.gallery .thumbs button.active { border-color: var(--color-primary); }

/* ---------- Card seller row ---------- */
.card .seller-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-line);
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: var(--color-ink-soft);
}
.card .seller-row .avatar-mini {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-grid; place-items: center;
  font-size: 10px; font-weight: 800;
  flex: none;
}
.card .seller-row .loc { margin-left: auto; }

/* ---------- Condition badge colors ---------- */
.cond {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.cond-new       { background: #D5F5E3; color: var(--color-success); }
.cond-like-new  { background: var(--color-primary-soft); color: var(--color-primary); }
.cond-good      { background: var(--color-accent-soft); color: #0F4A32; }
.cond-fair      { background: #FDE8E8; color: var(--color-danger); }

/* ---------- Detail extras ---------- */
.detail-brand {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.spec-grid .spec {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
}
.spec-grid .spec .k { font-size: 11px; color: var(--color-ink-soft); text-transform: uppercase; letter-spacing: .5px; }
.spec-grid .spec .v { font-size: 15px; font-weight: 700; margin-top: 3px; }

/* ---------- Error state ---------- */
.state.error .emoji { filter: grayscale(.4); }
.state .btn { max-width: 220px; margin: 0 auto; }

/* ---------- Filter bottom sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 40, 30, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 40;
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translate(-50%, 100%);
  width: 100%; max-width: 480px;
  max-height: 82vh;
  background: var(--color-bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 41;
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.32,.72,.35,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,.2);
}
.sheet.show { transform: translate(-50%, 0); }
.sheet-handle {
  width: 44px; height: 5px;
  border-radius: var(--radius-pill);
  background: var(--color-line);
  margin: 10px auto 0;
  flex: none;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 8px;
}
.sheet-head h2 { font-size: 18px; }
.sheet-body { overflow-y: auto; padding: 4px 18px 12px; }
.sheet-foot {
  display: flex; gap: 10px;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  flex: none;
}
#filterBadge { font-weight: 700; color: var(--color-primary); }
.chip svg { width: 12px; height: 12px; vertical-align: -1px; }

/* ---------- Sell flow ---------- */
.photo-row {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.photo-slot {
  position: relative;
  flex: none;
  width: 84px; height: 84px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  border: 1px solid var(--color-line);
}
.photo-slot.add {
  border: 2px dashed var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink-soft);
  cursor: pointer;
  font-weight: 700;
}
.photo-slot .cover-tag {
  position: absolute;
  bottom: 4px; left: 4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.photo-slot .photo-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border: none; border-radius: 50%;
  background: rgba(31,41,55,.65);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  display: grid; place-items: center;
  padding: 0;
}
.draft-banner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--color-accent-soft);
  border: 1px solid #BFE3D3;
  color: #0F4A32;
  font-size: 13px; font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.link-btn {
  border: none; background: none;
  color: #0F4A32;
  font-weight: 700; font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- Auth ---------- */
.signin-link {
  color: #fff;
  font-size: 13.5px; font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14);
}
.auth-card {
  max-width: 380px;
  margin: 24px auto 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
}
.auth-logo { width: 52px; height: 52px; margin-bottom: 14px; }
.auth-card h1 { font-size: 21px; margin-bottom: 4px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: var(--color-ink-soft);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--color-line);
}

/* ---------- Profile ---------- */
.profile-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.review-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 10px;
}
.review-card p { font-size: 13.5px; margin: 6px 0; color: var(--color-ink); }
.review-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.review-head .stars { color: var(--color-accent); font-size: 13px; letter-spacing: 1px; }

/* ---------- Safety ---------- */
.safety-row {
  display: flex; gap: 8px;
  margin-bottom: 12px;
}
.safety-btn {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 12px; font-weight: 600;
  color: var(--color-ink-soft);
  cursor: pointer;
}
.safety-btn:active { background: var(--color-bg); }
.safety-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #FDE8E8;
  border: 1px solid #F5C6C6;
  color: var(--color-danger);
  font-size: 13px; font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.safety-banner .link-btn { color: var(--color-danger); }

/* ---------- Checkout & orders ---------- */
.checkout-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}
.checkout-h {
  font-size: 15px; font-weight: 800;
  margin: 18px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.checkout-h::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }
.chip-row-static { display: flex; gap: 8px; }
.notice-sim {
  background: var(--color-accent-soft);
  border: 1px solid #BFE3D3;
  color: #0F4A32;
  font-size: 12.5px; font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.summary-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.summary-card .row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; padding: 6px 0;
}
.summary-card .row.total {
  border-top: 1px solid var(--color-line);
  margin-top: 6px; padding-top: 12px;
  font-weight: 800; font-size: 16px;
  color: var(--color-primary-dark);
}
.order-hero { text-align: center; padding: 10px 0 4px; }
.timeline { padding-left: 8px; }
.timeline-item {
  display: flex; gap: 12px;
  padding-bottom: 18px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 7px; top: 18px; bottom: -4px;
  width: 2px; background: var(--color-line);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  flex: none;
  margin-top: 2px;
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}
.timeline-item:last-child .timeline-dot { background: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-soft); }

.empty-photo {
  width: 100%; aspect-ratio: 4/3;
  border: 2px dashed var(--color-line);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  color: var(--color-ink-soft);
  font-size: 14px;
  background: var(--color-surface);
  cursor: pointer;
}
