:root{
  --bg:#07120e; --bg-soft:#0d1b16; --panel:rgba(9,22,17,0.9); --panel-strong:rgba(10,26,20,0.92);
  --line:rgba(255,255,255,0.08); --line-strong:rgba(255,255,255,0.14); --text:#f2fbf5; --muted:#9cbca8;
  --primary:#008751; --primary-2:#15b772; --danger:#dd5d73; --shadow:0 18px 70px rgba(0,0,0,0.35); --radius:28px; --radius-sm:18px;
}
body[data-theme="light"]{--bg:#f4faf6;--bg-soft:#ffffff;--panel:rgba(255,255,255,.9);--panel-strong:#ffffff;--line:rgba(11,31,19,.09);--line-strong:rgba(11,31,19,.16);--text:#0c1912;--muted:#5f7568;--shadow:0 18px 60px rgba(9,28,18,.08)}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:radial-gradient(circle at top left, rgba(0,135,81,.12), transparent 25%),radial-gradient(circle at 85% 10%, rgba(48,255,177,.08), transparent 20%),radial-gradient(circle at 20% 90%, rgba(0,135,81,.08), transparent 18%),linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb,var(--bg) 84%, black) 100%);min-height:100vh}
a{text-decoration:none;color:inherit}img{max-width:100%}.bg-grid{position:fixed;inset:0;pointer-events:none;opacity:.045;background-image:radial-gradient(#ffffff 1px, transparent 1px);background-size:26px 26px}.blob{position:fixed;border-radius:999px;filter:blur(18px);opacity:.16;pointer-events:none;animation:drift 14s ease-in-out infinite}.blob-a{width:260px;height:260px;background:#25ffad;top:8%;right:8%}.blob-b{width:180px;height:180px;background:#10a566;left:4%;bottom:14%;animation-delay:2s}.blob-c{width:120px;height:120px;background:#7ff0c2;left:48%;top:46%;animation-delay:4s}@keyframes drift{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(12px,-18px,0)}}
.container,.content-container{width:min(1220px,calc(100% - 32px));margin:0 auto}.app-shell-auth{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:100vh}.app-sidebar{position:sticky;top:0;height:100vh;padding:18px 0;border-right:1px solid var(--line);background:rgba(8,18,14,.76);backdrop-filter:blur(18px);overflow-y:auto;overflow-x:hidden}.sidebar-inner{display:flex;flex-direction:column;height:100%;padding:0 16px}.sidebar-brand-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.sidebar-brand-mark img{height:50px}.sidebar-close{display:none;border:0;background:transparent;color:var(--text);font-size:1.8rem;cursor:pointer}.sidebar-user-card,.card,.metric-card,.row-card,.chip-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.sidebar-user-card{padding:16px;display:flex;gap:12px;align-items:center;margin-bottom:18px}.sidebar-user-avatar{width:44px;min-width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-weight:800}.sidebar-user-meta{    overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}.sidebar-user-meta strong{display:block}.sidebar-user-meta span{font-size:.92rem;color:var(--muted)}.nav-section{margin-bottom:16px}.nav-section-title{margin:0 0 10px;padding:0 10px;color:var(--muted);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.nav-section-items{display:grid;gap:6px}.sidebar-link{display:block;padding:12px 14px;border-radius:18px;border:1px solid transparent;transition:all .2s ease}.sidebar-link:hover{background:rgba(255,255,255,.04);border-color:var(--line)}.sidebar-link.is-active{background:rgba(0,135,81,.16);border-color:rgba(0,135,81,.26)}.sidebar-link-copy{display:flex;flex-direction:column;min-width:0}.sidebar-link-copy small{color:var(--muted);line-height:1.35}.sidebar-footer{margin-top:auto;padding-top:12px;display:grid;gap:12px}.theme-switch{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 14px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--text);cursor:pointer}.theme-switch-track{position:relative;display:inline-grid;grid-template-columns:auto auto auto;gap:10px;align-items:center;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.06)}.theme-switch-thumb{position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--primary-2));transition:transform .2s ease}body[data-theme="light"] .theme-switch-thumb{transform:translateX(32px)}.theme-switch-label{font-weight:700}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--text);font-weight:700;cursor:pointer}.btn-primary{border-color:transparent;background:linear-gradient(135deg,var(--primary),var(--primary-2));box-shadow:0 12px 30px rgba(0,135,81,.28)}.btn-soft{background:rgba(255,255,255,.04)}.btn-block{width:100%}.app-main-shell{min-width:0}.app-topbar{position:sticky;top:0;z-index:20;padding:16px;background:linear-gradient(to bottom, rgba(7,18,14,.78), transparent);backdrop-filter:blur(8px)}.topbar-left{display:flex;align-items:center;gap:14px}.topbar-kicker{display:block;color:var(--muted);font-size:.82rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.topbar-copy h1{margin:.2rem 0 0;font-size:1.55rem}.sidebar-toggle{display:none;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text);padding:10px 12px;border-radius:14px}.site-header{padding:18px 0}.nav-wrap{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border:1px solid var(--line);border-radius:999px;background:rgba(7,17,13,0.66)}.brand-mark img{height:54px}.nav-actions{display:flex;gap:10px;align-items:center}.flash-stack{padding-top:14px}.flash{padding:14px 16px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,0.05)}.flash-success{background:#008751;border-color:#008751;color:white}.flash-error{background:#F40009;border-color:#F40009;color:white}.main-wrap{padding:24px 0 42px}.page-stack{display:grid;gap:22px}.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;background:rgba(0,135,81,.15);color:#b9ffd8;border:1px solid rgba(0,135,81,.28);font-size:.86rem;font-weight:800}.page-title{font-size:clamp(1.8rem,3vw,3rem);margin:.7rem 0 0}.lede,.muted{color:var(--muted)}.hero-card{display:grid;grid-template-columns:1.2fr .8fr;gap:22px;align-items:center}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.card,.metric-card{padding:22px}.metric-card label{display:block;color:var(--muted);margin-bottom:8px}.metric-card strong{font-size:1.4rem}.quick-link-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.workspace-link{padding:20px;border-radius:22px}.workspace-link strong{display:block;margin-bottom:6px}.section-card{padding:22px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.list,.stack-list{display:grid;gap:12px}.list-item,.row-card{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;border-radius:18px;border:1px solid var(--line);background:rgba(255,255,255,.03)}.list-item.interactive:hover,.row-card:hover{border-color:var(--line-strong)}.row-card-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.status-pill,.price-pill{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid var(--line);font-size:.85rem;font-weight:700}.chip-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chip-card{padding:16px}.chip-card span{display:block;color:var(--muted);margin-top:4px}.empty-state{padding:18px;border:1px dashed var(--line);border-radius:20px;background:rgba(255,255,255,.02)}.empty-state.compact{padding:14px}.form-grid{display:grid;gap:16px}.form-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.field-group{display:grid;gap:8px}.field-group-wide{grid-column:1/-1}.input, select, input[type="text"], input[type="email"], input[type="number"]{width:100%;min-height:48px;padding:0 14px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text)} input:disabled{opacity:.72}.field-error{color:#ffb6c3}.order-builder-grid{grid-template-columns:minmax(0,1fr) 360px;align-items:start}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.catalog-card{display:flex;justify-content:space-between;gap:18px;padding:18px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.03)}.catalog-card p{margin:.5rem 0 0}.catalog-meta{display:grid;gap:10px;align-content:start;justify-items:end}.qty-stepper{display:grid;grid-template-columns:40px 72px 40px 40px;gap:8px;align-items:center}.step-btn{height:40px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text);font-size:1.1rem;cursor:pointer}.step-delete{color:#ffd4dc;background:rgba(221,93,115,.08);border-color:rgba(221,93,115,.22)}.qty-input{text-align:center;font-weight:700;padding:0}.summary-list{display:grid;gap:10px;min-height:120px}.summary-line{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.summary-totals{display:grid;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.summary-totals > div{display:flex;justify-content:space-between;gap:12px}.summary-total-row{font-size:1.05rem}.detail-pairs{display:grid;gap:14px}.detail-pairs > div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:10px}.padded-page{padding-top:4px}.referral-hero{display:grid;gap:8px}.referral-hero strong{font-size:1.6rem;letter-spacing:.06em}.sidebar-backdrop{display:none}
@media (max-width: 1100px){.hero-card,.order-builder-grid,.grid-3,.quick-link-grid{grid-template-columns:1fr 1fr}.catalog-grid{grid-template-columns:1fr}.chip-list{grid-template-columns:1fr 1fr}}
@media (max-width: 900px){.app-shell-auth{grid-template-columns:1fr}.app-sidebar{position:fixed;left:0;top:0;width:min(320px,88vw);transform:translateX(-100%);transition:transform .22s ease;z-index:40}.app-shell.sidebar-open .app-sidebar{transform:translateX(0)}.sidebar-toggle,.sidebar-close{display:inline-flex}.sidebar-backdrop{position:fixed;inset:0;background:rgba(4,11,8,.48);display:none;z-index:35}.app-shell.sidebar-open .sidebar-backdrop{display:block}.grid-2,.grid-3,.quick-link-grid,.hero-card,.form-grid-2,.order-builder-grid{grid-template-columns:1fr}.topbar-copy h1{font-size:1.3rem}.container,.content-container{width:min(100%,calc(100% - 24px))}}


/* Theme switcher and light-mode sidebar refinement */
.theme-switch{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.theme-switch:hover{
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  transform: translateY(-1px);
}
.theme-switch:focus-visible{
  outline: none;
  border-color: rgba(0,135,81,.55);
  box-shadow: 0 0 0 4px rgba(0,135,81,.16);
}
.theme-switch-track{
  position: relative;
  display: inline-grid;
  grid-template-columns: 28px 42px 28px;
  align-items: center;
  gap: 8px;
}
.theme-switch-icon{
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1;
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
}
.theme-switch-thumb{
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
}
.theme-switch-thumb::after{
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #d8e8de);
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  transition: transform .2s ease, background .2s ease;
}
.theme-switch-label{
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .01em;
}
body[data-theme="light"] .theme-switch{
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,247,243,.94));
  border-color: rgba(12,25,18,.1);
  box-shadow: 0 10px 24px rgba(15,32,23,.06), inset 0 1px 0 rgba(255,255,255,.9);
}
body[data-theme="light"] .theme-switch:hover{
  border-color: rgba(12,25,18,.16);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(245,250,247,1));
}
body[data-theme="light"] .theme-switch-thumb{
  background: rgba(12,25,18,.06);
  border-color: rgba(12,25,18,.08);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.7);
}
body[data-theme="light"] .theme-switch-thumb::after{
  background: linear-gradient(180deg, #ffffff, #eef5f0);
}
body[data-theme="light"] .app-sidebar{
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(247,251,248,.95));
  border-right-color: rgba(12,25,18,.08);
  box-shadow: 18px 0 48px rgba(12,25,18,.05);
}
body[data-theme="light"] .app-topbar{
  background: linear-gradient(to bottom, rgba(244,250,246,.92), rgba(244,250,246,0));
}
body[data-theme="light"] .sidebar-user-card,
body[data-theme="light"] .catalog-card,
body[data-theme="light"] .list-item,
body[data-theme="light"] .row-card,
body[data-theme="light"] .card,
body[data-theme="light"] .metric-card,
body[data-theme="light"] .section-card{
  background: rgba(255,255,255,.82);
  border-color: rgba(12,25,18,.08);
}
body[data-theme="light"] .sidebar-user-avatar{
  background: linear-gradient(135deg, rgba(0,135,81,.14), rgba(0,135,81,.24));
  color: #04623d;
}
body[data-theme="light"] .nav-section-title,
body[data-theme="light"] .topbar-kicker,
body[data-theme="light"] .muted,
body[data-theme="light"] .lede,
body[data-theme="light"] .sidebar-user-meta span,
body[data-theme="light"] .sidebar-link small{
  color: #5f7568;
}
body[data-theme="light"] .sidebar-link{
  background: transparent;
}
body[data-theme="light"] .sidebar-link:hover{
  background: rgba(0,135,81,.06);
  border-color: rgba(0,135,81,.12);
}
body[data-theme="light"] .sidebar-link.is-active{
  background: linear-gradient(180deg, rgba(0,135,81,.1), rgba(0,135,81,.06));
  border-color: rgba(0,135,81,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
body[data-theme="light"] .sidebar-link.is-active strong{
  color: #075938;
}
body[data-theme="light"] .theme-switch-icon-sun,
body[data-theme="light"] .theme-switch-icon:first-child{
  color: #b57900;
}
body[data-theme="dark"] .theme-switch-icon:last-child{
  color: #c6d5ff;
}
body[data-theme="light"] .theme-switch-thumb::after{
  transform: translateX(18px);
}
@media (max-width: 900px){
  .theme-switch{width: 100%; justify-content: space-between;}
}

/* Visible customer page redesign */
.visible-redesign{gap:26px}
.customer-home{padding:4px 0 8px}
.customer-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:22px;align-items:stretch;padding:30px;border-radius:30px;background:linear-gradient(135deg, rgba(0,135,81,.18), rgba(255,255,255,.03));border:1px solid rgba(0,135,81,.22);box-shadow:var(--shadow)}
.customer-hero-title,.customer-order-title{font-size:clamp(2rem,3.2vw,3.35rem);line-height:1.02;margin:.8rem 0 0;max-width:12ch}
.customer-hero-text{max-width:60ch;margin-top:1rem}
.customer-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:1.25rem}
.customer-hero-panel{display:flex;align-items:stretch}
.hero-panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
.hero-stat-card{padding:18px;border-radius:22px;background:rgba(255,255,255,.06);border:1px solid var(--line);min-height:120px;display:flex;flex-direction:column;justify-content:space-between}
.hero-stat-card span{font-size:.82rem;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:700}
.hero-stat-card strong{font-size:1.6rem;line-height:1.05}
.hero-stat-card-accent{background:linear-gradient(180deg, rgba(0,135,81,.2), rgba(0,135,81,.08));border-color:rgba(0,135,81,.28)}
.customer-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.customer-action-card{padding:22px;border-radius:24px;min-height:176px;display:grid;gap:10px;align-content:start;background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));border:1px solid var(--line);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.customer-action-card:hover{transform:translateY(-2px);border-color:rgba(0,135,81,.28);box-shadow:0 18px 40px rgba(0,0,0,.16)}
.customer-action-card strong{font-size:1.18rem}
.customer-action-card p{margin:0;color:var(--muted);line-height:1.5}
.customer-action-tag{display:inline-flex;align-items:center;justify-content:center;width:max-content;padding:7px 10px;border-radius:999px;background:rgba(0,135,81,.14);border:1px solid rgba(0,135,81,.24);color:#bcffd8;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.customer-section-grid,.customer-feature-grid{display:grid;grid-template-columns:1fr;gap:18px}
.customer-panel,.customer-feature-panel{padding:24px;border-radius:26px}
.customer-panel-head{display:flex;justify-content:space-between;gap:16px;align-items:start;margin:16px 0}
.customer-panel-head h3{margin:.35rem 0 0;font-size:1.35rem}
.eyebrow-subtle{background:rgba(255,255,255,.04);border-color:var(--line);color:var(--muted);padding:7px 11px;font-size:.76rem}
.text-link{font-weight:700;color:var(--primary-2)}
.customer-timeline{display:grid;gap:12px}
.timeline-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;border-radius:20px;border:1px solid var(--line);background:rgba(255,255,255,.03);transition:border-color .18s ease,transform .18s ease}
.timeline-row:hover{border-color:rgba(0,135,81,.24);transform:translateY(-1px)}
.timeline-row p{margin:.3rem 0 0}.timeline-meta{display:flex;align-items:center;gap:10px}.timeline-row-static:hover{transform:none}
.feature-chip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.feature-chip-card{padding:18px;border-radius:20px;border:1px solid var(--line);background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));display:grid;gap:6px}
.feature-chip-card strong{font-size:1rem}.feature-chip-card span{color:var(--muted)}
.feature-chip-card-game{background:linear-gradient(180deg, rgba(0,135,81,.16), rgba(255,255,255,.02))}
.customer-empty-state{border-radius:22px;background:rgba(255,255,255,.025)}
.customer-order-page{display:grid;gap:24px}
.customer-order-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;padding:28px;border-radius:28px;background:linear-gradient(135deg, rgba(0,135,81,.18), rgba(255,255,255,.03));border:1px solid rgba(0,135,81,.22)}
.customer-order-hero-note{display:flex;align-items:stretch}.hero-note-card{padding:20px;border-radius:22px;background:rgba(255,255,255,.05);border:1px solid var(--line);display:grid;align-content:start}.hero-note-card p{margin:.6rem 0 0;line-height:1.55}
.customer-order-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;align-items:start}.customer-order-config,.customer-menu-section,.customer-cart-card{padding:24px;border-radius:26px}
.customer-order-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.customer-input{min-height:54px;border-radius:18px;background:rgba(255,255,255,.05);border:1px solid var(--line);padding:0 16px;font-weight:600}
.customer-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.customer-menu-card{display:grid;gap:14px;padding:20px;border-radius:24px;border:1px solid var(--line);background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.customer-menu-topline{display:flex;justify-content:space-between;gap:10px;align-items:start}.customer-menu-topline strong{font-size:1.08rem}.customer-menu-copy p{margin:.55rem 0 0;line-height:1.55}.customer-menu-bottom{display:flex;justify-content:flex-end}
.customer-cart-card{position:sticky;top:104px;background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));border:1px solid rgba(0,135,81,.18)}
.customer-summary-totals{margin-top:18px;padding-top:18px}.customer-submit-btn{margin-top:16px;min-height:52px;border-radius:18px;font-size:1rem}
.summary-line{padding:12px 0}.full-span{grid-column:1/-1}
.qty-stepper{grid-template-columns:44px 78px 44px 44px;gap:9px}.step-btn{height:44px;border-radius:16px;background:rgba(255,255,255,.06)}.qty-input{height:44px;border-radius:16px}
body[data-theme="light"] .customer-hero,
body[data-theme="light"] .customer-order-hero{background:linear-gradient(135deg, rgba(0,135,81,.12), rgba(255,255,255,.92));border-color:rgba(0,135,81,.16)}
body[data-theme="light"] .hero-stat-card,
body[data-theme="light"] .hero-note-card,
body[data-theme="light"] .customer-action-card,
body[data-theme="light"] .timeline-row,
body[data-theme="light"] .feature-chip-card,
body[data-theme="light"] .customer-menu-card,
body[data-theme="light"] .customer-cart-card{background:rgba(255,255,255,.88)}
body[data-theme="light"] .customer-action-tag{color:#066b43;background:rgba(0,135,81,.1)}
@media (max-width: 1200px){.customer-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-order-layout{grid-template-columns:1fr 340px}.customer-menu-grid{grid-template-columns:1fr 1fr}}
@media (max-width: 960px){.customer-hero,.customer-order-hero,.customer-section-grid,.customer-feature-grid,.customer-order-layout,.customer-order-form-grid,.customer-menu-grid{grid-template-columns:1fr}.customer-cart-card{position:static}.customer-hero-title,.customer-order-title{max-width:none}.customer-action-grid{grid-template-columns:1fr}.hero-panel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px){.customer-hero,.customer-order-hero,.customer-panel,.customer-feature-panel,.customer-order-config,.customer-menu-section,.customer-cart-card{padding:18px}.hero-panel-grid,.feature-chip-grid{grid-template-columns:1fr}.customer-menu-topline{flex-direction:column;align-items:flex-start}.qty-stepper{grid-template-columns:40px minmax(56px,1fr) 40px 40px;width:100%}.customer-menu-bottom{justify-content:stretch}.customer-menu-bottom .qty-stepper{width:100%}}
.customer-blocked-head {
    margin-top: 1rem;
}

.customer-menu-card-blocked {
    opacity: 0.72;
    border: 1px solid rgba(255, 107, 107, 0.18);
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.06), rgba(255, 255, 255, 0.03));
}

