@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  --bg:        #080b14;
  --surface:   #0f1421;
  --card:      #141929;
  --border:    rgba(255,255,255,0.07);
  --border-h:  rgba(255,255,255,0.15);

  --green:     #25D366;
  --green-dark:#128C7E;
  --green-glow:rgba(37,211,102,0.20);
  --purple:    #7C3AED;
  --purple-l:  #9B59F5;
  --blue:      #3B82F6;

  --text:      #F0F4FF;
  --text-2:    #8892AA;
  --text-3:    #4A5568;

  --success:   #22C55E;
  --warning:   #F59E0B;
  --danger:    #EF4444;
  --info:      #38BDF8;

  --sidebar-w: 240px;
  --radius:    12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  overflow: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* ===== LAYOUT ===== */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  z-index: 10;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
}

.sidebar-logo h1 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.sidebar-logo p {
  font-size: 10px;
  color: var(--text-2);
  margin-top: 2px;
}

.nav {
  padding: 12px 10px;
  flex: 1;
  overflow-y: auto;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 8px 10px 4px;
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  margin: 2px 0;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(37,211,102,0.15), transparent);
  color: var(--green);
  border-left: 2px solid var(--green);
}

.nav-item .icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-3);
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.topbar-title h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.topbar-title p {
  font-size: 11px;
  color: var(--text-2);
}

.topbar-actions { display: flex; gap: 8px; align-items: center; }

.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition);
}

.card:hover { border-color: var(--border-h); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent, rgba(37,211,102,0.05)), transparent);
}

.stat-card .stat-icon {
  font-size: 22px;
  margin-bottom: 12px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
  font-weight: 500;
}

.stat-card .stat-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 8px;
}

.stat-card.green  { --accent: rgba(37,211,102,0.08); }
.stat-card.purple { --accent: rgba(124,58,237,0.08); }
.stat-card.blue   { --accent: rgba(59,130,246,0.08); }
.stat-card.orange { --accent: rgba(245,158,11,0.08); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #000;
  box-shadow: 0 4px 14px rgba(37,211,102,0.25);
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 4px 20px rgba(37,211,102,0.4); }

