/* ===================================================================
   MRMR STORE - ADMIN DASHBOARD STYLES (ARABIC RTL)
   =================================================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-deep);
}

/* Sidebar Navigation */
.admin-sidebar {
  width: 290px;
  background: rgba(16, 21, 31, 0.95);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(10, 186, 181, 0.18);
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(10, 186, 181, 0.16);
  margin-bottom: 28px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  background: var(--theme-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #072624;
  box-shadow: 0 6px 20px rgba(10, 186, 181, 0.35);
}

.brand-text h2 {
  font-size: 1.22rem;
  font-weight: 800;
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 12px;
  padding-right: 8px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.nav-item:hover {
  background: rgba(10, 186, 181, 0.08);
  color: var(--tiffany-light);
  transform: translateX(-4px);
}

.nav-item.active {
  background: var(--theme-gradient);
  color: #072624;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(10, 186, 181, 0.35);
}

.nav-item.active .nav-icon {
  color: #072624;
}

.nav-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.nav-badge {
  margin-right: auto;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(10, 186, 181, 0.16);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 186, 181, 0.12);
  color: var(--tiffany-light);
  border: 1px solid rgba(10, 186, 181, 0.3);
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.store-preview-btn:hover {
  background: var(--tiffany);
  color: #072624;
  transform: translateY(-2px);
}

.admin-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 117, 151, 0.12);
  color: var(--pink-light);
  border: 1px solid rgba(255, 117, 151, 0.3);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-logout-btn:hover {
  background: var(--pink);
  color: #FFFFFF;
}

/* Main Content Area */
.admin-main {
  flex: 1;
  padding: 32px 40px;
  overflow-y: auto;
}

/* Top Bar */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.page-title h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.manual-mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--theme-gradient);
  color: #072624;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(10, 186, 181, 0.35);
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10, 186, 181, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid rgba(10, 186, 181, 0.22);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--pink);
  color: var(--pink-light);
  transform: translateY(-2px);
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(19, 25, 37, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(10, 186, 181, 0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: var(--tiffany);
}

.stat-card.stat-published::after { background: var(--tiffany-light); }
.stat-card.stat-draft::after { background: #EAB308; }
.stat-card.stat-lowstock::after { background: var(--pink); }

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 117, 151, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(10, 186, 181, 0.15);
}

.stat-info span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.stat-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-primary);
}

/* Products Management Section */
.products-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Filter Toolbar */
.panel-toolbar {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 42px 10px 16px;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--gold-primary);
  background: #111622;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--gold-primary);
}