.customer-blocked-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.24);
    color: #ffe3e3;
    font-size: 0.82rem;
    line-height: 1;
}

.customer-blocked-note {
    margin-top: 0.5rem;
    color: rgba(255, 236, 236, 0.88);
}


/* =========================
   THEME SWITCHER: ICON ONLY
   Paste at end of site.css
   ========================= */

.theme-switch {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 auto !important;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
  flex-shrink: 0;
}

.theme-switch:hover {
  transform: translateY(-1px);
}

.theme-switch:active {
  transform: translateY(0);
}

.theme-switch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.22);
}

.theme-switch-track {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.theme-switch-label,
.theme-switch-thumb {
  display: none !important;
}

.theme-switch-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  width: 1em;
  height: 1em;
}

.theme-switch-icon:empty {
  display: none !important;
}

body[data-theme="dark"] .theme-switch {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

body[data-theme="dark"] .theme-switch:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

body[data-theme="light"] .theme-switch {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body[data-theme="light"] .theme-switch:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
}

/* Dark mode switcher */
body[data-theme="dark"] .theme-switch {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

body[data-theme="dark"] .theme-switch:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Light mode switcher */
body[data-theme="light"] .theme-switch {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body[data-theme="light"] .theme-switch:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
}

/* Optional: make it sit nicely in nav/button rows */
.nav-actions .theme-switch,
.topbar-right .theme-switch,
.sidebar-footer .theme-switch {
  margin: 0;
}

.public-nav-link {
  color: var(--muted);
  font-weight: 800;
  padding: 10px 4px;
  white-space: nowrap;
}

.public-nav-link:hover {
  color: var(--text);
}

.site-footer {
  padding: 6px 0 28px;
}

.site-copyright {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
}

.sidebar-footer .site-copyright {
  padding: 0 6px;
  font-size: .7rem;
}

@media (max-width: 680px) {
  .site-header-public .nav-wrap {
    gap: 10px;
  }

  .site-header-public .nav-actions {
    gap: 8px;
  }

  .site-header-public .public-nav-link,
  .site-header-public .public-auth-secondary {
    display: none;
  }

  .site-header-public .public-auth-primary {
    min-height: 40px;
    padding: 0 13px;
  }
}

/* ---- Topbar bell ---- */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  transition: background .18s;
  text-decoration: none;
}
.topbar-bell:hover {
  background: rgba(255,255,255,.08);
}
.topbar-bell-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

/* =========================
   LIGHT MODE SIDEBAR TUNE
   ========================= */

body[data-theme="light"] .app-sidebar {
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

body[data-theme="light"] .sidebar-inner {
  color: #0f172a;
}

body[data-theme="light"] .sidebar-user-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .sidebar-user-avatar {
  background: rgba(0, 135, 81, 0.12);
  color: #008751;
}

body[data-theme="light"] .sidebar-user-meta strong {
  color: #0f172a;
}

body[data-theme="light"] .sidebar-user-meta span,
body[data-theme="light"] .nav-section-title,
body[data-theme="light"] .sidebar-link small,
body[data-theme="light"] .topbar-kicker {
  color: #64748b;
}

body[data-theme="light"] .sidebar-link {
  color: #0f172a;
  border: 1px solid transparent;
  background: transparent;
}

body[data-theme="light"] .sidebar-link:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .sidebar-link.is-active {
  background: rgba(0, 135, 81, 0.08);
  border-color: rgba(0, 135, 81, 0.18);
  color: #006a40;
}

body[data-theme="light"] .sidebar-link.is-active strong,
body[data-theme="light"] .sidebar-link strong {
  color: inherit;
}

body[data-theme="light"] .app-topbar {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

body[data-theme="light"] .topbar-copy h1 {
  color: #0f172a;
}

body[data-theme="light"] .sidebar-backdrop {
  background: rgba(15, 23, 42, 0.24);
}

/* =========================
   AUTH / LOGIN PAGE FIX
   ========================= */

.auth-layout {
  display: grid;
  gap: 32px;
  align-items: start;
  padding: 40px 0 64px;
  justify-items: center;
  max-width: 700px;
}

.auth-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 32px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.auth-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.auth-copy .lede {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.76);
}

.showcase-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.showcase-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 16px 18px;
}

.showcase-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.showcase-card span {
  display: block;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.auth-form-panel {
  min-width: 0;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.auth-logo img {
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
}

.form-theme .field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-theme label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-theme input,
.form-theme select,
.form-theme textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  padding: 0 16px;
  font-size: 1rem;
}

.form-theme input:focus,
.form-theme select:focus,
.form-theme textarea:focus {
  outline: none;
  border-color: rgba(0, 135, 81, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.18);
}

.auth-form-panel .btn.btn-primary.btn-block {
  min-height: 54px;
  border-radius: 18px;
  font-weight: 700;
  margin-top: 6px;
}

.form-hint {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-switch-link {
  text-align: center;
}

.auth-switch-link a {
  color: #b9ffd8;
  font-weight: 800;
  text-decoration: none;
}

.auth-switch-link a:hover {
  text-decoration: underline;
}

body[data-theme="light"] .auth-panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .auth-copy .lede,
body[data-theme="light"] .showcase-card span,
body[data-theme="light"] .form-hint {
  color: #5b6879;
}

body[data-theme="light"] .auth-switch-link a {
  color: #008751;
}

body[data-theme="light"] .showcase-card {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .form-theme input,
body[data-theme="light"] .form-theme select,
body[data-theme="light"] .form-theme textarea {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0 48px;
  }

  .auth-panel {
    padding: 24px;
  }

  .auth-copy h1 {
    font-size: 2.2rem;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Light-mode public header fix */
body[data-theme="light"] .site-header.site-header-public {
  background: transparent;
}

body[data-theme="light"] .site-header-public .nav-wrap {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

body[data-theme="light"] .site-header-public .brand-mark {
  filter: none;
}

body[data-theme="light"] .site-header-public .btn.btn-primary {
  box-shadow: 0 8px 20px rgba(0, 135, 81, 0.16);
}

body[data-theme="light"] .site-header-public .theme-switch {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body[data-theme="light"] .site-header-public .theme-switch:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
}

/* =========================
   ADMIN / STAFF DASHBOARD REFINEMENT
   ========================= */
.admin-visible-redesign{gap:26px;padding:4px 0 12px}
.admin-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:22px;align-items:stretch;padding:30px;border-radius:30px;background:linear-gradient(135deg, rgba(0,135,81,.18), rgba(255,255,255,.03));border:1px solid rgba(0,135,81,.22);box-shadow:var(--shadow)}
.staff-hero{background:linear-gradient(135deg, rgba(0,135,81,.14), rgba(255,255,255,.02))}
.admin-hero-title{font-size:clamp(2rem,3.1vw,3.25rem);line-height:1.04;margin:.8rem 0 0;max-width:13ch}
.admin-hero-text{max-width:66ch;margin-top:1rem}
.admin-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:1.25rem}
.admin-hero-panel{display:flex;align-items:stretch}
.admin-hero-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
.admin-stat-card{padding:18px;border-radius:22px;background:rgba(255,255,255,.06);border:1px solid var(--line);min-height:120px;display:flex;flex-direction:column;justify-content:space-between}
.admin-stat-card span{font-size:.82rem;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:700}
.admin-stat-card strong{font-size:1.6rem;line-height:1.05}
.admin-stat-card-accent{background:linear-gradient(180deg, rgba(0,135,81,.2), rgba(0,135,81,.08));border-color:rgba(0,135,81,.28)}
.admin-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.staff-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.admin-quick-card{padding:22px;border-radius:24px;min-height:176px;display:grid;gap:10px;align-content:start;background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));border:1px solid var(--line);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.admin-quick-card:hover{transform:translateY(-2px);border-color:rgba(0,135,81,.28);box-shadow:0 18px 40px rgba(0,0,0,.16)}
.admin-quick-card strong{font-size:1.18rem}
.admin-quick-card p{margin:0;color:var(--muted);line-height:1.5}
.admin-quick-tag{display:inline-flex;align-items:center;justify-content:center;width:max-content;padding:7px 10px;border-radius:999px;background:rgba(0,135,81,.14);border:1px solid rgba(0,135,81,.24);color:#bcffd8;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.admin-section-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}
.admin-panel{padding:24px;border-radius:26px}
.admin-panel-head{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:16px}
.admin-panel-head h3{margin:.35rem 0 0;font-size:1.35rem}
.admin-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.overview-tile{padding:18px;border-radius:20px;border:1px solid var(--line);background:rgba(255,255,255,.03);display:grid;gap:8px}
.overview-tile span{font-size:.82rem;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:700}
.overview-tile strong{font-size:1.45rem;line-height:1.06}
.admin-note-card{margin-top:16px;padding:18px;border-radius:20px;background:rgba(255,255,255,.03);border:1px solid var(--line)}
.admin-note-card p{margin:.55rem 0 0;line-height:1.55}
.admin-branch-list{display:grid;gap:12px}
.admin-branch-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;border-radius:20px;border:1px solid var(--line);background:rgba(255,255,255,.03);transition:border-color .18s ease,transform .18s ease}
.admin-branch-row:hover{border-color:rgba(0,135,81,.24);transform:translateY(-1px)}
.admin-branch-row p{margin:.3rem 0 0}
.admin-branch-row-static:hover{transform:none}
body[data-theme="light"] .admin-hero,
body[data-theme="light"] .staff-hero{background:linear-gradient(135deg, rgba(0,135,81,.12), rgba(255,255,255,.92));border-color:rgba(0,135,81,.16)}
body[data-theme="light"] .admin-stat-card,
body[data-theme="light"] .admin-quick-card,
body[data-theme="light"] .overview-tile,
body[data-theme="light"] .admin-note-card,
body[data-theme="light"] .admin-branch-row{background:rgba(255,255,255,.88)}
body[data-theme="light"] .admin-quick-tag{color:#066b43;background:rgba(0,135,81,.1)}
@media (max-width:1200px){.admin-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.staff-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-section-grid{grid-template-columns:1fr}}
@media (max-width:960px){.admin-hero,.admin-section-grid{grid-template-columns:1fr}.admin-quick-grid,.staff-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-hero-title{max-width:none}}
@media (max-width:640px){.admin-hero,.admin-panel,.admin-quick-card{padding:18px}.admin-hero-stat-grid,.admin-overview-grid,.admin-quick-grid,.staff-quick-grid{grid-template-columns:1fr}}

.manual-page{display:grid;gap:22px}
.manual-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:20px;align-items:start;padding:28px}
.manual-hero h1{margin:8px 0 10px}
.manual-tour-panel{border:1px solid var(--line);border-radius:18px;padding:18px;background:rgba(255,255,255,.04)}
.manual-tour-panel p{margin:8px 0 14px;color:var(--muted)}
.manual-tour-actions{display:flex;flex-wrap:wrap;gap:8px}
.manual-grid{display:grid;grid-template-columns:310px minmax(0,1fr);gap:18px;align-items:start}
.manual-index{position:sticky;top:18px;padding:18px}
.manual-search label{display:block;margin-bottom:8px;color:var(--muted);font-size:.86rem;font-weight:700}
.manual-search-row{display:grid;gap:8px}
.manual-search-row input{width:100%;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.05);color:var(--text);padding:12px 14px}
.manual-section-list{display:grid;gap:8px;margin-top:18px}
.manual-section-list a{display:block;border:1px solid var(--line);border-radius:12px;padding:10px 12px;color:var(--text);text-decoration:none;background:rgba(255,255,255,.03)}
.manual-section-list a:hover{border-color:rgba(0,135,81,.55)}
.manual-content-stack{display:grid;gap:16px}
.manual-section{padding:22px;scroll-margin-top:20px}
.manual-section h2{margin:8px 0 12px}
.manual-markdown{color:var(--text)}
.manual-markdown h1{font-size:1.45rem;margin:0 0 12px}
.manual-markdown h2{font-size:1.15rem;margin:18px 0 8px}
.manual-markdown p{color:var(--muted);line-height:1.7;margin:0 0 12px}
.manual-markdown ul{margin:0 0 14px 20px;color:var(--muted);line-height:1.7}
.manual-markdown code{border:1px solid var(--line);border-radius:6px;padding:1px 5px;background:rgba(255,255,255,.06)}
@media (max-width:960px){.manual-hero,.manual-grid{grid-template-columns:1fr}.manual-index{position:static}}

.tour-highlight{position:relative;z-index:1002;outline:3px solid var(--primary);outline-offset:6px;border-radius:16px}
.tour-overlay{position:fixed;inset:0;z-index:1000;pointer-events:none}
.tour-scrim{position:absolute;inset:0;background:rgba(0,0,0,.48);pointer-events:auto}
.tour-card{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);width:min(520px,calc(100vw - 32px));border:1px solid var(--line);border-radius:18px;background:var(--panel-strong);box-shadow:0 24px 80px rgba(0,0,0,.35);padding:18px;pointer-events:auto}
.tour-card strong{display:block;font-size:1.05rem;margin-bottom:8px}
.tour-card p{margin:0 0 14px;color:var(--muted);line-height:1.55}
.tour-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.tour-card-actions span{margin-right:auto;color:var(--muted);font-size:.9rem}

/* =========================
   SUPERUSER DASHBOARD REFINEMENT
   ========================= */

.admin-dashboard-page {
  display: grid;
  gap: 24px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0,135,81,.18), rgba(255,255,255,.03));
  border: 1px solid rgba(0,135,81,.22);
  box-shadow: var(--shadow);
}