.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-danger {
  background: rgba(239,68,68,0.12);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.25);
}
.btn-danger:hover { background: rgba(239,68,68,0.22); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 7px 9px; font-size: 14px; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; }
table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  vertical-align: middle;
}
table tr:last-child td { border-bottom: none; }
table tbody tr { transition: background var(--transition); }
table tbody tr:hover { background: rgba(255,255,255,0.025); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-green  { background: rgba(37,211,102,0.15); color: var(--green); }
.badge-yellow { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-orange { background: rgba(249,115,22,0.15); color: #FB923C; }
.badge-red    { background: rgba(239,68,68,0.15);  color: var(--danger); }
.badge-gray   { background: rgba(255,255,255,0.07); color: var(--text-2); }
.badge-purple { background: rgba(124,58,237,0.15); color: var(--purple-l); }

/* ===== PROGRESS BAR ===== */
.progress {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

.progress-green  { background: linear-gradient(90deg, var(--green), #86efac); }
.progress-yellow { background: linear-gradient(90deg, var(--warning), #fde68a); }
.progress-orange { background: linear-gradient(90deg, #f97316, #fb923c); }
.progress-red    { background: linear-gradient(90deg, var(--danger), #fca5a5); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  transition: all var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.1);
}

.form-control::placeholder { color: var(--text-3); }

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

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

.input-group {
  display: flex;
  align-items: center;
}

.input-prefix {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
}

.input-group .form-control {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border-h);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.modal-header h3 { font-size: 17px; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border-h);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: slideIn 0.25s ease;
  min-width: 260px;
  max-width: 360px;
}

.toast.removing { animation: slideOut 0.25s ease forwards; }

.toast.success { border-color: rgba(37,211,102,0.35); }
.toast.error   { border-color: rgba(239,68,68,0.35); }
.toast.info    { border-color: rgba(59,130,246,0.35); }
.toast.warning { border-color: rgba(245,158,11,0.35); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ===== CHART CONTAINER ===== */
.chart-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
}

/* ===== LINK CARDS ===== */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.link-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  border-color: rgba(37,211,102,0.3);
  box-shadow: 0 4px 24px rgba(37,211,102,0.08);
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.link-card:hover::before { opacity: 1; }

.link-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.link-card-name { font-size: 15px; font-weight: 700; color: var(--text); }

.link-card-url {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--green);
  font-family: monospace;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.link-card-url:hover { background: rgba(37,211,102,0.08); border-color: rgba(37,211,102,0.3); }

.link-card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.link-card-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-card-stat .val { font-size: 18px; font-weight: 700; color: var(--text); }
.link-card-stat .key { font-size: 11px; color: var(--text-2); }

.link-card-actions { display: flex; gap: 6px; }

/* ===== GROUP ROWS ===== */
.group-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  transition: all var(--transition);
}

.group-item:hover { border-color: var(--border-h); }

.group-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.group-item-name {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-item-code {
  font-size: 11px;
  color: var(--text-3);
  font-family: monospace;
  margin-top: 3px;
}

.member-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.member-bar-label .count { font-weight: 600; color: var(--text); }

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

/* ===== EMPTY STATE ===== */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}

.empty .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.empty p  { font-size: 13px; color: var(--text-3); }

/* ===== LOADING ===== */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-2);
  gap: 12px;
  font-size: 13px;
}

/* ===== SETTINGS ===== */
.settings-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}

.settings-section h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-section p {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 18px;
}

.tier-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.tier-box label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--green);
  text-decoration: none;
  cursor: pointer;
}

.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb span { color: var(--text-3); }

/* ===== TOGGLE ===== */
.toggle {
  position: relative;
  width: 36px;
  height: 20px;
  display: inline-block;
}

.toggle input { display: none; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  left: 3px; top: 3px;
  transition: transform var(--transition);
}

.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }

/* ===== DIVIDER ===== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ===== UTILITY ===== */
.flex { display: flex; }
.flex-c { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.ml-auto { margin-left: auto; }
.text-right { text-align: right; }
.text-green { color: var(--green); }
.text-muted { color: var(--text-2); font-size: 12px; }
.font-mono { font-family: monospace; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-content > * {
  animation: fadeUp 0.3s ease both;
}

/* ===== BADGE AZUL ===== */
.badge-blue { background: rgba(59,130,246,0.15); color: #60a5fa; }

/* ===== LEAD MONITORING CARD ===== */
.lead-monitor-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.lead-monitor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.lead-monitor-title {
  font-size: 17px;
  font-weight: 700;
}

.lead-monitor-subtitle {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

.lead-today-badge {
  background: linear-gradient(135deg, rgba(37,211,102,0.2), rgba(37,211,102,0.08));
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 12px;
  padding: 8px 14px;
  text-align: center;
}

.lead-today-badge .count {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  display: block;
}

.lead-today-badge .label {
  font-size: 10px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== LEAD MINI STATS ===== */
.lead-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.lead-mini-stat {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.lead-mini-stat .lms-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.lead-mini-stat .lms-label {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 4px;
}

.lead-mini-stat .lms-diff {
  font-size: 11px;
  margin-top: 6px;
  font-weight: 600;
}

.lms-up   { color: var(--green); }
.lms-down { color: var(--danger); }
.lms-neutral { color: var(--text-3); }

/* ===== ACTIVITY FEED ===== */
.activity-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  margin-top: 4px;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  position: relative;
}

.activity-item:hover { background: rgba(255,255,255,0.03); }

.activity-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.activity-info {
  flex: 1;
  min-width: 0;
}

.activity-info .name { font-weight: 600; font-size: 13px; }
.activity-info .action { font-size: 12px; color: var(--text-2); }
.activity-info .action .group { color: var(--text); font-weight: 600; }

.activity-time {
  font-size: 11px;
  color: var(--text-3);
  flex-shrink: 0;
}

.activity-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.activity-icon.joined { background: rgba(37,211,102,0.15); color: var(--green); }
.activity-icon.left   { background: rgba(239,68,68,0.15);  color: var(--danger); }

/* ===== BAILEYS / WA MONITOR ===== */
.wa-connect-box {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.wa-status-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.wa-status-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.wa-status-indicator.disconnected { background: rgba(255,255,255,0.06); }
.wa-status-indicator.connecting   { background: rgba(245,158,11,0.15); }
.wa-status-indicator.qr_ready     { background: rgba(59,130,246,0.15); }
.wa-status-indicator.connected    { background: rgba(37,211,102,0.15); }
.wa-status-indicator.unavailable  { background: rgba(239,68,68,0.1); }

.wa-status-indicator.connecting { animation: pulse-warning 1.5s ease infinite; }
@keyframes pulse-warning {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}

.wa-qr-container {
  text-align: center;
  margin: 16px 0;
}

.wa-qr-container img {
  border-radius: 12px;
  border: 3px solid rgba(37,211,102,0.3);
  max-width: 200px;
}

.wa-qr-label {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 10px;
}

/* ===== GROUP JID MAPPER ===== */
.jid-mapper {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
}

.jid-mapper .gm-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.jid-connected {
  font-size: 11px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* ===== CHART BAR OVERRIDE ===== */
.chart-wrapper {
  position: relative;
  height: 180px;
  width: 100%;
}
