[hidden] {
  display: none !important;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --card: #131313;
  --card-2: #1a1a1a;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f2efe9;
  --muted: #918b81;
  --muted-2: #524d46;

  --gold: #c9a961;
  --gold-dark: #a98a4a;
  --gold-soft: rgba(201, 169, 97, 0.12);

  --cream: #f4f0e8;
  --cream-text: #14120e;

  --green: #6fcf97;
  --green-soft: rgba(111, 207, 151, 0.12);

  --orange: #e0a458;
  --orange-soft: rgba(224, 164, 88, 0.12);

  --red: #e2735a;
  --red-soft: rgba(226, 115, 90, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 6px;
  --radius-sm: 3px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Eyebrow / mono label style, used for card titles, tabs, buttons, tags */
.mono-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Login */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.login-box {
  width: 100%;
  max-width: 340px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.login-box h1 { font-family: var(--font-display); font-size: 22px; margin: 0 0 6px; font-weight: 600; }
.login-box p { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.login-box label { text-align: left; display: block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 14px; }
.login-box input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text);
  background: var(--card-2);
}
.login-box input:focus { outline: none; border-color: var(--gold); }
.login-box button[type="submit"] {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--cream);
  color: var(--cream-text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: 4px;
}
.login-box button[type="submit"]:hover { background: #ffffff; }
.login-error { color: var(--red); font-size: 12px; min-height: 16px; margin: 12px 0 0; }

/* Shell */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: width 0.18s ease, padding 0.18s ease;
}
.sidebar.collapsed { width: 76px; padding: 18px 10px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar.collapsed .sidebar-brand { justify-content: center; }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--cream-text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; flex: 1; color: var(--text); }

.sidebar-toggle {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.15s ease;
}
.sidebar-toggle:hover { background: var(--border); color: var(--text); }
.sidebar.collapsed .sidebar-toggle { transform: rotate(180deg); position: absolute; top: 18px; right: -10px; background: var(--card-2); box-shadow: var(--shadow); }
.sidebar.collapsed { position: relative; }

.sidebar.collapsed .brand-name,
.sidebar.collapsed .sidebar-head-label,
.sidebar.collapsed .site-name-wrap,
.sidebar.collapsed .site-badge,
.sidebar.collapsed .footer-btn-label {
  display: none;
}
.sidebar.collapsed .sidebar-head { justify-content: center; }

.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-2);
}
#new-site-btn {
  width: 22px; height: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-mono);
  line-height: 1;
  font-weight: 700;
}
#new-site-btn:hover { background: var(--gold-soft); border-color: var(--gold); }

