/* ============================================================
   RESELLER PORTAL — Design System v3
   Premium SaaS UI (Stripe / Linear / Vercel inspired)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Neutral palette */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;

  /* Brand accent */
  --accent-50:  #ecfdf5;
  --accent-100: #d1fae5;
  --accent-200: #a7f3d0;
  --accent-300: #6ee7b7;
  --accent-400: #34d399;
  --accent-500: #10b981;
  --accent-600: #059669;
  --accent-700: #047857;

  /* Semantic */
  --danger:  #ef4444;
  --danger-light: #fef2f2;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --info:    #3b82f6;
  --info-light: #eff6ff;
  --success: #10b981;
  --success-light: #ecfdf5;

  /* 8px Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 56px;
  --space-12: 64px;

  /* Typography Scale */
  --text-xs: 11px;
  --text-sm: 12.5px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Layout tokens */
  --sidebar-w: 260px;
  --sidebar-collapsed-w: 72px;
  --topbar-h: 0px;
  --content-max-w: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);

  /* Transition tokens */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  /* Surface colors (light mode) */
  --surface-primary: #ffffff;
  --surface-secondary: var(--gray-50);
  --surface-tertiary: var(--gray-100);
  --border-primary: var(--gray-200);
  --border-secondary: var(--gray-100);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-500);
  --text-quaternary: var(--gray-400);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 231, 255, .72) rgba(6, 10, 28, .82);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: rgba(6, 10, 28, .82);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(6, 10, 28, .82);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(24, 231, 255, .9), rgba(124, 92, 255, .9));
  box-shadow: 0 0 18px rgba(24, 231, 255, .28);
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(49, 246, 160, .95), rgba(24, 231, 255, .95));
}
*::-webkit-scrollbar-corner { background: transparent; }

body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
}

a { color: var(--accent-600); text-decoration: none; }
a:hover { color: var(--accent-700); }

img { max-width: 100%; height: auto; }

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid rgba(151, 164, 204, .34);
  border-radius: 5px;
  background: rgba(6, 10, 28, .68);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  vertical-align: -3px;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}
input[type="checkbox"]::before {
  content: '';
  width: 8px;
  height: 8px;
  clip-path: polygon(14% 44%, 0 64%, 43% 100%, 100% 18%, 82% 0, 38% 64%);
  background: #04111b;
  transform: scale(0);
  transform-origin: center;
  transition: transform var(--duration-fast) var(--ease-out);
}
input[type="checkbox"]:checked {
  border-color: rgba(24, 231, 255, .88);
  background: linear-gradient(135deg, #18e7ff, #31f6a0);
  box-shadow: 0 0 0 3px rgba(24, 231, 255, .12), 0 0 18px rgba(24, 231, 255, .26);
}
input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="checkbox"]:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(24, 231, 255, .18), 0 0 18px rgba(24, 231, 255, .22);
}

/* ---------- Layout Shell ---------- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--gray-900);
  color: var(--gray-300);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}
.sidebar-brand span {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  letter-spacing: -.2px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 231, 255, .64) rgba(12, 18, 38, .74);
}
.sidebar-nav::-webkit-scrollbar { width: 8px; }
.sidebar-nav::-webkit-scrollbar-track { background: rgba(12, 18, 38, .74); }
.sidebar-nav::-webkit-scrollbar-thumb {
  border-color: rgba(12, 18, 38, .74);
  background: linear-gradient(180deg, rgba(24, 231, 255, .82), rgba(124, 92, 255, .82));
}

.sidebar-section {
  margin-bottom: 8px;
}
.sidebar-section-title {
  display: block;
  padding: 8px 12px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .15s ease;
  text-decoration: none;
  position: relative;
}
.sidebar-link:hover {
  background: rgba(255,255,255,.06);
  color: var(--gray-100);
}
.sidebar-link.active {
  background: rgba(16,185,129,.15);
  color: var(--accent-400);
  font-weight: 600;
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent-500);
}
.sidebar-link .nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: .65;
  transition: opacity var(--duration-fast) ease;
}
.sidebar-link:hover .nav-icon { opacity: .9; }
.sidebar-link.active .nav-icon { opacity: 1; color: var(--accent-400); }

.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  line-height: 1.4;
}

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s;
  text-decoration: none;
  color: var(--gray-400);
}
.sidebar-user:hover {
  background: rgba(255,255,255,.06);
  color: var(--gray-100);
}
.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-name {
  display: block;
  color: var(--gray-200);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-email {
  display: block;
  color: var(--gray-500);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Main Content ---------- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.content-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max-w);
  margin: 0 auto;
  padding: 20px 32px;
  width: 100%;
}
.content-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.content-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.3px;
}
.content-header .breadcrumb {
  font-size: 12px;
  color: var(--gray-500);
}
.content-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.content-body {
  flex: 1;
  padding: 28px 32px;
  max-width: var(--content-max-w);
  width: 100%;
  margin: 0 auto;
}

/* Mobile hamburger */
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: #fff;
  cursor: pointer;
  color: var(--gray-600);
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 999;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 {
  font-size: 15px;
  font-weight: 650;
  color: var(--gray-900);
}
.card-body { padding: 20px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* ---------- Stat Cards ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
  transform: translateY(-1px);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-icon.green  { background: var(--accent-50);  color: var(--accent-600); }
.stat-icon.blue   { background: #eff6ff;           color: var(--info); }
.stat-icon.amber  { background: #fffbeb;           color: var(--warning); }
.stat-icon.purple { background: #f5f3ff;           color: #7c3aed; }

.stat-info { flex: 1; }
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.5px;
  line-height: 1.2;
}
.stat-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ---------- Product Cards ---------- */
.pinned-products-panel {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(248, 213, 107, .18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(248, 213, 107, .08), rgba(124, 92, 255, .06));
  box-shadow: 0 18px 44px rgba(3, 6, 17, .08);
}

.pinned-products-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.pinned-products-heading h3 {
  margin: 2px 0 0;
  color: var(--gray-900);
  font-size: 19px;
  font-weight: 800;
}

.pinned-products-eyebrow {
  color: var(--cyber-amber, #f59e0b);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pinned-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.pinned-product-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  min-height: 116px;
  padding: 12px;
  border: 1px solid rgba(248, 213, 107, .16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .72);
  color: inherit;
  text-decoration: none;
  transition: transform var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.pinned-product-card:hover {
  color: inherit;
  border-color: rgba(248, 213, 107, .35);
  box-shadow: 0 16px 32px rgba(3, 6, 17, .10);
  transform: translateY(-2px);
}

.pinned-product-image {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, .12);
}

.pinned-product-image img {
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: contain;
}

.pinned-product-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.pinned-product-body strong,
.pinned-product-body span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.pinned-product-body strong {
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
}

.pinned-product-body > span {
  color: var(--gray-500);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.pinned-product-badge {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(248, 213, 107, .13);
  color: var(--cyber-amber, #f59e0b);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pinned-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--gray-600);
  font-size: 11px;
  font-weight: 800;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.product-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent-200);
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: var(--leading-tight);
  letter-spacing: -.3px;
}
.product-card-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.3px;
}
.product-price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
}
.product-stock {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.product-stock.in-stock {
  background: var(--accent-50);
  color: var(--accent-700);
}
.product-stock.out-of-stock {
  background: #fef2f2;
  color: var(--danger);
}

.product-card-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}
.product-card-favorite button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease;
}
.product-card-favorite button:hover {
  transform: scale(1.1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:active {
  transform: scale(.97);
  transition-duration: 50ms;
}

.btn-primary {
  background: var(--accent-600);
  color: #fff;
  border-color: var(--accent-600);
}
.btn-primary:hover {
  background: var(--accent-700);
  border-color: var(--accent-700);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,.3);
}

.btn-secondary {
  background: #fff;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-800);
}

.btn-danger {
  background: #fff;
  color: var(--danger);
  border-color: #fecaca;
}
.btn-danger:hover {
  background: #fef2f2;
  border-color: var(--danger);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.btn-dark {
  background: var(--gray-900);
  color: #fff;
  border-color: var(--gray-900);
}
.btn-dark:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
  color: #fff;
}

.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; }

/* ---------- Tables ---------- */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--gray-50); }

.table-dark thead th {
  background: var(--gray-900);
  color: var(--gray-300);
  border-bottom: 1px solid var(--gray-700);
}

/* ---------- Modals ---------- */
.modal-content {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}
.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ---------- Badges ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.badge-green  { background: var(--accent-50);  color: var(--accent-700); }
.badge-red    { background: #fef2f2;           color: var(--danger); }
.badge-blue   { background: #eff6ff;           color: var(--info); }
.badge-amber  { background: #fffbeb;           color: #b45309; }
.badge-gray   { background: var(--gray-100);   color: var(--gray-600); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-800);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
  font-family: var(--font-sans);
}
.form-control:focus {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.form-control::placeholder { color: var(--gray-400); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

.form-hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}
.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--gray-900);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  animation: toastIn .3s cubic-bezier(.21,1.02,.73,1) forwards;
}
.toast.toast-success { border-left: 3px solid var(--accent-500); }
.toast.toast-error   { border-left: 3px solid var(--danger); }
.toast.toast-info    { border-left: 3px solid var(--info); }

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast.hiding {
  animation: toastOut .25s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(8px) scale(.96); }
}

/* ---------- Skeleton Loaders ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; width: 80%; margin-bottom: 8px; }
.skeleton-title { height: 20px; width: 50%; margin-bottom: 12px; }
.skeleton-img { height: 180px; width: 100%; border-radius: var(--radius-md); }
.skeleton-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.skeleton-stat { height: 44px; width: 100%; }

@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Empty States ---------- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--gray-100);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 13.5px;
  color: var(--gray-500);
  max-width: 360px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* ---------- Search Modal ---------- */
.search-modal .modal-content {
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}
.search-modal .modal-header {
  padding: 18px 22px 0;
  border: 0;
}
.search-modal .modal-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  color: var(--gray-900);
}
.search-modal .title-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-100);
}
.search-modal .modal-body { padding: 18px 22px 24px; }
.search-modal .input-with-icon { position: relative; }
.search-modal .input-with-icon .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}
.search-modal .search-input {
  padding-left: 44px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  font-size: 14px;
  outline: none;
}
.search-modal .search-input:focus {
  border-color: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}

/* Admin search form */
.admin-search-form { margin-bottom: 22px; }
.admin-search-form .input-with-icon { position: relative; display: flex; }
.admin-search-form .input-with-icon .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}
.admin-search-form .search-input {
  padding-left: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.admin-search-form .search-input:focus {
  border-color: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
/* ---------- Pagination ---------- */
.pagination { gap: 4px; }
.pagination .page-link {
  border-radius: var(--radius-sm);
  border-color: var(--gray-200);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
}
.pagination .page-link:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-800);
}
.pagination .page-item.active .page-link {
  background: var(--accent-600);
  border-color: var(--accent-600);
  color: #fff;
}

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(37,211,102,.4);
  z-index: 900;
  transition: transform .2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab img { width: 26px; height: 26px; }

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success {
  background: var(--accent-50);
  color: var(--accent-700);
  border: 1px solid var(--accent-200);
}
.alert-danger {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

/* ---------- Payment page ---------- */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.payment-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: all .15s ease;
}
.payment-method:hover {
  border-color: var(--accent-300);
  background: var(--accent-50);
}
.payment-method.selected {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
  background: var(--accent-50);
}
.payment-method .pm-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  font-size: 20px;
  flex-shrink: 0;
}
.payment-method .pm-label { font-weight: 700; font-size: 13px; color: var(--gray-800); }

.payment-note {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gray-700);
}

/* ---------- Ticket styles ---------- */
.ticket-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.ticket-list-item:last-child { border-bottom: none; }

/* ---------- Help page ---------- */
.help-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.help-step {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.help-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-100);
  color: var(--accent-700);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ---------- Profile ---------- */
.profile-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.app-footer {
  font-size: 12px;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}
.app-footer-inner {
  max-width: var(--content-max-w);
  margin: 0 auto;
  padding: 20px 32px;
}

/* ---------- Onboarding Banner ---------- */
.onboarding-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid var(--accent-200);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.onboarding-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}
.onboarding-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-500);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.onboarding-banner-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}
.onboarding-banner-text {
  font-size: 13px;
  color: var(--gray-600);
}

/* ---------- Dashboard Welcome Header ---------- */
.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dashboard-welcome-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.3px;
  margin: 0 0 2px;
}
.dashboard-welcome-sub {
  font-size: 13.5px;
  color: var(--gray-500);
  margin: 0;
}

/* ---------- Credit System Clarity ---------- */
.stat-card-credits .stat-sub {
  display: flex;
  align-items: center;
  gap: 6px;
}
.credit-usd-value {
  font-size: 12px;
  color: var(--accent-700);
  font-weight: 600;
}
.credit-tooltip {
  display: inline-flex;
  align-items: center;
  color: var(--gray-400);
  cursor: help;
  position: relative;
}
.header-wallet-chip {
  gap: 9px;
  min-width: 0;
  max-width: 196px;
  min-height: 38px;
  padding: 7px 13px 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(24, 231, 255, .38);
  background: linear-gradient(135deg, rgba(24, 231, 255, .96), rgba(49, 246, 160, .92));
  box-shadow: 0 10px 24px rgba(24, 231, 255, .16), inset 0 1px rgba(255,255,255,.34);
  color: #04111b;
}
.header-wallet-icon {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(4, 17, 27, .12);
  color: #04111b;
}
.header-wallet-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1;
}
.header-wallet-copy span {
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(4, 17, 27, .58);
}
.header-wallet-copy strong {
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #04111b;
  white-space: nowrap;
}
.credit-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #081022;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 11px;
  border: 1px solid rgba(24, 231, 255, .32);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(3, 6, 17, .45), 0 0 18px rgba(24, 231, 255, .16);
  white-space: nowrap;
  z-index: 1200;
  pointer-events: none;
}
.credit-tooltip:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #081022;
  z-index: 1200;
  pointer-events: none;
}

/* ---------- Products Header + Inline Search ---------- */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.products-header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  flex-shrink: 0;
}
.products-search-inline {
  position: relative;
  max-width: 320px;
  width: 100%;
}
.products-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}
.products-search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--gray-800);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
  font-family: var(--font-sans);
}
.products-search-input:focus {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.products-search-input::placeholder {
  color: var(--gray-400);
}

/* ---------- Product Card Enhancements ---------- */
.product-card-image-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding: 16px;
}
.product-card-image-wrapper .product-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform .3s ease;
}
.product-card-image-fallback {
  position: absolute;
  inset: 18px;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  color: #e5f0ff;
  border: 1px dashed rgba(24,231,255,.20);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 20%, rgba(24,231,255,.18), rgba(6,10,28,.72));
  opacity: 0;
  pointer-events: none;
}
.product-card-image-fallback span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(24,231,255,.22), rgba(124,92,255,.22));
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}
.product-card-image-fallback-title {
  max-width: 100%;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}
