/* ===== DailyNeeds Web — theme ported from src/config/theme.js ===== */
:root {
  --bg: #0A0A0F;
  --surface: #12121A;
  --card: #16161F;
  --border: rgba(255, 255, 255, 0.07);
  --gold: #F5C842;
  --gold-dark: #C89F20;
  --emerald: #10B981;
  --red: #FF4757;
  --white: #FFFFFF;
  --text1: #F0EDE8;
  --text2: #9A9490;
  --text3: #5A5450;
  --glass: rgba(255, 255, 255, 0.04);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 90px;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
.gold { color: var(--gold); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.scroll-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 16px 12px; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.logo-box { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #000; display: grid; place-items: center; }
.logo-box img { width: 44px; height: 44px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.delivery-tag { font-size: 10px; color: var(--emerald); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.location-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 6px 12px; max-width: 260px;
}
.loc-icon { font-size: 15px; }
.loc-text { display: flex; flex-direction: column; text-align: left; overflow: hidden; }
.loc-label { font-size: 9px; color: var(--text3); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.loc-addr { font-size: 12px; font-weight: 700; color: var(--text1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-caret { color: var(--text3); font-size: 10px; }
.cart-btn { position: relative; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border); font-size: 18px; display: grid; place-items: center; }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: #0a0a0f; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.avatar-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #0a0a0f; font-weight: 800; font-size: 16px; }

.search-row { display: flex; align-items: center; margin-top: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); }
.search-icon { padding-left: 14px; font-size: 15px; }
#searchInput { flex: 1; padding: 12px; background: none; border: none; color: var(--text1); font-size: 14px; outline: none; }
#searchInput::placeholder { color: var(--text3); }
.search-clear { padding: 0 14px; color: var(--text3); font-size: 16px; }

/* ===== Banners ===== */
.banners { margin-top: 20px; }
.banner {
  min-width: 100%; scroll-snap-align: center;
  border-radius: var(--r-lg); padding: 28px; display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--border);
}
.banners { scroll-snap-type: x mandatory; }
.banner-body { flex: 1; }
.banner-label { font-size: 9px; color: var(--gold); font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.banner-title { font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.banner-sub { font-size: 13px; color: rgba(255, 255, 255, 0.65); margin: 0 0 16px; }
.banner-btn { background: var(--gold); color: #0a0a0f; font-weight: 700; font-size: 13px; border-radius: 10px; padding: 9px 18px; }
.banner-emoji { font-size: 72px; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 4px; }
.dot { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); transition: 0.25s; cursor: pointer; }
.dot.active { width: 22px; background: var(--gold); }

/* ===== Badges ===== */
.badges { margin: 20px 0; }
.badge { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; white-space: nowrap; }
.badge-text { font-size: 12px; font-weight: 600; }

/* ===== Section titles ===== */
.section-title { font-size: 20px; font-weight: 800; color: var(--text1); margin: 26px 0 14px; }
.section-title.no-mb { margin-bottom: 2px; }
.section-title .count { font-size: 13px; font-weight: 400; color: var(--text3); }

/* ===== Chips ===== */
.chips { margin-bottom: 6px; }
.chip { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-full); padding: 9px 15px; font-size: 12px; font-weight: 700; color: var(--text2); white-space: nowrap; transition: 0.15s; }
.chip.active { background: var(--gold); border-color: var(--gold); color: #0a0a0f; }
.sorts { margin-bottom: 6px; }
.sort-chip { background: transparent; border: 1px solid var(--border); border-radius: var(--r-full); padding: 8px 13px; font-size: 11px; font-weight: 700; color: var(--text3); white-space: nowrap; }
.sort-chip.active { background: rgba(245, 200, 66, 0.12); border-color: rgba(245, 200, 66, 0.4); color: var(--gold); }

/* ===== Categories ===== */
.cats { margin-bottom: 6px; }
.cat-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; min-width: 78px; transition: 0.15s; }
.cat-btn.active { background: var(--gold); border-color: transparent; }
.cat-btn.active .cat-name { color: #0a0a0f; }
.cat-emoji { font-size: 24px; }
.cat-name { font-size: 10px; font-weight: 700; color: var(--text2); white-space: nowrap; }

/* ===== Cake header ===== */
.cake-header { display: flex; justify-content: space-between; align-items: flex-end; margin: 26px 0 14px; }
.cake-sub { font-size: 12px; color: var(--text3); margin: 4px 0 0; }
.see-all { font-size: 13px; font-weight: 700; color: var(--gold); }
.cake-row { margin-bottom: 6px; }
.cake-card { min-width: 190px; max-width: 190px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }

/* ===== Product grid ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 40px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: 0.18s; }
.card:hover { transform: translateY(-3px); border-color: rgba(245, 200, 66, 0.3); }
.card-img, .cake-img-box { position: relative; height: 150px; background: #0f0f17; }
.cake-img-box { height: 130px; }
.card-img img, .cake-img-box img { width: 100%; height: 100%; object-fit: cover; }
.fallback-emoji { font-size: 52px; height: 100%; display: grid; place-items: center; }

.fav-btn { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 15px; background: rgba(15, 23, 42, 0.72); border: 1px solid rgba(255, 255, 255, 0.08); display: grid; place-items: center; font-size: 16px; color: var(--text1); z-index: 3; }
.fav-btn.active { background: rgba(255, 71, 87, 0.18); border-color: rgba(255, 71, 87, 0.35); color: #ff8897; }
.tag-badge { position: absolute; top: 8px; left: 8px; background: var(--emerald); color: #fff; font-size: 8px; font-weight: 700; border-radius: 20px; padding: 3px 8px; }
.disc-badge { position: absolute; top: 44px; right: 8px; background: var(--gold); color: #0a0a0f; font-size: 8px; font-weight: 800; border-radius: 20px; padding: 3px 8px; }
.stock-badge { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(15, 23, 42, 0.84); border-radius: 10px; padding: 6px; text-align: center; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.4px; }

.card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cake-body { padding: 10px; }
.product-name { font-size: 13px; font-weight: 600; color: var(--text1); line-height: 1.35; }
.cake-name { font-weight: 700; }
.product-unit { font-size: 10px; color: var(--text3); }
.stars-row { display: flex; align-items: center; gap: 4px; }
.star { color: var(--gold); font-size: 10px; }
.rating-num { font-size: 10px; color: var(--text2); }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; }
.price { font-size: 16px; font-weight: 800; color: var(--text1); }
.mrp { font-size: 11px; color: var(--text3); text-decoration: line-through; margin-left: 6px; }

.add-btn { background: var(--gold); color: #0a0a0f; font-weight: 700; font-size: 12px; border-radius: 8px; padding: 7px 13px; }
.add-btn.disabled { background: #475569; color: #e2e8f0; cursor: not-allowed; }
.qty-control { display: flex; align-items: center; gap: 10px; background: var(--gold); border-radius: 8px; padding: 5px 10px; }
.qty-btn { color: #0a0a0f; font-weight: 800; font-size: 18px; line-height: 1; width: 16px; }
.qty-num { color: #0a0a0f; font-weight: 800; font-size: 13px; min-width: 14px; text-align: center; }

/* ===== Empty ===== */
.empty { text-align: center; padding: 60px 0; }
.empty-emoji { font-size: 48px; }
.empty-text { font-size: 18px; color: var(--text2); font-weight: 600; margin-top: 12px; }
.empty-hint { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 20px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 40px; padding-bottom: 24px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--text2); font-size: 13px; line-height: 1.6; margin: 12px 0 16px; }
.store-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.store-badge { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-full); padding: 6px 12px; font-size: 11px; font-weight: 700; color: var(--text2); }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin: 0 0 4px; }
.footer-col a { font-size: 13px; color: var(--text2); transition: 0.15s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { padding-top: 20px; padding-bottom: 30px; border-top: 1px solid var(--border); color: var(--text3); font-size: 12px; }

/* ===== Sticky cart bar ===== */
.cart-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 560px; z-index: 40;
  background: var(--gold); color: #0a0a0f; border-radius: var(--r-lg);
  padding: 15px 22px; display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 10px 30px rgba(245, 200, 66, 0.35);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.cart-bar-left { display: flex; align-items: center; gap: 10px; }
.cart-bar-count { background: rgba(0, 0, 0, 0.15); border-radius: 8px; padding: 2px 10px; font-weight: 800; font-size: 14px; }
.cart-bar-label { font-weight: 700; font-size: 14px; }
.cart-bar-total { font-weight: 800; font-size: 16px; }

/* ===== Cart drawer ===== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 60; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 61;
  background: var(--surface); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.28s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.drawer-close { width: 34px; height: 34px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); font-size: 15px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-empty { text-align: center; padding: 60px 0; color: var(--text3); }
.drawer-empty .empty-emoji { font-size: 44px; margin-bottom: 12px; }

.line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.line-img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #0f0f17; flex-shrink: 0; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-mid { flex: 1; min-width: 0; }
.line-name { font-size: 13px; font-weight: 600; }
.line-unit { font-size: 11px; color: var(--text3); }
.line-price { font-size: 13px; font-weight: 800; margin-top: 4px; }
.line-qty { display: flex; align-items: center; gap: 8px; background: var(--gold); border-radius: 8px; padding: 4px 8px; height: fit-content; align-self: center; }
.line-qty button { color: #0a0a0f; font-weight: 800; font-size: 16px; }
.line-qty span { color: #0a0a0f; font-weight: 800; font-size: 13px; min-width: 12px; text-align: center; }

.drawer-foot { border-top: 1px solid var(--border); padding: 16px 20px 22px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.summary-row.total { color: var(--text1); font-size: 16px; font-weight: 800; margin: 12px 0 16px; }
.free { color: var(--emerald); font-weight: 700; }
.checkout-btn { width: 100%; background: var(--gold); color: #0a0a0f; font-weight: 800; font-size: 15px; border-radius: var(--r-md); padding: 15px; }
.checkout-note { text-align: center; font-size: 11px; color: var(--text3); margin-top: 10px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card); border: 1px solid var(--border); color: var(--text1);
  padding: 12px 20px; border-radius: var(--r-full); font-size: 13px; font-weight: 600;
  z-index: 70; opacity: 0; pointer-events: none; transition: 0.25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .loc-text { display: none; }
  .location-pill { padding: 8px 10px; }
  .brand { font-size: 20px; }
  .banner { padding: 22px; }
  .banner-title { font-size: 22px; }
  .banner-emoji { font-size: 56px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-title { font-size: 18px; }
  .footer-inner { gap: 28px; }
  .footer-cols { gap: 32px; }
}
@media (max-width: 400px) {
  .card-img { height: 130px; }
}

/* ============================================================= */
/* ===== Auth / Account / Orders / Admin (added for web app) ==== */
/* ============================================================= */
#recaptcha-container { position: fixed; bottom: 0; }
.view[hidden] { display: none; }
.container.narrow { max-width: 640px; }

/* Header additions */
.login-btn { background: var(--gold); color: #0a0a0f; font-weight: 800; font-size: 13px; padding: 9px 16px; border-radius: var(--r-md); }
.acct-menu { position: relative; }
.acct-dropdown { position: absolute; right: 0; top: 46px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px; min-width: 210px; display: flex; flex-direction: column; gap: 2px; z-index: 55; box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.acct-dropdown .acct-name { font-size: 12px; color: var(--text3); padding: 8px 10px 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-weight: 700; }
.acct-dropdown a, .acct-dropdown button { text-align: left; padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text1); }
.acct-dropdown a:hover, .acct-dropdown button:hover { background: var(--glass); }
.acct-dropdown .admin-link { color: var(--gold); }

.pause-banner { background: rgba(255,71,87,0.12); border: 1px solid rgba(255,71,87,0.3); color: #ffb3ba; border-radius: var(--r-md); padding: 12px 16px; font-size: 13px; font-weight: 600; margin: 16px 0; }

/* Shared bits */
.back-link { display: inline-block; color: var(--text2); font-size: 13px; font-weight: 600; margin: 20px 0 8px; }
.back-link:hover { color: var(--gold); }
.page-title { font-size: 26px; font-weight: 800; margin: 6px 0 20px; }
.field-block { margin-bottom: 16px; }
.field-block label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 6px; }
.fld { width: 100%; background: #0f0f17; border: 1.5px solid rgba(255,255,255,0.09); border-radius: var(--r-md); padding: 14px; color: var(--text1); font-size: 14px; outline: none; font-family: inherit; }
.fld:focus { border-color: rgba(245,200,66,0.5); }
.fld:disabled { opacity: 0.6; }
.fld::placeholder { color: var(--text3); }
textarea.fld.addr { min-height: 84px; resize: vertical; line-height: 1.5; }
.submit-btn { width: 100%; background: var(--gold); color: #0a0a0f; font-weight: 800; font-size: 15px; border-radius: var(--r-md); padding: 15px; margin-top: 8px; box-shadow: 0 6px 18px rgba(245,200,66,0.28); }
.submit-btn:disabled { opacity: 0.7; }
.submit-btn.small { width: auto; padding: 11px 18px; font-size: 13px; box-shadow: none; margin: 0; }
.submit-btn.inline { width: auto; display: inline-block; margin-top: 16px; }
.link-btn { display: block; width: 100%; text-align: center; color: var(--gold); font-size: 13px; font-weight: 600; padding: 10px; }
.loading { text-align: center; color: var(--text3); padding: 40px; }

/* Auth view */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 30px 16px 60px; }
.logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.logo-box.big { width: 52px; height: 52px; border-radius: 14px; }
.logo-box.big img { width: 52px; height: 52px; object-fit: cover; }
.brand.xl { font-size: 24px; font-weight: 800; }
.tagline { font-size: 11px; color: var(--emerald); font-weight: 700; }
.auth-title { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.auth-sub { font-size: 13px; color: var(--text2); margin: 0 0 22px; line-height: 1.5; }
.tabs { display: flex; background: #0f0f17; border-radius: var(--r-md); padding: 4px; margin-bottom: 22px; }
.tab { flex: 1; padding: 11px; text-align: center; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--text2); }
.tab.active { background: var(--gold); color: #0a0a0f; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.phone-row { display: flex; gap: 8px; align-items: stretch; }
.phone-row .fld { flex: 1; }
.otp-btn { background: var(--gold); color: #0a0a0f; font-weight: 800; font-size: 13px; border-radius: var(--r-md); padding: 0 16px; white-space: nowrap; }
.otp-btn:disabled { opacity: 0.5; }
.verified-badge { display: flex; align-items: center; padding: 0 14px; border-radius: var(--r-md); background: rgba(16,185,129,0.15); border: 1.5px solid var(--emerald); color: var(--emerald); font-weight: 700; font-size: 13px; }
.otp-hint { font-size: 11px; color: var(--text3); margin-top: -4px; }
.loc-section { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.section-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--text3); }
.loc-btn { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 13px; border-radius: var(--r-md); background: rgba(16,185,129,0.08); border: 1.5px solid rgba(16,185,129,0.3); color: var(--emerald); font-weight: 700; font-size: 14px; }
.hint { font-size: 11px; color: var(--text3); }

/* Account */
.acct-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; margin-bottom: 22px; }
.acct-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #0a0a0f; font-weight: 800; font-size: 22px; display: grid; place-items: center; }
.acct-card-name { font-weight: 800; font-size: 16px; }
.acct-card-sub { font-size: 12px; color: var(--text2); }
.admin-chip { margin-left: auto; background: rgba(245,200,66,0.15); color: var(--gold); border: 1px solid rgba(245,200,66,0.4); font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 4px 10px; border-radius: var(--r-full); }
.acct-links { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.acct-link-row { display: block; text-align: left; width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 15px; font-size: 14px; font-weight: 600; }
.acct-link-row.admin { color: var(--gold); }
.acct-link-row.danger { color: var(--red); }

/* Orders */
.order-card, .admin-order { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 15px; margin-bottom: 12px; }
.order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-id { font-weight: 800; font-size: 13px; letter-spacing: 0.5px; }
.order-items { font-size: 13px; color: var(--text2); line-height: 1.5; }
.order-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.order-when { font-size: 11px; color: var(--text3); }
.order-total { font-size: 13px; font-weight: 800; }
.status-pill { font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: var(--r-full); text-transform: uppercase; letter-spacing: 0.5px; }
.s-placed { background: rgba(245,200,66,0.15); color: var(--gold); }
.s-accepted { background: rgba(139,92,246,0.15); color: #b794f6; }
.s-out_for_delivery { background: rgba(6,182,212,0.15); color: #4fd1e0; }
.s-delivered { background: rgba(16,185,129,0.15); color: var(--emerald); }
.s-cancelled { background: rgba(255,71,87,0.15); color: #ff8897; }
.track { margin-top: 12px; }
.track-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.track-fill { height: 100%; background: var(--gold); border-radius: 3px; transition: width 0.4s; }

/* Admin */
.admin-head { display: flex; align-items: center; gap: 12px; }
.admin-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-full); padding: 9px 18px; font-size: 13px; font-weight: 700; color: var(--text2); white-space: nowrap; }
.admin-tab.active { background: var(--gold); border-color: var(--gold); color: #0a0a0f; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 18px; }
.admin-stats.big { margin-bottom: 24px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; text-align: center; font-size: 11px; color: var(--text3); font-weight: 700; }
.stat b { display: block; font-size: 20px; color: var(--text1); margin-bottom: 4px; }
.admin-actionbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.muted { font-size: 12px; color: var(--text3); }
.admin-cust { font-size: 12px; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.admin-addr { font-size: 11px; color: var(--text3); margin-top: 6px; }
.status-select { background: #0f0f17; border: 1px solid var(--border); border-radius: 8px; color: var(--text1); padding: 7px 10px; font-size: 12px; font-weight: 600; }
.admin-prod, .admin-cust-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; margin-bottom: 10px; }
.admin-prod-img { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: #0f0f17; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.admin-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.admin-prod-mid, .admin-cust-mid { flex: 1; min-width: 0; }
.admin-prod-name { font-size: 14px; font-weight: 700; }
.admin-prod-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }
.admin-prod-sub s { color: var(--text3); }
.oos { background: rgba(255,71,87,0.15); color: #ff8897; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 6px; margin-left: 4px; }
.admin-prod-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mini-btn { background: var(--glass); border: 1px solid var(--border); border-radius: 8px; padding: 7px 11px; font-size: 12px; font-weight: 700; color: var(--text1); }
.mini-btn.on { background: rgba(16,185,129,0.15); color: var(--emerald); border-color: rgba(16,185,129,0.3); }
.mini-btn.danger { color: var(--red); }
.admin-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 800; }
.prod-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; margin-bottom: 18px; }
.prod-form h3 { margin: 0 0 14px; font-size: 16px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-grid .wide { grid-column: 1 / -1; }
.pf-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.kill-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.25); border-radius: var(--r-lg); padding: 22px; flex-wrap: wrap; }
.kill-card.paused { background: rgba(255,71,87,0.06); border-color: rgba(255,71,87,0.25); }
.kill-title { font-size: 17px; font-weight: 800; }
.kill-sub { font-size: 12px; color: var(--text2); margin-top: 4px; }
.kill-btn { font-weight: 800; font-size: 14px; padding: 13px 22px; border-radius: var(--r-md); }
.kill-btn.pause { background: var(--red); color: #fff; }
.kill-btn.resume { background: var(--emerald); color: #04231a; }
.pause-note { background: rgba(255,71,87,0.12); border: 1px solid rgba(255,71,87,0.3); color: #ffb3ba; border-radius: 8px; padding: 10px; font-size: 12px; font-weight: 600; margin: 8px 0; }
.pay-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); display: block; margin: 14px 0 8px; }
.pay-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pay-opt { display: flex; align-items: center; gap: 10px; background: #0f0f17; border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; font-size: 13px; font-weight: 600; cursor: pointer; }

@media (max-width: 520px) {
  .pf-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .admin-prod-actions { flex-direction: column; }
}
