/* Shopkeeper website */
.boot { min-height: 100vh; display: grid; place-items: center; animation: fade 1s ease infinite alternate; }
@keyframes fade { from { opacity: .4; } }

.greet h1 { font-size: clamp(32px, 4.6vw, 46px); letter-spacing: -0.045em; line-height: 1.08; }
.greet p { color: var(--muted); font-size: 16.5px; margin-top: 10px; }

.open-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.open-toggle b { font-size: 14px; display: block; }
.open-toggle small { font-size: 12px; color: var(--muted-2); }

.restock { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--navy) 0%, #1B2799 100%); color: #fff; flex-wrap: wrap; }
.restock .ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex-shrink: 0; }
.restock .ic svg { width: 22px; height: 22px; }
.restock b { font-size: 16px; display: block; }
.restock span { color: rgba(255,255,255,.75); font-size: 14px; }
.bulk { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); padding: 6px 6px 6px 14px; border-radius: 14px; flex-wrap: wrap; }
.bulk label { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.bulk .input { width: 76px; height: 38px; text-align: center; font-weight: 700; border: 0; color: var(--ink); }
.bulk .btn { --h: 38px; background: #fff; color: var(--navy); }
.bulk .btn:hover { background: var(--navy-50); }

.toolbar { display: flex; gap: 10px; align-items: center; margin: 22px 0 14px; flex-wrap: wrap; }
.toolbar .input-icon { flex: 1; min-width: 200px; max-width: 340px; }

.stock-cell { display: inline-flex; align-items: center; gap: 4px; }
.stock-cell button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); }
.stock-cell button:hover:not(:disabled) { border-color: var(--navy-200); color: var(--navy); }
.stock-cell button:disabled { opacity: .4; cursor: not-allowed; }
.stock-cell button svg { width: 14px; height: 14px; }
.stock-cell .n { min-width: 34px; text-align: center; font-family: var(--mono); font-weight: 500; font-size: 15px; }
.stock-cell .n.low { color: var(--amber); }
.stock-cell .n.out { color: var(--red); }
.baseline-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 14px; }
.baseline-pill.off { color: var(--muted-2); font-family: var(--font); font-size: 13px; }
.p-mini { width: 38px; height: 38px; border-radius: 11px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.p-mini svg { width: 20px; height: 20px; }

.mobile-cards { display: none; }
.m-card { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); align-items: center; }
.m-card:last-child { border-bottom: 0; }

.onboard-wrap { min-height: 100vh; background: var(--canvas); padding: 40px 16px; }
.onboard-card { max-width: 640px; margin: 0 auto; }

.handover { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

@media (max-width: 760px) {
  .desktop-table { display: none; }
  .mobile-cards { display: block; }
  .restock { padding: 16px; }
  .bulk { width: 100%; }
  .bulk .btn { flex: 1; }
}

/* Pending approval */
.ap-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--amber-bg); color: var(--amber); display: grid; place-items: center; }
.ap-icon svg { width: 30px; height: 30px; }
.ap-icon.red { background: var(--red-bg); color: var(--red); }
.ap-steps { list-style: none; padding: 0; margin: 26px 0 22px; display: flex; flex-direction: column; }
.ap-step { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.ap-step:last-child { padding-bottom: 0; }
.ap-step:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.ap-step.done:not(:last-child)::before { background: var(--green-dot); }
.ap-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; flex-shrink: 0; }
.ap-dot svg { width: 15px; height: 15px; }
.ap-step.done .ap-dot { background: var(--green-dot); border-color: var(--green-dot); color: #fff; }
.ap-step.now .ap-dot { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-bg); }
.ap-step.now .ap-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); animation: pulse 1.4s ease-in-out infinite; }
.ap-step.fail .ap-dot { border-color: var(--red); background: var(--red); }
.ap-step b { display: block; font-size: 15px; }
.ap-step span { font-size: 13.5px; color: var(--muted-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-dot); animation: pulse 1.4s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse { 50% { opacity: .35; } }

/* Fulfilment (pickup / delivery) */
.fulfil { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--canvas); margin-bottom: 12px; }
.fulfil svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; margin-top: 1px; }
.fulfil b { display: block; font-size: 14.5px; }
.fulfil span { font-size: 13.5px; color: var(--muted); }
.fulfil a { color: var(--navy); font-weight: 600; }
.fulfil.delivery { background: var(--blue-bg); }
.fulfil.delivery svg { color: var(--blue); }

