/* ============================================================
   GOODSCORE ADMIN DASHBOARD — SHARED STYLES
   ============================================================ */

/* ── Variables ── */
:root {
  --bg:           #050B18;
  --surface:      #0D1626;
  --card:         #111827;
  --card-hover:   #151F30;
  --border:       #1F2E42;
  --border-light: #243448;

  --blue:         #4F6EF7;
  --blue-light:   rgba(79,110,247,.12);
  --green:        #10B981;
  --green-light:  rgba(16,185,129,.12);
  --orange:       #F59E0B;
  --orange-light: rgba(245,158,11,.12);
  --purple:       #9B5DE5;
  --purple-light: rgba(155,93,229,.12);
  --teal:         #06B6D4;
  --teal-light:   rgba(6,182,212,.12);
  --red:          #EF4444;
  --red-light:    rgba(239,68,68,.12);
  --yellow:       #EAB308;
  --yellow-light: rgba(234,179,8,.12);

  --text:         #F1F5F9;
  --text-sec:     #94A3B8;
  --text-muted:   #475569;

  --sidebar-w:    260px;
  --topbar-h:     64px;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,.4);
  --transition:   all .2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
select { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: var(--transition);
  overflow-y: auto;
}
.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .admin-info { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 10px; }
.sidebar.collapsed .sidebar-logo { justify-content: center; padding: 20px 0; }

.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
}
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.logo-brand { display: block; font-weight: 700; font-size: 15px; color: var(--text); }
.logo-sub   { display: block; font-size: 11px; color: var(--text-muted); }

.sidebar-nav {
  flex: 1; padding: 12px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-section-label {
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  color: var(--text-muted); padding: 12px 20px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; border-radius: 0;
  color: var(--text-sec); font-size: 13.5px; font-weight: 500;
  transition: var(--transition); position: relative;
}
.nav-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-item:hover { background: rgba(79,110,247,.08); color: var(--text); }
.nav-item.active {
  background: var(--blue-light); color: var(--blue);
  border-left: 3px solid var(--blue);
}
.nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 20px;
  background: var(--border); color: var(--text-sec);
}
.nav-badge.new   { background: var(--blue-light); color: var(--blue); }
.nav-badge.alert { background: var(--red-light); color: var(--red); }

.sidebar-footer {
  padding: 16px; border-top: 1px solid var(--border);
}
.admin-profile {
  display: flex; align-items: center; gap: 10px;
}
.admin-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.admin-name { display: block; font-size: 13px; font-weight: 600; }
.admin-role { display: block; font-size: 11px; color: var(--text-muted); }

/* ============================================================
   TOPBAR / HEADER
   ============================================================ */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column;
  min-height: 100vh; transition: var(--transition);
}
.main-wrapper.expanded { margin-left: 64px; }

.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; position: sticky; top: 0; z-index: 90;
}
.topbar-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.sidebar-toggle {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  color: var(--text-sec); display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--border); color: var(--text); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.breadcrumb i { font-size: 10px; }
.bc-current { color: var(--text); font-weight: 500; }

.topbar-center { flex: 1; max-width: 420px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 14px; height: 36px;
}
.search-box i { color: var(--text-muted); font-size: 13px; }
.search-box input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13px; width: 100%;
}
.search-box input::placeholder { color: var(--text-muted); }

.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.date-range {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  color: var(--text-sec); background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 12px; height: 36px; cursor: pointer;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card);
  color: var(--text-sec); display: flex; align-items: center; justify-content: center;
  transition: var(--transition); position: relative;
}
.icon-btn:hover { background: var(--border); color: var(--text); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); border: 1.5px solid var(--surface);
}
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; cursor: pointer;
}