.admin-hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 13ch;
}

.admin-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.admin-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.admin-stat-card span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
}

.admin-stat-card strong {
  font-size: 1.7rem;
  line-height: 1.05;
}

.admin-stat-card-accent {
  background: linear-gradient(180deg, rgba(0,135,81,.20), rgba(0,135,81,.08));
  border-color: rgba(0,135,81,.28);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-module-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 185px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.admin-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,135,81,.28);
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
}

.admin-module-card strong {
  font-size: 1.18rem;
}

.admin-module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-module-card small {
  color: var(--muted);
  font-weight: 700;
}

.admin-module-card-su {
  border-color: rgba(0,135,81,.24);
  background: linear-gradient(180deg, rgba(0,135,81,.14), rgba(255,255,255,.03));
}

.admin-module-tag {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,135,81,.14);
  border: 1px solid rgba(0,135,81,.24);
  color: #bcffd8;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.admin-lower-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.admin-panel {
  padding: 24px;
  border-radius: 26px;
}

.admin-branch-item {
  text-decoration: none;
}

body[data-theme="light"] .admin-hero {
  background: linear-gradient(135deg, rgba(0,135,81,.12), rgba(255,255,255,.92));
  border-color: rgba(0,135,81,.16);
}

body[data-theme="light"] .admin-stat-card,
body[data-theme="light"] .admin-module-card {
  background: rgba(255,255,255,.9);
}

body[data-theme="light"] .admin-module-tag {
  color: #066b43;
  background: rgba(0,135,81,.10);
}

@media (max-width: 1200px) {
  .admin-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .admin-hero {
    grid-template-columns: 1fr;
  }

  .admin-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-hero,
  .admin-panel,
  .admin-module-card {
    padding: 18px;
  }

  .admin-module-grid,
  .admin-kpi-grid,
  .admin-hero-metrics {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SUPERUSER DASHBOARD LOWER SECTION TUNE
   ========================= */

.admin-panel-rich {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
}

.admin-branch-list {
  display: grid;
  gap: 14px;
}

.admin-branch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-branch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,135,81,.26);
  background: rgba(255,255,255,.05);
  box-shadow: 0 16px 32px rgba(0,0,0,.12);
}

.admin-branch-card-main strong {
  display: block;
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.admin-branch-card-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-branch-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.admin-branch-card-arrow {
  font-size: 1.1rem;
  color: var(--muted);
}

.admin-note-card-strong {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(0,135,81,.18);
  background: linear-gradient(180deg, rgba(0,135,81,.12), rgba(255,255,255,.02));
}

.admin-note-card-strong strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.admin-note-card-strong p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-summary-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.admin-summary-row span {
  color: var(--muted);
  font-weight: 600;
}

.admin-summary-row strong {
  font-size: 1.05rem;
  line-height: 1;
}

body[data-theme="light"] .admin-panel-rich,
body[data-theme="light"] .admin-branch-card,
body[data-theme="light"] .admin-summary-row {
  background: rgba(255,255,255,.92);
}

body[data-theme="light"] .admin-note-card-strong {
  background: linear-gradient(180deg, rgba(0,135,81,.08), rgba(255,255,255,.96));
  border-color: rgba(0,135,81,.14);
}

@media (max-width: 640px) {
  .admin-branch-card,
  .admin-summary-row {
    padding: 16px;
  }

  .admin-branch-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-branch-card-meta {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================
   STAFF DASHBOARD REFINEMENT
   ========================= */

.staff-dashboard-page {
  display: grid;
  gap: 24px;
}

.staff-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0,135,81,.14), rgba(255,255,255,.03));
  border: 1px solid rgba(0,135,81,.18);
  box-shadow: var(--shadow);
}

.staff-hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 13ch;
}

.staff-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.staff-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.staff-stat-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.staff-stat-card span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
}

.staff-stat-card strong {
  font-size: 1.7rem;
  line-height: 1.05;
}

.staff-stat-card-accent {
  background: linear-gradient(180deg, rgba(0,135,81,.18), rgba(0,135,81,.07));
  border-color: rgba(0,135,81,.24);
}

.staff-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.staff-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.staff-module-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 180px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.staff-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,135,81,.24);
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
}

.staff-module-card strong {
  font-size: 1.16rem;
}

.staff-module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.staff-module-card small {
  color: var(--muted);
  font-weight: 700;
}

.staff-module-tag {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,135,81,.14);
  border: 1px solid rgba(0,135,81,.22);
  color: #bcffd8;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.staff-lower-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.staff-panel {
  padding: 24px;
  border-radius: 26px;
}

.staff-panel-rich {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
}

.staff-branch-list {
  display: grid;
  gap: 14px;
}

.staff-branch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.staff-branch-card-main strong {
  display: block;
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.staff-branch-card-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.staff-note-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(0,135,81,.16);
  background: linear-gradient(180deg, rgba(0,135,81,.10), rgba(255,255,255,.02));
}

.staff-note-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.staff-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.staff-summary-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.staff-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.staff-summary-row span {
  color: var(--muted);
  font-weight: 600;
}

.staff-summary-row strong {
  font-size: 1.05rem;
  line-height: 1;
}

body[data-theme="light"] .staff-hero {
  background: linear-gradient(135deg, rgba(0,135,81,.10), rgba(255,255,255,.94));
  border-color: rgba(0,135,81,.14);
}

body[data-theme="light"] .staff-stat-card,
body[data-theme="light"] .staff-module-card,
body[data-theme="light"] .staff-panel-rich,
body[data-theme="light"] .staff-branch-card,
body[data-theme="light"] .staff-summary-row {
  background: rgba(255,255,255,.92);
}

body[data-theme="light"] .staff-note-card {
  background: linear-gradient(180deg, rgba(0,135,81,.08), rgba(255,255,255,.96));
  border-color: rgba(0,135,81,.12);
}

body[data-theme="light"] .staff-module-tag {
  color: #066b43;
  background: rgba(0,135,81,.10);
}

@media (max-width: 1200px) {
  .staff-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .staff-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .staff-hero,
  .staff-panel,
  .staff-module-card {
    padding: 18px;
  }

  .staff-module-grid,
  .staff-kpi-grid,
  .staff-hero-metrics {
    grid-template-columns: 1fr;
  }

  .staff-branch-card,
  .staff-summary-row {
    padding: 16px;
  }

  .staff-branch-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   BRANCHES CONSOLE REFINEMENT
   ========================= */

.branches-console-page {
  display: grid;
  gap: 22px;
}

.console-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0,135,81,.16), rgba(255,255,255,.03));
  border: 1px solid rgba(0,135,81,.18);
  box-shadow: var(--shadow);
}

.console-hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.console-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.console-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.console-stat-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.console-stat-card span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
}

.console-stat-card strong {
  font-size: 1.7rem;
  line-height: 1.05;
}

.console-stat-card-accent {
  background: linear-gradient(180deg, rgba(0,135,81,.18), rgba(0,135,81,.07));
  border-color: rgba(0,135,81,.24);
}

.console-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 24px;
}

.console-toolbar-copy p {
  margin: 6px 0 0;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.branch-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

.branch-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.branch-card-head h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  line-height: 1.1;
}

.branch-card-head p {
  margin: 0;
}

.branch-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.branch-meta-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}

.branch-meta-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
}

.branch-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state-wide {
  grid-column: 1 / -1;
  padding: 32px;
  border-radius: 24px;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,.03);
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

body[data-theme="light"] .console-hero {
  background: linear-gradient(135deg, rgba(0,135,81,.10), rgba(255,255,255,.94));
  border-color: rgba(0,135,81,.14);
}

body[data-theme="light"] .console-stat-card,
body[data-theme="light"] .branch-card,
body[data-theme="light"] .branch-meta-item,
body[data-theme="light"] .empty-state-wide {
  background: rgba(255,255,255,.92);
}

@media (max-width: 1100px) {
  .console-hero,
  .branch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .console-hero,
  .branch-card,
  .console-toolbar {
    padding: 18px;
  }

  .console-hero-metrics,
  .branch-meta-grid {
    grid-template-columns: 1fr;
  }

  .branch-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   BRANCHES CONSOLE REFINEMENT
   ========================= */

.branches-console-page {
  display: grid;
  gap: 22px;
}

.console-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0,135,81,.16), rgba(255,255,255,.03));
  border: 1px solid rgba(0,135,81,.18);
  box-shadow: var(--shadow);
}

.console-hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.console-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.console-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.console-stat-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.console-stat-card span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
}

.console-stat-card strong {
  font-size: 1.7rem;
  line-height: 1.05;
}

.console-stat-card-accent {
  background: linear-gradient(180deg, rgba(0,135,81,.18), rgba(0,135,81,.07));
  border-color: rgba(0,135,81,.24);
}

.console-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 24px;
}

.console-toolbar-copy p {
  margin: 6px 0 0;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.branch-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

.branch-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.branch-card-head h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  line-height: 1.1;
}

.branch-card-head p {
  margin: 0;
}

.branch-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.branch-meta-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}

.branch-meta-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
}

.branch-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state-wide {
  grid-column: 1 / -1;
  padding: 32px;
  border-radius: 24px;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,.03);
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

body[data-theme="light"] .console-hero {
  background: linear-gradient(135deg, rgba(0,135,81,.10), rgba(255,255,255,.94));
  border-color: rgba(0,135,81,.14);
}

body[data-theme="light"] .console-stat-card,
body[data-theme="light"] .branch-card,
body[data-theme="light"] .branch-meta-item,
body[data-theme="light"] .empty-state-wide {
  background: rgba(255,255,255,.92);
}

@media (max-width: 1100px) {
  .console-hero,
  .branch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .console-hero,
  .branch-card,
  .console-toolbar {
    padding: 18px;
  }

  .console-hero-metrics,
  .branch-meta-grid {
    grid-template-columns: 1fr;
  }

  .branch-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   BRANCHES CONSOLE + LIST REFINEMENT
   ========================= */

.branches-console-page,
.branches-records-page {
  display: grid;
  gap: 22px;
}

.console-hero,
.records-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 22px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0,135,81,.16), rgba(255,255,255,.03));
  border: 1px solid rgba(0,135,81,.18);
  box-shadow: var(--shadow);
  align-items: end;
}

.console-hero-copy h1,
.records-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.console-hero-actions,
.records-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.console-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.console-stat-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.console-stat-card span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
}

.console-stat-card strong {
  font-size: 1.7rem;
  line-height: 1.05;
}

.console-stat-card-accent {
  background: linear-gradient(180deg, rgba(0,135,81,.18), rgba(0,135,81,.07));
  border-color: rgba(0,135,81,.24);
}

.branches-console-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.branches-console-column {
  display: grid;
  gap: 18px;
}

.branches-console-column-wide {
  min-width: 0;
}

.branch-form-panel,
.branches-records-panel,
.delivery-areas-panel {
  padding: 24px;
  border-radius: 26px;
}

.console-form .field {
  display: grid;
  gap: 8px;
}

.branch-console-list,
.delivery-area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.branch-console-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.branch-console-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,135,81,.26);
  box-shadow: 0 16px 32px rgba(0,0,0,.12);
}

.branch-console-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.branch-console-card-main strong {
  font-size: 1.14rem;
  display: block;
}

.branch-console-card-main p {
  margin: 0 0 14px;
  color: var(--muted);
}

.branch-console-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.branch-meta-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.branch-console-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--muted);
}

.delivery-area-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.delivery-area-row p {
  margin: 6px 0 0;
}

.delivery-area-row-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.branch-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

.branch-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.branch-card-head h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  line-height: 1.1;
}

.branch-card-head p {
  margin: 0;
}

.branch-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.branch-meta-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}

.branch-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state-wide {
  grid-column: 1 / -1;
  padding: 32px;
  border-radius: 24px;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,.03);
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