.status-tabs {
  display: flex;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.status-tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.status-tab.active {
  background: var(--bg-elevated);
  color: var(--gold-light);
}

/* Products Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.92rem;
}

.products-table th {
  background: #10141E;
  padding: 16px 20px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.products-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.products-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

/* Product Info Cell */
.product-cell {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
}

.product-thumb {
  width: 58px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #1e2433;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.product-thumb:hover {
  transform: scale(1.05);
  border-color: var(--gold-primary);
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name-link {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name-link:hover {
  color: var(--gold-primary);
}

.product-sku {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

/* Price Cell */
.price-cell {
  white-space: nowrap;
}

.current-price {
  font-weight: 800;
  color: var(--gold-light);
  font-size: 1rem;
}

.old-price {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-right: 6px;
}

.discount-badge {
  background: rgba(225, 29, 72, 0.15);
  color: #FB7185;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
}

/* Stock Matrix Pill */
.stock-matrix-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 180px;
}

.size-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
}

.size-stock-badge.in-stock {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-light);
  border-color: rgba(16, 185, 129, 0.25);
}

.size-stock-badge.low-stock {
  background: rgba(234, 179, 8, 0.1);
  color: #FACC15;
  border-color: rgba(234, 179, 8, 0.25);
}

.size-stock-badge.out-of-stock {
  background: rgba(225, 29, 72, 0.1);
  color: #F87171;
  border-color: rgba(225, 29, 72, 0.25);
  text-decoration: line-through;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.published {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.draft {
  background: rgba(234, 179, 8, 0.12);
  color: #FACC15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-pill.archived {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Marketing & Action Buttons */
.actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-action-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.btn-action-icon:hover {
  background: var(--gold-primary);
  color: #000;
  transform: translateY(-2px);
}

.btn-action-icon.btn-ig-copy {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(131, 58, 180, 0.15));
  color: #F43F5E;
  border-color: rgba(225, 48, 108, 0.3);
}

.btn-action-icon.btn-ig-copy:hover {
  background: linear-gradient(135deg, #E1306C, #833AB4);
  color: #fff;
  border-color: transparent;
}

.btn-action-icon.btn-danger:hover {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
}

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

.empty-state-icon {
  font-size: 3rem;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 20px;
}

/* ===================================================================
   MODALS & DRAWERS (Form, Restock, Preview, Instagram Hub)
   =================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98);
  transition: all var(--transition-normal);
}

.modal-backdrop.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111520;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--border-light);
}

.btn-close-modal:hover {
  background: var(--crimson);
  color: #fff;
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border-subtle);
  background: #111520;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Form Sections */
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

@media (max-width: 768px) {
  .col-8, .col-6, .col-4, .col-3 { grid-column: span 12; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label .required {
  color: var(--crimson);
}

.form-input, .form-textarea, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-primary);
  background: #10141E;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* Image Upload & Reorder Area */
.upload-dropzone {
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  background: rgba(212, 175, 55, 0.02);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.07);
}

.dropzone-icon {
  font-size: 2.2rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.dropzone-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.dropzone-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.images-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.image-preview-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  background: #111520;
  aspect-ratio: 3/4;
  cursor: grab;
  transition: all var(--transition-fast);
}

.image-preview-card.primary {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

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

.image-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.image-preview-card:hover .image-card-overlay {
  opacity: 1;
}

.primary-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.image-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.btn-img-action {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.btn-img-action:hover {
  background: var(--gold-primary);
  color: #000;
}

.btn-img-action.del:hover {
  background: var(--crimson);
  color: #fff;
}

/* Size Stock Matrix Table in Form */
.size-stock-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.size-stock-table th {
  background: #111520;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.size-stock-table td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.stock-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 130px;
}

.stock-stepper button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.stock-stepper button:hover {
  background: var(--gold-primary);
  color: #000;
}

.stock-stepper input {
  width: 50px;
  text-align: center;
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-main);
  font-weight: 700;
  padding: 4px;
}

/* Badges Checkboxes */
.badges-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.badge-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.badge-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

/* Audit Trail Table */
.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.audit-table th {
  background: #111520;
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.audit-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.change-pos {
  color: var(--emerald-light);
  font-weight: 800;
}

.change-neg {
  color: var(--crimson);
  font-weight: 800;
}

/* Instagram Marketing Hub */
.instagram-hub-card {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.08) 0%, rgba(131, 58, 180, 0.08) 100%);
  border: 1px solid rgba(225, 48, 108, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ig-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.ig-link-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-family: monospace;
  direction: ltr;
  text-align: left;
  font-size: 0.9rem;
}

.ig-caption-preview {
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  border-right: 3px solid #E1306C;
}

/* Live Store Preview Drawer */
.preview-modal-frame {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--bg-deep);
}

/* ===================================================================
   ADMIN DEDICATED AUTHENTICATION OVERLAY (SECRET ACCESS GATE)
   =================================================================== */
.admin-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 17, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(10, 186, 181, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(255, 117, 151, 0.16) 0%, transparent 60%);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.admin-auth-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.admin-auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(19, 25, 37, 0.92);
  border: 1px solid rgba(10, 186, 181, 0.3);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(10, 186, 181, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: authCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-auth-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--theme-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #072624;
  font-size: 2.2rem;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(10, 186, 181, 0.4), 0 5px 15px rgba(255, 117, 151, 0.3);
}

.admin-auth-card h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
}

.admin-auth-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.admin-auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-passcode-wrap {
  position: relative;
  width: 100%;
}

.admin-passcode-wrap input {
  width: 100%;
  background: rgba(12, 16, 25, 0.9);
  border: 1px solid rgba(10, 186, 181, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 48px 14px 16px;
  color: var(--text-main);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.15em;
  transition: all var(--transition-normal);
}

.admin-passcode-wrap input:focus {
  border-color: var(--tiffany);
  box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.25);
}

.admin-passcode-wrap .toggle-eye {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.admin-passcode-wrap .toggle-eye:hover {
  color: var(--tiffany-light);
}

.admin-passcode-wrap .lock-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tiffany);
  font-size: 1.1rem;
}

.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auth-remember-label input[type="checkbox"] {
  accent-color: var(--tiffany);
  width: 16px;
  height: 16px;
}

.btn-auth-submit {
  width: 100%;
  background: var(--theme-gradient);
  color: #072624;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(10, 186, 181, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-auth-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10, 186, 181, 0.5);
}

.auth-error-msg {
  color: var(--pink-light);
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.3);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ===================================================================
   V2 — DASHBOARD POLISH, SETTINGS, ORDERS MANAGER & RESPONSIVE LAYOUT
   =================================================================== */

/* ---------- Auth gate extras ---------- */
.auth-secure-note {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(10, 186, 181, 0.08);
  border: 1px solid rgba(10, 186, 181, 0.2);
  padding: 8px 14px;
  border-radius: var(--radius-full);
}

.auth-secure-note i { color: var(--tiffany); }

.btn-auth-submit:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

/* ---------- Main canvas ambience ---------- */
.admin-main {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(10, 186, 181, 0.09), transparent 60%),
    radial-gradient(700px 380px at 0% 10%, rgba(255, 117, 151, 0.07), transparent 60%);
}

.admin-sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
}

