/* ============================================================
   AEB Dashboard V1.7 — Refined Utilitarian Design Tokens
   Inspirações: Stripe Dashboard, Linear, Vercel Analytics
   ============================================================
   PRINCÍPIOS:
   - Densidade alta de informação, hierarquia rigorosa
   - Cinzas neutros frios (não bege), preto AEB #1C1C1C, laranja AEB #F47920
   - Sombras quase invisíveis (depth via border, não elevation)
   - Tipografia tabular-num para dashboards de números
   - Microinterações 150-200ms, ease-out-expo
   ============================================================ */

:root {
  /* ── Cores neutras (escala Stripe slate-like) ── */
  --aeb-neutral-0: #ffffff;
  --aeb-neutral-50: #fafafa;
  --aeb-neutral-100: #f4f4f5;
  --aeb-neutral-150: #ececef;
  --aeb-neutral-200: #e4e4e7;
  --aeb-neutral-300: #d4d4d8;
  --aeb-neutral-400: #a1a1aa;
  --aeb-neutral-500: #71717a;
  --aeb-neutral-600: #52525b;
  --aeb-neutral-700: #3f3f46;
  --aeb-neutral-800: #27272a;
  --aeb-neutral-900: #18181b;
  --aeb-neutral-950: #09090b;

  /* ── Surfaces ── */
  --aeb-bg-base: #fafafa;
  --aeb-bg-surface: #ffffff;
  --aeb-bg-subtle: #f4f4f5;
  --aeb-bg-muted: #ececef;
  --aeb-bg-overlay: rgba(9, 9, 11, 0.04);

  /* ── Borders ── */
  --aeb-border-subtle: #e4e4e7;
  --aeb-border-default: #d4d4d8;
  --aeb-border-strong: #a1a1aa;
  --aeb-border-focus: #f47920;

  /* ── Text ── */
  --aeb-text-primary: #18181b;
  --aeb-text-secondary: #3f3f46;
  --aeb-text-muted: #71717a;
  --aeb-text-tertiary: #a1a1aa;
  --aeb-text-disabled: #d4d4d8;
  --aeb-text-inverse: #ffffff;

  /* ── Brand AEB ── */
  --aeb-brand: #f47920;
  --aeb-brand-hover: #e56e1a;
  --aeb-brand-active: #c85a13;
  --aeb-brand-soft: #fef3e7;
  --aeb-brand-soft-2: #fce5c9;
  --aeb-brand-border: #fcd7b0;
  --aeb-brand-text: #7a3e10;

  --aeb-onyx: #1c1c1c;
  --aeb-onyx-soft: #f4f4f5;

  /* ── Semantic ── */
  --aeb-success: #15803d;
  --aeb-success-soft: #dcfce7;
  --aeb-success-border: #bbf7d0;
  --aeb-warning: #b45309;
  --aeb-warning-soft: #fef3c7;
  --aeb-warning-border: #fde68a;
  --aeb-danger: #b91c1c;
  --aeb-danger-soft: #fee2e2;
  --aeb-danger-border: #fecaca;
  --aeb-info: #1d4ed8;
  --aeb-info-soft: #dbeafe;
  --aeb-info-border: #bfdbfe;

  /* ── Paleta categórica para charts (10 cores, saturação controlada) ──
     Ordem otimizada para diferenciação visual — não usa neon/pastel */
  --aeb-chart-1: #f47920; /* AEB orange (brand) */
  --aeb-chart-2: #1c1c1c; /* AEB onyx */
  --aeb-chart-3: #2563eb; /* indigo 600 */
  --aeb-chart-4: #16a34a; /* emerald 600 */
  --aeb-chart-5: #9333ea; /* violet 600 */
  --aeb-chart-6: #dc2626; /* rose 600 */
  --aeb-chart-7: #0891b2; /* cyan 600 */
  --aeb-chart-8: #ca8a04; /* amber 600 */
  --aeb-chart-9: #db2777; /* pink 600 */
  --aeb-chart-10: #4d7c0f; /* lime 700 */

  /* ── Shadows (camadas sutis, Stripe-style) ── */
  --aeb-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --aeb-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --aeb-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --aeb-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --aeb-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --aeb-shadow-focus: 0 0 0 3px rgba(244, 121, 32, 0.18);

  /* ── Radius ── */
  --aeb-radius-xs: 4px;
  --aeb-radius-sm: 6px;
  --aeb-radius-md: 8px;
  --aeb-radius-lg: 10px;
  --aeb-radius-xl: 14px;
  --aeb-radius-2xl: 18px;
  --aeb-radius-full: 9999px;

  /* ── Spacing (4px scale) ── */
  --aeb-sp-1: 4px;
  --aeb-sp-2: 8px;
  --aeb-sp-3: 12px;
  --aeb-sp-4: 16px;
  --aeb-sp-5: 20px;
  --aeb-sp-6: 24px;
  --aeb-sp-8: 32px;
  --aeb-sp-10: 40px;
  --aeb-sp-12: 48px;
  --aeb-sp-16: 64px;

  /* ── Transitions ── */
  --aeb-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --aeb-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --aeb-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --aeb-duration-fast: 120ms;
  --aeb-duration-base: 180ms;
  --aeb-duration-slow: 280ms;

  /* ── Typography ── */
  --aeb-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --aeb-font-mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  /* Usa Inter v4 com cv11 (alt single-storey g) e tnum (numerais tabulares) */
  --aeb-font-feat-num: 'tnum' on, 'cv11' on, 'ss01' on, 'ss03' on, 'calt' off;
  --aeb-font-feat-text: 'cv11' on, 'ss01' on;
}

