/* =========================================================
   JK STUDY HUB SUPPLIER & FULFILLMENT HUB (seller.css)
   Dedicated Store Administration & Orders Management
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --hub-blue: #2563eb;
  --hub-blue-dark: #1d4ed8;
  --hub-blue-light: #eff6ff;
  --hub-blue-border: #bfdbfe;
  --hub-text-main: #0f172a;
  --hub-text-sub: #64748b;
  --hub-border: #e2e8f0;
  --hub-bg: #f8fafc;
  --hub-card-bg: #ffffff;
  --hub-yellow-alert: #fffbeb;
  --hub-yellow-border: #fef08a;
  --hub-green-badge: #ecfdf5;
  --hub-green-text: #059669;
  --hub-blue-badge: #eff6ff;
  --hub-blue-text: #2563eb;
  --hub-red-badge: #fef2f2;
  --hub-red-text: #dc2626;
  --sidebar-width: 250px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--hub-bg);
  color: var(--hub-text-main);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.table-responsive,
.seller-content-pane,
.mobile-bottom-nav,
.seller-orders-scroll-wrapper {
  -webkit-overflow-scrolling: touch;
}


/* Security Locked Screen */
#sellerAuthLockScreen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, #1e3a8a 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
}

.seller-lock-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
}

.seller-lock-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--hub-blue-light);
  color: var(--hub-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.seller-lock-title {
  font-family: 'Outfit', sans-serif;
  font-size: 23px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.seller-lock-sub {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.5;
}

.seller-lock-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.seller-lock-input:focus {
  border-color: var(--hub-blue);
}

.seller-lock-btn {
  width: 100%;
  background: var(--hub-blue);
  color: white;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.seller-lock-btn:hover {
  background: var(--hub-blue-dark);
}

/* Supplier Layout Frame */
.supplier-app-shell {
  display: flex;
  min-height: 100vh;
}

/* Left Sidebar */
.supplier-sidebar {
  width: var(--sidebar-width);
  background: #ffffff;
  border-right: 1px solid var(--hub-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-store-picker {
  padding: 18px 20px;
  border-bottom: 1px solid var(--hub-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #ffffff;
}

.store-picker-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--hub-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
}

.store-title-text {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  font-family: 'Outfit', sans-serif;
}

.store-sub-text {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.sidebar-quick-bar {
  display: flex;
  border-bottom: 1px solid var(--hub-border);
  background: #f8fafc;
}

.quick-bar-item {
  flex: 1;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border-right: 1px solid var(--hub-border);
  cursor: pointer;
}

.quick-bar-item:last-child {
  border-right: none;
}

.quick-bar-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sidebar-nav-group {
  padding: 12px 0;
}

.nav-group-title {
  padding: 8px 20px 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.6px;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  padding: 11px 20px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  gap: 12px;
  transition: all 0.15s ease;
  position: relative;
  cursor: pointer;
}

.sidebar-nav-link:hover {
  background: #f8fafc;
  color: var(--hub-blue);
}

.sidebar-nav-link.active {
  background: var(--hub-blue-light);
  color: var(--hub-blue);
  font-weight: 700;
  border-right: 3px solid var(--hub-blue);
}

.sidebar-nav-link i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: #64748b;
}

.sidebar-nav-link.active i {
  color: var(--hub-blue);
}

.nav-pill-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.nav-pill-badge.pink {
  background: #2563eb;
  color: #ffffff;
}

.sidebar-bottom-credit {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--hub-border);
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Main Content Area */
.supplier-main-viewport {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Sticky Navigation Bar */
.supplier-top-navbar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--hub-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.top-navbar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
}

.top-navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sync-status-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hub-green-badge);
  color: var(--hub-green-text);
  border: 1px solid #bbf7d0;
}

.sync-status-pill.syncing {
  background: var(--hub-blue-badge);
  color: var(--hub-blue-text);
  border-color: #bfdbfe;
}

.btn-hub-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-hub-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-hub-primary {
  background: var(--hub-blue);
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-hub-primary:hover {
  background: var(--hub-blue-dark);
}

/* Page Body Container */
.supplier-page-body {
  padding: 24px 28px 60px;
}

/* Alerts & Notice Cards */
.hub-notice-card {
  background: var(--hub-yellow-alert);
  border: 1px solid var(--hub-yellow-border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notice-package-icon {
  width: 54px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.notice-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.notice-desc {
  font-size: 12.5px;
  color: #475569;
}

.notice-action-btn {
  border: 1.5px solid var(--hub-blue);
  background: white;
  color: var(--hub-blue);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.notice-action-btn:hover {
  background: var(--hub-blue-light);
}

.hub-policy-strip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #166534;
  font-weight: 600;
}

/* Tabs Strip (On Hold, Pending, Ready to Ship, Shipped, Cancelled) */
.hub-tabs-strip {
  display: flex;
  border-bottom: 1px solid var(--hub-border);
  background: #ffffff;
  border-radius: 10px 10px 0 0;
  padding: 0 16px;
  margin-bottom: 0;
}

.hub-tab-btn {
  background: none;
  border: none;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hub-tab-btn:hover {
  color: #0f172a;
}

.hub-tab-btn.active {
  color: var(--hub-blue);
}

.hub-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hub-blue);
  border-radius: 3px 3px 0 0;
}

/* Filter Strip */
.hub-filter-bar {
  background: #ffffff;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hub-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.filter-select {
  padding: 7px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  cursor: pointer;
}

.filter-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  min-width: 280px;
}

.search-field-select {
  border: none;
  background: #f8fafc;
  border-right: 1px solid #cbd5e1;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  outline: none;
}

.search-input-field {
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  flex: 1;
}

/* Orders Data Table */
.hub-table-card {
  background: #ffffff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  overflow-x: auto;
  border: 1px solid var(--hub-border);
  border-top: none;
}

.hub-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.hub-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hub-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.hub-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hub-border);
  vertical-align: middle;
}

.hub-table tr:hover td {
  background: #fbfcfe;
}

.order-id-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 13px;
  color: #1e293b;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
}

.product-item-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-item-thumb {
  width: 44px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.product-item-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 13.5px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge-pill {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.status-badge-pill.pending { background: #fef3c7; color: #b45309; }
.status-badge-pill.ready { background: #eff6ff; color: #1d4ed8; }
.status-badge-pill.shipped { background: #e0f2fe; color: #0369a1; }
.status-badge-pill.delivered { background: #ecfdf5; color: #047857; }
.status-badge-pill.cancelled { background: #fef2f2; color: #b91c1c; }

/* Empty Table State */
.table-empty-box {
  padding: 60px 20px;
  text-align: center;
}

.table-empty-box img {
  width: 90px;
  margin-bottom: 16px;
}

.table-empty-box h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.table-empty-box p {
  font-size: 13px;
  color: #64748b;
}

/* =========================================================
   BUSINESS DASHBOARD & SALES KPI STYLES
   ========================================================= */

.dashboard-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.timeframe-pill-group {
  display: flex;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}

.timeframe-btn {
  border: none;
  background: none;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.timeframe-btn.active {
  background: var(--hub-blue-light);
  color: var(--hub-blue);
  font-weight: 800;
}

/* Orders / Sales Graph Card */
.analytics-chart-card {
  background: #ffffff;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.chart-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.chart-mode-toggles {
  display: flex;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 3px;
}

.chart-toggle-btn {
  border: none;
  background: none;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  border-radius: 4px;
  cursor: pointer;
}

.chart-toggle-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* 6 Core KPI Metric Cards Strip */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #ffffff;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.kpi-card-box {
  padding: 18px 20px;
  border-right: 1px solid var(--hub-border);
  display: flex;
  flex-direction: column;
}

.kpi-card-box:last-child {
  border-right: none;
}

.kpi-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
  margin-bottom: 4px;
}

.kpi-sub-trend {
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Product Performance Table */
.product-performance-section {
  background: #ffffff;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.perf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.perf-tabs-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--hub-border);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.perf-tab-item {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.perf-tab-item.active {
  color: var(--hub-blue);
  border-bottom: 2px solid var(--hub-blue);
}

/* Modal Windows (Labels & Invoices) */
.seller-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.seller-modal-backdrop.open {
  display: flex;
}

.seller-modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.seller-modal-header {
  padding: 16px 22px;
  background: #f8fafc;
  border-bottom: 1px solid var(--hub-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seller-modal-body {
  padding: 22px;
  overflow-y: auto;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .kpi-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .supplier-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .supplier-sidebar.open {
    transform: translateX(0);
  }
  .supplier-main-viewport {
    margin-left: 0;
  }
  .kpi-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* In-App Camera Barcode Scanner Styles */
.scanner-modal-backdrop {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(6px);
  z-index: 99999; display: flex; align-items: center; justify-content: center;
  padding: 15px; box-sizing: border-box; overflow-y: auto;
}
.scanner-modal-card {
  background: #0f172a; border: 1.5px solid #334155; border-radius: 20px;
  max-width: 500px; width: 100%; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column;
  animation: modalFadeIn 0.2s ease-out;
}
.scanner-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid #1e293b; background: #0b1329;
}
.scanner-close-btn {
  background: none; border: none; color: #94a3b8; font-size: 26px;
  cursor: pointer; line-height: 1; padding: 0 4px;
}
.scanner-close-btn:hover { color: #ffffff; }
.scanner-viewfinder-wrap {
  position: relative; width: 100%; height: 300px; background: #000000;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
#sellerScannerVideo {
  width: 100%; height: 100%; object-fit: cover;
}
.scanner-reticle {
  position: absolute; width: 230px; height: 160px;
  border: 2px solid rgba(255, 255, 255, 0.25); border-radius: 12px;
  pointer-events: none; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}
.reticle-corner {
  position: absolute; width: 20px; height: 20px;
  border-color: #10b981; border-style: solid;
}
.reticle-corner.top-left { top: -2px; left: -2px; border-width: 4px 0 0 4px; border-top-left-radius: 10px; }
.reticle-corner.top-right { top: -2px; right: -2px; border-width: 4px 4px 0 0; border-top-right-radius: 10px; }
.reticle-corner.bottom-left { bottom: -2px; left: -2px; border-width: 0 0 4px 4px; border-bottom-left-radius: 10px; }
.reticle-corner.bottom-right { bottom: -2px; right: -2px; border-width: 0 4px 4px 0; border-bottom-right-radius: 10px; }
.scanner-laser-line {
  position: absolute; left: 0; width: 100%; height: 2.5px;
  background: linear-gradient(90deg, transparent, #10b981, #34d399, transparent);
  box-shadow: 0 0 8px #10b981; animation: scannerLaser 2s ease-in-out infinite;
}
@keyframes scannerLaser {
  0% { top: 10%; opacity: 0.3; }
  50% { top: 88%; opacity: 1; }
  100% { top: 10%; opacity: 0.3; }
}
.scanner-controls-overlay {
  position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; z-index: 5;
}
.scanner-controls-overlay button {
  background: rgba(15, 23, 42, 0.75); color: white; border: 1px solid rgba(255, 255, 255, 0.2);
  width: 36px; height: 36px; border-radius: 50%; font-size: 14px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  backdrop-filter: blur(4px);
}
.scanner-status-badge {
  position: absolute; bottom: 10px; background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0; padding: 5px 12px; border-radius: 20px; font-size: 11.5px;
  font-weight: 600; display: flex; align-items: center; gap: 6px; backdrop-filter: blur(4px);
}
.live-pulse {
  width: 7px; height: 7px; background: #10b981; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); animation: pulseGreen 1.5s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.scanner-manual-wrap {
  padding: 10px 16px; background: #1e293b; display: flex; gap: 8px; border-bottom: 1px solid #334155;
}
.scanner-manual-wrap input {
  flex: 1; padding: 8px 12px; background: #0f172a; border: 1px solid #334155;
  border-radius: 8px; color: white; font-size: 12.5px; outline: none;
}
.scanner-manual-wrap button {
  background: #2563eb; color: white; border: none; padding: 8px 14px;
  border-radius: 8px; font-weight: 700; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.scanned-result-card {
  padding: 16px; background: #ffffff; border-top: 1px solid #e2e8f0;
  max-height: 400px; overflow-y: auto; color: #1e293b;
}

/* =========================================================
   DEDICATED MOBILE PHONE WORKSPACE STYLES (.seller-mobile-mode)
   Laptop / MacBook desktop styles are 100% untouched above
   ========================================================= */

/* Mobile Bottom Navigation Bar */
.seller-mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 99990;
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08);
  padding: 0 4px;
}

.mobile-nav-tab {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  flex: 1;
  text-decoration: none;
}

.mobile-nav-tab i {
  font-size: 17px;
  transition: transform 0.2s;
}

.mobile-nav-tab.active {
  color: #2563eb;
}

.mobile-nav-tab.active i {
  transform: scale(1.18);
  color: #2563eb;
}

/* Mobile Drawer Backdrop */
.seller-mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.seller-mobile-drawer-backdrop.active {
  display: block;
  opacity: 1;
}

/* Sidebar Close Header on Mobile */
.sidebar-mobile-close-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 8px;
}

.sidebar-mobile-close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #475569;
  cursor: pointer;
}

/* When in Mobile Mode */
body.seller-mobile-mode .sidebar-mobile-close-bar {
  display: flex;
}

body.seller-mobile-mode .supplier-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  z-index: 99999;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 12px 0 35px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

body.seller-mobile-mode .supplier-sidebar.open {
  transform: translateX(0);
}

body.seller-mobile-mode .supplier-main-viewport {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  padding-bottom: 80px !important;
  overflow-x: hidden;
}

body.seller-mobile-mode .supplier-top-navbar {
  padding: 10px 14px;
  position: sticky;
  top: 0;
  z-index: 999;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

body.seller-mobile-mode .top-navbar-title {
  font-size: 17px;
}

body.seller-mobile-mode #sidebarToggleBtn {
  display: inline-flex !important;
}

body.seller-mobile-mode .supplier-page-body {
  padding: 12px !important;
}

/* On mobile, collapse extra desktop header buttons to keep clean topbar */
body.seller-mobile-mode .top-navbar-actions a[href="print-cards.html"],
body.seller-mobile-mode .top-navbar-actions a[href="poster.html"],
body.seller-mobile-mode .top-navbar-actions button[onclick="exportOrdersToCSV()"],
body.seller-mobile-mode .top-navbar-actions button[onclick="confirmResetAllToZero()"] {
  display: none !important;
}

body.seller-mobile-mode .top-navbar-actions {
  gap: 6px;
  flex-wrap: nowrap;
}

body.seller-mobile-mode .sync-status-pill {
  font-size: 11px;
  padding: 4px 8px;
}

body.seller-mobile-mode .kpi-cards-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px;
}

body.seller-mobile-mode .kpi-card-box {
  padding: 12px;
}

body.seller-mobile-mode .hub-notice-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
}

body.seller-mobile-mode .table-responsive,
body.seller-mobile-mode .hub-table-card {
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.seller-mobile-mode .supplier-data-table th,
body.seller-mobile-mode .supplier-data-table td,
body.seller-mobile-mode .hub-table th,
body.seller-mobile-mode .hub-table td {
  padding: 10px 8px;
  font-size: 13px;
}

/* Mobile Touch Tap Targets */
body.seller-mobile-mode select,
body.seller-mobile-mode input,
body.seller-mobile-mode button {
  min-height: 38px;
}

@media (max-width: 768px) {
  .seller-lock-card {
    padding: 24px 18px;
  }
}

/* =========================================================
   SELLER DIRECT MULTI-PHOTO UPLOADER (2 to 3 PHOTOS)
   ========================================================= */
.seller-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 680px) {
  .seller-photo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.seller-photo-slot {
  position: relative;
  height: 165px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.seller-photo-slot:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.seller-slot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.seller-slot-placeholder i {
  font-size: 28px;
  color: #3b82f6;
  margin-bottom: 8px;
}

.seller-slot-placeholder .slot-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.seller-slot-placeholder .slot-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.seller-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seller-slot-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  font-size: 13px;
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 5;
}

.seller-slot-remove-btn:hover {
  background: #b91c1c;
  transform: scale(1.1);
}

.btn-slot-upload-opt {
  background: #ffffff;
  border: 1.5px solid #2563eb;
  color: #2563eb;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(37,99,235,0.12);
  user-select: none;
}

.btn-slot-upload-opt:hover, .btn-slot-upload-opt:active {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37,99,235,0.25);
}

@media (max-width: 900px) {
  #sellerReelsGrid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #sellerReelMockupCard {
    width: min(230px, 100%) !important;
    height: auto !important;
    aspect-ratio: 9 / 16;
  }
}