body[data-theme="light"] .console-hero,
body[data-theme="light"] .records-hero {
  background: linear-gradient(135deg, rgba(0,135,81,.10), rgba(255,255,255,.94));
  border-color: rgba(0,135,81,.14);
}

body[data-theme="light"] .console-stat-card,
body[data-theme="light"] .branch-console-card,
body[data-theme="light"] .branch-card,
body[data-theme="light"] .branch-meta-item,
body[data-theme="light"] .delivery-area-row,
body[data-theme="light"] .empty-state-wide {
  background: rgba(255,255,255,.92);
}

@media (max-width: 1180px) {
  .branches-console-grid,
  .console-hero,
  .records-hero,
  .branch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .console-hero,
  .records-hero,
  .branch-form-panel,
  .branches-records-panel,
  .delivery-areas-panel,
  .branch-card {
    padding: 18px;
  }

  .console-hero-metrics,
  .branch-meta-grid,
  .branch-console-meta {
    grid-template-columns: 1fr;
  }

  .branch-card-head,
  .branch-console-card-head,
  .delivery-area-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .delivery-area-row-meta {
    justify-items: start;
  }

  .console-hero-actions,
  .records-hero-actions {
    justify-content: flex-start;
  }
}

/* =========================
   BRANCHES CONSOLE + DRAWER FORMS
   ========================= */

.branches-console-page,
.branches-records-page {
  display: grid;
  gap: 22px;
}

.console-hero,
.records-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 22px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0,135,81,.16), rgba(255,255,255,.03));
  border: 1px solid rgba(0,135,81,.18);
  box-shadow: var(--shadow);
  align-items: end;
}

.console-hero-copy h1,
.records-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.console-hero-actions,
.records-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.console-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.console-stat-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.console-stat-card span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
}

.console-stat-card strong {
  font-size: 1.7rem;
  line-height: 1.05;
}

.console-stat-card-accent {
  background: linear-gradient(180deg, rgba(0,135,81,.18), rgba(0,135,81,.07));
  border-color: rgba(0,135,81,.24);
}

.branches-console-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.branches-console-column {
  display: grid;
  gap: 18px;
}

.branches-console-column-wide {
  min-width: 0;
}

.branches-records-panel,
.delivery-areas-panel {
  padding: 24px;
  border-radius: 26px;
}

.branch-console-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.branch-console-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,135,81,.26);
  box-shadow: 0 16px 32px rgba(0,0,0,.12);
}

.branch-console-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.branch-console-card-main strong {
  font-size: 1.14rem;
  display: block;
}

.branch-console-card-main p {
  margin: 0 0 14px;
  color: var(--muted);
}

.branch-console-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.branch-meta-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.branch-console-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--muted);
}

.delivery-area-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.delivery-area-row p {
  margin: 6px 0 0;
}

.delivery-area-row-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.branch-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

.branch-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.branch-card-head h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  line-height: 1.1;
}

.branch-card-head p {
  margin: 0;
}

.branch-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.branch-meta-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}

.branch-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state-wide {
  grid-column: 1 / -1;
  padding: 32px;
  border-radius: 24px;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,.03);
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

/* Drawer */
.console-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 70;
}

.console-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 92vw);
  height: 100vh;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 50px rgba(0,0,0,.22);
  transform: translateX(100%);
  transition: transform .24s ease;
  z-index: 80;
  overflow-y: auto;
}

.console-drawer.is-open {
  transform: translateX(0);
}

.console-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.console-drawer-inner {
  padding: 24px;
  display: grid;
  gap: 22px;
}

.console-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.console-drawer-head h3 {
  margin: .4rem 0 0;
}

.console-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: inherit;
  cursor: pointer;
  font-size: 1.15rem;
}

.console-form-polished .field,
.console-form-polished .polished-field {
  display: grid;
  gap: 8px;
}

.console-form-polished label {
  font-weight: 700;
  font-size: .95rem;
}

.console-form-polished input,
.console-form-polished select,
.console-form-polished textarea {
  width: 100%;
  min-height: unset;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: inherit;
  padding: 0 16px;
  font-size: 1rem;
}

.console-form-polished textarea {
  min-height: 120px;
  padding: 14px 16px;
}

.console-form-polished input:focus,
.console-form-polished select:focus,
.console-form-polished textarea:focus {
  outline: none;
  border-color: rgba(0,135,81,.45);
  box-shadow: 0 0 0 3px rgba(0,135,81,.18);
}

.console-form-actions {
  padding-top: 4px;
}

.stack-18 {
  display: grid;
  gap: 18px;
}

body.drawer-open {
  overflow: hidden;
}

body[data-theme="light"] .console-hero,
body[data-theme="light"] .records-hero {
  background: linear-gradient(135deg, rgba(0,135,81,.10), rgba(255,255,255,.94));
  border-color: rgba(0,135,81,.14);
}

body[data-theme="light"] .console-stat-card,
body[data-theme="light"] .branch-console-card,
body[data-theme="light"] .branch-card,
body[data-theme="light"] .branch-meta-item,
body[data-theme="light"] .delivery-area-row,
body[data-theme="light"] .empty-state-wide,
body[data-theme="light"] .console-drawer {
  background: rgba(255,255,255,.96);
}

body[data-theme="light"] .console-form-polished input,
body[data-theme="light"] .console-form-polished select,
body[data-theme="light"] .console-form-polished textarea,
body[data-theme="light"] .console-drawer-close {
  background: #fff;
}

@media (max-width: 1180px) {
  .console-hero,
  .records-hero,
  .branch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .console-hero,
  .records-hero,
  .branches-records-panel,
  .delivery-areas-panel,
  .branch-card {
    padding: 18px;
  }

  .console-hero-metrics,
  .branch-meta-grid,
  .branch-console-meta {
    grid-template-columns: 1fr;
  }

  .branch-card-head,
  .branch-console-card-head,
  .delivery-area-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .delivery-area-row-meta {
    justify-items: start;
  }

  .console-hero-actions,
  .records-hero-actions {
    justify-content: flex-start;
  }

  .console-drawer-inner {
    padding: 18px;
  }
}

/* =========================
   GLOBAL FORM POLISH SYSTEM
   ========================= */

.console-form,
.form-theme,
.stack-16,
.stack-18 {
  --form-radius: 16px;
  --form-radius-sm: 12px;
  --form-border: var(--line);
  --form-bg: rgba(255,255,255,.05);
  --form-bg-soft: rgba(255,255,255,.03);
  --form-text: inherit;
  --form-muted: var(--muted);
  --form-danger: #ef4444;
  --form-danger-bg: rgba(239, 68, 68, 0.08);
  --form-success: #008751;
  --form-focus: rgba(0,135,81,.18);
}

.field,
.polished-field {
  display: grid;
  gap: 8px;
}

.field > label,
.polished-field > label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.field > label.required::after,
.polished-field > label.required::after {
  content: "*";
  color: var(--form-danger);
  font-weight: 800;
}

.console-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.console-form select,
.console-form textarea,
.form-theme input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.form-theme select,
.form-theme textarea {
  width: 100%;
  min-height: 52px;
  border-radius: var(--form-radius);
  border: 1px solid var(--form-border);
  background: var(--form-bg);
  color: var(--form-text);
  padding: 0 16px;
  font-size: 1rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.console-form textarea,
.form-theme textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.console-form select,
.form-theme select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.console-form input::placeholder,
.console-form textarea::placeholder,
.form-theme input::placeholder,
.form-theme textarea::placeholder {
  color: color-mix(in srgb, var(--form-muted) 85%, transparent);
}

.console-form input:not([type="checkbox"]):not([type="radio"]):focus,
.console-form select:focus,
.console-form textarea:focus,
.form-theme input:not([type="checkbox"]):not([type="radio"]):focus,
.form-theme select:focus,
.form-theme textarea:focus {
  outline: none;
  border-color: rgba(0,135,81,.45);
  box-shadow: 0 0 0 3px var(--form-focus);
}

.console-form input[aria-invalid="true"],
.console-form select[aria-invalid="true"],
.console-form textarea[aria-invalid="true"],
.form-theme input[aria-invalid="true"],
.form-theme select[aria-invalid="true"],
.form-theme textarea[aria-invalid="true"],
.console-form input:invalid:not(:placeholder-shown),
.console-form select:invalid,
.console-form textarea:invalid:not(:placeholder-shown),
.form-theme input:invalid:not(:placeholder-shown),
.form-theme select:invalid,
.form-theme textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(239,68,68,.55);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
  background: var(--form-danger-bg);
}

.errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.errorlist li {
  font-size: 0.88rem;
  font-weight: 600;
}

.form-hint,
.helptext {
  color: var(--form-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.console-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}

/* Toggle switch for checkbox rows */
.field.field-checkbox,
.polished-field.field-checkbox {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--form-border);
  background: var(--form-bg-soft);
}

.field.field-checkbox label,
.polished-field.field-checkbox label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.field.field-checkbox input[type="checkbox"],
.polished-field.field-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--form-border);
  background: rgba(148,163,184,.28);
  position: relative;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
  margin: 0;
  flex-shrink: 0;
}

.field.field-checkbox input[type="checkbox"]::before,
.polished-field.field-checkbox input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform .18s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}

.field.field-checkbox input[type="checkbox"]:checked,
.polished-field.field-checkbox input[type="checkbox"]:checked {
  background: rgba(0,135,81,.92);
  border-color: rgba(0,135,81,.92);
}

.field.field-checkbox input[type="checkbox"]:checked::before,
.polished-field.field-checkbox input[type="checkbox"]:checked::before {
  transform: translateX(18px);
}

.field.field-checkbox input[type="checkbox"]:focus-visible,
.polished-field.field-checkbox input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--form-focus);
}

/* Inline two-column option for future use */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 720px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Light mode tune */
body[data-theme="light"] .console-form,
body[data-theme="light"] .form-theme {
  --form-bg: #ffffff;
  --form-bg-soft: rgba(255,255,255,.92);
  --form-border: rgba(15,23,42,.10);
  --form-muted: #667085;
  --form-focus: rgba(0,135,81,.15);
}

/* =========================
   ACCOUNTS CONSOLE REFINEMENT
   ========================= */

.accounts-console-page {
  display: grid;
  gap: 22px;
}

.accounts-toolbar {
  padding: 20px 22px;
  border-radius: 24px;
}

.accounts-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr) auto;
  gap: 14px;
  align-items: end;
}

.accounts-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.accounts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-console-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 14px 32px rgba(0,0,0,.12);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.account-console-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,135,81,.24);
  box-shadow: 0 16px 36px rgba(0,0,0,.14);
}

.account-console-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,135,81,.14);
  border: 1px solid rgba(0,135,81,.22);
  color: #bcffd8;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.account-card-copy strong {
  display: block;
  font-size: 1.08rem;
}

.account-card-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.account-card-badges {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.account-console-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-meta-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}

.account-meta-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

body[data-theme="light"] .account-console-card,
body[data-theme="light"] .account-meta-item,
body[data-theme="light"] .accounts-toolbar {
  background: rgba(255,255,255,.92);
}

body[data-theme="light"] .account-avatar {
  color: #066b43;
  background: rgba(0,135,81,.10);
}

@media (max-width: 1100px) {
  .accounts-filter-bar,
  .accounts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .accounts-toolbar,
  .account-console-card {
    padding: 18px;
  }

  .account-console-card-top,
  .account-console-meta {
    grid-template-columns: 1fr;
  }

  .account-card-badges {
    justify-items: start;
  }
}

/* =========================
   BRANCH DETAIL REFINEMENT
   ========================= */

.branch-detail-page {
  display: grid;
  gap: 22px;
}

.branch-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 22px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0,135,81,.16), rgba(255,255,255,.03));
  border: 1px solid rgba(0,135,81,.18);
  box-shadow: var(--shadow);
}

.branch-detail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: .92rem;
}

.branch-detail-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.branch-detail-hero-copy h1 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.branch-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.branch-detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.branch-detail-stat {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.branch-detail-stat span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
}

.branch-detail-stat strong {
  font-size: 1.5rem;
  line-height: 1.05;
}

.branch-detail-stat-accent {
  background: linear-gradient(180deg, rgba(0,135,81,.18), rgba(0,135,81,.07));
  border-color: rgba(0,135,81,.24);
}

.branch-detail-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 18px;
}

.branch-detail-column {
  display: grid;
  gap: 18px;
}

.branch-info-panel,
.branch-coverage-panel,
.branch-ops-panel,
.branch-staff-panel {
  padding: 24px;
  border-radius: 26px;
}

.branch-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.branch-info-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}

.branch-info-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
}

.branch-delivery-list,
.branch-staff-list,
.branch-summary-stack {
  display: grid;
  gap: 14px;
}

.branch-delivery-card,
.branch-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.branch-delivery-card p {
  margin: 6px 0 0;
}

.branch-staff-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.branch-staff-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,135,81,.14);
  border: 1px solid rgba(0,135,81,.22);
  color: #bcffd8;
  font-weight: 800;
}

.branch-staff-copy strong {
  display: block;
}

.branch-staff-copy p {
  margin: 4px 0 0;
}

body[data-theme="light"] .branch-detail-hero {
  background: linear-gradient(135deg, rgba(0,135,81,.10), rgba(255,255,255,.94));
  border-color: rgba(0,135,81,.14);
}

body[data-theme="light"] .branch-detail-stat,
body[data-theme="light"] .branch-info-item,
body[data-theme="light"] .branch-delivery-card,
body[data-theme="light"] .branch-summary-row,
body[data-theme="light"] .branch-staff-row {
  background: rgba(255,255,255,.92);
}

body[data-theme="light"] .branch-staff-avatar {
  color: #066b43;
  background: rgba(0,135,81,.10);
}

@media (max-width: 1100px) {
  .branch-detail-hero,
  .branch-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .branch-detail-hero,
  .branch-info-panel,
  .branch-coverage-panel,
  .branch-ops-panel,
  .branch-staff-panel {
    padding: 18px;
  }

  .branch-detail-stat-grid,
  .branch-info-grid {
    grid-template-columns: 1fr;
  }

  .branch-delivery-card,
  .branch-summary-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   BASIC BRANCH DETAIL PAGE
   ========================= */

.branch-basic-detail-page {
  display: grid;
  gap: 22px;
}

.branch-basic-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 18px;
}

.branch-basic-panel {
  padding: 24px;
  border-radius: 26px;
}

.branch-basic-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.branch-basic-info-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}

.branch-basic-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
}

.branch-basic-summary-stack {
  display: grid;
  gap: 12px;
}

.branch-basic-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.branch-basic-summary-row span {
  color: var(--muted);
  font-weight: 600;
}