/* ============================================================
   COMPONENT: Dashboard Container
   ============================================================ */
.aeb-dash {
  font-family: var(--aeb-font-sans);
  color: var(--aeb-text-primary);
  font-feature-settings: var(--aeb-font-feat-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.aeb-dash * {
  box-sizing: border-box;
}

/* Numerais tabulares onde números aparecem */
.aeb-num,
.aeb-dash .aeb-card__value,
.aeb-dash .aeb-hero__value,
.aeb-dash .aeb-kpi__value,
.aeb-dash table td,
.aeb-dash table th {
  font-feature-settings: var(--aeb-font-feat-num);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   COMPONENT: Hero (KPI primário)
   Estilo: surface plain (não gradiente saturado), com indicador
   visual da brand via accent line à esquerda + chip de comparação
   ============================================================ */
.aeb-hero {
  position: relative;
  background: var(--aeb-bg-surface);
  border: 1px solid var(--aeb-border-subtle);
  border-radius: var(--aeb-radius-xl);
  padding: 24px 28px;
  overflow: hidden;
  box-shadow: var(--aeb-shadow-sm);
}
/* Accent stripe sutil à esquerda (4px) — depth sem grandiloquência */
.aeb-hero::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--aeb-brand);
  border-radius: var(--aeb-radius-xl) 0 0 var(--aeb-radius-xl);
}
/* Decoração sutil no canto direito (não intrusiva) */
.aeb-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(244, 121, 32, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.aeb-hero__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
.aeb-hero__main {
  flex: 1;
  min-width: 320px;
}
.aeb-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aeb-text-muted);
  margin-bottom: 8px;
}
.aeb-hero__eyebrow svg {
  color: var(--aeb-brand);
}
.aeb-hero__value-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.aeb-hero__value {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--aeb-text-primary);
}
.aeb-hero__delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--aeb-radius-full);
  border: 1px solid;
}
.aeb-hero__delta--up {
  color: var(--aeb-success);
  background: var(--aeb-success-soft);
  border-color: var(--aeb-success-border);
}
.aeb-hero__delta--down {
  color: var(--aeb-danger);
  background: var(--aeb-danger-soft);
  border-color: var(--aeb-danger-border);
}
.aeb-hero__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: var(--aeb-text-secondary);
  margin-top: 8px;
}
.aeb-hero__sub b {
  color: var(--aeb-text-primary);
  font-weight: 600;
}
.aeb-hero__sub-divider {
  color: var(--aeb-text-tertiary);
}
.aeb-hero__hint {
  font-size: 12px;
  color: var(--aeb-text-muted);
  margin-top: 4px;
}
.aeb-hero__filters {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Chips de filtro (refined, no gradient) */
.aeb-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--aeb-radius-full);
  background: var(--aeb-bg-subtle);
  color: var(--aeb-text-secondary);
  border: 1px solid var(--aeb-border-subtle);
  white-space: nowrap;
}
.aeb-chip--brand {
  background: var(--aeb-brand-soft);
  color: var(--aeb-brand-text);
  border-color: var(--aeb-brand-border);
}
.aeb-chip--cross {
  background: var(--aeb-onyx);
  color: #fff;
  border-color: var(--aeb-onyx);
  font-weight: 600;
}
.aeb-chip--neutral {
  background: var(--aeb-bg-subtle);
  color: var(--aeb-text-muted);
  border-color: var(--aeb-border-subtle);
}
.aeb-chip--clear {
  cursor: pointer;
  background: var(--aeb-text-primary);
  color: var(--aeb-text-inverse);
  border-color: var(--aeb-text-primary);
  transition: background var(--aeb-duration-fast) var(--aeb-ease-out);
}
.aeb-chip--clear:hover {
  background: var(--aeb-neutral-700);
}

