/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #eef2ee;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-hover: rgba(255, 255, 255, 0.6);
  --text: #101e2c;
  --text-secondary: #4a5a6a;
  --muted: #6e7f8f;
  --line: rgba(16, 30, 46, 0.09);
  --line-strong: rgba(16, 30, 46, 0.15);
  --green: #238a45;
  --green-soft: #e2f5e9;
  --green-mid: rgba(35, 138, 69, 0.14);
  --orange: #d97422;
  --orange-soft: #fef0e2;
  --red: #c0433f;
  --red-soft: #fdeeed;
  --blue: #1f6bbf;
  --blue-soft: #e5f0fb;
  --purple: #6b3ec5;
  --purple-soft: #ede8fa;
  --shadow: 0 1px 3px rgba(16, 30, 46, 0.06), 0 8px 24px rgba(16, 30, 46, 0.08);
  --shadow-lg: 0 2px 8px rgba(16, 30, 46, 0.07), 0 16px 40px rgba(16, 30, 46, 0.09);
  --radius: 18px;
  --radius-sm: 10px;
  --sidebar-w: 256px;
}

:root.dark {
  color-scheme: dark;
  --bg: #090f1a;
  --surface: rgba(14, 24, 38, 0.93);
  --surface-strong: #111e2f;
  --surface-hover: rgba(255, 255, 255, 0.04);
  --text: #e4edf6;
  --text-secondary: #90a0b2;
  --muted: #7a8fa2;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --green-soft: rgba(35, 138, 69, 0.15);
  --green-mid: rgba(35, 138, 69, 0.12);
  --orange-soft: rgba(217, 116, 34, 0.15);
  --red-soft: rgba(192, 67, 63, 0.14);
  --blue-soft: rgba(31, 107, 191, 0.14);
  --purple-soft: rgba(107, 62, 197, 0.15);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.26);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.22), 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(35, 138, 69, 0.12), transparent),
    radial-gradient(ellipse 50% 35% at 100% 0%, rgba(217, 116, 34, 0.1), transparent),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(28px, 4vw, 44px); line-height: 1.06; letter-spacing: -0.02em; }
h2 { margin-bottom: 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
h3 { margin-bottom: 4px; font-size: 15px; font-weight: 700; }

/* ─── Layout ─────────────────────────────────────────────────── */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ─── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(20px);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(140deg, var(--green), #44c46a);
  box-shadow: 0 4px 12px rgba(35, 138, 69, 0.3);
  flex-shrink: 0;
}

.brand strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.brand span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }

.nav { display: grid; gap: 2px; flex: 1; }

.nav-section {
  padding: 16px 8px 4px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.12s, color 0.12s;
}

.nav a:hover { color: var(--green); background: var(--green-soft); }
.nav a.active { color: var(--green); background: var(--green-soft); font-weight: 700; }

.nav-icon { width: 16px; height: 16px; opacity: 0.7; }
.nav a:hover .nav-icon, .nav a.active .nav-icon { opacity: 1; }

.sidebar-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}
.sidebar-note span { display: block; font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.sidebar-note strong { display: block; font-size: 12px; color: var(--text-secondary); }

/* ─── Main content ─────────────────────────────────────────────── */
.main { padding: 28px 32px; min-width: 0; }

/* ─── Topbar ─────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.subtitle { color: var(--muted); font-size: 14px; margin: 4px 0 0; max-width: 580px; }

/* ─── Buttons ─────────────────────────────────────────────────── */
.primary, .ghost, .danger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  height: 40px;
  font-weight: 700;
  font-size: 13px;
  transition: opacity 0.12s, box-shadow 0.12s;
}
.primary { color: #fff; background: linear-gradient(135deg, var(--green), #30b35a); box-shadow: 0 4px 14px rgba(35, 138, 69, 0.25); }
.primary:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(35, 138, 69, 0.35); }
.secondary { color: #fff; background: linear-gradient(135deg, var(--blue), #1a7fdb); box-shadow: 0 4px 14px rgba(26, 127, 219, 0.25); }
.secondary:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(26, 127, 219, 0.35); }
.ghost { color: var(--text); border: 1px solid var(--line-strong); background: var(--surface-strong); }
.ghost:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.danger { color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); background: var(--red-soft); }
.btn-all { color: #fff; background: linear-gradient(135deg, #e05c2a, #c94010); box-shadow: 0 4px 14px rgba(201, 64, 16, 0.25); font-weight: 600; }
.btn-all:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(201, 64, 16, 0.35); }
.taxonomy-btn { font-size: 0.78rem; padding: 6px 12px; letter-spacing: 0.01em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ─── Utility: hidden ─────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── Auth card ─────────────────────────────────────────────────── */
.auth-card {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}
.auth-card p { color: var(--muted); }
.auth-actions, .email-form { display: grid; gap: 10px; }

/* ─── Form controls ─────────────────────────────────────────────── */
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 13px;
  color: var(--text);
  background: var(--surface-strong);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-mid);
}
textarea { padding: 10px 13px; min-height: 80px; resize: vertical; }

