/* Admin app: phone-first, big tap targets, used by the owner on the go */

* { box-sizing: border-box; }

/* UX pass (22 Nov 2026): ONE calm main colour (deep green = trust, money, "go").
   Red is only for real problems, amber for "have a look", green for done. */
:root {
  --brand: #1f6f50; --brand-dark: #154d38; --brand-soft: #e8f3ee;
  --danger: #b42318; --danger-soft: #fdecea; --warn: #b54708; --warn-soft: #fff4e5;
  --ink: #1d2420; --ink-soft: #5b6660; --line: #e3e8e5; --bg: #f4f6f5;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f3f4f6;
  color: #222;
}

[hidden] { display: none !important; }

.card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 12px;
}

/* Login */
.login-card { max-width: 380px; margin: 15vh auto 0; }
.login-card h1 { margin-top: 0; text-align: center; color: var(--brand); }
.credit { margin: 18px 0 0; text-align: center; font-size: 0.8rem; color: #8a8f99; }

label { display: block; font-size: 0.9rem; color: #555; margin-bottom: 12px; }
input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  font-size: 1rem;          /* 16px+ stops iPhones from zooming into the field */
  border: 1px solid #ccc;
  border-radius: 8px;
}

button { font-size: 1rem; cursor: pointer; }
button:disabled { opacity: 0.6; cursor: wait; }

.primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: white;
}

.link-button { background: none; border: none; color: white; text-decoration: underline; }