.product-card-image-wrapper.has-product-image .product-card-image-fallback {
  opacity: 0;
}
.product-card-image-wrapper.image-failed .product-card-image-fallback {
  opacity: 1;
}
.product-card-image-wrapper.image-failed .product-card-image {
  display: none;
}
.product-instant-delivery {
  z-index: 2;
}
.product-card:hover .product-card-image-wrapper .product-card-image {
  transform: scale(1.03);
}

.product-card-pin-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #f8d56b;
  background: rgba(248,213,107,.09);
  border: 1px solid rgba(248,213,107,.22);
}
.product-card-pin-badge::before {
  content: "★";
  font-size: 9px;
  line-height: 1;
}
.product-card.is-pinned {
  border-color: rgba(248,213,107,.34);
  box-shadow: 0 16px 42px rgba(248,213,107,.08);
}
.is-pinned-row {
  box-shadow: inset 3px 0 0 var(--cyber-amber, #f59e0b);
}
.product-pin-action.is-active,
.product-pin-action.is-active:hover {
  color: var(--cyber-amber, #f59e0b);
  border-color: rgba(248,213,107,.35);
  background: rgba(248,213,107,.12);
}
.product-pin-badge,
.product-detail-pin-badge,
.related-product-pin {
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-detail-pin-badge {
  left: 18px;
  right: auto;
}
.related-product-card {
  position: relative;
}
.related-product-card.is-pinned {
  border-color: rgba(248,213,107,.35);
}
.related-product-pin {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--cyber-amber, #b45309);
  background: rgba(248,213,107,.16);
  border: 1px solid rgba(248,213,107,.28);
  font-size: 10px;
  font-weight: 800;
}

.product-card-stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
}
.product-card-stock-badge.low-stock {
  color: #b45309;
}
.product-card-stock-badge.out-of-stock-badge {
  color: #dc2626;
}

.product-price-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.product-price-credits {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.product-price-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.3px;
}
.product-price-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
}
.product-price-usd {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}
.product-stock.low-stock-text {
  background: #fffbeb;
  color: #b45309;
}

/* ---------- Buy Now Button Variants ---------- */
.btn-buy {
  background: var(--accent-600);
  color: #fff;
  border-color: var(--accent-600);
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}
.btn-buy:hover {
  background: var(--accent-700);
  border-color: var(--accent-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,185,129,.25);
}
.btn-buy:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-buy-insufficient {
  background: var(--gray-100);
  color: var(--gray-600);
  border-color: var(--gray-300);
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
}
.btn-buy-insufficient:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-700);
}

.btn-disabled-stock {
  opacity: .5;
  cursor: not-allowed;
}

.btn-out-of-stock {
  background: var(--gray-100);
  color: var(--gray-400);
  border-color: var(--gray-200);
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: not-allowed;
  opacity: .7;
}

/* ---------- Purchase Confirm Loading State ---------- */
.btn-purchase-confirm {
  min-width: 160px;
}
.btn-purchase-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spinner {
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 16px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}
.trust-item svg {
  color: var(--accent-600);
  flex-shrink: 0;
}



/* ---------- Instant Delivery Label ---------- */
.product-instant-delivery {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(16,185,129,.95);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ---------- Products Header Enhanced ---------- */
.products-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.products-header-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 10px;
  border-radius: 999px;
}

/* ---------- Search KBD Hint ---------- */
.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  font-family: var(--font-sans);
  line-height: 1.6;
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}

/* ---------- Purchase Modal Enhanced ---------- */
.purchase-modal-product {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}
.purchase-modal-img {
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.purchase-modal-title {
  font-weight: 700;
  color: var(--gray-900);
}
.purchase-modal-price {
  font-size: 13px;
  color: var(--gray-500);
}
.purchase-trust-indicators {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  background: var(--accent-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-100);
}
.purchase-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-700);
}
.purchase-trust-item svg {
  flex-shrink: 0;
  color: var(--accent-600);
}

/* ---------- Card Entrance Animation ---------- */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card-animate-in {
  animation: cardFadeIn .4s ease forwards;
  opacity: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .pinned-products-panel {
    padding: 14px;
  }
  .pinned-products-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .pinned-products-grid {
    grid-template-columns: 1fr;
  }
  .pinned-product-card {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 102px;
  }

  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.active {
    display: block;
  }
  .sidebar-toggle {
    display: flex;
  }
  .main-content {
    margin-left: 0;
  }
  .content-header-inner {
    padding: 16px 20px;
  }
  .content-body {
    padding: 20px;
  }
  .app-footer-inner {
    padding: 16px 20px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .payment-methods-grid {
    grid-template-columns: 1fr 1fr;
  }
  .help-steps {
    grid-template-columns: 1fr;
  }
  .onboarding-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .dashboard-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .products-header {
    flex-direction: column;
    align-items: stretch;
  }
  .products-search-inline {
    max-width: 100%;
  }
  .trust-bar {
    gap: 16px;
    justify-content: flex-start;
  }
  .btn-buy, .btn-out-of-stock, .btn-buy-insufficient {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Product Sales Count ---------- */
.product-sales-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 10px;
  padding: 4px 0;
}
.product-sales-fire {
  font-size: 14px;
  line-height: 1;
}

/* ---------- Admin Panel ---------- */
.admin-stats-grid {
  margin-bottom: 28px;
}

.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-filters {
  margin-bottom: 20px;
}
.admin-filters-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .admin-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .admin-quick-actions { flex-direction: column; }
  .admin-filters-form { flex-direction: column; align-items: stretch; }
  .admin-filters-form select { max-width: 100% !important; }
}
.reseller-filters { margin-bottom: 22px; }
.reseller-stats-grid { margin-bottom: 18px; }
.reseller-filters-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(5, minmax(130px, 160px)) auto auto;
  gap: 10px;
  align-items: center;
}
.reseller-search-form { margin-bottom: 0; }
.reseller-filters-form .form-control { min-height: 44px; }
.reseller-audit-card .table { margin-bottom: 0; }
.table-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.table-sort-link span {
  color: var(--gray-500);
  font-size: 11px;
  letter-spacing: 0;
}
.table-sort-link:hover,
.table-sort-link.is-active {
  color: var(--accent-300);
}
.table-sort-link.is-active span { color: var(--accent-300); }
@media (max-width: 1100px) {
  .reseller-filters-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reseller-search-form { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .reseller-filters-form { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.text-muted { color: var(--gray-500) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--accent-600) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-mono { font-family: var(--font-mono); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }


/* ============================================================
   ENHANCED ADMIN PANEL
   ============================================================ */
.admin-stats-grid .stat-card {
  border-left: 3px solid transparent;
}
.admin-stats-grid .stat-card:nth-child(1) { border-left-color: var(--info); }
.admin-stats-grid .stat-card:nth-child(2) { border-left-color: var(--success); }
.admin-stats-grid .stat-card:nth-child(3) { border-left-color: var(--warning); }
.admin-stats-grid .stat-card:nth-child(4) { border-left-color: #7c3aed; }

.admin-quick-actions .btn {
  transition: all var(--duration-fast) var(--ease-out);
}
.admin-quick-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.admin-grid-2 .card {
  transition: box-shadow var(--duration-normal) var(--ease-out);
}
.admin-grid-2 .card:hover {
  box-shadow: var(--shadow-md);
}

/* ============================================================
   MICRO INTERACTIONS
   ============================================================ */

/* Button ripple effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.3) 10%, transparent 10%);
  transform: scale(10);
  opacity: 0;
  transition: transform .4s, opacity .6s;
}
.btn:active::after {
  transform: scale(0);
  opacity: 1;
  transition: 0s;
}

/* Smooth focus rings */
.btn:focus-visible,
.form-control:focus-visible,
.search-input:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
}

/* Table row hover transition */
.table tbody tr {
  transition: background var(--duration-fast) ease;
}

/* Loading skeleton shimmer */
.skeleton-shimmer {
  position: relative;
  overflow: hidden;
}
.skeleton-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Smooth page transitions */
.content-body {
  animation: fadeInUp .3s var(--ease-out);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   DARK MODE TOGGLE
   ============================================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-primary);
  background: var(--surface-primary);
  cursor: pointer;
  color: var(--text-tertiary);
  transition: all var(--duration-fast) ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--surface-tertiary);
  color: var(--text-primary);
  border-color: var(--gray-300);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-normal) var(--ease-spring);
}
.theme-toggle:hover svg {
  transform: rotate(15deg);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ============================================================
   DARK MODE THEME
   ============================================================ */
[data-theme="dark"] {
  --gray-50:  #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  --gray-950: #ffffff;

  --accent-50:  #022c22;
  --accent-100: #064e3b;
  --accent-200: #065f46;

  --danger-light: #450a0a;
  --warning-light: #451a03;
  --info-light: #1e3a5f;
  --success-light: #022c22;

  --surface-primary: #0f172a;
  --surface-secondary: #1e293b;
  --surface-tertiary: #334155;
  --border-primary: #334155;
  --border-secondary: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-quaternary: #64748b;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.4), 0 2px 4px -2px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.4), 0 4px 6px -4px rgba(0,0,0,.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.4), 0 8px 10px -6px rgba(0,0,0,.3);
}

[data-theme="dark"] body {
  background: #020617;
  color: var(--text-primary);
}

[data-theme="dark"] .sidebar {
  background: #020617;
  border-right-color: rgba(255,255,255,.06);
}

[data-theme="dark"] .content-header {
  background: var(--surface-primary);
  border-bottom-color: var(--border-primary);
}

[data-theme="dark"] .product-card,
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card {
  background: var(--surface-primary);
  border-color: var(--border-primary);
}

[data-theme="dark"] .table thead th {
  background: var(--surface-secondary);
  border-bottom-color: var(--border-primary);
  color: var(--text-tertiary);
}
[data-theme="dark"] .table tbody td {
  border-bottom-color: var(--border-secondary);
  color: var(--text-secondary);
}
[data-theme="dark"] .table tbody tr:hover {
  background: var(--surface-secondary);
}

[data-theme="dark"] .form-control {
  background: var(--surface-secondary);
  border-color: var(--border-primary);
  color: var(--text-primary);
}
[data-theme="dark"] .form-control:focus {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,.2);
}

[data-theme="dark"] .modal-content {
  background: var(--surface-primary);
  border-color: var(--border-primary);
}
[data-theme="dark"] .modal-header {
  border-bottom-color: var(--border-secondary);
}
[data-theme="dark"] .modal-footer {
  border-top-color: var(--border-secondary);
}
[data-theme="dark"] .modal-title {
  color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary {
  background: var(--surface-secondary);
  color: var(--text-secondary);
  border-color: var(--border-primary);
}
[data-theme="dark"] .btn-secondary:hover {
  background: var(--surface-tertiary);
  border-color: var(--gray-400);
}

[data-theme="dark"] .btn-ghost {
  color: var(--text-tertiary);
}
[data-theme="dark"] .btn-ghost:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .trust-bar {
  background: var(--surface-secondary);
  border-color: var(--border-primary);
}

[data-theme="dark"] .onboarding-banner {
  background: linear-gradient(135deg, #022c22, #064e3b);
  border-color: var(--accent-200);
}

[data-theme="dark"] .products-search-input,
[data-theme="dark"] .admin-search-form .search-input {
  background: var(--surface-secondary);
  border-color: var(--border-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .pagination .page-link {
  background: var(--surface-secondary);
  border-color: var(--border-primary);
  color: var(--text-secondary);
}

[data-theme="dark"] .empty-state h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .toast {
  background: var(--surface-secondary);
  box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .card-header {
  border-bottom-color: var(--border-secondary);
}
[data-theme="dark"] .card-header h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .alert-success {
  background: var(--success-light);
  border-color: var(--accent-200);
}
[data-theme="dark"] .alert-danger {
  background: var(--danger-light);
  border-color: #7f1d1d;
}

[data-theme="dark"] .payment-method {
  background: var(--surface-secondary);
  border-color: var(--border-primary);
}

[data-theme="dark"] .help-step {
  background: var(--surface-primary);
  border-color: var(--border-primary);
}

[data-theme="dark"] .profile-card {
  background: var(--surface-primary);
  border-color: var(--border-primary);
}

[data-theme="dark"] .app-footer {
  border-top-color: var(--border-primary);
  color: var(--text-quaternary);
}

[data-theme="dark"] .search-kbd {
  background: var(--surface-tertiary);
  border-color: var(--border-primary);
  color: var(--text-quaternary);
}

[data-theme="dark"] .purchase-modal-product {
  background: var(--surface-secondary);
  border-color: var(--border-primary);
}
[data-theme="dark"] .purchase-trust-indicators {
  background: var(--success-light);
  border-color: var(--accent-200);
}

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .dashboard-welcome {
  background: var(--surface-secondary);
  border-color: var(--border-primary);
}

[data-theme="dark"] .product-card-desc {
  color: var(--text-tertiary);
}

[data-theme="dark"] .stat-label {
  color: var(--text-tertiary);
}
[data-theme="dark"] .stat-sub {
  color: var(--text-quaternary);
}

/* ============================================================
   RESPONSIVE — DARK MODE
   ============================================================ */
@media (max-width: 768px) {
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
}

/* ============================================================
   NEON CYBER V3 — Production reseller OS theme
   ============================================================ */
[data-theme="dark"] {
  --cyber-bg: #070a16;
  --cyber-bg-deep: #030611;
  --cyber-panel: rgba(17, 24, 47, .88);
  --cyber-panel-strong: #0e1430;
  --cyber-panel-soft: rgba(12, 18, 38, .72);
  --cyber-line: rgba(124, 92, 255, .26);
  --cyber-line-cyan: rgba(24, 231, 255, .34);
  --cyber-text: #f8fafc;
  --cyber-muted: #98a6c7;
  --cyber-dim: #667394;
  --cyber-cyan: #18e7ff;
  --cyber-violet: #7c5cff;
  --cyber-green: #31f6a0;
  --cyber-amber: #f8d56b;
  --cyber-pink: #ff5fd7;

  --accent-50: rgba(24, 231, 255, .10);
  --accent-100: rgba(24, 231, 255, .16);
  --accent-200: rgba(24, 231, 255, .28);
  --accent-300: #67f1ff;
  --accent-400: var(--cyber-cyan);
  --accent-500: var(--cyber-cyan);
  --accent-600: #13cbe3;
  --accent-700: #08a9c4;
  --success: var(--cyber-green);
  --warning: var(--cyber-amber);
  --info: var(--cyber-violet);
  --surface-primary: var(--cyber-panel);
  --surface-secondary: rgba(12, 18, 38, .92);
  --surface-tertiary: rgba(21, 29, 58, .95);
  --border-primary: var(--cyber-line);
  --border-secondary: rgba(151, 164, 204, .12);
  --text-primary: var(--cyber-text);
  --text-secondary: #c7d2fe;
  --text-tertiary: var(--cyber-muted);
  --text-quaternary: var(--cyber-dim);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .20);
  --shadow-md: 0 18px 48px rgba(3, 6, 17, .32);
  --shadow-lg: 0 24px 70px rgba(3, 6, 17, .45), 0 0 40px rgba(24, 231, 255, .05);
  --shadow-xl: 0 30px 90px rgba(3, 6, 17, .58), 0 0 54px rgba(124, 92, 255, .12);
}

html[data-theme="dark"] body {
  min-height: 100%;
  color: var(--cyber-text);
  background:
    radial-gradient(900px 540px at 86% 4%, rgba(124, 92, 255, .30), transparent 62%),
    radial-gradient(620px 420px at 4% 96%, rgba(24, 231, 255, .16), transparent 58%),
    linear-gradient(135deg, var(--cyber-bg-deep), var(--cyber-bg) 48%, #130b2c);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 78%);
  z-index: -1;
}

.app-layout { min-height: 100vh; }
.sidebar {
  width: 284px;
  margin: 26px 0 26px 26px;
  height: calc(100vh - 52px);
  bottom: auto;
  border: 1px solid var(--cyber-line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 27, 55, .96), rgba(12, 18, 38, .86));
  box-shadow: var(--shadow-xl), inset 0 1px rgba(255,255,255,.04);
  overflow: hidden;
}
.sidebar-brand {
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(151, 164, 204, .10);
}
.sidebar-brand img {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-violet));
  box-shadow: 0 0 26px rgba(24, 231, 255, .30);
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { color: var(--cyber-text); font-size: 16px; line-height: 1.05; letter-spacing: -.03em; }
.brand-copy small { color: var(--cyber-muted); font-size: 12px; }
.sidebar-section-title { color: var(--cyber-dim); }
.sidebar-link {
  margin-bottom: 6px;
  padding: 12px 14px;
  border: 1px solid transparent;
  color: #a8b4d4;
  font-weight: 750;
}
.sidebar-link:hover {
  background: rgba(124, 92, 255, .13);
  border-color: rgba(124, 92, 255, .24);
  color: var(--cyber-text);
}
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(24, 231, 255, .16), rgba(124, 92, 255, .22));
  border-color: rgba(124, 92, 255, .52);
  color: var(--cyber-text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 22px rgba(124, 92, 255, .13);
}
.sidebar-link.active::before { display: none; }
.sidebar-link.active .nav-icon { color: var(--cyber-cyan); }
.sidebar-link .badge-count { background: var(--cyber-pink); }
.sidebar-footer { border-top-color: rgba(151, 164, 204, .10); }
.sidebar-user { color: var(--cyber-muted); }
.sidebar-user:hover { background: rgba(124, 92, 255, .12); color: var(--cyber-text); }
.sidebar-user-avatar { background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-violet)); box-shadow: 0 0 20px rgba(24, 231, 255, .20); }
.sidebar-user-name { color: var(--cyber-text); }

