/* ═══════════════════════════════════════════════════════════════
   PRICING.AR — GLOBAL DESIGN SYSTEM v4
   Modo:       Beige cálido · Classy warm light
   Tipografía: Space Grotesk (títulos) + DM Sans (body)
   Accent:     Sienna #A0522D · único, refinado, no genérico
   ═══════════════════════════════════════════════════════════════ */
 
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');
 
:root {
  /* Backgrounds */
  --bg-base:        #F5EFE6;
  --bg-surface:     #FBF7F2;
  --bg-elevated:    #EDE3D8;
  --bg-overlay:     #E4D9CB;
  --bg-sidebar:     #EDE3D8;
 
  /* Brand — sienna cálido */
  --brand:          #A0522D;
  --brand-dark:     #7C3D20;
  --brand-light:    #C2703F;
  --brand-border:   rgba(160,82,45,0.22);
  --brand-soft:     rgba(160,82,45,0.07);
  --brand-gradient: linear-gradient(135deg, #A0522D 0%, #C2703F 100%);
 
  /* Peligro */
  --danger:         #C0392B;
  --danger-dark:    #922B21;
  --danger-text:    #7B241C;
  --danger-soft:    rgba(192,57,43,0.06);
  --danger-border:  rgba(192,57,43,0.18);
 
  /* Éxito */
  --success:        #1E8449;
  --success-text:   #196F3D;
  --success-soft:   rgba(30,132,73,0.07);
  --success-border: rgba(30,132,73,0.2);
 
  /* Advertencia */
  --warning:        #CA6F1E;
  --warning-text:   #A04000;
  --warning-soft:   rgba(202,111,30,0.07);
 
  /* Info */
  --info:           #1A5276;
  --info-text:      #154360;
  --info-soft:      rgba(26,82,118,0.07);
 
  /* Texto — marrón cálido, nunca negro puro */
  --text-primary:   #1A110A;
  --text-secondary: #6B4F3A;
  --text-muted:     #9C8070;
  --text-disabled:  #C4AFA4;
 
  /* Bordes */
  --border:         rgba(26,17,10,0.09);
  --border-strong:  rgba(26,17,10,0.16);
  --border-brand:   rgba(160,82,45,0.22);
 
  /* Radios */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-pill: 999px;
 
  /* Sombras cálidas */
  --shadow-xs:   0 1px 2px rgba(26,17,10,0.06);
  --shadow-sm:   0 1px 4px rgba(26,17,10,0.08), 0 0 0 1px rgba(26,17,10,0.04);
  --shadow-md:   0 4px 16px rgba(26,17,10,0.10);
  --shadow-lg:   0 12px 40px rgba(26,17,10,0.14);
  --shadow-brand:0 4px 20px rgba(160,82,45,0.22);
 
  /* Transiciones */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
 
  /* Tipografía */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}
 
/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
 
body {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}
 
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
 
.kpi-value, [class*="stat-value"] {
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
 
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: var(--font-body); }
img { max-width: 100%; display: block; }
 
/* ── Layout ────────────────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; background: var(--bg-base); }
 
/* ── Sidebar ───────────────────────────────────────────────────── */
.sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; padding: 20px 0;
}
 
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px 18px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.03em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
 
.sidebar-logo-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff;
  box-shadow: var(--shadow-brand); flex-shrink: 0;
}
 
.sidebar-nav {
  flex: 1; padding: 4px 10px;
  display: flex; flex-direction: column;
  gap: 1px; overflow-y: auto;
}
 
.nav-section-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-disabled); padding: 14px 10px 5px;
  font-family: var(--font-body);
}
 
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer; border: none; background: transparent;
  width: 100%; text-align: left;
  transition: all var(--transition-fast);
  text-decoration: none; font-family: var(--font-body);
}
.nav-item:hover:not(.disabled):not(.active) {
  background: var(--bg-overlay);
  color: var(--text-primary);
}
.nav-item.active {
  background: var(--bg-surface);
  color: var(--brand); font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.nav-item.active i { color: var(--brand); }
.nav-item.disabled { opacity: 0.4; cursor: not-allowed; }
.nav-item i { font-size: 17px; flex-shrink: 0; color: var(--text-muted); }
 
/* ── Sidebar user ──────────────────────────────────────────────── */
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin: 8px 10px 0;
  border-radius: var(--radius-md); cursor: pointer;
  border-top: 1px solid var(--border);
  transition: background var(--transition-fast);
}
.sidebar-user:hover { background: var(--bg-overlay); }
 