.admin-nav { flex: 0 0 auto; }
.admin-nav-secondary { flex: 1 1 auto; }

.nav-badge-hot {
  background: var(--pink-gradient);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 117, 151, 0.35);
}

.nav-item.active .nav-badge-hot,
.nav-item.active .nav-badge {
  background: rgba(7, 38, 36, 0.2);
  color: #072624;
  box-shadow: none;
}

.sidebar-close-btn,
.admin-menu-toggle {
  display: none;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.7);
  backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

/* ---------- Topbar ---------- */
.page-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.admin-greeting {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pink-light);
  margin-bottom: 4px;
  min-height: 1.1em;
}

.btn-icon-square {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(10, 186, 181, 0.22);
  color: var(--tiffany-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

.btn-icon-square:hover {
  border-color: var(--pink);
  color: var(--pink-light);
  transform: translateY(-2px) rotate(30deg);
}

/* ---------- Default passcode banner ---------- */
.default-pass-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(255, 117, 151, 0.12));
  border: 1px solid rgba(250, 204, 21, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: bannerIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.default-pass-banner .banner-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 204, 21, 0.18);
  color: #FACC15;
  font-size: 1.3rem;
}

.default-pass-banner .banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.default-pass-banner .banner-text strong { color: #FDE68A; font-size: 1rem; }
.default-pass-banner .banner-text span { color: var(--text-secondary); font-size: 0.86rem; }
.default-pass-banner .btn-primary { padding: 10px 18px; white-space: nowrap; }

@keyframes bannerIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Stat cards polish ---------- */
.stat-card::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  left: -40px;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 186, 181, 0.14), transparent 70%);
  pointer-events: none;
  transition: transform var(--transition-normal);
}

.stat-card:hover::before { transform: scale(1.25); }

.stat-info small {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 600;
}

.sales-stats { margin-bottom: 20px; }

.sales-stats .stat-info h3 {
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}

