/* ═══════════════════════════════════════════════════
   pages.css — Page-specific layout overrides
   ═══════════════════════════════════════════════════ */

/* ── Login Page ──────────────────────────────────── */
.login-card {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: 0 24px 48px rgba(0,0,0,.2);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  animation: fadeUp .3s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.login-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 30px;
}
.login-logo-icon {
  width: 44px; height: 44px;
  /* background: linear-gradient(135deg,#E3291A,#FF6B35); */
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.login-logo-text h2 { font-size: 18px; font-weight: 800; }
.login-logo-text span { font-size: 12px; color: var(--muted); }
.login-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.login-card .sub { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form .btn { width: 100%; justify-content: center; padding: 11px; }
.login-forgot { font-size: 12px; color: var(--primary); text-align: right; cursor: pointer; }
.login-forgot:hover { text-decoration: underline; }

/* ── Dashboard ───────────────────────────────────── */
.dashboard-grid {
  /* display: grid; */
  grid-template-columns: repeat(3, 1fr) minmax(260px, 300px);
  gap: 20px;
  align-items: start;
}
.dash-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  grid-column: 1 / -1;
}
.dash-stat-period {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.stat-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.stat-card-actions .btn { padding: 4px 10px; font-size: 11px; }

.dash-chart-card  { grid-column: 1 / 4; grid-row: 2; }
.dash-right-stack {
  grid-column: 4;
  grid-row: 2 / 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.dash-trans-card { grid-column: 1 / 4; grid-row: 3; }
.dash-best-card { grid-column: 1 / 4; grid-row: 4; }

.dash-chart-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}
.dash-metric-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
}
.dash-metric-chip strong { font-size: 15px; font-weight: 700; color: var(--text); }
.dash-metric-chip span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }

.dash-mini-chart-wrap {
  position: relative;
  height: 120px;
  margin-top: 8px;
}
.dash-country-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.dash-country-row {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.dash-country-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 99px;
  overflow: hidden;
  grid-column: 1 / -1;
}
.dash-country-bar > span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
}

.dash-top-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}
.dash-top-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.dash-top-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border-light);
}
.dash-top-meta { flex: 1; min-width: 0; }
.dash-top-meta strong { display: block; font-weight: 600; }
.dash-top-meta span { font-size: 10px; color: var(--muted); }
.dash-cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dash-quick-list { display: flex; flex-direction: column; gap: 8px; }
.dash-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: var(--r-sm);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dash-stat-row { grid-template-columns: 1fr 1fr; }
  .dash-chart-card { grid-column: 1 / -1; }
  .dash-right-stack {
    grid-column: 1 / -1;
    grid-row: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dash-right-stack > .card { flex: 1 1 240px; }
  .dash-trans-card, .dash-best-card { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .dash-stat-row { grid-template-columns: 1fr; }
}

.chart-container { position: relative; height: 240px; }

/* ── Add Product ─────────────────────────────────── */
.add-product-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .add-product-layout { grid-template-columns: 1fr; }
}
.product-form-section {
  display: flex; flex-direction: column; gap: 16px;
}
.product-variation-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-light);
}
.product-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.product-img-thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.product-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-img-thumb .remove-btn {
  position: absolute; top: 4px; right: 4px;
  background: rgba(239,68,68,.85);
  color: #fff;
  border-radius: var(--r-full);
  width: 18px; height: 18px;
  display: none; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.product-img-thumb:hover .remove-btn { display: flex; }
.product-img-add {
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: var(--r-sm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--muted); font-size: 11px; gap: 4px;
  transition: border-color var(--ease), background var(--ease);
}
.product-img-add:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.model-preview-box {
  border-radius: var(--r);
  overflow: hidden;
  background: #1a1a2e;
  position: relative;
  margin-top: 8px;
}
.model-preview-box canvas { display: block; width: 100% !important; height: 240px !important; }
.model-preview-controls {
  position: absolute; bottom: 8px; right: 8px;
  display: flex; gap: 4px;
}
.model-ctrl-btn {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border-radius: var(--r-sm);
  padding: 4px 8px;
  font-size: 11px; color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.2);
  transition: background var(--ease);
}
.model-ctrl-btn:hover { background: rgba(255,255,255,.3); }

/* ── Product List ────────────────────────────────── */
.product-list-filters {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap; gap: 10px;
}

