*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }

:root {
  --bg:          #f0f7ff;
  --bg-2:        #ffffff;
  --bg-3:        #e8f2ff;
  --bg-4:        #f5f9ff;
  --border:      #ccdff8;
  --border-2:    #a8c8f0;
  --text:        #0d1f3c;
  --text-2:      #4a628a;
  --text-3:      #8099be;
  --primary:     #2d8bff;
  --primary-dk:  #1a70e8;
  --primary-lt:  rgba(45,139,255,0.10);
  --success:     #00c47a;
  --success-bg:  #e6faf3;
  --danger:      #f04444;
  --danger-bg:   #fff0f0;
  --warning:     #ff6b35;
  --warning-bg:  #fff4ee;
  --amber:       #f59e0b;
  --purple:      #8b5cf6;
  --purple-bg:   #f5f3ff;
  --sidebar:     #060f1e;
  --sidebar-2:   #0a1a30;
  --sidebar-bdr: rgba(255,255,255,0.06);
  --sidebar-txt: rgba(255,255,255,0.78);
  --sidebar-act: rgba(45,139,255,0.18);
  --sidebar-w:   256px;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 2px 16px rgba(45,100,200,0.08);
  --shadow-lg:   0 8px 32px rgba(45,100,200,0.14);
  --shadow-xl:   0 16px 56px rgba(45,100,200,0.18);
  /* category colors */
  --cat-electronica:   #2d8bff;
  --cat-gaming:        #8b5cf6;
  --cat-cosmeticos:    #ec4899;
  --cat-moda_lujo:     #f59e0b;
  --cat-farmaceuticos: #00c47a;
  --cat-suplementos:   #06b6d4;
  --cat-juguetes:      #f97316;
  --cat-deportes:      #22c55e;
  --cat-hogar:         #64748b;
  --cat-mascotas:      #84cc16;
  --cat-contenido_restringido: #f04444;
  --cat-marcas_globales: #6366f1;
  --cat-personalizado: #94a3b8;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

/* ═══════════════════ SIDEBAR ═══════════════════ */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.28s ease;
}
.sidebar::after {
  content: '';
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, rgba(45,139,255,0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--sidebar-bdr);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--sidebar);
}

.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #2d8bff 0%, #0044cc 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(45,139,255,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 800; font-size: 14.5px; color: #fff; letter-spacing: -0.4px; }
.logo-tag  { font-size: 9.5px; font-weight: 700; color: rgba(45,139,255,0.9); letter-spacing: 2.5px; text-transform: uppercase; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 10px 16px;
  flex: 1;
  gap: 1px;
  position: relative;
  z-index: 1;
}

.nav-group-label {
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.20);
  letter-spacing: 2px;
  padding: 16px 10px 5px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8.5px 10px;
  border-radius: 9px;
  color: var(--sidebar-txt);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.13s;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
}
.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.65; transition: opacity 0.13s; }
.nav-item > span:first-of-type { flex: 1; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.88); }
.nav-item:hover svg { opacity: 0.95; }
.nav-item.active {
  background: var(--sidebar-act);
  color: #63b3ff;
  font-weight: 600;
}
.nav-item.active svg { stroke: #63b3ff; opacity: 1; }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--primary);
}

/* Config accordion */
.nav-item-parent {
  display: flex; align-items: center; gap: 9px;
  padding: 8.5px 10px; border-radius: 9px;
  color: var(--sidebar-txt); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.13s; position: relative;
  user-select: none; touch-action: manipulation;
}
.nav-item-parent:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.88); }
.nav-item-parent > span { flex: 1; }
.nav-item-parent.expanded { color: rgba(255,255,255,0.92); }
.nav-chevron { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.45; transition: transform 0.22s ease, opacity 0.15s; }
.nav-item-parent.expanded .nav-chevron { transform: rotate(90deg); opacity: 0.75; }
.nav-submenu { overflow: hidden; max-height: 0; transition: max-height 0.28s ease; }
.nav-sub-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px 7px 30px; border-radius: 8px;
  color: var(--sidebar-txt); font-size: 12.5px; font-weight: 500;
  text-decoration: none; transition: all 0.13s;
  margin: 1px 0; position: relative;
}
.nav-sub-item svg { opacity: 0.55; flex-shrink: 0; transition: opacity 0.13s; }
.nav-sub-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.88); }
.nav-sub-item:hover svg { opacity: 0.9; }
.nav-sub-item.active {
  background: var(--sidebar-act); color: #63b3ff; font-weight: 600;
}
.nav-sub-item.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 0 2px 2px 0; background: var(--primary);
}
.nav-sub-item.active svg { stroke: #63b3ff; opacity: 1; }

.nav-badge {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}
.nav-badge.danger { background: rgba(240,68,68,0.22); color: #ff9090; }

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--sidebar-bdr);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sidebar-txt);
  font-size: 11px;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: var(--sidebar);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.15); flex-shrink: 0; }
.status-dot.active { background: var(--success); box-shadow: 0 0 0 3px rgba(0,196,122,0.25); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 3px rgba(0,196,122,0.25)} 50%{box-shadow:0 0 0 5px rgba(0,196,122,0.12)} }

