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

:root {
  --bg: #070912;
  --bg-elevated: #0d1020;
  --panel: rgba(18, 22, 40, .88);
  --panel-2: rgba(27, 31, 54, .94);
  --surface-hover: rgba(124, 92, 255, .09);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(139, 92, 246, .42);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #7c5cff;
  --primary-dark: #6547eb;
  --blue: #5aa8ff;
  --cyan: #58d9af;
  --brand-gradient: linear-gradient(135deg, #8b5cf6 0%, #5b7cff 52%, #58d9af 100%);
  --success: #38d996;
  --danger: #fb7185;
  --warning: #fbbf24;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh; margin: 0; padding: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% -10%, rgba(124, 92, 255, .19), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(66, 142, 255, .12), transparent 28rem),
    var(--bg);
  color: var(--text); font-size: 14px; line-height: 1.55;
}

::selection { background: rgba(124, 92, 255, .45); color: #fff; }
:focus-visible { outline: 3px solid rgba(124, 92, 255, .52); outline-offset: 2px; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #b6cbff; text-decoration: none; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 244px; z-index: 10;
  background: rgba(10, 12, 26, .9); border-right: 1px solid var(--border);
  box-shadow: 18px 0 50px rgba(0, 0, 0, .12); padding: 24px 14px;
  display: flex; flex-direction: column; backdrop-filter: blur(16px);
}
.sidebar .brand {
  display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800;
  letter-spacing: -.03em; margin: 0 8px 30px;
}
.sidebar .brand::first-letter { color: #b4a0ff; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.sidebar nav a {
  position: relative; padding: 11px 13px; border: 1px solid transparent; border-radius: var(--radius-sm);
  color: #cbd5e1; font-weight: 600; transition: .18s ease;
}
.sidebar nav a:hover, .sidebar nav a.active {
  color: #fff; background: var(--surface-hover); border-color: rgba(139, 92, 246, .2);
}
.sidebar nav a.active::before {
  content: ""; position: absolute; left: -15px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 99px; background: var(--brand-gradient); box-shadow: 0 0 14px rgba(124, 92, 255, .75);
}
.sidebar .logout button {
  width: 100%; background: rgba(255,255,255,.03); color: var(--muted); border: 1px solid var(--border);
  padding: 10px; border-radius: var(--radius-sm); cursor: pointer; font: inherit; transition: .18s ease;
}
.sidebar .logout button:hover { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }

.content { margin-left: 244px; padding: 40px; max-width: 1380px; }
h1, h2, h3 { color: #fff; letter-spacing: -.035em; }
h1 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: clamp(28px, 4vw, 38px); line-height: 1.12; }
h1 small { font-weight: 500; color: var(--muted); font-size: .42em; letter-spacing: 0; }
h2 { margin-top: 38px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 21px; }
.muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 18px; }
.card {
  position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--border);
  padding: 21px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, .3); }
.card .kpi { font-size: 31px; line-height: 1.1; letter-spacing: -.045em; font-weight: 800; color: #fff; margin-bottom: 7px; }
.card .kpi::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 12px; border-radius: 99px; background: var(--brand-gradient); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; margin-top: 14px; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.table-wrap table { margin: 0; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.055); }
th { background: rgba(255,255,255,.035); font-weight: 700; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: rgba(124, 92, 255, .055); }
tr:last-child td { border-bottom: none; }
tr.status-approved td { color: var(--text); }
tr.status-pending td { color: var(--warning); }
tr.status-rejected td, tr.status-cancelled td { color: var(--muted); }

.btn, button[type=submit] {
  appearance: none; background: var(--brand-gradient); color: white; border: 0; padding: 10px 16px;
  border-radius: var(--radius-sm); cursor: pointer; font: 700 13px/1.35 Inter, sans-serif; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 12px 26px rgba(92, 76, 239, .25); transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.btn:hover, button[type=submit]:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 16px 32px rgba(92, 76, 239, .38); }
