/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  background: #f4f6fa;
  color: #1a1a1a;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea {
  font-family: inherit; font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  width: 100%; outline: none;
  background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: #2563eb; }
textarea { resize: vertical; min-height: 60px; }

/* ===== LOGIN ===== */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 20px;
}
.login-card {
  background: #fff; border-radius: 12px; padding: 40px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-card h1 { font-size: 28px; margin-bottom: 4px; text-align: center; }
.login-card > p { text-align: center; color: #666; margin-bottom: 30px; }
.login-card .form-group { margin-bottom: 16px; }
.login-card label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; }
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #667085;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  background: #f2f4f7;
  color: #1f2937;
}
.password-toggle svg.password-toggle-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  transform: rotate(-35deg);
  border-radius: 2px;
}
.login-footer { text-align: center; margin-top: 20px; font-size: 13px; }

/* ===== ADMIN LAYOUT ===== */
.admin-body { display: flex; min-height: 100vh; }
.admin-backdrop,
.admin-menu-btn {
  display: none;
}
.admin-sidebar {
  width: 250px;
  background: #1a1a1a;
  color: #fff;
  padding: 24px 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
}
.admin-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid #2d2d2d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-logo a { color: #fff; font-size: 22px; font-weight: 700; display: block; }
.admin-logo small { color: #999; font-size: 12px; }
.admin-nav-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  color: #fff;
  background: #2d2d2d;
}
.admin-nav { padding: 16px 0; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.admin-nav a .i { color: inherit; opacity: 0.8; }
.admin-nav a:hover .i { opacity: 1; }
.admin-nav a.active .i { opacity: 1; }
.admin-nav a:hover { background: #2d2d2d; color: #fff; }
.admin-nav a.active { background: #d4af37; color: #1a1a1a; font-weight: 600; }
.admin-nav hr { border: 0; border-top: 1px solid #2d2d2d; margin: 12px 24px; }
.admin-nav .logout { color: #ff6b6b; }

.admin-main {
  flex: 1;
  margin-left: 250px;
  padding: 0;
}
.admin-header {
  background: #fff;
  padding: 18px 30px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0; z-index: 50;
}
.admin-menu-btn {
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  color: #1a1a1a;
  background: #fff;
  flex-shrink: 0;
}
.admin-header h1 { font-size: 22px; font-weight: 600; }
.admin-user { font-size: 14px; color: #666; }
.admin-content { padding: 28px 30px; }

/* ===== FLASH ===== */
.flash {
  margin: 20px 30px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
}
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error { background: #fee2e2; color: #991b1b; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  color: #1a1a1a;
  flex-shrink: 0;
}
.stat-card.primary .stat-icon { background: rgba(255,255,255,0.15); color: #fff; }
.stat-card.warning .stat-icon { background: #fef3c7; color: #92400e; }
.stat-card.success .stat-icon { background: #d1fae5; color: #065f46; }
.info-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.info-line .i { color: #6b7280; flex-shrink: 0; }
.stat-info { flex: 1; }
.stat-label { font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 4px; }
.stat-card.primary { background: linear-gradient(135deg, #1a1a1a, #2d2d2d); color: #fff; }
.stat-card.primary .stat-label { color: #ccc; }
.stat-card.warning { border-left: 4px solid #f59e0b; }
.stat-card.success { border-left: 4px solid #10b981; }

/* ===== CARDS ===== */
.card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 24px;
  margin-bottom: 20px;
}
.card h3 { font-size: 17px; margin-bottom: 16px; }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.card-header h3 { margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.smtp-status {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #374151;
  word-break: break-word;
}
.smtp-status p {
  margin: 0;
  font-size: 13px;
}
.settings-image-preview {
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}
.settings-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== TABLES ===== */
.data-table { width: 100%; border-collapse: collapse; }
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  font-weight: 600;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  vertical-align: middle;
}
.data-table tr:hover { background: #fafbfc; }
.data-table .thumb {
  width: 50px; height: 50px;
  object-fit: cover;
  border-radius: 4px;
}
.table-input {
  width: 100%;
  min-width: 92px;
  padding: 7px 9px;
  font-size: 13px;
  border-radius: 5px;
}
.table-input-sm { min-width: 78px; }

.agent-link-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.agent-link-box input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #f9fafb;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.mini-row:last-child { border-bottom: 0; }
.compact-checkbox {
  justify-content: center;
  margin: 0;
}
.text-muted { color: #9ca3af; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-orange { background: #fed7aa; color: #9a3412; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-gray { background: #f3f4f6; color: #374151; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  cursor: pointer;
  transition: all .15s;
}
.btn:hover { background: #e5e7eb; }
.btn-primary { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.btn-primary:hover { background: #2d2d2d; color: #fff; }
.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-outline { background: transparent; border: 1px solid #d1d5db; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-large { padding: 12px 24px; font-size: 15px; }
.btn-block { display: block; width: 100%; }

.inline { display: inline-block; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 13px;
  color: #374151;
}
.field-action-link {
  margin-left: 8px;
  font-size: 0.9em;
  font-weight: 500;
}
.form-group small { display: block; margin-top: 4px; color: #6b7280; font-size: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { width: auto; }

/* ===== PAGE ACTIONS ===== */
.page-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-bar {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 600px;
}
.search-bar input { flex: 1; }
.search-bar select { width: auto; }
.review-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-reviews-table small {
  display: block;
  color: #6b7280;
  margin-top: 4px;
}
.admin-reviews-table .td-actions {
  min-width: 210px;
}
.admin-stars {
  white-space: nowrap;
  color: #d1d5db;
}
.admin-stars .filled {
  color: #d4af37;
}

/* ===== IMAGES ===== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.image-item {
  position: relative;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
}
.image-item img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; display: block; }
.main-tag {
  position: absolute; top: 6px; left: 6px;
  background: #d4af37; color: #1a1a1a;
  padding: 2px 8px; border-radius: 3px;
  font-size: 10px; font-weight: 700;
}
.image-delete {
  position: absolute; top: 6px; right: 6px;
  background: #dc2626; color: #fff;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.image-controls {
  display: grid;
  gap: 8px;
  padding: 10px;
  font-size: 12px;
}
.image-controls label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
}
.image-controls input[type="number"] {
  width: 64px;
  padding: 5px 7px;
}
.set-admin-product {
  display: flex;
  align-items: center;
  gap: 10px;
}
.set-admin-product img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}
.set-admin-product small {
  display: block;
  color: #6b7280;
  margin-top: 2px;
}

/* ===== ORDER TOTALS ===== */
.order-totals {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid #e5e7eb;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.summary-row.total {
  font-size: 17px;
  font-weight: 700;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px solid #1a1a1a;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
  padding: 16px 0;
}
.pagination a {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  color: #374151;
}
.pagination a.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

.dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
}
.admin-orders-panel { grid-column: 1 / -1; }
.dashboard-analytics-card {
  overflow: hidden;
}
.dashboard-analytics-header {
  align-items: flex-start;
  gap: 16px;
}
.dashboard-analytics-header p {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
}
.dashboard-chart-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #374151;
  font-weight: 700;
}
.dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-purchases { background: #16a34a; }
.legend-registrations { background: #2563eb; }
.dashboard-memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.memory-card {
  min-height: 92px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.memory-card span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.memory-card strong {
  color: #111827;
  font-size: 24px;
  line-height: 1.15;
}
.memory-card small {
  color: #6b7280;
  font-size: 12px;
}
.memory-purchases {
  background: #ecfdf5;
  border-color: #bbf7d0;
}
.memory-purchases strong { color: #15803d; }
.memory-registrations {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.memory-registrations strong { color: #1d4ed8; }
.dashboard-chart-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.dashboard-line-chart {
  min-width: 720px;
  height: 320px;
}
.dashboard-line-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}
.chart-bg { fill: #fff; }
.chart-grid-line {
  stroke: #e5e7eb;
  stroke-width: 1;
}
.chart-axis-label {
  fill: #6b7280;
  font-size: 11px;
  font-weight: 600;
}
.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-line-green { stroke: #16a34a; }
.chart-line-blue { stroke: #2563eb; }
.chart-dot {
  stroke: #fff;
  stroke-width: 2;
}
.chart-dot-green { fill: #16a34a; }
.chart-dot-blue { fill: #2563eb; }
.chart-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}
.order-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.order-status-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #1a1a1a;
  background: #fff;
}
.order-status-chip span {
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}
.order-status-chip strong {
  font-size: 22px;
}
.order-status-new { border-left: 4px solid #dc2626; }
.order-status-processing { border-left: 4px solid #f59e0b; }
.order-status-on_hold { border-left: 4px solid #eab308; }
.order-status-shipped { border-left: 4px solid #2563eb; }
.recent-orders-list {
  display: grid;
  gap: 8px;
}
.recent-order-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  color: #1a1a1a;
  background: #fff;
}
.recent-order-row span {
  display: grid;
  gap: 2px;
}
.recent-order-row small {
  color: #6b7280;
}
.recent-order-row em {
  font-style: normal;
  position: static;
}
.order-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.order-lane {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
}
.order-lane h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 10px;
}
.order-lane h4 span {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 1px 8px;
}
.order-lane-new { border-left: 4px solid #dc2626; }
.order-lane-processing { border-left: 4px solid #f59e0b; }
.order-lane-on_hold { border-left: 4px solid #eab308; }
.order-lane-shipped { border-left: 4px solid #2563eb; }
.order-mini-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.order-mini-card span { color: #6b7280; font-size: 13px; }
.order-mini-card b { font-size: 13px; }
.order-mini-card select { padding: 7px 9px; font-size: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .admin-sidebar { width: 230px; }
  .admin-main { margin-left: 230px; }
  .grid-2, .grid-2-1 { grid-template-columns: 1fr; }
  .stats-grid,
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body.admin-nav-open { overflow: hidden; }
  .admin-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.42);
    z-index: 190;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }
  body.admin-nav-open .admin-backdrop {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  .admin-menu-btn { display: inline-flex; }
  .admin-nav-close { display: inline-flex; }
  .admin-sidebar {
    width: 100vw;
    transform: translateX(-100%);
    transition: transform .2s;
    z-index: 200;
    box-shadow: 18px 0 45px rgba(0,0,0,0.18);
    padding-top: 18px;
  }
  body.admin-nav-open .admin-sidebar { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-header {
    padding: 12px 14px;
    gap: 10px;
  }
  .admin-header h1 {
    font-size: 18px;
    line-height: 1.2;
    flex: 1;
  }
  .admin-user {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
  }
  .admin-content { padding: 16px 14px; }
  .flash { margin: 14px; }
  .card {
    padding: 16px;
    border-radius: 8px;
  }
  .card h3 {
    font-size: 16px;
    line-height: 1.25;
  }
  .card-header,
  .page-actions,
  .search-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-bar {
    max-width: none;
    width: 100%;
  }
  .search-bar select,
  .search-bar .btn {
    width: 100%;
  }
  .stats-grid,
  .dashboard-stats { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-analytics-header {
    align-items: stretch;
  }
  .dashboard-chart-legend {
    justify-content: flex-start;
  }
  .dashboard-memory-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-line-chart {
    min-width: 640px;
    height: 280px;
  }
  .order-status-strip { grid-template-columns: 1fr; }
  .recent-order-row { grid-template-columns: 1fr; align-items: stretch; }
  .order-board { grid-template-columns: 1fr; }
  .stat-card { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr; }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  .data-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: visible;
    white-space: normal;
    font-size: 13px;
  }
  .data-table thead {
    display: none;
  }
  .data-table tbody {
    display: grid;
    gap: 10px;
  }
  .data-table tr {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  }
  .data-table tr:hover {
    background: #fff;
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    border-bottom: 1px solid #f3f4f6;
    padding: 7px 0;
    text-align: right;
    line-height: 1.35;
    min-width: 0;
    word-break: break-word;
  }
  .data-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .data-table td::before {
    content: attr(data-label);
    flex: 0 0 82px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    text-align: left;
  }
  .data-table td[colspan] {
    display: block;
    text-align: center;
    padding: 22px 8px;
  }
  .data-table td[colspan]::before {
    display: none;
  }
  .data-table .td-title {
    display: block;
    text-align: left;
    font-size: 14px;
  }
  .data-table .td-title::before {
    display: none;
  }
  .data-table .td-title strong {
    display: block;
    margin-bottom: 6px;
  }
  .data-table .td-thumb {
    display: none;
  }
  .data-table .thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
  }
  .data-table code {
    white-space: normal;
    word-break: break-word;
  }
  .table-input,
  .table-input-sm {
    min-width: 0;
    max-width: 190px;
    text-align: right;
  }
  .compact-checkbox {
    justify-content: flex-end;
  }
  .td-actions {
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding-top: 10px !important;
    margin-top: 2px;
  }
  .td-actions::before {
    display: none;
  }
  .td-actions .inline {
    display: contents;
  }
  .td-actions .btn,
  .td-actions button {
    flex: 1;
    min-width: 0;
  }
  .admin-products-table tr {
    padding-top: 14px;
  }
  .admin-products-table .td-title {
    font-size: 15px;
  }
  .admin-products-table .td-title .badge {
    margin: 3px 4px 0 0;
  }
  .btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-sm { min-height: 34px; }
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