#site-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
#site-list li {
  padding: 8px 10px 8px 9px;
  border-left: 2px solid transparent;
  cursor: pointer;
  margin-bottom: 1px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
}
#site-list li:hover { background: var(--card-2); }
#site-list li.active { background: var(--gold-soft); border-left-color: var(--gold); color: var(--gold); }
#site-list li .site-name-wrap { overflow: hidden; flex: 1; }
.site-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--card-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#site-list li.active .site-avatar { background: var(--gold); color: var(--cream-text); }
.sidebar.collapsed #site-list li { justify-content: center; padding: 8px 6px; border-left: none; }
.sidebar.collapsed #new-site-btn { width: 100%; }
#site-list li .site-domain {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#site-list li.active .site-domain { color: var(--gold); opacity: 0.7; }
#site-list li .site-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
#site-list li.active .site-badge { color: var(--gold); }

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-footer-btn {
  border: none;
  background: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.sidebar-footer-btn:hover { background: var(--card-2); color: var(--text); }
.sidebar.collapsed .sidebar-footer-btn { text-align: center; font-size: 14px; }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-badge { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* Main column */
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-family: var(--font-display); font-size: 22px; margin: 0; font-weight: 600; color: var(--text); }
.breadcrumb { margin: 4px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  border: 1px solid var(--green-soft);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}
.status-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.content { flex: 1; padding: 24px 28px 40px; overflow-x: hidden; }
.empty-state { color: var(--muted); font-size: 14px; }

/* Toolbar */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar .field-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text);
}
.toolbar .field-group span { font-family: var(--font-mono); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.toolbar input[type="date"],
.toolbar select {
  border: none;
  outline: none;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text);
  background: transparent;
  color-scheme: dark;
}
.toolbar select { padding-right: 4px; cursor: pointer; }
.toolbar .spacer { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--card-2); border-color: var(--text); }
.btn.primary { background: var(--cream); border-color: var(--cream); color: var(--cream-text); }
.btn.primary:hover { background: #ffffff; border-color: #ffffff; }
.btn.danger { color: var(--red); border-color: var(--red-soft); }
.btn.danger:hover { background: var(--red-soft); border-color: var(--red); }

/* Dashboard grid */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 980px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
  transition: border-color 0.15s ease;
}
.card:hover {
  border-color: var(--border-strong);
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-title-row .card-title { margin: 0; padding: 0; border: none; }
.card-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.card-title .title-icon { color: var(--gold); vertical-align: -2px; margin-right: 3px; }
.card-expand-btn {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.card-expand-btn:hover { background: var(--gold-soft); color: var(--gold); border-color: var(--gold); }

/* KPI mini row inside cards */
.kpi-row {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.kpi-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: currentColor;
  flex-shrink: 0;
}
.kpi-tag.blue { color: var(--gold); }
.kpi-tag.green { color: var(--green); }
.kpi-tag.orange { color: var(--orange); }
.kpi-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.kpi-value { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.05; color: var(--text); }
.kpi-value.small { font-size: 20px; }
.kpi-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--green-soft);
  color: var(--green);
  margin-left: 8px;
}
.kpi-badge.down { border-color: var(--red-soft); color: var(--red); }

.breakdown-box {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
}
.breakdown-row + .breakdown-row { border-top: 1px solid var(--border); }
.breakdown-row .left { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.breakdown-row .dot { width: 6px; height: 6px; flex-shrink: 0; }
.breakdown-row .pct { font-family: var(--font-mono); color: var(--muted); font-weight: 500; font-size: 12px; }
.breakdown-row strong { font-family: var(--font-mono); font-weight: 700; }

.gauge-wrap { display: flex; flex-direction: column; align-items: center; }
.gauge-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: -6px;
}

.chart-box { position: relative; height: 260px; }
.chart-box.small { height: 150px; }

/* Legend dots for stacked chart */
.legend-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.legend-row .dot { width: 8px; height: 8px; display: inline-block; margin-right: 5px; }

/* Funnel */
.funnel { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.funnel-bar {
  height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  margin: 0 auto;
  transition: width 0.4s ease;
}
.funnel-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.funnel-value { font-family: var(--font-display); font-size: 15px; font-weight: 600; opacity: 0.92; }

/* City mini bars */
.city-list { display: flex; flex-direction: column; gap: 11px; }
.city-row { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; width: 100%; min-width: 0; }
.city-row .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.city-row .bar-track { display: block; background: var(--card-2); height: 3px; overflow: hidden; }
.city-row .bar-fill { display: block; height: 100%; background: var(--gold); }
.city-row .count { text-align: right; font-family: var(--font-mono); color: var(--muted); font-weight: 600; font-size: 12px; }

/* Gerador de URL */
.url-gen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.url-gen-grid label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 500; }
.url-gen-grid input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text);
  background: var(--card-2);
}
.url-gen-grid input:focus { outline: none; border-color: var(--gold); }
@media (max-width: 640px) {
  .url-gen-grid { grid-template-columns: 1fr; }
}
.url-gen-output { margin-top: 14px; }
.url-gen-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}
.copy-btn { padding: 4px 10px; font-size: 10px; flex-shrink: 0; }
#url-gen-suffix, #url-gen-example { white-space: pre-wrap; word-break: break-all; }