/* KPI mini card no hero (Vendidas) */
.aeb-hero__kpis {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.aeb-kpi {
  background: var(--aeb-bg-subtle);
  border: 1px solid var(--aeb-border-subtle);
  border-radius: var(--aeb-radius-lg);
  padding: 14px 18px;
  min-width: 150px;
  transition:
    border-color var(--aeb-duration-base) var(--aeb-ease-out),
    background var(--aeb-duration-base) var(--aeb-ease-out);
}
.aeb-kpi:hover {
  border-color: var(--aeb-border-default);
  background: var(--aeb-bg-surface);
}
.aeb-kpi__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--aeb-text-muted);
}
.aeb-kpi__label svg {
  color: var(--aeb-text-muted);
}
.aeb-kpi__value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
  line-height: 1;
  letter-spacing: -0.018em;
  color: var(--aeb-text-primary);
}
.aeb-kpi__meta {
  font-size: 11.5px;
  color: var(--aeb-text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   COMPONENT: Stat Cards (linha de KPIs secundários)
   ============================================================ */
.aeb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.aeb-stat {
  background: var(--aeb-bg-surface);
  border: 1px solid var(--aeb-border-subtle);
  border-radius: var(--aeb-radius-md);
  padding: 12px 14px;
  position: relative;
  transition: border-color var(--aeb-duration-base) var(--aeb-ease-out);
}
.aeb-stat:hover {
  border-color: var(--aeb-border-default);
}
.aeb-stat::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 14px;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--aeb-stat-accent, var(--aeb-brand));
}
.aeb-stat__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--aeb-text-muted);
  padding-left: 12px;
}
.aeb-stat__value {
  font-size: 19px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: -0.015em;
  color: var(--aeb-text-primary);
  padding-left: 12px;
}

/* ============================================================
   COMPONENT: Filter Bar
   ============================================================ */