.main-content {
  margin-left: 310px;
  min-height: 100vh;
}
.content-header {
  margin: 26px 26px 0;
  border: 1px solid var(--cyber-line);
  border-radius: 28px;
  background: rgba(17, 24, 47, .74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}
.content-header-inner {
  max-width: 1480px;
  padding: 18px 24px;
}
.content-header h1 {
  color: var(--cyber-text);
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 850;
  letter-spacing: -.05em;
}
.content-header .breadcrumb { color: var(--cyber-muted); font-size: 13px; }
.content-header-actions { gap: 10px; }
.content-header-actions .header-wallet-chip {
  background: linear-gradient(135deg, rgba(24, 231, 255, .96), rgba(49, 246, 160, .92)) !important;
  border-color: rgba(255,255,255,.18) !important;
  box-shadow: 0 10px 24px rgba(24, 231, 255, .16), 0 0 24px rgba(24, 231, 255, .14);
}
.content-body {
  max-width: 1480px;
  padding: 26px;
}
.app-footer { border-top: 0; color: var(--cyber-dim); }
.app-footer a { color: var(--cyber-cyan); }

.card,
.stat-card,
.product-card,
.table-wrapper,
.admin-filters,
.dashboard-welcome,
.trust-bar,
.empty-state,
.modal-content {
  background: var(--cyber-panel);
  border: 1px solid var(--cyber-line);
  box-shadow: var(--shadow-sm), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(16px);
}
.card,
.table-wrapper,
.empty-state { border-radius: var(--radius-xl); }
.card-header {
  border-bottom-color: rgba(151, 164, 204, .12);
  background: rgba(6, 10, 28, .22);
}
.card-header h3,
.empty-state h3,
.dashboard-welcome-title,
.products-header-title,
.modal-title { color: var(--cyber-text); }
.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.dashboard-welcome::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -130px;
  background: radial-gradient(circle, rgba(24,231,255,.18), transparent 62%);
}
.dashboard-welcome-title { font-size: clamp(26px, 3vw, 44px); font-weight: 900; letter-spacing: -.06em; }
.dashboard-welcome-sub { color: var(--cyber-muted); max-width: 760px; font-size: 15px; }
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.trust-item {
  justify-content: center;
  color: #c7d2fe;
  background: rgba(6, 10, 28, .42);
  border: 1px solid rgba(151, 164, 204, .10);
  border-radius: 14px;
  padding: 10px 12px;
}
.trust-item svg { color: var(--cyber-cyan); }
.stats-grid { gap: 16px; }
.stat-card {
  min-height: 130px;
  border-radius: 24px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyber-cyan);
  box-shadow: 0 0 18px var(--cyber-cyan);
}
.stat-card:nth-child(2)::after { background: var(--cyber-green); box-shadow: 0 0 18px var(--cyber-green); }
.stat-card:nth-child(3)::after { background: var(--cyber-violet); box-shadow: 0 0 18px var(--cyber-violet); }
.stat-card:nth-child(4)::after { background: var(--cyber-amber); box-shadow: 0 0 18px var(--cyber-amber); }
.stat-icon { display: none; }
.stat-label { color: var(--cyber-muted); font-weight: 800; letter-spacing: .08em; }
.stat-value { color: var(--cyber-text); font-size: 34px; font-weight: 900; letter-spacing: -.06em; }
.stat-value-recent { font-size: 16px; letter-spacing: normal; word-spacing: 2px; white-space: nowrap; }
.stat-sub { color: var(--cyber-dim); }
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 16px;
}
.products-header-left { display: flex; align-items: center; gap: 12px; }
.products-header-title { font-size: 28px; font-weight: 900; letter-spacing: -.04em; }
.products-header-count,
.search-kbd,
.badge-pill,
.product-stock {
  border: 1px solid rgba(24, 231, 255, .18);
  background: rgba(24, 231, 255, .10);
  color: var(--cyber-cyan);
}
.products-search-inline { position: relative; flex: 1; max-width: 560px; }
.products-search-input,
.admin-search-form .search-input,
.form-control,
.search-modal .search-input {
  background: rgba(6, 10, 28, .72);
  border-color: rgba(151, 164, 204, .16);
  color: var(--cyber-text);
  border-radius: 999px;
}
textarea.form-control { border-radius: 18px; }
input[type="number"].form-control {
  appearance: textfield;
  -moz-appearance: textfield;
}
input[type="number"].form-control::-webkit-outer-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.products-search-input:focus,
.admin-search-form .search-input:focus,
.form-control:focus,
.search-modal .search-input:focus {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 0 4px rgba(24, 231, 255, .12), 0 0 22px rgba(24, 231, 255, .10);
}
.form-label { color: #c7d2fe; }
.form-hint { color: var(--cyber-dim); }
.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.product-card {
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 24, 47, .92), rgba(8, 12, 29, .96));
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyber-line-cyan);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(24,231,255,.08);
}
.product-card-image-wrapper {
  margin: 16px 16px 0;
  height: 176px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 45%, rgba(24, 231, 255, .32), transparent 18%),
    linear-gradient(135deg, rgba(24, 231, 255, .13), rgba(124, 92, 255, .18));
  border: 1px solid rgba(151, 164, 204, .14);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.product-card-image-wrapper .product-card-image,