label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Status card ─────────────────────────────────────────────────── */
.status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.status-card p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.loader {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 2.5px solid var(--line-strong);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.error-card {
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
}

/* ─── Dashboard grid ─────────────────────────────────────────────── */
.dashboard { display: grid; gap: 20px; }

/* ─── Filter panel ─────────────────────────────────────────────────── */
.filter-panel {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.filter-head h2 { font-size: 16px; margin: 0; }
.filter-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(6, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
}
.filter-summary {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* ─── Hero / overview ─────────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.6fr;
  gap: 20px;
  align-items: start;
}
.hero-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-strong) 60%, var(--green-soft));
  box-shadow: var(--shadow-lg);
}
.hero-card h2 { font-size: 22px; margin-bottom: 6px; }
.hero-card p { color: var(--muted); font-size: 13px; margin: 0; }
.cache-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--green-mid);
}

/* ─── Metric grid ─────────────────────────────────────────────────── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--line-strong);
  transition: box-shadow 0.12s;
}
.metric:hover { box-shadow: var(--shadow-lg); }
.metric span { display: block; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.metric strong { display: block; font-size: 28px; font-weight: 900; letter-spacing: -0.02em; color: var(--text); }
.metric.accent-green { border-top-color: var(--green); }
.metric.accent-green strong { color: var(--green); }
.metric.accent-orange { border-top-color: var(--orange); }
.metric.accent-orange strong { color: var(--orange); }
.metric.accent-blue { border-top-color: var(--blue); }
.metric.accent-blue strong { color: var(--blue); }
.metric.accent-red { border-top-color: var(--red); }

/* ─── Panel ─────────────────────────────────────────────────── */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.wide-panel { overflow: hidden; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.panel-head h2 { font-size: 17px; }
.deal-head { align-items: flex-start; }
.panel-copy { font-size: 13px; color: var(--muted); margin: 4px 0 0; max-width: 700px; }

/* ─── Operation status ─────────────────────────────────────────────── */
.operation-status {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  background: var(--surface-strong);
}
.operation-status.success { color: var(--green); background: var(--green-soft); border-color: var(--green-mid); }
.operation-status.warning { color: var(--orange); background: var(--orange-soft); border-color: color-mix(in srgb, var(--orange) 25%, transparent); }
.operation-status.danger { color: var(--red); background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.operation-status.neutral { color: var(--text-secondary); }

/* ─── Row items ─────────────────────────────────────────────────── */
.rows, .timeline { display: grid; gap: 8px; max-height: 480px; overflow-y: auto; }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  transition: background 0.1s;
}
.row:hover { background: var(--surface-hover); }
.row > div { min-width: 0; flex: 1; }
.row strong { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row span { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row em {
  flex-shrink: 0;
  display: inline-block;
  min-width: 48px;
  padding: 5px 10px;
  border-radius: 999px;
  text-align: center;
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--line);
}
.row em.green { color: var(--green); background: var(--green-soft); }
.row em.orange { color: var(--orange); background: var(--orange-soft); }
.row em.blue { color: var(--blue); background: var(--blue-soft); }
.row em.red { color: var(--red); background: var(--red-soft); }

/* ─── Activity feed ─────────────────────────────────────────────── */
.event {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}
.event[data-type="Kullanici"] { border-left-color: var(--blue); }
.event[data-type="Grup"] { border-left-color: var(--green); }
.event[data-type="Liste"] { border-left-color: var(--purple); }
.event[data-type="Urun"] { border-left-color: var(--orange); }
.event[data-type="AI"] { border-left-color: var(--red); }
.event > span { font-size: 10px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.event strong { font-size: 14px; font-weight: 700; }
.event-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.event-meta small {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

/* ─── Status badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.badge-pending { color: var(--orange); background: var(--orange-soft); }
.badge-done { color: var(--green); background: var(--green-soft); }
.badge-archive { color: var(--muted); background: var(--line); }
.badge-blue { color: var(--blue); background: var(--blue-soft); }
.badge-red { color: var(--red); background: var(--red-soft); }
.badge-neutral { color: var(--text-secondary); background: var(--line); }
.badge-ai { color: var(--blue); background: var(--blue-soft); }

/* ─── Stat strip (location products summary) ─────────────────────── */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  min-width: 130px;
}
.stat-pill strong { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; display: block; }
.stat-pill span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-pill.pending { border-top: 3px solid var(--orange); }
.stat-pill.pending strong { color: var(--orange); }
.stat-pill.done { border-top: 3px solid var(--green); }
.stat-pill.done strong { color: var(--green); }
.stat-pill.archive { border-top: 3px solid var(--muted); }
.stat-pill.total { border-top: 3px solid var(--blue); }
.stat-pill.total strong { color: var(--blue); }
.stat-pill.ai { border-top: 3px solid var(--blue); }
.stat-pill.ai strong { color: var(--blue); }

/* ─── Location product filters ─────────────────────────────────── */
.lp-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-strong) 70%, var(--blue-soft));
}