/* ── Notification Panel ── */
.notif-panel {
  position: fixed; top: var(--topbar-h); right: 0;
  width: 360px; background: var(--surface);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 0 var(--radius);
  box-shadow: var(--shadow); z-index: 200;
  transform: translateX(110%); transition: var(--transition);
}
.notif-panel.open { transform: translateX(0); }
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.notif-header button { background: none; border: none; color: var(--text-muted); font-size: 16px; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid var(--border); transition: var(--transition);
}
.notif-item:hover { background: var(--card); }
.notif-item.unread { background: rgba(79,110,247,.04); }
.notif-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: var(--blue-light); color: var(--blue);
}
.notif-icon.green  { background: var(--green-light); color: var(--green); }
.notif-icon.orange { background: var(--orange-light); color: var(--orange); }
.notif-icon.purple { background: var(--purple-light); color: var(--purple); }
.notif-icon.red    { background: var(--red-light); color: var(--red); }
.notif-item p  { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.notif-item span { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 20px; }

/* ── Page Header ── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.page-subtitle { font-size: 13px; color: var(--text-sec); }
.page-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── KPI Strip ── */
.kpi-strip {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px;
  display: flex; align-items: center; gap: 0; overflow-x: auto;
}
.kpi-item { display: flex; flex-direction: column; gap: 3px; padding: 0 20px; flex-shrink: 0; }
.kpi-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.kpi-val   { font-size: 15px; font-weight: 700; color: var(--text); }
.kpi-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-light); }
.card-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.card-title   { font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.card-subtitle { font-size: 12px; color: var(--text-muted); }
.card-actions { flex-shrink: 0; display: flex; gap: 8px; align-items: center; }

/* ── Stat Cards ── */
.stats-grid { display: grid; gap: 14px; }
.stats-grid-6 { grid-template-columns: repeat(6, 1fr); }
.stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }

.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-light); transform: translateY(-1px); }
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--blue-light); color: var(--blue);
}
.stat-icon.green  { background: var(--green-light);  color: var(--green); }
.stat-icon.orange { background: var(--orange-light); color: var(--orange); }
.stat-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-icon.teal   { background: var(--teal-light);   color: var(--teal); }
.stat-icon.red    { background: var(--red-light);    color: var(--red); }

.stat-label  { font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.stat-value  { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.stat-change { font-size: 11.5px; display: flex; align-items: center; gap: 5px; }
.stat-change.positive { color: var(--green); }
.stat-change.negative { color: var(--red); }

/* ── Mini Cards ── */
.mini-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; align-items: center; gap: 14px;
}
.mini-card-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: var(--blue-light); color: var(--blue);
}
.mini-card-icon.orange { background: var(--orange-light); color: var(--orange); }
.mini-card-icon.purple { background: var(--purple-light); color: var(--purple); }
.mini-card-icon.teal   { background: var(--teal-light); color: var(--teal); }
.mini-card-body p  { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.mini-card-body h4 { font-size: 18px; font-weight: 700; margin-bottom: 3px; }
.mini-card-body span { font-size: 11px; }

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4col { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; }

/* ============================================================
   CHARTS
   ============================================================ */
.chart-container { width: 100%; position: relative; height: 240px; }
.chart-sm         { height: 180px; }
.chart-lg         { height: 320px; }
.chart-legend {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 12px; color: var(--text-sec);
}
.legend-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); display: inline-block;
}
.legend-dot.blue   { background: var(--blue); }
.legend-dot.green  { background: var(--green); }
.legend-dot.orange { background: var(--orange); }
.legend-dot.purple { background: var(--purple); }

.lead-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.ll-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-sec); }
.ll-item strong { margin-left: auto; color: var(--text); font-weight: 600; }

.plan-cards-mini { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.pcm-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-sec); }
.pcm-item strong { margin-left: auto; color: var(--text); font-weight: 600; }

/* ============================================================
   TABLES
   ============================================================ */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead tr { border-bottom: 1px solid var(--border); }
