/* ── Design tokens ──────────────────────────────────────── */
:root {
  --orange:       #f97316;
  --orange-dark:  #ea580c;
  --orange-deep:  #c2410c;
  --orange-pale:  #fff7ed;
  --orange-soft:  #fed7aa;
  --green:        #16a34a;
  --green-soft:   #dcfce7;
  --red:          #dc2626;
  --red-soft:     #fee2e2;
  --blue:         #2563eb;
  --blue-soft:    #dbeafe;
  --purple-soft:  #f3e8ff;
  --purple:       #7c3aed;

  --bg:           #f5f4f0;
  --card:         #ffffff;
  --text:         #1c1917;
  --text-2:       #57534e;
  --muted:        #a8a29e;
  --border:       #e7e5e4;
  --hdr:          #1c1917;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 2px 8px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  --shadow-lg:    0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);

  --radius:       14px;
  --radius-sm:    8px;
  --radius-pill:  999px;
  --nav-h:        64px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ── App wrapper ────────────────────────────────────────── */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  position: relative;
  overflow-x: hidden;
}

/* ── Screens ────────────────────────────────────────────── */
.screen { display: none; animation: screenIn .18s ease; }
.screen.active { display: block; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ── Top header ─────────────────────────────────────────── */
.top-header {
  background: var(--hdr);
  padding: 18px 18px 20px;
  position: relative;
  overflow: hidden;
}
.top-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  opacity: 0.18;
  pointer-events: none;
}
.top-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.4px;
  position: relative;
}
.top-header p {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-top: 3px;
  position: relative;
}
.prog-row {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  position: relative;
}
.prog-dot {
  height: 4px;
  border-radius: 2px;
  flex: 1;
  background: rgba(255,255,255,.2);
  transition: background .25s;
}
.prog-dot.done { background: var(--orange); }

/* ── Search ─────────────────────────────────────────────── */
.search-wrap {
  background: var(--hdr);
  padding: 0 14px 16px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 11px 14px;
  backdrop-filter: blur(8px);
}
.search-bar svg {
  width: 16px; height: 16px;
  color: rgba(255,255,255,.45);
  flex-shrink: 0;
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
}
.search-bar input::placeholder { color: rgba(255,255,255,.38); }

/* ── Category chips ─────────────────────────────────────── */
.chip-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  color: var(--text-2);
  border: 1.5px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all .14s;
  -webkit-user-select: none;
}
.chip.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(249,115,22,.3);
}
.chip:active { transform: scale(.94); }

/* ── Section title ──────────────────────────────────────── */
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  padding: 10px 16px 6px;
  letter-spacing: .1px;
}

/* ── Food list / cards ──────────────────────────────────── */
.food-list {
  padding: 2px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.food-card {
  display: flex;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform .13s, box-shadow .13s;
}
.food-card:active {
  transform: scale(.985);
  box-shadow: var(--shadow-sm);
}
.food-thumb {
  width: 108px;
  min-height: 108px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  overflow: hidden;
}
.food-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.food-body {
  flex: 1;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.food-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.food-seller {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.food-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}
.food-rating {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.food-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: var(--green-soft);
  color: var(--green);
}
.food-badge.closed {
  background: var(--red-soft);
  color: var(--red);
}

/* ── Seller header ──────────────────────────────────────── */
.seller-header {
  background: var(--hdr);
  padding: 14px 16px 22px;
  position: relative;
  overflow: hidden;
}
.seller-header::before {
  content: '';
  position: absolute;
  bottom: -30px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  opacity: .15;
  pointer-events: none;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius-pill);
  padding: 7px 14px 7px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  margin-bottom: 14px;
  transition: background .14s;
  position: relative;
}
.back-btn svg { width: 16px; height: 16px; }
.back-btn:active { background: rgba(255,255,255,.22); }
.seller-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border: 3px solid rgba(255,255,255,.2);
  margin-bottom: 10px;
  position: relative;
}
.seller-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
  position: relative;
}
.seller-meta {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
  position: relative;
}
.seller-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  position: relative;
}
.seller-tag {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: rgba(249,115,22,.22);
  color: #fed7aa;
  border: 1px solid rgba(249,115,22,.3);
}

/* ── Menu list ──────────────────────────────────────────── */
.menu-list {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px 12px 10px 10px;
  box-shadow: var(--shadow-sm);
}
.menu-thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  overflow: hidden;
}
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-info { flex: 1; min-width: 0; }
.menu-name { font-size: 14px; font-weight: 700; color: var(--text); }
.menu-desc { font-size: 12px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.menu-price { font-size: 17px; font-weight: 800; color: var(--orange); flex-shrink: 0; }

.order-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 22px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .12s, filter .12s, opacity .12s;
  font-family: inherit;
  letter-spacing: .1px;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }

.btn-orange  { background: var(--orange); color: #fff; box-shadow: 0 2px 10px rgba(249,115,22,.3); }
.btn-orange:hover { filter: brightness(1.06); }
.btn-green   { background: var(--green);  color: #fff; }
.btn-muted   { background: var(--bg);     color: var(--text-2); border: 1.5px solid var(--border); box-shadow: none; }
.btn-outline { background: transparent;   color: var(--orange); border: 2px solid var(--orange); box-shadow: none; }

/* ── Forms ──────────────────────────────────────────────── */
.form-body {
  padding: 16px 16px 28px;
  display: flex;
  flex-direction: column;
}
.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  margin-top: 16px;
  display: block;
}
.form-label:first-child { margin-top: 0; }
.form-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.14);
}
.form-input::placeholder { color: var(--muted); }
.form-err {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  margin-top: 4px;
  display: none;
}
.form-err.show { display: block; }