/* ── Categories ──────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.cat-card {
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--border-light);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow var(--ease), border-color var(--ease);
  position: relative;
}
.cat-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.cat-card.selected { border-color: var(--primary); background: var(--primary-light); }
.cat-card-view-products {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  padding: 0;
}
.cat-card:hover .cat-card-view-products {
  opacity: 1;
  transform: scale(1);
}
.cat-card-view-products:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow);
}
.cat-icon {
  width: 48px; height: 48px;
  border-radius: var(--r);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  color: var(--primary);
}
.cat-card h4 { font-size: 13px; font-weight: 700; }
.cat-card span { font-size: 11px; color: var(--muted); }

/* ── Products List - Category Filter ─────────────── */
.category-filter-wrap {
  display: flex;
  align-items: center;
  background: var(--primary-light);
  border-bottom: 1px solid var(--primary);
}
.category-filter-wrap .btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.category-filter-wrap .btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ── Customers ───────────────────────────────────── */
.customers-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
  align-items: start;
}
@media (max-width: 1200px) { .customers-layout { grid-template-columns: 1fr 260px; gap: 10px; } }
@media (max-width: 1000px) { .customers-layout { grid-template-columns: 1fr; gap: 20px; } }
.customer-detail-card { position: sticky; top: 0; height: fit-content; }

.customer-insight-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.customer-stat-stack {
  /* display: grid;
  grid-template-columns: 1fr;
  gap: 12px; */
    /* Span all columns of the .customer-insight-grid */
  grid-column: 1 / -1; 
  
  /* Distribute children evenly */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.customer-overview-card .card-header {
  gap: 10px;
  flex-wrap: wrap;
}
.customer-range-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
.range-chip {
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
}
.range-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.range-chip.active {
  background: #eaf7ec;
  border-color: #cbe7cf;
  color: #198754;
}
.customer-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px 20px 0;
}
.customer-overview-cell {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}
.customer-overview-cell .val {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3px;
}
.customer-overview-cell .lbl {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .customer-insight-grid {
    grid-template-columns: 1fr;
  }
  .customer-stat-stack {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 850px) {
  .customer-stat-stack,
  .customer-overview-metrics {
    grid-template-columns: 1fr;
  }
}

.cust-profile-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--border-light);
}
.cust-avatar {
  width: 48px; height: 48px;
  border-radius: var(--r-full);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0;
  overflow: hidden;
}
.cust-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cust-order-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
}
.cust-order-cell { text-align: center; }
.cust-order-cell .val { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.cust-order-cell .lbl { font-size: 11px; color: var(--muted); }
.cust-order-cell .val.warn { color: var(--warning); }
.cust-order-cell .val.red  { color: var(--danger); }

/* ── Orders ──────────────────────────────────────── */
.orders-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .orders-stat-grid { grid-template-columns: 1fr 1fr; } }

/* ── Transactions ────────────────────────────────── */
.tx-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr 400px; gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 1000px) { .tx-stat-grid { grid-template-columns: 1fr 1fr; } }

.payment-card {
  background: linear-gradient(135deg, #1B4977, #1765D8, #2979E8);
  border-radius: var(--r-lg);
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.payment-card::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  bottom: -80px; left: -40px;
}
.payment-card::after {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: -50px; right: -20px;
}
.payment-card-number { font-size: 18px; letter-spacing: .12em; font-weight: 700; margin: 16px 0 12px; font-family: monospace; }
.payment-card-footer { display: flex; justify-content: space-between; font-size: 11px; opacity: .8; }

/* ── Admin Role ──────────────────────────────────── */
.admin-layout {
  display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start;
}
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }
.profile-card-center { text-align: center; padding: 24px; }
.profile-card-avatar {
  width: 80px; height: 80px;
  border-radius: var(--r-full);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff;
  margin: 0 auto 12px;
  overflow: hidden;
  position: relative;
}
.profile-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-social { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0; }
.social-icon {
  width: 30px; height: 30px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer;
  transition: transform var(--ease);
}
.social-icon:hover { transform: scale(1.15); }