.sidebar-user-avatar {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-plan { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
 
.user-menu {
  position: absolute; bottom: calc(100% + 6px); left: 10px; right: 10px;
  background: var(--bg-surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 6px;
  display: none; z-index: 200; box-shadow: var(--shadow-lg);
}
.user-menu.open { display: block; }
.user-menu-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px; border: none; background: transparent;
  border-radius: var(--radius-md); font-size: 13px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; font-family: var(--font-body);
  transition: all var(--transition-fast); text-align: left;
}
.user-menu-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.user-menu-item.danger:hover { color: var(--danger-text); background: var(--danger-soft); }
.user-menu-item i { font-size: 15px; }
 
/* ── Main ──────────────────────────────────────────────────────── */
.app-main {
  flex: 1;
  margin-left: 220px;
  padding: 28px 32px;
  min-height: 100vh;
}
 
/* ── App header ────────────────────────────────────────────────── */
.app-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.app-header-title { flex: 1; min-width: 0; }
.app-header-title h1 { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.app-header-title p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.app-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
 
.app-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0 12px; height: 36px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.app-search:focus-within { border-color: var(--brand-border); box-shadow: 0 0 0 3px rgba(160,82,45,0.08); }
.app-search i { color: var(--text-muted); font-size: 16px; }
.app-search input { background: transparent; border: none; outline: none; color: var(--text-primary); font-size: 13px; width: 180px; font-family: var(--font-body); }
.app-search input::placeholder { color: var(--text-disabled); }
 
/* ── Botones ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; height: 36px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; font-family: var(--font-body);
  border: none; cursor: pointer; transition: all var(--transition-fast);
  white-space: nowrap; text-decoration: none; line-height: 1;
}
.btn i { font-size: 16px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14px; }
 
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text-primary); }
.btn-danger { background: var(--danger-soft); color: var(--danger-text); border: 1px solid var(--danger-border); }
.btn-danger:hover { background: rgba(192,57,43,0.10); }
 
/* ── KPI Strip ─────────────────────────────────────────────────── */
.kpi-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
 
.kpi-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}
.kpi-card:hover { box-shadow: var(--shadow-md); }
.kpi-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand-gradient); opacity: 0; transition: opacity var(--transition-fast);
}
.kpi-card:hover::after { opacity: 1; }
.kpi-card.has-alert { border-color: var(--danger-border); }
.kpi-card.has-alert::after { background: linear-gradient(90deg,#C0392B,#C2703F); opacity: 1; }
 
.kpi-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.kpi-card-icon i { font-size: 18px; color: var(--text-muted); }
.kpi-card.has-alert .kpi-card-icon { background: var(--danger-soft); border-color: var(--danger-border); }
.kpi-card.has-alert .kpi-card-icon i { color: var(--danger); }
 
.kpi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-disabled); margin-bottom: 4px; }
.kpi-value { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; color: var(--text-primary); }
.kpi-value.win   { color: var(--success-text); }
.kpi-value.lose  { color: var(--danger-text); }
.kpi-value.empty { color: var(--text-disabled); }
.kpi-sub { font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
 
/* ── Dots ──────────────────────────────────────────────────────── */
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot.green  { background: var(--success); }
.dot.red    { background: var(--danger); }
.dot.grey   { background: var(--text-disabled); }
.dot.orange { background: var(--brand); }
 
/* ── Auto-update bar ───────────────────────────────────────────── */
.auto-update-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 10px 16px; margin-bottom: 20px;
  box-shadow: var(--shadow-xs); transition: border-color var(--transition-fast);
}
.auto-update-bar.active { border-color: var(--brand-border); }
.auto-update-left { display: flex; align-items: center; gap: 16px; }
.auto-update-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-disabled); transition: all var(--transition-normal); }
.auto-update-bar.active .status-dot { background: var(--brand); box-shadow: 0 0 6px rgba(160,82,45,0.4); animation: pulseDot 2s ease-in-out infinite; }
.auto-update-bar.active .auto-update-status { color: var(--text-secondary); }
.auto-update-last { font-size: 12px; color: var(--text-disabled); }
.auto-update-right { display: flex; align-items: center; gap: 10px; }
@keyframes pulseDot { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.3);opacity:.7} }
 