/* ═══════════════════ MAIN LAYOUT ═══════════════════ */
.main-content {
  position: absolute;
  left: var(--sidebar-w);
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.main-header {
  position: sticky; top: 0;
  background: rgba(240,247,255,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(45,100,200,0.05);
  min-width: 0;
  overflow: hidden;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.page-title  { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 10px; cursor: pointer;
  transition: background 0.15s;
  border: 1.5px solid var(--border);
  background: var(--bg-2);
}
.header-user:hover { background: var(--bg-3); border-color: var(--border-2); }
.user-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: #fff; font-size: 10px; font-weight: 700; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.user-name { font-size: 12.5px; font-weight: 600; color: var(--text-2); }

.section { padding: 24px 28px; flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; }
.hidden  { display: none !important; }

/* ═══════════════════ STAT CARDS ═══════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-card:nth-child(1)::before { background: linear-gradient(90deg, var(--primary), #60b3ff); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, var(--danger), #ff8080); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, var(--warning), #ffa06b); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, var(--success), #60e0ab); }

.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 19px; height: 19px; }
.stat-icon.blue   { background: rgba(45,139,255,0.10); color: var(--primary); }
.stat-icon.red    { background: rgba(240,68,68,0.10);  color: var(--danger); }
.stat-icon.orange { background: rgba(255,107,53,0.10); color: var(--warning); }
.stat-icon.green  { background: rgba(0,196,122,0.10);  color: var(--success); }
.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 30px; font-weight: 800; line-height: 1; color: var(--text); letter-spacing: -1px; }
.stat-label { color: var(--text-3); font-size: 11.5px; font-weight: 500; margin-top: 4px; }

/* ═══════════════════ DASHBOARD ═══════════════════ */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.quick-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px;
  background: var(--bg-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-2);
  cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit;
  text-align: center; transition: all 0.18s;
}
.quick-btn svg { width: 20px; height: 20px; }
.quick-btn:hover { background: var(--primary-lt); border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(45,139,255,0.14); }
.quick-btn:hover svg { stroke: var(--primary); }
.system-status { display: flex; flex-direction: column; gap: 12px; }
.status-row { display: flex; align-items: center; justify-content: space-between; }
.status-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.status-badge {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border);
}
.status-badge.success { background: var(--success-bg); color: var(--success); border-color: rgba(0,196,122,0.25); }
.status-badge.danger  { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(240,68,68,0.25); }

/* ═══════════════════ CARD ═══════════════════ */
.card {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
}
.card-header h3 { font-size: 13.5px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
.card-body { padding: 18px; }
.card-badge {
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  background: rgba(45,139,255,0.10); color: var(--primary); border: 1px solid rgba(45,139,255,0.20);
}

/* ═══════════════════ FORM ═══════════════════ */
.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  display: block; font-size: 10.5px; font-weight: 700; color: var(--text-2);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.6px;
}
.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select, textarea {
  width: 100%;
  background: var(--bg-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.15s;
  outline: none;
}
.form-group input::placeholder, textarea::placeholder { color: var(--text-3); }
.form-group input:focus, .form-group select:focus, textarea:focus {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(45,139,255,0.10);
}
.form-group select { cursor: pointer; }
.form-group select option { background: #fff; }
.input-group { position: relative; display: flex; align-items: center; }
.input-icon  { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; z-index: 1; }
.input-group input { padding-left: 40px; }
/* higher specificity to beat .form-group input[type="text/url"] (0-2-1) */
.form-group .input-group input { padding-left: 40px; }
.form-hint { margin-top: 6px; font-size: 11px; color: var(--text-3); line-height: 1.5; }
.form-row  { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.three-cols{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .three-cols { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 8px; margin-top: 8px; }
textarea { resize: vertical; width: 100%; padding: 10px 12px; }
.w-full { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 18px; }

/* ═══════════════════ BUTTONS ═══════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer;
  transition: all 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, #2d8bff 0%, #1766dd 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(45,139,255,0.30), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1a78e8 0%, #0a5cce 100%);
  box-shadow: 0 4px 16px rgba(45,139,255,0.40);
  transform: translateY(-1px);
}
.btn-success {
  background: linear-gradient(135deg, #00c47a 0%, #00a865 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,196,122,0.28), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-success:hover:not(:disabled) { background: linear-gradient(135deg, #00ae6c 0%, #008f58 100%); transform: translateY(-1px); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1.5px solid rgba(240,68,68,0.22); }
.btn-danger:hover { background: #ffe4e4; border-color: var(--danger); }
.btn-ghost { background: var(--bg-3); color: var(--text-2); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--primary); color: var(--primary); }
.btn-orange {
  background: linear-gradient(135deg, #ff6b35 0%, #e85520 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,107,53,0.28);
}
.btn-orange:hover { transform: translateY(-1px); }
.btn-sm  { padding: 6px 11px; font-size: 11.5px; }
.btn-icon{ padding: 7px; border-radius: var(--radius-sm); }

/* ═══════════════════ TOOLBAR ═══════════════════ */
.toolbar {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 18px; flex-wrap: wrap;
}
.search-box {
  display: flex; align-items: center;
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px; flex: 1; min-width: 200px; gap: 8px;
  transition: all 0.15s;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,139,255,0.08); }
.search-box svg { color: var(--text-3); flex-shrink: 0; }
.search-box input {
  background: transparent; border: none; padding: 8px 0;
  font-size: 13px; color: var(--text); outline: none; width: 100%;
}
.search-box input::placeholder { color: var(--text-3); }
.toolbar-select {
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 8px 12px; font-size: 13px; font-family: inherit;
  cursor: pointer; outline: none; transition: border-color 0.15s;
}
.toolbar-select:focus { border-color: var(--primary); }
.count-badge {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--bg-2); border: 1.5px solid var(--border);
  padding: 6px 12px; border-radius: var(--radius-sm); white-space: nowrap;
}
.count-badge.danger { color: var(--danger); border-color: rgba(240,68,68,0.3); background: var(--danger-bg); }

/* ═══════════════════ PRODUCTS GRID ═══════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

/* ═══════════════════ PRODUCT CARD ═══════════════════ */
.product-card {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  position: relative;
}
.product-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card.blocked {
  border-color: rgba(240,68,68,0.28);
  background: #fefafa;
}
.product-card.blocked:hover { border-color: var(--danger); }
.product-card.approved { border-color: rgba(0,196,122,0.22); }
.product-card.clickable { cursor: pointer; }

.product-img-wrap {
  width: 100%; height: 185px;
  background: linear-gradient(180deg, #f0f7ff 0%, #e8f2ff 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform 0.25s; }
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-img-gallery-hint {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,22,40,0.60));
  padding: 24px 8px 7px;
  font-size: 10px; color: rgba(255,255,255,0.9); text-align: center;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.product-card.clickable:hover .product-img-gallery-hint { opacity: 1; }

/* Amazon badges overlay */
.product-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 3px; z-index: 3;
}
.badge-bestseller {
  font-size: 9px; font-weight: 700; padding: 3px 7px;
  background: var(--warning); color: #fff; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.3px; line-height: 1;
}
.badge-choice {
  font-size: 9px; font-weight: 700; padding: 3px 7px;
  background: var(--primary); color: #fff; border-radius: 4px; line-height: 1;
}

/* Card checkbox */
.card-checkbox {
  position: absolute; top: 9px; right: 9px; z-index: 5;
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--border-2);
  background: rgba(255,255,255,0.95); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.card-checkbox.checked { background: var(--primary); border-color: var(--primary); color: #fff; }
.card-checkbox svg { opacity: 0; transition: opacity 0.1s; }
.card-checkbox.checked svg { opacity: 1; }

/* Status badge — always top-LEFT so it never collides with checkbox (top-RIGHT) */
.product-status-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 9px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.4px;
  z-index: 4; line-height: 1.4; max-width: calc(100% - 48px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.status-blocked  { background: var(--danger);  color: #fff; }
.status-approved { background: var(--success);  color: #fff; }
.status-active   { background: var(--primary);  color: #fff; }

/* Card body */
.product-body { padding: 13px 13px 9px; flex: 1; }
.product-title {
  font-size: 12.5px; font-weight: 500; color: var(--text);
  line-height: 1.45; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.rating-row { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.stars { display: flex; gap: 1px; }
.star  { font-size: 12px; line-height: 1; }
.rating-score { font-size: 12px; font-weight: 700; color: var(--amber); }
.rating-count { font-size: 10px; color: var(--text-3); }
.product-price { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 2px; line-height: 1; letter-spacing: -0.5px; }
.product-price-cop { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; letter-spacing: 0; }
.product-price-original { font-size: 11px; color: var(--text-3); text-decoration: line-through; margin-bottom: 5px; }

/* TRM strip */
.trm-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 9px 14px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.trm-strip-info { display: flex; align-items: center; gap: 8px; }
.trm-strip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}
.trm-strip-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
}
.trm-strip-val {
  font-size: 17px; font-weight: 800; color: var(--primary); letter-spacing: -0.4px;
}
.trm-strip-hint { font-size: 11px; color: var(--text-3); font-weight: 500; }
.trm-strip-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.trm-input {
  height: 32px; width: 150px; padding: 0 10px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text);
  font-size: 13px; font-family: inherit;
}
.trm-input:focus { outline: none; border-color: var(--primary); }
.trm-input::placeholder { color: var(--text-3); }
.product-meta { display: flex; gap: 5px; flex-wrap: wrap; }
.product-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 20px;
  background: var(--bg-3); color: var(--text-2);
  border: 1px solid var(--border); font-weight: 500;
}

/* Card footer */
.product-actions {
  display: flex; gap: 6px; padding: 9px 13px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fbff 0%, #f4f9ff 100%);
  flex-shrink: 0;
}
.pub-click-hint {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 6px; border-top: 1px solid var(--border);
  font-size: 10px; color: var(--text-3);
  background: linear-gradient(180deg, #f8fbff 0%, #f4f9ff 100%);
  transition: all 0.15s; cursor: pointer;
}
.product-card.clickable:hover .pub-click-hint { color: var(--primary); background: rgba(45,139,255,0.04); }

/* ═══════════════════ PROGRESS ═══════════════════ */
.progress-spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.75s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mprog { display: flex; align-items: flex-start; gap: 16px; padding: 4px 0; }
.mprog-spin { width: 40px; height: 40px; border-width: 3px; flex-shrink: 0; margin-top: 2px; }
.mprog-text { flex: 1; }
.mprog-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--text); }
.mprog-sub { color: var(--text-2); font-size: 13px; margin-bottom: 10px; }
.mprog-detail { color: var(--text-3); font-size: 11px; margin-top: 6px; }
.prog-bar-wrap {
  width: 100%; height: 6px; background: var(--bg-3);
  border-radius: 4px; overflow: hidden; border: 1px solid var(--border);
}
.prog-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #00c47a);
  border-radius: 4px; transition: width 0.4s ease; width: 0%;
}

/* ═══════════════════ RESULTS BAR ═══════════════════ */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
}
.results-summary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.results-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.res-chip {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--bg-3); border: 1px solid var(--border);
  padding: 4px 11px; border-radius: 20px;
}
.res-chip b { color: var(--text); }
.res-chip.green { background: var(--success-bg); border-color: rgba(0,196,122,0.25); }
.res-chip.green b { color: var(--success); }
.res-chip.red { background: var(--danger-bg); border-color: rgba(240,68,68,0.25); }
.res-chip.red b { color: var(--danger); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }

/* ═══════════════════ BLACKLIST ═══════════════════ */
.blacklist-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 800px) { .blacklist-layout { grid-template-columns: 1fr; } }
.blacklist-list-area { min-width: 0; }

/* Tag list (paginated rows) */
.blacklist-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow);
}