/* ── Media Browser ───────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.media-item {
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--ease), border-color var(--ease);
}
.media-item:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.media-item.selected { border-color: var(--primary); }
.media-thumb {
  aspect-ratio: 1;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  overflow: hidden;
  position: relative;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb-icon { width: 40px; height: 40px; opacity: .5; }
.media-info { padding: 8px; }
.media-info-name { font-size: 11px; font-weight: 600; }
.media-info-meta { font-size: 10px; color: var(--muted); margin-top: 1px; }
.media-3d-badge {
  position: absolute; top: 6px; right: 6px;
  background: rgba(23,101,216,.85);
  color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: var(--r-full);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE PAGES — Mobile, Tablet, Desktop
   ═══════════════════════════════════════════════════ */

/* ── Tablet (768px - 1024px) ────────────────────────── */
@media (max-width: 1024px) {
  /* Dashboard */
  .dashboard-grid { grid-template-columns: 1fr; gap: 16px; }
  .dash-stat-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dash-chart-card { grid-column: 1; }
  .dash-right-stack { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; }
  .dash-right-stack > .card { flex: 1 1 calc(50% - 6px); }
  .dash-trans-card { grid-column: 1; }
  .dash-best-card { grid-column: 1; }
  .chart-container { height: 200px; }
  .dash-mini-chart-wrap { height: 100px; }
  
  /* Add Product */
  .add-product-layout { gap: 16px; }
  .product-image-grid { gap: 6px; }
  
  /* Categories */
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  
  /* Customers */
  .customers-layout { gap: 16px; }
  .customer-insight-grid { gap: 12px; }
  .customer-overview-metrics { gap: 10px; padding: 10px 16px 0; }
  .customer-stat-stack { gap: 10px; grid-template-columns: 1fr 1fr; }
  
  /* Orders */
  .orders-stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
  
  /* Transactions */
  .tx-stat-grid { grid-template-columns: 1fr; gap: 16px; }
  .payment-card { padding: 16px; }
  
  /* Admin */
  .admin-layout { gap: 16px; }
  
  /* Media */
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

/* ── Mobile (< 768px) ────────────────────────────────── */
@media (max-width: 768px) {
  /* ── Login Page - Mobile ────────────────────────────– */
  .login-card {
    padding: 24px 16px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
  }
  .login-logo {
    gap: 10px;
    margin-bottom: 20px;
  }
  .login-logo-icon { width: 36px; height: 36px; }
  .login-logo-text h2 { font-size: 15px; }
  .login-logo-text span { font-size: 11px; }
  .login-card h1 { font-size: 18px; margin-bottom: 6px; }
  .login-card .sub { font-size: 12px; margin-bottom: 18px; }
  .login-form { gap: 12px; }
  .login-form .btn { padding: 10px; font-size: 12px; }
  .login-forgot { font-size: 11px; }
  
  /* ── Dashboard - Mobile ────────────────────────────– */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dash-stat-row {
    grid-template-columns: 1fr;
    gap: 12px;
    grid-column: 1;
  }
  .dash-chart-card {
    grid-column: 1;
    grid-row: auto;
  }
  .dash-right-stack {
    grid-column: 1;
    grid-row: auto;
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .dash-right-stack > .card { flex: 1 1 auto; }
  .dash-trans-card {
    grid-column: 1;
    grid-row: auto;
  }
  .dash-best-card {
    grid-column: 1;
    grid-row: auto;
  }
  
  .chart-container { height: 180px; margin-top: 8px; }
  .dash-chart-metrics {
    gap: 8px 12px;
    padding: 0 2px 10px;
    margin-bottom: 10px;
  }
  .dash-metric-chip { min-width: 60px; }
  .dash-metric-chip strong { font-size: 13px; }
  .dash-metric-chip span { font-size: 9px; }
  
  .dash-mini-chart-wrap { height: 100px; margin-top: 6px; }
  .dash-country-row { font-size: 11px; }
  .dash-top-item {
    font-size: 11px;
    gap: 8px;
  }
  .dash-top-item img { width: 36px; height: 36px; }
  .dash-cat-chips { gap: 4px; margin-bottom: 8px; }
  .dash-quick-list { gap: 6px; }
  .dash-quick-row { padding: 6px 8px; font-size: 11px; }
  
  /* ── Add Product - Mobile ──────────────────────────– */
  .add-product-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: auto;
  }
  .product-form-section { gap: 12px; }
  .product-variation-row {
    gap: 8px;
    padding: 8px 10px;
    flex-wrap: wrap;
  }
  .product-image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 6px;
  }
  .model-preview-box canvas {
    height: 200px !important;
  }
  .model-preview-controls { bottom: 6px; right: 6px; gap: 2px; }
  .model-ctrl-btn { 
    padding: 3px 6px;
    font-size: 10px;
  }
  
  /* ── Product List - Mobile ────────────────────────– */
  .product-list-filters {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }
  .product-list-filters > * { width: 100%; }
  
  /* ── Categories - Mobile ───────────────────────────– */
  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }
  .cat-card { padding: 14px 10px; }
  .cat-icon { width: 40px; height: 40px; margin: 0 auto 8px; }
  .cat-card h4 { font-size: 12px; }
  .cat-card span { font-size: 10px; }
  
  /* ── Customers - Mobile ────────────────────────────– */
  .customers-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: auto;
  }
  .customer-detail-card { position: static; }
  
  .customer-insight-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  .customer-stat-stack {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .customer-overview-card .card-header {
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
  }
  .customer-range-wrap {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .range-chip { flex: 1; text-align: center; }
  .customer-overview-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px 0;
  }
  .customer-overview-cell {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
  }
  .customer-overview-cell .val { font-size: 24px; }
  .customer-overview-cell .lbl { font-size: 11px; }
  
  .cust-profile-header { gap: 10px; padding: 12px; }
  .cust-avatar { width: 40px; height: 40px; font-size: 16px; }
  .cust-order-summary { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  .cust-order-cell { text-align: left; }
  .cust-order-cell .val { font-size: 18px; }
  
  /* ── Orders - Mobile ───────────────────────────────– */
  .orders-stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  /* ── Transactions - Mobile ────────────────────────– */
  .tx-stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .payment-card {
    padding: 14px;
    border-radius: 10px;
  }
  .payment-card-number { font-size: 15px; margin: 12px 0 10px; }
  .payment-card-footer { font-size: 10px; }
  
  /* ── Admin Role - Mobile ───────────────────────────– */
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .profile-card-center { padding: 16px; }
  .profile-card-avatar { width: 64px; height: 64px; font-size: 24px; margin: 0 auto 10px; }
  .social-icon { width: 28px; height: 28px; font-size: 12px; }
  
  /* ── Media Browser - Mobile ────────────────────────– */
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  .media-item { border-radius: 8px; }
  .media-info { padding: 6px; }
  .media-info-name { font-size: 10px; }
  .media-info-meta { font-size: 9px; }
  .media-3d-badge { font-size: 8px; padding: 1px 4px; top: 4px; right: 4px; }
}

/* ── Small Mobile (< 480px) ────────────────────────── */
@media (max-width: 480px) {
  /* ── Login - Extra Small ────────────────────────────┆ */
  .login-view { padding: 12px; }
  .login-card { padding: 18px 12px; }
  .login-logo { gap: 8px; margin-bottom: 16px; }
  .login-logo-icon { width: 32px; height: 32px; }
  .login-card h1 { font-size: 16px; }
  .login-card .sub { font-size: 11px; margin-bottom: 14px; }
  
  /* ── Dashboard - Extra Small ────────────────────────┆ */
  .dashboard-grid { gap: 10px; }
  .dash-stat-row { gap: 10px; }
  .chart-container { height: 150px; }
  .dash-mini-chart-wrap { height: 80px; }
  
  .dash-chart-metrics { gap: 6px 10px; padding: 0 0px 8px; }
  .dash-metric-chip strong { font-size: 12px; }
  .dash-top-item { font-size: 10px; }
  .dash-top-item img { width: 32px; height: 32px; }
  
  /* ── Add Product - Extra Small ──────────────────────┆ */
  .product-image-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .product-img-thumb { border-radius: 6px; }
  .model-preview-box canvas { height: 160px !important; }
  
  /* ── Categories - Extra Small ───────────────────────┆ */
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .cat-card { padding: 12px 8px; }
  .cat-icon { width: 32px; height: 32px; margin: 0 auto 6px; }
  
  /* ── Customers - Extra Small ────────────────────────┆ */
  .customer-overview-metrics { grid-template-columns: 1fr 1fr; }
  .customer-overview-cell .val { font-size: 18px; }
  
  /* ── Media - Extra Small ────────────────────────────┆ */
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
}
