:root {
  --primary: #1a73e8;
  --primary-dark: #0b4aa8;
  --primary-light: #e8f2ff;
  --secondary: #eef5ff;
  --background: #f5f8fc;
  --surface: #ffffff;
  --text: #102033;
  --muted: #5c6b80;
  --border: #d7e2ef;
  --success: #0d9b56;
  --warning: #e2a20b;
  --danger: #d92d20;
  --shadow: 0 8px 22px rgba(16, 56, 120, 0.07);
  --radius: 14px;
  --nav-h: 118px;
  --bottom-nav-h: 74px;
  --font: "Segoe UI", "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--background);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 992px) {
  .main { padding-bottom: 32px; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(13, 71, 161, 0.04);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px; align-items: center;
  padding: 8px 12px 10px;
}
.brand {
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em;
  color: var(--primary-dark);
}
.brand span { color: var(--primary); }
.search-wrap { position: relative; }
.search-wrap input {
  width: 100%; border: 0; border-radius: 0 0 15px 15px;
  padding: 10px 14px 10px 40px; background: #fff;
  outline: none;
}
.search-wrap input:focus { box-shadow: none; }
.search-wrap .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 14px;
}
.header-actions { display: flex; gap: 8px; align-items: center; grid-column: 2; grid-row: 1; height: 36px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; display: grid; place-items: center; color: var(--text);
  position: relative; transition: background .15s;
}
.icon-btn:hover { background: var(--primary-light); }
.side-toggle { width: 32px; height: 32px; border-radius: 8px; font-size: .78rem; margin-top: 0; }
.badge-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--primary); color: #fff; font-size: 10px;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
}