.interval-select { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-secondary); font-size: 12px; padding: 4px 8px; cursor: pointer; font-family: var(--font-body); }
.interval-select:focus { outline: none; border-color: var(--brand-border); }
 
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.toggle-switch input { display: none; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg-overlay); border-radius: var(--radius-pill); border: 1px solid var(--border-strong); transition: all .25s; }
.toggle-slider::before { content:''; position:absolute; width:16px;height:16px;left:2px;top:2px;background:#fff;border-radius:50%;transition:all .25s;box-shadow:0 1px 3px rgba(26,17,10,.2); }
.toggle-switch input:checked + .toggle-slider { background: var(--brand); border-color: var(--brand-dark); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
 
/* ── Products toolbar ──────────────────────────────────────────── */
.products-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 4px; }
.filter-tab { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; font-family: var(--font-body); border: 1px solid transparent; cursor: pointer; background: transparent; color: var(--text-muted); transition: all var(--transition-fast); }
.filter-tab:hover { background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-xs); }
.filter-tab.active { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border); font-weight: 600; box-shadow: var(--shadow-sm); }
.filter-tab.alert-tab.active { color: var(--danger-text); border-color: var(--danger-border); background: var(--danger-soft); }
.tab-count { font-size: 11px; font-weight: 700; background: var(--bg-elevated); padding: 1px 6px; border-radius: var(--radius-pill); color: var(--text-muted); font-family: var(--font-display); }
.toolbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.category-filter { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-secondary); font-size: 12px; padding: 6px 10px; cursor: pointer; font-family: var(--font-body); box-shadow: var(--shadow-xs); }
.category-filter:focus { outline: none; border-color: var(--brand-border); }
 