/* Snippet + site actions */
.section-title { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 26px 0 12px; color: var(--muted); }
.snippet-box {
  background: #000000;
  color: var(--cream);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
  white-space: pre;
}
#sync-result { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Table */
.table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.table-card-head .card-title { margin: 0; padding: 0; border: none; }
table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; color: var(--text); }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card-2);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}
tbody tr:hover { background: var(--card-2); }
tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

.event-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  flex-shrink: 0;
}
.event-dot.whatsapp { background: var(--green); }
.event-dot.page { background: var(--muted-2); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}
.badge.sent { border-color: var(--green-soft); color: var(--green); }
.badge.pending { border-color: var(--orange-soft); color: var(--orange); }
.badge.error { border-color: var(--red-soft); color: var(--red); }
.badge.na { border-color: var(--border); color: var(--muted); }

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.pagination-bar button {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
}
.pagination-bar button:hover:not(:disabled) { border-color: var(--text); }
.pagination-bar button:disabled { opacity: 0.4; cursor: default; }

/* Dialog */
dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 460px;
  width: 90%;
  background: var(--card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
dialog form { padding: 24px; }
dialog h2 { font-family: var(--font-display); margin: 0 0 16px; font-size: 19px; font-weight: 600; color: var(--text); }
dialog label, .settings-form label { display: block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; color: var(--muted); font-weight: 500; }
dialog input, dialog select, .settings-form input, .settings-form select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text);
  background: var(--card-2);
  color-scheme: dark;
}
dialog input:focus, dialog select:focus, .settings-form input:focus, .settings-form select:focus { outline: none; border-color: var(--gold); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 16px 0; padding: 4px 14px; }
legend { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 0 6px; font-weight: 600; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.dialog-actions button { padding: 9px 18px; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-mono); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; border: 1px solid var(--border-strong); background: transparent; color: var(--text); }
.dialog-actions button[type="submit"] { background: var(--cream); color: var(--cream-text); border: none; }
.dialog-actions button[type="submit"]:hover { background: #ffffff; }

.settings-form { max-width: 640px; }

.rule-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.rule-row .rule-type { width: 160px; flex-shrink: 0; margin-top: 0; }
.rule-row .rule-value { flex: 1; margin-top: 0; }
.rule-row .rule-remove {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.rule-row .rule-remove:hover { background: var(--red-soft); border-color: var(--red); }

/* Abas Dashboard / Configuracoes */
.view-tabs { display: flex; gap: 22px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.view-tab {
  padding: 0 0 12px;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.view-tab:hover { color: var(--text); }
.view-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Tela cheia por card */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: none;
  flex-direction: column;
}
.fullscreen-overlay.open { display: flex; }
.fullscreen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.fullscreen-header h2 { font-family: var(--font-display); margin: 0; font-size: 19px; font-weight: 600; color: var(--text); }
.fullscreen-body { flex: 1; overflow: auto; padding: 28px; }
.fullscreen-body > .card,
.fullscreen-body > .table-card {
  max-width: 1080px;
  margin: 0 auto;
}
.fullscreen-body .card-expand-btn { display: none; }
.fullscreen-body .toolbar,
.fullscreen-body .pagination-bar { display: none; }
.fullscreen-body .chart-box { height: min(60vh, 520px); }
.fullscreen-body .chart-box.small { height: min(42vh, 360px); }
.fullscreen-body .funnel-bar { height: 76px; }
.fullscreen-body .funnel-label { font-size: 13px; }
.fullscreen-body .funnel-value { font-size: 19px; }
.fullscreen-body table { font-size: 13px; }
.fullscreen-body .kpi-value { font-size: 30px; }
.fullscreen-body .kpi-value.small { font-size: 24px; }
.fullscreen-body .city-row { grid-template-columns: minmax(140px, 260px) 1fr 50px; }
.fullscreen-body .city-row .name { white-space: normal; overflow: visible; text-overflow: unset; }

@media (max-width: 720px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .topbar { padding: 16px; }
  .content { padding: 16px; }
}