.message { min-height: 1.2em; margin: 8px 0 0; font-size: 0.9rem; }
.message.error { color: #b91c1c; }
.message.success { color: #15803d; }

/* Dashboard */
.admin-header {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--brand); color: white;
  padding: 12px 16px;
}
.admin-header h1 { margin: 0; font-size: 1.15rem; }

main { padding: 16px; max-width: 700px; margin: 0 auto; }
h2 { font-size: 1.05rem; margin: 20px 0 10px; }

.add-card summary { font-weight: bold; cursor: pointer; }
.add-card form { margin-top: 12px; }

.row { display: flex; gap: 10px; }
.row label { flex: 1; }

.product-card.inactive { opacity: 0.6; }
.product-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.product-card .title { font-weight: bold; }
.badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: #eee; }
.badge.sold-out { background: #fee2e2; color: #b91c1c; }
.badge.low { background: #ffedd5; color: #c2410c; }

.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; margin: 0; }

/* Photo on each product card */
.photo-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.photo-preview {
  width: 84px; height: 84px; flex-shrink: 0;
  border-radius: 8px; background: #eee; color: #888; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-button {
  display: inline-block; margin: 0;
  padding: 10px 14px; border: 1px solid var(--brand); border-radius: 8px;
  color: var(--brand); cursor: pointer;
}
.photo-button.busy { opacity: 0.5; pointer-events: none; }   /* no double uploads */

/* ---------- Tabs ---------- */
.tabs {
  position: sticky; top: 46px; z-index: 1;
  display: flex; background: white; border-bottom: 1px solid #ddd;
}
.tab {
  flex: 1; padding: 12px; border: none; background: none;
  border-bottom: 3px solid transparent; color: #555;
}
.tab.active { border-bottom-color: var(--brand); color: var(--brand); font-weight: bold; }
.tab-badge {
  display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px;
  border-radius: 999px; background: #dc2626; color: white; font-size: 0.75rem;
}

/* ---------- Order filters ---------- */
.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 4px; }
.filter {
  flex-shrink: 0; padding: 8px 12px; border-radius: 999px;
  border: 1px solid #ccc; background: white; font-size: 0.9rem;
}
.filter.active { background: var(--brand); border-color: var(--brand); color: white; }

/* ---------- Order card ---------- */
.order-card { border-left: 4px solid #ccc; }
.order-card.status-new { border-left-color: #2563eb; }
.order-card.status-confirmed { border-left-color: #16a34a; }
.order-card.status-shipped { border-left-color: #ea580c; }
.order-card.status-delivered { border-left-color: #6b7280; }
.order-card.status-cancelled { border-left-color: #dc2626; opacity: 0.75; }

.order-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.order-time { margin-left: auto; color: #888; font-size: 0.85rem; }
.order-customer { line-height: 1.6; margin-bottom: 8px; }
.customer-name { font-weight: bold; font-size: 1.05rem; }
.order-map a { color: #1d4ed8; font-weight: 600; }
.map-accuracy { color: #555; font-size: 0.85rem; }
.map-accuracy.rough { color: #c2410c; }
.order-note { background: #fefce8; padding: 6px 8px; border-radius: 6px; margin-top: 4px; }

.order-items { list-style: none; padding: 0; margin: 0 0 10px; border-top: 1px solid #eee; }
.order-items li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f3f3f3; }
.order-total { font-size: 1.05rem; }

.order-actions { display: flex; gap: 8px; margin-top: 10px; }
.order-actions .primary { flex: 2; }
.secondary {
  flex: 1; padding: 12px; border-radius: 8px;
  border: 1px solid #ccc; background: white; color: #444;
}

/* ---------- Contact ---------- */
.message-buttons { background: #f0fdf4; border-radius: 8px; padding: 10px; margin: 8px 0; }
.hint { margin: 0 0 8px; font-size: 0.9rem; font-weight: 600; }
.contact-row { display: flex; gap: 6px; }
.contact {
  flex: 1; text-align: center; padding: 12px 4px; border-radius: 8px;
  color: white; text-decoration: none; font-size: 0.95rem;
}
.contact.sms { background: #2563eb; }
.contact.whatsapp { background: #16a34a; }
.contact.viber { background: #7c3aed; }
.template-preview { font-size: 0.8rem; color: #555; margin: 8px 0 0; font-style: italic; }
.call-link { display: inline-block; margin: 4px 0; color: var(--brand); font-size: 0.9rem; }
#dashboard-message:empty { min-height: 0; margin: 0; }   /* no gap when there is nothing to say */

/* ---------- Product card extras ---------- */
select, textarea {
  display: block; width: 100%; margin-top: 4px;
  padding: 12px; font-size: 1rem; font-family: inherit;
  border: 1px solid #ccc; border-radius: 8px; background: white;
}

/* ---------- Shop tab ---------- */
.card-title { margin: 0 0 12px; font-size: 1.05rem; }
.no-price-warning { margin: 0 0 8px; padding: 6px 8px; border-radius: 6px; background: #fff7ed; color: #9a3412; font-size: 0.9rem; }
.hint-text { font-size: 0.85rem; color: #666; margin: 8px 0; }

.banner-preview {
  position: relative;
  height: 120px; border-radius: 8px; overflow: hidden;
  display: flex; align-items: flex-end;
  color: white;
}
.banner-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-preview span {
  position: relative; padding: 10px 12px;
  font-size: 1.4rem; font-weight: 800;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.banner-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.color-label { display: flex; align-items: center; justify-content: space-between; }
.color-label input[type=color] { width: 64px; height: 44px; padding: 2px; margin: 0; }

.category-list { list-style: none; padding: 0; margin: 0 0 12px; }
.category-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #eee;
}
.link-danger { background: none; border: none; color: #b91c1c; text-decoration: underline; padding: 6px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; margin: 0; }
.inline-form .secondary { flex: 0 0 auto; }

/* ---------- Low-stock alert ---------- */
.tab-badge.warn { background: #ea580c; }
.stock-alert {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin-bottom: 12px; padding: 12px 14px;
  border-radius: 10px; border-left: 4px solid #ea580c;
  background: #fff7ed; color: #7c2d12; font-size: 0.92rem;
}
.stock-alert strong { width: 100%; font-size: 1rem; }
.link-button-dark { background: none; border: none; padding: 0; color: var(--brand-dark); font-weight: bold; text-decoration: underline; }

/* ---------- QR on order cards ---------- */
.qr-check {
  margin: 4px 0 8px; padding: 10px 12px;
  border-radius: 8px; background: #eff6ff; color: #1e3a8a; font-size: 0.92rem;
}

/* ---------- Payment settings ---------- */
.qr-settings { display: flex; gap: 14px; align-items: center; margin: 10px 0 14px; }
.qr-preview {
  width: 110px; height: 110px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed #bbb; border-radius: 8px; background: white;
  color: #888; font-size: 0.8rem; overflow: hidden;
}
.qr-preview img { width: 100%; height: 100%; object-fit: contain; }
#template-form textarea { margin-bottom: 4px; }
/* Three tabs on a narrow phone: keep each label and its badge on one line */
.tab { white-space: nowrap; padding: 12px 4px; font-size: 0.95rem; }

/* Opening hours: the seven day boxes wrap on small phones */
.closed-days { border: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.closed-days legend { font-weight: 600; margin-bottom: 6px; padding: 0; }

/* "Forgot password?": a quiet link under the login button */
.text-link { display: block; margin: 12px auto 0; padding: 4px; border: none; background: none; color: var(--brand-dark); text-decoration: underline; font-size: 0.95rem; }
.forgot-card { margin-top: 12px; }
.screen a { color: var(--brand-dark); }

/* Subidha plan line (plan.js): calm when paid, clear when due, strong when paused */
.plan-banner { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #eef3f9; color: #1e2f45; font-size: 0.92rem; }
.plan-banner.due_soon { background: #fff7ed; color: #7c2d12; }
.plan-banner.overdue, .plan-banner.paused { background: #fef2f2; color: #7f1d1d; }
.plan-banner strong { display: block; margin-bottom: 2px; }
.plan-banner .pay { margin: 6px 0 0; white-space: pre-wrap; }


/* ---------- "Put Shop Admin on your phone" bar (install-admin.js) ---------- */
.admin-install-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #fff7ed; border-bottom: 1px solid #fed7aa;
}
.admin-install-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; font-size: 0.92rem; min-width: 0; }
.admin-install-button { width: auto; margin: 0; padding: 8px 16px; white-space: nowrap; }
.admin-install-close { border: none; background: none; font-size: 1.1rem; padding: 6px; color: #555; }


/* ---------- Order alerts card (alerts.js) ---------- */
.alerts-card { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; }
.alerts-card.on { background: #ecfdf3; border-color: #bbf7d0; padding: 8px 14px; }
.alerts-card.blocked, .alerts-card.unsupported { background: #f3f4f6; border-color: #e5e7eb; }
.alerts-text { margin: 0; font-size: 0.95rem; line-height: 1.4; }
.alerts-buttons { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.alerts-buttons:has(button:not([hidden])) { margin-top: 8px; }
.alerts-button { width: auto; padding: 10px 18px; margin: 0; }
.alerts-link { font-size: 0.92rem; color: var(--brand); text-decoration: underline; background: none; border: none; padding: 4px 0; font-weight: 600; }


/* ---------- Delivery set-up (/js/delivery-setup.js): Shop Admin AND the control screen ---------- */
.delivery-setup .box-group, .card .box-group { border: 1px solid #e3e6ea; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.box-group legend { font-size: 0.9rem; color: #555; padding: 0 4px; }
.box-group .check { margin-bottom: 8px; }
.time-row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.time-row label { flex: 1 1 140px; }
.time-row input { width: 100%; }
.list-row-buttons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.secondary.small { padding: 8px 14px; width: auto; }
.rule-preview-box { margin: 4px 0 12px; }
.delivery-status { background: #f4f7fb; border-radius: 8px; padding: 8px 10px; }
.fee-table { border-collapse: collapse; width: 100%; max-width: 360px; font-size: 0.95rem; }
.fee-table th, .fee-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid #eef0f3; }
.fee-table td:last-child { font-weight: 600; }
.warn-text { color: #9a3412; }
.skip-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; margin-bottom: 8px; }
.skip-row select, .skip-row input { margin: 0; }
.skip-row .ward-label { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.skip-row .wards-input { width: 90px; }
.today-limit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.today-limit .check { margin: 0; }
.today-limit input[type=number] { width: 80px; margin: 0; }
.ask-place summary { cursor: pointer; color: var(--brand-dark); font-weight: 600; margin: 4px 0 8px; }
.admin-only { border-left: 4px solid var(--brand-dark); }
@media (max-width: 420px) { .skip-row { grid-template-columns: 1fr; } }

/* 🧭 Go online guide (guide.js, 037) */
.guide-card { border-left: 4px solid var(--brand-dark); }
.guide-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.guide-head .card-title { margin: 0; }
.guide-head-buttons { display: flex; gap: 8px; align-items: center; }
.guide-bar { height: 8px; background: #e3e6ea; border-radius: 99px; overflow: hidden; margin: 4px 0 10px; }
.guide-bar span { display: block; height: 100%; background: #16a34a; border-radius: 99px; transition: width .3s; }
.guide-steps { list-style: none; padding: 0; margin: 0; }
.guide-step { border-top: 1px solid #eef0f2; padding: 8px 0; }
.guide-step summary { cursor: pointer; font-weight: 600; }
.guide-step.done summary { color: #6b7280; font-weight: normal; }
.guide-step .list-row-buttons { flex-wrap: wrap; margin-top: 6px; }
.button-link { display: inline-block; text-decoration: none; text-align: center; }

/* 📤 Share sheet (share.js, 2b) */
.share-button { margin-left: auto; }
.share-sheet { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.share-panel { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; margin: 0; border-radius: 16px 16px 0 0; }
.share-preview { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 10px; background: #f3f4f6; }
.share-caption { white-space: pre-wrap; background: #f9fafb; padding: 8px 10px; border-radius: 8px; }

/* ⚡ Quick prices (quick-prices.js, 2c) */
.quick-list { display: grid; gap: 6px; margin: 8px 0 12px; }
.quick-row { display: grid; grid-template-columns: 1fr 7.5rem 6.5rem; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: #f9fafb; }
.quick-row.changed { background: #fef9c3; }
.quick-row.row-off { opacity: .6; }
.quick-row label { display: flex; align-items: center; gap: 4px; margin: 0; font-size: .85rem; }
.quick-row input { width: 100%; min-width: 0; }
.quick-name { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 420px) { .quick-row { grid-template-columns: 1fr 1fr; } .quick-name { grid-column: 1 / -1; } }

/* 🖨️ QR card (qr-card.js) */
.qr-preview { display: block; width: 100%; max-width: 240px; margin: 0 auto 12px; border: 1px solid #e5e7eb; border-radius: 8px; }

/* 📞 Phone for buyers form (/js/shop-contact.js, 039) — Shop Admin + control room */
.shop-contact-form label { display: block; margin-bottom: 10px; }
.check-row { display: flex; gap: 8px; align-items: center; }
.check-row input { width: auto; margin: 0; }
.shop-contact-form .form-message { margin-left: 8px; }

/* 🧪 Test shops (previews.js, 040): features wait hidden until we know this shop may see them */
body:not(.features-ready) [data-feature] { display: none !important; }

/* 🏠 Home + 🧭 Go online in 5 steps (guide.js, 044) */
.home-orders { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-left: 4px solid #16a34a; }
.guide-dream { font-size: 1.05rem; margin: 6px 0 10px; }
.guide-sub { margin: 18px 0 4px; }
.guide-why { margin: 6px 0; padding: 8px 10px; background: #f3f7ee; border-radius: 8px; }
.guide-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
             background: var(--brand-dark); color: #fff; font-size: 0.85rem; margin-right: 4px; }
.guide-step.done .guide-num { background: #16a34a; }
.guide-step.done summary { color: #5b6470; }
.guide-done { margin-top: 14px; }
.guide-focus-bar { position: sticky; top: 0; z-index: 6; background: #fff8e6; border: 1px solid #f0c75e;
                   border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.guide-focus-bar p { margin: 4px 0 8px; }
/* Focus view: only the cards for this step */
body.guide-focus #shop-section > :not(.guide-target):not(.guide-focus-bar),
body.guide-focus #products-section > :not(.guide-target):not(.guide-focus-bar) { display: none !important; }
body.guide-focus .guide-target { outline: 3px solid #f0c75e; outline-offset: 2px; }
/* 🏪 Shop tab groups */
.group-title { margin: 18px 4px 8px; font-size: 1rem; color: var(--brand-dark); }
.more-settings > summary { cursor: pointer; font-weight: 600; }

/* 👋 Seller welcome (welcome.js, 045): one card, nothing else on screen */
body.welcoming nav.tabs, body.welcoming main > section:not(#welcome-screen), body.welcoming #plan-banner { display: none !important; }
.welcome-card { background: #fff; border-radius: 16px; padding: 22px 18px; margin: 12px 0; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.welcome-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.welcome-dots span { flex: 1; height: 5px; border-radius: 9px; background: #e3e6ea; }
.welcome-dots span.on { background: #16a34a; }
.welcome-title { margin: 0 0 8px; font-size: 1.5rem; }
.welcome-big { font-size: 1.15rem; font-weight: 600; margin: 8px 0; }
.welcome-dream { background: #f3f7ee; border-radius: 10px; padding: 10px 12px; }
.welcome-go { width: 100%; margin-top: 14px; font-size: 1.05rem; }
.welcome-skip { display: block; margin: 12px auto 0; }
.welcome-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.welcome-choice { padding: 12px 8px; border-radius: 10px; border: 1px solid #d6dae0; background: #fff; font: inherit; }
.welcome-choice.picked { border: 2px solid #16a34a; background: #eef8f0; font-weight: 600; }
.welcome-tick { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 1.05rem; }
.welcome-tick input { width: auto; transform: scale(1.3); }
.welcome-link { word-break: break-all; font-weight: 600; background: #f5f6f8; padding: 8px 10px; border-radius: 8px; }

/* 👀 View my shop (header) */
/* 👀 View my shop: a clear white button in the red header, easy to find */
.view-shop-link { margin-left: auto; margin-right: 10px; font-weight: 700; white-space: nowrap;
                  background: #fff; color: var(--brand); padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.view-shop-link[hidden] { display: none; }

/* 🔴 Offline shop: Shop Admin locked (previews.js, 046) */
body.shop-blocked nav.tabs, body.shop-blocked #view-shop,
body.shop-blocked main > :not(#offline-banner) { display: none !important; }
.offline-lock { background: #fdecec; border: 1px solid #f3b4b4; color: #8a1c1c; border-radius: 12px;
                padding: 18px 16px; margin: 16px 0; font-size: 1.05rem; line-height: 1.5; text-align: center; }
#refresh-button { margin-right: 8px; font-size: 1.1rem; }

/* ✅ Confirm sheet (orders.js, Phase 4b) */
.confirm-sheet { background: #f6f8fa; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.confirm-sheet h3 { margin: 0 0 6px; font-size: 1rem; }
.confirm-sheet label { display: block; margin: 6px 0; }

/* 🏪 Seller's first screen (login screen) */
.start-card h1 { margin: 0 0 4px; font-size: 1.5rem; }
.start-ne { margin: 0 0 10px; font-weight: 600; color: var(--brand-dark); }
/* ".screen a" (blue links) is stronger than .start-free alone → white text on the red button */
.screen a.start-free { display: block; text-align: center; margin: 14px 0 6px; padding: 12px; font-size: 1.1rem;
                       color: #fff; font-weight: 700; text-decoration: none; }
/* Start card + login form sit together on phones (no big empty gap) */
.login-card.start-card { margin-top: 6vh; }
.start-card + .login-card { margin-top: 16px; }

/* 📣 Complaints (052) — Shop Admin + control room */
.complaint-card { border: 1px solid #e3e6ea; border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: #fff; }
.complaint-card.overdue { border-color: #d33; box-shadow: 0 0 0 2px #fde2e2; }
.complaint-status { font-weight: 800; margin: 0 0 6px; }
.complaint-thread { display: grid; gap: 6px; margin-bottom: 8px; }
.complaint-msg { margin: 0; padding: 6px 8px; border-radius: 8px; background: #f3f4f6; line-height: 1.45; }
.complaint-msg.from-shop { background: #eef6ff; }
.complaint-msg.from-subidha { background: #fff6dd; }
.complaint-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.complaint-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; }
.complaint-card textarea { width: 100%; }
.advice { background: #f4f8ff; border: 1px dashed #8fb3e8; border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.advice h3 { margin: 0 0 4px; font-size: 0.95rem; }
.advice ul { margin: 4px 0 6px 18px; padding: 0; }
.advice .verdict { font-weight: 800; }
.count-badge { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: #eef1f5; font-weight: 800; text-align: center; }
.count-badge.alert { background: #d33; color: #fff; }
.routine-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef0f3; }
.routine-item .hint-text { margin: 0; }

/* 🧾 Fee receipts (054) + 🕘 activity log */
.fee-receipt { border: 1px dashed #999; border-radius: 10px; padding: 12px; margin: 8px 0; background: #fff; }
.fee-receipt.void { opacity: 0.75; }
.fee-receipt h3 { margin: 0 0 6px; }
.fee-receipt p { margin: 3px 0; }
.fee-receipt table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.fee-receipt td:last-child { text-align: right; white-space: nowrap; }
.fee-receipt .receipt-total td { border-top: 1px solid #999; font-weight: 800; }
.payment-history li.voided { text-decoration: line-through; color: #888; }
.activity-row { margin: 4px 0; font-size: 0.9rem; line-height: 1.45; border-bottom: 1px solid #eef0f3; padding-bottom: 4px; }
@media print {
  body.printing-fee-receipt * { visibility: hidden; }
  body.printing-fee-receipt .fee-receipt.printing, body.printing-fee-receipt .fee-receipt.printing * { visibility: visible; }
  body.printing-fee-receipt .fee-receipt.printing { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
  body.printing-fee-receipt .fee-receipt.printing button { display: none; }
}


/* =====================================================================
   UX PASS, BATCH 1 (22 Nov 2026): bottom bar, icons, calmer header,
   short Home, one-screen-per-step setup journey (guide.js)
   ===================================================================== */
body { background: var(--bg); color: var(--ink); line-height: 1.45; }
.card { border-radius: 14px; box-shadow: none; border: 1px solid var(--line); }
.card-title { font-size: 1.1rem; font-weight: 650; }
.hint-text, .hint { color: var(--ink-soft); }
.icon { flex-shrink: 0; vertical-align: middle; }
.message.error { color: var(--danger); }
.message.success { color: var(--brand); }

/* Header: shop name left, quiet icon buttons right */
.admin-header { background: var(--brand); gap: 4px; padding: 10px 12px; }
.admin-header h1 { font-size: 1.1rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; border: none; border-radius: 10px;
  background: transparent; color: #fff; }
.icon-button:active { background: rgba(255,255,255,.15); }
.view-shop-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-dark); }

/* Bottom bar: 4 big targets the thumb reaches (like the Shopify / eSewa apps) */
.tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 5; border-top: 1px solid var(--line);
  border-bottom: none; padding-bottom: env(safe-area-inset-bottom, 0); box-shadow: 0 -2px 10px rgba(0,0,0,.04); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative;
  padding: 8px 2px 7px; border-bottom: none; border-top: 3px solid transparent; color: var(--ink-soft); font-size: .78rem; }
.tab .tab-label { line-height: 1.1; }
.tab.active { color: var(--brand); border-top-color: var(--brand); border-bottom-color: transparent; font-weight: 650; }
.tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; background: var(--brand); }
.tab-badge.warn { background: var(--warn); }
#dashboard-screen main { padding-bottom: 96px; }

/* Home: setup card (until the shop is online) */
.setup-card { border: 1px solid var(--brand); background: #fff; }
.setup-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.setup-count { margin: 2px 0 10px; color: var(--ink-soft); }
.guide-bar { height: 8px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; }
.guide-bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.setup-next { margin: 14px 0 4px; padding: 12px; border-radius: 12px; background: var(--brand-soft); }
.setup-next .label { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-dark); }
.setup-next .title { margin: 2px 0 4px; font-size: 1.05rem; font-weight: 650; }
.setup-next .why { margin: 0; color: var(--ink-soft); }
.big-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px;
  padding: 14px; border: none; border-radius: 12px; background: var(--brand); color: #fff; font-size: 1.05rem; font-weight: 650;
  text-decoration: none; }
.big-button.light { background: #fff; color: var(--brand-dark); border: 1px solid var(--line); }
.quiet-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; border: none; background: none;
  color: var(--brand-dark); font-size: .95rem; }
.guide-steps { list-style: none; padding: 0; margin: 10px 0 0; }
.guide-num { background: var(--ink-soft); }
.guide-step.done .guide-num { background: var(--brand); }
.home-orders { border-left: 4px solid var(--brand); }

/* Setup journey: one step per screen, nothing else around it */
body.guide-focus .tabs, body.guide-focus #plan-banner, body.guide-focus #fee-receipts { display: none !important; }
body.guide-focus #dashboard-screen main { padding-bottom: 120px; }
body.guide-focus .guide-target { outline: none; }
.guide-focus-bar { position: static; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.journey-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.journey-step { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.journey-dots { display: flex; gap: 6px; margin: 0 0 14px; }
.journey-dots span { flex: 1; height: 5px; border-radius: 9px; background: var(--line); }
.journey-dots span.done { background: var(--brand); }
.journey-dots span.now { background: var(--brand-dark); }
.journey-title { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.25; }
.journey-why { margin: 0 0 8px; color: var(--ink-soft); }
.journey-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.journey-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: #fff; border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0)); }
.journey-foot-inner { max-width: 700px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.journey-foot .big-button { margin: 0; }
.journey-foot .journey-msg { grid-column: 1 / -1; margin: 0; font-size: .9rem; }
.journey-skip { display: block; margin: 4px auto 0; }
.journey-share { display: grid; gap: 10px; margin-top: 6px; }
.journey-link { word-break: break-all; font-weight: 600; background: var(--bg); padding: 10px 12px; border-radius: 10px; }
.journey-done { text-align: center; padding: 28px 16px; }
.journey-done .tick { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
body.guide-focus #home-section > :not(.guide-focus-bar) { display: none !important; }

/* ⚙️ Shop tab as a settings list (settings-nav.js, UX batch 2) */
body:not(.guide-focus) #shop-section > .off { display: none !important; }
body.guide-focus #settings-list, body.guide-focus #settings-page-head { display: none !important; }
.settings-group { margin: 0 0 18px; }
.settings-group-title { margin: 6px 4px 8px; font-size: .8rem; font-weight: 650; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-soft); }
.settings-rows { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.settings-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: none;
  border-top: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; font: inherit; }
.settings-row:first-child { border-top: none; }
.settings-row:active { background: var(--bg); }
.settings-row > .icon { color: var(--ink-soft); }
.settings-row-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-dark); flex-shrink: 0; }
.settings-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.settings-row-label { font-weight: 600; }
.settings-row-sub { font-size: .85rem; color: var(--ink-soft); }
.settings-page-head { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0 0 12px; }
.settings-page-head[hidden] { display: none; }
.settings-page-title { margin: 0 4px; font-size: 1.35rem; }

/* =====================================================================
   APP FEEL (UX batch 3, 22 Nov): "simple, not flat paper".
   Depth (soft shadows, raised bars), motion (slide / fade / press),
   app pieces (sheets, floating +, chips, sticky search).
   ===================================================================== */
:root { --shadow-1: 0 1px 2px rgba(16,40,28,.06), 0 2px 8px rgba(16,40,28,.06);
        --shadow-2: 0 4px 12px rgba(16,40,28,.10), 0 12px 32px rgba(16,40,28,.10);
        --radius: 16px; --ease: cubic-bezier(.2,.8,.2,1); }
body { -webkit-tap-highlight-color: transparent; }
.card { border: none; border-radius: var(--radius); box-shadow: var(--shadow-1); }
.admin-header { background: linear-gradient(135deg, #22795a, #155a40); box-shadow: 0 2px 12px rgba(16,60,40,.25); }
.tabs { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: none;
  box-shadow: 0 -4px 20px rgba(16,40,28,.08); }
.tab.active { border-top-color: transparent; }
.tab.active [data-icon] { background: var(--brand-soft); border-radius: 99px; padding: 2px 14px; transition: background .2s var(--ease); }
input, select, textarea { border-radius: 12px; border: 1px solid #d5ddd8; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,80,.18); }
.primary, .big-button { border-radius: 14px; box-shadow: 0 2px 8px rgba(31,111,80,.25); }
button, .big-button, .settings-row, .product-row, .chip, .fab { transition: transform .12s var(--ease), background .15s, box-shadow .15s; }
button:active:not(:disabled), .big-button:active { transform: scale(.97); }
.settings-rows { border: none; box-shadow: var(--shadow-1); border-radius: var(--radius); }
.settings-row-icon { border-radius: 12px; }
.setup-card { border: none; box-shadow: var(--shadow-2); background: linear-gradient(180deg, #fff, #f6fbf8); }

/* motion: screens fade up, pages slide in */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
main > section:not([hidden]) { animation: fadeUp .22s var(--ease); }
.settings-page-head:not([hidden]), #shop-section > [data-page]:not(.off) { animation: slideIn .24s var(--ease); }
#guide-focus-bar, body.guide-focus .guide-target { animation: slideIn .26s var(--ease); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Products (products-ui.js) ---------- */
body:not(.guide-focus) #products-section > .add-card[data-guide="products"] { display: none !important; }
#products-section > #quick-prices.stored, #admin-product-list.card-store { display: none !important; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 2px 10px; }
.list-title { margin: 0; font-size: 1.35rem; }
.pill-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: none; border-radius: 99px;
  background: #fff; color: var(--brand-dark); font-weight: 600; box-shadow: var(--shadow-1); }
.product-bar { position: sticky; top: 60px; z-index: 3; margin: 0 -16px 10px; padding: 8px 16px 10px;
  background: linear-gradient(var(--bg) 80%, rgba(244,246,245,0)); }
.search-field { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 0 14px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-1); color: var(--ink-soft); }
.search-field input { border: none; box-shadow: none; margin: 0; padding: 12px 0; background: transparent; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: none; border-radius: 99px;
  background: #fff; color: var(--ink); font-size: .9rem; box-shadow: var(--shadow-1); }
.chip.on { background: var(--brand); color: #fff; }
.chip-n { min-width: 20px; padding: 0 6px; border-radius: 99px; background: rgba(0,0,0,.07); font-size: .8rem; text-align: center; }
.chip.on .chip-n { background: rgba(255,255,255,.25); }
.product-rows { display: grid; gap: 10px; }
.product-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px 10px 10px; border: none;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); text-align: left; font: inherit; color: var(--ink); }
.product-row:active { box-shadow: var(--shadow-2); }
.product-row.state-hidden { opacity: .62; }
.product-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--brand-soft);
  display: grid; place-items: center; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-letter { font-size: 1.4rem; font-weight: 700; color: var(--brand-dark); }
.product-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.product-row-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-row-price { color: var(--ink-soft); }
.product-row-price.missing { color: var(--warn); font-weight: 600; }
.stock-chip { flex-shrink: 0; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.stock-chip.sale { background: var(--brand-soft); color: var(--brand-dark); }
.stock-chip.low { background: var(--warn-soft); color: var(--warn); }
.stock-chip.sold { background: var(--danger-soft); color: var(--danger); }
.stock-chip.hidden { background: #eceeed; color: var(--ink-soft); }
.center { text-align: center; }
.empty-state { text-align: center; padding: 34px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1); }
.empty-state h3 { margin: 10px 0 4px; font-size: 1.2rem; }
.empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px;
  background: var(--brand-soft); color: var(--brand); }
.fab { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0)); z-index: 6;
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px 14px 16px; border: none; border-radius: 18px;
  background: var(--brand); color: #fff; font-weight: 650; font-size: 1rem; box-shadow: 0 8px 24px rgba(31,111,80,.35); }
.fab:active { transform: scale(.95); }
#products-section[hidden] ~ .fab, #products-section[hidden] .fab { display: none; }

/* add form: photo first */
.add-photo { display: block; margin: 0 0 6px; cursor: pointer; }
.add-photo-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 170px; border-radius: var(--radius); border: 2px dashed #b9d3c6; background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 600; overflow: hidden; }
.add-photo-preview.has-photo { border: none; }
.add-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bottom sheet (sheet.js) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10,25,18,.45); opacity: 0; transition: opacity .2s var(--ease); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.18);
  transform: translateY(100%); transition: transform .26s var(--ease); max-width: 720px; margin: 0 auto; }
.sheet-wrap.show .sheet { transform: none; }
.sheet-wrap.show .sheet-backdrop { opacity: 1; }
.sheet-head { position: relative; display: flex; align-items: center; justify-content: center; padding: 18px 56px 10px; }
.sheet-grab { position: absolute; top: 7px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 9px; background: #cfd8d3; }
.sheet-title { margin: 0; font-size: 1.1rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: none; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-1); display: grid; place-items: center; }
.sheet-body { overflow-y: auto; padding: 4px 14px calc(18px + env(safe-area-inset-bottom, 0)); }
.sheet-body > details.add-card > summary { display: none; }
.sheet-body > .card, .sheet-body > details { margin-bottom: 0; }
body.sheet-open { overflow: hidden; }

/* ---------- Big catalogues (UX batch 4: products-ui.js + 063) ---------- */
.list-tools { display: flex; gap: 8px; }
.cat-chips { margin-top: 8px; }
.group-head { margin: 14px 4px 2px; font-size: .8rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.drafts-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 12px 14px;
  border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); font-weight: 600; box-shadow: var(--shadow-1); }
.drafts-banner[hidden] { display: none; }
#show-more { margin-top: 12px; }
/* select many */
body.selecting .fab { display: none; }
body.selecting #dashboard-screen main { padding-bottom: 190px; }
.tick-circle { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; border: 2px solid #b9c6bf; display: grid; place-items: center; color: #fff; }
.product-row.picked { box-shadow: 0 0 0 2px var(--brand), var(--shadow-1); }
.product-row.picked .tick-circle { background: var(--brand); border-color: var(--brand); }
.select-bar { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0)); z-index: 7;
  background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 28px rgba(16,40,28,.14); padding: 10px 12px 12px; }
.select-bar[hidden] { display: none; }
.select-top { display: flex; justify-content: space-between; align-items: center; max-width: 700px; margin: 0 auto 6px; }
.select-actions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; max-width: 700px; margin: 0 auto; }
.act { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border: none; border-radius: 12px;
  background: var(--bg); color: var(--ink); font-size: .72rem; }
.act:disabled { opacity: .35; }
/* toast */
.toast { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom, 0)); z-index: 60; max-width: 90vw;
  transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 14px; background: #1d2420; color: #fff;
  font-size: .95rem; box-shadow: var(--shadow-2); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--danger); }
/* add menu + drafts */
.add-menu { display: grid; gap: 10px; }
.menu-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: none; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-1); text-align: left; font: inherit; color: var(--ink); }
.draft-list { display: grid; gap: 10px; }
.draft-card { display: flex; gap: 12px; align-items: flex-start; }
.draft-card.published { background: var(--brand-soft); }
.product-thumb.big { width: 84px; height: 84px; }
.draft-fields { flex: 1; min-width: 0; display: grid; gap: 8px; }
.draft-fields input { margin: 0; }
.draft-fields .row { gap: 8px; }
.draft-fields .big-button { margin: 0; padding: 11px; }

/* =====================================================================
   TONE-DOWN + LOGIN (22 Nov, after the look review): calmer, faster on cheap phones
   ===================================================================== */
/* plain white bottom bar (blur is slow on low-end Android) */
.tabs { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* tabs switch instantly; motion stays only where it explains something (sheets, pages, journey) */
main > section:not([hidden]) { animation: none; }
/* flat green header, cleaner */
.admin-header { background: var(--brand); }
/* settings icons: soft grey tiles; green is kept for buttons and "active" things */
.settings-row-icon { background: #f0f3f1; color: var(--ink-soft); }

/* login: green welcome panel + white panel rising over it */
.login-screen { min-height: 100vh; background: var(--bg); }
.login-hero { background: var(--brand); color: #fff; padding: 44px 24px 72px; text-align: center; }
.login-mark { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: rgba(255,255,255,.16); margin-bottom: 14px; }
.login-hero h1 { margin: 0 0 4px; font-size: 1.6rem; line-height: 1.2; color: #fff; }
.login-hero .start-ne { color: rgba(255,255,255,.85); font-weight: 500; margin: 0 0 16px; }
.login-points { list-style: none; padding: 0; margin: 0 auto; max-width: 320px; text-align: left; display: grid; gap: 8px; }
.login-points li { display: flex; align-items: center; gap: 10px; font-size: .98rem; }
.login-points .icon { color: #bfe8d3; }
.login-panel { position: relative; max-width: 420px; margin: -44px auto 24px; padding: 22px 18px 18px; background: #fff;
  border-radius: 22px; box-shadow: var(--shadow-2); }
.login-title { margin: 0 0 14px; font-size: 1.2rem; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; }
.show-password { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); margin-top: 2px; width: 40px; height: 40px;
  border: none; border-radius: 10px; background: transparent; color: var(--ink-soft); display: grid; place-items: center; }
.show-password[aria-pressed="true"] { color: var(--brand); }
.login-panel #forgot-link { display: block; margin: 12px auto 0; }
.login-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; color: var(--ink-soft); font-size: .9rem; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-panel .credit { margin-top: 16px; }
/* start screen: two big choices; the login form opens only after "Log in" */
.start-panel .big-button:first-child { margin-top: 0; }
.start-panel .start-note { text-align: center; margin: 12px 0 0; }
.login-back { display: inline-flex; align-items: center; min-height: 40px; margin: -6px 0 4px; padding: 0 4px; }
.login-panel[hidden], .start-panel[hidden], .login-back[hidden] { display: none; }
.show-password:active:not(:disabled) { transform: translateY(-50%); }

/* =====================================================================
   TYPE (22 Nov): Mukta for English + Nepali, ONE set of sizes everywhere
   page title 1.45rem · card title 1.15rem · body 1.0625rem · hint .94rem · small .82rem
   Mukta sits a little smaller than phone fonts, so body is 17px.
   ===================================================================== */
:root { --font: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
        --fs-page: 1.45rem; --fs-card: 1.15rem; --fs-body: 1.0625rem; --fs-hint: .94rem; --fs-small: .82rem; }
html { font-size: 16px; }
body { font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; }
button, input, select, textarea { font-family: inherit; }
input, select, textarea { font-size: var(--fs-body); }
h1, h2, h3, .card-title, .list-title, .journey-title, .settings-page-title, .login-title { font-weight: 700; letter-spacing: -.005em; }
.list-title, .journey-title, .settings-page-title { font-size: var(--fs-page); line-height: 1.2; }
.card-title, .login-title, .sheet-title { font-size: var(--fs-card); line-height: 1.3; }
.hint-text, .hint, .journey-why, .setup-count, .settings-row-sub, .product-row-price { font-size: var(--fs-hint); }
.tab, .chip, .stock-chip, .act, .settings-group-title, .group-head, .setup-next .label, .credit { font-size: var(--fs-small); }
.settings-row-label, .product-row-name, label { font-weight: 600; }
label { font-size: var(--fs-hint); color: var(--ink); }
.big-button, .primary, .fab { font-weight: 700; }
.product-row-price { font-variant-numeric: tabular-nums; }

/* ✨ Delight (delight.js): celebrations, pop-in success, shimmer */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 80; pointer-events: none; }
.celebrate { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 24px;
  background: rgba(10,25,18,.45); opacity: 0; transition: opacity .2s var(--ease); }
.celebrate.show { opacity: 1; }
.celebrate-card { width: min(360px, 100%); background: #fff; border-radius: 24px; padding: 26px 20px 18px; text-align: center;
  box-shadow: var(--shadow-2); transform: scale(.9); transition: transform .3s cubic-bezier(.2,1.4,.4,1); }
.celebrate.show .celebrate-card { transform: none; }
.celebrate-card h2 { margin: 10px 0 6px; font-size: 1.4rem; }
.celebrate-card p { margin: 0 0 6px; color: var(--ink-soft); }
.celebrate-goal { margin-top: 10px !important; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark) !important; font-weight: 600; }
.celebrate-tick { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--brand); color: #fff;
  animation: tickPop .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes tickPop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.message.success { animation: savedPop .35s cubic-bezier(.2,1.5,.4,1); }
@keyframes savedPop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
.toast { display: flex; align-items: center; gap: 8px; }
.toast .icon { color: #8fe0b6; }
.toast.bad .icon { color: #fff; }
.skeleton { pointer-events: none; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, #eef1ef 25%, #f8faf9 50%, #eef1ef 75%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.product-thumb.sk { border-radius: 12px; }
.sk-lines { flex: 1; display: grid; gap: 8px; }
.sk-a { height: 14px; width: 70%; } .sk-b { height: 12px; width: 40%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ↩️ Back always in reach: settings page title bar stays pinned under the header */
.settings-page-head { position: sticky; top: 60px; z-index: 4; margin: -16px -16px 12px; padding: 10px 16px 8px;
  background: var(--bg); box-shadow: 0 6px 12px -10px rgba(16,40,28,.25); }
.settings-page-head .quiet-button { padding: 8px 10px 8px 0; font-weight: 600; font-size: 1rem; }
/* sheet top bar is the drag handle */
.sheet-head { touch-action: none; cursor: grab; }

/* Products: one chip row (categories) + "needs attention" line only when true */
.cat-chips { margin-top: 0; }
.attention-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.attention-line[hidden] { display: none; }
.attention { padding: 5px 12px; border: none; border-radius: 99px; font-size: var(--fs-small); font-weight: 600; }
.attention.sold { background: var(--danger-soft); color: var(--danger); }
.attention.low { background: var(--warn-soft); color: var(--warn); }
.attention.hidden { background: #eceeed; color: var(--ink-soft); }
/* a pill that is ON (filtering the list): same size, filled green, small ✕ inside — no big bar */
.attention { display: inline-flex; align-items: center; gap: 6px; }
.attention.on { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(31,111,80,.25); }
.pill-x { font-size: .8em; line-height: 1; opacity: .9; }
/* room under the last product, so the floating "Add product" button never covers it */
#product-rows { padding-bottom: 96px; }

/* Products after the UX review (22 Nov): nothing sticky over the list, two clear actions,
   small notification pills, Duplicate / Delete in the product's sheet */
#products-section > .search-field { margin: 0 0 10px; }
#products-section > .cat-chips { margin: 0 0 4px; }
#products-section > .attention-line { margin: 4px 0 10px; }
.pill-button.strong { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; padding: 9px 16px; }
.attention.draft { background: #e8eefc; color: #3355aa; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.sheet-actions .big-button { margin: 0; }
.sheet-actions .hint-text { grid-column: 1 / -1; margin: 0; text-align: center; }
.big-button.danger-light { background: #fff; color: var(--danger); border: 1px solid #f2c4bf; box-shadow: none; }
.draft-fields .link-button-dark { justify-self: start; color: var(--danger); }
.prices-filter { margin: 0 0 10px; }
.prices-filter .search-field { margin-bottom: 8px; }
.quick-row[hidden] { display: none !important; }
.qp-save { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -6px 16px rgba(244,246,245,.95), 0 2px 8px rgba(31,111,80,.25); }

/* 🎨 shop colour: live preview + ready-made colours (shop-look.js) */
.look-preview { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 92px; margin: 4px 0 12px;
  padding: 14px 16px; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow-1); transition: background .2s; }
.look-preview strong { font-size: 1.25rem; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.look-preview span { opacity: .92; font-size: var(--fs-hint); }
.color-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-label input[type="color"] { width: 48px; height: 36px; padding: 2px; margin: 0; }
.swatch-own { font-weight: 500; color: var(--ink-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.look-warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: var(--fs-hint); }
.look-warn[hidden] { display: none; }
#shop-form .quiet-button { display: block; margin: 8px auto 0; text-align: center; }

/* Visual check fixes (22 Nov 05:10) */

/* English / नेपाली switch on the setup card: a small pill, not a big box */
.setup-top .secondary.small { width: auto; flex-shrink: 0; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); font-size: var(--fs-small); font-weight: 600; box-shadow: none; }
/* "See all steps" as a clear quiet link with an arrow, not a bare browser triangle */
.guide-done > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  color: var(--brand-dark); font-weight: 600; font-size: var(--fs-hint); }
.guide-done > summary::-webkit-details-marker { display: none; }
.guide-done > summary::after { content: "\203A"; font-size: 1.2em; transition: transform .2s; }
.guide-done[open] > summary::after { transform: rotate(90deg); }
.upload-progress { flex-direction: column; align-items: stretch; gap: 8px; min-width: 240px; }
.upload-bar { display: block; height: 6px; border-radius: 9px; background: rgba(255,255,255,.2); overflow: hidden; }
.upload-fill { display: block; height: 100%; width: 0; background: #8fe0b6; transition: width .3s; }

/* ---------- 22 Nov walkthrough fixes (067 Go live) ---------- */
/* setup step "Order alerts" opens on the Orders tab: show only the alerts card there */
body.guide-focus #orders-section > :not(.guide-target):not(.guide-focus-bar) { display: none !important; }
body.guide-focus #alerts-card.guide-target { display: block !important; }
/* green buttons that are links kept dark text (hard to read, looked disabled) */
a.big-button:not(.light), a.big-button:not(.light):visited,
a.button-link.primary, a.button-link.primary:visited { color: #fff; }
/* Go live step */
.golive .label { font-weight: 700; margin: 0 0 2px; }
.golive-notes { margin: 10px 0 0; padding: 10px 12px 10px 28px; border-radius: 12px; background: #fff7e0; color: #5a4300;
  font-size: var(--fs-small); line-height: 1.45; }
.golive-notes li + li { margin-top: 4px; }
/* Home: new orders + complaints waiting, one line each */
.home-alert-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.home-alert-line + .home-alert-line { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
/* welcome screens: English / नेपाली switch at the top right */
.welcome-card { position: relative; }
.lang-pill { position: absolute; top: 12px; right: 12px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px;
  background: #fff; color: var(--ink-soft); font-size: var(--fs-small); font-weight: 600; box-shadow: none; }
.welcome-card .welcome-dots { margin-right: 84px; }

/* 22 Nov clean-up: "Delivery and pickup" = three clear choices (like Shopify's Shipping and delivery) */
.delivery-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin-top: 10px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.delivery-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.delivery-option input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.delivery-option strong { display: block; }
.delivery-option .hint-text { display: block; margin: 2px 0 0; }
.delivery-sub { margin: 8px 0 4px 12px; padding-left: 12px; border-left: 3px solid var(--brand-soft); }

/* 071 · Start my shop with Google + Name your shop */
.signup-only[hidden], .login-or[hidden], #new-shop-form[hidden] { display: none !important; }
.google-start { display: flex; align-items: center; justify-content: center; gap: 10px; }
.google-g { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; color: #1f6f50; font-weight: 800; font-size: .95rem; border: 1px solid var(--line); }
.big-button.light .google-g { border-color: var(--line); }
.new-shop-terms { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: .95rem; }
.new-shop-terms input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
#new-shop-cancel { display: block; margin: 12px auto 0; }