.data-table thead th {
  padding: 10px 12px; text-align: left; font-size: 11px;
  font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em;
}
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--card-hover); }
.data-table td { padding: 12px; vertical-align: middle; }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell p { font-weight: 500; font-size: 13px; margin-bottom: 2px; }
.user-cell span { font-size: 11px; color: var(--text-muted); }
.avatar-xs {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.avatar-xs.bg-green  { background: var(--green-light); color: var(--green); }
.avatar-xs.bg-blue   { background: var(--blue-light); color: var(--blue); }
.avatar-xs.bg-purple { background: var(--purple-light); color: var(--purple); }
.avatar-xs.bg-orange { background: var(--orange-light); color: var(--orange); }
.avatar-xs.bg-teal   { background: var(--teal-light); color: var(--teal); }

.table-toolbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.table-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 12px; height: 34px; flex: 1; max-width: 280px;
}
.table-search i { color: var(--text-muted); font-size: 12px; }
.table-search input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13px; width: 100%;
}
.table-search input::placeholder { color: var(--text-muted); }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 16px; justify-content: flex-end; }
.page-btn {
  height: 30px; min-width: 30px; padding: 0 6px;
  border-radius: 6px; border: 1px solid var(--border);
  background: var(--card); color: var(--text-sec);
  font-size: 12px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination-info { font-size: 12px; color: var(--text-muted); margin-right: 8px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge-blue   { background: var(--blue-light);   color: var(--blue); }
.badge-green  { background: var(--green-light);  color: var(--green); }
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-teal   { background: var(--teal-light);   color: var(--teal); }
.badge-red    { background: var(--red-light);    color: var(--red); }
.badge-yellow { background: var(--yellow-light); color: var(--yellow); }
.badge-gray   { background: var(--border);       color: var(--text-sec); }

/* ── Score Chips ── */
.score-chip {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-weight: 700; font-size: 12px;
}
.score-chip.poor  { background: rgba(239,68,68,.15); color: var(--red); }
.score-chip.fair  { background: rgba(245,158,11,.15); color: var(--orange); }
.score-chip.good  { background: rgba(16,185,129,.15); color: var(--green); }
.score-chip.vgood { background: rgba(79,110,247,.15); color: var(--blue); }
.score-chip.excel { background: rgba(155,93,229,.15); color: var(--purple); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; border: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #3d5ce6; }
.btn-ghost {
  background: transparent; color: var(--text-sec);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-danger { background: var(--red-light); color: var(--red); border: 1px solid transparent; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-success { background: var(--green-light); color: var(--green); border: 1px solid transparent; }
.btn-success:hover { background: var(--green); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-icon { padding: 7px; border-radius: var(--radius-sm); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 500; color: var(--text-sec); }
.form-control {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  color: var(--text); font-size: 13px; outline: none;
  transition: var(--transition); width: 100%;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,110,247,.12); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }

.select-sm {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 5px 10px;
  color: var(--text-sec); font-size: 12px; outline: none; cursor: pointer;
}
.select-sm:focus { border-color: var(--blue); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Toggle Switch ── */
.toggle-switch { position: relative; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; border-radius: 12px;
  background: var(--border); cursor: pointer; transition: var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px;
  left: 3px; bottom: 3px; border-radius: 50%;
  background: var(--text-sec); transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--blue); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); background: #fff; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; width: 90%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow);
  transform: scale(.95); transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 18px; }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--border);
}

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 10px; }
.filter-tab {
  padding: 6px 14px; border-radius: 8px; font-size: 12.5px;
  font-weight: 500; color: var(--text-muted); cursor: pointer; transition: var(--transition); border: none;
  background: transparent;
}
.filter-tab.active { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.filter-tab:hover:not(.active) { color: var(--text-sec); }

/* ── Status indicators ── */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.green  { background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.status-dot.orange { background: var(--orange); box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.status-dot.red    { background: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
.status-dot.gray   { background: var(--text-muted); }

/* ── Progress Bars ── */
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--blue); transition: width .4s ease; }
.progress-fill.green  { background: var(--green); }
.progress-fill.orange { background: var(--orange); }
.progress-fill.red    { background: var(--red); }
.progress-fill.purple { background: var(--purple); }

/* ── Score Meter ── */
.score-meter-wrap { margin: 12px 0; }
.score-meter-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.score-meter { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--red) 0%, var(--orange) 35%, var(--yellow) 55%, var(--green) 75%, var(--blue) 100%); position: relative; }
.score-needle { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--card); box-shadow: 0 2px 6px rgba(0,0,0,.4); transform: translateX(-50%); }