.branch-basic-note {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.branch-basic-note p {
  margin: 8px 0 0;
  line-height: 1.6;
}

body[data-theme="light"] .branch-basic-info-item,
body[data-theme="light"] .branch-basic-summary-row,
body[data-theme="light"] .branch-basic-note {
  background: rgba(255,255,255,.92);
}

@media (max-width: 1100px) {
  .branch-basic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .branch-basic-panel {
    padding: 18px;
  }

  .branch-basic-info-grid {
    grid-template-columns: 1fr;
  }

  .branch-basic-summary-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   BRANCH DETAIL ACTION PASS
   ========================= */

.branch-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: .9rem;
}

.branch-staff-remove-form {
  margin-left: auto;
}

.branch-staff-footer {
  margin-top: 14px;
}

.form-page,
.staff-manage-page {
  display: grid;
  gap: 22px;
}

.form-panel {
  padding: 24px;
  border-radius: 26px;
}

.delete-confirm-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.staff-manage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

body[data-theme="light"] .delete-confirm-card {
  background: rgba(255,255,255,.92);
}

@media (max-width: 900px) {
  .staff-manage-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   REPORTS MODULE SHARED UI
   Paste near the end of site.css
   ========================= */

.report-page {
  display: grid;
  gap: 22px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  align-items: end;
}

.report-filter-grid .polished-field,
.report-filter-grid .field {
  min-width: 0;
}

.report-filter-grid .polished-field:has(input[type="datetime-local"]),
.report-filter-grid .field:has(input[type="datetime-local"]) {
  min-width: min(100%, 280px);
}

.report-page .accounts-toolbar {
  padding: 20px 22px;
  border-radius: 24px;
}

.report-page .accounts-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  align-items: end;
}

.report-page .accounts-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.report-page .accounts-filter-bar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.report-page .accounts-filter-bar input[type="date"],
.report-page .accounts-filter-bar input[type="time"],
.report-page .accounts-filter-bar select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.report-page .accounts-filter-bar select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.report-page .accounts-filter-bar input[type="date"]:focus,
.report-page .accounts-filter-bar input[type="time"]:focus,
.report-page .accounts-filter-bar select:focus {
  outline: none;
  border-color: rgba(0,135,81,.45);
  box-shadow: 0 0 0 3px rgba(0,135,81,.18);
}

.report-page .accounts-filter-bar input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.9;
  cursor: pointer;
  filter: invert(1) brightness(1.05);
}

.report-page .accounts-filter-bar input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.9;
  cursor: pointer;
  filter: invert(1) brightness(1.05);
}

.report-page .accounts-filter-bar input[type="date"]::-webkit-datetime-edit,
.report-page .accounts-filter-bar input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.report-page .accounts-filter-bar input[type="time"]::-webkit-datetime-edit,
.report-page .accounts-filter-bar input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  color: inherit;
}

.report-page .accounts-filter-bar input[type="date"],
.report-page .accounts-filter-bar input[type="time"] {
  color-scheme: dark;
}

.accounts-filter-bar input[type="date"],
.accounts-filter-bar input[type="time"],
.accounts-filter-bar input[type="datetime-local"],
.polished-field input[type="date"],
.polished-field input[type="time"],
.polished-field input[type="datetime-local"] {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1rem;
  box-sizing: border-box;
  color-scheme: dark;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.accounts-filter-bar input[type="datetime-local"],
.polished-field input[type="datetime-local"] {
  font-size: 0.95rem;
  padding-right: 10px;
}

.accounts-filter-bar input[type="date"]:focus,
.accounts-filter-bar input[type="time"]:focus,
.accounts-filter-bar input[type="datetime-local"]:focus,
.polished-field input[type="date"]:focus,
.polished-field input[type="time"]:focus,
.polished-field input[type="datetime-local"]:focus {
  outline: none;
  border-color: rgba(0,135,81,.45);
  box-shadow: 0 0 0 3px rgba(0,135,81,.18);
}

.accounts-filter-bar input[type="date"]::-webkit-calendar-picker-indicator,
.accounts-filter-bar input[type="time"]::-webkit-calendar-picker-indicator,
.accounts-filter-bar input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.polished-field input[type="date"]::-webkit-calendar-picker-indicator,
.polished-field input[type="time"]::-webkit-calendar-picker-indicator,
.polished-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: 0.9;
  cursor: pointer;
  filter: invert(1) brightness(1.05);
}

body[data-theme="light"] .accounts-filter-bar input[type="date"],
body[data-theme="light"] .accounts-filter-bar input[type="time"],
body[data-theme="light"] .accounts-filter-bar input[type="datetime-local"],
body[data-theme="light"] .polished-field input[type="date"],
body[data-theme="light"] .polished-field input[type="time"],
body[data-theme="light"] .polished-field input[type="datetime-local"] {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(12, 25, 18, 0.10);
  color: #0c1912;
  color-scheme: light;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

body[data-theme="light"] .accounts-filter-bar input[type="date"]::-webkit-calendar-picker-indicator,
body[data-theme="light"] .accounts-filter-bar input[type="time"]::-webkit-calendar-picker-indicator,
body[data-theme="light"] .accounts-filter-bar input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body[data-theme="light"] .polished-field input[type="date"]::-webkit-calendar-picker-indicator,
body[data-theme="light"] .polished-field input[type="time"]::-webkit-calendar-picker-indicator,
body[data-theme="light"] .polished-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: none;
}

/* Reports landing cards */
.reports-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.report-launch-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius: 22px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 250px;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.report-launch-card-accent {
  border-color: rgba(0,135,81,.24);
  background: linear-gradient(180deg, rgba(0,135,81,.12), rgba(255,255,255,.03));
}

.report-launch-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.report-launch-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.report-launch-top h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text);
}

.report-launch-top p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.report-launch-points,
.report-row-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.report-point-chip,
.report-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1;
}

.report-launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.report-launch-actions .btn {
  min-width: 140px;
  justify-content: center;
}

/* Report row cards */
.report-row-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.report-row-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.report-row-card-warn {
  border-color: rgba(255, 184, 77, 0.22);
}

.report-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.report-row-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.report-row-top h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.3;
}

.report-row-meta {
  margin: 0.4rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.report-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.report-row-side strong {
  font-size: 1rem;
  color: var(--text);
}

/* Reports summary KPI cards */
.reports-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.reports-kpi-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.reports-kpi-card span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.reports-kpi-card strong {
  font-size: 1.12rem;
  color: var(--text);
  line-height: 1.2;
}

.reports-kpi-card-accent {
  border-color: rgba(0,135,81,.24);
  background: linear-gradient(180deg, rgba(0,135,81,.12), rgba(255,255,255,.03));
}

body[data-theme="light"] .reports-kpi-card {
  background: rgba(255,255,255,.92);
  border-color: rgba(20,36,26,0.08);
  box-shadow: 0 10px 24px rgba(19,33,24,.08);
}

body[data-theme="light"] .reports-kpi-card-accent {
  border-color: rgba(0,135,81,.16);
  background: linear-gradient(180deg, rgba(238,252,244,.98), rgba(246,251,248,.94));
}

/* Light theme overrides using app theme hook */
body[data-theme="light"] .report-page .accounts-toolbar {
  background: rgba(255,255,255,.92);
}

body[data-theme="light"] .report-page .accounts-filter-bar label {
  color: #13231a;
}

body[data-theme="light"] .report-page .accounts-filter-bar input[type="date"],
body[data-theme="light"] .report-page .accounts-filter-bar input[type="time"],
body[data-theme="light"] .report-page .accounts-filter-bar select {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #13231a;
}

body[data-theme="light"] .report-page .accounts-filter-bar input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none;
  opacity: 0.9;
}

body[data-theme="light"] .report-page .accounts-filter-bar input[type="time"]::-webkit-calendar-picker-indicator {
  filter: none;
  opacity: 0.9;
}

body[data-theme="light"] .report-page .accounts-filter-bar input[type="date"]::-webkit-datetime-edit,
body[data-theme="light"] .report-page .accounts-filter-bar input[type="date"]::-webkit-datetime-edit-fields-wrapper,
body[data-theme="light"] .report-page .accounts-filter-bar input[type="time"]::-webkit-datetime-edit,
body[data-theme="light"] .report-page .accounts-filter-bar input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  color: #13231a;
}

body[data-theme="light"] .report-page .accounts-filter-bar input[type="date"],
body[data-theme="light"] .report-page .accounts-filter-bar input[type="time"] {
  color-scheme: light;
}

body[data-theme="light"] .report-launch-card,
body[data-theme="light"] .report-row-card {
  border-color: rgba(20,36,26,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,250,247,.92));
  box-shadow: 0 10px 24px rgba(19,33,24,.08);
}

body[data-theme="light"] .report-launch-card-accent {
  border-color: rgba(0,135,81,.16);
  background: linear-gradient(180deg, rgba(238,252,244,.98), rgba(246,251,248,.94));
}

body[data-theme="light"] .report-launch-kicker,
body[data-theme="light"] .report-row-kicker {
  color: #5c7465;
}

body[data-theme="light"] .report-launch-top h3,
body[data-theme="light"] .report-row-top h4,
body[data-theme="light"] .report-row-side strong {
  color: #102117;
}

body[data-theme="light"] .report-launch-top p,
body[data-theme="light"] .report-row-meta {
  color: #33473b;
}

body[data-theme="light"] .report-point-chip,
body[data-theme="light"] .report-chip {
  background: #f3f7f4;
  border-color: rgba(16, 33, 23, 0.08);
  color: #1e3126;
}

/* Mobile tune */
@media (max-width: 720px) {
  .report-page .accounts-toolbar,
  .report-launch-card,
  .report-row-card {
    padding: 18px;
  }

  .report-row-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-row-side {
    align-items: flex-start;
  }

  .report-launch-actions .btn {
    min-width: unset;
    width: 100%;
  }
}

.customer-pack-card .catalog-pill-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.45rem 0 0.2rem;
}
/* shared datatables */
.inventory-datatable-page .table-card-wrap,
.inventory-table-shell {
  padding: 14px 0;
  overflow: auto;
}

.inventory-table-shell {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
  padding: 12px;
}

.table-filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 14px;
  align-items: end;
}

.table-filter-bar-wide {
  grid-template-columns: repeat(4, minmax(0, 220px));
}

.themed-datatable,
table.inventory-datatable {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
}

.themed-datatable thead th,
table.inventory-datatable thead th {
  background: rgba(255, 255, 255, .04) !important;
  color: var(--text) !important;
  border: 0 !important;
  padding: 14px 12px !important;
  white-space: nowrap;
}

.themed-datatable tbody td,
table.inventory-datatable tbody td {
  background: rgba(255, 255, 255, .03);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 12px !important;
  color: var(--text);
  vertical-align: middle;
}

.themed-datatable tbody td:first-child,
table.inventory-datatable tbody td:first-child {
  border-left: 1px solid var(--line);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.themed-datatable tbody td:last-child,
table.inventory-datatable tbody td:last-child {
  border-right: 1px solid var(--line);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.dataTables_wrapper {
  color: var(--text);
}

.dataTables_wrapper .dt-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.dataTables_wrapper .dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: var(--muted) !important;
  margin: 10px 0;
}

.dataTables_wrapper .dataTables_filter {
  float: none;
  margin-left: auto;
}

.dataTables_wrapper .dataTables_length {
  float: none;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  padding: 0 12px;
}

.dataTables_wrapper .dt-button,
.dataTables_wrapper button.dt-button {
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, .04) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.dataTables_wrapper .dt-button:hover,
.dataTables_wrapper button.dt-button:hover {
  background: rgba(255, 255, 255, .08) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  color: var(--text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: rgba(18, 196, 113, .16) !important;
  border-color: rgba(18, 196, 113, .34) !important;
  color: var(--text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(255, 255, 255, .08) !important;
  border-color: var(--line-strong) !important;
}

.dataTables_wrapper .dataTables_empty {
  background: transparent !important;
  border: none !important;
  color: var(--muted) !important;
}

body[data-theme="light"] .inventory-table-shell {
  border-color: rgba(12, 25, 18, .08);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 36px rgba(9, 28, 18, .05);
}

body[data-theme="light"] table.inventory-datatable thead th,
body[data-theme="light"] .themed-datatable thead th {
  background: transparent !important;
  color: #5f7568 !important;
}

body[data-theme="light"] table.inventory-datatable tbody tr,
body[data-theme="light"] .themed-datatable tbody tr {
  background: transparent !important;
}

body[data-theme="light"] table.inventory-datatable tbody tr:hover td,
body[data-theme="light"] .themed-datatable tbody tr:hover td {
  background: #f1f8f4;
}

body[data-theme="light"] table.inventory-datatable tbody td,
body[data-theme="light"] .themed-datatable tbody td {
  background: #ffffff;
  border-top-color: rgba(12, 25, 18, .08);
  border-bottom-color: rgba(12, 25, 18, .08);
  color: #102117;
}

body[data-theme="light"] table.inventory-datatable tbody td:first-child,
body[data-theme="light"] .themed-datatable tbody td:first-child {
  border-left-color: rgba(12, 25, 18, .08);
}

body[data-theme="light"] table.inventory-datatable tbody td:last-child,
body[data-theme="light"] .themed-datatable tbody td:last-child {
  border-right-color: rgba(12, 25, 18, .08);
}

body[data-theme="light"] .dataTables_wrapper {
  color: #102117;
}

body[data-theme="light"] .dataTables_wrapper .dataTables_filter label,
body[data-theme="light"] .dataTables_wrapper .dataTables_length label,
body[data-theme="light"] .dataTables_wrapper .dataTables_info,
body[data-theme="light"] .dataTables_wrapper .dataTables_paginate {
  color: #5f7568 !important;
}

body[data-theme="light"] .dataTables_wrapper .dataTables_filter input,
body[data-theme="light"] .dataTables_wrapper .dataTables_length select {
  background: #ffffff !important;
  border-color: rgba(12, 25, 18, .1) !important;
  color: #102117 !important;
}

body[data-theme="light"] .inventory-table-toolbar select,
body[data-theme="light"] .restock-mini-input {
  background: #ffffff !important;
  border-color: rgba(12, 25, 18, .1) !important;
  color: #102117 !important;
}

body[data-theme="light"] .dataTables_wrapper .dt-button,
body[data-theme="light"] .dataTables_wrapper button.dt-button {
  background: #f5faf7 !important;
  border-color: rgba(12, 25, 18, .1) !important;
  color: #102117 !important;
}

body[data-theme="light"] .dataTables_wrapper .dt-button:hover,
body[data-theme="light"] .dataTables_wrapper button.dt-button:hover {
  background: rgba(0, 135, 81, .1) !important;
  border-color: rgba(0, 135, 81, .2) !important;
}

body[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #304438 !important;
}

body[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: rgba(0, 135, 81, .14) !important;
  border-color: rgba(0, 135, 81, .18) !important;
  color: #075938 !important;
}

body[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(0, 135, 81, .08) !important;
  border-color: rgba(0, 135, 81, .16) !important;
}

body[data-theme="light"] .dataTables_wrapper .dataTables_empty {
  color: #5f7568 !important;
}

.pill-danger{background:rgba(221,93,115,.16);border:1px solid rgba(221,93,115,.28);color:#ffd2db}.pill-warning{background:rgba(255,190,80,.14);border:1px solid rgba(255,190,80,.3);color:#ffd68a}

body[data-theme="light"] .pill-danger {
  background: rgba(225, 29, 72, .11);
  border-color: rgba(225, 29, 72, .18);
  color: #be123c;
}

body[data-theme="light"] .pill-warning {
  background: rgba(245, 158, 11, .13);
  border-color: rgba(245, 158, 11, .22);
  color: #8a5200;
}

/* customer order enhancements */
.customer-category-tabs{display:flex;gap:10px;overflow:auto;padding-bottom:6px;margin-bottom:18px}.customer-category-tab{border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--text);min-height:42px;padding:0 14px;border-radius:999px;cursor:pointer;white-space:nowrap}.customer-category-tab.is-active{background:rgba(0,135,81,.16);border-color:rgba(0,135,81,.3)}.customer-pack-builder{display:grid;gap:14px}.customer-pack-instance{padding:18px;border-radius:22px}.customer-pack-instance-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}.customer-pack-instance-head h4{margin:.5rem 0 0}.customer-pack-instance-actions{display:flex;gap:10px;flex-wrap:wrap}.customer-pack-instance-grid{display:grid;gap:16px}.customer-pack-assignment-list{display:grid;gap:10px;max-height:240px;overflow:auto;padding:12px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.03)}.customer-pack-assignment{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.03)}.btn-ghost{background:transparent}.customer-pack-builder-note{margin-bottom:16px}
@media (max-width: 900px){.table-filter-bar,.table-filter-bar-wide{grid-template-columns:1fr 1fr}.customer-pack-instance-head{flex-direction:column;align-items:stretch}}
@media (max-width: 640px){.table-filter-bar,.table-filter-bar-wide{grid-template-columns:1fr}.customer-category-tabs{padding-bottom:2px}.customer-pack-instance-actions{width:100%}.customer-pack-instance-actions .btn{flex:1}}

