/* ============================================================
   ACELERA 2026 — Dashboard theme (replicado do Claude Design)
   ============================================================ */

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

.acelera-root {
  --acelera-red: #C8102E;
  --acelera-red-dark: #7F1D1D;
  --acelera-red-light: #FEE2E2;
  --acelera-gold: #F59E0B;
  --acelera-gold-light: #FEF3C7;
  --acelera-green: #10B981;
  --acelera-green-light: #D1FAE5;
  --acelera-blue: #3B82F6;
  --acelera-blue-light: #DBEAFE;
  --acelera-bg: #F1F0EE;
  --acelera-card: #FFFFFF;
  --acelera-dark: #111827;
  --acelera-muted: #6B7280;
  --acelera-border: #E5E7EB;
  font-family: 'Inter', sans-serif;
  background: var(--acelera-bg);
  color: var(--acelera-dark);
  min-height: 100vh;
}

.acelera-root h1, .acelera-root h2, .acelera-root h3, .acelera-root h4,
.acelera-root .ac-num {
  font-family: 'Barlow Condensed', sans-serif;
}

/* ---------- Header ---------- */
.acelera-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E1535 40%, #2D1B2E 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}

.acelera-header .ac-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.acelera-header .ac-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--acelera-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(200, 16, 46, .4);
  flex-shrink: 0;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.acelera-header .ac-kicker {
  color: rgba(255, 255, 255, .5);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.acelera-header .ac-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}

.acelera-header .ac-title span {
  color: var(--acelera-gold);
}

.acelera-header .ac-live {
  background: rgba(200, 16, 46, .2);
  border: 1px solid rgba(200, 16, 46, .4);
  border-radius: 8px;
  padding: 4px 10px;
  margin-left: 8px;
  color: var(--acelera-red);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.acelera-header .ac-tabs {
  display: flex;
  gap: 0;
  padding: 0 20px;
  margin-top: 10px;
  overflow-x: auto;
}

.acelera-header .ac-tab-btn {
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  background: none;
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, .45);
  border-bottom: 2px solid transparent;
  transition: all .2s;
}

.acelera-header .ac-tab-btn:hover {
  color: rgba(255, 255, 255, .75);
}

.acelera-header .ac-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--acelera-red);
}

.acelera-header .ac-periodo-btn {
  padding: 6px 14px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: .78rem;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .6);
  transition: all .2s;
}

.acelera-header .ac-periodo-btn.active {
  background: var(--acelera-red);
  color: #fff;
}

/* ---------- Cards / KPIs ---------- */
.acelera-kpi {
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
  border: 1px solid rgba(0, 0, 0, .05);
  flex: 1;
  min-width: 0;
}

.acelera-kpi .ac-kpi-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--acelera-muted);
}

.acelera-kpi .ac-kpi-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--acelera-dark);
  line-height: 1;
}

.acelera-kpi .ac-kpi-sub {
  font-size: .78rem;
  color: var(--acelera-muted);
  margin-top: 6px;
}

.acelera-card-soft {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
  border: 1px solid rgba(0, 0, 0, .05);
}

/* ---------- Progress bar ---------- */
.acelera-pb {
  background: #F3F4F6;
  border-radius: 99px;
  overflow: hidden;
}

.acelera-pb-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(.22, .68, 0, 1.2);
}

.acelera-no-anim .acelera-pb-fill {
  transition: none !important;
}

/* ---------- Badge ---------- */
.acelera-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
}

/* ---------- Tab switching ---------- */
.acelera-tab-content {
  display: none;
}
.acelera-tab-content.active {
  display: block;
}

/* ---------- Tweaks panel ---------- */
.acelera-tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--acelera-border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
  padding: 14px 18px 18px;
  width: 260px;
}

.acelera-tweaks h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--acelera-dark);
}

.acelera-tweaks-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: .82rem;
  color: var(--acelera-muted);
  font-weight: 500;
}

.acelera-tweaks-toggler {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--acelera-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Dark mode ---------- */
body.acelera-dark {
  background: #0F172A !important;
}
body.acelera-dark .acelera-root {
  background: #0F172A;
  color: #F1F5F9;
}
body.acelera-dark .acelera-card-soft,
body.acelera-dark .acelera-kpi {
  background: #1E293B;
  border-color: rgba(255, 255, 255, .08);
  color: #F1F5F9;
}
body.acelera-dark .acelera-kpi .ac-kpi-value {
  color: #fff;
}
body.acelera-dark .acelera-tweaks {
  background: #1E293B;
  color: #fff;
  border-color: rgba(255, 255, 255, .1);
}

/* ---------- Ranking podio/lista switch ---------- */
.acelera-root.rank-lista .ac-podium { display: none; }
.acelera-root.rank-podium .ac-ranking-lista { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .acelera-header .ac-topbar { padding: 10px 14px 0; }
  .acelera-header .ac-tabs { padding: 0 10px; }
}

/* ---------- Acelera content skins ---------- */
.acelera-section-kicker {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.acelera-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -.01em;
  line-height: 1;
}

.acelera-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--acelera-dark);
  line-height: 1;
}

