/* ── Typography & Global ── */
.seller-app, .seller-auth-page {
  font-family: var(--font-base);
  font-size: 13px;
  line-height: 1.5;
  color: var(--clr-text);
  background: var(--clr-bg);
  min-height: 100vh;
}

/* ── Authentication Portal ── */
.seller-auth-page {
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: var(--space-6);
}
.seller-auth-page .bg-orb { opacity: 0.25; filter: blur(120px); }

.seller-auth-box {
  width: 100%; max-width: 440px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-10);
  box-shadow: 0 40px 100px rgba(0,0,0,0.1), inset 0 1px 1px rgba(255,255,255,0.8);
  position: relative; z-index: 10;
  animation: fadeInOut 0.8s var(--ease-out) both;
}

@keyframes fadeInOut {
  from { opacity: 0; transform: scale(0.98) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-logo { text-align: center; margin-bottom: var(--space-10); }
.auth-title {
  font-family: var(--font-heading);
  font-size: 1.8rem; font-weight: 800; margin-top: var(--space-4);
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

.seller-auth-box .form-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  color: var(--clr-text-3); letter-spacing: 0.08em; margin-bottom: var(--space-2);
}

.seller-auth-box .form-control {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--clr-text) !important; height: 48px; padding: 0 16px;
  border-radius: var(--radius-lg); transition: all 0.3s;
}

.seller-auth-box .form-control:focus {
  background: rgba(255,255,255,0.07) !important;
  border-color: var(--clr-primary) !important;
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15) !important;
}

.btn-auth {
  height: 52px; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
  background: var(--clr-primary); color: #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15); }

.divider-prestige {
  display: flex; align-items: center; gap: 16px; margin: var(--space-8) 0;
  color: var(--clr-text-3); font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.15em;
}
.divider-prestige::before, .divider-prestige::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.06); }

.demo-access-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.btn-demo-access {
  background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.06);
  padding: 10px; border-radius: var(--radius-md); font-size: 0.75rem; font-weight: 600;
  color: var(--clr-text-2); transition: all 0.2s;
}
.btn-demo-access:hover { background: rgba(0,0,0,0.04); color: var(--clr-text); border-color: var(--clr-border); }

.seller-app {
  display: flex;
}

/* Page Titles */
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--space-8); /* Breathe away from content below */
  gap: var(--space-6);
}
.page-header-right { display: flex; align-items: center; gap: var(--space-3); }
.page-header h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem; /* Elegant small heading */
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -0.01em;
}

/* Technical Data Overlay */
.stat-value, .localized-price, .order-id, .sku-text {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

/* ── Sidebar (Onyx Command Center) ── */
.seller-sidebar {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: 210px; /* Slimmer for better focus */
  background: var(--clr-bg-2);
  color: var(--clr-text);
  display: flex; flex-direction: column;
  z-index: var(--z-sticky);
  transition: transform var(--trans-slow);
  box-shadow: 2px 0 24px rgba(0,0,0,0.03);
  border-right: 1px solid var(--clr-border);
}
.sidebar-header {
  padding: var(--space-6) var(--space-6);
  border-bottom: 1px solid var(--clr-border);
  display: flex; align-items: center; gap: var(--space-3);
}
.sidebar-brand {
  font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 700;
  color: var(--clr-text); letter-spacing: 0.01em;
}
.sidebar-brand span { color: var(--clr-primary); }

.seller-nav { flex: 1; padding: var(--space-4) 0; }
.nav-section-label {
  font-size: 0.6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--clr-text-3);
  padding: var(--space-4) var(--space-5) var(--space-1);
}
.nav-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 8px var(--space-4);
  font-size: 0.8rem; font-weight: 500;
  color: var(--clr-text-2);
  transition: all var(--trans-fast);
  border-left: 2px solid transparent;
}
.nav-item:hover {
  color: var(--clr-text);
  background: var(--clr-bg-3);
}
.nav-item.active {
  color: var(--clr-primary);
  background: var(--clr-bg-3);
  border-left-color: var(--clr-primary);
  font-weight: 700;
}
.nav-icon { font-size: 1.1rem; opacity: 0.8; }