/* searchable native select replacement */
.searchable-select{position:relative;width:100%}
.searchable-select-native{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.searchable-select-control{width:100%;min-height:48px;padding:0 42px 0 14px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text);font:inherit;font-weight:600;text-align:left;cursor:pointer;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.searchable-select-control:after{content:"";position:absolute;right:16px;top:50%;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-65%) rotate(45deg);opacity:.72}
.searchable-select .customer-input~.searchable-select-control{min-height:54px;border-radius:18px;padding-left:16px}
.searchable-select-menu{position:absolute;z-index:1100;top:calc(100% + 6px);left:0;right:0;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:var(--shadow);display:grid;gap:8px}
.searchable-select-menu[hidden]{display:none!important}
.searchable-select-search{width:100%;min-height:42px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.05);color:var(--text);padding:0 12px;font:inherit}
.searchable-select-options{max-height:260px;overflow:auto;display:grid;gap:4px}
.searchable-select-option{width:100%;border:0;border-radius:10px;background:transparent;color:var(--text);padding:10px 12px;text-align:left;cursor:pointer;font:inherit}
.searchable-select-option:hover,.searchable-select-option.is-selected{background:rgba(0,135,81,.16)}
.searchable-select-empty{padding:12px;color:var(--muted);text-align:center}

/* Light-mode console opacity hardening */
body[data-theme="light"] .main-wrap {
  background: #ffffff !important;
}

body[data-theme="light"] {
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(15, 35, 24, .10);
  --line-strong: rgba(15, 35, 24, .18);
  --text: #102117;
  --muted: #5f7568;
}

body[data-theme="light"] .console-page,
body[data-theme="light"] .dashboard-page,
body[data-theme="light"] .padded-page,
body[data-theme="light"] .page-stack {
  color: #102117 !important;
}

body[data-theme="light"] .console-hero,
body[data-theme="light"] .customer-hero,
body[data-theme="light"] .customer-order-hero {
  background: linear-gradient(135deg, rgba(0, 135, 81, .12), #ffffff) !important;
  border-color: rgba(0, 135, 81, .16) !important;
}

body[data-theme="light"] .console-stat-card-accent,
body[data-theme="light"] .hero-stat-card-accent,
body[data-theme="light"] .feature-chip-card-game {
  background: linear-gradient(180deg, rgba(0, 135, 81, .13), rgba(0, 135, 81, .06)) !important;
  border-color: rgba(0, 135, 81, .20) !important;
}

body[data-theme="light"] .report-row-card:hover,
body[data-theme="light"] .account-console-card:hover,
body[data-theme="light"] .payment-record-card:hover,
body[data-theme="light"] .row-card:hover,
body[data-theme="light"] .stack-item:hover,
body[data-theme="light"] .list-item.interactive:hover,
body[data-theme="light"] .checklist-option:hover,
body[data-theme="light"] .timeline-row:hover,
body[data-theme="light"] .customer-menu-card:hover {
  background: #f4faf6 !important;
  border-color: rgba(0, 135, 81, .18) !important;
}

body[data-theme="light"] .panel-head,
body[data-theme="light"] .section-head,
body[data-theme="light"] .section-card-head,
body[data-theme="light"] .report-row-top,
body[data-theme="light"] .account-console-card-top,
body[data-theme="light"] .payment-record-top,
body[data-theme="light"] .card-row {
  border-color: rgba(15, 35, 24, .10) !important;
}

body[data-theme="light"] .eyebrow,
body[data-theme="light"] .eyebrow-subtle,
body[data-theme="light"] .customer-category-tab.is-active {
  background: rgba(0, 135, 81, .10) !important;
  border-color: rgba(0, 135, 81, .18) !important;
  color: #066b43 !important;
}

body[data-theme="light"] .btn,
body[data-theme="light"] .btn-soft,
body[data-theme="light"] .btn-ghost,
body[data-theme="light"] .dt-button,
body[data-theme="light"] button.dt-button,
body[data-theme="light"] .step-btn {
  background: #ffffff !important;
  border-color: rgba(15, 35, 24, .12) !important;
  color: #102117 !important;
  box-shadow: 0 6px 16px rgba(9, 28, 18, .04) !important;
}

body[data-theme="light"] .btn:hover,
body[data-theme="light"] .btn-soft:hover,
body[data-theme="light"] .btn-ghost:hover,
body[data-theme="light"] .step-btn:hover {
  background: #f4faf6 !important;
  border-color: rgba(0, 135, 81, .18) !important;
}

body[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0, 135, 81, .20) !important;
}

body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea,
body[data-theme="light"] .input,
body[data-theme="light"] .customer-input,
body[data-theme="light"] .searchable-select-control,
body[data-theme="light"] .searchable-select-search,
body[data-theme="light"] .restock-mini-input,
body[data-theme="light"] .restock-note-input {
  background: #ffffff !important;
  border-color: rgba(15, 35, 24, .12) !important;
  color: #102117 !important;
  box-shadow: none !important;
}

body[data-theme="light"] input::placeholder,
body[data-theme="light"] textarea::placeholder {
  color: #7b8f83 !important;
}

body[data-theme="light"] .searchable-select-menu,
body[data-theme="light"] .console-drawer,
body[data-theme="light"] .console-drawer-inner {
  background: #ffffff !important;
  border-color: rgba(15, 35, 24, .12) !important;
  color: #102117 !important;
  box-shadow: 0 22px 60px rgba(9, 28, 18, .14) !important;
  backdrop-filter: none !important;
}

body[data-theme="light"] .searchable-select-option:hover,
body[data-theme="light"] .searchable-select-option.is-selected {
  background: rgba(0, 135, 81, .10) !important;
  color: #075938 !important;
}

body[data-theme="light"] .muted,
body[data-theme="light"] .lede,
body[data-theme="light"] .page-subtitle,
body[data-theme="light"] .section-copy,
body[data-theme="light"] .form-hint,
body[data-theme="light"] .report-row-meta,
body[data-theme="light"] .payment-record-meta,
body[data-theme="light"] .account-console-meta,
body[data-theme="light"] .feature-chip-card span,
body[data-theme="light"] .customer-action-card p,
body[data-theme="light"] .customer-blocked-note,
body[data-theme="light"] .console-stat-card span,
body[data-theme="light"] .hero-stat-card span {
  color: #5f7568 !important;
}

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] h4,
body[data-theme="light"] strong,
body[data-theme="light"] label,
body[data-theme="light"] .report-row-card h4,
body[data-theme="light"] .payment-record-card h4,
body[data-theme="light"] .account-console-card h4 {
  color: #102117 !important;
}

body[data-theme="light"] .flash {
  background: #ffffff !important;
  border-color: rgba(15, 35, 24, .10) !important;
  color: #102117 !important;
  box-shadow: 0 10px 26px rgba(9, 28, 18, .06) !important;
}

body[data-theme="light"] .flash-success {
  background: #008751 !important;
  border-color: #008751 !important;
  color: #ffffff !important;
}

body[data-theme="light"] .flash-error {
  background: #f40009 !important;
  border-color: #f40009 !important;
  color: #ffffff !important;
}

body[data-theme="light"] .step-delete,
body[data-theme="light"] .customer-menu-card-blocked {
  background: rgba(225, 29, 72, .08) !important;
  border-color: rgba(225, 29, 72, .18) !important;
  color: #be123c !important;
}

body[data-theme="light"] .customer-blocked-pill {
  background: rgba(225, 29, 72, .10) !important;
  border-color: rgba(225, 29, 72, .20) !important;
  color: #be123c !important;
}

body[data-theme="light"] .notification-record-card,
body[data-theme="light"] .loyalty-balance-card,
body[data-theme="light"] .loyalty-transaction-card,
body[data-theme="light"] .payment-linked-card,
body[data-theme="light"] .payment-meta-item,
body[data-theme="light"] .payment-reference-line code,
body[data-theme="light"] .branch-kpi-card,
body[data-theme="light"] .branch-activity-card,
body[data-theme="light"] .branch-mini-card,
body[data-theme="light"] .support-ticket-card,
body[data-theme="light"] .support-ticket-meta-card,
body[data-theme="light"] .support-detail-card,
body[data-theme="light"] .blocked-food-card,
body[data-theme="light"] .blocked-food-line,
body[data-theme="light"] .catalog-tab,
body[data-theme="light"] .catalog-subtab,
body[data-theme="light"] .catalog-branch-chip,
body[data-theme="light"] .searchable-multiselect-trigger,
body[data-theme="light"] .searchable-multiselect-option,
body[data-theme="light"] .inventory-summary-card,
body[data-theme="light"] .catalog-summary-card,
body[data-theme="light"] .report-summary-card {
  background: #ffffff !important;
  border-color: rgba(15, 35, 24, .10) !important;
  color: #102117 !important;
  box-shadow: 0 12px 30px rgba(9, 28, 18, .05) !important;
  backdrop-filter: none !important;
}

body[data-theme="light"] .catalog-tab:hover,
body[data-theme="light"] .catalog-subtab:hover,
body[data-theme="light"] .searchable-multiselect-option:hover,
body[data-theme="light"] .branch-activity-card:hover,
body[data-theme="light"] .branch-mini-card:hover {
  background: #f4faf6 !important;
  border-color: rgba(0, 135, 81, .18) !important;
  color: #102117 !important;
}

body[data-theme="light"] .catalog-tab.is-active,
body[data-theme="light"] .catalog-subtab.is-active,
body[data-theme="light"] .branch-kpi-card-accent {
  background: rgba(0, 135, 81, .10) !important;
  border-color: rgba(0, 135, 81, .20) !important;
  color: #066b43 !important;
  box-shadow: inset 0 0 0 1px rgba(0, 135, 81, .08) !important;
}

body[data-theme="light"] .searchable-multiselect-panel {
  background: #ffffff !important;
  border-color: rgba(15, 35, 24, .12) !important;
  box-shadow: 0 22px 60px rgba(9, 28, 18, .14) !important;
  backdrop-filter: none !important;
}

body[data-theme="light"] .searchable-multiselect-search {
  background: #ffffff !important;
  border-color: rgba(15, 35, 24, .12) !important;
  color: #102117 !important;
}

body[data-theme="light"] .searchable-multiselect-search::placeholder {
  color: #7b8f83 !important;
}

body[data-theme="light"] .notification-record-top h4,
body[data-theme="light"] .loyalty-balance-top h4,
body[data-theme="light"] .loyalty-transaction-top h4,
body[data-theme="light"] .payment-linked-card h4,
body[data-theme="light"] .payment-record-type h4,
body[data-theme="light"] .branch-kpi-card strong,
body[data-theme="light"] .branch-activity-card h4,
body[data-theme="light"] .branch-mini-card strong,
body[data-theme="light"] .support-ticket-title-wrap h4,
body[data-theme="light"] .blocked-food-line strong,
body[data-theme="light"] .searchable-multiselect-option-text,
body[data-theme="light"] .searchable-multiselect-caret {
  color: #102117 !important;
}

body[data-theme="light"] .notification-meta,
body[data-theme="light"] .notification-body,
body[data-theme="light"] .loyalty-meta,
body[data-theme="light"] .payment-linked-chip,
body[data-theme="light"] .payment-meta-label,
body[data-theme="light"] .payment-reference-line code,
body[data-theme="light"] .branch-kpi-card span,
body[data-theme="light"] .support-ticket-meta-card span,
body[data-theme="light"] .blocked-food-line,
body[data-theme="light"] .catalog-branch-chip,
body[data-theme="light"] .searchable-multiselect-empty {
  color: #5f7568 !important;
}

body[data-theme="light"] .loyalty-balance-amount {
  color: #066b43 !important;
}

body[data-theme="light"] .payment-linked-chip,
body[data-theme="light"] .payment-method-icon,
body[data-theme="light"] .payment-reference-line code {
  background: #f4faf6 !important;
  border-color: rgba(15, 35, 24, .10) !important;
}

body[data-theme="light"] .pill-warning {
  background: rgba(180, 83, 9, .10) !important;
  border-color: rgba(180, 83, 9, .22) !important;
  color: #92400e !important;
}

body[data-theme="light"] .pill-danger,
body[data-theme="light"] .blocked-food-line-label {
  background: rgba(225, 29, 72, .08) !important;
  border-color: rgba(225, 29, 72, .18) !important;
  color: #be123c !important;
}

body[data-theme="light"] .inventory-console-page .dataTables_filter label,
body[data-theme="light"] .inventory-console-page .dataTables_length label,
body[data-theme="light"] .inventory-console-page .dataTables_info,
body[data-theme="light"] .inventory-console-page .dataTables_paginate,
body[data-theme="light"] .catalog-console-page .dataTables_filter label,
body[data-theme="light"] .catalog-console-page .dataTables_length label,
body[data-theme="light"] .catalog-console-page .dataTables_info,
body[data-theme="light"] .catalog-console-page .dataTables_paginate {
  color: #5f7568 !important;
}

body[data-theme="light"] .inventory-console-page .dataTables_filter input,
body[data-theme="light"] .inventory-console-page .dataTables_length select,
body[data-theme="light"] .inventory-console-page .inventory-table-toolbar select,
body[data-theme="light"] .catalog-console-page .dataTables_filter input,
body[data-theme="light"] .catalog-console-page .dataTables_length select {
  background: #ffffff !important;
  border-color: rgba(15, 35, 24, .12) !important;
  color: #102117 !important;
}