.btn:active, button[type=submit]:active { transform: translateY(0); }
.link-btn { background: none; border: none; color: var(--blue); cursor: pointer; padding: 0; font: 600 13px Inter, sans-serif; }
.link-btn:hover { color: #c6d7ff; text-decoration: underline; }

.form { display: flex; flex-direction: column; gap: 9px; max-width: 660px; margin-top: 18px; }
.form label { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 10px; }
.form input, .form textarea, .form select, .login-card input {
  width: 100%; background: rgba(5, 7, 18, .56); color: var(--text); border: 1px solid var(--border);
  padding: 11px 12px; border-radius: var(--radius-sm); font: inherit; transition: border-color .15s, box-shadow .15s, background .15s;
}
.form input:focus, .form textarea:focus, .form select:focus, .login-card input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,255,.17); background: rgba(5,7,18,.82); }
.form textarea { min-height: 90px; resize: vertical; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 9px; max-width: none; }
.form.inline input, .form.inline select { flex: 1; min-width: 160px; }
.inline { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.alert { padding: 13px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; border: 1px solid var(--border); background: rgba(255,255,255,.035); }
.alert.error { background: rgba(251,113,133,.1); color: #fecdd3; border-color: rgba(251,113,133,.26); }
code { background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.15); padding: 2px 6px; border-radius: 6px; font-size: 12px; }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-card {
  position: relative; width: 100%; max-width: 440px; padding: 38px; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(28,28,55,.95), rgba(13,16,32,.94)); border: 1px solid rgba(139,92,246,.3);
  box-shadow: 0 28px 80px rgba(0,0,0,.4), 0 0 70px rgba(124,92,255,.14);
}
.login-card h1 { margin: 0; font-size: 30px; }
.login-card p { margin: 8px 0 24px; color: var(--muted); }
.login-card form { display: flex; flex-direction: column; gap: 9px; }
.login-card label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 8px; }
.login-card button { margin-top: 17px; padding: 12px; }