.sidebar-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--clr-border);
  background: var(--clr-bg-3);
}

.badge-danger.pulsate {
  animation: badge-pulse 1.5s infinite;
}

@keyframes badge-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(255, 107, 107, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

.table-row-critical {
  background: rgba(255, 107, 107, 0.03);
}

/* ── Skeleton Loaders ── */
@keyframes skeleton-pulse {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--clr-bg-2) 25%, var(--clr-bg-3) 50%, var(--clr-bg-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s infinite;
  border-radius: 4px;
  display: inline-block;
  color: transparent !important;
  pointer-events: none;
}

.segment {
  border: none;
  background: transparent;
  color: var(--clr-text-3);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.segment.active {
  background: var(--clr-bg-3);
  color: var(--clr-text-1);
  box-shadow: var(--shadow-sm);
}

.stat-change.up { color: var(--clr-success); }
.stat-change.down { color: var(--clr-danger); }

/* ── Map Hotspots ── */
.map-hotspot {
  fill: var(--clr-primary);
  filter: drop-shadow(0 0 4px var(--clr-primary));
  cursor: pointer;
  transition: all 0.3s;
}

.map-hotspot:hover {
  fill: var(--clr-text);
  filter: drop-shadow(0 0 8px var(--clr-primary-glow));
}

.pulse-ring {
  fill: none;
  stroke: var(--clr-primary);
  stroke-width: 2px;
  opacity: 0.8;
  animation: hotspot-pulse 2s infinite;
  transform-origin: center;
}

@keyframes hotspot-pulse {
  0% { transform: scale(1); opacity: 0.8; stroke-width: 2px; }
  100% { transform: scale(3.5); opacity: 0; stroke-width: 0.5px; }
}

.map-region-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--clr-bg-2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.map-region-row:hover {
  transform: translateX(4px);
  background: var(--clr-bg-3);
}

/* ── Stock Stepper ── */
.stock-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

.stock-stepper-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-3);
  color: var(--clr-text-1);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.stock-stepper-btn:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  transform: scale(1.1);
}

.stock-stepper-btn:active {
  transform: scale(0.95);
}

.stock-stepper-input {
  width: 54px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 4px !important;
  border-radius: 6px !important;
  transition: border-color 0.3s, box-shadow 0.3s !important;
}

.stock-stepper-input.updated-success {
  border-color: var(--clr-success) !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.25) !important;
}

.stock-stepper-input.stock-critical {
  color: var(--clr-danger) !important;
  border-color: var(--clr-danger) !important;
}

/* ── Low Stock Pulse Badge ── */
@keyframes low-stock-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.07); }
}

.low-stock-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--clr-danger);
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: 4px;
  padding: 1px 5px;
  margin-top: 3px;
  animation: low-stock-pulse 1.8s ease-in-out infinite;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Specific Overlays ── */
.seller-main {
  margin-left: 210px;
  min-height: 100vh;
  display: flex; flex-direction: column;
  width: calc(100% - 210px);
  position: relative;
}
.seller-topbar {
  position: sticky; top: 0;
  height: 54px; /* Optimized height for density vs clarity */
  background: var(--clr-nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  padding: 0 var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  position: relative;
}
@media (max-width: 480px) {
  .topbar-actions .btn-sm:not(.btn-primary) { display: none !important; }
  .topbar-actions { gap: var(--space-2); }
}
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  min-width: 200px;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: var(--z-dropdown);
  opacity: 0; transform: translateY(10px);
  pointer-events: none; transition: all var(--trans-base);
}
.dropdown-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.dropdown-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px 16px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--clr-text-2);
  cursor: pointer; transition: all var(--trans-fast);
}
.dropdown-item:hover { background: var(--clr-primary-glow2); color: var(--clr-primary); }
.dropdown-divider { height: 1px; background: var(--clr-border); margin: 6px 0; }
.user-dropdown-header { padding: 12px 16px; border-bottom: 1px solid var(--clr-border); }
.user-name { font-weight: 700; font-size: 0.9rem; color: var(--clr-text); }
.user-email { font-size: 0.72rem; color: var(--clr-text-3); margin-top: 2px; }
.page-title { font-family: var(--font-heading); font-size: 1.0rem; font-weight: 700; color: var(--clr-text); }