.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.product-card-title { color: var(--cyber-text); font-size: 18px; }
.product-card-desc { color: var(--cyber-muted); }
.product-price-amount,
.product-price,
.product-price-credits { color: var(--cyber-cyan); font-weight: 900; }
.product-price-usd { color: var(--cyber-dim); }
.product-stock.in-stock,
.badge-green { color: var(--cyber-green); background: rgba(49, 246, 160, .10); border-color: rgba(49, 246, 160, .18); }
.badge-blue { color: var(--cyber-cyan); background: rgba(24,231,255,.10); border-color: rgba(24,231,255,.18); }
.badge-amber { color: var(--cyber-amber); background: rgba(248,213,107,.10); border-color: rgba(248,213,107,.18); }
.badge-red,
.product-stock.out-of-stock { color: #ff8fa3; background: rgba(255, 95, 135, .10); border-color: rgba(255, 95, 135, .20); }
.product-card-favorite button {
  background: rgba(6, 10, 28, .72);
  border: 1px solid rgba(151, 164, 204, .16);
  color: var(--cyber-amber);
}
.product-instant-delivery,
.product-card-stock-badge {
  border: 1px solid rgba(24, 231, 255, .18);
  background: rgba(6, 10, 28, .72);
  color: var(--cyber-cyan);
  backdrop-filter: blur(10px);
}
.btn { border-radius: 999px; font-weight: 850; }
.btn-primary,
.btn-buy,
.btn-purchase-confirm {
  background: linear-gradient(135deg, var(--cyber-violet), #9b6cff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 30px rgba(124, 92, 255, .26);
}
.btn-primary:hover,
.btn-buy:hover,
.btn-purchase-confirm:hover {
  background: linear-gradient(135deg, #8d72ff, #b278ff);
  color: #fff;
  box-shadow: 0 16px 38px rgba(124, 92, 255, .34);
}
.btn-secondary,
.btn-ghost {
  background: rgba(12, 18, 38, .72);
  border-color: rgba(151, 164, 204, .18);
  color: #c7d2fe;
}
.btn-secondary:hover,
.btn-ghost:hover {
  background: rgba(24, 231, 255, .10);
  border-color: rgba(24, 231, 255, .22);
  color: var(--cyber-text);
}
.btn-danger { background: rgba(255,95,135,.08); border-color: rgba(255,95,135,.22); color: #ff8fa3; }
.btn-buy-insufficient,
.btn-out-of-stock {
  background: rgba(151, 164, 204, .08);
  border-color: rgba(151, 164, 204, .16);
  color: var(--cyber-muted);
}
.table-wrapper {
  overflow-x: auto;
  border-color: rgba(124, 92, 255, .28);
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(124, 92, 255, .12), transparent 60%),
    linear-gradient(180deg, rgba(17, 24, 47, .88), rgba(8, 12, 29, .94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .04);
}
.table {
  --bs-table-bg: transparent;
  --bs-table-color: #e2e8f0;
  --bs-table-border-color: rgba(151, 164, 204, .10);
  --bs-table-hover-bg: rgba(24, 231, 255, .07);
  color: var(--cyber-muted);
  margin-bottom: 0;
  background: transparent;
}
.table > :not(caption) > * > * {
  background-color: transparent !important;
  border-bottom-color: rgba(151, 164, 204, .10) !important;
  box-shadow: none !important;
}
.table thead th {
  background: rgba(6, 10, 28, .84) !important;
  border-bottom-color: rgba(151, 164, 204, .14) !important;
  color: var(--cyber-muted) !important;
}
.table tbody tr { background: rgba(17, 24, 47, .42); }
.table tbody tr:nth-child(even) { background: rgba(17, 24, 47, .32); }
.table tbody tr > td {
  background: rgba(17, 24, 47, .42) !important;
  color: #e2e8f0 !important;
  border-bottom: 1px solid rgba(151, 164, 204, .10) !important;
}
.table tbody tr:nth-child(even) > td { background: rgba(17, 24, 47, .32) !important; }
.table tbody td a:not(.btn),
.table .text-mono { color: #c7d2fe !important; }
.table tbody td[style*="max-width"] {
  max-width: 280px !important;
  color: #dbeafe !important;
  text-decoration: none !important;
}
.table tbody tr:hover,
.table tbody tr:hover > td { background: rgba(24, 231, 255, .08) !important; }
.table-wrapper::-webkit-scrollbar { height: 10px; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.pagination .page-link {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(151, 164, 204, .18) !important;
  border-radius: 12px !important;
  background: rgba(6, 10, 28, .64) !important;
  color: #c7d2fe !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.pagination .page-link:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 231, 255, .46) !important;
  background: rgba(24, 231, 255, .10) !important;
  color: var(--cyber-text) !important;
  box-shadow: 0 14px 34px rgba(24, 231, 255, .14), inset 0 1px rgba(255, 255, 255, .06);
}
.pagination .page-item.active .page-link {
  border-color: transparent !important;
  background: linear-gradient(135deg, #18e7ff, #31f6a0) !important;
  color: #04111b !important;
  box-shadow: 0 14px 34px rgba(24, 231, 255, .22);
}
.pagination .page-item.disabled .page-link {
  opacity: .48;
  color: var(--cyber-muted) !important;
  background: rgba(6, 10, 28, .38) !important;
  box-shadow: none;
}
.modal {
  z-index: 2050;
}
.modal-content {
  color: var(--cyber-text);
  border-radius: 28px;
  background:
    radial-gradient(520px 280px at 100% 0%, rgba(124, 92, 255, .18), transparent 60%),
    linear-gradient(180deg, rgba(17, 24, 47, .98), rgba(10, 14, 34, .98));
}
.modal-header,
.modal-footer { border-color: rgba(151, 164, 204, .12); }
.modal-backdrop { z-index: 2040; }
.modal-backdrop.show { opacity: .62; }
.btn-close { filter: invert(1) grayscale(1) brightness(1.8); }
.purchase-modal-product,
.purchase-trust-indicators,
.payment-note,
.help-step,
.payment-method,
.profile-card {
  background: rgba(6, 10, 28, .54) !important;
  border-color: rgba(151, 164, 204, .14) !important;
  color: var(--cyber-muted);
}
.profile-sections {
  display: grid;
  gap: 20px;
}
.profile-sections > .card {
  padding: 24px !important;
  overflow: hidden;
}
.profile-sections .hidden { display: none !important; }
.jetstream-section {
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
}
.jetstream-section-title h3 {
  margin: 0;
  color: var(--cyber-text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.04em;
}
.jetstream-section-title p {
  margin: 8px 0 0;
  color: var(--cyber-muted);
  font-size: 13px;
  line-height: 1.6;
}
.jetstream-section-content { min-width: 0; }
.jetstream-form-panel,
.jetstream-action-panel {
  border: 1px solid rgba(151, 164, 204, .14);
  border-radius: 24px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(124, 92, 255, .10), transparent 62%),
    rgba(6, 10, 28, .46);
  padding: 22px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
  color: var(--cyber-muted);
}
.jetstream-form-panel.has-actions { border-radius: 24px 24px 0 0; }
.jetstream-form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.jetstream-form-grid > div,
.jetstream-form-grid .col-span-6 { grid-column: 1 / -1; }
.jetstream-form-grid .sm\:col-span-4 { grid-column: span 4; }
.jetstream-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 22px;
  border: 1px solid rgba(151, 164, 204, .14);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: rgba(6, 10, 28, .34);
}
.jetstream-section .form-label {
  color: var(--cyber-text);
  font-weight: 800;
  margin-bottom: 8px;
}
.jetstream-section .form-control {
  min-height: 48px;
  max-width: 540px;
  border-color: rgba(151, 164, 204, .18);
  border-radius: 14px;
  background: rgba(6, 10, 28, .72);
  color: var(--cyber-text);
}
.jetstream-section .form-control:focus {
  border-color: rgba(24, 231, 255, .62);
  box-shadow: 0 0 0 4px rgba(24, 231, 255, .10), 0 0 26px rgba(24, 231, 255, .10);
}
.jetstream-section .form-error { color: #ffb4e9; }
.profile-action-message { color: var(--cyber-green); font-weight: 800; }
.jetstream-action-panel h3,
.jetstream-action-panel .text-lg { color: var(--cyber-text) !important; }
.jetstream-action-panel p,
.jetstream-action-panel .text-sm,
.jetstream-action-panel .text-xs,
.jetstream-action-panel .text-gray-600,
.jetstream-action-panel .text-gray-500 { color: var(--cyber-muted) !important; }
.jetstream-action-panel .text-green-500 { color: var(--cyber-green) !important; }
.jetstream-action-panel .max-w-xl { max-width: 900px; }
.profile-qr-card {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(24, 231, 255, .16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .26), 0 0 24px rgba(24, 231, 255, .08);
}
.profile-qr-card svg {
  display: block;
  width: min(220px, calc(100vw - 96px)) !important;
  height: auto !important;
}
.profile-code-input {
  width: min(540px, 100%) !important;
  max-width: 540px !important;
}
.profile-recovery-codes {
  max-width: 680px;
  border: 1px solid rgba(151, 164, 204, .16);
  background: rgba(6, 10, 28, .72);
  color: var(--cyber-text);
}
.profile-two-factor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.profile-two-factor-actions .btn {
  min-width: 108px;
  justify-content: center;
}
.jetstream-action-panel p { overflow-wrap: anywhere; }
.jetstream-action-panel .btn-primary {
  background: linear-gradient(135deg, #18e7ff, #31f6a0) !important;
  border-color: transparent !important;
  color: #04111b !important;
}
.jetstream-action-panel .btn-secondary {
  background: rgba(17, 24, 47, .88) !important;
  border-color: rgba(151, 164, 204, .20) !important;
  color: var(--cyber-text) !important;
}
.jetstream-action-panel .btn-secondary:hover {
  border-color: rgba(24, 231, 255, .42) !important;
  background: rgba(24, 231, 255, .10) !important;
}
.jetstream-modal {
  position: fixed !important;
  inset: 0 !important;
  overflow-y: auto !important;
  padding: 24px 16px !important;
  z-index: 2070 !important;
}
.jetstream-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
}
.jetstream-modal-backdrop-surface {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(2, 6, 23, .76) !important;
  opacity: 1 !important;
  backdrop-filter: blur(4px);
}
.jetstream-modal-panel {
  position: relative !important;
  z-index: 1 !important;
  width: min(100%, 42rem) !important;
  max-width: calc(100vw - 32px) !important;
  margin: clamp(36px, 10vh, 96px) auto !important;
  border: 1px solid rgba(151, 164, 204, .16) !important;
  border-radius: 28px !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .04) !important;
}
.jetstream-modal-panel.sm\:max-w-sm { width: min(100%, 24rem) !important; }
.jetstream-modal-panel.sm\:max-w-md { width: min(100%, 28rem) !important; }
.jetstream-modal-panel.sm\:max-w-lg { width: min(100%, 32rem) !important; }
.jetstream-modal-panel.sm\:max-w-xl { width: min(100%, 36rem) !important; }
.jetstream-modal-panel.sm\:max-w-2xl { width: min(100%, 42rem) !important; }
.jetstream-modal-body {
  padding: 24px !important;
  color: var(--cyber-text) !important;
}
.jetstream-modal-title {
  color: var(--cyber-text) !important;
  font-size: 20px;
  font-weight: 900 !important;
  letter-spacing: -.03em;
}
.jetstream-modal-copy {
  color: var(--cyber-muted) !important;
  line-height: 1.65;
}
.jetstream-modal-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  padding: 16px 24px !important;
  border-top: 1px solid rgba(151, 164, 204, .14) !important;
  background: rgba(6, 10, 28, .46) !important;
}
.jetstream-modal .confirm-password-input {
  width: min(360px, 100%) !important;
  max-width: 360px !important;
}
.jetstream-modal .btn-secondary {
  background: rgba(17, 24, 47, .88) !important;
  border-color: rgba(151, 164, 204, .22) !important;
  color: var(--cyber-text) !important;
}
.jetstream-modal .btn-primary {
  background: linear-gradient(135deg, #18e7ff, #31f6a0) !important;
  border-color: transparent !important;
  color: #04111b !important;
}
.jetstream-modal .bg-white,
.jetstream-modal .bg-gray-100 {
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(124, 92, 255, .12), transparent 62%),
    linear-gradient(180deg, rgba(17, 24, 47, .98), rgba(10, 14, 34, .98)) !important;
  color: var(--cyber-text);
}
.jetstream-modal .bg-gray-500 { background: #020617 !important; }
.jetstream-modal .text-gray-900 { color: var(--cyber-text) !important; }
.jetstream-modal .text-gray-600 { color: var(--cyber-muted) !important; }
@media (max-width: 900px) {
  .jetstream-section { grid-template-columns: 1fr; }
  .jetstream-form-grid .sm\:col-span-4 { grid-column: 1 / -1; }
}
.purchase-trust-indicators { color: var(--cyber-green); }
.purchase-modal-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: min(760px, calc(100vw - 32px));
}
.purchase-modal .modal-content {
  overflow: hidden;
}
.purchase-modal .modal-body {
  padding: 22px 24px;
}
.purchase-modal .purchase-grid {
  grid-template-columns: minmax(0, .82fr) minmax(260px, 1fr);
  align-items: stretch;
}
.purchase-modal-product {
  align-items: center;
  min-width: 0;
}
.purchase-modal-img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 8px;
  background: rgba(24, 231, 255, .08);
  border: 1px solid rgba(24, 231, 255, .14);
}
.purchase-modal-title {
  color: var(--cyber-text);
  line-height: 1.25;
}
.purchase-summary-card {
  border: 1px solid rgba(151, 164, 204, .14);
  border-radius: 20px;
  background: rgba(6, 10, 28, .50);
  padding: 16px;
  display: grid;
  gap: 10px;
}
.purchase-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--cyber-muted);
  font-size: 13px;
}
.purchase-summary-row strong { color: var(--cyber-text); }
.purchase-summary-row.total strong { color: var(--cyber-cyan); font-size: 22px; }
.purchase-safe-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(49, 246, 160, .22);
  background: rgba(49, 246, 160, .08);
  color: var(--cyber-green);
  font-weight: 800;
  font-size: 12px;
}
.admin-filters {
  padding: 14px;
  border-radius: 24px;
}
.admin-quick-actions .btn { padding-inline: 18px; }
.ticket-list-item { border-bottom-color: rgba(151,164,204,.12); }
.onboarding-banner {
  border-radius: 24px;
  border: 1px solid rgba(248, 213, 107, .22);
  background: linear-gradient(135deg, rgba(248, 213, 107, .13), rgba(124, 92, 255, .10));
  color: var(--cyber-text);
}
.onboarding-banner-text { color: var(--cyber-muted); }
.theme-toggle {
  background: rgba(12, 18, 38, .72);
  border-color: rgba(151, 164, 204, .18);
  color: var(--cyber-cyan);
}
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 960;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid var(--cyber-line);
  background: rgba(10, 14, 34, .92);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
}
.mobile-bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 16px;
  color: var(--cyber-muted);
  font-weight: 850;
  font-size: 12px;
  text-decoration: none;
}
.mobile-bottom-nav a.active {
  color: var(--cyber-text);
  background: linear-gradient(135deg, rgba(24,231,255,.16), rgba(124,92,255,.22));
}
.whatsapp-fab {
  background: linear-gradient(135deg, var(--cyber-green), #0ad87f);
  box-shadow: 0 0 34px rgba(49, 246, 160, .30);
}

@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .sidebar {
    margin: 0;
    height: 100vh;
    border-radius: 0 28px 28px 0;
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: inline-flex; background: rgba(12,18,38,.72); border-color: rgba(151,164,204,.18); color: var(--cyber-text); }
  .content-header { margin: 14px 14px 0; }
  .content-body { padding: 18px 14px 96px; }
  .sidebar,
  html[data-theme="dark"] .sidebar { z-index: 1320; }
  .sidebar-overlay,
  html[data-theme="dark"] .sidebar-overlay { z-index: 1310; }
  body.sidebar-is-open { overflow: hidden; touch-action: none; }
  .sidebar-overlay.active { display: block; background: rgba(3, 6, 17, .70); backdrop-filter: blur(3px); }
  .mobile-bottom-nav { display: flex; }
  .whatsapp-fab { bottom: 92px; right: 18px; }
}
@media (max-width: 768px) {
  .content-header-inner { align-items: flex-start; gap: 14px; padding: 16px; }
  .content-header-actions { width: 100%; flex-wrap: wrap; }
  .content-header-actions .header-wallet-chip { flex: 0 0 auto; }
  .dashboard-welcome { align-items: flex-start; flex-direction: column; }
  .trust-bar,
  .stats-grid,
  .grid-2,
  .admin-grid-2 { grid-template-columns: 1fr; }
  .products-header { flex-direction: column; align-items: stretch; }
  .products-search-inline { max-width: none; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 108px 1fr; gap: 0; min-height: 150px; }
  .product-card-image-wrapper { margin: 16px 0 16px 16px; height: auto; min-height: 118px; }
  .product-card-body { padding: 16px; }
  .product-card-favorite { top: 10px; right: 10px; }
  .table-wrapper { border-radius: 20px; }
  .toast-container { left: 14px; right: 14px; bottom: 88px; }
  .toast { max-width: none; }
}
@media (max-width: 520px) {
  .content-header h1 { font-size: 22px; }
  .dashboard-welcome-title { font-size: 30px; }
  .stat-value { font-size: 28px; }
  .product-card { grid-template-columns: 92px 1fr; }
  .product-card-image-wrapper { min-height: 104px; border-radius: 18px; }
  .product-card-desc,
  .product-price-usd,
  .product-sales-count { display: none; }
  .btn-buy,
  .btn-buy-insufficient,
  .btn-out-of-stock { padding: 8px 12px; font-size: 12px; }
}

.insufficient-credits-body {
  text-align: center;
  padding: 32px 28px;
}
.insufficient-credits-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 999px;
  color: var(--cyber-pink);
  background: rgba(255, 95, 215, .10);
  border: 1px solid rgba(255, 95, 215, .22);
  box-shadow: 0 0 24px rgba(255, 95, 215, .16);
}
.insufficient-credits-body p {
  color: var(--cyber-text);
  font-weight: 800;
  margin-bottom: 8px;
}
.insufficient-credits-body small {
  color: var(--cyber-muted);
}