/* ── Alert/Info Boxes ── */
.alert-box {
  padding: 12px 16px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.alert-box.info { background: var(--blue-light); color: var(--blue); }
.alert-box.warning { background: var(--orange-light); color: var(--orange); }
.alert-box.success { background: var(--green-light); color: var(--green); }
.alert-box.danger  { background: var(--red-light); color: var(--red); }

/* ── Tag Cloud ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 500;
  background: var(--border); color: var(--text-sec); cursor: pointer; transition: var(--transition);
}
.tag:hover, .tag.selected { background: var(--blue-light); color: var(--blue); }

/* ── Metric Comparison Row ── */
.metric-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.metric-row:last-child { border-bottom: none; }
.metric-row .ml { font-size: 13px; color: var(--text-sec); }
.metric-row .mr { font-size: 13px; font-weight: 600; }

/* ── Funnel ── */
.funnel-wrap { display: flex; flex-direction: column; gap: 8px; }
.funnel-step {
  position: relative; display: flex; align-items: center; gap: 12px;
}
.funnel-bar-wrap { flex: 1; }
.funnel-bar {
  height: 36px; border-radius: 6px; display: flex;
  align-items: center; padding: 0 12px; font-size: 12px;
  font-weight: 600; color: #fff; transition: width .4s ease;
}
.funnel-meta { display: flex; align-items: center; gap: 8px; width: 120px; justify-content: flex-end; }
.funnel-count { font-size: 13px; font-weight: 700; }
.funnel-pct   { font-size: 11px; color: var(--text-muted); }

/* ── Plan Card ── */
.plan-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; position: relative;
}
.plan-card.featured { border-color: var(--blue); }
.plan-card-badge { position: absolute; top: 16px; right: 16px; }
.plan-price { font-size: 28px; font-weight: 800; margin: 8px 0 4px; }
.plan-price sub { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.plan-stat { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.plan-feature { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; }
.plan-feature i { color: var(--green); font-size: 11px; }

/* ── Kanban ── */
.kanban-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.kanban-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; min-height: 200px; }
.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; font-size: 12px; font-weight: 600;
}
.kanban-count {
  font-size: 10px; font-weight: 600; padding: 2px 7px;
  border-radius: 20px; background: var(--border); color: var(--text-sec);
}
.kanban-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  margin-bottom: 8px; cursor: pointer; transition: var(--transition);
}
.kanban-card:hover { border-color: var(--blue); }
.kanban-card-name  { font-size: 12.5px; font-weight: 500; margin-bottom: 4px; }
.kanban-card-meta  { font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; }

/* ── Activity Feed ── */
.activity-feed { display: flex; flex-direction: column; }
.activity-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.activity-body p  { font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.activity-body span { font-size: 11px; color: var(--text-muted); }
.activity-amount { margin-left: auto; font-size: 13px; font-weight: 600; flex-shrink: 0; }

/* ── Section Divider ── */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ── Positive/Negative text ── */
.positive { color: var(--green); }
.negative { color: var(--red); }
.neutral  { color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .stats-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .kanban-board { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .grid-3col  { grid-template-columns: 1fr 1fr; }
  .grid-4col  { grid-template-columns: 1fr 1fr; }
  .stats-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .plan-grid  { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-260px); width: 260px; }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .grid-2col  { grid-template-columns: 1fr; }
  .grid-3col  { grid-template-columns: 1fr; }
  .grid-4col  { grid-template-columns: 1fr 1fr; }
  .stats-grid-6 { grid-template-columns: 1fr 1fr; }
  .topbar-center { display: none; }
  .kpi-strip { display: none; }
  .kanban-board { grid-template-columns: 1fr 1fr; }
}