/* ── Content Scaffolding ── */
.seller-content { flex: 1; padding: var(--space-6); position: relative; }

/* ── Dashboard Components ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-6); margin-bottom: var(--space-8);
}
.stat-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-base);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--clr-primary-light);
  box-shadow: var(--shadow-card-hover);
}
.stat-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
}
.stat-value { font-size: 1.2rem; font-weight: 800; color: var(--clr-text); line-height: 1.1; }
.stat-label { font-size: 0.72rem; color: var(--clr-text-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Charts Grid ── */
.charts-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: var(--space-6); margin-bottom: var(--space-8);
}
.chart-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.chart-title {
  font-family: var(--font-heading); font-size: 0.95rem;
  color: var(--clr-text); margin-bottom: var(--space-3);
}

/* ── Tables & Toolbars ── */
.table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin: var(--space-4) 0 var(--space-6); /* Vertical separation */
  gap: var(--space-4);
}
.table-toolbar-left, .table-toolbar-right { display: flex; align-items: center; gap: var(--space-3); }

.table-wrap {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table th {
  padding: 10px 16px; font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--clr-bg-3); border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-3);
}
.data-table td {
  padding: 10px 16px; font-size: 0.82rem;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-2);
}
.data-table tr:hover td { background: var(--clr-primary-glow2); }

/* ── Profile/Settings ── */
.profile-header {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex; align-items: center; gap: var(--space-8);
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-card);
}
.profile-avatar-lg {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff; font-weight: 800;
  box-shadow: var(--shadow-primary);
}
.profile-name { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--clr-text); }

/* ── Utilities ── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* ── Stock Stepper ── */
.stock-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}
.stepper-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--clr-text-2);
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: var(--radius-xs);
  transition: all var(--trans-fast);
}
.stepper-btn:hover {
  background: var(--clr-bg-surface);
  color: var(--clr-primary);
}
.stepper-input {
  width: 40px;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-text);
  padding: 0;
}
.stepper-input:focus { outline: none; }

/* ── Multi-Step Wizard ── */
.wizard-steps {
  display: flex; justify-content: space-between;
  margin-bottom: var(--space-8); padding: 0 var(--space-4);
  position: relative;
}
.wizard-steps::before {
  content: ""; position: absolute; top: 12px; left: var(--space-10); right: var(--space-10);
  height: 2px; background: var(--clr-border); z-index: 0;
}
.wizard-progress {
  position: absolute; top: 12px; left: var(--space-10);
  height: 2px; background: var(--clr-primary); z-index: 1;
  transition: width 0.4s ease;
}
.step-item {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.step-circle {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--clr-bg-2); border: 2px solid var(--clr-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: var(--clr-text-3);
  transition: all 0.3s;
}
.step-item.active .step-circle {
  background: var(--clr-primary); border-color: var(--clr-primary);
  color: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}
.step-item.done .step-circle {
  background: var(--clr-success); border-color: var(--clr-success);
  color: #fff;
}
.step-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--clr-text-3); }
.step-item.active .step-label { color: var(--clr-primary); }