.acelera-card-subtitle {
  color: var(--acelera-muted);
  font-size: .82rem;
  margin-top: 4px;
  margin-bottom: 18px;
}

.acelera-banner-grid,
.acelera-kpi-strip,
.acelera-mini-grid,
.acelera-side-kpis,
.acelera-hero-tiles,
.acelera-qualidade-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.acelera-sprint-banner,
.acelera-productividade-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 50%, #3B82F6 100%);
  border-radius: 24px;
  padding: 32px 36px;
  box-shadow: 0 20px 60px rgba(29, 78, 216, .25);
  position: relative;
  overflow: hidden;
}

.acelera-productividade-hero {
  background: linear-gradient(135deg, #0F172A 0%, #7F1D1D 50%, #C8102E 100%);
  box-shadow: 0 20px 60px rgba(127, 29, 29, .25);
}

.acelera-hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3.2rem;
  letter-spacing: -.02em;
  line-height: .9;
  margin: 0 0 12px 0;
}

.acelera-hero-sub {
  color: rgba(255,255,255,.86);
  font-size: 1rem;
  margin-bottom: 16px;
}

.acelera-hero-tile {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 10px 18px;
}

.acelera-tile-kicker {
  color: rgba(255,255,255,.7);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.acelera-tile-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 4px;
}

.acelera-mini-card {
  flex: 1 1 240px;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

.acelera-mini-title {
  font-weight: 700;
  font-size: .92rem;
  color: var(--acelera-dark);
}

.acelera-mini-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--acelera-dark);
  margin-top: 10px;
}

.acelera-mini-sub {
  margin-top: 10px;
  font-size: .78rem;
  font-weight: 600;
}

.acelera-table-wrap {
  overflow-x: auto;
}

.acelera-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.acelera-data-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--acelera-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--acelera-border);
  background: #F9FAFB;
  white-space: nowrap;
}

.acelera-data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}

.acelera-data-table tbody tr:nth-child(even) {
  background: #FAFAFA;
}

.acelera-table-pos,
.acelera-rank-pos {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  text-align: center;
  min-width: 44px;
}

.acelera-table-name,
.acelera-rank-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--acelera-dark);
}

.acelera-table-money,
.acelera-rank-fat {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--acelera-dark);
}

.acelera-table-sub,
.acelera-rank-meta {
  font-size: .75rem;
  color: var(--acelera-muted);
  margin-top: 2px;
}

.acelera-table-center {
  text-align: center;
}

.acelera-table-highlight {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.acelera-inline-chip,
.acelera-rank-chip {
  background: #DBEAFE;
  color: #1E40AF;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.acelera-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.acelera-podium-slot {
  flex: 1 1 180px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.acelera-podium-card {
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  margin-bottom: 8px;
  width: 100%;
}

.acelera-podium-emoji {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.acelera-podium-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
}

.acelera-podium-value {
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 4px;
}

.acelera-podium-sub {
  color: rgba(255,255,255,.55);
  font-size: .75rem;
}

.acelera-podium-pill {
  margin-top: 8px;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 700;
}

.acelera-podium-base {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: none !important;
}

.acelera-podium-base span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3rem;
}

.acelera-ranking-lista {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.05);
}

.acelera-rank-row,
.acelera-qualidade-row {
  display: grid;
  grid-template-columns: 42px minmax(220px,1fr) 140px 120px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
}

.acelera-rank-row:last-child,
.acelera-qualidade-row:last-child {
  border-bottom: none;
}

.acelera-rank-main {
  min-width: 0;
}

.acelera-premio-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--acelera-border);
  background: linear-gradient(135deg,#0F172A,#1E1535);
}

body.acelera-dark .acelera-ranking-lista,
body.acelera-dark .acelera-mini-card,
body.acelera-dark .acelera-data-table th,
body.acelera-dark .acelera-data-table tbody tr:nth-child(even) {
  background: #1E293B;
}

body.acelera-dark .acelera-data-table td,
body.acelera-dark .acelera-data-table th,
body.acelera-dark .acelera-rank-name,
body.acelera-dark .acelera-table-name,
body.acelera-dark .acelera-mini-title,
body.acelera-dark .acelera-mini-value,
body.acelera-dark .acelera-card-title {
  color: #F1F5F9;
}

body.acelera-dark .acelera-card-subtitle,
body.acelera-dark .acelera-rank-meta,
body.acelera-dark .acelera-table-sub,
body.acelera-dark .acelera-podium-sub,
body.acelera-dark .acelera-mini-sub {
  color: rgba(241,245,249,.68);
}

@media (max-width: 900px) {
  .acelera-rank-row,
  .acelera-qualidade-row {
    grid-template-columns: 42px 1fr;
  }

  .acelera-rank-row > :nth-child(3),
  .acelera-rank-row > :nth-child(4),
  .acelera-qualidade-row > :nth-child(3),
  .acelera-qualidade-row > :nth-child(4) {
    grid-column: 2;
  }
}