body[data-theme="light"] .inventory-console-page table.dataTable thead th,
body[data-theme="light"] .catalog-console-page table.dataTable thead th {
  color: #375244 !important;
}

body[data-theme="light"] .inventory-console-page table.dataTable tbody tr,
body[data-theme="light"] .catalog-console-page table.dataTable tbody tr {
  background: #ffffff !important;
}

body[data-theme="light"] .inventory-console-page table.dataTable tbody tr:hover,
body[data-theme="light"] .catalog-console-page table.dataTable tbody tr:hover {
  background: #f4faf6 !important;
}

body[data-theme="light"] .inventory-console-page table.dataTable tbody td,
body[data-theme="light"] .catalog-console-page table.dataTable tbody td {
  border-color: rgba(15, 35, 24, .10) !important;
  color: #102117 !important;
}

body[data-theme="light"] .inventory-console-page .dataTables_paginate .paginate_button,
body[data-theme="light"] .catalog-console-page .dataTables_paginate .paginate_button {
  color: #375244 !important;
}

body[data-theme="light"] .inventory-console-page .dataTables_paginate .paginate_button.current,
body[data-theme="light"] .inventory-console-page .dataTables_paginate .paginate_button.current:hover,
body[data-theme="light"] .catalog-console-page .dataTables_paginate .paginate_button.current,
body[data-theme="light"] .catalog-console-page .dataTables_paginate .paginate_button.current:hover {
  background: rgba(0, 135, 81, .10) !important;
  border-color: rgba(0, 135, 81, .20) !important;
  color: #066b43 !important;
}

body[data-theme="light"] .inventory-console-page .dataTables_paginate .paginate_button:hover,
body[data-theme="light"] .catalog-console-page .dataTables_paginate .paginate_button:hover {
  background: #f4faf6 !important;
  border-color: rgba(0, 135, 81, .18) !important;
}

body[data-theme="light"] .inventory-console-page .dataTables_empty,
body[data-theme="light"] .catalog-console-page .dataTables_empty {
  color: #5f7568 !important;
}