.brand-wrap {
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  min-width: 0; grid-column: 1; grid-row: 1; height: 36px;
}
.brand-wrap .side-toggle,
.brand-wrap .brand-live,
.brand-wrap .logo-orb,
.brand-wrap .logo-name { align-self: center; }
.brand-wrap .brand-live { height: 32px; }
.brand-wrap .logo-orb, .brand-wrap .logo-orb img { width: 32px; height: 32px; }
.brand-wrap .logo-name { display: flex; align-items: center; height: 32px; line-height: 1; }
.find-block {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 56, 120, .05);
}
.loc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; border: 0; cursor: pointer;
  padding: 10px 12px 7px; text-align: left; color: var(--primary-dark);
  border-bottom: 1px solid #d9e6f6;
  border-radius: 15px 15px 0 0;
  background-color: #eef5ff;
  background-image: linear-gradient(90deg, #1a73e8 0%, #0d9b56 38%, #ffb020 68%, #ff7a59 100%);
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: top center;
}
.loc-bar-main {
  display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .78rem; font-weight: 700;
}
.loc-bar-main i { color: var(--primary); font-size: .78rem; flex-shrink: 0; }
.loc-bar-main .loc-caret { font-size: .62rem; color: var(--muted); }
.loc-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.loc-bar-main [data-location-label],
.loc-detail {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.loc-detail { font-size: .66rem; font-weight: 600; color: var(--muted); }
.loc-bar.is-set .loc-detail { color: #146c43; }
.loc-eta {
  flex-shrink: 0; font-size: .72rem; font-weight: 800; color: #0b4aa8;
  background: #fff; border-radius: 999px; padding: 3px 8px; line-height: 1.2;
}
.loc-bar.is-set { background-color: #e8f8ee; border-bottom-color: #c8ecd4; }
.loc-bar.is-set .loc-bar-main, .loc-bar.is-set .loc-bar-main i { color: #0a6b3c; }
.loc-bar.is-set .loc-eta { color: #0d9b56; }
.loc-now { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.loc-now strong { color: var(--primary-dark); }


/* Containers */
.container { max-width: 1200px; margin: 0 auto; padding: 12px; }
.main h1 {
  margin: 2px 0 14px; font-size: 1.22rem; letter-spacing: -.02em; color: var(--primary-dark);
}
.section { margin: 18px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.section-head h2 { margin: 0; font-size: 1.05rem; letter-spacing: -0.02em; }
.section-head a { font-size: .82rem; }
#shop-categories { scroll-margin-top: calc(var(--nav-h) + 10px); }

/* Banner */
.banner-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 4px; -webkit-overflow-scrolling: touch;
}
.banner-card {
  position: relative;
  min-width: min(100%, 720px); height: 132px; border-radius: 14px;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%) center/cover no-repeat;
  color: #fff; padding: 22px; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.12);
  overflow: hidden;
}
@media (min-width: 768px) { .banner-card { height: 196px; } }
.banner-card h3 { margin: 0 0 6px; font-size: 1.4rem; }
.banner-card p { margin: 0; opacity: .9; }

/* Category pills */
.cat-row {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
}
.cat-item {
  flex: 0 0 auto; width: 76px; text-align: center; color: var(--text);
}
.cat-icon {
  width: 52px; height: 52px; margin: 0 auto 5px; border-radius: 16px;
  background: var(--secondary); display: grid; place-items: center;
  font-size: 1.25rem; color: var(--primary-dark); overflow: hidden;
}
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-item span { font-size: .75rem; display: block; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 576px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (min-width: 992px) { .product-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; } }

.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: box-shadow .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-card .thumb {
  aspect-ratio: 1; background: var(--surface); display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.product-card .name {
  font-size: .88rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--text);
}
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--text); }
.mrp { font-size: .78rem; color: var(--muted); text-decoration: line-through; }
.disc {
  font-size: .72rem; color: var(--success); font-weight: 600;
  background: #e6f4ea; padding: 2px 6px; border-radius: 6px;
}
.btn-add {
  margin-top: auto; border: 1px solid var(--primary); background: #fff;
  color: var(--primary); border-radius: 10px; padding: 7px 10px;
  font-weight: 700; font-size: .82rem; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-add:hover { background: var(--primary); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 11px; padding: 9px 14px; font-weight: 700;
  cursor: pointer; transition: background .15s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(180deg, #2b82f0 0%, #1a73e8 100%); color: #fff; box-shadow: 0 6px 14px rgba(26,115,232,.22); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }

/* Forms */
.form-card {
  max-width: 440px; margin: 24px auto; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .85rem; margin-bottom: 6px; color: var(--muted); }
.form-control {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 14px; background: var(--surface); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* Bottom nav — base; liquid capsule is in liquid.css */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  width: min(460px, calc(100% - 16px));
  height: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 0;
  padding: 3px 4px 4px;
  border-radius: 26px;
  background: rgba(255,255,255,.96);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; min-width: 0; color: var(--muted); font-size: .58rem; font-weight: 600;
  padding: 2px 0 0; border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.bottom-nav a i {
  width: 36px; height: 20px; display: grid; place-items: center;
  border-radius: 13px; font-size: .92rem;
}
.bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav a.active { color: var(--primary-dark); }
.bottom-nav a.active i { background: var(--primary-light); color: var(--primary); }
@media (hover: hover) {
  .bottom-nav a:hover { color: var(--primary-dark); }
}
@media (min-width: 992px) { .bottom-nav { display: none; } .main { padding-bottom: 28px; } }

/* Toast */
.toast-wrap {
  position: fixed; top: 76px; right: 16px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--text); color: #fff; padding: 12px 16px; border-radius: 12px;
  box-shadow: var(--shadow); animation: slideIn .25s ease;
  max-width: 320px; font-size: .9rem;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #eef3f9 25%, #f7faff 37%, #eef3f9 63%);
  background-size: 400% 100%; animation: shimmer 1.2s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Cart / checkout */
.cart-layout, .checkout-layout {
  display: grid; gap: 16px;
}
@media (min-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1.4fr .8fr; align-items: start; }
}
.panel {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; box-shadow: 0 1px 2px rgba(13,71,161,.04);
}
.cart-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-control button { width: 32px; height: 32px; border: none; background: var(--surface); cursor: pointer; color: var(--primary); font-weight: 700; }
.qty-control span { min-width: 28px; text-align: center; font-weight: 700; font-size: .9rem; }
.totals-row { display: flex; justify-content: space-between; margin: 8px 0; font-size: .92rem; }
.totals-row.grand { font-weight: 800; font-size: 1.05rem; border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 10px; }

/* Product page */
.product-hero {
  display: grid; gap: 20px;
}
@media (min-width: 900px) {
  .product-hero { grid-template-columns: 1fr 1fr; }
}
.gallery {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  background: linear-gradient(180deg, #0a1a2e 0%, #0d2748 100%); color: #fff; padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { color: #fff; margin-bottom: 24px; display: block; padding: 0 8px; }
.admin-side a {
  display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.82);
  padding: 9px 12px; border-radius: 11px; margin-bottom: 6px; font-size: .88rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
}
.admin-side a:hover { background: rgba(26,115,232,.22); color: #fff; border-color: rgba(91,157,255,.4); }
.admin-side a.active { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.admin-main { background: var(--background); }
.admin-top {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 12px 18px; display: flex; justify-content: space-between; align-items: center;
}
.admin-content { padding: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .stat-grid { grid-template-columns: repeat(6, 1fr); } }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.stat-card .label { color: var(--muted); font-size: .8rem; }
.stat-card .value { font-size: 1.35rem; font-weight: 800; margin-top: 4px; color: var(--primary-dark); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
table.data th { background: var(--surface); color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.status-pill {
  display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: var(--primary-light); color: var(--primary-dark);
}
.status-pill.delivered { background: #e6f4ea; color: var(--success); }
.status-pill.cancelled, .status-pill.failed { background: #fce8e6; color: var(--danger); }

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: relative; height: auto; }
}

.footer {
  border-top: 1px solid var(--border); padding: 12px 12px calc(76px + env(safe-area-inset-bottom, 0px)); background: var(--surface);
  color: var(--muted); font-size: .78rem;
}
@media (min-width: 992px) { .footer { padding-bottom: 16px; } }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 10px; }
.footer-inner a:not(.brand-live) { display: inline-block; margin: 1px 0; }
.footer-line { margin: 4px 0 0; color: var(--text); font-weight: 800; font-size: .9rem; letter-spacing: -.02em; line-height: 1.35; }
.footer-line em { font-style: normal; color: var(--primary-dark); }
.footer-line span {
  display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 999px;
  background: #e8f8ee; color: #0a6b3c; font-size: .64rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px;
}
.footer-trust { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; align-items: center; }
.upi-chip, .p-badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px;
  padding: 0 7px 0 3px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border); color: var(--text); font-size: .66rem; font-weight: 800;
}
.upi-mark {
  width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center;
  color: #fff; font-style: normal; font-size: .62rem; line-height: 1;
}
.upi-mark.gpay { background: linear-gradient(135deg, #4285f4, #34a853); }
.upi-mark.phonepe { background: #5f259f; font-size: .55rem; }
.upi-mark.paytm { background: #00baf2; }
.upi-mark.bhim { background: linear-gradient(135deg, #f47920, #0b4aa8); }
.p-badge { padding: 0 8px; color: #0b4aa8; background: #eef5ff; border-color: #d3e3f6; }
.p-badge i { font-size: .68rem; }
.p-badge.fresh { color: #0a6b3c; background: #e8f8ee; border-color: #c8ecd4; }
.p-badge.secure { color: #7a4b00; background: #fff6e5; border-color: #f3e0b0; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.alert {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: .9rem;
}
.alert-success { background: #e6f4ea; color: #0b7a40; }
.alert-error { background: #fce8e6; color: #a50e0e; }
.empty {
  text-align: center; padding: 48px 16px; color: var(--muted);
}
.suggest-box {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); display: none; z-index: 80; max-height: 320px; overflow: auto;
}
.suggest-box.show { display: block; }
.suggest-box a {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.suggest-box a:hover { background: var(--surface); }
.suggest-box img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; background: var(--surface); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative; padding: 0 0 18px 22px; border-left: 2px solid var(--border);
}
.timeline li::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); position: absolute; left: -6px; top: 4px;
}
.timeline li:last-child { border-left-color: transparent; }


/* Modal */
.modal-backdrop[hidden] { display: none !important; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(11, 31, 51, .45);
  display: grid; align-items: end;
}
@media (min-width: 768px) { .modal-backdrop { align-items: center; justify-content: center; } }
.modal-sheet {
  background: #fff; border-radius: 20px 20px 0 0; padding: 18px 16px 24px;
  width: 100%; max-width: 440px; box-shadow: var(--shadow);
  animation: slideUp .22s ease;
}
@media (min-width: 768px) { .modal-sheet { border-radius: var(--radius); } }
@keyframes slideUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head h2 { margin: 0; font-size: 1.1rem; }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 8px 12px; cursor: pointer; font-size: .82rem; display: inline-flex; flex-direction: column; align-items: flex-start;
}
.chip small { color: var(--muted); font-size: .7rem; }
.chip:hover { border-color: var(--primary); background: var(--primary-light); }
.option-row {
  display: grid; grid-template-columns: 1.2fr .7fr .7fr .7fr .6fr auto;
  gap: 6px; margin-bottom: 6px; align-items: center;
}
@media (max-width: 700px) {
  .option-row { grid-template-columns: 1fr 1fr; }
}
.option-picks { display: grid; gap: 8px; margin: 4px 0 12px; }
.option-pick {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 8px;
  text-align: left; border: 1px solid var(--border); background: #fff;
  border-radius: 12px; padding: 8px 10px; cursor: pointer;
}
.option-pick small { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; }
.option-pick s { color: var(--muted); font-weight: 500; margin-left: 4px; }
.option-pick.is-on { border-color: var(--primary); background: var(--primary-light); }
.option-pick:disabled { opacity: .5; cursor: not-allowed; }
.option-qty { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 700; }

/* Live tracking */
.track-page { max-width: 880px; margin: 0 auto; }
.track-form { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .track-form { grid-template-columns: 1.2fr 1fr auto; } }
.track-hero {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  align-items: flex-start; margin-top: 12px;
}
.track-eta { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--primary-dark); }
.track-meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.track-dest { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.partner-chip {
  display: flex; gap: 10px; align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; min-width: 180px;
}
.partner-chip.muted { color: var(--muted); font-size: .88rem; }
.partner-avatar {
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary-light);
  color: var(--primary-dark); display: grid; place-items: center;
}
.track-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin-top: 12px;
}
.track-step {
  display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); font-weight: 600;
}
.track-step .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex-shrink: 0;
}
.track-step.done { color: var(--success); }
.track-step.done .dot { background: var(--success); }
.track-step.current { color: var(--primary-dark); }
.track-step.current .dot { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.track-map-wrap { margin-top: 12px; padding: 0; overflow: hidden; }
.track-map { height: 280px; width: 100%; background: var(--surface); }
@media (min-width: 768px) { .track-map { height: 340px; } }
.map-hint { margin: 0; padding: 8px 12px; font-size: .8rem; color: var(--muted); }

/* Compact date filter + ops panels */
.date-filter {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 10px; margin-bottom: 12px;
}
.date-filter-presets { display: flex; gap: 4px; flex-wrap: wrap; }
.df-chip {
  padding: 5px 10px; border-radius: 8px; font-size: .75rem; font-weight: 700;
  color: var(--muted); background: var(--surface); border: 1px solid transparent;
}
.df-chip.active, .df-chip:hover { background: var(--primary-light); color: var(--primary-dark); border-color: #c5d8f8; }
.date-filter-custom { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.date-filter-custom input[type=date] {
  border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; font-size: .78rem; background: #fff;
}
.df-sep { color: var(--muted); font-size: .8rem; }
.df-label { margin-left: auto; font-size: .75rem; color: var(--muted); font-weight: 600; }
.stat-grid.compact { gap: 8px; }
.stat-card.compact { padding: 10px 12px; border-radius: 12px; }
.stat-card.compact .label { font-size: .72rem; }
.stat-card.compact .value { font-size: 1.1rem; margin-top: 2px; }
.panel.compact { padding: 12px 14px; }
.panel.compact h3 { margin: 0 0 10px; font-size: .95rem; }
.shop-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 12px; border: 1px solid var(--border); background: #fff; font-weight: 700; font-size: .85rem;
}
.shop-toggle.open { background: #e6f4ea; color: var(--success); border-color: #b7e1c4; }
.shop-toggle.closed { background: #fce8e6; color: var(--danger); border-color: #f5c2bd; }
.hours-grid { display: grid; gap: 6px; }
.hours-row {
  display: grid; grid-template-columns: 64px 1fr 1fr auto; gap: 6px; align-items: center; font-size: .82rem;
}
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.doc-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.selfie-preview { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.qr-preview { max-width: 140px; border-radius: 10px; border: 1px solid var(--border); }
.toolbar-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.status-pill.pending { background: #fff8e1; color: #b06000; }
.status-pill.paid, .status-pill.active { background: #e6f4ea; color: var(--success); }
.status-pill.rejected, .status-pill.hold { background: #fce8e6; color: var(--danger); }
.status-pill.open { background: #e6f4ea; color: var(--success); }
.status-pill.closed { background: #fce8e6; color: var(--danger); }
table.data.compact th, table.data.compact td { padding: 8px 10px; font-size: .82rem; }
.form-grid-2 { display: grid; gap: 10px; }
@media (min-width: 700px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

.addr-pick {
  display: block; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; margin-bottom: 10px; cursor: pointer; background: #fff;
}
.addr-pick:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.muted { color: var(--muted); font-size: .9rem; }
.pay-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .pay-grid { grid-template-columns: 1fr 1fr; } }
.pay-card {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer;
}
.pay-card:has(input:checked) { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 2px #d7e6fb; }
.pay-card.is-off { opacity: .55; cursor: not-allowed; }
.pay-card input { margin-top: 4px; }
.pay-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); color: var(--primary-dark); flex-shrink: 0;
}
.pay-copy { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.pay-copy strong { font-size: .9rem; }
.pay-copy small { color: var(--muted); font-size: .75rem; }
.pay-badge {
  display: inline-block; font-style: normal; font-size: .62rem; font-weight: 800;
  letter-spacing: .04em; color: #fff; background: var(--primary); border-radius: 6px;
  padding: 1px 5px; width: fit-content;
}
.pay-amt { text-align: center; margin-bottom: 14px; }
.pay-amt span { display: block; color: var(--muted); font-size: .8rem; }
.pay-amt strong { font-size: 1.8rem; color: var(--primary-dark); }
.pay-amt small { display: block; color: var(--muted); font-size: .75rem; }
.pay-qr-wrap { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pay-qr { width: 180px; height: 180px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.copy-row code { font-size: .85rem; background: var(--surface); padding: 4px 8px; border-radius: 8px; }
.pay-manual { font-size: .88rem; }
.pay-box { min-height: 240px; }

/* Compact looping logo */
.brand-live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary-dark); font-weight: 800; letter-spacing: -.03em;
  font-size: .98rem; line-height: 1; min-width: 0;
}
.brand-live:hover { color: var(--primary-dark); }
.logo-orb {
  width: 28px; height: 28px; position: relative; flex-shrink: 0;
}
.logo-orb img {
  width: 28px; height: 28px; border-radius: 8px; object-fit: cover;
  background: #fff; display: block;
}
.logo-ring {
  position: absolute; inset: -3px; border-radius: 11px;
  border: 2px solid #1a73e8;
  animation: logoHue 5.5s ease-in-out infinite;
  pointer-events: none;
}
.logo-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-name span { color: var(--primary); }
.brand-live.is-compact { font-size: .92rem; gap: 6px; }
.brand-live.is-compact .logo-name { max-width: 148px; }
@keyframes logoHue {
  0%, 100% { border-color: #1a73e8; box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.15); }
  50% { border-color: #7aa2ff; box-shadow: 0 0 0 3px rgba(122, 162, 255, 0.28); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-ring { animation: none; }
}

.app-frame { display: flex; min-height: 100vh; align-items: stretch; }
.site-side {
  width: 228px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fc 100%);
  border-right: 1px solid var(--border);
  padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 14px;
  z-index: 70; overflow: auto;
}
.side-brand { padding: 2px 6px 8px; border-bottom: 1px solid var(--border); }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 12px; color: var(--text); font-size: .88rem; font-weight: 600;
  border: 1px solid var(--border); background: #fff;
}
.side-nav a i { width: 16px; text-align: center; color: var(--primary); }
.side-nav a:hover { border-color: #9ec1f5; background: #f7faff; color: var(--primary-dark); }
.side-nav a.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.side-apps { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.side-apps .btn { display: flex; align-items: center; justify-content: center; gap: 6px; }
.side-install-hint { margin: 0; font-size: .75rem; color: var(--muted); }
.side-toggle { display: none; }
.side-backdrop[hidden] { display: none !important; }
.app-shell { flex: 1; min-width: 0; }
.side-kicker { margin: -8px 8px 12px; color: rgba(255,255,255,.55); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-side .brand-live, .admin-side .logo-name { color: #fff; }
.admin-side .logo-orb img { background: #0b1f33; }
.brand-preview { margin-bottom: 12px; }
.account-grid { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }

@media (min-width: 992px) {
  .header-inner { padding-left: 18px; }
}
@media (max-width: 991px) {
  .side-toggle { display: grid; }
  .site-side .side-brand { display: none; }
  .site-side {
    position: fixed; left: 0; top: 0; transform: translateX(-105%);
    transition: transform .22s ease; box-shadow: 0 12px 32px rgba(11, 31, 51, 0.16); height: 100vh;
    background: #fff;
  }
  .site-side.open { transform: none; }
  .side-backdrop {
    position: fixed; inset: 0; background: rgba(11,31,51,.28); z-index: 65;
  }
  .account-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 8px; padding: 6px 10px; }
  .search-wrap input { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 767px) {
  .header-actions .btn { padding: 6px 10px; }
}
.stat-grid.compact { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .stat-grid.compact { grid-template-columns: repeat(4, 1fr); } }

.ring-banner {
  position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #0d47a1; color: #fff; border-radius: 14px; padding: 10px 12px;
  box-shadow: 0 10px 28px rgba(13, 71, 161, .28);
}
.ring-banner p { margin: 0; font-size: .84rem; line-height: 1.35; }
.ring-banner strong { font-size: .92rem; }
.ring-banner .ring-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ring-banner a, .ring-banner button {
  border: 0; border-radius: 9px; padding: 7px 10px; font-weight: 700; font-size: .78rem; cursor: pointer;
}
.ring-banner a { background: #fff; color: #0d47a1; }
.ring-banner button { background: rgba(255,255,255,.16); color: #fff; }