/* ─── Data tables ─────────────────────────────────────────────────── */
.data-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.data-table table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table thead { position: sticky; top: 0; z-index: 2; }
.data-table th {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface-strong) 95%, var(--bg));
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-align: left;
}
.data-table td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13px;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 0.1s; }
.data-table tbody tr:hover { background: var(--surface-hover); }
.data-table strong { display: block; font-weight: 700; }
.data-table span { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }

/* ─── Deals section ─────────────────────────────────────────────── */
.deal-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}
.mini-table { display: grid; gap: 8px; }
.mini-table > strong { display: block; padding: 0 4px 4px; font-size: 13px; color: var(--muted); font-weight: 700; }

/* ─── Tables section ─────────────────────────────────────────────── */
.table-head { align-items: center; }
.table-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.table-tab {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface-strong);
  font-weight: 700;
  font-size: 12px;
  transition: background 0.12s, color 0.12s;
}
.table-tab.active, .table-tab:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), #30b35a);
}

/* ─── Push notification panel ────────────────────────────────────── */
.push-panel {
  border-top: 4px solid var(--green);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--surface) 92%, var(--green-soft)),
    var(--surface));
}
.push-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.push-panel-title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.push-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.push-panel-title h2 { margin: 0; font-size: 20px; }
.push-panel-title .eyebrow { margin: 0 0 2px; }
.push-collapse-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.push-collapse-btn:hover { background: var(--line-strong); color: var(--text); }
.push-two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.push-left, .push-right { display: grid; gap: 18px; }
.push-form { display: grid; gap: 20px; }
.push-templates { display: grid; gap: 8px; }
.push-templates > .eyebrow { margin: 0; }
.template-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  height: 34px;
  transition: background 0.12s, color 0.12s;
}
.chip:hover { background: var(--blue); color: #fff; }
.push-fields { display: grid; gap: 12px; }
.push-fields label { font-size: 11px; }
.field-hint { font-size: 11px; color: var(--muted); font-weight: 600; text-align: right; }
.push-send-box {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  border: 1px solid var(--green-mid);
}
.push-send-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--green), #30b35a);
  border-radius: var(--radius-sm);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
}
.push-send-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.push-send-btn:not(:disabled):hover { opacity: 0.9; transform: translateY(-1px); }
.push-hint { font-size: 12px; color: var(--green); font-weight: 600; margin: 0; text-align: center; }
.push-actions { display: flex; align-items: center; gap: 14px; }