/* Neon Cyber follow-up hardening: override legacy dark-mode selectors. */
html[data-theme="dark"] body {
  min-height: 100%;
  color: var(--cyber-text);
  background:
    radial-gradient(900px 540px at 86% 4%, rgba(124, 92, 255, .30), transparent 62%),
    radial-gradient(620px 420px at 4% 96%, rgba(24, 231, 255, .16), transparent 58%),
    linear-gradient(135deg, var(--cyber-bg-deep), var(--cyber-bg) 48%, #130b2c);
}
html[data-theme="dark"] .sidebar {
  top: 0;
  left: 0;
  width: 284px;
  margin: 26px 0 26px 26px;
  height: calc(100vh - 52px);
  border: 1px solid var(--cyber-line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 27, 55, .96), rgba(12, 18, 38, .86));
  box-shadow: var(--shadow-xl), inset 0 1px rgba(255,255,255,.04);
  overflow: hidden;
}
html[data-theme="dark"] .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(151, 164, 204, .10);
}
html[data-theme="dark"] .sidebar-brand .brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
html[data-theme="dark"] .sidebar-brand .brand-copy strong {
  color: var(--cyber-text);
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: -.03em;
  white-space: nowrap;
}
html[data-theme="dark"] .sidebar-brand .brand-copy small {
  color: var(--cyber-muted);
  font-size: 12px;
  line-height: 1.2;
}
html[data-theme="dark"] .main-content { margin-left: 310px; }
html[data-theme="dark"] .content-header {
  margin: 26px 26px 0;
  border: 1px solid var(--cyber-line);
  border-radius: 28px;
  background: rgba(17, 24, 47, .74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}
html[data-theme="dark"] .dashboard-welcome,
html[data-theme="dark"] .trust-bar,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .table-wrapper,
html[data-theme="dark"] .modal-content {
  background: var(--cyber-panel);
  border-color: var(--cyber-line);
  box-shadow: var(--shadow-sm), inset 0 1px rgba(255,255,255,.035);
}
html[data-theme="dark"] .product-card {
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 24, 47, .92), rgba(8, 12, 29, .96));
}
html[data-theme="dark"] .product-card-image-wrapper {
  margin: 16px 16px 0;
  height: 176px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 45%, rgba(24, 231, 255, .32), transparent 18%),
    linear-gradient(135deg, rgba(24, 231, 255, .13), rgba(124, 92, 255, .18));
  border: 1px solid rgba(151, 164, 204, .14);
}
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-buy,
html[data-theme="dark"] .btn-purchase-confirm {
  background: linear-gradient(135deg, var(--cyber-violet), #9b6cff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 30px rgba(124, 92, 255, .26);
}
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-buy:hover,
html[data-theme="dark"] .btn-purchase-confirm:hover {
  background: linear-gradient(135deg, #8d72ff, #b278ff);
  color: #fff;
}
@media (max-width: 1024px) {
  html[data-theme="dark"] .sidebar {
    margin: 0;
    height: 100vh;
    border-radius: 0 28px 28px 0;
    transform: translateX(-100%);
  }
  html[data-theme="dark"] .sidebar.open { transform: translateX(0); }
  html[data-theme="dark"] .main-content { margin-left: 0; }
  html[data-theme="dark"] .content-header { margin: 14px 14px 0; }
}

/* Neon Cyber visual polish pass: tighter desktop rhythm and clearer inventory cards. */
html[data-theme="dark"] .content-header { margin-top: 18px; }
html[data-theme="dark"] .content-header-inner { padding: 14px 20px; }
html[data-theme="dark"] .content-header h1 { font-size: clamp(22px, 1.8vw, 30px); }
html[data-theme="dark"] .content-body { padding-top: 18px; }
html[data-theme="dark"] .dashboard-welcome {
  padding: 20px 24px;
  border-radius: 24px;
  margin-bottom: 18px;
}
html[data-theme="dark"] .dashboard-welcome-title {
  font-size: clamp(30px, 2.45vw, 42px);
  letter-spacing: -.055em;
}
html[data-theme="dark"] .dashboard-welcome-sub {
  max-width: 820px;
  line-height: 1.55;
}
html[data-theme="dark"] .trust-bar {
  padding: 10px;
  margin-bottom: 18px;
}
html[data-theme="dark"] .trust-item { padding: 9px 12px; }
html[data-theme="dark"] .stats-grid { gap: 16px; }
html[data-theme="dark"] .stat-card {
  min-height: 112px;
  padding: 18px 20px;
  border-radius: 22px;
}
html[data-theme="dark"] .stat-value { font-size: 30px; }
html[data-theme="dark"] .products-header {
  margin: 18px 0 14px;
  align-items: center;
}
html[data-theme="dark"] .products-header-title { font-size: 26px; }
html[data-theme="dark"] .products-search-inline { max-width: 520px; }
html[data-theme="dark"] .pinned-products-panel {
  border-color: rgba(248, 213, 107, .14);
  background: linear-gradient(135deg, rgba(248, 213, 107, .07), rgba(124, 92, 255, .08));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}
html[data-theme="dark"] .pinned-products-heading h3,
html[data-theme="dark"] .pinned-product-body strong {
  color: var(--text-primary);
}
html[data-theme="dark"] .pinned-product-card {
  border-color: rgba(248, 213, 107, .13);
  background: rgba(10, 16, 34, .72);
}
html[data-theme="dark"] .pinned-product-card:hover {
  border-color: rgba(248, 213, 107, .28);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .26);
}
html[data-theme="dark"] .pinned-product-image {
  background: rgba(226, 232, 240, .08);
}
html[data-theme="dark"] .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
html[data-theme="dark"] .product-card {
  border-radius: 24px;
  min-height: 0;
}
html[data-theme="dark"] .product-card-image-wrapper {
  height: 150px;
  margin: 16px 16px 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 46%, rgba(24, 231, 255, .30), transparent 21%),
    linear-gradient(135deg, rgba(229, 240, 255, .96), rgba(196, 220, 255, .92));
  border-color: rgba(24, 231, 255, .22);
}
html[data-theme="dark"] .product-card-image-wrapper .product-card-image,
html[data-theme="dark"] .product-card-image {
  padding: 12px;
  filter: drop-shadow(0 8px 16px rgba(3, 6, 17, .22));
}
html[data-theme="dark"] .product-card-body { padding: 16px 18px 18px; }
html[data-theme="dark"] .product-card-title {
  font-size: 16px;
  line-height: 1.22;
  margin-bottom: 8px;
}
html[data-theme="dark"] .product-card-desc {
  font-size: 13px;
  line-height: 1.45;
  min-height: 38px;
}
html[data-theme="dark"] .btn-buy,
html[data-theme="dark"] .btn-buy-insufficient,
html[data-theme="dark"] .btn-out-of-stock { padding-block: 11px; }
@media (max-width: 1024px) {
  html[data-theme="dark"] .content-header { margin: 14px 14px 0; }
}
@media (max-width: 768px) {
  html[data-theme="dark"] .dashboard-welcome-title { font-size: 28px; }
  html[data-theme="dark"] .product-card-image-wrapper {
    height: auto;
    min-height: 118px;
    margin: 14px 0 14px 14px;
  }
}

/* Neon Cyber image-card cleanup: show real product artwork without clipping. */
html[data-theme="dark"] .product-card-image-wrapper {
  height: 190px;
  padding: 22px 24px;
}
html[data-theme="dark"] .product-card-image-wrapper .product-card-image,
html[data-theme="dark"] .product-card-image {
  width: auto;
  height: auto;
  max-width: 94%;
  max-height: 82%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}