.aeb-filterbar {
  background: var(--aeb-bg-surface);
  border: 1px solid var(--aeb-border-subtle);
  border-radius: var(--aeb-radius-lg);
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--aeb-shadow-xs);
}
.aeb-filterbar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.aeb-filterbar__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--aeb-text-secondary);
}
.aeb-filterbar__title svg {
  color: var(--aeb-brand);
}
.aeb-filterbar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.aeb-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aeb-field__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aeb-text-tertiary);
}
.aeb-input,
.aeb-select {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  background: var(--aeb-bg-surface);
  border: 1px solid var(--aeb-border-default);
  border-radius: var(--aeb-radius-sm);
  font-family: inherit;
  font-size: 13px;
  color: var(--aeb-text-primary);
  transition:
    border-color var(--aeb-duration-fast) var(--aeb-ease-out),
    box-shadow var(--aeb-duration-fast) var(--aeb-ease-out);
  outline: none;
}
.aeb-input:hover,
.aeb-select:hover {
  border-color: var(--aeb-border-strong);
}
.aeb-input:focus,
.aeb-select:focus {
  border-color: var(--aeb-border-focus);
  box-shadow: var(--aeb-shadow-focus);
}
.aeb-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.aeb-input[type='date'],
.aeb-input[type='number'],
.aeb-input[type='search'] {
  font-feature-settings: var(--aeb-font-feat-num);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   COMPONENT: Card (chart container)
   ============================================================ */
.aeb-card {
  background: var(--aeb-bg-surface);
  border: 1px solid var(--aeb-border-subtle);
  border-radius: var(--aeb-radius-lg);
  padding: 18px;
  box-shadow: var(--aeb-shadow-xs);
  transition:
    border-color var(--aeb-duration-base) var(--aeb-ease-out),
    box-shadow var(--aeb-duration-base) var(--aeb-ease-out);
}
.aeb-card:hover {
  border-color: var(--aeb-border-default);
  box-shadow: var(--aeb-shadow-sm);
}
.aeb-card--full {
  grid-column: 1 / -1;
}
.aeb-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.aeb-card__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--aeb-text-secondary);
}
.aeb-card__title svg {
  color: var(--aeb-brand);
}
.aeb-card__chart-area {
  position: relative;
  height: 180px;
}
.aeb-card--full .aeb-card__chart-area {
  height: 240px;
}

/* ============================================================
   COMPONENT: Q/V/% Toggle (segmented control)
   Inspiração: Linear / iOS segmented controls
   ============================================================ */
