:root {
  --ink: #102033;
  --muted: #64748b;
  --line: #e5eaf1;
  --green: #08a852;
  --blue: #1464e9;
  --purple: #5b2fc2;
  --bg: #f4f8f6;
  --shadow: 0 22px 55px rgba(15, 23, 42, .12);
}

/* Company admin console */
html { scroll-behavior: smooth; }
.company-admin { min-height: 100vh; background: #f4f7fb; color: #172033; }
.company-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: 250px; padding: 24px 18px;
  display: flex; flex-direction: column; background: #0b1730; color: #fff; overflow-y: auto;
}
.company-brand { display: flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; margin: 0 8px 28px; }
.company-brand img { width: 42px; height: 42px; border-radius: 13px; object-fit: cover; background: #fff; }
.company-brand span, .company-brand strong, .company-brand small { display: block; }
.company-brand strong { font-size: 18px; }.company-brand small { color: #8fa4c8; }
.company-sidebar nav { display: grid; gap: 4px; }
.company-sidebar nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 13px;
  border-radius: 10px; color: #b8c5dc; text-decoration: none; font-weight: 700; font-size: 14px;
}
.company-sidebar nav a:hover, .company-sidebar nav a:focus, .company-sidebar nav a.active { color: #fff; background: #172a4e; }
.company-sidebar nav b { min-width: 22px; padding: 2px 6px; border-radius: 20px; background: #ef4444; color: #fff; text-align: center; font-size: 11px; }
.company-sidebar > form { margin-top: auto; padding-top: 22px; }
.company-sidebar > form button { width: 100%; border: 1px solid #344665; background: transparent; color: #d7e0ef; }
.company-content { margin-left: 250px; padding: 28px clamp(18px, 3vw, 44px) 60px; }
.company-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.company-topbar span, .company-section-heading span { color: #0f766e; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.company-topbar h1 { margin: 3px 0 0; font-size: clamp(25px, 3vw, 38px); }
.company-admin-profile { text-align: right; }.company-admin-profile small, .company-admin-profile strong { display: block; }
.company-admin-profile small { color: #718096; }.company-admin-profile strong { margin-top: 4px; }
.company-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.company-alert.success { color: #166534; background: #dcfce7; }.company-alert.error { color: #991b1b; background: #fee2e2; }
.company-section { scroll-margin-top: 18px; margin-bottom: 30px; }
.company-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.company-section-heading h2 { margin: 2px 0 0; font-size: 22px; }
.company-action, .company-report-card a {
  padding: 10px 15px; border-radius: 10px; background: #0f766e; color: #fff; text-decoration: none; font-weight: 800;
}
.company-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.company-kpis article, .company-metric-row article, .company-order-grid article {
  padding: 19px; border: 1px solid #e3e9f2; border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgba(31, 45, 68, .05);
}
.company-kpis article.featured { color: #fff; border-color: #0f766e; background: linear-gradient(135deg, #0f766e, #155e75); }
.company-kpis span, .company-kpis strong, .company-kpis small,
.company-metric-row span, .company-metric-row strong, .company-order-grid span, .company-order-grid strong { display: block; }
.company-kpis span, .company-metric-row span, .company-order-grid span { color: #718096; font-size: 13px; font-weight: 700; }
.company-kpis .featured span, .company-kpis .featured small { color: #ccfbf1; }
.company-kpis strong { margin: 9px 0 5px; font-size: 27px; }.company-kpis small { color: #8793a6; }
.company-metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.company-metric-row strong, .company-order-grid strong { margin-top: 8px; font-size: 22px; }
.company-card { padding: 20px; border: 1px solid #e3e9f2; border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgba(31, 45, 68, .05); }
.company-card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.company-card-title h3 { margin: 0; font-size: 17px; }.company-card-title > span { color: #718096; font-size: 12px; font-weight: 800; }
.company-table-wrap { overflow-x: auto; }
.company-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.company-table th { padding: 10px 12px; color: #718096; border-bottom: 1px solid #e8edf4; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.company-table td { padding: 13px 12px; border-bottom: 1px solid #edf1f6; font-size: 13px; vertical-align: middle; }
.company-table tr:last-child td { border-bottom: 0; }.company-table td small, .company-table td strong { display: block; }
.company-table td small { margin-top: 3px; color: #8793a6; }
.company-status { display: inline-block; padding: 5px 8px; border-radius: 20px; background: #eef2ff; color: #4338ca; font-size: 11px; font-weight: 800; }
.company-status.success { color: #047857; background: #d1fae5; }.company-status.danger { color: #b91c1c; background: #fee2e2; }
.company-status.warning { color: #9a6700; background: #fef3c7; }
.company-two-column { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 14px; align-items: start; }
.company-campaign-list { display: grid; gap: 10px; }
.company-campaign-list article { padding: 14px; border: 1px solid #e8edf4; border-radius: 12px; }
.company-campaign-list article > div { display: inline-block; }.company-campaign-list article > div small { display: block; color: #8793a6; margin-top: 3px; }
.company-campaign-list article > span { float: right; }
.company-campaign-list dl { clear: both; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 0; }
.company-campaign-list dl div { padding: 8px; border-radius: 9px; background: #f7f9fc; }
.company-campaign-list dt { color: #8793a6; font-size: 10px; }.company-campaign-list dd { margin: 3px 0 0; font-weight: 800; }
.company-form, .company-settings-form { display: grid; gap: 13px; }
.company-form label, .company-settings-form label { color: #4a5568; font-size: 12px; font-weight: 800; }
.company-form input, .company-form select, .company-form textarea, .company-settings-form input { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #d9e1ec; border-radius: 9px; background: #fff; }
.company-form textarea { resize: vertical; }
.company-form button, .company-settings-form button { background: #0f766e; color: #fff; }
.distribution-help { margin: 0 0 18px; color: #667085; font-size: 13px; }
.distribution-entry-form { grid-template-columns: repeat(4, minmax(150px, 1fr)); align-items: end; }
.distribution-entry-form button { min-height: 42px; }
.distribution-entry-summary { min-height: 42px; padding: 8px 12px; border-radius: 9px; background: #f4f7fb; }
.distribution-entry-summary span, .distribution-entry-summary strong { display: block; }
.distribution-entry-summary span { color: #718096; font-size: 11px; font-weight: 800; }
.distribution-entry-summary strong { margin-top: 2px; }
.distribution-entry-summary .allocation-error { color: #b42318; }
.product-allocation-table { min-width: 1050px; }
.product-allocation-table input[type="number"] { width: 105px; padding: 8px 9px; border: 1px solid #d9e1ec; border-radius: 8px; }
.product-allocation-table .allocation-error { color: #b42318; }
.product-allocation-table button:disabled { cursor: not-allowed; opacity: .45; }
.company-bulletin-list { display: grid; gap: 10px; }
.company-bulletin-list article { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; border: 1px solid #e8edf4; border-radius: 12px; }
.company-bulletin-list article > div { min-width: 0; }
.company-bulletin-list strong, .company-bulletin-list small, .company-bulletin-list a { display: block; }
.company-bulletin-list small, .company-bulletin-list a { margin-top: 5px; color: #718096; font-size: 12px; overflow-wrap: anywhere; }
.company-bulletin-list article form { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.company-order-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.company-location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.company-location-grid article { padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #e3e9f2; }
.company-location-grid article div { display: flex; justify-content: space-between; gap: 10px; }.company-location-grid article span { color: #0f766e; font-weight: 900; }
.company-location-grid article small { display: block; margin-top: 9px; color: #718096; }
.company-warning { padding: 6px 9px; border-radius: 9px; color: #b45309 !important; background: #fef3c7; letter-spacing: 0 !important; }
.company-report-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border-radius: 16px; color: #fff; background: #172a4e; }
.company-report-card p { margin: 5px 0 0; color: #b8c5dc; }.company-report-card a { background: #fff; color: #172a4e; white-space: nowrap; }
.company-feed article { position: relative; padding: 12px 10px 12px 16px; border-bottom: 1px solid #edf1f6; }
.company-feed article.unread:before { position: absolute; content: ""; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }
.company-feed article:last-child { border-bottom: 0; }.company-feed article strong, .company-feed article small { display: block; }
.company-feed article p { margin: 4px 0; color: #5f6b7c; font-size: 13px; }.company-feed article small { color: #94a0b2; font-size: 11px; }
.company-feed article > span { float: right; color: #0f766e; font-size: 10px; font-weight: 900; }
.company-table-action { padding: 7px 10px; border: 1px solid #d9e1ec; background: #fff; color: #344054; font-size: 11px; }
.company-network-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.company-network-stats article { padding: 15px; border: 1px solid #e3e9f2; border-radius: 14px; background: #fff; }
.company-network-stats span, .company-network-stats strong { display: block; }
.company-network-stats span { color: #718096; font-size: 12px; font-weight: 800; }
.company-network-stats strong { margin-top: 5px; font-size: 24px; }
.company-network-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #e3e9f2; }
.company-network-toolbar label { flex: 1; color: #4a5568; font-size: 12px; font-weight: 800; }
.company-network-toolbar input { display: block; width: 100%; max-width: 480px; margin-top: 6px; padding: 10px 12px; border: 1px solid #d9e1ec; border-radius: 9px; }
.company-network-tabs { display: flex; gap: 6px; }
.company-network-tabs button { padding: 9px 12px; border: 1px solid #d9e1ec; background: #fff; color: #536075; font-size: 12px; }
.company-network-tabs button.active { border-color: #0f766e; background: #0f766e; color: #fff; }
.company-network-panel { display: none; }.company-network-panel.active { display: block; }
.company-network-agent { margin-bottom: 12px; border: 1px solid #dfe6ef; border-radius: 16px; background: #fff; overflow: hidden; }
.company-network-agent > summary, .company-network-field > summary { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto auto; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none; }
.company-network-agent > summary::-webkit-details-marker, .company-network-field > summary::-webkit-details-marker { display: none; }
.company-network-agent > summary strong, .company-network-agent > summary small, .company-network-field > summary strong, .company-network-field > summary small { display: block; }
.company-network-agent > summary small, .company-network-field > summary small { margin-top: 3px; color: #718096; font-size: 12px; }
.company-network-counts { color: #536075; font-size: 12px; font-weight: 800; }
.company-network-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: #172a4e; font-weight: 900; }
.company-network-avatar.delivery { background: #2563eb; }.company-network-avatar.field { background: #7c3aed; }.company-network-avatar.shop { background: #0f766e; }
.company-network-branches { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(400px, 1.3fr); gap: 14px; padding: 0 18px 18px 66px; border-top: 1px solid #edf1f6; background: #f8fafc; }
.company-network-branches > section { padding-top: 15px; }
.company-network-branches h3 { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: 14px; }
.company-network-branches h3 span { color: #0f766e; }
.company-network-member-list, .company-network-shop-list { display: grid; gap: 8px; }
.company-network-member-list article, .company-network-shop-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e3e9f2; border-radius: 11px; background: #fff; }
.company-network-member-list strong, .company-network-member-list small, .company-network-shop-list strong, .company-network-shop-list small { display: block; }
.company-network-member-list small, .company-network-shop-list small { margin-top: 2px; color: #718096; font-size: 11px; }
.company-network-field { margin-bottom: 8px; border: 1px solid #e3e9f2; border-radius: 12px; background: #fff; overflow: hidden; }
.company-network-field > summary { grid-template-columns: auto minmax(150px, 1fr) auto auto; padding: 11px; }
.company-network-shop-list { padding: 0 11px 11px 57px; }
.company-network-unassigned { border-color: #f5c56b; }
.company-network-unassigned > summary { background: #fffbeb; }
.company-settings-form { grid-template-columns: repeat(3, 1fr); }.company-settings-form button { align-self: end; min-height: 41px; }
.company-empty { color: #8793a6; text-align: center; padding: 16px; }

@media (max-width: 1100px) {
  .company-kpis { grid-template-columns: repeat(2, 1fr); }
  .company-order-grid { grid-template-columns: repeat(3, 1fr); }
  .company-location-grid { grid-template-columns: repeat(2, 1fr); }
  .distribution-entry-form { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}
@media (max-width: 820px) {
  .company-sidebar { position: static; width: auto; padding: 14px; }
  .company-brand { margin-bottom: 12px; }.company-sidebar nav { display: flex; overflow-x: auto; padding-bottom: 5px; }
  .company-sidebar nav a { flex: 0 0 auto; }.company-sidebar > form { display: none; }
  .company-content { margin-left: 0; padding: 20px 14px 45px; }
  .company-two-column { grid-template-columns: 1fr; }.company-metric-row { grid-template-columns: repeat(2, 1fr); }
  .company-settings-form { grid-template-columns: repeat(2, 1fr); }
  .company-network-stats { grid-template-columns: repeat(3, 1fr); }
  .company-network-branches { grid-template-columns: 1fr; padding-left: 18px; }
}
@media (max-width: 520px) {
  .company-topbar { align-items: flex-start; }.company-admin-profile { display: none; }
  .company-kpis, .company-metric-row, .company-order-grid, .company-location-grid, .company-settings-form { grid-template-columns: 1fr; }
  .company-campaign-list dl { grid-template-columns: repeat(2, 1fr); }
  .company-report-card { align-items: flex-start; flex-direction: column; }
  .company-section-heading { align-items: flex-start; }.company-section-heading .company-action { font-size: 12px; }
  .company-network-stats { grid-template-columns: repeat(2, 1fr); }
  .company-network-toolbar { align-items: stretch; flex-direction: column; }
  .company-network-tabs { overflow-x: auto; }.company-network-tabs button { flex: 0 0 auto; }
  .company-network-agent > summary, .company-network-field > summary { grid-template-columns: auto 1fr; }
  .company-network-agent > summary > .company-network-counts, .company-network-agent > summary > .company-status,
  .company-network-field > summary > span:nth-last-child(-n+2) { margin-left: 48px; }
  .company-network-shop-list { padding-left: 11px; }
  .distribution-entry-form { grid-template-columns: 1fr; }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Anek Bangla", "Inter", system-ui, sans-serif;
  background: linear-gradient(90deg, #f7fbf8 0, #eef8ff 52%, #f7f2ff 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 20; padding: 14px 22px 0; }
.navbar {
  max-width: 1480px;
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: #001b35; }
.brand strong { display: block; color: var(--green); font-family: Inter, sans-serif; font-size: 28px; line-height: 1; }
.brand small { display: block; color: #334155; font-weight: 700; }
.brand.compact strong { font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.nav-links a { padding: 9px 14px; border-radius: 999px; }
.nav-cta { color: #fff; background: var(--green); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #e8f3ef; cursor: pointer; }

.hero-shell {
  max-width: 1540px;
  margin: 0 auto;
  padding: 28px 18px 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}
.model-panel, .phone-frame, .feature-band, .auth-card, .panel, .mobile-dashboard {
  border: 1px solid rgba(210, 220, 230, .9);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}
.model-panel { padding: 24px; border-radius: 20px; }
.logo-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.logo-lockup img { width: 68px; height: 68px; border-radius: 18px; object-fit: cover; }
.logo-lockup h1 { margin: 0; color: var(--green); font-family: Inter, sans-serif; font-size: 30px; }
.logo-lockup p { margin: 4px 0 0; font-weight: 800; }
.commission-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 14px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, #08723f, #0aa457);
}
.commission-card strong { font-size: 26px; }
.commission-card span { font-size: 20px; font-weight: 800; }
.benefit-list { display: grid; gap: 18px; margin: 24px 0; padding: 0; list-style: none; font-weight: 800; }
.benefit-list li { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; }
.benefit-list span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #e7f8ef; }
.support-box { padding: 16px; border-radius: 14px; background: #f3faf6; }
.support-box strong, .support-box span, .support-box small { display: block; }
.support-box span { margin-top: 4px; font-family: Inter, sans-serif; font-weight: 800; }

.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.phone-card { display: grid; gap: 10px; }
.app-badge {
  width: 78%;
  justify-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-weight: 900;
}
.green { background: var(--green); }
.blue { background: #064b9d; }
.purple { background: var(--purple); }
.phone-frame {
  min-height: 780px;
  position: relative;
  overflow: hidden;
  padding: 34px 18px 18px;
  border-radius: 36px;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 76px;
  height: 8px;
  border-radius: 999px;
  background: #101827;
  transform: translateX(-50%);
}
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.app-top strong, .app-top span { display: block; }
.app-top strong { font-size: 19px; line-height: 1.15; }
.app-top span { color: #526174; font-weight: 700; }
.wallet-card, .sales-card, .performance-card, .stats-card {
  border-radius: 14px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .14);
}
.wallet-card { background: linear-gradient(135deg, #08a852, #00b983); }
.sales-card { background: linear-gradient(135deg, #2277f1, #2d8cff); }
.performance-card, .stats-card { background: linear-gradient(135deg, #4a20ad, #7a35db); }
.wallet-card span, .sales-card span, .performance-card span, .stats-card span { display: block; font-weight: 800; opacity: .92; }
.wallet-card strong, .sales-card strong { display: block; margin: 4px 0 14px; font-family: Inter, sans-serif; font-size: 32px; }
.wallet-card button { border: 0; border-radius: 999px; padding: 9px 18px; color: var(--green); background: #fff; font-weight: 900; }
.sales-card small { display: block; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.24); font-weight: 700; }
.performance-card, .stats-card { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.performance-card > span, .stats-card > span { grid-column: 1 / -1; }
.performance-card strong, .stats-card strong { display: block; font-family: Inter, sans-serif; font-size: 25px; }
.performance-card small, .stats-card small { color: rgba(255,255,255,.78); font-weight: 700; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.quick-grid span {
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #3d4b60;
  background: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}
.quick-grid b { display: block; font-size: 13px; }
.promo-strip { padding: 18px; border-radius: 13px; color: #174261; background: #dff3ff; font-size: 18px; font-weight: 900; }
.list-title { margin: 18px 0 8px; font-size: 18px; font-weight: 900; }
.transaction-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.transaction-row em { grid-column: 2; color: var(--green); font-style: normal; font-size: 13px; }
.commission-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.commission-mini b { grid-column: 1 / -1; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.commission-mini div { padding: 13px; border-right: 1px solid var(--line); }
.commission-mini div:last-child { border-right: 0; }
.commission-mini span, .commission-mini strong { display: block; }
.commission-mini span { color: #526174; font-size: 13px; font-weight: 800; }
.progress-row { padding: 12px 0; font-weight: 800; }
.progress-row span { display: block; margin-bottom: 7px; }
.progress-row b { display: block; height: 7px; border-radius: 999px; background: #25c46b; }
.floating-add {
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 14px 30px rgba(91, 47, 194, .34);
  transform: translateX(-50%);
  font-size: 38px;
  font-family: Inter, sans-serif;
}
.bottom-nav {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #64748b;
  font-size: 20px;
}
.bottom-nav strong { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); }
.shopkeeper .bottom-nav strong, .shop-theme .bottom-nav strong { background: var(--blue); }

.feature-band {
  max-width: 1480px;
  margin: 24px auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-radius: 18px;
}
.feature-band div { padding: 14px; border-radius: 12px; background: #effaf4; }
.feature-band strong, .feature-band span { display: block; }
.feature-band strong { color: #08723f; font-size: 18px; }
.feature-band span { color: #536274; font-weight: 700; }

.auth-page, .app-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.auth-card { width: min(480px, 100%); padding: 28px; border-radius: 22px; }
.auth-card h1 { margin: 22px 0 6px; font-size: 38px; }
.auth-card p { color: var(--muted); font-weight: 700; }
.form-stack { display: grid; gap: 9px; }
.form-stack label { color: #334155; font-weight: 900; }
.form-stack input, .form-stack select {
  width: 100%;
  height: 48px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  padding: 0 13px;
  outline: none;
  background: #fff;
}
.form-stack input:focus, .form-stack select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 100, 233, .12); }
.login-persistence-note { color: #64748b; line-height: 1.5; }
.btn-primary, .btn-light, .icon-btn {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
}
.btn-primary { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--green), #0abf8b); }
.btn-light { color: #26384d; background: #eef3f7; }
.icon-btn { width: 42px; padding: 0; color: #fff; background: rgba(255,255,255,.18); }
.validation { color: #dc2626; font-size: 14px; font-weight: 800; }
.location-btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #174261;
  background: #e6f4ff;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.location-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(20, 100, 233, .12); }
.location-btn:disabled { cursor: wait; opacity: .82; transform: none; }
.location-spinner {
  width: 17px;
  height: 17px;
  display: none;
  border: 2px solid rgba(20, 100, 233, .22);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: location-spin .75s linear infinite;
}
.location-btn.is-loading .location-spinner { display: inline-block; }
@keyframes location-spin {
  to { transform: rotate(360deg); }
}
.location-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.location-status.loading { color: var(--blue); }
.location-status.success { color: #059669; }
.location-status.error { color: #dc2626; }
.role-chip {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #075b36;
  background: #dcfae6;
  font-weight: 900;
}
.success-mark { width: 84px; height: 84px; display: grid; place-items: center; margin: 18px auto 0; border-radius: 50%; color: #fff; background: var(--green); font-size: 46px; }

.app-shell { width: min(1180px, 100%); }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dashboard-header span { color: var(--purple); font-family: Inter, sans-serif; font-weight: 900; }
.dashboard-header h1 { margin: 4px 0 0; font-size: 34px; }
.dashboard-header p { margin: 6px 0 0; color: var(--muted); font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.panel { padding: 22px; border-radius: 18px; }
.panel h2 { margin: 0 0 16px; font-size: 27px; }
.alert-success { margin-bottom: 16px; padding: 13px 16px; border-radius: 12px; color: #05603a; background: #dcfae6; font-weight: 900; }
.ajax-message {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 900;
}
.ajax-message.success,
.ajax-message.error { display: block; }
.ajax-message.success { color: #05603a; background: #dcfae6; }
.ajax-message.error { color: #991b1b; background: #fee2e2; }
.toast-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}
.toast {
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
  font-weight: 900;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.success { background: #059669; }
.toast.error { background: #dc2626; }
.shop-list { display: grid; gap: 10px; }
.shop-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.shop-list strong, .shop-list span, .shop-list small { display: block; }
.shop-list span, .shop-list small, .empty { color: var(--muted); font-weight: 700; }
.shop-list b { align-self: start; padding: 5px 10px; border-radius: 999px; color: var(--purple); background: #eee9ff; white-space: nowrap; }

.fieldforce-shell { width: min(1240px, 100%); }
.fieldforce-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  margin-bottom: 18px;
}
.fieldforce-summary {
  min-height: 190px;
  align-content: center;
  grid-template-columns: repeat(4, 1fr);
}
.fieldforce-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.fieldforce-actions a {
  min-height: 88px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #46307e;
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
  text-align: center;
  font-weight: 900;
}
.fieldforce-actions span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  font-family: Inter, sans-serif;
}
.fieldforce-grid { align-items: start; }

.registration-products {
  padding: 16px;
  border: 1px solid #dce5f0;
  border-radius: 14px;
  background: #f8fafc;
}
.registration-products-heading,
.select-all-products,
.registration-product-option {
  display: flex;
  align-items: center;
}
.registration-products-heading { justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.registration-products-heading > div { display: grid; gap: 2px; }
.registration-products-heading small { color: #64748b; }
.select-all-products { gap: 7px; margin: 0; font-weight: 700; cursor: pointer; }
#product-search { margin-bottom: 12px; }
.registration-product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: 330px;
  overflow-y: auto;
}
.registration-product-option {
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.registration-product-option:has(input:checked) { border-color: #1464e9; background: #eff6ff; }
.registration-product-option input { width: 18px; height: 18px; flex: 0 0 auto; }
.registration-product-option img,
.product-option-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}
.product-option-placeholder { display: grid; place-items: center; background: #e2e8f0; color: #64748b; font-weight: 800; }
.registration-product-option > span:last-child { display: grid; min-width: 0; }
.registration-product-option strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.registration-product-option small { color: #64748b; }
@media (max-width: 700px) {
  .registration-product-list { grid-template-columns: 1fr; }
}
.shop-panel { margin-top: 18px; }
.performance-list { display: grid; gap: 10px; }
.performance-list article {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.performance-list strong, .performance-list span { display: block; }
.performance-list span { color: var(--muted); font-weight: 800; }
.progress-row.compact { padding: 0; }
.progress-row.compact b { max-width: 100%; }
.fieldforce-support { margin-top: 18px; }

.mobile-dashboard {
  width: min(430px, 100%);
  min-height: 760px;
  position: relative;
  overflow: hidden;
  padding: 36px 18px 76px;
  border-radius: 38px;
}
.mobile-dashboard .sales-card.large strong { font-size: 36px; }

.registered-shops-shell { width: min(1320px, 100%); }
.registered-shops-header .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.registered-shop-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.registered-shop-summary article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgba(210, 220, 230, .9);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}
.registered-shop-summary span {
  color: var(--muted);
  font-weight: 900;
}
.registered-shop-summary strong {
  color: #46307e;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: 32px;
}
.registered-shops-panel {
  overflow: hidden;
}
.registered-shops-table {
  width: 100% !important;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
.table-scroll .registered-shops-table {
  min-width: 920px;
}
.table-scroll .registered-shops-table td {
  vertical-align: top;
}
.table-scroll .registered-shops-table td:nth-child(5) {
  min-width: 240px;
  white-space: normal;
}
.registered-shops-table th,
.registered-shops-table td {
  white-space: nowrap;
  vertical-align: middle;
}
.registered-shops-table td {
  color: #334155;
  font-weight: 700;
}
.registered-shops-table td strong {
  color: #102033;
  font-weight: 900;
}
.table-chip {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--purple);
  background: #eee9ff;
  font-weight: 900;
}
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  padding: 7px 10px;
  outline: none;
  background: #fff;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 100, 233, .12);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  color: #fff !important;
  border-color: var(--purple);
  background: var(--purple);
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  color: #fff !important;
  border-color: var(--blue);
  background: var(--blue);
}

.shopkeeper-shell { width: min(1240px, 100%); }
.shopkeeper-header span { color: var(--blue); }
.shopkeeper-hero {
  display: grid;
  grid-template-columns: .95fr 1.35fr;
  gap: 18px;
  margin-bottom: 18px;
}
.shopkeeper-sales {
  min-height: 210px;
  display: grid;
  align-content: center;
  background: linear-gradient(135deg, #075ce5, #1389ff 56%, #10b981);
}
.shopkeeper-sales strong {
  margin: 8px 0 18px;
  font-size: clamp(36px, 5vw, 54px);
}
.shopkeeper-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.shopkeeper-stats article,
.shopkeeper-actions a {
  border: 1px solid rgba(210, 220, 230, .9);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}
.shopkeeper-stats article {
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
}
.shopkeeper-stats span,
.shopkeeper-stats small {
  color: var(--muted);
  font-weight: 800;
}
.shopkeeper-stats strong {
  color: #0f2b70;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: 30px;
}
.shopkeeper-actions {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.shopkeeper-actions a {
  min-height: 104px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 2px 12px;
  padding: 18px;
}
.shopkeeper-actions span {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-family: Inter, sans-serif;
  font-size: 22px;
  font-weight: 900;
}
.shopkeeper-actions strong,
.shopkeeper-actions small {
  display: block;
}
.shopkeeper-actions strong {
  color: #102033;
  font-size: 18px;
}
.shopkeeper-actions small {
  color: var(--muted);
  font-weight: 800;
}
.shopkeeper-grid { grid-template-columns: .85fr 1.15fr; align-items: start; }
.shopkeeper-sale-form button { margin-top: 8px; }
.form-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sale-items {
  display: grid;
  gap: 8px;
}
.sale-item-row {
  display: grid;
  grid-template-columns: 1fr 86px 112px 96px;
  gap: 8px;
  align-items: center;
}
.sale-item-row select,
.sale-item-row input {
  min-width: 0;
}
.sale-item-row .line-total {
  display: grid;
  min-height: 48px;
  place-items: center end;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #0f766e;
  background: #f8fafc;
  font-family: Inter, "Anek Bangla", sans-serif;
  white-space: nowrap;
}
.sale-calculation {
  display: grid;
  gap: 8px;
  margin: 8px 0 2px;
}
.sale-calculation div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  font-weight: 900;
}
.sale-calculation span {
  color: var(--muted);
}
.sale-calculation strong {
  color: #0f766e;
  white-space: nowrap;
}
.shopkeeper-commission {
  margin: 0;
  grid-template-columns: repeat(3, 1fr);
}
.commission-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}
.status-chip.paid {
  color: #05603a;
  background: #dcfae6;
}
.status-chip.pending {
  color: #92400e;
  background: #fef3c7;
}
.wallet-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #1464e9);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .14);
}
.wallet-box span,
.wallet-box small {
  display: block;
  font-weight: 800;
  opacity: .9;
}
.wallet-box strong {
  display: block;
  margin-top: 3px;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: 32px;
}
.wallet-box .btn-light {
  grid-row: span 2;
  color: #0f766e;
  background: #fff;
}
.shopkeeper-profile,
.shopkeeper-products,
.shopkeeper-support-panel { margin-top: 18px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.product-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.product-grid strong,
.product-grid span,
.product-grid b,
.product-grid small {
  display: block;
}
.product-grid span,
.product-grid small {
  color: var(--muted);
  font-weight: 800;
}
.product-grid b {
  color: #0f2b70;
  font-family: Inter, "Anek Bangla", sans-serif;
}
.profile-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.profile-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.profile-grid .wide { grid-column: span 2; }
.profile-grid span,
.profile-grid strong {
  display: block;
}
.profile-grid span {
  color: var(--muted);
  font-weight: 900;
}
.profile-grid strong {
  margin-top: 3px;
  color: #102033;
}
.shopkeeper-support { margin-top: 0; }
.support-grid {
  grid-template-columns: 1fr 1fr auto;
  align-items: stretch;
}
.support-grid .btn-primary {
  align-self: center;
}
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.panel-title-row h2 { margin: 0; }
.panel-title-row a {
  color: var(--blue);
  font-weight: 900;
}
.shopkeeper-transactions { margin-top: 18px; }
.transaction-table {
  display: grid;
  gap: 8px;
}
.transaction-table article {
  display: grid;
  grid-template-columns: 1.1fr 1fr .8fr .8fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.transaction-table article:first-child {
  color: var(--muted);
  background: #f8fafc;
  font-weight: 900;
}
.transaction-table strong {
  color: #102033;
  font-weight: 900;
}
.transaction-table span {
  color: var(--muted);
  font-weight: 800;
}
.transaction-table em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}
.shopkeeper-recent-table article {
  grid-template-columns: 1.15fr .8fr .8fr .75fr 1fr .7fr;
}
.shopkeeper-recent-table small {
  color: var(--muted);
  font-weight: 800;
}
.transaction-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}
.transaction-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 900;
}
.transaction-filters input,
.transaction-filters select {
  height: 42px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  outline: none;
}
.shopkeeper-transaction-summary strong {
  color: #0f2b70;
  font-size: 28px;
}

.shop-portal-page {
  min-height: 100vh;
  padding: 20px;
  align-items: stretch;
}
.shop-portal-shell {
  width: min(1440px, 100%);
  min-height: calc(100vh - 40px);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  margin: 0 auto;
}
.shop-sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .09);
  overflow-y: auto;
}
.shop-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 4px 7px 18px;
  border-bottom: 1px solid var(--line);
}
.shop-sidebar-brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: contain;
}
.shop-sidebar-brand span,
.shop-sidebar-brand strong,
.shop-sidebar-brand small {
  display: block;
  min-width: 0;
}
.shop-sidebar-brand strong {
  overflow: hidden;
  color: #102033;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-sidebar-brand small {
  color: var(--muted);
  font-weight: 800;
}
.shop-sidebar nav {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}
.shop-sidebar nav a,
.shop-sidebar-logout {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  color: #526174;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.shop-sidebar nav a:hover {
  color: var(--blue);
  background: #eef5ff;
}
.shop-sidebar nav a.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 9px 18px rgba(20, 100, 233, .2);
}
.shop-nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: 18px;
  font-weight: 900;
}
.shop-sidebar nav a:not(.active) .shop-nav-icon {
  color: var(--blue);
  background: #eaf2ff;
}
.shop-sidebar form {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.shop-sidebar-logout {
  color: #b42318;
}
.shop-sidebar-logout .shop-nav-icon {
  background: #fff0ee;
}
.shop-page-content {
  min-width: 0;
  padding: 10px 0 30px;
}
.shop-page-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.shop-page-header > div {
  min-width: 0;
}
.shop-page-header span {
  color: var(--blue);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 900;
}
.shop-page-header h1 {
  margin: 4px 0 0;
  color: #102033;
  font-size: 32px;
}
.shop-page-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 800;
}
.shop-page-shortcuts {
  grid-template-columns: repeat(5, 1fr);
}
.shop-form-panel {
  max-width: 920px;
}
.shop-sale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
.shop-sale-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.sale-customer-panel .panel-title-row,
.sale-product-panel .panel-title-row {
  align-items: start;
}
.sale-customer-panel .panel-title-row p,
.sale-product-panel .panel-title-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-weight: 800;
}
.shop-sale-layout label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-weight: 900;
}
.shop-sale-layout input,
.shop-sale-layout select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  padding: 10px 13px;
  background: #fff;
  outline: none;
}
.shop-sale-layout input:focus,
.shop-sale-layout select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 100, 233, .12);
}
.shop-sale-layout .input-validation-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}
.sale-validation {
  display: none;
  margin-top: 6px;
  color: #b42318;
  font-weight: 800;
}
.sale-validation.is-visible {
  display: block;
}
.customer-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}
.customer-status.is-walk-in,
.customer-search-message.is-walk-in {
  color: #475467;
  background: #f2f4f7;
}
.customer-status.is-found,
.customer-search-message.is-found {
  color: #05603a;
  background: #dcfae6;
}
.customer-status.is-not-found,
.customer-search-message.is-not-found {
  color: #b42318;
  background: #fee4e2;
}
.customer-status.is-searching,
.customer-search-message.is-searching {
  color: #175cd3;
  background: #eff8ff;
}
.customer-search-field,
.product-autocomplete {
  position: relative;
}
.customer-search-field input {
  padding-right: 42px;
}
.search-field-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 22px;
  font-weight: 900;
  pointer-events: none;
}
.customer-search-message {
  display: block;
  width: fit-content;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 800;
}
.customer-suggestions,
.product-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  z-index: 20;
  overflow: hidden;
  max-height: 330px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .15);
}
.customer-suggestions button,
.product-suggestions button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: #102033;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.customer-suggestions button:last-child,
.product-suggestions button:last-child {
  border-bottom: 0;
}
.customer-suggestions button:hover,
.product-suggestions button:hover {
  background: #f4f8ff;
}
.customer-suggestions strong,
.customer-suggestions span,
.product-suggestions strong,
.product-suggestions small,
.product-suggestions b,
.product-suggestions span {
  display: block;
}
.customer-suggestions span,
.product-suggestions small {
  color: var(--muted);
  font-weight: 800;
}
.product-suggestions button > span:last-child {
  flex: 0 0 auto;
  text-align: right;
}
.product-suggestions b {
  color: #0f766e;
}
.product-suggestions button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.product-autocomplete {
  margin-bottom: 16px;
}
.product-autocomplete .search-field-icon {
  left: 15px;
  right: auto;
}
.product-autocomplete input {
  padding-left: 46px;
}
.sale-cart-empty {
  min-height: 190px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px dashed #b8c5d4;
  border-radius: 10px;
  color: var(--muted);
  background: #f8fafc;
  text-align: center;
}
.sale-cart-empty[hidden] {
  display: none;
}
.sale-cart-empty strong {
  color: #344054;
}
.sale-cart-wrap {
  overflow-x: auto;
}
.sale-cart-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}
.sale-cart-table th,
.sale-cart-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.sale-cart-table th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}
.sale-cart-table td strong,
.sale-cart-table td small {
  display: block;
}
.sale-cart-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}
.cart-quantity-control,
.modal-quantity-control {
  display: grid;
  grid-template-columns: 34px 56px 34px;
  align-items: center;
  width: fit-content;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  overflow: hidden;
}
.cart-quantity-control button,
.modal-quantity-control button {
  height: 38px;
  border: 0;
  color: var(--blue);
  background: #eef5ff;
  font-weight: 900;
  cursor: pointer;
}
.cart-quantity-control input,
.modal-quantity-control input {
  width: 100%;
  min-height: 38px;
  height: 38px;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  -moz-appearance: textfield;
}
.cart-quantity-control input::-webkit-inner-spin-button,
.modal-quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.cart-remove-button,
.modal-close-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #b42318;
  background: #fff0ee;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.sale-checkout-panel {
  position: sticky;
  top: 20px;
}
.sale-checkout-panel h2 {
  font-size: 24px;
}
.sale-checkout-panel .sale-calculation {
  margin-top: 18px;
}
.sale-submit-button {
  width: 100%;
  margin-top: 12px;
}
.sale-submit-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.quantity-modal {
  width: min(460px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #102033;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}
.quantity-modal::backdrop {
  background: rgba(15, 23, 42, .58);
}
.quantity-modal form {
  display: grid;
  gap: 14px;
  padding: 22px;
}
.quantity-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.quantity-modal-header small {
  color: var(--blue);
  font-family: Inter, sans-serif;
  font-weight: 900;
}
.quantity-modal-header h2 {
  margin: 4px 0 0;
  font-size: 24px;
}
.quantity-modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}
.quantity-modal label {
  color: #334155;
  font-weight: 900;
}
.modal-quantity-control {
  grid-template-columns: 48px 1fr 48px;
  width: 100%;
}
.modal-quantity-control button,
.modal-quantity-control input {
  height: 48px;
}
.modal-stock-message {
  color: var(--muted);
  font-weight: 800;
}
.quantity-modal-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 9px;
  color: #0f766e;
  background: #ecfdf3;
  font-weight: 900;
}
.quantity-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.shop-products-page article {
  position: relative;
  min-height: 190px;
  align-content: end;
  padding-top: 72px;
}
.product-symbol {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 900;
}
.stock-low {
  color: #b54708 !important;
}
.commission-page-summary,
.wallet-page-grid,
.support-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.commission-page-summary article,
.wallet-page-grid article,
.support-page-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}
.commission-page-summary span,
.wallet-page-grid span {
  display: block;
  color: var(--muted);
  font-weight: 900;
}
.commission-page-summary strong,
.wallet-page-grid strong {
  display: block;
  margin-top: 7px;
  color: #0f2b70;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: 28px;
}
.commission-list {
  display: grid;
  gap: 10px;
}
.commission-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.commission-list small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}
.commission-list .total {
  color: #fff;
  border-color: #0f766e;
  background: #0f766e;
}
.commission-list .total small {
  color: rgba(255,255,255,.8);
}
.wallet-page-card {
  min-height: 220px;
  display: grid;
  align-content: center;
  margin-bottom: 18px;
  padding: 30px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #075ce5, #0f766e);
  box-shadow: 0 20px 40px rgba(20, 100, 233, .18);
}
.wallet-page-card span,
.wallet-page-card small {
  font-weight: 800;
  opacity: .85;
}
.wallet-page-card strong {
  margin: 8px 0 16px;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: 46px;
}
.wallet-page-grid {
  grid-template-columns: repeat(2, 1fr);
}
.wallet-page-grid small {
  color: var(--muted);
  font-weight: 800;
}
.wallet-action-panel,
.support-report-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.wallet-action-panel h2,
.support-report-panel h2 {
  margin-bottom: 4px;
}
.wallet-action-panel p,
.support-report-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.support-page-grid {
  grid-template-columns: repeat(2, 1fr);
}
.support-page-grid article {
  display: grid;
  gap: 5px;
}
.support-page-grid small,
.support-page-grid p {
  color: var(--muted);
  font-weight: 800;
}
.support-page-grid strong {
  color: #102033;
  font-size: 24px;
}
.support-page-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 21px;
}

.company-shell { width: min(1320px, 100%); }
.company-header span { color: #0f766e; }
.company-hero {
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: 18px;
  margin-bottom: 18px;
}
.company-sales {
  min-height: 220px;
  display: grid;
  align-content: center;
  background: linear-gradient(135deg, #0f766e, #1464e9 58%, #f59e0b);
}
.company-sales strong {
  margin: 8px 0 18px;
  font-size: clamp(34px, 5vw, 52px);
}
.company-stats,
.company-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.company-summary {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}
.company-stats article,
.company-summary article {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px solid rgba(210, 220, 230, .9);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}
.company-stats span,
.company-stats small,
.company-summary span,
.company-summary small {
  color: var(--muted);
  font-weight: 900;
}
.company-stats strong,
.company-summary strong {
  color: #0f766e;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: 30px;
}
.company-grid {
  grid-template-columns: .95fr 1.05fr;
  align-items: start;
}
.company-shop-list {
  display: grid;
  gap: 10px;
}
.company-shop-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.company-shop-list strong,
.company-shop-list span,
.company-shop-list small {
  display: block;
}
.company-shop-list span,
.company-shop-list small,
.company-sale-table small {
  color: var(--muted);
  font-weight: 800;
}
.company-shop-list b {
  padding: 5px 10px;
  border-radius: 999px;
  color: #075b36;
  background: #dcfae6;
  white-space: nowrap;
}
.company-sale-table article {
  grid-template-columns: .9fr 1fr 1fr .7fr .55fr;
}
.company-district-panel { margin-top: 18px; }
.company-district-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.company-district-grid article {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.company-district-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.company-district-grid strong,
.company-district-grid span,
.company-district-grid small {
  display: block;
}
.company-district-grid span {
  color: #0f766e;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-weight: 900;
  white-space: nowrap;
}
.company-district-grid small {
  color: var(--muted);
  font-weight: 800;
}
.company-district-grid i {
  height: 8px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #1464e9 60%, #f59e0b);
}

.landing-page {
  min-height: calc(100vh - 88px);
  padding: 22px 18px 34px;
  background:
    radial-gradient(circle at 9% 10%, rgba(8, 168, 82, .22), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(20, 100, 233, .18), transparent 28%),
    linear-gradient(135deg, #f7fff9 0%, #edf6ff 48%, #fff7ea 100%);
}
.landing-header {
  background: linear-gradient(180deg, rgba(247, 251, 248, .92), rgba(247, 251, 248, 0));
}
.landing-navbar {
  border-color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .72);
}
.landing-hero,
.district-section,
.shopkeeper-preview-section {
  width: min(1480px, 100%);
  margin: 0 auto;
}
.landing-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 22px;
  align-items: center;
}
.hero-copy {
  padding: 30px 0;
}
.hero-kicker,
.section-title-row span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(8, 168, 82, .18);
  border-radius: 999px;
  color: #08723f;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: 13px;
  font-weight: 900;
}
.hero-copy h1 {
  max-width: 780px;
  margin: 18px 0 14px;
  color: #102033;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}
.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #45566b;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.glossy-btn,
.glossy-light {
  min-width: 150px;
  min-height: 50px;
  box-shadow: 0 16px 34px rgba(8, 168, 82, .18);
}
.glossy-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}
.hero-market-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}
.hero-stat-card,
.hero-phone-preview,
.district-card,
.empty-shop-preview,
.landing-shop-list article {
  border: 1px solid rgba(255, 255, 255, .76);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .12);
  backdrop-filter: blur(18px);
}
.hero-stat-card {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 20px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.hero-stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .54), transparent 58%);
  pointer-events: none;
}
.hero-stat-card span,
.hero-stat-card small {
  position: relative;
  z-index: 1;
  color: #526174;
  font-weight: 900;
}
.hero-stat-card strong {
  position: relative;
  z-index: 1;
  color: #102033;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: 42px;
}
.green-glow { background: linear-gradient(135deg, rgba(220, 250, 230, .96), rgba(255, 255, 255, .74)); }
.blue-glow { background: linear-gradient(135deg, rgba(219, 234, 254, .98), rgba(255, 255, 255, .74)); }
.orange-glow { background: linear-gradient(135deg, rgba(255, 237, 213, .98), rgba(255, 255, 255, .74)); }
.hero-phone-preview {
  grid-column: 1 / -1;
  min-height: 330px;
  position: relative;
  overflow: hidden;
  padding: 36px 18px 18px;
  border-radius: 30px;
}
.landing-sales {
  min-height: 150px;
  border-radius: 18px;
}
.landing-sales strong {
  margin: 5px 0 10px;
}
.landing-quick-grid span {
  min-height: 66px;
  background: rgba(255, 255, 255, .86);
}
.district-section,
.shopkeeper-preview-section {
  margin-top: 22px;
}
.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-title-row h2 {
  margin: 8px 0 0;
  font-size: 32px;
  line-height: 1.1;
}
.section-title-row > strong {
  color: #0f766e;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: 15px;
}
.district-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.district-card {
  padding: 18px;
  border-radius: 18px;
}
.district-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.district-card-top span {
  color: #102033;
  font-size: 20px;
  font-weight: 900;
}
.district-card-top b {
  align-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  color: #174261;
  background: #dff3ff;
  font-family: Inter, "Anek Bangla", sans-serif;
  white-space: nowrap;
}
.district-metrics {
  display: grid;
  gap: 12px;
}
.district-metrics div {
  display: grid;
  gap: 6px;
}
.district-metrics small {
  color: #526174;
  font-weight: 900;
}
.district-metrics strong {
  color: #102033;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: 25px;
}
.district-metrics i {
  height: 8px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #08a852, #1464e9 58%, #f59e0b);
  box-shadow: 0 8px 18px rgba(20, 100, 233, .16);
}
.landing-shop-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.landing-shop-list article {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
}
.landing-shop-list strong,
.landing-shop-list span,
.landing-shop-list b,
.empty-shop-preview strong,
.empty-shop-preview span {
  display: block;
}
.landing-shop-list strong {
  color: #102033;
  font-size: 17px;
  line-height: 1.25;
}
.landing-shop-list span,
.empty-shop-preview span {
  color: #64748b;
  font-weight: 800;
}
.landing-shop-list b {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #075b36;
  background: #dcfae6;
  font-family: Inter, "Anek Bangla", sans-serif;
}
.empty-shop-preview {
  padding: 24px;
  border-radius: 18px;
}
.empty-shop-preview strong {
  margin-bottom: 4px;
  font-size: 22px;
}
.glossy-feature-band {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px);
}

.customer-shell { width: min(1240px, 100%); }
.customer-header span { color: #0f766e; }
.customer-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.customer-summary article,
.customer-actions a {
  border: 1px solid rgba(210, 220, 230, .9);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}
.customer-summary article {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 20px;
}
.customer-summary span,
.customer-summary small {
  color: var(--muted);
  font-weight: 900;
}
.customer-summary strong {
  color: #0f766e;
  font-family: Inter, "Anek Bangla", sans-serif;
  font-size: 34px;
}
.customer-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.customer-actions a {
  min-height: 96px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 2px 12px;
  padding: 17px;
}
.customer-actions span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0f766e;
  font-family: Inter, sans-serif;
  font-weight: 900;
}
.customer-actions strong,
.customer-actions small { display: block; }
.customer-actions strong { font-size: 18px; }
.customer-actions small {
  color: var(--muted);
  font-weight: 800;
}
.customer-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.customer-shop-list {
  display: grid;
  gap: 10px;
  max-height: 640px;
  overflow: auto;
  padding-right: 3px;
}
.customer-shop-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.customer-shop-list article.is-selected {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.customer-shop-list strong,
.customer-shop-list span,
.customer-shop-list small { display: block; }
.customer-shop-list span,
.customer-shop-list small {
  color: var(--muted);
  font-weight: 800;
}
.shop-select-side {
  display: grid;
  justify-items: end;
  gap: 9px;
}
.shop-select-side b {
  padding: 5px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #dcfae6;
  font-size: 13px;
  white-space: nowrap;
}
.selected-shop-box {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.selected-shop-box span {
  color: var(--muted);
  font-weight: 900;
}
.selected-shop-box strong {
  color: #0f766e;
  font-size: 18px;
}
.customer-item-row { grid-template-columns: 1fr 86px 110px; }
.customer-orders,
.customer-promo-panel { margin-top: 18px; }
.customer-order-table article { grid-template-columns: .8fr .9fr 1.4fr .75fr .65fr; }
.customer-order-table small {
  color: var(--muted);
  font-weight: 800;
}
.promotion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.promotion-grid article {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.promotion-grid strong {
  color: #0f766e;
  font-size: 18px;
}
.promotion-grid span {
  color: var(--muted);
  font-weight: 800;
}

.customer-portal-page { scroll-behavior: smooth; }
.customer-sidebar .shop-sidebar-brand img { background: #ecfdf5; }
.customer-sidebar .shop-sidebar-brand strong {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-sidebar .shop-sidebar-brand small { max-width: 145px; overflow: hidden; text-overflow: ellipsis; }
.customer-profile-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.customer-profile-heading .customer-avatar { margin: 0; }
.customer-profile-heading h2 { margin: 0; }
.customer-profile-heading p,
.customer-form-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}
.customer-profile-grid { grid-template-columns: repeat(3, 1fr); }
.customer-support-grid article .btn-light {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}
.customer-password-panel { max-width: 720px; }
.customer-password-panel form {
  max-width: 500px;
  gap: 8px;
  margin-top: 22px;
}
.customer-password-panel form label { margin-top: 8px; }
.customer-password-panel form .btn-primary {
  width: fit-content;
  min-width: 210px;
  margin-top: 12px;
}
.customer-form-message {
  max-width: 500px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
}
.customer-form-message.success { color: #166534; background: #dcfce7; }
.customer-form-message.error { color: #991b1b; background: #fee2e2; }
.customer-order-layout { scroll-margin-top: 18px; }
.customer-order-layout .shop-sale-main { min-width: 0; }
.customer-product-panel {
  padding: 30px;
  border-radius: 24px;
}
.customer-product-panel .panel-title-row { margin-bottom: 26px; }
.customer-product-panel .panel-title-row h2 {
  color: #0f172a;
  font-size: 32px;
}
.customer-product-panel .panel-title-row p {
  margin-top: 14px;
  font-size: 18px;
}
.customer-product-panel .table-chip {
  min-height: 54px;
  align-items: center;
  padding: 10px 16px;
  color: #6336cf;
  background: #f0e9ff;
  font-size: 18px;
}
.customer-product-search { margin-bottom: 20px; }
.customer-product-search input {
  min-height: 70px;
  padding-left: 62px;
  border-radius: 14px;
  font-size: 18px;
}
.customer-search-icon {
  position: absolute;
  top: 50%;
  left: 22px;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 3px solid #64748b;
  border-radius: 50%;
  transform: translateY(-60%);
  pointer-events: none;
}
.customer-search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 8px;
  height: 3px;
  border-radius: 999px;
  background: #64748b;
  content: "";
  transform: rotate(-48deg);
  transform-origin: left center;
}
.customer-cart-empty {
  min-height: 258px;
  border-radius: 14px;
  font-size: 18px;
}
.customer-cart-empty strong {
  margin-bottom: 10px;
  font-size: 19px;
}
.customer-shop-strip {
  max-height: 360px;
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.customer-shop-strip article { min-width: 0; }
.customer-shop-strip .shop-select-side { align-self: stretch; align-content: center; }
.customer-order-cart { margin-top: 18px; overflow-x: auto; }
.customer-order-cart .sale-cart-table { min-width: 650px; }
.customer-order-cart select { min-width: 260px; }
.customer-order-cart .quantity-input { width: 90px; }
.customer-order-cart .unit-price,
.customer-order-cart .line-total { white-space: nowrap; }
.customer-checkout-panel { overflow: hidden; }
.customer-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  color: #fff;
  font: 900 21px/1 Inter, sans-serif;
}
.customer-checkout-copy { margin: -7px 0 18px; color: var(--muted); font-weight: 700; }
.checkout-shop {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #d7e6e2;
  border-radius: 13px;
  background: #f0fdfa;
}
.checkout-shop span { color: #64748b; font-size: 13px; font-weight: 800; }
.checkout-shop strong { color: #0f766e; }
.customer-orders,
.customer-chat-workspace,
.customer-promo-panel { scroll-margin-top: 18px; }
.customer-chat-workspace { min-height: 650px; margin-top: 18px; }
.customer-chat-workspace .chat-customer-avatar { background: linear-gradient(135deg, #0f766e, #34d399); }
.customer-chat-workspace .chat-inbox-item.active { border-color: #6ee7b7; background: #ecfdf5; }

@media (max-width: 1100px) {
  .customer-shop-strip { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .shop-portal-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .shop-page-shortcuts { grid-template-columns: repeat(2, 1fr); }
  .shop-sale-layout { grid-template-columns: 1fr; }
  .sale-checkout-panel { position: static; }
  .hero-shell, .dashboard-grid, .fieldforce-hero { grid-template-columns: 1fr; }
  .model-panel { order: 2; }
  .phone-grid { grid-template-columns: 1fr; }
  .phone-frame { min-height: 690px; }
  .feature-band { grid-template-columns: 1fr 1fr; margin-inline: 18px; }
  .shopkeeper-hero,
  .shopkeeper-grid,
  .company-hero,
  .company-grid { grid-template-columns: 1fr; }
  .shopkeeper-stats,
  .shopkeeper-actions,
  .customer-summary,
  .customer-actions,
  .company-stats,
  .company-summary,
  .company-district-grid,
  .promotion-grid,
  .profile-grid,
  .product-grid,
  .registered-shop-summary { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: 1fr; }
  .landing-hero { grid-template-columns: 1fr; }
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-shop-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .shop-portal-page { padding: 12px; }
  .shop-portal-shell {
    min-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .shop-sidebar {
    position: static;
    height: auto;
    padding: 12px;
  }
  .shop-sidebar-brand { padding-bottom: 12px; }
  .shop-sidebar nav {
    display: flex;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }
  .shop-sidebar nav a {
    width: auto;
    min-width: max-content;
  }
  .shop-sidebar form {
    position: absolute;
    top: 24px;
    right: 24px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .shop-sidebar-logout {
    width: 40px;
    min-height: 40px;
    padding: 5px;
  }
  .shop-sidebar-logout > span:last-child { display: none; }
  .shop-page-content { padding-top: 0; }
  .shop-page-header {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .shop-page-header h1 { font-size: 28px; }
  .shop-page-shortcuts,
  .commission-page-summary,
  .wallet-page-grid,
  .support-page-grid { grid-template-columns: 1fr; }
  .wallet-page-card { min-height: 190px; padding: 22px; }
  .wallet-page-card strong { font-size: 36px; }
  .wallet-action-panel,
  .support-report-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .sale-customer-panel .form-grid {
    grid-template-columns: 1fr;
  }
  .sale-customer-panel .panel-title-row,
  .sale-product-panel .panel-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .customer-product-panel { padding: 22px 18px; }
  .customer-product-panel .panel-title-row h2 { font-size: 28px; }
  .customer-product-panel .panel-title-row p { font-size: 16px; }
  .customer-product-search input {
    min-height: 58px;
    font-size: 16px;
  }
  .customer-cart-empty {
    min-height: 220px;
    padding: 24px 14px;
  }
  .product-suggestions button {
    align-items: flex-start;
  }
  .quantity-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .site-header { padding-inline: 12px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .brand strong { font-size: 22px; }
  .hero-shell { padding-inline: 12px; }
  .model-panel { padding: 18px; }
  .quick-grid, .feature-band, .commission-mini, .fieldforce-summary, .fieldforce-actions, .shopkeeper-stats, .shopkeeper-actions, .customer-summary, .customer-actions, .company-stats, .company-summary, .company-district-grid, .profile-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .commission-mini b { grid-column: 1 / -1; }
  .phone-frame { border-radius: 28px; padding-inline: 14px; }
  .dashboard-header { align-items: flex-start; flex-direction: column; }
  .registered-shops-header .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .registered-shops-header .header-actions .btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .registered-shop-summary { grid-template-columns: 1fr 1fr; }
  .auth-page, .app-page { padding: 16px; }
  .toast-stack { top: 12px; right: 12px; }
  .shopkeeper-sales { min-height: 180px; }
  .shopkeeper-stats article { min-height: 150px; padding: 16px; }
  .shopkeeper-actions a {
    min-height: 118px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .shopkeeper-actions span { grid-row: auto; }
  .transaction-table {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .transaction-table article {
    min-width: 620px;
  }
  .shopkeeper-recent-table article {
    min-width: 860px;
  }
  .company-sale-table article {
    min-width: 760px;
  }
  .form-grid.two,
  .sale-item-row {
    grid-template-columns: 1fr;
  }
  .sale-item-row .line-total {
    place-items: center start;
  }
  .customer-shop-list article,
  .promotion-grid {
    grid-template-columns: 1fr;
  }
  .customer-shop-strip { grid-template-columns: 1fr; }
  .customer-profile-grid { grid-template-columns: 1fr; }
  .customer-profile-heading { align-items: flex-start; }
  .customer-password-panel form .btn-primary { width: 100%; }
  .customer-chat-workspace { min-height: 820px; }
  .shop-select-side {
    justify-items: stretch;
  }
  .customer-order-table article {
    min-width: 780px;
  }
  .profile-grid .wide { grid-column: 1 / -1; }
  .wallet-box { grid-template-columns: 1fr; }
  .wallet-box .btn-light { grid-row: auto; }
  .transaction-filters {
    align-items: stretch;
    flex-direction: column;
  }
  .transaction-filters .btn-light {
    width: 100%;
  }
  .landing-page { padding: 16px 12px 26px; }
  .landing-hero { min-height: 0; gap: 14px; }
  .hero-copy { padding: 12px 0; }
  .hero-copy h1 { font-size: 42px; }
  .hero-copy p { font-size: 17px; }
  .hero-actions a { width: 100%; }
  .hero-market-panel,
  .district-grid,
  .landing-shop-list {
    grid-template-columns: 1fr;
  }
  .hero-stat-card { min-height: 128px; }
  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-title-row h2 { font-size: 27px; }
  .district-card,
  .landing-shop-list article {
    border-radius: 14px;
  }
}

.chat-nav-link { position: relative; }
.chat-unread-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font: 700 12px/1 Inter, sans-serif;
}
.chat-unread-badge[hidden] { display: none; }
.chat-nav-link .chat-unread-badge { margin-left: auto; }
.customer-chat-status { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; font-weight: 700; }
.live-notification-stack { position: fixed; z-index: 1200; top: 18px; right: 18px; display: grid; gap: 10px; }
.live-chat-toast {
  display: grid;
  width: min(340px, calc(100vw - 36px));
  gap: 4px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  text-align: left;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .28);
  cursor: pointer;
}
.live-chat-toast span { overflow: hidden; color: #cbd5e1; text-overflow: ellipsis; white-space: nowrap; }
.chat-modal {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, .52);
}
.chat-modal[hidden] { display: none; }
.chat-modal-panel {
  display: grid;
  grid-template-rows: auto minmax(280px, 55vh) auto;
  width: min(560px, 100%);
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(15, 23, 42, .3);
}
.chat-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(420px, 1fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(255,255,255,0.6);
}
.shop-chat-page {
  height: 100vh;
  min-height: 640px;
  padding: 0;
  overflow: hidden;
}
.shop-chat-page .shop-portal-shell {
  width: 100%;
  max-width: none;
  height: 100vh;
  min-height: 640px;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
}
.shop-chat-page .shop-sidebar {
  top: 0;
  height: 100vh;
  border-block: 0;
  border-left: 0;
  border-radius: 0;
}
.shop-chat-page .shop-page-header { display: none; }
.shop-chat-page .shop-page-content {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}
.shop-chat-page .chat-workspace {
  min-height: 0;
  height: 100%;
  border-block: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
}
.chat-inbox {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border-right: 1px solid #dbe5f1;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.chat-inbox-title { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 14px; }
.chat-inbox-title span { color: #2563eb; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.chat-inbox-title h2 { margin: 3px 0 0; font-size: 26px; }
.chat-inbox-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 16px 14px;
  padding: 0 13px;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
}
.chat-inbox-search input {
  width: 100%;
  height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}
.chat-inbox-list { min-height: 0; overflow-y: auto; padding: 0 10px 14px; scrollbar-gutter: stable; }
.chat-inbox-item {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 7px;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.chat-inbox-item:hover { border-color: rgba(37, 99, 235, 0.3); background: rgba(255, 255, 255, 0.9); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.chat-inbox-item.active { border-color: #3b82f6; background: #eff6ff; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15); border-left: 4px solid #2563eb; transform: translateX(4px); }
.chat-customer-avatar {
  display: grid !important;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  font: 800 17px/1 Inter, sans-serif;
}
.chat-inbox-copy { min-width: 0; }
.chat-inbox-item span, .chat-inbox-item strong, .chat-inbox-item small, .chat-inbox-item em { display: block; }
.chat-inbox-item strong { overflow: hidden; color: #0f172a; text-overflow: ellipsis; white-space: nowrap; }
.chat-inbox-item small { margin-top: 2px; color: #64748b; }
.chat-inbox-item em { max-width: 100%; margin-top: 6px; overflow: hidden; color: #475569; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.chat-room { display: grid; min-width: 0; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; background: #f8fafc; }
.chat-room-header { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #dbe5f1; background: rgba(255, 255, 255, .96); }
.chat-room-header strong, .chat-room-header span { display: block; }
.chat-room-header strong { color: #0f172a; font-size: 18px; }
.chat-room-header span { margin-top: 3px; color: #64748b; }
.chat-online-state { padding: 6px 10px; border-radius: 999px; background: #dcfce7; color: #15803d !important; font-weight: 700; }
.chat-close-button { border: 0; background: transparent; color: #475569; font-size: 30px; cursor: pointer; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-message-list { display: flex; min-height: 0; overflow-y: auto; flex-direction: column; gap: 12px; padding: 24px; background: transparent; scrollbar-gutter: stable; scroll-behavior: smooth; }
.chat-message { width: fit-content; max-width: min(72%, 560px); padding: 12px 16px; border-radius: 18px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.chat-message.mine { align-self: flex-end; border-bottom-right-radius: 4px; background: linear-gradient(135deg, #2563eb, #6366f1); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.chat-message.theirs { align-self: flex-start; border-bottom-left-radius: 4px; background: #f1f5f9; color: #1e293b; border: 1px solid #e2e8f0; }
.chat-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.chat-message small { display: block; margin-top: 6px; color: #94a3b8; font-size: 0.75rem; text-align: right; }
.chat-message.mine small { color: rgba(255, 255, 255, 0.7); }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
.chat-typing-indicator { padding: 16px 20px !important; min-width: 60px; }
.typing-dots { display: flex; gap: 4px; align-items: center; justify-content: center; }
.typing-dots span { display: block; width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: bounce 1.4s infinite ease-in-out both; }
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.chat-compose { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid #dbe5f1; background: #fff; }
.chat-compose input { min-width: 0; }
.chat-compose > input:not([type="file"]) { height: 46px; border-color: #cbd5e1; border-radius: 13px; background: #f8fafc; }
.chat-compose .btn-primary { min-width: 82px; border-radius: 13px; }
.chat-inbox-list,
.chat-message-list { scrollbar-width: thin; scrollbar-color: #a9bdd4 transparent; }
.chat-inbox-list::-webkit-scrollbar,
.chat-message-list::-webkit-scrollbar { width: 8px; }
.chat-inbox-list::-webkit-scrollbar-thumb,
.chat-message-list::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #a9bdd4; background-clip: padding-box; }
.chat-header-actions { display: flex; align-items: center; gap: 9px; }
.chat-call-button,
.chat-image-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  cursor: pointer;
}
.chat-call-button:disabled,
.chat-image-button:disabled { opacity: .5; cursor: not-allowed; }
.chat-message-image { display: block; max-width: 260px; max-height: 280px; border-radius: 10px; object-fit: cover; }
@keyframes pulse-ring { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(34, 197, 94, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.audio-call-overlay {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: slideUp 0.3s ease-out;
}
.audio-call-overlay[hidden] { display: none; }
.audio-call-card {
  width: min(380px, 100%);
  padding: 48px 32px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  color: #fff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.audio-call-icon {
  display: inline-grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s infinite;
  margin-bottom: 24px;
}
.audio-call-card h2 { margin: 0 0 8px; font-size: 28px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.audio-call-card p { color: rgba(255, 255, 255, 0.8); font-size: 16px; margin: 0 0 40px; }
.audio-call-actions { display: flex; justify-content: center; gap: 24px; }
.audio-call-actions button { width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; font-size: 24px; transition: transform 0.2s, filter 0.2s; }
.audio-call-actions button:hover { transform: scale(1.1); filter: brightness(1.1); }
#audio-call-accept { background: #22c55e; color: #fff; box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4); }
#audio-call-end { background: #ef4444; color: #fff; box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4); }
.video-call-overlay {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: slideUp 0.3s ease-out;
}
.video-call-overlay[hidden] { display: none; }
.video-call-card {
  width: min(720px, 100%);
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  color: #fff;
}
.video-call-card h2 { margin: 0 0 6px; font-size: 24px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.video-call-card p { color: rgba(255, 255, 255, 0.8); font-size: 15px; margin: 0 0 18px; }
.video-call-streams { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; margin-bottom: 24px; }
#video-call-remote { width: 100%; height: 100%; object-fit: cover; background: #000; }
#video-call-local { position: absolute; right: 14px; bottom: 14px; width: 26%; max-width: 160px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.6); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); background: #111; }
.video-call-actions { display: flex; justify-content: center; gap: 24px; }
.video-call-actions button { width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; font-size: 24px; transition: transform 0.2s, filter 0.2s; }
.video-call-actions button:hover { transform: scale(1.1); filter: brightness(1.1); }
#video-call-accept { background: #22c55e; color: #fff; box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4); }
#video-call-end { background: #ef4444; color: #fff; box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4); }

@media (max-width: 820px) {
  .shop-chat-page { height: auto; min-height: 100vh; overflow: visible; }
  .shop-chat-page .shop-portal-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
  }
  .shop-chat-page .shop-sidebar {
    height: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .shop-chat-page .shop-page-content { display: block; overflow: visible; }
  .shop-chat-page .chat-workspace { height: auto; }
  .chat-workspace { grid-template-columns: 1fr; }
  .chat-inbox { height: 300px; border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .chat-room { min-height: 520px; }
}
.order-notification-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-left: 4px solid #f59e0b;
}

.order-notification-panel div {
    display: grid;
    gap: 4px;
}

.customer-orders-list {
    display: grid;
    gap: 16px;
}

.customer-order-card {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.delivery-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.delivery-form-grid label,
.delivery-status-form {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 800;
}
.delivery-form-grid .wide { grid-column: 1 / -1; }
.delivery-form-grid input,
.delivery-form-grid select,
.delivery-status-form input,
.delivery-status-form select,
.delivery-assign-form select,
.availability-form select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}
.delivery-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.delivery-person-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.delivery-person-card img,
.delivery-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.delivery-avatar {
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 24px;
  font-weight: 900;
}
.delivery-person-card h3,
.delivery-person-card p { margin: 0 0 5px; }
.delivery-assignment-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #eff6ff;
}
.delivery-assign-form,
.availability-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.delivery-assign-form select,
.availability-form select { max-width: 300px; }
.delivery-status-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}
.delivery-status-form button { min-height: 44px; }
.delivery-password-form { max-width: 520px; }
.delivery-sidebar .shop-sidebar-brand img { object-fit: cover; }
.delivery-live-map {
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  background: #e2e8f0;
}
.delivery-live-map.compact {
  min-height: 260px;
  margin-top: 12px;
}
.tracking-pin-shell {
  border: 0;
  background: transparent;
}
.tracking-pin {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .26);
  font: 900 14px/1 Inter, sans-serif;
}
.tracking-pin.delivery { background: #1464e9; }
.tracking-pin.customer { background: #08a852; }
.delivery-location-note {
  margin: 8px 0 0;
  color: #64748b;
  font-weight: 800;
}

.agent-portal-page { background: #f4f7fb; }
.agent-sidebar { border-color: #d9e5f5; }
.agent-sidebar .shop-sidebar-brand img { background: #eaf2ff; }
.agent-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.agent-stat-grid article {
  padding: 18px;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 43, 112, .06);
}
.agent-stat-grid span,
.agent-stat-grid strong,
.agent-stat-grid small { display: block; }
.agent-stat-grid span { color: #64748b; font-size: 13px; font-weight: 800; }
.agent-stat-grid strong { margin: 8px 0 4px; color: #102033; font-size: 28px; }
.agent-stat-grid small { color: #718096; }
.agent-stat-grid.compact strong { font-size: 24px; }
.agent-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.agent-quick-actions a {
  display: block;
  padding: 16px;
  border: 1px solid #cfe0fa;
  border-radius: 12px;
  background: #eef5ff;
}
.agent-quick-actions strong,
.agent-quick-actions small { display: block; }
.agent-quick-actions strong { color: #0f4fbf; }
.agent-quick-actions small { margin-top: 4px; color: #64748b; }
.agent-registration-details summary {
  color: #0f2b70;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.agent-registration-details[open] summary { margin-bottom: 18px; }
.agent-doc-state { display: block; margin-top: 6px; color: #64748b; }
.agent-inline-form { display: flex; gap: 7px; align-items: center; }
.agent-inline-form select {
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
.agent-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.activation-page {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(20, 100, 233, .16), transparent 34%),
    #f3f7fc;
}
.activation-shell { width: min(650px, 100%); margin: auto; }
.activation-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.activation-brand img { width: 52px; height: 52px; border-radius: 14px; }
.activation-brand strong,
.activation-brand span { display: block; }
.activation-brand strong { color: #102033; font-size: 22px; }
.activation-brand span { color: #64748b; font-weight: 700; }
.activation-card {
  padding: 34px;
  border: 1px solid #d9e5f5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 43, 112, .13);
}
.activation-label {
  color: #1464e9;
  font: 900 12px/1 Inter, sans-serif;
  letter-spacing: .12em;
}
.activation-card h1 { margin: 10px 0 8px; color: #102033; font-size: 32px; }
.activation-card > p { margin: 0; color: #64748b; font-weight: 700; line-height: 1.65; }
.activation-shop {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 14px;
  padding: 18px;
  border-radius: 14px;
  background: #f3f7fd;
}
.activation-shop small,
.activation-shop strong,
.activation-shop span { display: block; }
.activation-shop small { color: #64748b; font-weight: 800; }
.activation-shop strong { margin: 4px 0; color: #102033; font-size: 19px; }
.activation-shop span { color: #64748b; }
.activation-amount { text-align: right; }
.activation-amount strong { color: #1464e9; font-size: 26px; }
.activation-attempt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.activation-attempt span { color: #64748b; }
.activation-attempt small { margin-left: auto; color: #64748b; }
.activation-pay-button { width: 100%; min-height: 52px; font-size: 16px; }
.activation-config-warning {
  padding: 14px;
  border: 1px solid #f7caca;
  border-radius: 10px;
  color: #9f1c1c;
  background: #fff2f2;
  line-height: 1.6;
}
.activation-security {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  color: #17643a;
  background: #ecfdf3;
}
.activation-security strong,
.activation-security span { display: block; }
.activation-security span { margin-top: 3px; font-size: 13px; }
.activation-logout { width: 100%; margin-top: 12px; }

@media (max-width: 1050px) {
  .agent-stat-grid,
  .agent-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .delivery-form-grid,
  .delivery-team-grid { grid-template-columns: 1fr; }
  .delivery-form-grid .wide { grid-column: auto; }
  .delivery-person-card { grid-template-columns: 52px 1fr; }
  .delivery-person-card img,
  .delivery-avatar { width: 52px; height: 52px; }
  .delivery-person-card form { grid-column: 1 / -1; }
  .delivery-status-form { grid-template-columns: 1fr; }
  .delivery-live-map { min-height: 300px; }
  .delivery-live-map.compact { min-height: 240px; }
  .agent-stat-grid,
  .agent-quick-actions,
  .agent-two-column { grid-template-columns: 1fr; }
  .agent-inline-form { align-items: stretch; flex-direction: column; }
  .activation-page { padding: 12px; }
  .activation-card { padding: 22px; }
  .activation-card h1 { font-size: 27px; }
  .activation-shop { flex-direction: column; }
  .activation-amount { text-align: left; }
  .activation-attempt { align-items: flex-start; flex-direction: column; }
  .activation-attempt small { margin-left: 0; }
}

.customer-order-card > header,
.customer-order-meta,
.customer-order-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.customer-order-card > header div {
    display: grid;
    gap: 3px;
}

.customer-order-meta {
    margin: 16px 0;
}

.customer-order-items {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
}

.customer-order-items span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.customer-order-actions {
    justify-content: flex-end;
    margin-top: 16px;
}

.order-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 10px;
}

.order-message.success {
    color: #166534;
    background: #dcfce7;
}

.order-message.error {
    color: #991b1b;
    background: #fee2e2;
}

.shop-wallet-funding-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.shop-wallet-funding-form label {
    color: #334155;
    font-weight: 800;
}

.shop-wallet-funding-form input {
    width: 100%;
    margin-top: 7px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.shop-wallet-funding-form .btn-primary {
    justify-self: start;
}