/* ── Product cards ─────────────────────────────────────────────── */
.products-list { display: flex; flex-direction: column; gap: 6px; }
.product-card { display: flex; align-items: center; gap: 14px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow-xs); transition: all var(--transition-fast); }
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-1px); }
.product-card.has-alert { border-left: 3px solid var(--danger); padding-left: 13px; }
.product-checkbox { width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; accent-color: var(--brand); }
.product-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.product-icon i { font-size: 17px; color: var(--text-muted); }
.product-info { flex: 1; min-width: 0; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.sep { color: var(--text-disabled); font-size: 10px; }
.product-price { text-align: right; flex-shrink: 0; }
.product-price-value { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -0.03em; color: var(--text-primary); }
.product-price-promo { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.product-price-promo .original { text-decoration: line-through; margin-right: 4px; color: var(--text-disabled); }
.product-actions { display: flex; gap: 4px; flex-shrink: 0; }
.product-action-btn { width: 30px; height: 30px; border-radius: var(--radius-md); background: transparent; border: none; color: var(--text-disabled); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.product-action-btn:hover { background: var(--bg-elevated); color: var(--text-secondary); }
.product-action-btn.danger:hover { color: var(--danger-text); background: var(--danger-soft); }
.product-action-btn i { font-size: 15px; }
.product-alert-dot { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: var(--radius-pill); font-size: 10px; font-weight: 700; background: var(--danger-soft); color: var(--danger-text); border: 1px solid var(--danger-border); }
 
/* ── Badges ────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; }
.badge-info    { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); }
.badge-brand   { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-border); }
.badge-success { background: var(--success-soft); color: var(--success-text); border: 1px solid var(--success-border); }
.badge-danger  { background: var(--danger-soft); color: var(--danger-text); border: 1px solid var(--danger-border); }
 
/* ── Alerts panel ──────────────────────────────────────────────── */
.alerts-panel { background: var(--bg-surface); border: 1px solid var(--danger-border); border-radius: var(--radius-lg); margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.alerts-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background var(--transition-fast); }
.alerts-panel-header:hover { background: var(--bg-elevated); }
.alerts-panel-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.alerts-badge { background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; font-family: var(--font-display); padding: 2px 7px; border-radius: var(--radius-pill); }
.alerts-panel-toggle { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.alerts-list { padding: 4px 0; }
.alert-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); transition: background var(--transition-fast); }
.alert-item:last-child { border-bottom: none; }
.alert-item:hover { background: var(--bg-elevated); }
.alert-change { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--danger-soft); color: var(--danger-text); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.alert-link { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: var(--radius-md); font-size: 12px; display: flex; align-items: center; gap: 4px; transition: all var(--transition-fast); font-family: var(--font-body); }
.alert-link:hover { color: var(--brand); background: var(--brand-soft); }
.alert-link i { font-size: 13px; }
 
/* ── Empty state ───────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 24px; max-width: 560px; margin: 0 auto; }
.empty-state-icon { width: 72px; height: 72px; border-radius: 20px; background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; box-shadow: var(--shadow-sm); }
.empty-state-icon i { font-size: 36px; color: var(--text-disabled); }
.empty-state h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.03em; }
.empty-state p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 28px; }
.empty-state p strong { color: var(--brand); }
.empty-state-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.empty-steps { display: flex; gap: 24px; margin-top: 48px; justify-content: center; flex-wrap: wrap; }
.empty-step { text-align: center; max-width: 140px; }
.empty-step-number { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-gradient); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 14px; font-weight: 800; color: #fff; margin: 0 auto 10px; box-shadow: var(--shadow-brand); }
.empty-step h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.empty-step p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.filter-empty { text-align: center; padding: 48px 24px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.filter-empty i { font-size: 32px; color: var(--text-disabled); }
.filter-empty strong { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
 
/* ── Bulk actions ───────────────────────────────────────────────── */
.bulk-actions-bar { display: flex; align-items: center; justify-content: space-between; background: var(--brand-soft); border: 1px solid var(--brand-border); border-radius: var(--radius-lg); padding: 10px 16px; margin-bottom: 12px; }
.bulk-info { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.master-checkbox { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.bulk-actions { display: flex; align-items: center; gap: 8px; }
 
/* ── Toasts ─────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-lg); font-size: 13px; font-weight: 500; font-family: var(--font-body); background: var(--bg-surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); max-width: 340px; animation: toastIn .25s cubic-bezier(.34,1.56,.64,1) both; }
.toast.leaving { animation: toastOut .25s ease forwards; }
.toast.success i { color: var(--success); }
.toast.alert i { color: var(--danger); }
.toast.info i { color: var(--info); }
.toast.export i { color: var(--brand); }
@keyframes toastIn  { from{opacity:0;transform:translateX(20px) scale(.95)} to{opacity:1;transform:none} }
@keyframes toastOut { to{opacity:0;transform:translateX(20px) scale(.95)} }
 
/* ── Modal ─────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(26,17,10,0.45); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 24px; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-xl); width: 100%; max-width: 520px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: modalIn .2s ease; }
.modal-lg { max-width: 680px; }
@keyframes modalIn { from{opacity:0;transform:scale(.97) translateY(8px)} to{opacity:1;transform:none} }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); background: var(--bg-base); }
.modal-header h2 { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.modal-close { width: 30px; height: 30px; border-radius: var(--radius-md); background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.modal-close:hover { background: var(--bg-elevated); color: var(--text-primary); }
.modal-close i { font-size: 18px; }
.modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--bg-base); }
 
/* ── Forms ─────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 9px 12px; background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-size: 13.5px; font-family: var(--font-body); outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); box-shadow: var(--shadow-xs); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--brand-border); box-shadow: 0 0 0 3px rgba(160,82,45,0.08); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-disabled); }
.form-input.error { border-color: var(--danger); }
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 11px; color: var(--text-disabled); margin-top: 4px; }
.form-input-prefix { position: relative; }
.form-input-prefix .prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 13px; }
.form-input-prefix .form-input { padding-left: 24px; }
.form-error { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--danger-soft); border: 1px solid var(--danger-border); font-size: 13px; color: var(--danger-text); margin-bottom: 14px; }
.form-error i { font-size: 16px; flex-shrink: 0; }
 
/* ── Import ─────────────────────────────────────────────────────── */
.drop-zone { border: 2px dashed var(--border-strong); border-radius: var(--radius-xl); padding: 48px 24px; text-align: center; cursor: pointer; transition: all var(--transition-fast); background: var(--bg-base); }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--brand); background: var(--brand-soft); }
.drop-zone-icon { margin-bottom: 12px; }
.drop-zone-icon i { font-size: 40px; color: var(--text-disabled); }
.drop-zone:hover .drop-zone-icon i { color: var(--brand); }
.drop-zone h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.drop-zone p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.formats { display: inline-block; padding: 3px 10px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 11px; color: var(--text-muted); }
.import-loading { text-align: center; padding: 48px 24px; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--brand); margin: 0 auto 14px; animation: spin .8s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }
.preview-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.preview-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.preview-table th { padding: 8px 12px; background: var(--bg-base); text-align: left; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.preview-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.preview-table tr:last-child td { border-bottom: none; }
.preview-table tr:hover td { background: var(--bg-elevated); }
.cell-name { font-weight: 500; color: var(--text-primary); }
.cell-price { text-align: right; font-family: var(--font-display); font-weight: 600; }
.import-success { text-align: center; padding: 32px 0; }
.import-success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--success-soft); border: 1px solid var(--success-border); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.import-success-icon i { font-size: 28px; color: var(--success); }
.import-success h2 { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.import-success p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.import-stats { display: flex; justify-content: center; gap: 24px; }
.import-stat { text-align: center; }
.import-stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 4px; }
.import-stat-value.imported { color: var(--success-text); }
.import-stat-value.replaced  { color: var(--brand); }
.import-stat-value.skipped   { color: var(--text-muted); }
.import-stat-label { font-size: 12px; color: var(--text-muted); }
 
@keyframes pulseKpi { 0%,100%{opacity:1} 50%{opacity:.55} }
.hidden { display: none !important; }
 