.aeb-segmented {
  display: inline-flex;
  background: var(--aeb-bg-subtle);
  border: 1px solid var(--aeb-border-subtle);
  border-radius: var(--aeb-radius-sm);
  padding: 2px;
  gap: 0;
}
.aeb-segmented__btn {
  border: none;
  background: transparent;
  color: var(--aeb-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: var(--aeb-radius-xs);
  cursor: pointer;
  transition:
    background var(--aeb-duration-fast) var(--aeb-ease-out),
    color var(--aeb-duration-fast) var(--aeb-ease-out);
  font-family: inherit;
  min-width: 28px;
}
.aeb-segmented__btn:hover {
  color: var(--aeb-text-primary);
}
.aeb-segmented__btn[aria-pressed='true'] {
  background: var(--aeb-bg-surface);
  color: var(--aeb-text-primary);
  box-shadow: var(--aeb-shadow-xs);
}

/* ============================================================
   COMPONENT: Data Table (embaixo de cada chart)
   ============================================================ */
.aeb-table-wrap {
  margin-top: 14px;
  border-top: 1px solid var(--aeb-border-subtle);
  padding-top: 10px;
  max-height: 168px;
  overflow-y: auto;
}
.aeb-table-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.aeb-table-wrap::-webkit-scrollbar-thumb {
  background: var(--aeb-border-default);
  border-radius: 3px;
}
.aeb-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.aeb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  font-feature-settings: var(--aeb-font-feat-num);
  font-variant-numeric: tabular-nums;
}
.aeb-table thead {
  position: sticky;
  top: 0;
  background: var(--aeb-bg-surface);
  z-index: 1;
}
.aeb-table th {
  text-align: right;
  padding: 6px 8px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--aeb-text-tertiary);
  border-bottom: 1px solid var(--aeb-border-subtle);
}
.aeb-table th:first-child {
  text-align: left;
}
.aeb-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--aeb-border-subtle);
  color: var(--aeb-text-secondary);
}
.aeb-table tr:last-child td {
  border-bottom: none;
}
.aeb-table tr.is-clickable {
  cursor: pointer;
  transition: background var(--aeb-duration-fast) var(--aeb-ease-out);
}
.aeb-table tr.is-clickable:hover {
  background: var(--aeb-bg-subtle);
}
.aeb-table tr.is-active {
  background: var(--aeb-brand-soft);
}
.aeb-table tr.is-active td {
  color: var(--aeb-text-primary);
  font-weight: 600;
}
.aeb-table .aeb-table__cat {
  text-align: left;
  color: var(--aeb-text-primary);
  font-weight: 500;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aeb-table .aeb-table__num {
  text-align: right;
  color: var(--aeb-text-secondary);
  font-weight: 500;
}
.aeb-table .aeb-table__val {
  text-align: right;
  color: var(--aeb-text-primary);
  font-weight: 600;
  white-space: nowrap;
}
.aeb-table .aeb-table__pct {
  text-align: right;
  color: var(--aeb-text-muted);
}

/* ============================================================
   COMPONENT: Insights bar
   ============================================================ */
.aeb-insights {
  background: var(--aeb-bg-surface);
  border: 1px solid var(--aeb-border-subtle);
  border-radius: var(--aeb-radius-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.aeb-insights__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--aeb-text-muted);
  margin-bottom: 10px;
}
.aeb-insights__title svg {
  color: var(--aeb-warning);
}
.aeb-insights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.aeb-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--aeb-bg-subtle);
  border-radius: var(--aeb-radius-md);
  border-left: 3px solid var(--aeb-insight-color, var(--aeb-brand));
  font-size: 12.5px;
  color: var(--aeb-text-secondary);
  line-height: 1.45;
  transition: background var(--aeb-duration-base) var(--aeb-ease-out);
}
.aeb-insight:hover {
  background: var(--aeb-bg-muted);
}
.aeb-insight svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--aeb-insight-color, var(--aeb-brand));
}
.aeb-insight b {
  color: var(--aeb-text-primary);
  font-weight: 600;
}

/* ============================================================
   COMPONENT: Charts grid
   ============================================================ */
.aeb-chartgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 1280px) {
  .aeb-chartgrid {
    grid-template-columns: repeat(3, 1fr);
  }
  .aeb-card--span2 {
    grid-column: span 2;
  }
}
@media (max-width: 768px) {
  .aeb-chartgrid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   COMPONENT: Buttons (acessórios)
   ============================================================ */
.aeb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--aeb-radius-sm);
  cursor: pointer;
  transition: all var(--aeb-duration-fast) var(--aeb-ease-out);
  white-space: nowrap;
}
.aeb-btn--ghost {
  background: transparent;
  color: var(--aeb-text-secondary);
  border: 1px solid var(--aeb-border-subtle);
}
.aeb-btn--ghost:hover {
  background: var(--aeb-bg-subtle);
  border-color: var(--aeb-border-default);
  color: var(--aeb-text-primary);
}
.aeb-btn--primary {
  background: var(--aeb-text-primary);
  color: var(--aeb-text-inverse);
  border: 1px solid var(--aeb-text-primary);
}
.aeb-btn--primary:hover {
  background: var(--aeb-neutral-700);
  border-color: var(--aeb-neutral-700);
}
.aeb-btn--brand {
  background: var(--aeb-brand);
  color: #fff;
  border: 1px solid var(--aeb-brand);
}
.aeb-btn--brand:hover {
  background: var(--aeb-brand-hover);
  border-color: var(--aeb-brand-hover);
}

/* ============================================================
   COMPONENT: Empty / Loading states
   ============================================================ */
.aeb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--aeb-text-muted);
  background: var(--aeb-bg-surface);
  border: 1px dashed var(--aeb-border-default);
  border-radius: var(--aeb-radius-lg);
}
.aeb-empty svg {
  color: var(--aeb-text-tertiary);
  margin-bottom: 12px;
}
.aeb-empty__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--aeb-text-secondary);
  margin-bottom: 4px;
}
.aeb-empty__sub {
  font-size: 13px;
  color: var(--aeb-text-muted);
}