/* ─── Catalog review section ─────────────────────────────────────── */
.cr-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-strong) 80%, var(--blue-soft));
  border: 1px solid var(--line);
}
.cr-tabs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.cr-tab {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-strong);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.cr-tab.active, .cr-tab:hover {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
}
.cr-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cr-list { display: grid; gap: 10px; margin-bottom: 14px; }
.cr-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  transition: background 0.1s;
}
.cr-card:hover { background: var(--surface-hover); }
.cr-card[data-action="create_alias"] { border-left: 3px solid var(--blue); }
.cr-card[data-action="create_new_product"] { border-left: 3px solid var(--green); }
.cr-card[data-action="manual_review"] { border-left: 3px solid var(--orange); }
.cr-card[data-status="approved"] { border-left: 3px solid var(--green); opacity: 0.7; }
.cr-card[data-status="rejected"] { border-left: 3px solid var(--red); opacity: 0.55; }
.cr-card-body { display: grid; gap: 4px; min-width: 0; }
.cr-card-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-card-sub { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.cr-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; }
.cr-conf {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.cr-conf.high { background: var(--green-soft); color: var(--green); }
.cr-conf.mid  { background: var(--orange-soft); color: var(--orange); }
.cr-conf.low  { background: var(--line); color: var(--muted); }
.cr-card-actions { display: flex; flex-direction: column; gap: 6px; justify-content: center; flex-shrink: 0; }
.cr-approve-btn {
  height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  background: var(--green-soft); color: var(--green); border: 1px solid var(--green-mid);
  cursor: pointer; transition: background 0.12s, color 0.12s;
}
.cr-approve-btn:hover { background: var(--green); color: #fff; }
.cr-reject-btn {
  height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: var(--line); color: var(--muted); border: 1px solid var(--line-strong);
  cursor: pointer; transition: background 0.12s, color 0.12s;
}
.cr-reject-btn:hover { background: var(--red-soft); color: var(--red); }
.cr-batch-status {
  font-size: 13px; font-weight: 600; padding: 4px 0; min-height: 20px;
}
.cr-batch-status.ok   { color: var(--green); }
.cr-batch-status.error { color: var(--red); }
.ai-summary-header { margin-bottom: 6px; }
.ai-stat { font-size: 12px; font-weight: 600; }
.ai-stat.corrected { color: var(--orange); }
.ai-stat.newly { color: var(--blue); }
.ai-stat.confirmed { color: var(--green); }
.ai-stat.pending { color: var(--muted); }
.ai-sample { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.ai-sample li { font-size: 12px; font-weight: 400; color: var(--text); background: var(--surface-strong); border-radius: 6px; padding: 4px 8px; }
.ai-before { color: var(--orange); text-decoration: line-through; font-size: 11px; }
.ai-unchanged { color: var(--green); }
.ai-new { color: var(--blue); }
.ai-sample strong { color: var(--text); font-weight: 700; }
.ai-sample em { color: var(--text-secondary); font-style: normal; font-size: 11px; }
.ai-conf { color: var(--blue); font-size: 11px; font-weight: 700; }
.ai-rawtitle { color: var(--muted); font-size: 11px; }
.cr-batch-status.neutral { color: var(--muted); }
.cr-pagination {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 10px 0; font-size: 13px; color: var(--muted); font-weight: 600;
}
/* ─── Barcode CSE Config ───────────────────────────────────────── */
.cse-form { padding: 16px 0 4px; }
.cse-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 640px) { .cse-fields { grid-template-columns: 1fr; } }
.cse-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text); }
.cse-fields input { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-strong); color: var(--text); font-size: 13px; }
.cse-fields input:focus { outline: none; border-color: var(--green); }
.cse-actions { display: flex; align-items: center; gap: 12px; }
code { font-family: monospace; font-size: 12px; background: var(--surface-strong); padding: 2px 6px; border-radius: 4px; color: var(--text); }
.row em.blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 13%, var(--surface-strong)); }

/* ─── Sidebar catalog link highlight ─────────────────────────────── */
.nav-catalog-link {
  background: var(--blue-soft) !important;
  color: var(--blue) !important;
  font-weight: 700 !important;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, transparent);
}
.nav-catalog-link:hover, .nav-catalog-link.active {
  background: var(--blue) !important;
  color: #fff !important;
}

/* ─── Sidebar push link highlight ────────────────────────────────── */
.nav-push-link {
  background: var(--green-soft) !important;
  color: var(--green) !important;
  font-weight: 800 !important;
  border: 1px solid var(--green-mid);
  margin-top: 4px;
}
.nav-push-link:hover, .nav-push-link.active {
  background: var(--green) !important;
  color: #fff !important;
}
.nav-push-link::before { content: "📢 "; }

/* ─── Sticky anchor offset for all sections ─────────────────────── */
section[id] { scroll-margin-top: 80px; }

/* ─── Misc ─────────────────────────────────────────────────── */
.empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .filter-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .filter-grid label:first-child { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-filters { grid-template-columns: 1fr 1fr; }
  .push-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; padding: 14px 16px; gap: 12px; }
  .sidebar-note { display: none; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav-section { display: none; }
  .topbar, .auth-card, .hero-grid, .panel-grid, .deal-ops-grid { grid-template-columns: 1fr; }
  .topbar { display: grid; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .main { padding: 16px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { gap: 8px; }
  .stat-pill { min-width: 0; flex: 1; }
  .lp-filters { grid-template-columns: 1fr; }
  .actions { flex-wrap: wrap; }
}