.tenant-badge { margin-top: 24px; padding: 13px 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.badge { display:inline-flex; align-items:center; padding:4px 9px; border-radius:999px; font-size:10px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; border:1px solid transparent; }
.badge-trial { background: rgba(124,92,255,.14); color: #c4b5fd; border-color: rgba(124,92,255,.28); }
.badge-ok { background: rgba(56,217,150,.12); color: #86efc2; border-color: rgba(56,217,150,.26); }
.badge-warn { background: rgba(251,191,36,.12); color: #fde68a; border-color: rgba(251,191,36,.26); }
.badge-bad { background: rgba(251,113,133,.12); color: #fecdd3; border-color: rgba(251,113,133,.26); }

@media (max-width: 820px) {
  .sidebar { position: static; width: 100%; min-height: auto; padding: 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar .brand { margin: 0 8px 14px; }
  .sidebar nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .sidebar nav a { white-space: nowrap; }
  .sidebar nav a.active::before { display: none; }
  .sidebar .logout { margin-top: 12px; }
  .content { margin-left: 0; padding: 24px 16px 40px; }
  .grid { grid-template-columns: 1fr; }
  .login-card { padding: 28px 22px; }
}

/* Dashboard premium — visão comercial e operacional */
.content:has(.dashboard-shell) { max-width: 1600px; padding: 30px 34px 56px; }
.dashboard-shell { display: flex; flex-direction: column; gap: 20px; font-variant-numeric: tabular-nums; }
.dashboard-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 28px; align-items: center; min-height: 290px; padding: 38px;
  border: 1px solid rgba(139,92,246,.22); border-radius: 26px;
  background:
    radial-gradient(circle at 76% 22%, rgba(88,217,175,.15), transparent 24rem),
    radial-gradient(circle at 18% 0%, rgba(124,92,255,.28), transparent 30rem),
    linear-gradient(135deg, rgba(20,22,46,.98), rgba(9,12,26,.96));
  box-shadow: 0 34px 90px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.05);
}
.dashboard-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: linear-gradient(90deg, #000, transparent 80%);
}
.dashboard-hero-copy, .hero-pulse-card { position: relative; z-index: 1; }
.eyebrow, .section-kicker {
  color: #a9b4c9; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(56,217,150,.1), 0 0 18px rgba(56,217,150,.72); }
.dashboard-hero h1 { max-width: 760px; font-size: clamp(31px, 4vw, 52px); font-weight: 600; letter-spacing: -.055em; }
.dashboard-hero-copy > p { max-width: 690px; margin: 16px 0 24px; color: #aab5c9; font-size: 16px; line-height: 1.65; }
.dashboard-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dashboard-actions .btn { padding: 11px 17px; }
.dashboard-secondary { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
.dashboard-secondary:hover { background: rgba(255,255,255,.08); }
.hero-pulse-card {
  padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 19px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.2); backdrop-filter: blur(16px);
}
.hero-pulse-head, .hero-pulse-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-pulse-head > span:first-child { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-pulse-card > strong { display: block; margin: 23px 0 18px; font-size: clamp(30px, 4vw, 43px); letter-spacing: -.05em; }
.hero-pulse-meta { color: var(--muted); font-size: 11px; }
.hero-pulse-meta b { display: block; color: #fff; font-size: 14px; }
.hero-sparkline { height: 55px; margin-top: 18px; display: flex; align-items: end; gap: 6px; }
.hero-sparkline i { flex: 1; min-height: 7px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #66e6ba, #6977ff); opacity: .85; }

.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.status-pill.success { color: #8cf2c9; background: rgba(56,217,150,.11); border: 1px solid rgba(56,217,150,.22); }
.status-pill.success::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-pill.muted-status { color: #9aa7ba; background: rgba(255,255,255,.04); border: 1px solid var(--border); }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric-card {
  position: relative; min-width: 0; padding: 19px; border: 1px solid rgba(255,255,255,.075); border-radius: 18px;
  background: linear-gradient(145deg, rgba(24,28,48,.92), rgba(13,16,31,.9)); box-shadow: 0 15px 44px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.metric-card:hover { transform: translateY(-3px); border-color: rgba(139,92,246,.35); background: linear-gradient(145deg, rgba(29,33,57,.96), rgba(15,18,35,.94)); }
.metric-card.metric-featured { background: linear-gradient(145deg, rgba(92,65,205,.28), rgba(14,18,36,.94)); border-color: rgba(139,92,246,.3); }
.metric-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.metric-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #c9bdff; background: rgba(124,92,255,.14); border: 1px solid rgba(124,92,255,.2); }
.metric-icon.blue { color: #a7d0ff; background: rgba(90,168,255,.12); border-color: rgba(90,168,255,.2); }
.metric-icon.cyan, .metric-icon.green { color: #91f1cf; background: rgba(88,217,175,.1); border-color: rgba(88,217,175,.18); }
.metric-icon.amber { color: #fde68a; background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.18); }
.metric-period { color: #718096; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.metric-label { color: #96a3b8; font-size: 12px; font-weight: 600; }
.metric-value { margin: 5px 0 15px; overflow: hidden; text-overflow: ellipsis; font-size: clamp(25px, 3vw, 36px); line-height: 1.05; font-weight: 700; letter-spacing: -.045em; }
.metric-value small { margin-left: 4px; color: #667085; font-size: .42em; font-weight: 600; }
.metric-foot { padding-top: 13px; border-top: 1px solid rgba(255,255,255,.055); color: #77859a; font-size: 10px; }
.metric-foot strong { color: #b8c3d6; font-weight: 700; }

.dashboard-layout { display: grid; gap: 20px; }
.dashboard-layout-main { grid-template-columns: minmax(0, 1.6fr) minmax(300px, .75fr); }
.dashboard-layout-lower { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
.dashboard-panel {
  min-width: 0; padding: 23px; border: 1px solid rgba(255,255,255,.075); border-radius: 20px;
  background: linear-gradient(145deg, rgba(19,23,41,.93), rgba(11,14,27,.93)); box-shadow: 0 18px 55px rgba(0,0,0,.2);
}
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.panel-heading.compact { margin-bottom: 18px; }
.panel-heading h2 { margin: 4px 0 0; padding: 0; border: 0; font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.panel-total { text-align: right; }
.panel-total span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.panel-total strong { font-size: 16px; }
.panel-link { color: #aebcff; font-size: 11px; font-weight: 700; white-space: nowrap; }

.revenue-chart { height: 235px; display: flex; align-items: end; gap: clamp(8px, 2vw, 18px); padding-top: 25px; }
.chart-column { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chart-value { height: 16px; max-width: 100%; color: #aab6c8; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-track { position: relative; flex: 1; width: min(48px, 78%); display: flex; align-items: end; border-radius: 8px; background: rgba(255,255,255,.025); overflow: hidden; }
.chart-bar { width: 100%; min-height: 4px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #7c5cff, #58d9af); box-shadow: 0 0 22px rgba(124,92,255,.25); transition: filter .18s, transform .18s; }
.chart-column:hover .chart-bar { filter: brightness(1.25); transform: scaleX(.94); }
.chart-column > span { color: #6f7c91; font-size: 9px; }

.funnel-list { display: flex; flex-direction: column; gap: 21px; }
.funnel-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #9ba8bb; font-size: 11px; }
.funnel-row strong { color: #fff; }
.funnel-track { height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.045); }
.funnel-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7657f5, #5a9dff, #58d9af); }
.insight-callout { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 13px; border-radius: 13px; background: rgba(124,92,255,.07); border: 1px solid rgba(124,92,255,.14); }
.insight-callout p { margin: 0; color: #8f9cb0; font-size: 10px; line-height: 1.55; }
.insight-callout strong { color: #c5cdef; }

.health-summary { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.health-summary span { padding: 6px 9px; border-radius: 9px; color: #8795aa; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); font-size: 9px; }
.health-summary b { color: #dce4ef; }
.bot-health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bot-health-card { display: block; min-width: 0; padding: 16px; border: 1px solid rgba(255,255,255,.065); border-radius: 15px; color: var(--text); background: rgba(255,255,255,.022); transition: .18s ease; }
.bot-health-card:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(124,92,255,.28); background: rgba(124,92,255,.045); }
.bot-health-head { display: flex; align-items: center; gap: 10px; }
.bot-avatar, .customer-avatar { display: grid; place-items: center; flex: 0 0 auto; color: #fff; font-weight: 800; background: var(--brand-gradient); box-shadow: 0 8px 20px rgba(92,76,239,.2); }
.bot-avatar { width: 34px; height: 34px; border-radius: 11px; }
.bot-identity { min-width: 0; flex: 1; }
.bot-identity strong, .bot-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-identity strong { font-size: 12px; }
.bot-identity span { color: #718096; font-size: 9px; }
.readiness-head { display: flex; justify-content: space-between; margin-top: 17px; color: #77859a; font-size: 9px; }
.readiness-head b { color: #b8c3d6; }
.readiness-track { height: 5px; margin-top: 7px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.readiness-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7958ff, #59d9af); }
.bot-checks { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 13px; }
.bot-checks span { padding: 4px 7px; border-radius: 7px; font-size: 8px; font-weight: 700; }
.bot-checks .ok { color: #82e7be; background: rgba(56,217,150,.08); }
.bot-checks .ok::before { content: "✓ "; }
.bot-checks .pending { color: #8994a7; background: rgba(255,255,255,.035); }
.bot-checks .pending::before { content: "○ "; }

.performance-list { display: flex; flex-direction: column; }
.performance-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.055); color: var(--text); }
.performance-row:last-child { border-bottom: 0; }
.performance-row:hover { color: var(--text); }
.rank { color: #5f6c80; font-size: 9px; font-weight: 700; }
.performance-name strong, .performance-name span, .performance-revenue strong, .performance-revenue span { display: block; }
.performance-name { min-width: 0; }
.performance-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.performance-name span, .performance-revenue span { color: #6e7b90; font-size: 8px; }
.performance-revenue { text-align: right; }
.performance-revenue strong { font-size: 11px; }

.operation-score { display: grid; grid-template-columns: 82px 1fr; gap: 15px; align-items: center; padding: 5px 0 18px; }
.score-ring { --score: 0; width: 78px; height: 78px; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(#58d9af calc(var(--score) * 1%), rgba(255,255,255,.055) 0); }
.score-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #111529; }
.score-ring span { position: relative; z-index: 1; font-size: 16px; font-weight: 800; }
.operation-score strong { font-size: 12px; }
.operation-score p { margin: 5px 0 0; color: #7f8ca1; font-size: 9px; line-height: 1.5; }
.operation-list { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; list-style: none; }
.operation-list li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.05); }
.operation-list strong, .operation-list small { display: block; }
.operation-list strong { font-size: 10px; }
.operation-list small { color: #718096; font-size: 8px; }
.operation-dot { width: 7px; height: 7px; border-radius: 50%; background: #7c5cff; box-shadow: 0 0 12px rgba(124,92,255,.5); }
.operation-dot.green { background: #58d9af; box-shadow: 0 0 12px rgba(88,217,175,.5); }
.operation-dot.amber { background: #fbbf24; box-shadow: 0 0 12px rgba(251,191,36,.4); }

.dashboard-table-wrap { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.dashboard-table { margin: 0; background: transparent; }
.dashboard-table th { padding: 10px 12px; background: transparent; font-size: 9px; }
.dashboard-table td { padding: 12px; font-size: 10px; }
.dashboard-table a { color: #d9e1ee; }
.customer-cell { display: flex; align-items: center; gap: 9px; }
.customer-avatar { width: 30px; height: 30px; border-radius: 10px; font-size: 10px; }
.customer-cell strong, .customer-cell small, .table-subline { display: block; }
.customer-cell small, .table-subline { color: #718096; font-size: 8px; }
.money-cell { color: #8de4c2; font-weight: 800; white-space: nowrap; }
.table-empty { padding: 28px; text-align: center; color: var(--muted); }
.dashboard-empty { padding: 34px; text-align: center; border: 1px dashed rgba(139,92,246,.22); border-radius: 16px; background: rgba(124,92,255,.025); }
.dashboard-empty > span { font-size: 30px; }
.dashboard-empty h3 { margin: 8px 0 3px; }
.dashboard-empty p { margin: 0 0 17px; color: var(--muted); }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-layout-main, .dashboard-layout-lower { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .dashboard-hero { grid-template-columns: 1fr; padding: 28px; }
  .hero-pulse-card { max-width: 520px; }
  .bot-health-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .content:has(.dashboard-shell) { padding: 20px 14px 40px; }
  .dashboard-hero { min-height: 0; border-radius: 20px; }
  .dashboard-hero h1 { font-size: 32px; }
  .dashboard-panel { padding: 18px; border-radius: 17px; }
  .health-summary { justify-content: flex-start; }
  .bots-health-panel .panel-heading { flex-direction: column; }
}

@media (max-width: 620px) {
  .metric-grid { grid-template-columns: 1fr; }
  .dashboard-hero { padding: 23px 19px; }
  .dashboard-actions .btn { width: 100%; }
  .hero-pulse-head, .hero-pulse-meta { align-items: flex-start; }
  .revenue-chart { gap: 5px; height: 205px; }
  .chart-value { display: none; }
  .panel-heading { flex-direction: column; }
  .panel-total { text-align: left; }
  .operation-score { grid-template-columns: 72px 1fr; }
  .score-ring { width: 68px; height: 68px; }
  .dashboard-table { min-width: 690px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