/* Shared interaction polish */
.skip-link{position:fixed;left:16px;top:12px;z-index:1000;transform:translateY(-160%);padding:11px 16px;border-radius:12px;background:var(--text);color:var(--bg);font-weight:800;box-shadow:var(--shadow);transition:transform .18s ease}
.skip-link:focus{transform:translateY(0)}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid color-mix(in srgb,var(--primary-2) 72%,white);outline-offset:3px}
.btn,.sidebar-link,.public-nav-link,.topbar-bell,.sidebar-toggle{transition:transform .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease,opacity .16s ease}
.btn:hover:not(:disabled){transform:translateY(-1px)}
.btn:active:not(:disabled){transform:translateY(0)}
.btn:disabled,.btn[aria-busy="true"]{cursor:wait;opacity:.72;transform:none;box-shadow:none}
.btn.is-loading::before{content:"";width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:button-spin .7s linear infinite}
@keyframes button-spin{to{transform:rotate(360deg)}}
.password-field{position:relative}.password-field input{width:100%;padding-right:76px!important}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);min-height:36px;padding:0 10px;border:0;border-radius:10px;background:color-mix(in srgb,var(--primary) 12%,transparent);color:var(--text);font-weight:800;cursor:pointer}
.auth-headline{font-size:clamp(2rem,5vw,2.8rem);line-height:1.08;margin-bottom:14px}.auth-subheadline{margin-bottom:8px}.auth-cta-copy{margin:0;color:var(--muted);font-size:clamp(1rem,2.4vw,1.25rem)}.auth-form-title{margin:24px 0 14px}.customer-builder-actions{display:flex;justify-content:flex-end;margin-top:16px}
.field :where(input,select,textarea),.field-group :where(input,select,textarea){min-height:48px}.field ul.errorlist,.errorlist{margin:8px 0 0;padding:0;list-style:none;color:#ff9eae;font-size:.9rem;font-weight:700}
.mobile-cart-dock{display:none}
.hero-stat-card:last-child:nth-child(odd),.staff-stat-card:last-child:nth-child(odd),.console-stat-card:last-child:nth-child(odd){grid-column:1/-1}
@media (max-width:680px){.container,.content-container{width:min(100% - 20px,1220px)}.main-wrap{padding-top:14px}.card,.metric-card,.section-card{padding:18px;border-radius:22px}.btn{min-height:48px}.customer-builder-actions .btn{width:100%}.auth-layout{padding-top:8px}.nav-wrap{border-radius:24px}.public-nav-link{display:none}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.blob{animation:none}.btn,.sidebar-link,.skip-link{transition:none}.btn.is-loading::before{animation-duration:1.4s}}

/* 2026 visual identity refresh */
.app-sidebar{background:linear-gradient(180deg,rgba(5,18,12,.96),rgba(4,13,9,.92));box-shadow:20px 0 70px rgba(0,0,0,.22)}
.sidebar-brand-row{padding:2px 8px 12px;border-bottom:1px solid var(--line)}
.sidebar-user-card{background:linear-gradient(135deg,rgba(26,185,111,.14),rgba(255,255,255,.025));border-color:rgba(49,226,139,.18);box-shadow:none}
.sidebar-link{position:relative;display:flex;align-items:center;gap:12px;padding:11px 12px}
.sidebar-link::before{content:attr(data-icon);display:grid;place-items:center;width:36px;min-width:36px;height:36px;border-radius:12px;background:rgba(255,255,255,.045);border:1px solid var(--line);color:var(--muted);font-size:1.05rem;font-weight:900;transition:.18s ease}
.sidebar-link:hover::before{color:var(--text);border-color:rgba(45,225,139,.24);background:rgba(24,178,105,.10)}
.sidebar-link.is-active{background:linear-gradient(90deg,rgba(0,135,81,.24),rgba(0,135,81,.07));border-color:rgba(45,225,139,.22);box-shadow:inset 3px 0 0 var(--primary-2)}
.sidebar-link.is-active::before{color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary-2));border-color:transparent;box-shadow:0 8px 22px rgba(0,135,81,.28)}
.sidebar-link-copy strong{font-size:.95rem}.sidebar-link-copy small{font-size:.78rem}
.app-topbar{min-height:82px;border-bottom:1px solid rgba(255,255,255,.035);background:linear-gradient(180deg,rgba(5,18,12,.94),rgba(5,18,12,.72));padding-inline:clamp(16px,2.5vw,38px)}
.topbar-status{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border-radius:999px;border:1px solid rgba(49,226,139,.16);background:rgba(0,135,81,.09);color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.topbar-status>span{width:8px;height:8px;border-radius:50%;background:#36e58f;box-shadow:0 0 0 5px rgba(54,229,143,.10)}
.customer-hero,.staff-hero,.console-hero{position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(circle at 82% 18%,rgba(55,238,150,.19),transparent 28%),linear-gradient(135deg,rgba(0,135,81,.22),rgba(255,255,255,.025))}
.customer-hero::after,.staff-hero::after,.console-hero::after{content:"";position:absolute;z-index:-1;width:320px;height:320px;right:-120px;bottom:-220px;border:1px solid rgba(91,255,179,.18);border-radius:50%;box-shadow:0 0 0 42px rgba(57,235,150,.025),0 0 0 84px rgba(57,235,150,.018)}
.customer-action-card,.staff-module-card{position:relative;overflow:hidden}.customer-action-card::after,.staff-module-card::after{content:"↗";position:absolute;right:18px;top:18px;color:rgba(145,255,201,.38);font-size:1.1rem;transition:transform .18s ease,color .18s ease}.customer-action-card:hover::after,.staff-module-card:hover::after{color:var(--primary-2);transform:translate(2px,-2px)}
.customer-action-card::before,.staff-module-card::before{content:attr(data-icon);display:grid;place-items:center;width:42px;height:42px;margin-bottom:2px;border:1px solid rgba(63,229,151,.18);border-radius:14px;background:linear-gradient(135deg,rgba(0,135,81,.24),rgba(34,211,131,.10));color:#d8ffea;font-size:1.15rem;font-weight:900;line-height:1}
.mobile-taskbar{display:none}
.hero-stat-card,.staff-stat-card,.console-stat-card{box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
body[data-theme="light"] .app-sidebar{background:linear-gradient(180deg,#fff,#f2f8f4)}body[data-theme="light"] .app-topbar{background:linear-gradient(180deg,rgba(247,252,249,.96),rgba(247,252,249,.82))}

@media (max-width:640px){
  .app-main-shell{padding-bottom:84px}
  .mobile-taskbar{position:fixed;left:10px;right:10px;bottom:10px;z-index:34;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:7px;border:1px solid rgba(80,255,177,.20);border-radius:22px;background:color-mix(in srgb,var(--panel-strong) 93%,transparent);box-shadow:0 20px 55px rgba(0,0,0,.40);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
  .mobile-taskbar a{display:grid;place-items:center;gap:2px;min-width:0;min-height:54px;padding:5px;border-radius:16px;color:var(--muted);font-weight:800;text-align:center}
  .mobile-taskbar a span{font-size:1.15rem;line-height:1}.mobile-taskbar a small{font-size:.68rem;line-height:1.2}.mobile-taskbar a.is-active{color:#fff;background:linear-gradient(135deg,var(--primary),#1ab56f);box-shadow:0 8px 22px rgba(0,135,81,.30)}
  .hero-panel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hero-stat-card{min-height:94px;padding:14px}
  .hero-stat-card-accent{grid-column:1/-1}
  .customer-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .customer-action-card{min-height:112px;padding:15px;gap:8px}
  .customer-action-card p{display:none}
  .customer-action-card strong{font-size:1rem}
  .customer-reference-section{display:none}
  .customer-order-page{padding-bottom:76px}
  .mobile-cart-dock{position:fixed;left:12px;right:12px;bottom:84px;z-index:30;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;min-height:58px;padding:10px 16px;border:1px solid rgba(80,255,177,.24);border-radius:18px;background:color-mix(in srgb,var(--panel-strong) 92%,transparent);box-shadow:0 18px 50px rgba(0,0,0,.36);backdrop-filter:blur(18px)}
  .mobile-cart-dock span{color:var(--muted);font-size:.82rem;font-weight:800}.mobile-cart-dock strong{text-align:center;font-size:1.05rem}.mobile-cart-dock span:last-child{color:var(--primary-2)}
  .topbar-left{min-width:0}
  .topbar-copy{min-width:0}
  .topbar-kicker,.topbar-copy h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .topbar-status{display:none}
  .staff-hero-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .staff-stat-card{min-height:94px;padding:14px}
  .staff-module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .staff-module-card{min-height:126px;padding:15px}
  .staff-module-card p{display:none}
  .customer-action-card::before,.staff-module-card::before{width:38px;height:38px;border-radius:12px}
  .console-hero-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .console-stat-card{min-height:94px;padding:14px}
  .console-stat-card:last-child:nth-child(odd){grid-column:1/-1}
}

/* Premium customer journeys */
.panel{padding:clamp(20px,2.4vw,28px);border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}
.panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}.panel-head>div{display:grid;gap:6px;min-width:0}.panel-head h2,.panel-head h3,.panel-head h4{margin:0;letter-spacing:-.02em}.panel-head h3{font-size:1.35rem}.panel-head p{margin:0}.panel-head-stack{align-items:flex-start;flex-direction:column}
.pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:max-content;max-width:100%;min-height:30px;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.045);color:var(--text);font-size:.78rem;font-weight:850;line-height:1.15;white-space:nowrap}.pill-soft{color:var(--muted);background:rgba(255,255,255,.035)}.pill-success{border-color:rgba(52,211,153,.23);background:rgba(52,211,153,.11);color:#9af4c7}.pill-warning{border-color:rgba(251,191,36,.24);background:rgba(251,191,36,.09);color:#f8d77b}.pill-danger{border-color:rgba(251,113,133,.24);background:rgba(251,113,133,.09);color:#ffb1bf}
.btn-danger{border-color:rgba(251,113,133,.32);background:linear-gradient(135deg,#d92d4d,#ef4965);color:#fff;box-shadow:0 12px 28px rgba(191,31,65,.22)}.btn-danger:hover:not(:disabled){border-color:rgba(255,170,185,.45);box-shadow:0 16px 34px rgba(191,31,65,.30)}
.stack-12,.stack-16,.stack-18,.stack-24{display:grid}.stack-12{gap:12px}.stack-16{gap:16px}.stack-18{gap:18px}.stack-24{gap:24px}.page-subtitle,.section-copy{margin:0;color:var(--muted);line-height:1.6}.page-subtitle{max-width:68ch;font-size:1rem}.section-copy{font-size:.92rem}.button-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.button-row-end{justify-content:flex-end}
body[data-theme="light"] .panel{background:#fff;border-color:rgba(15,35,24,.10);box-shadow:0 14px 34px rgba(9,28,18,.055)}body[data-theme="light"] .pill-soft{background:#f4faf6;color:#5f7568}body[data-theme="light"] .pill-success{color:#087248}body[data-theme="light"] .btn-danger{color:#fff}

.auth-layout-split{width:min(1180px,calc(100% - 32px));max-width:1180px;grid-template-columns:minmax(0,1.05fr) minmax(420px,.78fr);align-items:stretch;gap:18px;padding-top:28px}
.auth-story-card{position:relative;isolation:isolate;overflow:hidden;display:grid;align-content:center;gap:22px;min-height:650px;padding:clamp(30px,5vw,64px);border:1px solid rgba(77,243,161,.18);border-radius:32px;background:radial-gradient(circle at 76% 20%,rgba(50,232,143,.24),transparent 30%),linear-gradient(145deg,#0a2b1d,#06150f 68%);box-shadow:0 28px 80px rgba(0,0,0,.28)}
.auth-story-card::after{content:"";position:absolute;z-index:-1;width:420px;height:420px;right:-210px;bottom:-210px;border:1px solid rgba(111,255,186,.16);border-radius:50%;box-shadow:0 0 0 54px rgba(67,239,151,.025),0 0 0 108px rgba(67,239,151,.016)}
.auth-story-kicker{display:inline-flex;align-items:center;gap:10px;width:max-content;color:#bafbd8;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.09em}.auth-story-kicker>span{width:9px;height:9px;border-radius:50%;background:#45e79b;box-shadow:0 0 0 6px rgba(69,231,155,.12)}
.auth-story-card>h1{max-width:10ch;margin:0;color:#f7fff9;font-size:clamp(3rem,5.2vw,5.6rem);line-height:.92;letter-spacing:-.055em}
.auth-offer-card{display:grid;gap:5px;max-width:420px;padding:18px 20px;border:1px solid rgba(255,255,255,.10);border-radius:20px;background:rgba(255,255,255,.055);backdrop-filter:blur(14px)}.auth-offer-card span{color:#8beab9;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.auth-offer-card strong{color:#fff;font-size:1.35rem}.auth-offer-card p{margin:0;color:rgba(235,255,244,.72)}
.auth-trust-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.auth-trust-grid>div{display:grid;gap:5px;padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.035)}.auth-trust-grid span{color:#62dfa5;font-size:.7rem;font-weight:900}.auth-trust-grid strong{color:#f5fff8;font-size:.88rem}.auth-trust-grid small{color:rgba(229,249,237,.62);font-size:.75rem;line-height:1.35}
.auth-story-copy{max-width:55ch;margin:0;color:rgba(230,251,239,.72);font-size:1.08rem;line-height:1.7}.auth-story-signup>h1{max-width:11ch;font-size:clamp(2.8rem,4.7vw,5rem)}
.auth-story-checklist{display:grid;gap:10px}.auth-story-checklist>div{display:flex;align-items:center;gap:13px;padding:13px 15px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.035)}.auth-story-checklist>div>span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:rgba(44,218,133,.16);color:#8ff1bd;font-weight:900}.auth-story-checklist p{display:grid;gap:3px;margin:0}.auth-story-checklist strong{color:#fff}.auth-story-checklist small{color:rgba(230,251,239,.64)}
.auth-form-shell{align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:clamp(26px,4vw,44px)}.auth-form-heading{margin:18px 0 8px;font-size:clamp(1.9rem,3vw,2.7rem);letter-spacing:-.035em}.auth-form-intro{margin:0 0 26px;color:var(--muted);line-height:1.6}.auth-form-footer{display:flex;justify-content:space-between;gap:14px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:.9rem}.auth-form-footer a{color:var(--primary-2);font-weight:800}.auth-form-footer-centered{justify-content:center;text-align:center}.field-optional{margin-left:6px;color:var(--muted);font-weight:600}
.password-requirements{color:var(--muted);font-size:.8rem;line-height:1.45}.password-requirements ul{display:grid;gap:3px;margin:4px 0 0;padding-left:18px}
.customer-page-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.34fr);align-items:stretch;gap:24px;padding:clamp(24px,4vw,42px);background:radial-gradient(circle at 82% 20%,rgba(53,238,148,.20),transparent 27%),linear-gradient(135deg,rgba(0,135,81,.22),rgba(255,255,255,.025))}.customer-page-hero::after{content:"";position:absolute;z-index:-1;width:280px;height:280px;right:-130px;bottom:-190px;border:1px solid rgba(94,255,181,.17);border-radius:50%;box-shadow:0 0 0 40px rgba(61,238,153,.025),0 0 0 80px rgba(61,238,153,.017)}
.customer-page-hero-copy{display:grid;justify-items:start;align-content:center;gap:14px}.customer-page-hero-copy h2{max-width:15ch;margin:0;font-size:clamp(2.2rem,4.5vw,4rem);line-height:1;letter-spacing:-.045em}.customer-page-hero-copy p{max-width:64ch;margin:0;color:var(--muted);font-size:1.02rem;line-height:1.65}.customer-page-hero-copy .btn{margin-top:4px}
.customer-page-hero-stat{display:grid;align-content:end;gap:6px;min-height:190px;padding:22px;border:1px solid rgba(110,255,188,.16);border-radius:24px;background:linear-gradient(145deg,rgba(51,226,141,.13),rgba(255,255,255,.035));box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}.customer-page-hero-stat span{color:var(--muted);font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.customer-page-hero-stat strong{font-size:clamp(2.6rem,5vw,4.6rem);line-height:1}.customer-page-hero-stat small{color:var(--muted)}
.customer-page-hero-compact{grid-template-columns:minmax(0,1fr) 260px}.customer-page-hero-compact .customer-page-hero-copy h2{font-size:clamp(2rem,4vw,3.4rem)}.customer-page-hero-compact .customer-page-hero-stat{min-height:160px}
.customer-record-list{display:grid;gap:12px}.customer-record-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 20px;transition:transform .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .18s ease}.customer-record-card:hover{transform:translateY(-2px);border-color:rgba(60,229,148,.24);background:linear-gradient(135deg,rgba(0,135,81,.10),rgba(255,255,255,.035));box-shadow:0 18px 42px rgba(0,0,0,.17)}
.customer-record-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(62,229,149,.16);border-radius:15px;background:linear-gradient(135deg,rgba(0,135,81,.22),rgba(42,211,130,.08));color:#baffd9;font-size:1.1rem;font-weight:900}.customer-record-copy{display:grid;gap:4px;min-width:0}.customer-record-copy>span{color:var(--muted);font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.055em}.customer-record-copy>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-record-copy>small{color:var(--muted)}.customer-record-meta{display:grid;justify-items:end;gap:7px;text-align:right}.customer-record-meta>strong{font-size:1.05rem}.customer-record-meta>small{color:var(--primary-2);font-weight:800}
.status-pill{white-space:nowrap}.status-pending_payment,.status-pending{border-color:rgba(251,191,36,.22);background:rgba(251,191,36,.09);color:#ffd978}.status-paid,.status-successful,.status-ready,.status-completed{border-color:rgba(52,211,153,.22);background:rgba(52,211,153,.10);color:#92f4c2}.status-out_for_delivery{border-color:rgba(96,165,250,.24);background:rgba(96,165,250,.10);color:#a9ceff}.status-failed,.status-cancelled{border-color:rgba(251,113,133,.24);background:rgba(251,113,133,.10);color:#ffb1bf}.status-refunded{border-color:rgba(192,132,252,.24);background:rgba(192,132,252,.10);color:#d9b6ff}
.customer-resource-panel{display:grid;gap:18px;padding:clamp(20px,3vw,30px)}.customer-resource-head{display:flex;align-items:end;justify-content:space-between;gap:18px}.customer-resource-head h3{margin:10px 0 0;font-size:1.45rem}.customer-resource-head>small{color:var(--muted)}.customer-record-list-compact .customer-record-card{border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.025)}
.customer-empty-feature{display:grid;justify-items:center;gap:10px;padding:42px 22px;text-align:center}.customer-empty-feature>span{display:grid;place-items:center;width:54px;height:54px;border:1px solid rgba(63,229,151,.18);border-radius:17px;background:rgba(0,135,81,.12);color:#a9f8cc;font-size:1.35rem;font-weight:900}.customer-empty-feature p{max-width:480px;margin:0}.customer-empty-feature .btn{margin-top:4px}
.wallet-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.6fr);gap:26px;align-items:center;padding:clamp(26px,4vw,44px);background:radial-gradient(circle at 82% 24%,rgba(62,234,151,.20),transparent 30%),linear-gradient(135deg,rgba(0,135,81,.23),rgba(255,255,255,.025))}.wallet-hero-copy h2{max-width:14ch;margin:14px 0 10px;font-size:clamp(2.2rem,4.3vw,3.8rem);line-height:1;letter-spacing:-.045em}.wallet-hero-copy p{max-width:58ch;margin:0;color:var(--muted);line-height:1.65}.wallet-balance-card{display:grid;gap:6px;padding:26px;border:1px solid rgba(99,246,169,.17);border-radius:25px;background:linear-gradient(145deg,rgba(55,226,141,.16),rgba(255,255,255,.035))}.wallet-balance-card span{color:#a6ebc7;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.wallet-balance-card strong{font-size:clamp(2.5rem,5vw,4.2rem);line-height:1}.wallet-balance-card small{color:var(--muted)}
.customer-insight-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.customer-insight-strip>div{display:flex;align-items:center;gap:13px;padding:16px 18px;border:1px solid var(--line);border-radius:20px;background:var(--panel)}.customer-insight-strip>div>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(0,135,81,.12);color:var(--primary-2);font-weight:900}.customer-insight-strip p{display:grid;gap:2px;margin:0}.customer-insight-strip small{color:var(--muted)}.loyalty-record .customer-record-meta>strong{color:#a4f4ca}
.profile-avatar-large{display:grid;place-items:center;justify-self:end;width:150px;height:150px;border:1px solid rgba(99,246,169,.20);border-radius:36px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-size:4.2rem;font-weight:900;box-shadow:0 22px 46px rgba(0,135,81,.28)}.profile-form-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:18px;border-top:1px solid var(--line)}
.order-status-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:24px;padding:clamp(24px,4vw,42px);background:radial-gradient(circle at 80% 16%,rgba(54,235,148,.19),transparent 28%),linear-gradient(135deg,rgba(0,135,81,.22),rgba(255,255,255,.025))}.order-status-hero::after{content:"";position:absolute;z-index:-1;width:280px;height:280px;right:-150px;bottom:-190px;border:1px solid rgba(94,255,181,.16);border-radius:50%;box-shadow:0 0 0 40px rgba(61,238,153,.025),0 0 0 80px rgba(61,238,153,.016)}.order-status-hero-copy{display:grid;align-content:center;justify-items:start;gap:13px}.order-status-hero-copy h2{margin:0;font-size:clamp(2.5rem,5vw,4.5rem);line-height:.95;letter-spacing:-.05em}.order-status-hero-copy>p{margin:0;color:var(--muted);line-height:1.6}.order-status-total{display:grid;align-content:end;justify-items:start;gap:7px;min-width:240px;padding:22px;border:1px solid rgba(93,244,168,.17);border-radius:24px;background:rgba(255,255,255,.04)}.order-status-total>span{color:var(--muted);font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.order-status-total>strong{font-size:clamp(2.2rem,4vw,3.5rem);line-height:1}
.order-progress-card{display:grid;grid-template-columns:auto minmax(18px,1fr) auto minmax(18px,1fr) auto minmax(18px,1fr) auto minmax(18px,1fr) auto;align-items:center;gap:12px;padding:22px}.order-progress-step{display:grid;justify-items:center;gap:8px;min-width:92px;text-align:center}.order-progress-step>span{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:rgba(255,255,255,.04);color:var(--muted);font-weight:900}.order-progress-step>div{display:grid;gap:2px}.order-progress-step strong{font-size:.85rem}.order-progress-step small{color:var(--muted);font-size:.72rem}.order-progress-step.is-complete>span{border-color:transparent;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;box-shadow:0 7px 18px rgba(0,135,81,.24)}.order-progress-line{height:2px;border-radius:999px;background:var(--line)}.order-progress-line.is-complete{background:linear-gradient(90deg,var(--primary),var(--primary-2))}
.order-pin-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px;border-color:rgba(96,165,250,.24);background:radial-gradient(circle at 14% 50%,rgba(96,165,250,.14),transparent 28%),var(--panel)}.order-pin-card>div{display:grid;gap:5px}.order-pin-card span{color:#afd1ff;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.order-pin-card strong{font-size:clamp(2.6rem,6vw,4.2rem);line-height:1;letter-spacing:.14em}.order-pin-card p{max-width:48ch;margin:0;color:var(--muted);line-height:1.6}.order-cancelled-note{display:flex;align-items:center;gap:15px;padding:18px 20px;border:1px solid rgba(251,113,133,.23);border-radius:22px;background:rgba(251,113,133,.08)}.order-cancelled-note>span{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:rgba(251,113,133,.14);color:#ffb1bf;font-size:1.15rem;font-weight:900}.order-cancelled-note strong{color:#ffc1cc}.order-cancelled-note p{margin:4px 0 0;color:var(--muted);line-height:1.5}
body[data-theme="light"] .auth-story-card{border-color:rgba(0,135,81,.20)}body[data-theme="light"] .customer-page-hero-stat,body[data-theme="light"] .wallet-balance-card{background:rgba(255,255,255,.62)}body[data-theme="light"] .customer-record-list-compact .customer-record-card,body[data-theme="light"] .customer-insight-strip>div{background:#fff}body[data-theme="light"] .customer-record-icon{color:#087248}

@media (max-width:900px){.auth-layout-split{grid-template-columns:1fr;max-width:720px}.auth-story-card{min-height:auto;padding:32px}.auth-story-card>h1{font-size:clamp(2.7rem,10vw,4.5rem)}.auth-trust-grid{grid-template-columns:1fr 1fr 1fr}.customer-page-hero,.wallet-hero,.order-status-hero{grid-template-columns:1fr}.customer-page-hero-stat{min-height:auto}.profile-avatar-large{justify-self:start;width:108px;height:108px;border-radius:28px;font-size:3rem}.order-status-total{min-width:0}.order-progress-card{grid-template-columns:repeat(5,minmax(100px,1fr));overflow-x:auto;scroll-snap-type:x proximity}.order-progress-step{scroll-snap-align:start}.order-progress-line{display:none}}
@media (max-width:640px){.panel{padding:18px;border-radius:22px}.panel-head{align-items:flex-start;flex-direction:column}.panel-head>.pill{align-self:flex-start}.button-row{align-items:stretch}.button-row>.btn{flex:1}.auth-layout-split{width:min(100% - 20px,720px);padding-top:8px}.auth-form-shell{order:-1;padding:22px}.auth-story-card{min-height:auto;gap:17px;padding:24px;border-radius:24px}.auth-story-card>h1{font-size:2.45rem}.auth-trust-grid{grid-template-columns:1fr}.auth-trust-grid>div{grid-template-columns:auto 1fr;align-items:center}.auth-trust-grid small{grid-column:2}.auth-story-checklist>div{padding:11px 12px}.auth-form-footer{flex-direction:column;text-align:center}.customer-page-hero,.wallet-hero,.order-status-hero{padding:21px;border-radius:24px}.customer-page-hero-copy h2,.wallet-hero-copy h2,.order-status-hero-copy h2{font-size:2.35rem}.customer-page-hero-stat{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px;min-height:auto;padding:16px;border-radius:18px}.customer-page-hero-stat strong{font-size:2rem}.customer-page-hero-stat small{width:100%}.customer-record-card{grid-template-columns:auto minmax(0,1fr);gap:12px;padding:15px}.customer-record-icon{width:42px;height:42px}.customer-record-meta{grid-column:2;grid-template-columns:1fr auto;align-items:center;justify-items:start;width:100%;text-align:left}.customer-record-meta>strong{justify-self:end}.customer-record-meta>small{display:none}.customer-record-copy>strong{white-space:normal}.customer-resource-head{align-items:start}.customer-resource-head>small{display:none}.wallet-balance-card{padding:20px}.wallet-balance-card strong{font-size:2.5rem}.customer-insight-strip{grid-template-columns:1fr}.profile-avatar-large{width:82px;height:82px;border-radius:23px;font-size:2.3rem}.profile-form-actions{align-items:stretch;flex-direction:column}.profile-form-actions .btn{width:100%}.order-status-total{padding:17px;border-radius:18px}.order-status-total>strong{font-size:2.3rem}.order-pin-card{align-items:flex-start;flex-direction:column;padding:20px}.order-pin-card strong{font-size:3rem}.customer-order-detail-page .grid-2{grid-template-columns:1fr}.mobile-taskbar{bottom:max(10px,env(safe-area-inset-bottom))}.app-main-shell:has(.customer-order-page){padding-bottom:calc(82px + env(safe-area-inset-bottom))}.app-main-shell:has(.customer-order-page) .mobile-taskbar{display:none}.app-main-shell:has(.customer-order-page) .mobile-cart-dock{bottom:max(10px,env(safe-area-inset-bottom))}.customer-order-page{padding-bottom:calc(82px + env(safe-area-inset-bottom))}#orderSummaryCard{scroll-margin-top:100px}}
