:root {
  --primary: #0F3D6E;
  --primary-hover: #0A294C;
  --primary-dark: #071C35;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-light: #EFF6FF;
  --accent-soft: #DBEAFE;
  --bg-page: #F4F7FB;
  --bg-surface: #FFFFFF;
  --border: #CBD5E1;
  --border-light: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --status-orange: #EA580C;
  --status-blue: #0284C7;
  --status-green: #16A34A;
  --status-red: #DC2626;
  --shadow-sm: 0 1px 3px rgba(15, 61, 110, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 61, 110, 0.10);
  --shadow-lg: 0 12px 28px rgba(15, 61, 110, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header.brand-navbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-topbar {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  padding: 2px;
  background: #FFFFFF;
}

.brand-text h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  display: block;
}

.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg-page);
  font-size: 0.875rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-box input:focus {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-box i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 16px;
  height: 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.channel-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  background: var(--accent-light);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--accent-soft);
}

.tenant-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tenant-select {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--primary);
  background: #FFFFFF;
  cursor: pointer;
}

.cart-trigger-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.cart-trigger-btn:hover {
  background: var(--accent);
}

.cart-badge-count {
  background: var(--status-orange);
  color: #FFFFFF;
  border-radius: 9999px;
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  font-weight: 800;
}

/* Sub-nav Tabs */
.portal-nav-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 0.35rem 1.5rem;
}

.portal-nav-container {
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 61, 110, 0.25);
}

/* Main Area */
main.content-area {
  max-width: 1520px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  width: 100%;
  flex: 1;
}

.hero-banner {
  background: linear-gradient(135deg, #0A2A52 0%, #124B88 55%, #1D4ED8 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.hero-content p {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 680px;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  gap: 1.25rem;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
  min-width: 110px;
}

.stat-pill .number {
  font-size: 1.55rem;
  font-weight: 800;
  display: block;
  color: #FFFFFF;
}

.stat-pill .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* Panels */
.portal-panel {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.portal-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid & Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--primary);
}

/* Category Pills */
.category-pills {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.cat-btn {
  padding: 0.45rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-btn.active, .cat-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Product Catalog */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}

.product-image-box {
  height: 200px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image-box img.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-box img.product-img {
  transform: scale(1.04);
}

.product-image-box i {
  width: 72px;
  height: 72px;
  color: var(--accent);
  opacity: 0.85;
}

/* Shimmer Skeleton Loader for Instant Perceived Performance */
.skeleton-product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  min-height: 380px;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.3s infinite ease-in-out;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-img {
  height: 200px;
  width: 100%;
}

.skeleton-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.skeleton-line {
  height: 16px;
  border-radius: 4px;
}

.skeleton-btn {
  height: 42px;
  border-radius: 6px;
  width: 100%;
  margin-top: auto;
}

/* Image Upload & Preview in Modal */
.image-source-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.img-tab-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.img-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.dropzone-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  background: var(--bg-page);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone-box:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.image-preview-wrapper {
  margin-top: 0.75rem;
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #00000008;
  display: none;
}

.image-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
}

/* Table Thumbnail */
.inv-prod-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inv-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-light);
  background: #E2E8F0;
  flex-shrink: 0;
}