/* Cancellation */
.cancel-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--red-bg); margin-top: 10px; }
.cancel-note svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.cancel-note b { display: block; font-size: 14px; color: #8E2219; }
.cancel-note span { display: block; font-size: 13.5px; color: #8E2219; opacity: .85; }
.reason-list { display: flex; flex-direction: column; gap: 6px; }
.reason { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14.5px; }
.reason:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
.reason input { accent-color: var(--navy); width: 17px; height: 17px; margin: 0; }

/* Insights */
.ins-mini .stat-value { font-size: 22px; }
.ins-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 32px 0 14px; flex-wrap: wrap; }
.ins-head h2 { font-size: 20px; }
.ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ins-grid > .card:last-child { grid-column: 1 / -1; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.rank-row:last-child { border-bottom: 0; }
.rank { width: 26px; height: 26px; border-radius: 8px; background: var(--line-2); color: var(--muted); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; flex-shrink: 0; }
.rank-row:first-child .rank, .rank.gold { background: var(--navy); color: #fff; }
@media (max-width: 900px) { .ins-grid { grid-template-columns: 1fr; } }

.fulfil-links { display: flex !important; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 600px) {
  .greet h1 { font-size: 26px; }
  .greet p { font-size: 14px; margin-top: 6px; }
  .greet .badge.lg { height: 26px; font-size: 12px; padding: 0 10px; }
  .fulfil { padding: 10px 12px; margin-bottom: 10px; }
  .fulfil b { font-size: 13.5px; }
  .fulfil span { font-size: 12.5px; }
  .restock { gap: 12px; }
  .restock .ic { width: 38px; height: 38px; }
  .restock b { font-size: 14.5px; }
  .restock span { font-size: 13px; }
  .m-card { padding: 11px 12px; }
  .onboard-wrap { padding: 20px 12px; }
  .ap-icon { width: 52px; height: 52px; border-radius: 16px; }
  .rank-row { padding: 10px 0; gap: 10px; }
  .ins-mini .stat-value { font-size: 18px; }
}

/* ---------- New-order pop-up ---------- */
.na { position: fixed; inset: 0; z-index: 90; background: rgba(5,9,64,.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: na-in .2s ease; }
@keyframes na-in { from { opacity: 0; } }
.na-card { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 26px; padding: 22px; box-shadow: var(--sh-3); animation: na-pop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes na-pop { from { transform: translateY(16px) scale(.96); opacity: 0; } }
.na-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.na-head h2 { font-size: 21px; letter-spacing: -0.03em; margin-top: 2px; }
.na-bell { width: 48px; height: 48px; border-radius: 15px; background: var(--navy); color: #fff; display: grid; place-items: center; flex-shrink: 0; animation: na-shake 1.2s ease-in-out infinite; }
.na-bell svg { width: 24px; height: 24px; }
@keyframes na-shake { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-10deg); } 20%, 40% { transform: rotate(10deg); } }
.na-ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.na-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.na-ring circle { fill: none; stroke-width: 5; }
.na-track { stroke: var(--navy-100); }
.na-fill { stroke: var(--navy); animation-name: na-ring-out; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes na-ring-out { from { stroke-dashoffset: 0; } to { stroke-dashoffset: var(--ring-end); } }
.na-time { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; color: var(--navy-800); }
.na-items { margin: 4px 0 18px; max-height: 200px; overflow-y: auto; }
.accept-left { font-size: 13px; font-weight: 600; color: var(--amber); display: inline-flex; align-items: center; }
.auto-tag { color: var(--navy); font-weight: 700; }
.sound-banner { align-items: center; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .na-fill { animation-name: na-ring-out !important; animation-timing-function: linear !important; animation-fill-mode: forwards !important; } }
@media (max-width: 600px) { .na-card { padding: 18px; border-radius: 22px; } .na-head h2 { font-size: 18px; } .na-bell { width: 42px; height: 42px; } }

/* Minimum order for home delivery (slider, ₹50 steps) */
.mdo { padding: 16px; border-radius: 16px; background: var(--canvas); border: 1px solid var(--line-2); }
.mdo.off { opacity: .55; }
.mdo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mdo-head b { display: block; font-size: 15px; }
.mdo-head span { font-size: 13px; color: var(--muted); }
.mdo-val { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mdo-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 18px 0 8px; border-radius: 999px; background: linear-gradient(90deg, var(--navy) 0 var(--p), var(--navy-100) var(--p) 100%); outline: none; cursor: pointer; }
.mdo-range:disabled { cursor: not-allowed; }
.mdo-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 4px 12px -2px rgba(11,20,112,.35); }
.mdo-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 4px 12px -2px rgba(11,20,112,.35); }
.mdo-range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--navy-200); }
.mdo-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