/* ── Variants Matrix ── */
.variant-matrix {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin-top: var(--space-4); border: 1px solid var(--clr-border); border-radius: var(--radius-md);
  overflow: hidden;
}
.variant-matrix th {
  background: var(--clr-bg-3); padding: 10px; font-size: 0.7rem; text-align: left;
  border-bottom: 1px solid var(--clr-border); color: var(--clr-text-3);
}
.variant-matrix td {
  padding: 8px 10px; border-bottom: 1px solid var(--clr-border); vertical-align: middle;
}
.variant-matrix tr:last-child td { border-bottom: none; }
.variant-input-sm {
  width: 100%; padding: 6px 8px; border: 1px solid var(--clr-border);
  border-radius: var(--radius-xs); background: var(--clr-bg-2);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--clr-text);
}

/* ── Multi-Image Gallery ── */
.image-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-3); margin-top: var(--space-3);
}
.gallery-item {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--clr-border); background: var(--clr-bg-3);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .remove-btn {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(255,107,107,0.8); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
  border: none; cursor: pointer; opacity: 0; transition: opacity 0.2s;
}
.gallery-item:hover .remove-btn { opacity: 1; }
.brand-badge { position: absolute; top: 4px; left: 4px; padding: 2px 6px; border-radius: 4px; background: var(--clr-primary); color: #fff; font-size: 0.6rem; font-weight: 700; }

/* ── Boutique Preview ── */
.boutique-preview {
  position: sticky; top: 0;
  background: var(--clr-bg-2); border-left: 1px solid var(--clr-border);
  padding: var(--space-6); width: 280px; height: 100%;
}
.preview-card {
  background: #FFFFFF; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); pointer-events: none;
}
.preview-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--clr-bg-3); }
.preview-content { padding: var(--space-4); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .seller-sidebar { 
    transform: translateX(-100%); 
    width: 260px; 
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
  }
  .seller-sidebar.open { transform: translateX(0); }
  
  .seller-main { margin-left: 0; width: 100%; }
  .charts-grid { grid-template-columns: 1fr; }
  .boutique-preview { display: none; }
  
  .sidebar-toggle { display: flex !important; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .table-toolbar-left, .table-toolbar-right { justify-content: space-between; }
  
  .modal-xl { max-width: 95vw; margin: 10px; }
  .wizard-step [style*="grid-template-columns:1.2fr 1fr"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .seller-topbar { padding: 0 var(--space-4); }
  .page-header { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  
  .wizard-steps-indicator { display: none !important; }
  .modal-body { padding: 0 !important; }
  .form-section-title { font-size: 0.9rem; }
  
  .data-table th, .data-table td { padding: 8px; font-size: 0.75rem; }
  
  /* Form grid in wizard */
  .form-grid { grid-template-columns: 1fr !important; }
  .form-group.full { grid-column: auto !important; }
}

/* Sidebar Toggle Visibility */
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  border-radius: var(--radius-md);
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  transition: all 0.2s;
  cursor: pointer;
  color: var(--clr-text);
  margin-right: var(--space-2);
}
.sidebar-toggle:hover { background: var(--clr-bg-2); }

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: calc(var(--z-sticky) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active { opacity: 1; pointer-events: all; }

/* Table Wrapper for Horizontal Scroll */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap::-webkit-scrollbar { height: 4px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--clr-border-2); border-radius: 10px; }

/* Wizard Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.form-group.full { grid-column: span 2; }

/* Ensure modal header title wraps if long */
.modal-header h3 { font-size: 1.1rem; line-height: 1.2; }

/* Full Screen Mobile Modal */
@media (max-width: 640px) {
  .modal-xl, .modal-lg, .modal {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .modal-body {
    height: calc(100vh - 120px); /* Adjust for header/footer */
  }
  .modal-footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 10;
  }
}

@media (max-width: 1024px) {
  .seller-sidebar { 
    transform: translateX(-100%); 
    width: 280px; 
    z-index: var(--z-sticky);
    box-shadow: 10px 0 50px rgba(0,0,0,0.15);
  }
  .seller-sidebar.open { transform: translateX(0); }
  
  .seller-main { margin-left: 0; width: 100%; }
  .charts-grid { grid-template-columns: 1fr; }
  .boutique-preview { display: none; }
  
  .sidebar-toggle { display: flex !important; }
}