.bl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--bg-3);
  transition: background 0.12s;
}
.bl-row:last-child { border-bottom: none; }
.bl-row:hover { background: var(--bg-4); }

.bl-cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bl-nombre {
  flex: 1; font-size: 12.5px; font-weight: 500;
  color: var(--text); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.bl-cat-chip {
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.tag-remove {
  width: 22px; height: 22px; border-radius: 6px; border: none;
  background: transparent; color: var(--text-3);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; transition: all 0.12s; flex-shrink: 0;
}
.tag-remove:hover { background: var(--danger-bg); color: var(--danger); }

/* Pagination */
.bl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 2px;
  gap: 10px;
  flex-wrap: wrap;
}
.bl-page-info {
  font-size: 12px; color: var(--text-3); font-weight: 500;
}
.bl-page-btns { display: flex; gap: 5px; }
.bl-page-btn {
  padding: 5px 12px;
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
  color: var(--text-2); cursor: pointer; transition: all 0.14s; font-family: inherit;
}
.bl-page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--primary-lt); }
.bl-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.bl-page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ═══════════════════ IMPORT TABS ═══════════════════ */
.itabs-bar {
  display: flex; gap: 6px; margin-bottom: 18px;
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 5px;
  box-shadow: var(--shadow);
}
.itab {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: var(--radius-sm);
  border: none; background: transparent;
  color: var(--text-2); font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.15s;
  flex: 1; justify-content: center;
}
.itab:hover { background: var(--bg-3); color: var(--text); }
.itab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(45,139,255,0.30);
}
.ipanel { display: block; }
.ipanel.hidden { display: none !important; }