button.stat-card {
  width: 100%;
  text-align: right;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.stat-card.stat-highlight {
  background: linear-gradient(135deg, rgba(10, 186, 181, 0.22) 0%, rgba(19, 25, 37, 0.9) 55%, rgba(255, 117, 151, 0.18) 100%);
  border-color: rgba(10, 186, 181, 0.4);
}

.stat-card.stat-highlight h3 {
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card.stat-highlight .stat-icon {
  background: var(--theme-gradient);
  color: #072624;
  box-shadow: 0 8px 20px rgba(10, 186, 181, 0.35);
}

.stat-card.stat-revenue::after { background: var(--theme-gradient); }
.stat-card.stat-orders-card::after { background: #60A5FA; }
.stat-card.stat-orders-card .stat-icon { color: #93C5FD; }
.stat-card.stat-pending-card::after { background: var(--pink); }
.stat-card.stat-pending-card .stat-icon { color: var(--pink-light); }
.stat-card.stat-pending-card h3 { color: var(--pink-light); }
.stat-card.stat-pending-card small { color: var(--pink-light); opacity: 0.8; }
.stat-card.stat-inventory-card::after { background: #A78BFA; }
.stat-card.stat-inventory-card .stat-icon { color: #C4B5FD; }

/* ---------- Products panel polish ---------- */
.products-panel {
  backdrop-filter: blur(14px);
}

.products-table tbody tr {
  transition: background var(--transition-fast);
}

.products-table tbody tr:hover td {
  background: rgba(10, 186, 181, 0.04);
}

.table-responsive::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.table-responsive::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(10, 186, 181, 0.25);
  border-radius: 8px;
}

/* ---------- Orders manager ---------- */
.orders-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.orders-toolbar .search-box { min-width: 240px; }

.orders-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.orders-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.orders-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.orders-filter-chip b {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 0 8px;
  font-size: 0.75rem;
  min-width: 22px;
  text-align: center;
}

.orders-filter-chip:hover { border-color: var(--tiffany); color: var(--tiffany-light); }

.orders-filter-chip.active {
  background: var(--theme-gradient);
  border-color: transparent;
  color: #072624;
}

.orders-filter-chip.active b { background: rgba(7, 38, 36, 0.2); color: #072624; }

.orders-table-wrap {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-height: 56vh;
  overflow: auto;
}

.orders-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
  text-align: right;
}

.orders-table td { vertical-align: top; }

.order-row { transition: background var(--transition-fast); }
.order-row:hover td { background: rgba(10, 186, 181, 0.04); }
.order-row.status-cancelled td { opacity: 0.6; }
.order-row.status-confirmed td:first-child { box-shadow: inset -3px 0 0 var(--tiffany); }

.order-id {
  font-family: monospace;
  font-weight: 800;
  color: var(--tiffany-light);
  font-size: 0.88rem;
  white-space: nowrap;
}

.order-date,
.order-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

.order-amount {
  font-weight: 900;
  color: var(--emerald-light);
  white-space: nowrap;
}

.order-status-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 30px 7px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: 14px 52%, 9px 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  min-width: 140px;
}

.order-status-select option { background: #111520; color: var(--text-main); }
.order-status-select:disabled { cursor: not-allowed; }

.order-status-select.status-confirmed { color: var(--tiffany-light); background-color: rgba(10, 186, 181, 0.12); border-color: rgba(10, 186, 181, 0.35); }
.order-status-select.status-processing { color: #FACC15; background-color: rgba(250, 204, 21, 0.1); border-color: rgba(250, 204, 21, 0.3); }
.order-status-select.status-shipped { color: #93C5FD; background-color: rgba(96, 165, 250, 0.12); border-color: rgba(96, 165, 250, 0.35); }
.order-status-select.status-delivered { color: var(--emerald-light); background-color: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.35); }
.order-status-select.status-cancelled { color: #F87171; background-color: rgba(225, 29, 72, 0.1); border-color: rgba(225, 29, 72, 0.3); }

.chip-confirmed i { color: var(--tiffany-light); }
.chip-processing i { color: #FACC15; }
.chip-shipped i { color: #93C5FD; }
.chip-delivered i { color: var(--emerald-light); }
.chip-cancelled i { color: #F87171; }
.orders-filter-chip.active i { color: #072624; }

.btn-action-icon.btn-wa {
  background: rgba(37, 211, 102, 0.12);
  color: #4ADE80;
  border-color: rgba(37, 211, 102, 0.3);
}

.btn-action-icon.btn-wa:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

.orders-empty {
  text-align: center;
  padding: 40px 16px !important;
  color: var(--text-dim);
}

.orders-empty i {
  font-size: 2.2rem;
  color: var(--tiffany);
  margin-bottom: 10px;
  display: block;
}

.orders-hint {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.6;
}

.orders-hint i { color: var(--tiffany); margin-top: 3px; }

/* ---------- Settings modal ---------- */
.settings-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 28px 0;
  background: #111520;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.settings-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  white-space: nowrap;
  position: relative;
  top: 1px;
  transition: color var(--transition-fast);
}

.settings-tab:hover { color: var(--tiffany-light); }

.settings-tab.active {
  color: var(--text-main);
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.settings-tab.active i { color: var(--pink); }

.settings-pane { display: none; animation: paneIn 0.3s ease; }
.settings-pane.active { display: block; }

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

.settings-intro {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 22px;
  border-radius: var(--radius-md);
  background: var(--soft-aura);
  border: 1px solid var(--border-subtle);
}

.settings-intro-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--theme-gradient);
  color: #072624;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.settings-intro-icon.store { background: var(--pink-gradient); color: #fff; }

.settings-intro h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; }
.settings-intro p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }

.pass-field { position: relative; }
.pass-field .form-input { width: 100%; padding-left: 42px; }

.pass-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.pass-field i:hover { color: var(--tiffany-light); }

.pass-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 18px;
}

.pass-strength-track {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pass-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 6px;
  transition: width 0.3s ease, background 0.3s ease;
}

#pass-strength-label { font-size: 0.75rem; font-weight: 800; min-width: 60px; }

.settings-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.settings-actions .btn-primary:disabled { opacity: 0.7; cursor: wait; transform: none; }

/* ---------- Responsive layout (tablet & mobile) ---------- */
@media (max-width: 1024px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(300px, 86vw);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 950;
  }

  body.admin-sidebar-open .admin-sidebar { transform: translateX(0); }
  body.admin-sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  body.admin-sidebar-open { overflow: hidden; }

  .sidebar-close-btn {
    display: inline-flex;
    margin-right: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
  }

  .admin-menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    background: var(--theme-gradient);
    color: #072624;
    font-size: 1.2rem;
    box-shadow: 0 6px 18px rgba(10, 186, 181, 0.35);
  }

  .admin-main { padding: 24px 22px; }
}

@media (max-width: 768px) {
  .admin-main { padding: 18px 14px 40px; }

  .admin-topbar { margin-bottom: 20px; gap: 14px; }
  .page-title h1 { font-size: 1.3rem; flex-wrap: wrap; }
  .page-title p { display: none; }
  .manual-mode-tag { font-size: 0.7rem; padding: 3px 9px; }

  .topbar-actions { width: 100%; gap: 10px; }
  .topbar-actions .btn-primary { flex: 1; padding: 12px 14px; }
  .topbar-actions .btn-secondary span { display: none; }
  .topbar-actions .btn-secondary { width: 46px; height: 46px; padding: 0; }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
  }

  .stat-card { padding: 16px; align-items: flex-start; gap: 8px; }
  .stat-info span { font-size: 0.76rem; }
  .stat-info h3, .sales-stats .stat-info h3 { font-size: 1.2rem; }
  .stat-info small { font-size: 0.7rem; }
  .stat-icon { width: 38px; height: 38px; font-size: 1.05rem; flex-shrink: 0; }

  .default-pass-banner { flex-direction: column; align-items: stretch; text-align: right; }
  .default-pass-banner .banner-icon { display: none; }

  .panel-toolbar { padding: 14px; }
  .search-box { min-width: 0; width: 100%; }
  .toolbar-filters { width: 100%; }
  .filter-select { flex: 1; }
  .status-tabs { width: 100%; overflow-x: auto; }
  .status-tab { flex: 1; white-space: nowrap; }

  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal-container {
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .modal-header { padding: 16px 18px; }
  .modal-header h2 { font-size: 1.05rem; }
  .modal-body { padding: 18px; }
  .modal-footer { padding: 14px 18px; flex-wrap: wrap; }
  .settings-tabs { padding: 10px 14px 0; }
  .settings-tab { padding: 10px 12px; font-size: 0.82rem; }

  .orders-toolbar-actions { width: 100%; }
  .orders-toolbar-actions .btn-secondary { flex: 1; }
  .orders-filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .orders-filter-chip { white-space: nowrap; }
  .orders-table-wrap { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-sidebar, .default-pass-banner, .settings-pane, .stat-card::before { transition: none; animation: none; }
}