html[data-theme="dark"] .product-instant-delivery {
  top: 12px;
  bottom: auto;
}
html[data-theme="dark"] .product-card-stock-badge.low-stock + .product-card-image-wrapper .product-instant-delivery {
  top: 42px;
}
html[data-theme="dark"] .product-card-title,
html[data-theme="dark"] .product-card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-theme="dark"] .product-card-title { -webkit-line-clamp: 2; }
html[data-theme="dark"] .product-card-desc { -webkit-line-clamp: 2; }
html[data-theme="dark"] .product-card-meta { margin-top: auto; }
.product-card-details-link {
  width: max-content;
  border: 0;
  background: transparent;
  color: var(--cyber-cyan, var(--accent-600));
  font-size: 12px;
  font-weight: 800;
  padding: 0;
  margin: 0 0 12px;
  line-height: 1.2;
  cursor: pointer;
}
.product-card-details-link:hover,
.product-card-details-link:focus-visible {
  color: var(--cyber-green, var(--accent-500));
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: 0;
}
.product-details-modal-dialog { max-width: min(680px, calc(100vw - 32px)); }
.product-details-hero {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.product-details-img {
  width: 132px;
  height: 96px;
  object-fit: contain;
  padding: 12px;
  border: 1px solid rgba(24, 231, 255, .16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(229, 240, 255, .96), rgba(196, 220, 255, .92));
}
.product-details-title {
  color: var(--cyber-text, var(--text-primary));
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
}
.product-details-price {
  color: var(--cyber-cyan, var(--accent-600));
  font-size: 18px;
  font-weight: 900;
}
.product-details-stock {
  color: var(--cyber-muted, var(--text-secondary));
  font-size: 13px;
  margin-top: 4px;
}
.product-details-copy {
  max-height: min(42vh, 360px);
  overflow-y: auto;
  white-space: pre-line;
  color: var(--cyber-muted, var(--text-secondary));
  line-height: 1.7;
  padding: 16px;
  border: 1px solid rgba(151, 164, 204, .14);
  border-radius: 18px;
  background: rgba(6, 10, 28, .38);
}
html[data-theme="dark"] .product-card-desc { flex: 0 0 auto; }
@media (max-width: 768px) {
  .product-details-hero { grid-template-columns: 1fr; }
  .product-details-img { width: 100%; height: 140px; }
}
@media (max-width: 768px) {
  html[data-theme="dark"] .product-card-image-wrapper {
    height: auto;
    min-height: 152px;
    padding: 18px 20px;
  }
  html[data-theme="dark"] .product-card-image-wrapper .product-card-image,
  html[data-theme="dark"] .product-card-image {
    max-width: 90%;
    max-height: 80%;
  }
}

.stat-value-currency {
  color: var(--cyber-text, var(--gray-900));
  vertical-align: middle;
}
.stat-value-balance {
  font-size: clamp(34px, 3vw, 44px);
  line-height: .92;
  letter-spacing: -.07em;
  background: linear-gradient(135deg, #f8fafc 12%, var(--cyber-cyan, #18e7ff) 54%, var(--cyber-green, #31f6a0));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 28px rgba(24, 231, 255, .16);
}
html[data-theme="dark"] .stat-value-balance {
  font-size: clamp(34px, 3vw, 44px);
}
html[data-theme="dark"] .stat-card-credits {
  background:
    radial-gradient(220px 120px at 92% 22%, rgba(24, 231, 255, .16), transparent 60%),
    linear-gradient(180deg, rgba(17, 24, 47, .96), rgba(8, 12, 29, .96));
}
html[data-theme="dark"] .stat-card-credits .stat-sub {
  color: var(--cyber-cyan);
}
@media (max-width: 520px) {
  .header-wallet-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .stat-value-balance,
  html[data-theme="dark"] .stat-value-balance {
    font-size: 34px;
  }
}

.product-card-actions-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.product-detail-shell { max-width: 1180px; margin: 0 auto; }
.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
.product-detail-image-card,
.glass-card,
.notification-card {
  border: 1px solid rgba(151, 164, 204, .14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 24, 47, .94), rgba(8, 12, 29, .94));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}
.product-detail-image-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(280px, 32vw, 360px);
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(24, 231, 255, .18), transparent 24%),
    radial-gradient(circle at 84% 78%, rgba(124, 92, 255, .18), transparent 28%),
    linear-gradient(135deg, rgba(232, 240, 255, .97), rgba(196, 214, 246, .94)) !important;
}
.product-detail-image-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .32);
}
.product-detail-image {
  position: relative;
  z-index: 1;
  width: min(78%, 330px);
  max-width: 100%;
  max-height: 240px;
  height: auto;
  object-fit: contain;
  object-position: center center;
  transform: translateY(-4%) scale(1.08);
  filter: drop-shadow(0 18px 34px rgba(15, 23, 42, .18));
}
.product-detail-image-card .badge-pill { position: absolute; z-index: 2; top: 18px; right: 18px; }
.product-detail-copy,
.glass-card { padding: 24px; }
.eyebrow {
  color: var(--cyber-cyan, var(--accent-400));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.product-detail-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: .98;
}
.product-detail-description { color: var(--text-secondary); line-height: 1.75; white-space: pre-line; }
.product-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.product-detail-stats div {
  border: 1px solid rgba(151, 164, 204, .14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(6, 10, 28, .38);
}
.product-detail-stats span { display:block; color: var(--text-tertiary); font-size: 12px; }
.product-detail-stats strong { display:block; color: var(--text-primary); margin-top: 4px; }
.product-detail-buy { display: grid; grid-template-columns: 100px minmax(140px, 1fr) auto; gap: 10px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.detail-list { margin: 0; padding-left: 18px; color: var(--text-secondary); line-height: 1.8; }
.faq-stack p { color: var(--text-secondary); margin-bottom: 14px; }
.related-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-product-card {
  display: grid;
  grid-template-rows: 130px auto auto;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(17, 24, 47, .74);
  border: 1px solid rgba(151, 164, 204, .14);
}
.related-product-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  object-position: center center;
  padding: 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 22% 18%, rgba(24, 231, 255, .14), transparent 28%),
    linear-gradient(135deg, rgba(232, 240, 255, .95), rgba(197, 213, 246, .92));
  border: 1px solid rgba(151, 164, 204, .16);
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, .14));
}
.related-product-card span { font-weight: 800; line-height: 1.35; }
.related-product-card strong { color: var(--cyber-cyan, var(--accent-400)); }
.admin-filter-form,
.coupon-form-grid,
.coupon-inline-grid { display: grid; gap: 10px; }
.admin-filter-form { grid-template-columns: minmax(220px, 1fr) auto; }
.coupon-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; }
.coupon-inline-grid { grid-template-columns: 1fr 110px 100px auto auto; align-items: center; }
.control-check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13px; }
.wallet-proof-form { margin-top: 16px; display: grid; gap: 14px; }
.notifications-list { display: grid; gap: 12px; }
.notification-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  color: var(--text-primary);
  text-decoration: none;
}
.notification-card.unread { border-color: rgba(24, 231, 255, .42); }
.notification-card h3 { margin: 10px 0 6px; font-size: 17px; }
.notification-card p { margin: 0; color: var(--text-secondary); }
.analytics-bars { display: flex; align-items: flex-end; gap: 10px; min-height: 160px; overflow-x: auto; }
.analytics-bar-item { display: grid; gap: 8px; justify-items: center; min-width: 42px; color: var(--text-tertiary); font-size: 11px; }
.analytics-bar { width: 22px; border-radius: 999px 999px 6px 6px; background: linear-gradient(180deg, var(--cyber-cyan, #18e7ff), var(--cyber-green, #31f6a0)); box-shadow: 0 0 20px rgba(24, 231, 255, .22); }
@media (max-width: 900px) {
  .product-detail-hero,
  .detail-grid,
  .related-products-grid,
  .coupon-form-grid { grid-template-columns: 1fr; }
  .product-detail-buy,
  .admin-filter-form,
  .coupon-inline-grid { grid-template-columns: 1fr; }
}

/* Full mobile responsiveness pass */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
img,
svg,
video,
canvas {
  max-width: 100%;
}
.order-items-modal {
  pointer-events: auto;
}
.order-items-modal-dialog {
  max-width: min(580px, calc(100vw - 32px));
  pointer-events: none;
}
.order-items-modal-content {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  border: 1px solid rgba(151, 164, 204, .18);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(24, 231, 255, .10), transparent 58%),
    linear-gradient(180deg, rgba(12, 18, 38, .99), rgba(5, 9, 24, .99));
  box-shadow: 0 32px 110px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .06);
}
.order-items-modal .modal-header,
.order-items-modal .modal-body,
.order-items-modal .modal-footer {
  padding-left: 22px;
  padding-right: 22px;
}
.order-items-modal-subtitle {
  margin-top: 4px;
  color: var(--cyber-muted, var(--text-tertiary));
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.order-items-modal .form-label {
  color: var(--cyber-text, var(--text-primary));
  font-size: 13px;
  font-weight: 900;
}
.order-delivery-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 231, 255, .16);
  border-radius: 16px;
  background: rgba(24, 231, 255, .07);
  color: var(--cyber-muted, var(--text-secondary));
  font-size: 12px;
}
.order-delivery-summary strong {
  color: var(--cyber-cyan, var(--accent-400));
  font-size: 12px;
  white-space: nowrap;
}
.order-items-copy-source {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.delivered-items-list {
  display: grid;
  gap: 10px;
  max-height: min(360px, 48vh);
  overflow-y: auto;
}
.delivered-item-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(151, 164, 204, .14);
  border-radius: 14px;
  background: rgba(2, 6, 18, .58);
}
.delivered-item-index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(24, 231, 255, .10);
  color: var(--cyber-cyan, var(--accent-400));
  font-size: 12px;
  font-weight: 900;
}
.delivered-item-row code {
  display: block;
  min-width: 0;
  padding-top: 4px;
  color: #eef6ff;
  background: transparent;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.delivered-item-empty {
  padding: 14px;
  border: 1px solid rgba(151, 164, 204, .12);
  border-radius: 14px;
  color: var(--cyber-muted, var(--text-secondary));
  background: rgba(2, 6, 18, .42);
}
.order-items-modal .modal-footer {
  gap: 10px;
  background: rgba(2, 6, 18, .18);
}
.order-items-modal .modal-footer .btn,
.order-items-modal .btn-close {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .admin-stats-grid,
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar {
    width: min(86vw, 340px);
    max-width: 340px;
  }
  .sidebar-footer { padding-bottom: 18px; }
  .content-header,
  html[data-theme="dark"] .content-header {
    margin: 12px 12px 0;
  }
  .content-body,
  html[data-theme="dark"] .content-body {
    padding: 16px 12px 108px;
  }
  .app-footer-inner { padding-bottom: 108px; }
  .table-wrapper {
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table {
    min-width: 760px;
  }
  .table th,
  .table td {
    padding: 12px 14px;
    vertical-align: middle;
  }
}
@media (max-width: 768px) {
  .content-header-inner,
  html[data-theme="dark"] .content-header-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .content-header-left,
  .content-header-left > div {
    min-width: 0;
    width: 100%;
  }
  .content-header h1,
  html[data-theme="dark"] .content-header h1 {
    font-size: clamp(22px, 8vw, 30px);
    line-height: 1.05;
    word-break: break-word;
  }
  .content-header .breadcrumb {
    line-height: 1.45;
  }
  .content-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .content-header-actions .header-wallet-chip,
  .content-header-actions .btn,
  .content-header-actions .badge-pill {
    width: 100%;
    justify-content: center;
  }
  .dashboard-welcome,
  html[data-theme="dark"] .dashboard-welcome,
  .products-header,
  .onboarding-banner,
  .notification-card {
    padding: 18px;
    border-radius: 22px;
  }
  .dashboard-welcome-title,
  html[data-theme="dark"] .dashboard-welcome-title,
  .products-header-title {
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.05;
  }
  .trust-bar,
  .stats-grid,
  .admin-stats-grid,
  .payment-methods-grid,
  .detail-grid,
  .related-products-grid,
  .reseller-filters-form,
  .admin-filter-form,
  .coupon-form-grid,
  .coupon-inline-grid,
  .product-detail-buy,
  .product-detail-stats,
  .grid-2,
  .admin-grid-2,
  .stats-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .admin-quick-actions,
  .admin-filters-form,
  .product-card-actions-inline,
  .notification-card,
  .purchase-summary-row {
    align-items: stretch;
  }
  .admin-quick-actions .btn,
  .admin-filters-form .btn,
  .product-card-actions-inline .btn,
  .coupon-inline-grid .btn,
  .product-detail-buy .btn,
  .wallet-proof-form .btn,
  .notification-card .btn {
    width: 100%;
    justify-content: center;
  }
  .card,
  .glass-card,
  .product-detail-image-card,
  .profile-sections > .card,
  .jetstream-form-panel,
  .jetstream-action-panel {
    border-radius: 20px;
  }
  .card-body,
  .glass-card,
  .profile-sections > .card,
  .jetstream-form-panel,
  .jetstream-action-panel,
  .product-detail-copy {
    padding: 18px !important;
  }
  .jetstream-form-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px;
  }
  .jetstream-form-actions .btn,
  .jetstream-form-actions button {
    width: 100%;
    justify-content: center;
  }
  .product-detail-hero {
    gap: 18px;
  }
  .product-detail-image-card {
    min-height: 220px;
    padding: 24px;
  }
  .product-detail-image {
    max-height: 180px;
  }
  .modal-dialog,
  .purchase-modal-dialog,
  .product-details-modal-dialog,
  .order-items-modal-dialog {
    max-width: calc(100vw - 24px);
    margin-left: auto;
    margin-right: auto;
  }
  .modal-content {
    max-height: calc(100dvh - 32px);
    overflow: hidden;
  }
  .modal-body {
    overflow-y: auto;
  }
  .order-items-modal .modal-header,
  .order-items-modal .modal-body,
  .order-items-modal .modal-footer,
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .delivered-items-list {
    max-height: min(34dvh, 240px);
  }
}
@media (max-width: 575px) {
  .sidebar {
    width: min(90vw, 320px);
  }
  .content-header,
  html[data-theme="dark"] .content-header {
    margin: 10px 10px 0;
    border-radius: 22px;
  }
  .content-body,
  html[data-theme="dark"] .content-body {
    padding: 14px 10px 106px;
  }
  .content-header-actions {
    grid-template-columns: 1fr;
  }
  .header-wallet-copy {
    align-items: center;
    text-align: center;
  }
  .mobile-bottom-nav {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 8px;
    border-radius: 20px;
  }
  .mobile-bottom-nav a {
    padding: 9px 6px;
    font-size: 11px;
  }
  .whatsapp-fab {
    right: 14px;
    bottom: 86px;
    width: 44px;
    height: 44px;
  }
  .products-grid,
  html[data-theme="dark"] .products-grid {
    gap: 12px;
  }
  .product-card,
  html[data-theme="dark"] .product-card {
    display: block;
    min-height: 0;
  }
  .product-card-image-wrapper,
  html[data-theme="dark"] .product-card-image-wrapper {
    height: 148px;
    min-height: 148px;
    margin: 12px 12px 0;
    padding: 16px;
  }
  .product-card-body,
  html[data-theme="dark"] .product-card-body {
    padding: 14px;
  }
  .product-card-desc,
  .product-price-usd,
  .product-sales-count {
    display: block;
  }
  .product-card-actions-inline {
    display: grid;
    grid-template-columns: 1fr;
  }
  .table-wrapper {
    border-radius: 18px;
    max-width: calc(100vw - 20px);
  }
  .table {
    min-width: 680px;
  }
  .table th,
  .table td {
    padding: 10px 12px;
    font-size: 12px;
  }
  .table td > div[style*="display:flex"] {
    flex-wrap: wrap;
  }
  .table .btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .pagination {
    justify-content: center;
  }
  .pagination .page-link {
    min-width: 34px;
    min-height: 34px;
    padding: 6px 9px;
  }
  .modal.show .modal-dialog {
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    margin: 0;
    max-width: 100%;
  }
  .modal.show .modal-content {
    width: 100%;
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
  }
  .modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .modal-footer .btn,
  .modal-footer button {
    width: 100%;
    justify-content: center;
  }
  .order-delivery-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .delivered-items-list {
    max-height: min(40dvh, 260px);
  }
  .toast-container {
    left: 10px;
    right: 10px;
    bottom: 78px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .app-shell,
  .main-content,
  .content-body,
  .content-header,
  .app-footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .content-header {
    position: static;
    padding: 10px 10px 0;
  }

  .content-header-inner,
  html[data-theme="dark"] .content-header-inner {
    border-radius: 18px;
    padding: 12px;
    gap: 12px;
  }

  .content-header-left > div {
    width: 100%;
    align-items: flex-start !important;
  }

  .content-header-left h1 {
    font-size: clamp(18px, 5.4vw, 24px);
    line-height: 1.15;
    word-break: break-word;
  }

  .content-header-left .breadcrumb {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
  }

  .sidebar-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .content-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .content-header-actions .btn,
  .content-header-actions .badge-pill,
  .header-wallet-chip {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .content-body {
    padding: 12px 10px 22px;
  }

  .sidebar,
  html[data-theme="dark"] .sidebar {
    width: min(88vw, 330px);
    max-width: 330px;
  }

  .sidebar-nav a,
  .sidebar-logout,
  .sidebar-link {
    min-height: 48px;
    font-size: 14px;
  }

  .mobile-bottom-nav,
  html[data-theme="dark"] .mobile-bottom-nav {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 8px;
    border-radius: 22px;
  }

  .mobile-bottom-nav a {
    min-height: 48px;
    padding: 8px 4px;
    font-size: 11px;
    border-radius: 16px;
    justify-content: center;
    text-align: center;
  }

  .whatsapp-fab {
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .stats-grid,
  .trust-bar,
  .products-header,
  .quick-actions-grid,
  .admin-grid-2,
  .grid-2,
  .form-grid,
  .coupon-form-grid,
  .coupon-inline-grid,
  .admin-filter-form,
  .admin-filters-form {
    grid-template-columns: 1fr !important;
  }

  .products-header,
  .admin-filters-form,
  .admin-search-form,
  .admin-filter-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
    gap: 10px;
  }

  .admin-filters-form > *,
  .admin-filter-form > *,
  .admin-search-form > *,
  .products-header > * {
    width: 100% !important;
    max-width: none !important;
  }

  .form-control,
  .form-select,
  .search-input,
  input[type="file"],
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
  }

  textarea.form-control {
    min-height: 118px;
  }

  .btn,
  button.btn,
  a.btn {
    min-height: 44px;
  }

  .btn-sm,
  button.btn-sm,
  a.btn-sm {
    min-height: 40px;
    padding: 9px 12px;
  }

  .card,
  .glass-card,
  .stat-card,
  .empty-state,
  .payment-note,
  html[data-theme="dark"] .card,
  html[data-theme="dark"] .glass-card,
  html[data-theme="dark"] .stat-card,
  html[data-theme="dark"] .empty-state {
    border-radius: 18px;
  }

  .card-body,
  .glass-card,
  .empty-state {
    padding: 16px !important;
  }

  .stat-card {
    min-height: 0;
    padding: 16px;
  }

  .stat-value {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .product-card-actions,
  .product-card-actions-inline,
  .modal-footer,
  .ticket-list-item,
  .notifications-list .notification-card {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .product-card-actions .btn,
  .product-card-actions-inline .btn,
  .ticket-list-item .btn,
  .notifications-list .notification-card .btn {
    width: 100%;
  }

  .product-card-title,
  .purchase-modal-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .product-card-desc {
    -webkit-line-clamp: 4;
    line-clamp: 4;
    font-size: 13px;
    line-height: 1.55;
  }

  .product-card-meta {
    align-items: flex-start;
    gap: 10px;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr !important;
  }

  .payment-method {
    min-height: 64px;
    padding: 14px;
  }

  .purchase-modal-product {
    align-items: flex-start;
  }

  .purchase-summary-card,
  .purchase-safe-note {
    padding: 14px;
  }

  .modal.show .modal-dialog {
    padding-top: 8vh;
  }

  .modal-body {
    max-height: min(68dvh, 560px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .table-wrapper,
  .table-responsive,
  .table-responsive.glass-table,
  html[data-theme="dark"] .table-wrapper,
  html[data-theme="dark"] .table-responsive.glass-table {
    overflow: visible;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-wrapper .table,
  .table-responsive .table,
  .glass-table .table,
  .card-body > .table,
  html[data-theme="dark"] .table-wrapper .table,
  html[data-theme="dark"] .table-responsive .table,
  html[data-theme="dark"] .glass-table .table,
  html[data-theme="dark"] .card-body > .table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    background: transparent;
  }

  .table-wrapper .table thead,
  .table-responsive .table thead,
  .glass-table .table thead,
  .card-body > .table thead {
    display: none;
  }

  .table-wrapper .table tbody,
  .table-wrapper .table tr,
  .table-wrapper .table td,
  .table-responsive .table tbody,
  .table-responsive .table tr,
  .table-responsive .table td,
  .glass-table .table tbody,
  .glass-table .table tr,
  .glass-table .table td,
  .card-body > .table tbody,
  .card-body > .table tr,
  .card-body > .table td {
    display: block;
    width: 100%;
  }

  .table-wrapper .table tbody tr,
  .table-responsive .table tbody tr,
  .glass-table .table tbody tr,
  .card-body > .table tbody tr,
  html[data-theme="dark"] .table-wrapper .table tbody tr,
  html[data-theme="dark"] .table-responsive .table tbody tr,
  html[data-theme="dark"] .glass-table .table tbody tr,
  html[data-theme="dark"] .card-body > .table tbody tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid rgba(151, 164, 204, 0.18);
    border-radius: 18px;
    background: rgba(10, 16, 32, 0.86);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  }

  .table-wrapper .table td,
  .table-responsive .table td,
  .glass-table .table td,
  .card-body > .table td,
  html[data-theme="dark"] .table-wrapper .table td,
  html[data-theme="dark"] .table-responsive .table td,
  html[data-theme="dark"] .glass-table .table td,
  html[data-theme="dark"] .card-body > .table td {
    display: grid;
    grid-template-columns: minmax(92px, 36%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 0 !important;
    padding: 9px 0;
    white-space: normal !important;
    color: var(--cyber-text);
    word-break: break-word;
  }

  .table-wrapper .table td::before,
  .table-responsive .table td::before,
  .glass-table .table td::before,
  .card-body > .table td::before {
    content: attr(data-label);
    color: var(--cyber-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .table-wrapper .table td:not([data-label]),
  .table-responsive .table td:not([data-label]),
  .glass-table .table td:not([data-label]),
  .card-body > .table td:not([data-label]),
  .table-wrapper .table td[colspan],
  .table-responsive .table td[colspan],
  .glass-table .table td[colspan],
  .card-body > .table td[colspan] {
    display: block;
  }

  .table-wrapper .table td:not([data-label])::before,
  .table-responsive .table td:not([data-label])::before,
  .glass-table .table td:not([data-label])::before,
  .card-body > .table td:not([data-label])::before,
  .table-wrapper .table td[colspan]::before,
  .table-responsive .table td[colspan]::before,
  .glass-table .table td[colspan]::before,
  .card-body > .table td[colspan]::before {
    display: none;
  }

  .table-wrapper .table td[data-label="Actions"] > div,
  .table-responsive .table td[data-label="Actions"] > div,
  .glass-table .table td[data-label="Actions"] > div,
  .card-body > .table td[data-label="Actions"] > div,
  .table-wrapper .table td[data-label="Action"] > div,
  .table-responsive .table td[data-label="Action"] > div,
  .glass-table .table td[data-label="Action"] > div,
  .card-body > .table td[data-label="Action"] > div {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-wrapper .table td form,
  .table-responsive .table td form,
  .glass-table .table td form,
  .card-body > .table td form,
  .table-wrapper .table td .btn,
  .table-responsive .table td .btn,
  .glass-table .table td .btn,
  .card-body > .table td .btn {
    width: 100%;
  }

  .table-wrapper .table td [style*="max-width"],
  .table-responsive .table td [style*="max-width"],
  .glass-table .table td [style*="max-width"],
  .card-body > .table td [style*="max-width"] {
    max-width: 100% !important;
    white-space: normal !important;
  }

  .coupon-inline-grid,
  .coupon-inline-grid .form-control,
  .coupon-inline-grid .form-select {
    width: 100%;
  }

  .pagination,
  nav[role="navigation"] .pagination {
    flex-wrap: wrap;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  :root {
    --mobile-bottom-nav-h: 74px;
  }

  .app-layout,
  .main-content {
    min-width: 0;
  }

  .main-content,
  html[data-theme="dark"] .main-content {
    width: 100%;
    margin-left: 0 !important;
  }

  .content-header,
  html[data-theme="dark"] .content-header {
    margin: 8px 8px 0;
    padding: 0;
    border-radius: 20px;
  }

  .content-header-inner,
  html[data-theme="dark"] .content-header-inner {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .content-header-left > div {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center !important;
    gap: 10px !important;
  }

  .content-header-left h1,
  html[data-theme="dark"] .content-header h1 {
    max-width: 100%;
    font-size: clamp(18px, 6vw, 24px);
    overflow-wrap: anywhere;
  }

  .content-header-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-header-actions .badge-pill {
    grid-column: 1 / -1;
  }

  .header-wallet-chip,
  .content-header-actions .btn,
  .content-header-actions .badge-pill {
    min-width: 0;
    padding-inline: 10px;
  }

  .header-wallet-copy,
  .header-wallet-copy strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .content-body,
  html[data-theme="dark"] .content-body {
    padding: 12px 10px calc(var(--mobile-bottom-nav-h) + 34px + env(safe-area-inset-bottom));
  }

  .sidebar,
  html[data-theme="dark"] .sidebar {
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
    overscroll-behavior: contain;
  }

  .sidebar-brand {
    padding: 14px 16px 12px;
  }

  .sidebar-nav {
    padding-bottom: 18px;
  }

  .sidebar-footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav,
  html[data-theme="dark"] .mobile-bottom-nav {
    min-height: var(--mobile-bottom-nav-h);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .06);
  }

  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-size: 10.5px;
    line-height: 1.1;
  }

  .mobile-bottom-nav a i {
    font-size: 17px;
    line-height: 1;
  }

  .whatsapp-fab {
    width: 42px;
    height: 42px;
    right: 12px;
    bottom: calc(var(--mobile-bottom-nav-h) + 14px + env(safe-area-inset-bottom));
  }

  .btn,
  button,
  .badge-pill,
  .product-stock,
  .header-wallet-chip,
  .form-label,
  .table td,
  .card,
  .glass-card {
    max-width: 100%;
  }

  .btn,
  button.btn,
  a.btn {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .products-grid,
  html[data-theme="dark"] .products-grid {
    gap: 10px;
  }

  .product-card,
  html[data-theme="dark"] .product-card {
    border-radius: 18px;
  }

  .product-card-image-wrapper,
  html[data-theme="dark"] .product-card-image-wrapper {
    height: 132px;
    min-height: 132px;
    margin: 10px 10px 0;
    padding: 14px;
  }

  .product-card-body,
  html[data-theme="dark"] .product-card-body {
    padding: 12px;
  }

  .product-card-title,
  html[data-theme="dark"] .product-card-title {
    font-size: 15px;
    line-height: 1.25;
  }

  .product-card-desc,
  html[data-theme="dark"] .product-card-desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 10px;
  }

  .product-card-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .product-price,
  .product-price-usd,
  .product-sales-count,
  .product-stock {
    overflow-wrap: anywhere;
  }

  .product-card-actions-inline,
  .product-card-actions {
    gap: 8px;
  }

  .table-wrapper .table td,
  .table-responsive .table td,
  .glass-table .table td,
  .card-body > .table td {
    grid-template-columns: minmax(82px, 34%) minmax(0, 1fr);
    gap: 8px;
    font-size: 12.5px;
  }

  .table-wrapper .table tbody tr,
  .table-responsive .table tbody tr,
  .glass-table .table tbody tr,
  .card-body > .table tbody tr {
    padding: 12px;
  }

  .table td,
  .table td *,
  .card-body,
  .modal-body {
    overflow-wrap: anywhere;
  }

  .modal.show .modal-dialog {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: flex-end;
  }

  .modal.show .modal-content {
    width: 100%;
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
  }

  .order-items-modal .modal-content {
    max-height: 88dvh;
  }

  .order-items-modal .modal-header,
  .order-items-modal .modal-body,
  .order-items-modal .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .order-items-modal .modal-body {
    max-height: calc(88dvh - 172px);
    overflow-y: auto;
  }

  .order-delivery-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .delivered-items-list {
    max-height: 42dvh;
  }

  .delivered-item-row {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 10px;
  }

  .delivered-item-row code {
    font-size: 12px;
  }

  .order-items-modal .modal-footer .btn {
    width: 100%;
  }

  .modal-body {
    max-height: 64dvh;
  }

  .product-detail-image-card {
    min-height: 230px;
    padding: 22px;
  }

  .product-detail-image-card::before {
    inset: 12px;
  }

  .product-detail-image {
    width: min(86%, 280px);
    max-height: 190px;
  }

  .related-product-card {
    grid-template-rows: 118px auto auto;
  }

  .related-product-card img {
    height: 118px;
    padding: 16px;
  }

  .purchase-modal-product,
  .purchase-summary-card,
  .purchase-safe-note,
  .payment-note,
  .notification-card,
  .ticket-list-item {
    border-radius: 16px;
  }
}

@media (max-width: 380px) {
  .content-header-actions {
    grid-template-columns: 1fr;
  }

  .mobile-bottom-nav {
    left: 6px;
    right: 6px;
    padding: 6px;
  }

  .mobile-bottom-nav a {
    min-height: 46px;
    font-size: 10px;
  }

  .table-wrapper .table td,
  .table-responsive .table td,
  .glass-table .table td,
  .card-body > .table td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-card-image-wrapper,
  html[data-theme="dark"] .product-card-image-wrapper {
    height: 118px;
    min-height: 118px;
  }
}

/* Mobile perfection pass */
.admin-form-shell {
  width: min(860px, 100%);
  margin: 0 auto;
}
.admin-form-card .card-header p {
  margin: 6px 0 0;
  color: var(--text-tertiary);
  font-size: 13px;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.password-field {
  position: relative;
}
.password-field .form-control {
  padding-right: 54px;
}
.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  color: var(--text-tertiary);
  background: rgba(24, 231, 255, .08);
}
.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
  color: var(--cyber-cyan);
  outline: 0;
}
.admin-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal {
  z-index: 2070 !important;
}
.modal-backdrop {
  z-index: 2060 !important;
}
.modal-dialog,
.modal-content {
  pointer-events: auto;
}

@media (max-width: 768px) {
  :root {
    --mobile-page-gutter: clamp(10px, 3vw, 18px);
    --mobile-card-radius: 20px;
  }

  html,
  body {
    min-width: 0;
    overflow-x: clip;
    touch-action: manipulation;
  }

  body {
    min-height: 100svh;
  }

  .app-layout,
  .main-content,
  .content-body,
  .content-header,
  .app-footer,
  .products-grid,
  .grid-2,
  .admin-grid-2,
  .detail-grid,
  .product-detail-shell {
    min-width: 0;
    width: 100%;
  }

  .content-body,
  html[data-theme="dark"] .content-body {
    display: grid;
    gap: 14px;
    padding-inline: var(--mobile-page-gutter);
  }

  .content-header,
  html[data-theme="dark"] .content-header {
    margin-inline: var(--mobile-page-gutter);
  }

  .content-header-inner,
  html[data-theme="dark"] .content-header-inner {
    min-width: 0;
    overflow: hidden;
  }

  .content-header-left,
  .content-header-left > div,
  .content-header-left h1,
  .content-header .breadcrumb {
    min-width: 0;
  }

  .content-header .breadcrumb {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .content-header-actions {
    min-width: 0;
  }

  .header-wallet-chip,
  .content-header-actions .btn,
  .content-header-actions .badge-pill {
    min-height: 46px;
    border-radius: 15px;
  }

  .sidebar,
  html[data-theme="dark"] .sidebar {
    width: min(340px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .sidebar-brand,
  .sidebar-link,
  .sidebar-user,
  .sidebar-footer .btn {
    min-width: 0;
  }

  .sidebar-link,
  .sidebar-footer .btn {
    min-height: 48px;
  }

  .mobile-bottom-nav,
  html[data-theme="dark"] .mobile-bottom-nav {
    z-index: 1200;
    width: auto;
  }

  .whatsapp-fab {
    z-index: 1190;
  }

  .onboarding-banner,
  .products-header,
  .trust-bar,
  .admin-quick-actions,
  .product-card-actions-inline,
  .product-card-actions,
  .ticket-list-item,
  .notification-card,
  .card-header {
    min-width: 0;
  }

  .onboarding-banner,
  .products-header,
  .admin-quick-actions,
  .card-header {
    gap: 12px;
  }

  .onboarding-banner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .onboarding-banner > div:last-child,
  .onboarding-banner .btn {
    width: 100%;
  }

  .onboarding-banner > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .trust-item {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .products-header-left,
  .products-search-inline,
  .input-with-icon,
  .admin-search-form,
  .admin-filters-form,
  .admin-filter-form,
  .wallet-proof-form,
  .payment-note,
  .form-group {
    min-width: 0;
    width: 100%;
  }

  .products-search-inline {
    min-height: 48px;
  }

  .search-kbd {
    display: none;
  }

  .products-grid,
  .related-products-grid,
  .payment-methods-grid,
  .grid-2,
  .admin-grid-2,
  .detail-grid,
  .product-detail-hero,
  .product-detail-buy,
  .coupon-form-grid,
  .coupon-inline-grid,
  .form-grid,
  .admin-form-grid,
  .admin-filters-form,
  .admin-filter-form {
    grid-template-columns: 1fr !important;
  }

  .admin-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-form-actions .btn {
    width: 100%;
  }

  .admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-quick-actions .btn,
  .admin-filters-form .btn,
  .admin-filter-form .btn,
  .coupon-inline-grid .btn,
  .product-detail-buy .btn,
  .wallet-proof-form .btn {
    width: 100%;
  }

  .form-control,
  .form-select,
  .search-input,
  input,
  select,
  textarea {
    max-width: 100%;
    min-height: 46px;
  }

  input[type="checkbox"],
  input[type="radio"] {
    min-height: 0;
    width: 22px;
    height: 22px;
  }

  input[type="file"] {
    height: auto;
    padding-block: 12px;
  }

  .product-card,
  .card,
  .glass-card,
  .stat-card,
  .empty-state,
  .payment-note,
  .payment-method,
  .ticket-list-item,
  .notification-card,
  .table-wrapper .table tbody tr,
  .table-responsive .table tbody tr,
  .glass-table .table tbody tr,
  .card-body > .table tbody tr {
    border-radius: var(--mobile-card-radius);
  }

  .product-card-title,
  .product-detail-copy h2,
  .card-header h3,
  .section-title {
    overflow-wrap: anywhere;
  }

  .product-detail-copy,
  .product-detail-description,
  .detail-list,
  .faq-stack,
  .payment-note,
  .delivered-item-row code,
  .text-mono {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .product-detail-image-card {
    min-height: clamp(220px, 55vw, 320px);
  }

  .product-detail-stats {
    grid-template-columns: 1fr;
  }

  .analytics-bars {
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .analytics-bar-item {
    scroll-snap-align: start;
  }

  .table-wrapper,
  .table-responsive,
  .table-responsive.glass-table,
  html[data-theme="dark"] .table-wrapper,
  html[data-theme="dark"] .table-responsive.glass-table {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-wrapper .table,
  .table-responsive .table,
  .glass-table .table,
  .card-body > .table {
    min-width: 0 !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .table-wrapper .table thead,
  .table-responsive .table thead,
  .glass-table .table thead,
  .card-body > .table thead {
    display: none;
  }

  .table-wrapper .table tbody,
  .table-wrapper .table tr,
  .table-wrapper .table td,
  .table-responsive .table tbody,
  .table-responsive .table tr,
  .table-responsive .table td,
  .glass-table .table tbody,
  .glass-table .table tr,
  .glass-table .table td,
  .card-body > .table tbody,
  .card-body > .table tr,
  .card-body > .table td {
    display: block;
    width: 100%;
  }

  .table-wrapper .table tbody tr,
  .table-responsive .table tbody tr,
  .glass-table .table tbody tr,
  .card-body > .table tbody tr {
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(151, 164, 204, .18);
    background: rgba(10, 16, 32, .86);
  }

  .table-wrapper .table td,
  .table-responsive .table td,
  .glass-table .table td,
  .card-body > .table td {
    display: grid;
    grid-template-columns: minmax(94px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 0 !important;
    padding: 9px 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .table-wrapper .table td::before,
  .table-responsive .table td::before,
  .glass-table .table td::before,
  .card-body > .table td::before {
    content: attr(data-label);
    color: var(--cyber-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .table-wrapper .table td:not([data-label]),
  .table-responsive .table td:not([data-label]),
  .glass-table .table td:not([data-label]),
  .card-body > .table td:not([data-label]),
  .table-wrapper .table td[colspan],
  .table-responsive .table td[colspan],
  .glass-table .table td[colspan],
  .card-body > .table td[colspan] {
    display: block;
  }

  .table-wrapper .table td:not([data-label])::before,
  .table-responsive .table td:not([data-label])::before,
  .glass-table .table td:not([data-label])::before,
  .card-body > .table td:not([data-label])::before,
  .table-wrapper .table td[colspan]::before,
  .table-responsive .table td[colspan]::before,
  .glass-table .table td[colspan]::before,
  .card-body > .table td[colspan]::before {
    display: none;
  }

  .table-wrapper .table td [style*="max-width"],
  .table-responsive .table td [style*="max-width"],
  .glass-table .table td [style*="max-width"],
  .card-body > .table td [style*="max-width"] {
    max-width: 100% !important;
    white-space: normal !important;
  }

  .table-wrapper .table td[data-label="Actions"] > div,
  .table-responsive .table td[data-label="Actions"] > div,
  .glass-table .table td[data-label="Actions"] > div,
  .card-body > .table td[data-label="Actions"] > div,
  .table-wrapper .table td[data-label="Action"] > div,
  .table-responsive .table td[data-label="Action"] > div,
  .glass-table .table td[data-label="Action"] > div,
  .card-body > .table td[data-label="Action"] > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .table-wrapper .table td form,
  .table-responsive .table td form,
  .glass-table .table td form,
  .card-body > .table td form,
  .table-wrapper .table td .btn,
  .table-responsive .table td .btn,
  .glass-table .table td .btn,
  .card-body > .table td .btn {
    width: 100%;
  }

  .modal.show .modal-dialog,
  .modal .modal-dialog {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }

  .modal.show .modal-content,
  .modal .modal-content {
    width: 100%;
    max-height: min(92dvh, 760px);
    border-radius: 24px 24px 0 0;
    pointer-events: auto;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: var(--mobile-page-gutter);
    padding-right: var(--mobile-page-gutter);
  }

  .modal-header {
    align-items: flex-start;
    gap: 12px;
  }

  .modal-title,
  .modal-header h5 {
    overflow-wrap: anywhere;
  }

  .modal-body {
    max-height: 62dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .modal-footer .btn {
    width: 100%;
    margin: 0 !important;
  }

  .btn-close {
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    background-color: rgba(255, 255, 255, .88);
    border-radius: 999px;
    opacity: 1;
  }

  .order-items-modal .modal-content {
    max-height: 90dvh;
  }

  .order-items-modal .modal-body {
    max-height: calc(90dvh - 176px);
  }

  .delivered-items-list {
    max-height: 46dvh;
  }
}

@media (max-width: 520px) {
  .admin-quick-actions,
  .onboarding-banner > div:last-child,
  .modal-footer,
  .table-wrapper .table td[data-label="Actions"] > div,
  .table-responsive .table td[data-label="Actions"] > div,
  .glass-table .table td[data-label="Actions"] > div,
  .card-body > .table td[data-label="Actions"] > div {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .product-card-image-wrapper,
  html[data-theme="dark"] .product-card-image-wrapper {
    height: clamp(126px, 38vw, 160px);
    min-height: 126px;
  }

  .product-card-desc,
  html[data-theme="dark"] .product-card-desc {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (max-width: 390px) {
  .content-header-left > div {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .sidebar-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .content-header-actions {
    grid-template-columns: 1fr;
  }

  .table-wrapper .table td,
  .table-responsive .table td,
  .glass-table .table td,
  .card-body > .table td {
    grid-template-columns: 1fr;
  }

  .mobile-bottom-nav a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ============================================================
   PREMIUM MOTION SYSTEM — restrained luxury interactions
   ============================================================ */
:root {
  --motion-fast: 120ms;
  --motion-normal: 180ms;
  --motion-slow: 260ms;
  --motion-page: 420ms;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-emphasized: cubic-bezier(.16, 1, .3, 1);
  --motion-press: cubic-bezier(.2, 0, .2, 1);
  --cursor-x: 50vw;
  --cursor-y: 22vh;
}

html[data-theme="dark"] body {
  position: relative;
  isolation: isolate;
  background-size: 100% 100%, 100% 100%, 112% 112%;
}

html[data-theme="dark"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(380px circle at var(--cursor-x) var(--cursor-y), rgba(24, 231, 255, .045), transparent 58%),
    radial-gradient(760px 480px at 100% 0%, rgba(124, 92, 255, .055), transparent 70%);
  opacity: .58;
  z-index: -1;
  transition: opacity var(--motion-slow) var(--motion-ease);
}

@keyframes premiumAmbientShift {
  from { background-position: 0% 0%, 100% 0%, 0% 50%; }
  to { background-position: 2% 1%, 98% 2%, 100% 50%; }
}

.motion-prepare .content-header,
.motion-prepare .mobile-bottom-nav {
  animation: premiumShellIn var(--motion-page) var(--motion-emphasized) both;
}

@media (min-width: 1025px) {
  .motion-prepare .sidebar {
    animation: premiumShellIn var(--motion-page) var(--motion-emphasized) both;
  }
}

.motion-prepare .content-header { animation-delay: 40ms; }
.motion-prepare .mobile-bottom-nav { animation-delay: 90ms; }

.motion-reveal {
  opacity: .96;
  transform: translate3d(0, 2px, 0) scale(.999);
  will-change: auto;
}

.motion-reveal.motion-visible {
  animation: premiumReveal var(--motion-page) var(--motion-emphasized) both;
  animation-delay: calc(var(--motion-index, 0) * 22ms);
}

@keyframes premiumShellIn {
  from { opacity: 0; transform: translate3d(0, -6px, 0) scale(.996); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes premiumReveal {
  from { opacity: .96; transform: translate3d(0, 2px, 0) scale(.999); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .dashboard-welcome,
html[data-theme="dark"] .trust-item,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .payment-method,
html[data-theme="dark"] .help-step,
html[data-theme="dark"] .delivered-item-row,
html[data-theme="dark"] .table-wrapper .table tbody tr,
html[data-theme="dark"] .table-responsive .table tbody tr,
html[data-theme="dark"] .glass-table .table tbody tr {
  transform: translateZ(0);
  transition:
    transform var(--motion-normal) var(--motion-ease),
    border-color var(--motion-normal) var(--motion-ease),
    box-shadow var(--motion-normal) var(--motion-ease),
    background var(--motion-normal) var(--motion-ease),
    opacity var(--motion-normal) var(--motion-ease);
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .dashboard-welcome,
html[data-theme="dark"] .card {
  position: relative;
  isolation: isolate;
}

html[data-theme="dark"] .product-card::before,
html[data-theme="dark"] .stat-card::before,
html[data-theme="dark"] .dashboard-welcome::before,
html[data-theme="dark"] .card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 24%, rgba(255,255,255,.025) 48%, transparent 68%);
  opacity: 0;
  transform: translateX(-14%);
  transition: opacity var(--motion-normal) var(--motion-ease), transform 420ms var(--motion-emphasized);
  z-index: -1;
}

html[data-theme="dark"] .product-card:hover,
html[data-theme="dark"] .stat-card:hover,
html[data-theme="dark"] .dashboard-welcome:hover,
html[data-theme="dark"] .card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(24, 231, 255, .26);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(24,231,255,.045), 0 0 24px rgba(24,231,255,.045);
}

html[data-theme="dark"] .product-card:hover::before,
html[data-theme="dark"] .stat-card:hover::before,
html[data-theme="dark"] .dashboard-welcome:hover::before,
html[data-theme="dark"] .card:hover::before {
  opacity: .22;
  transform: translateX(18%);
}

html[data-theme="dark"] .product-card-image-wrapper {
  transition: transform var(--motion-normal) var(--motion-ease), border-color var(--motion-normal) var(--motion-ease), box-shadow var(--motion-normal) var(--motion-ease);
}

html[data-theme="dark"] .product-card-image-wrapper .product-card-image,
html[data-theme="dark"] .product-card-image {
  transition: transform var(--motion-slow) var(--motion-emphasized), filter var(--motion-normal) var(--motion-ease);
}

html[data-theme="dark"] .product-card:hover .product-card-image-wrapper {
  transform: translate3d(0, -1px, 0);
  border-color: rgba(24, 231, 255, .22);
  box-shadow: inset 0 1px rgba(255,255,255,.11), 0 12px 28px rgba(24, 231, 255, .055);
}

html[data-theme="dark"] .product-card:hover .product-card-image-wrapper .product-card-image,
html[data-theme="dark"] .product-card:hover .product-card-image {
  transform: scale(1.01);
  filter: drop-shadow(0 8px 16px rgba(3, 6, 17, .16));
}

html[data-theme="dark"] .product-card.is-pinned {
  border-color: rgba(248, 213, 107, .22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24), inset 0 1px rgba(255,255,255,.035);
}

html[data-theme="dark"] .product-card-pin-badge,
html[data-theme="dark"] .related-product-pin,
html[data-theme="dark"] .product-detail-pin-badge {
  box-shadow: 0 0 0 1px rgba(248,213,107,.12), 0 10px 24px rgba(248,213,107,.06);
}

.btn,
.mobile-bottom-nav a,
.sidebar-link,
.sidebar-user,
.product-card-details-link,
.pagination .page-link,
.product-card-favorite button,
.btn-close,
button {
  transition:
    transform var(--motion-fast) var(--motion-press),
    border-color var(--motion-normal) var(--motion-ease),
    background var(--motion-normal) var(--motion-ease),
    color var(--motion-normal) var(--motion-ease),
    box-shadow var(--motion-normal) var(--motion-ease),
    opacity var(--motion-normal) var(--motion-ease);
}

.btn:hover,
.mobile-bottom-nav a:hover,
.sidebar-link:hover,
.product-card-favorite button:hover,
.pagination .page-link:hover {
  transform: translate3d(0, -1px, 0);
}

.btn:active,
.mobile-bottom-nav a:active,
.sidebar-link:active,
.product-card-favorite button:active,
.pagination .page-link:active,
.btn-close:active {
  transform: scale(.975);
  transition-duration: 70ms;
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-buy,
html[data-theme="dark"] .btn-purchase-confirm,
html[data-theme="dark"] .submit-btn,
html[data-theme="dark"] .btn-primary-auth {
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .btn-primary::before,
html[data-theme="dark"] .btn-buy::before,
html[data-theme="dark"] .btn-purchase-confirm::before,
html[data-theme="dark"] .submit-btn::before,
html[data-theme="dark"] .btn-primary-auth::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.16) 44%, transparent 58%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 520ms var(--motion-emphasized), opacity var(--motion-normal) var(--motion-ease);
}

html[data-theme="dark"] .btn-primary:hover::before,
html[data-theme="dark"] .btn-buy:hover::before,
html[data-theme="dark"] .btn-purchase-confirm:hover::before,
html[data-theme="dark"] .submit-btn:hover::before,
html[data-theme="dark"] .btn-primary-auth:hover::before {
  transform: translateX(120%);
  opacity: .24;
}

.sidebar-link .nav-icon,
.mobile-bottom-nav a i,
.stat-card::after,
.toast-icon,
.purchase-trust-item svg {
  transition: transform var(--motion-normal) var(--motion-ease), color var(--motion-normal) var(--motion-ease), opacity var(--motion-normal) var(--motion-ease);
}

.sidebar-link:hover .nav-icon,
.sidebar-link.active .nav-icon,
.mobile-bottom-nav a:hover i,
.mobile-bottom-nav a.active i {
  transform: translateY(-1px) scale(1.015);
}

.sidebar-link.active,
.mobile-bottom-nav a.active {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 0 16px rgba(124,92,255,.08);
}

@keyframes premiumActiveNav {
  from { box-shadow: inset 0 0 0 1px rgba(24,231,255,0), 0 0 0 rgba(24,231,255,0); }
  to { box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 0 22px rgba(124,92,255,.13); }
}

html[data-theme="dark"] .sidebar.open,
html[data-theme="dark"] .sidebar-overlay.active {
  animation: premiumDrawerIn var(--motion-slow) var(--motion-emphasized) both;
}

@keyframes premiumDrawerIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.fade .modal-dialog {
  transform: translate3d(0, 8px, 0) scale(.992);
  transition: transform var(--motion-slow) var(--motion-emphasized), opacity var(--motion-slow) var(--motion-ease);
}

.modal.show .modal-dialog {
  transform: translate3d(0, 0, 0) scale(1);
}

.modal-content,
.jetstream-modal-panel {
  transform-origin: center;
  transition: transform var(--motion-slow) var(--motion-emphasized), box-shadow var(--motion-slow) var(--motion-ease), border-color var(--motion-normal) var(--motion-ease);
}

.modal.show .modal-content,
.jetstream-modal-panel {
  animation: premiumModalSurface var(--motion-slow) var(--motion-emphasized) both;
}

@keyframes premiumModalSurface {
  from { opacity: .78; transform: translate3d(0, 6px, 0) scale(.994); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.form-control,
.products-search-input,
.search-input,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"] {
  transition: border-color var(--motion-normal) var(--motion-ease), box-shadow var(--motion-normal) var(--motion-ease), background var(--motion-normal) var(--motion-ease), transform var(--motion-fast) var(--motion-press);
}

.form-control:focus,
.products-search-input:focus,
.search-input:focus,
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus {
  transform: translate3d(0, -1px, 0);
}

.is-invalid,
.form-control.is-invalid,
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  animation: premiumValidationShake 220ms var(--motion-press) both;
}

@keyframes premiumValidationShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

html[data-theme="dark"] .table tbody tr:hover {
  transform: none;
}

html[data-theme="dark"] .table tbody tr:hover > td {
  box-shadow: inset 2px 0 0 rgba(24,231,255,.32);
}

.delivered-item-row:hover,
.purchase-summary-card:hover,
.purchase-modal-product:hover {
  transform: translate3d(0, -.5px, 0);
  border-color: rgba(24, 231, 255, .22) !important;
}

.toast {
  position: relative;
  overflow: hidden;
  animation: premiumToastIn var(--motion-slow) var(--motion-emphasized) forwards;
}

.toast-message { min-width: 0; }

.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--cyber-cyan, var(--accent-500)), var(--cyber-green, var(--success)));
  transform-origin: left center;
  animation: premiumToastProgress var(--toast-duration, 3500ms) linear forwards;
  opacity: .82;
}

.toast.hiding { animation: premiumToastOut var(--motion-normal) var(--motion-ease) forwards; }

@keyframes premiumToastIn {
  from { opacity: 0; transform: translate3d(12px, 6px, 0) scale(.992); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes premiumToastOut {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; transform: translate3d(8px, 4px, 0) scale(.992); }
}

@keyframes premiumToastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.spinner,
.btn-purchase-loading svg,
.purchase-trust-item svg {
  animation-duration: 780ms;
}

.purchase-summary-row.total strong,
.stat-value,
.product-price-amount,
.product-price {
  transition: color var(--motion-normal) var(--motion-ease), text-shadow var(--motion-normal) var(--motion-ease), transform var(--motion-normal) var(--motion-ease);
}

.stat-card:hover .stat-value,
.product-card:hover .product-price-amount,
.product-card:hover .product-price {
  transform: translateY(-1px);
  text-shadow: 0 0 14px rgba(24, 231, 255, .10);
}

@media (max-width: 768px) {
  .motion-reveal,
  .motion-reveal.motion-visible {
    animation-delay: 0ms;
  }

  html[data-theme="dark"] .product-card:hover,
  html[data-theme="dark"] .stat-card:hover,
  html[data-theme="dark"] .dashboard-welcome:hover,
  html[data-theme="dark"] .card:hover,
  .btn:hover,
  .mobile-bottom-nav a:hover,
  .sidebar-link:hover,
  .pagination .page-link:hover {
    transform: none;
  }

  .modal.show .modal-dialog {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  html[data-theme="dark"] body,
  html[data-theme="dark"] body::after,
  html[data-theme="dark"] .product-card.is-pinned,
  html[data-theme="dark"] .product-card-pin-badge,
  html[data-theme="dark"] .related-product-pin,
  html[data-theme="dark"] .product-detail-pin-badge {
    animation: none !important;
  }

  .motion-reveal,
  .motion-reveal.motion-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}