/* ═══════════════════ EMPTY STATE ═══════════════════ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px;
  padding: 80px 20px; color: var(--text-3); text-align: center;
}
.empty-state svg { opacity: 0.18; stroke: var(--text-3); }
.empty-state h3 { font-size: 17px; color: var(--text-2); font-weight: 700; }
.empty-state p  { font-size: 13px; max-width: 300px; line-height: 1.6; }

/* ═══════════════════ TOASTS ═══════════════════ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px; z-index: 9999;
}
.toast {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  min-width: 280px; max-width: 380px;
  box-shadow: 0 8px 28px rgba(45,100,200,0.14);
  animation: slideIn 0.22s ease; color: var(--text);
}
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--primary); }
.toast-icon { font-size: 15px; }
.toast-msg  { flex: 1; font-size: 13px; line-height: 1.4; }
.toast-close { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 16px; padding: 0 4px; }

/* ═══════════════════ MODAL ═══════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6,15,30,0.65); backdrop-filter: blur(10px);
  z-index: 1000; display: flex; align-items: center;
  justify-content: center; padding: 24px;
}
.modal-box {
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 18px; width: 100%; max-width: 940px;
  max-height: 90vh; overflow: hidden; position: relative;
  box-shadow: 0 32px 80px rgba(6,15,30,0.32);
}
.modal-close-btn {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  background: var(--bg-3); border: 1.5px solid var(--border);
  border-radius: 50%; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2); transition: all 0.15s;
}
.modal-close-btn:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.modal-inner { display: grid; grid-template-columns: 360px minmax(0, 1fr); max-height: 90vh; overflow: hidden; }
@media (max-width: 700px) { .modal-inner { grid-template-columns: 1fr; } }
.modal-gallery-side {
  background: linear-gradient(180deg, #eef6ff 0%, #e8f2ff 100%);
  border-right: 1.5px solid var(--border); display: flex; flex-direction: column;
}
.modal-main-img-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 24px; min-height: 280px;
}
.modal-main-img-wrap img { max-width: 100%; max-height: 300px; object-fit: contain; border-radius: 10px; transition: opacity 0.15s; }
.modal-thumbs-strip {
  display: flex; gap: 6px; padding: 10px 12px;
  overflow-x: auto; border-top: 1px solid var(--border);
  min-height: 72px; align-items: center; flex-shrink: 0;
  background: var(--bg-2);
}
.modal-thumb {
  width: 54px; height: 54px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer;
  background: var(--bg-3); display: flex; align-items: center;
  justify-content: center; transition: all 0.15s;
}
.modal-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.modal-thumb:hover { border-color: var(--primary); }
.modal-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(45,139,255,0.22); }
.modal-info-side { padding: 24px; overflow-y: auto; max-height: 90vh; }
.modal-badges-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.modal-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; border: 1px solid transparent; }
.modal-badge.active    { background: rgba(45,139,255,0.10); color: var(--primary); border-color: rgba(45,139,255,0.25); }
.modal-badge.blocked-b { background: var(--danger-bg); color: var(--danger); border-color: rgba(240,68,68,0.2); }
.modal-badge.asin-b    { background: rgba(245,158,11,0.10); color: var(--amber); border-color: rgba(245,158,11,0.25); }
.modal-item-title { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--text); margin-bottom: 10px; }
.modal-price-display { margin: 10px 0; }
.modal-price-main { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: -1px; }
.modal-price-orig { font-size: 13px; color: var(--text-3); text-decoration: line-through; margin-left: 8px; }
.modal-divider { height: 1px; background: var(--border); margin: 14px 0; }
.modal-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.modal-meta-item { background: var(--bg-4); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; }
.modal-meta-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-3); margin-bottom: 3px; }
.modal-meta-value { font-size: 13px; font-weight: 600; color: var(--text); }
.modal-specs-title { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.6px; margin: 14px 0 8px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 6px 0; font-size: 12px; vertical-align: top; }
.specs-table td:first-child { color: var(--text-3); width: 45%; padding-right: 10px; }
.specs-table td:last-child  { color: var(--text); font-weight: 500; }
.modal-footer-btns { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* ═══════════════════ COMING SOON ═══════════════════ */
.coming-soon-card {
  max-width: 520px; margin: 40px auto;
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 18px; padding: 44px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cs-icon { font-size: 52px; margin-bottom: 18px; display: block; }
.coming-soon-card h2 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 10px; letter-spacing: -0.4px; }
.coming-soon-card p  { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 26px; }
.cs-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 30px; text-align: left; }
.cs-feature  { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.cs-check    { color: var(--success); font-weight: 700; width: 18px; height: 18px; background: var(--success-bg); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.cs-pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 7px 20px;
  border-radius: 20px; background: var(--primary-lt); color: var(--primary);
  border: 1.5px solid rgba(45,139,255,0.25); letter-spacing: 0.5px;
}

/* ═══════════════════ PLANS ═══════════════════ */
.plans-header { text-align: center; margin-bottom: 32px; }
.plans-title  { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; margin-bottom: 8px; }
.plans-sub    { font-size: 14px; color: var(--text-2); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; max-width: 420px; } }