/* ── Price banner ───────────────────────────────────────── */
.price-banner {
  background: linear-gradient(135deg, #7c3aed 0%, #c2410c 100%);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.price-big { font-size: 38px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.price-sub { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 3px; }

/* ── Payment toggle ─────────────────────────────────────── */
.pay-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.pay-opt {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  background: var(--card);
  transition: all .15s;
}
.pay-opt.active { border-color: var(--orange); background: var(--orange-pale); }
.pay-opt-icon  { font-size: 24px; margin-bottom: 5px; }
.pay-opt-label { font-size: 14px; font-weight: 700; color: var(--text); }
.pay-opt-sub   { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Voucher steps ──────────────────────────────────────── */
.vstep {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.vstep-num {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.vstep-title { font-size: 14px; font-weight: 700; color: var(--text); }
.vstep-sub   { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }

/* ── Terms row ──────────────────────────────────────────── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 4px;
}
.terms-row input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.terms-txt { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ── Success screen ─────────────────────────────────────── */
.success-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(22,163,74,.3);
}
.success-circle svg { width: 34px; height: 34px; color: #fff; }
.success-title {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  letter-spacing: -.4px;
  margin-bottom: 8px;
}
.success-sub {
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 20px;
}
.link-box {
  background: var(--orange-pale);
  border: 1.5px solid var(--orange-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-dark);
  text-align: center;
  margin-bottom: 14px;
  word-break: break-all;
}

/* ── Stats grid ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}
.stat-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -.8px;
  line-height: 1;
}
.stat-lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* ── Order cards ────────────────────────────────────────── */
.order-list {
  padding: 0 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.order-name  { font-size: 15px; font-weight: 700; color: var(--text); }
.order-time  { font-size: 12px; color: var(--muted); }
.order-items { font-size: 13px; color: var(--text-2); margin-bottom: 10px; line-height: 1.4; }
.order-bottom { display: flex; justify-content: space-between; align-items: center; }
.order-total { font-size: 17px; font-weight: 800; color: var(--text); }

/* Status pills */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}
.pill-new       { background: var(--blue-soft);  color: var(--blue); }
.pill-confirmed { background: var(--orange-pale); color: var(--orange-dark); }
.pill-ready     { background: var(--green-soft);  color: var(--green); }
.pill-collected { background: var(--border);      color: var(--muted); }
.pill-cancelled { background: var(--red-soft);    color: var(--red); }

/* ── Reply templates ────────────────────────────────────── */
.tpl-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}
.tpl-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.tpl-name { font-size: 14px; font-weight: 700; color: var(--text); }
.tpl-body {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  background: var(--bg);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.tpl-actions { display: flex; gap: 8px; }
.tpl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-2);
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  transition: opacity .12s;
}
.tpl-btn svg { width: 14px; height: 14px; }
.tpl-btn.copy {
  background: var(--orange-pale);
  color: var(--orange-dark);
  border-color: var(--orange-soft);
}
.tpl-btn:active { opacity: .7; }

/* Tag pills */
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tag-confirm     { background: var(--blue-soft);   color: var(--blue); }
.tag-ready       { background: var(--green-soft);  color: var(--green); }
.tag-unavailable { background: var(--red-soft);    color: var(--red); }
.tag-custom      { background: var(--purple-soft); color: var(--purple); }

/* ── Bottom navigation ──────────────────────────────────── */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-top: 1px solid rgba(0,0,0,.07);
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  font-family: inherit;
  letter-spacing: .3px;
  transition: color .14s;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--orange); }

/* ── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1c1917;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 200;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Spinner ────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 36px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 36px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Divider ────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ── Utilities ──────────────────────────────────────────── */
.hidden  { display: none !important; }
.p14     { padding: 14px; }
.mt8     { margin-top: 8px; }
.mt14    { margin-top: 14px; }
.mb10    { margin-bottom: 10px; }

/* ── Signup cancel row ──────────────────────────────────── */
.screen-close-row {
  background: var(--hdr);
  padding: 12px 16px 0;
}
.screen-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  transition: color .14s;
}
.screen-close-btn svg { width: 16px; height: 16px; }
.screen-close-btn:active { color: #fff; }

/* ── Dashboard quick actions ────────────────────────────── */
.dash-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 14px;
}
.dash-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color .14s, background .14s;
}
.dash-action-btn:active {
  background: var(--orange-pale);
  border-color: var(--orange-soft);
  color: var(--orange-dark);
}
.dash-action-icon { font-size: 22px; }

/* ── Tab bar ────────────────────────────────────────────── */
.tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border-bottom: 1.5px solid var(--border);
}
.tab-btn {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, border-color .15s;
  letter-spacing: .1px;
}
.tab-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ── Menu item manage cards ─────────────────────────────── */
.mi-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: opacity .2s;
}
.mi-card.unavailable { opacity: .52; }
.mi-info { flex: 1; min-width: 0; }
.mi-card-name  { font-size: 14px; font-weight: 700; color: var(--text); }
.mi-card-desc  { font-size: 12px; color: var(--text-2); margin-top: 2px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-card-price { font-size: 15px; font-weight: 800; color: var(--orange); margin-top: 3px; }
.mi-card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Availability toggle */
.mi-toggle {
  width: 40px; height: 23px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--border);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.mi-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: left .2s;
}
.mi-toggle.on              { background: var(--green); }
.mi-toggle.on::after       { left: 19px; }

/* Icon action buttons */
.mi-action-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: background .13s;
}
.mi-action-btn svg { width: 15px; height: 15px; }
.mi-action-btn:active { background: var(--border); }
.mi-action-btn.del            { color: var(--red); }
.mi-action-btn.del:active     { background: var(--red-soft); }