.inv-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.product-badge-channel {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.product-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.product-msrp {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-actions-group {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Buttons */
.btn-action {
  background: var(--primary);
  color: #FFFFFF;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-action:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-whatsapp-buy {
  background: #16A34A;
  color: #FFFFFF;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 0.825rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.btn-whatsapp-buy:hover {
  background: #15803D;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.825rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Badges & Tables */
.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}

.channel-web { background: #E0F2FE; color: #0284C7; }
.channel-whatsapp { background: #DCFCE7; color: #15803D; }
.channel-facebook { background: #EFF6FF; color: #1D4ED8; }
.channel-pos { background: #FEF3C7; color: #B45309; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-page);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

.status-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-transit { background: #FEF3C7; color: #92400E; }
.status-ready { background: #EFF6FF; color: #1E40AF; }
.status-cleared { background: #D1FAE5; color: #065F46; }
.status-delivered { background: #E0F2FE; color: #075985; }
.status-alert { background: #FEE2E2; color: #991B1B; }

/* KPI Cards */
.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.kpi-trend {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.trend-up { color: var(--status-green); }
.trend-down { color: var(--status-red); }

/* Cart Drawer */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  gap: 0.85rem;
  position: relative;
}

.cart-item-thumb {
  width: 52px;
  height: 52px;
  background: #E2E8F0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
}

.cart-item-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.75rem 0 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 580px;
  width: 92%;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-main);
  outline: none;
  background: #FFFFFF;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Stepper */
.stepper-horizontal {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
}

.stepper-horizontal::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: var(--border-light);
  z-index: 1;
}

.stepper-progress-fill {
  position: absolute;
  top: 20px;
  left: 5%;
  height: 4px;
  background: var(--accent);
  z-index: 2;
  transition: width 0.3s;
}

.step-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90px;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.step-item.completed .step-icon {
  background: var(--status-green);
  border-color: var(--status-green);
  color: #FFFFFF;
}

.step-item.active .step-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Footer */
footer.platform-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 1688 / Wholesale Suppliers Hub Styling */
.supplier-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.supplier-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.supplier-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.supplier-banner {
  height: 140px;
  background: #0F2B48;
  position: relative;
  overflow: hidden;
}

.supplier-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.supplier-badge-1688 {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #FF6A00; /* 1688 signature orange */
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(255, 106, 0, 0.4);
}

.supplier-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.supplier-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.supplier-verification {
  font-size: 0.75rem;
  color: #D97706;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.supplier-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  background: var(--bg-page);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.supplier-meta-item strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.supplier-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-aliwangwang {
  background: #0284C7;
  color: #FFFFFF;
  border: none;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  justify-content: center;
  transition: background 0.2s;
}

.btn-aliwangwang:hover {
  background: #0369A1;
}

/* 1688 Quick Sourcing / Import bar */
.sourcing-1688-bar {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1px solid #FED7AA;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sourcing-1688-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-1688-tag {
  background: #FF6A00;
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 900;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.05em;
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

/* ==========================================
   SOCIAL MEDIA PUBLISHING STYLING
   ========================================== */
.btn-social-post {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-social-post:hover {
  background: #1D4ED8;
  color: #FFFFFF;
  border-color: #1D4ED8;
}

/* Social Channel Selector Cards */
.social-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.social-channel-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}

.social-channel-card.selected {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.social-channel-card i {
  width: 22px;
  height: 22px;
}

.channel-icon-ig { color: #E1306C; }
.channel-icon-fb { color: #1877F2; }
.channel-icon-wa { color: #25D366; }
.channel-icon-tt { color: #000000; }
.channel-icon-pin { color: #E60023; }

.social-channel-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Live Post Preview Mockup */
.social-preview-mockup {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.social-preview-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #E2E8F0;
  flex-shrink: 0;
}

.social-preview-body {
  flex: 1;
}

.social-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.social-preview-channel-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: #FEE2E2;
  color: #DC2626;
}

.social-preview-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.social-preview-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Mini badges in table */
.social-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.25rem;
}

.badge-ig { background: #FCE7F3; color: #BE185D; }
.badge-wa { background: #DCFCE7; color: #15803D; }
.badge-fb { background: #EFF6FF; color: #1D4ED8; }
.badge-tt { background: #F3F4F6; color: #111827; }

/* ==========================================
   INVENTORY PUBLISHING CONTROLS STYLING
   ========================================== */
.badge-status-published {
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid #BBF7D0;
}

.badge-status-draft {
  background: #F1F5F9;
  color: #64748B;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid #CBD5E1;
}

.btn-publish-live {
  background: #16A34A;
  color: #FFFFFF;
  border: none;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.2s;
}

.btn-publish-live:hover {
  background: #15803D;
}

.btn-unpublish {
  background: transparent;
  border: 1px solid #94A3B8;
  color: #64748B;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.btn-unpublish:hover {
  background: #F1F5F9;
  color: var(--text-main);
  border-color: #64748B;
}

.btn-channels-edit {
  background: #F8FAFC;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.btn-channels-edit:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.channel-tag-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Channel Config Modal Row */
.channel-config-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
}

.channel-config-row:hover {
  border-color: var(--accent);
  background: #F8FAFC;
}

.channel-config-row input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.channel-config-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

.channel-config-sub {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: normal;
}

/* ==========================================
   3-LINE HAMBURGER MENU & FUNCTIONS DRAWER
   ========================================== */
.hamburger-menu-btn {
  background: #F1F5F9;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hamburger-menu-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.main-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 250;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.main-menu-overlay.open {
  display: block;
  opacity: 1;
}

.main-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: #FFFFFF;
  z-index: 260;
  box-shadow: 4px 0 28px rgba(15, 61, 110, 0.20);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.main-menu-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-brand-logo {
  height: 38px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  padding: 2px;
}

.drawer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.drawer-close-btn:hover {
  background: var(--bg-page);
  color: var(--text-main);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-user-card {
  background: linear-gradient(135deg, #0F3D6E 0%, #1E40AF 100%);
  color: #FFFFFF;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(15, 61, 110, 0.15);
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.drawer-user-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.drawer-user-details span {
  font-size: 0.75rem;
  color: #DBEAFE;
}

.drawer-user-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.btn-drawer-auth {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s;
}

.btn-drawer-auth:hover {
  background: #FFFFFF;
  color: var(--primary);
}

.drawer-quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.btn-drawer-quick {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}

.btn-drawer-quick:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.drawer-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-functions-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drawer-func-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: #FFFFFF;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.drawer-func-item:hover {
  background: var(--bg-page);
  border-color: var(--border-light);
  transform: translateX(3px);
}

.drawer-func-item.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
}

.drawer-func-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.drawer-func-item.active .drawer-func-icon {
  background: var(--primary);
  color: #FFFFFF;
}

.drawer-func-meta {
  flex: 1;
}

.drawer-func-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}

.drawer-func-sub {
  font-size: 0.7rem;
  color: var(--text-light);
}

.drawer-func-item.active .drawer-func-sub {
  color: var(--accent);
}

.drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Topbar Quick Buttons */
.btn-topbar-quick {
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-topbar-quick:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-account-trigger {
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.btn-account-trigger:hover {
  border-color: var(--accent);
  background: #F8FAFC;
}

/* Login Modal & Role Switcher */
.login-roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.login-role-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  background: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.15s ease;
}

.login-role-card:hover, .login-role-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.login-role-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.login-role-card.selected .login-role-icon {
  background: var(--primary);
  color: #FFFFFF;
}

.login-role-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.login-role-email {
  font-size: 0.68rem;
  color: var(--text-light);
}

/* ==========================================
   INVENTORY ORDER & RMA STATUS PIPELINE STYLING
   ========================================== */
.inv-fulfillment-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
  .inv-fulfillment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .inv-fulfillment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kpi-card-order-stat {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card-order-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-card-order-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.kpi-card-order-stat.stat-all::before { background: var(--primary); }
.kpi-card-order-stat.stat-pending::before { background: #F59E0B; }
.kpi-card-order-stat.stat-livedelivery::before { background: #0284C7; }
.kpi-card-order-stat.stat-delivered::before { background: #16A34A; }
.kpi-card-order-stat.stat-canceled::before { background: #EF4444; }
.kpi-card-order-stat.stat-returned::before { background: #8B5CF6; }

.order-stat-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.4rem 0 0.2rem;
}

.order-stat-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Order Pipeline Badges */
.badge-order-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  line-height: 1.2;
}

.badge-order-all {
  background: #EFF6FF;
  color: var(--primary);
  border: 1px solid #BFDBFE;
}

.badge-order-pending {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-order-livedelivery {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.badge-order-delivered {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.badge-order-canceled {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.badge-order-returned {
  background: #F3E8FF;
  color: #7E22CE;
  border: 1px solid #E9D5FF;
}

/* Filter pills for orders */
.order-filter-pill-btn {
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.order-filter-pill-btn:hover {
  background: var(--bg-page);
  color: var(--text-main);
  border-color: var(--border-light);
}

.order-filter-pill-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(15, 61, 110, 0.25);
}

/* ======================================================== */
/* LAST-MILE DELIVERY PORTAL & TELEMETRY STYLES */
/* ======================================================== */
.delivery-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .delivery-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kpi-card-delivery {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.kpi-card-delivery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.kpi-card-delivery.kpi-couriers::before { background: var(--accent); }
.kpi-card-delivery.kpi-intransit::before { background: #0284C7; }
.kpi-card-delivery.kpi-delivered::before { background: #16A34A; }
.kpi-card-delivery.kpi-sla::before { background: #8B5CF6; }

.badge-dispatch-out {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-dispatch-transit {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-dispatch-pod {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.courier-roster-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.courier-roster-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.15s ease;
}

.courier-roster-item:hover {
  background: var(--bg-page);
  border-color: var(--accent);
}

.courier-roster-item.active {
  background: #EFF6FF;
  border-color: var(--accent);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.15);
}

.courier-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.courier-info {
  flex: 1;
  min-width: 0;
}

.courier-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.courier-sub {
  font-size: 0.72rem;
  color: var(--text-light);
}

.radar-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: radarPulse 1.8s infinite;
}

@keyframes radarPulse {
  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 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Store Admin / Owner Security Badges */
.badge-admin-only {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-security-auth-banner {
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.05);
}

.security-shield-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #EFF6FF;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

/* ======================================================== */
/* 9. SUPERADMIN COMMAND CENTER STYLING */
/* ======================================================== */
.card-superadmin-banner {
  background: linear-gradient(135deg, #0B1329 0%, #171738 50%, #0F3D6E 100%);
  border: 1px solid rgba(147, 51, 234, 0.35);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4), 0 8px 10px -6px rgba(147, 51, 234, 0.2);
}

.superadmin-shield-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(147, 51, 234, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #C084FC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-pill-superadmin {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(147, 51, 234, 0.22);
  color: #E9D5FF;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.superadmin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card-superadmin {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.1rem;
  box-shadow: 0 2px 6px rgba(15, 61, 110, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card-superadmin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 61, 110, 0.08);
}

.kpi-card-superadmin::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9333EA, #2563EB);
}

.audit-terminal-box {
  background: #090D16;
  border: 1px solid #1E293B;
  border-radius: 8px;
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: #94A3B8;
  max-height: 280px;
  overflow-y: auto;
  line-height: 1.6;
}

.audit-log-line {
  display: flex;
  gap: 0.65rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.audit-tag {
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.7rem;
}

.audit-tag-info { background: rgba(59, 130, 246, 0.2); color: #60A5FA; }
.audit-tag-success { background: rgba(34, 197, 94, 0.2); color: #4ADE80; }
.audit-tag-warn { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }

.microservice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-light);
}

.tenant-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.tenant-status-active {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.tenant-status-suspended {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* ======================================================== */
/* 10. MULTI-PLATFORM DEFAULT SOURCING SITES (1688, TAOBAO, SHEIN, CSSBUY) */
/* ======================================================== */
.sourcing-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.platform-showcase-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 2px 6px rgba(15, 61, 110, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 61, 110, 0.08);
}

.platform-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.platform-card-1688::before { background: linear-gradient(90deg, #EA580C, #FF6A00); }
.platform-card-taobao::before { background: linear-gradient(90deg, #FF6A00, #F59E0B); }
.platform-card-shein::before { background: linear-gradient(90deg, #111827, #374151); }
.platform-card-cssbuy::before { background: linear-gradient(90deg, #2563EB, #0284C7); }

.platform-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.platform-brand-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: -0.02em;
}

.badge-tag-1688 { background: #FFEDD5; color: #EA580C; border: 1px solid #FED7AA; }
.badge-tag-taobao { background: #FEF3C7; color: #D97706; border: 1px solid #FDE68A; }
.badge-tag-shein { background: #F3F4F6; color: #111827; border: 1px solid #E5E7EB; }
.badge-tag-cssbuy { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }

.platform-desc-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  min-height: 2.9rem;
}

.platform-actions-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.platform-filter-pills-bar {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-platform-filter {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-platform-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-platform-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 61, 110, 0.15);
}

.supplier-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ==========================================
   OMNICHANNEL SOCIAL MEDIA SHARING SUITE
   ========================================== */

/* Floating Share Button on Product Card */
.product-share-btn-floating {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.product-share-btn-floating:hover {
  background: var(--accent);
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.product-share-btn-floating i {
  width: 15px;
  height: 15px;
}

/* Storefront Card Action Button */
.btn-store-share {
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-store-share:hover {
  background: #EFF6FF;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-store-share i {
  width: 14px;
  height: 14px;
}

/* Product Share Modal Preview Card */
.product-share-preview-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
}

.product-share-preview-card img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  flex-shrink: 0;
}

/* Share Platforms Grid (8 Major Channels) */
.share-platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

@media (max-width: 600px) {
  .share-platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.share-platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.2s ease;
  user-select: none;
}

.share-platform-btn i {
  width: 22px;
  height: 22px;
}

.share-platform-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Specific Platform Styling */
.btn-share-wa {
  background: #DCFCE7;
  color: #15803D;
  border-color: #86EFAC;
}
.btn-share-wa:hover {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

.btn-share-fb {
  background: #DBEAFE;
  color: #1D4ED8;
  border-color: #93C5FD;
}
.btn-share-fb:hover {
  background: #1877F2;
  color: #FFFFFF;
  border-color: #1877F2;
}

.btn-share-tw {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}
.btn-share-tw:hover {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.btn-share-ig {
  background: #FDF2F8;
  color: #BE185D;
  border-color: #FBCFE8;
}
.btn-share-ig:hover {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  color: #FFFFFF;
  border-color: transparent;
}

.btn-share-tg {
  background: #E0F2FE;
  color: #0369A1;
  border-color: #7DD3FC;
}
.btn-share-tg:hover {
  background: #229ED9;
  color: #FFFFFF;
  border-color: #229ED9;
}

.btn-share-pin {
  background: #FEE2E2;
  color: #B91C1C;
  border-color: #FCA5A5;
}
.btn-share-pin:hover {
  background: #E60023;
  color: #FFFFFF;
  border-color: #E60023;
}

.btn-share-li {
  background: #EFF6FF;
  color: #1E40AF;
  border-color: #BFDBFE;
}
.btn-share-li:hover {
  background: #0A66C2;
  color: #FFFFFF;
  border-color: #0A66C2;
}

.btn-share-device {
  background: #F3E8FF;
  color: #6B21A8;
  border-color: #D8B4FE;
}
.btn-share-device:hover {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

/* Quick Instant Share Pills in Merchant Modal */
.btn-instant-share {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.15s ease;
}

.btn-share-copy {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: var(--text-main);
}
.btn-share-copy:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Share Cart Button in Drawer */
.btn-share-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-share-cart:hover {
  background: #25D366 !important;
  color: #FFFFFF !important;
  border-color: #25D366 !important;
}
.btn-share-cart:hover i {
  color: #FFFFFF !important;
}

/* Sourcing Directory Action Buttons */
.btn-delete-supplier {
  color: #DC2626 !important;
  border-color: #FECACA !important;
  background: #FEF2F2 !important;
  transition: all 0.2s ease;
}

.btn-delete-supplier:hover {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  border-color: #DC2626 !important;
}

/* ==========================================
   CHECKOUT PAYMENT METHOD STYLING
   ========================================== */
.btn-pay-region-pill {
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pay-region-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-pay-region-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.payment-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  border-color: var(--accent);
  background: #F8FAFC;
}

.payment-method-card.selected {
  border-color: var(--accent);
  background: #EFF6FF;
  box-shadow: 0 0 0 1px var(--accent);
}

.payment-method-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-method-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.payment-method-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.payment-method-card input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}







/* ======================================================== */
/* COMPREHENSIVE PHONE & TABLET COMPATIBILITY SUITE        */
/* Responsive layout adaptation for all screen form factors */
/* ======================================================== */

/* 1. TABLET BREAKPOINT (max-width: 1024px) */
@media (max-width: 1024px) {
  /* Navbar & Topbar */
  .nav-topbar {
    padding: 0.75rem 1.25rem;
    gap: 1rem;
  }
  .search-box {
    max-width: 320px;
  }

  /* Main container */
  main.content-area {
    padding: 0 1.25rem;
    margin: 1.25rem auto;
  }

  /* Hero Banner */
  .hero-banner {
    padding: 1.5rem 1.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .hero-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .stat-pill {
    min-width: 0;
  }

  /* Dashboard Grid: collapse multi-column spans */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .dashboard-grid > [style*="grid-column: span"],
  .dashboard-grid > .card,
  .dashboard-grid > div {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  /* Storefront Product Grid */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }

  /* Supplier Grid */
  .supplier-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
  }

  /* KPI Grids */
  .inv-fulfillment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .delivery-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Data Tables */
  .table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }
  .data-table, table {
    min-width: 640px;
  }

  /* Modals */
  .modal-box {
    width: 90%;
    max-width: 640px;
    padding: 1.5rem;
  }
}

/* 2. MOBILE PHONE BREAKPOINT (max-width: 768px) */
@media (max-width: 768px) {
  /* Prevent horizontal screen jank */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Brand Navbar & Header */
  .nav-topbar {
    padding: 0.6rem 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .brand-group {
    gap: 0.5rem;
  }
  .brand-logo-img {
    height: 38px;
  }
  .brand-text h1 {
    font-size: 1.05rem;
  }
  .brand-text span {
    display: none; /* Hide verbose subtitle on mobile */
  }

  /* Search Box: Full width second row */
  .search-box {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 0.25rem;
  }
  .search-box input {
    font-size: 16px; /* Prevents auto-zoom in iOS Safari */
    padding: 0.55rem 0.85rem 0.55rem 2.25rem;
  }

  /* Nav actions: Compact for phone */
  .nav-actions {
    gap: 0.5rem;
  }
  .btn-topbar-quick {
    display: none !important; /* Managed via 3-line drawer */
  }
  #currency-select, #lang-select {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
  .user-auth-pill {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }
  .cart-trigger-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }
  .cart-trigger-btn span {
    display: none; /* Hide 'Cart' text, keep icon and count badge */
  }

  /* Main Container */
  main.content-area {
    padding: 0 0.75rem;
    margin: 0.75rem auto;
  }

  /* Hero Banner */
  .hero-banner {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
  }
  .hero-content h2 {
    font-size: 1.25rem;
  }
  .hero-content p {
    font-size: 0.82rem;
    line-height: 1.35;
  }
  .hero-stats {
    gap: 0.35rem;
  }
  .stat-pill {
    padding: 0.45rem 0.35rem;
  }
  .stat-pill .number {
    font-size: 1.15rem;
  }
  .stat-pill .label {
    font-size: 0.62rem;
  }

  /* Category Navigation Pills */
  .category-pills {
    gap: 0.35rem;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-pills::-webkit-scrollbar {
    display: none;
  }
  .cat-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.76rem;
    touch-action: manipulation;
  }

  /* E-Commerce Product Catalog Grid: Optimized 2-Column Mobile Feed */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .product-card {
    border-radius: var(--radius-sm);
  }
  .product-image-box {
    height: 135px;
  }
  .product-badge-channel {
    font-size: 0.62rem;
    padding: 0.15rem 0.4rem;
  }
  .product-body {
    padding: 0.65rem;
  }
  .product-title {
    font-size: 0.84rem;
    line-height: 1.25;
    min-height: 2.1em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
  }
  .product-meta {
    font-size: 0.68rem;
    margin-bottom: 0.45rem;
    flex-direction: column;
    gap: 1px;
  }
  .product-price-row {
    margin-bottom: 0.6rem;
    gap: 0.35rem;
  }
  .product-price {
    font-size: 1.05rem;
  }
  .product-msrp {
    font-size: 0.72rem;
  }
  .btn-add-to-cart {
    padding: 0.55rem 0.5rem !important;
    font-size: 0.78rem !important;
    min-height: 38px;
  }

  /* Wholesale / Supplier Hub */
  .supplier-card-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* KPI Grids: 2-column mobile cards */
  .inv-fulfillment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .delivery-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .kpi-card-order-stat, .kpi-card-delivery {
    padding: 0.75rem 0.85rem;
  }
  .order-stat-title {
    font-size: 0.68rem;
  }
  .order-stat-value {
    font-size: 1.3rem;
    margin: 0.25rem 0 0.15rem;
  }
  .order-stat-sub {
    font-size: 0.68rem;
  }

  /* Cards & Section headers */
  .card {
    padding: 1rem;
    border-radius: var(--radius-sm);
  }
  .card-title {
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* Tables: Smooth touch scrolling & minimum column width */
  .table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
  }
  .data-table, table {
    min-width: 580px;
    font-size: 0.8rem;
  }
  .data-table th, .data-table td, table th, table td {
    padding: 0.6rem 0.7rem;
  }

  /* Form Elements: Touch optimization & 1-column forms */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .form-input, .form-select {
    font-size: 16px; /* Prevents auto-zoom in iOS Safari */
    padding: 0.7rem 0.85rem;
    min-height: 44px; /* Accessible 44px touch target */
  }
  .btn-action, .btn-primary, .btn-outline {
    min-height: 40px;
    touch-action: manipulation;
  }

  /* Superadmin Command Center Banner & KPIs Mobile Adaptation */
  .card-superadmin-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
    padding: 1.15rem 1rem !important;
  }
  .card-superadmin-banner > div:last-child {
    width: 100%;
    display: flex;
    gap: 0.4rem;
  }
  .card-superadmin-banner button {
    flex: 1;
    justify-content: center;
  }

  /* Superadmin Fee Governance Card Mobile Adaptation */
  .sa-fee-governance-card > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
  }
  #sa-global-usage-fee-form {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  #sa-global-usage-fee-form > div {
    width: 100% !important;
    justify-content: space-between !important;
  }
  #sa-global-usage-fee-form button {
    width: 100% !important;
    justify-content: center !important;
  }

  .superadmin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  .kpi-card-superadmin {
    padding: 0.75rem 0.85rem !important;
  }

  /* Modals: Clean mobile sheet */
  .modal-backdrop {
    padding: 0.5rem;
    align-items: flex-end; /* Mobile bottom-sheet effect */
  }
  .modal-box {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 94vh !important;
    padding: 1.25rem 1rem !important;
    border-radius: 16px 16px 0 0 !important;
  }

  /* Cart Drawer: Full viewport on phone */
  .cart-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .cart-drawer-header {
    padding: 1rem 1.15rem;
  }
  .cart-items-body {
    padding: 1rem 1.15rem;
  }
  .cart-drawer-footer {
    padding: 1rem 1.15rem;
  }

  /* 3-Line Menu Drawer */
  .main-menu-drawer {
    width: 86vw;
    max-width: 320px;
  }
  .drawer-func-item {
    padding: 0.75rem 0.85rem;
    min-height: 50px;
  }
}

/* 3. EXTRA SMALL PHONE BREAKPOINT (max-width: 380px) */
@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr !important; /* Single column on tiny screens */
  }
  .product-image-box {
    height: 180px;
  }
  .inv-fulfillment-grid {
    grid-template-columns: 1fr;
  }
  .delivery-kpi-grid {
    grid-template-columns: 1fr;
  }
}