.plan-card {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.22s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45,139,255,0.08), var(--shadow-lg);
  background: linear-gradient(180deg, #f0f8ff 0%, #ffffff 30%);
}
.plan-card.enterprise {
  border-color: rgba(255,107,53,0.35);
  background: linear-gradient(180deg, #fff7f4 0%, #ffffff 30%);
}

.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 800; padding: 5px 16px; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: #fff; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(45,139,255,0.38);
}

.plan-icon  { font-size: 36px; margin-bottom: 14px; display: block; }
.plan-name  { font-size: 12px; font-weight: 800; color: var(--text-3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 2.5px; }
.plan-price { font-size: 48px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 6px; letter-spacing: -2px; }
.plan-price span { font-size: 15px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.plan-desc  { font-size: 12.5px; color: var(--text-3); margin-bottom: 22px; line-height: 1.5; }

.plan-features {
  list-style: none; text-align: left; margin-bottom: 26px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.plan-features li {
  font-size: 13px; color: var(--text-2);
  display: flex; align-items: flex-start; gap: 9px; line-height: 1.4;
}
.plan-features li::before {
  content: '✓'; color: var(--success); font-weight: 800;
  font-size: 11px; width: 16px; height: 16px;
  background: var(--success-bg); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.plan-features li.disabled { color: var(--text-3); }
.plan-features li.disabled::before { content: '×'; background: var(--bg-3); color: var(--border-2); }

.plan-btn { margin-top: auto; }

.plans-footer {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 28px; font-size: 12px; color: var(--text-3);
  max-width: 980px; margin-left: auto; margin-right: auto;
}

/* ═══════════════════ CONFIG ═══════════════════ */
.config-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 700px) { .config-layout { grid-template-columns: 1fr; } }
.config-sidebar {
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 6px;
  display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow);
}
.config-tab {
  padding: 9px 14px; border: none; border-radius: 8px;
  background: transparent; color: var(--text-2); font-size: 13px;
  font-weight: 500; font-family: inherit; cursor: pointer;
  text-align: left; transition: all 0.14s;
}
.config-tab:hover { background: var(--bg-3); color: var(--text); }
.config-tab.active { background: var(--primary-lt); color: var(--primary); font-weight: 600; }
.config-panel { display: none; }
.config-panel.active { display: block; }
.config-tab { display: flex; align-items: center; gap: 8px; }
.config-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text-3); padding: 4px 14px 2px; text-transform: uppercase;
  margin-top: 4px;
}
.card-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  background: var(--primary-lt); color: var(--primary);
  border-radius: 20px; letter-spacing: 0.02em;
}
.card-header { display: flex; align-items: center; gap: 10px; }
.card-header h3 { flex: 1; }
.config-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-3);
  margin: 4px 0 10px; padding-top: 12px; border-top: 1px solid var(--border);
}
.form-row.three-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 13.5px; font-family: inherit;
  resize: vertical; min-height: 70px; transition: border-color 0.15s;
}
textarea:focus { outline: none; border-color: var(--primary); }
.form-hint { font-size: 11.5px; color: var(--text-3); margin: 4px 0 0; line-height: 1.4; }
.config-toggles { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.config-toggle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 13px 15px;
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.config-toggle:hover { border-color: var(--border-2); box-shadow: 0 2px 8px rgba(45,100,200,0.05); }

/* ── Config field rows ── */
.cfg-fields {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-2);
}
.cfg-field-row {
  display: flex; align-items: center;
  gap: 14px; padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.cfg-field-row:last-child { border-bottom: none; }
.cfg-field-row:hover { background: var(--bg-3); }
.cfg-field-row:focus-within { background: rgba(45,139,255,0.03); }

.cfg-field-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.cfg-icon-pct    { background: rgba(45,139,255,0.12); color: #2d8bff; }
.cfg-icon-meli   { background: rgba(249,115,22,0.12); color: #f97316; }
.cfg-icon-danger { background: rgba(240,68,68,0.11);  color: #f04444; }
.cfg-icon-usd    { background: rgba(0,196,122,0.12);  color: #00c47a; }
.cfg-icon-days   { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.cfg-icon-fx     { background: rgba(245,158,11,0.12); color: #f59e0b; }
.cfg-icon-mult   { background: rgba(14,165,233,0.12); color: #0ea5e9; }

.cfg-field-body { flex: 1; min-width: 0; }
.cfg-field-label { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cfg-field-desc  { font-size: 11px; color: var(--text-3); margin-top: 2px; line-height: 1.3; }

.cfg-field-control { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cfg-val-input {
  width: 80px; text-align: right;
  padding: 7px 10px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text);
  font-size: 14px; font-weight: 700; font-family: inherit;
  outline: none; transition: all 0.15s;
}
.cfg-val-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,139,255,0.08); background: #fff; }
.cfg-val-unit { font-size: 12px; font-weight: 600; color: var(--text-3); min-width: 24px; }
.cfg-val-select {
  padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 13px; font-family: inherit;
  outline: none; cursor: pointer; transition: border-color 0.15s; max-width: 220px;
}
.cfg-val-select:focus { border-color: var(--primary); }
.cfg-val-text {
  width: 100%; margin-top: 6px; padding: 7px 10px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 13px; font-family: inherit;
  outline: none; transition: border-color 0.15s;
}
.cfg-val-text:focus { border-color: var(--primary); }
.cfg-field-row-full { align-items: flex-start; }
.cfg-field-row-full .cfg-field-body { padding-top: 1px; }
.toggle { position: relative; display: inline-block; width: 42px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; background: var(--border-2);
  border-radius: 24px; cursor: pointer; transition: 0.2s;
}
.slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  left: 3px; bottom: 3px; background: #fff;
  transition: 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.toggle input:checked + .slider { background: var(--primary); }
.toggle input:checked + .slider::before { transform: translateX(18px); }

/* ═══════════════════ SCROLLBAR ═══════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ═══════════════════ MISC ═══════════════════ */
.svg-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* Category color helpers used by JS */
.cat-electronica   { background: rgba(45,139,255,0.12);  color: #2d8bff; }
.cat-gaming        { background: rgba(139,92,246,0.12);  color: #8b5cf6; }
.cat-cosmeticos    { background: rgba(236,72,153,0.12);  color: #ec4899; }
.cat-moda_lujo     { background: rgba(245,158,11,0.14);  color: #d97706; }
.cat-farmaceuticos { background: rgba(0,196,122,0.12);   color: #00a865; }
.cat-suplementos   { background: rgba(6,182,212,0.12);   color: #0891b2; }
.cat-juguetes      { background: rgba(249,115,22,0.12);  color: #ea6c15; }
.cat-deportes      { background: rgba(34,197,94,0.12);   color: #16a34a; }
.cat-hogar         { background: rgba(100,116,139,0.12); color: #475569; }
.cat-mascotas      { background: rgba(132,204,22,0.12);  color: #65a30d; }
.cat-contenido_restringido { background: rgba(240,68,68,0.12); color: #dc2626; }
.cat-marcas_globales { background: rgba(99,102,241,0.12); color: #4f46e5; }
.cat-personalizado { background: rgba(148,163,184,0.12); color: #64748b; }
.cat-default       { background: var(--bg-3); color: var(--text-3); }

/* ═══════════════════ HAMBURGER & SIDEBAR OVERLAY ═══════════════════ */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  color: var(--text-2);
  flex-shrink: 0;
  transition: background 0.15s;
}
.hamburger-btn:hover { background: var(--bg-3); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(6,15,30,0.48);
  backdrop-filter: blur(2px);
}
body.sb-open .sidebar-overlay { display: block; }

/* Smooth slide transition for sidebar on all sizes */
.sidebar { transition: transform 0.28s ease; }

/* ═══════════════════ AMAZON PRIME TOGGLE ═══════════════════ */
.prime-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-top: 14px;
  background: rgba(0,168,225,0.06);
  border: 1.5px solid rgba(0,168,225,0.18);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
  touch-action: manipulation;
}
.prime-toggle:hover { background: rgba(0,168,225,0.1); border-color: rgba(0,168,225,0.3); }
.prime-toggle.is-checked { background: rgba(0,168,225,0.13); border-color: rgba(0,168,225,0.55); }
.prime-toggle input[type="checkbox"] { display: none; }
.prime-toggle-check {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid rgba(0,168,225,0.35);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
  color: transparent;
}
.prime-toggle.is-checked .prime-toggle-check {
  background: #00A8E1;
  border-color: #00A8E1;
  color: #fff;
}
.prime-toggle-content { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prime-toggle-logo {
  font-size: 10px; font-weight: 800; color: #00A8E1;
  background: rgba(0,168,225,0.12);
  padding: 2px 7px; border-radius: 4px;
  border: 1px solid rgba(0,168,225,0.25);
  letter-spacing: 0.5px; flex-shrink: 0;
}
.prime-toggle-title { font-size: 13px; font-weight: 600; color: var(--text); }
.prime-toggle-sub { font-size: 11px; color: var(--text-3); }

/* Badge Prime en tarjetas de producto */
.prime-card-badge {
  font-size: 9px; font-weight: 800;
  color: #00A8E1;
  background: rgba(0,168,225,0.12);
  border: 1px solid rgba(0,168,225,0.28);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* Chip azul para Prime en resultados */
.res-chip.blue { background: rgba(0,168,225,0.1); border-color: rgba(0,168,225,0.3); }
.res-chip.blue b { color: #00A8E1; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */

/* Tablet: slightly narrower sidebar */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .section { padding: 18px 20px; }
}

/* Mobile: sidebar off-canvas, hamburger visible */
@media (max-width: 768px) {
  :root { --sidebar-w: 256px; }
  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }
  body.sb-open .sidebar {
    transform: translateX(0);
  }
  .main-content {
    left: 0 !important;
  }
  .hamburger-btn { display: flex; }
  .section { padding: 14px 12px; }
  .stats-grid { gap: 10px; }
  .dashboard-grid { gap: 10px; }
  .trm-strip { padding: 8px 10px; }
  .main-header { padding: 10px 14px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 24px; }
  .stat-icon { width: 38px; height: 38px; }
}

/* ═══════════════════ SIMULADOR ═══════════════════ */
.sim-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) { .sim-layout { grid-template-columns: 1fr; } }

.sim-left  { display: flex; flex-direction: column; }
.sim-right { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; }

/* Input rows */
.sim-inp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.sim-inp-row:last-child { border-bottom: none; }
.sim-inp-label {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  flex: 1; min-width: 0;
}
.sim-inp-field {
  flex: 1; padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 13px; outline: none;
}
.sim-inp-field:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,139,255,0.08); }
.sim-inp-select {
  flex: 1; padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 12.5px; outline: none; cursor: pointer;
}
.sim-val-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sim-val-input {
  width: 82px; text-align: right; padding: 7px 9px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 14px; font-weight: 700; outline: none;
}
.sim-val-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,139,255,0.08); }
.sim-val-unit { font-size: 11px; font-weight: 700; color: var(--text-3); min-width: 36px; }

/* Block letter badge (left panel headers) */
.sim-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}

/* Result blocks (right panel) */
.sim-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 24px; text-align: center;
  background: var(--bg-2); border: 1.5px dashed var(--border); border-radius: 14px;
  color: var(--text-3); font-size: 14px; line-height: 1.6;
}

.sim-block {
  background: var(--bg-2); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden;
}
.sim-block-hdr {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--bg-3); border-bottom: 1.5px solid var(--border);
  font-size: 11px; font-weight: 800; color: var(--text-2); letter-spacing: 0.5px;
}
.sim-block-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 5px; font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.sim-block-currency {
  margin-left: auto; font-size: 10px; font-weight: 700;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 6px; color: var(--text-3);
}
.sim-block-body { padding: 0; }
.sim-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}
.sim-line:last-child { border-bottom: none; }
.sim-line span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.sim-line-total {
  background: var(--bg-3);
}
.sim-line-total span:first-child { font-weight: 700; color: var(--text); }
.sim-line-total span:last-child  { font-weight: 800; font-size: 14px; }

/* Final price card */
.sim-price-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, rgba(45,139,255,0.08), rgba(0,196,122,0.06));
  border: 2px solid rgba(45,139,255,0.25); border-radius: 12px;
  padding: 16px 18px;
}
.sim-price-label { display: block; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }
.sim-price-sub   { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.sim-price-val   { font-size: 26px; font-weight: 900; color: var(--text); letter-spacing: -1px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Profit block */
.sim-profit-block {
  background: rgba(0,196,122,0.05); border: 2px solid rgba(0,196,122,0.25);
  border-radius: 12px; overflow: hidden;
}
.sim-profit-title {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px; color: #00c47a;
  background: rgba(0,196,122,0.08); border-bottom: 1.5px solid rgba(0,196,122,0.2);
}
.sim-profit-body { padding: 0; }
.sim-profit-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px; border-bottom: 1px solid rgba(0,196,122,0.12);
  font-size: 13px; color: var(--text-2);
}
.sim-profit-line:last-child { border-bottom: none; }
.sim-profit-line span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.sim-profit-pos    span:last-child { color: var(--text); }
.sim-profit-deduct span:last-child { color: #f04444; }
.sim-profit-divider {
  height: 2px; margin: 0 14px; background: rgba(0,196,122,0.3); border-radius: 2px;
}
.sim-profit-result { background: rgba(0,196,122,0.07); }
.sim-profit-result span:first-child { font-weight: 800; color: var(--text); font-size: 13.5px; }
.sim-profit-result span:last-child  { font-size: 18px; font-weight: 900; }

/* ═══════════════════ REPORTES ═══════════════════ */
.rep-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
}
.rep-toolbar-left  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rep-toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.rep-period-group { display: flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.rep-period-btn {
  padding: 7px 14px; font-size: 12px; font-weight: 600; color: var(--text-3);
  background: transparent; border: none; cursor: pointer; transition: all 0.12s;
}
.rep-period-btn:not(:last-child) { border-right: 1.5px solid var(--border); }
.rep-period-btn:hover   { background: var(--bg-3); color: var(--text); }
.rep-period-btn.active  { background: var(--primary); color: #fff; }

.rep-date-group { display: flex; align-items: center; gap: 6px; }
.rep-date-inp {
  padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--bg-2); color: var(--text); font-size: 12px; outline: none;
}
.rep-date-inp:focus { border-color: var(--primary); }
.rep-date-sep { color: var(--text-3); font-size: 14px; }

/* KPI Grid */
.rep-kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px;
}
@media (max-width: 900px) { .rep-kpi-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .rep-kpi-grid { grid-template-columns: 1fr; } }

.rep-kpi-card {
  background: var(--bg-2); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 16px 18px; display: flex; align-items: flex-start; gap: 12px;
  box-shadow: var(--shadow);
}
.rep-kpi-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.rep-kpi-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rep-kpi-label { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; }
.rep-kpi-val   { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.rep-kpi-sub   { font-size: 11px; color: var(--text-3); }

/* Main table */
.rep-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rep-table th {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.4px;
  padding: 10px 14px; text-align: left;
  background: var(--bg-3); border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
.rep-table td {
  padding: 11px 14px; color: var(--text-2);
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.rep-table tbody tr:hover:not(.rep-comp-row) { background: var(--bg-3); }

.rep-producto-title { display: block; font-weight: 600; color: var(--text); font-size: 12.5px; }
.rep-order-id       { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.rep-asin {
  font-family: monospace; font-size: 11px; font-weight: 700;
  background: var(--bg-3); border-radius: 5px; padding: 2px 6px; color: var(--text-2);
}
.rep-roi-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px; white-space: nowrap;
}

/* Competitor expansion row */
.rep-comp-row td { padding: 0; border-bottom: 1px solid var(--border); }
.rep-comp-body { background: var(--bg-3); }
.rep-comp-stats {
  display: grid; grid-template-columns: repeat(4,1fr) 1fr 1fr; gap: 1px;
  border-bottom: 1px solid var(--border);
}
.rep-comp-stat {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 14px; background: var(--bg-3);
}
.rep-comp-stat-lbl { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; }
.rep-comp-stat-val { font-size: 14px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.rep-comp-list  { display: flex; flex-direction: column; gap: 0; }
.rep-comp-item  {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; border-top: 1px solid var(--border); font-size: 12px;
}
.rep-comp-item-title { color: var(--text-2); flex: 1; margin-right: 12px; }
.rep-comp-item-price { font-weight: 700; color: var(--text); white-space: nowrap; }

/* Pagination */
.rep-pagination { padding: 12px 16px; }
.rep-page-wrap  { display: flex; gap: 6px; flex-wrap: wrap; }
.rep-page-btn {
  padding: 5px 11px; border-radius: 7px; font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--bg-2); color: var(--text-2); cursor: pointer;
}
.rep-page-btn:hover  { background: var(--bg-3); color: var(--text); }
.rep-page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Order modal preview */
.ord-preview {
  background: var(--bg-3); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 4px;
}
.ord-preview-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px;
  font-size: 13px; color: var(--text-2);
}
.ord-preview-grid strong { color: var(--text); font-size: 14px; }

/* ═══════════════════ SINCRONIZACIÓN ═══════════════════ */
.sync-layout { display: flex; flex-direction: column; gap: 20px; max-width: 780px; }

.sync-trm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sync-trm-display { display: flex; align-items: baseline; gap: 8px; }
.sync-trm-val { font-size: 32px; font-weight: 800; color: var(--text); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.sync-trm-sub { font-size: 13px; font-weight: 600; color: var(--text-3); }
.sync-trm-updated { font-size: 11px; color: var(--text-3); text-align: right; }

/* Formula steps */
.sync-formula { display: flex; flex-direction: column; gap: 10px; }
.sync-formula-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; background: var(--bg-3); border-radius: 10px;
  border: 1px solid var(--border);
}
.sync-formula-num {
  min-width: 22px; height: 22px; border-radius: 50%;
  background: rgba(45,139,255,0.15); color: var(--primary);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.sync-formula-detail { display: flex; flex-direction: column; gap: 3px; }
.sync-formula-eq   { font-size: 13px; font-weight: 600; color: var(--text); font-family: 'Courier New', monospace; }
.sync-formula-note { font-size: 11px; color: var(--text-3); }

/* Result grid */
.sync-result-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.sync-stat {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-3); border-radius: 10px; padding: 12px 14px;
  border: 1px solid var(--border);
}
.sync-stat-val { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.sync-stat-lbl { font-size: 11px; color: var(--text-3); }

.card-badge.success { background: rgba(0,196,122,0.12); color: #00c47a; border-color: rgba(0,196,122,0.25); }

/* Sync calculator */
.sync-calc-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.sync-calc-input-wrap {
  display: flex; align-items: center; gap: 0;
  background: var(--bg); border: 2px solid var(--border); border-radius: 10px;
  overflow: hidden; flex: 1; min-width: 140px;
  transition: border-color 0.15s;
}
.sync-calc-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,139,255,0.1); }
.sync-calc-prefix {
  padding: 10px 10px 10px 13px; font-size: 12px; font-weight: 700;
  color: var(--text-3); white-space: nowrap; background: var(--bg-3);
  border-right: 1.5px solid var(--border);
}
.sync-calc-input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 10px 12px; font-size: 16px; font-weight: 700;
  color: var(--text); font-variant-numeric: tabular-nums; min-width: 0;
}
.sync-calc-arrow {
  font-size: 20px; color: var(--text-3); flex-shrink: 0; padding: 0 4px;
}
.sync-calc-result-wrap {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,196,122,0.07); border: 2px solid rgba(0,196,122,0.25);
  border-radius: 10px; padding: 10px 14px; flex: 1; min-width: 160px;
}
.sync-calc-prefix-cop { font-size: 12px; font-weight: 700; color: #00c47a; white-space: nowrap; }
.sync-calc-result {
  font-size: 20px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
}

/* Sync formula table */
.sync-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.sync-table th {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 8px 14px; text-align: left;
  background: var(--bg-3); border-bottom: 1.5px solid var(--border);
}
.sync-table th:nth-child(2),
.sync-table th:nth-child(3) { text-align: right; }
.sync-table td {
  padding: 9px 14px; color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.sync-table td:nth-child(2),
.sync-table td:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.sync-table tbody tr:hover:not(.sync-tr-divider) { background: var(--bg-3); }

.sync-tr-base td  { background: rgba(45,139,255,0.04); }
.sync-tr-subtotal td { background: var(--bg-3); color: var(--text); border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); }
.sync-tr-final td { background: rgba(0,196,122,0.07); color: var(--text); border-top: 2px solid rgba(0,196,122,0.3); font-size: 14px; }
.sync-tr-divider td { border-bottom: none; }

.sync-label { font-weight: 600; color: var(--text); display: block; }
.sync-sub   { font-size: 11px; color: var(--text-3); display: block; margin-top: 1px; }

.sync-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px; white-space: nowrap;
}
.sync-tag-input  { background: rgba(45,139,255,0.12);  color: #2d8bff; }
.sync-tag-cost   { background: rgba(139,92,246,0.12);  color: #8b5cf6; }
.sync-tag-tax    { background: rgba(240,68,68,0.10);   color: #f04444; }
.sync-tag-meli   { background: rgba(249,115,22,0.12);  color: #f97316; }
.sync-tag-margin { background: rgba(0,196,122,0.12);   color: #00c47a; }