/* Skeleton loading */
@keyframes aeb-skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.aeb-skeleton {
  background: var(--aeb-bg-muted);
  border-radius: var(--aeb-radius-sm);
  animation: aeb-skeleton-pulse 1.4s ease-in-out infinite;
}

/* ============================================================
   COMPONENT: Compare button (toggle pill)
   ============================================================ */
.aeb-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--aeb-bg-surface);
  color: var(--aeb-text-secondary);
  border: 1px solid var(--aeb-border-default);
  border-radius: var(--aeb-radius-full);
  cursor: pointer;
  transition: all var(--aeb-duration-fast) var(--aeb-ease-out);
}
.aeb-compare-btn:hover {
  border-color: var(--aeb-text-primary);
  color: var(--aeb-text-primary);
}
.aeb-compare-btn[aria-pressed='true'] {
  background: var(--aeb-text-primary);
  color: var(--aeb-text-inverse);
  border-color: var(--aeb-text-primary);
}

/* ============================================================
   COMPONENT: Map widget refinements (overrides do brasil-map-pro)
   ============================================================ */
.aeb-card .brasil-uf {
  stroke: var(--aeb-bg-surface);
  transition:
    fill var(--aeb-duration-base) var(--aeb-ease-out),
    stroke-width var(--aeb-duration-fast) var(--aeb-ease-out);
}
.aeb-card .brasil-uf:hover {
  stroke: var(--aeb-text-primary);
}

/* ============================================================
   ANIMATIONS — Stagger reveal on first load
   ============================================================ */
@keyframes aeb-fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.aeb-dash > * {
  animation: aeb-fade-up 400ms var(--aeb-ease-out) backwards;
}
.aeb-dash > :nth-child(1) {
  animation-delay: 20ms;
}
.aeb-dash > :nth-child(2) {
  animation-delay: 60ms;
}
.aeb-dash > :nth-child(3) {
  animation-delay: 100ms;
}
.aeb-dash > :nth-child(4) {
  animation-delay: 140ms;
}
.aeb-dash > :nth-child(5) {
  animation-delay: 180ms;
}
.aeb-dash > :nth-child(6) {
  animation-delay: 220ms;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .aeb-dash > *,
  .aeb-skeleton {
    animation: none;
  }
  * {
    transition-duration: 1ms !important;
  }
}

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
[data-theme='dark'] .aeb-dash {
  --aeb-neutral-0: #0a0a0b;
  --aeb-neutral-50: #0f0f10;
  --aeb-neutral-100: #18181b;
  --aeb-neutral-150: #1f1f22;
  --aeb-neutral-200: #27272a;
  --aeb-neutral-300: #3f3f46;
  --aeb-neutral-400: #52525b;
  --aeb-neutral-500: #71717a;
  --aeb-neutral-600: #a1a1aa;
  --aeb-neutral-700: #d4d4d8;
  --aeb-neutral-800: #e4e4e7;
  --aeb-neutral-900: #f4f4f5;

  --aeb-bg-base: #0a0a0b;
  --aeb-bg-surface: #18181b;
  --aeb-bg-subtle: #1f1f22;
  --aeb-bg-muted: #27272a;

  --aeb-border-subtle: #27272a;
  --aeb-border-default: #3f3f46;
  --aeb-border-strong: #52525b;

  --aeb-text-primary: #fafafa;
  --aeb-text-secondary: #d4d4d8;
  --aeb-text-muted: #a1a1aa;
  --aeb-text-tertiary: #71717a;

  --aeb-brand-soft: rgba(244, 121, 32, 0.12);
  --aeb-brand-soft-2: rgba(244, 121, 32, 0.18);
  --aeb-brand-border: rgba(244, 121, 32, 0.32);
  --aeb-brand-text: #fdba74;
}
