:root {
  --bg: #070a12;
  --bg-deep: #05070d;
  --surface: rgba(16, 21, 36, 0.92);
  --surface-strong: #111729;
  --surface-soft: rgba(25, 32, 52, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f8fc;
  --text-soft: #cbd1df;
  --muted: #8791a8;
  --lime: #c9ff4a;
  --blue: #7181ff;
  --blue-bright: #8e9aff;
  --pink: #ff6db3;
  --orange: #ff9b63;
  --cyan: #5ee8ff;
  --green: #43e6a1;
  --danger: #ff758c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(113, 129, 255, 0.14), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(255, 109, 179, 0.09), transparent 26%),
    linear-gradient(180deg, #080b14 0%, #070a12 52%, #05070d 100%);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient-one {
  top: 14%;
  left: -190px;
  background: var(--blue);
}

.ambient-two {
  right: -210px;
  top: 48%;
  background: var(--pink);
}

.app-shell {
  width: min(calc(100% - 44px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 150px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(9, 13, 24, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px);
}

.brand-cluster,
.header-status,
.period-cluster {
  display: flex;
  align-items: center;
}

.brand-cluster {
  gap: 16px;
}

.brand {
  display: grid;
  place-items: center;
  min-width: 116px;
  height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--lime);
  color: #10150d;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(201, 255, 74, 0.16);
}

.brand span {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.header-title,
.status-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-title strong,
.status-copy strong {
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.header-title span,
.status-copy span {
  color: var(--muted);
  font-size: 0.74rem;
}

.period-cluster {
  gap: 8px;
  justify-content: center;
}

.period-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.period-pill-accent {
  border-color: rgba(201, 255, 74, 0.2);
  background: rgba(201, 255, 74, 0.08);
  color: var(--lime);
}

.header-status {
  justify-content: flex-end;
  gap: 12px;
  text-align: right;
}

.refresh-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: 180ms ease;
}

.refresh-button:hover {
  border-color: rgba(201, 255, 74, 0.34);
  background: rgba(201, 255, 74, 0.08);
  transform: translateY(-1px);
}

.refresh-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.refresh-button.is-spinning svg {
  animation: spin 700ms ease;
}

.status-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(67, 230, 161, 0.1), 0 0 22px rgba(67, 230, 161, 0.55);
}

main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  min-height: 330px;
  overflow: hidden;
  padding: 44px;
  border: 1px solid rgba(113, 129, 255, 0.24);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(125deg, rgba(113, 129, 255, 0.20), rgba(16, 21, 36, 0.72) 42%, rgba(255, 109, 179, 0.09)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -130px;
  bottom: -270px;
  border: 1px solid rgba(201, 255, 74, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(201, 255, 74, 0.025), 0 0 0 86px rgba(113, 129, 255, 0.025);
}

.hero-copy {
  align-self: center;
  max-width: 780px;
}

.eyebrow {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(2.5rem, 5.4vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.hero-copy p {
  max-width: 690px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-context {
  align-self: end;
  display: grid;
  gap: 10px;
  padding-left: 40px;
}

.hero-context > div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.hero-context span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-context strong {
  text-align: right;
  font-size: 0.92rem;
}

.demo-chip {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.34);
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.demo-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.dashboard-section {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(11, 15, 27, 0.74);
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  letter-spacing: -0.055em;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.55;
  text-align: right;
}

.compact-heading {
  align-items: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(113, 129, 255, 0.1);
  color: var(--blue-bright);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-tag-soft {
  background: rgba(255, 109, 179, 0.08);
  color: #ff9acb;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.goal-card {
  --accent: var(--blue);
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.goal-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(70px);
  opacity: 0.15;
}

.goal-top,
.goal-values,
.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.goal-top {
  align-items: center;
}

.goal-name {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}

.goal-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--accent);
}

.goal-icon svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.goal-progress-badge {
  padding: 8px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.goal-current {
  margin-top: 28px;
}

.goal-current span,
.goal-values span,
.progress-copy span {
  color: var(--muted);
  font-size: 0.72rem;
}

.goal-current strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  letter-spacing: -0.07em;
}

.goal-values {
  align-items: end;
  margin-top: 22px;
}

.goal-values strong {
  display: block;
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.goal-values > div:last-child {
  text-align: right;
}

.progress-wrap {
  margin-top: 22px;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 78%, white 4%), var(--accent));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: width 700ms cubic-bezier(.2,.8,.2,1);
}

.progress-copy {
  margin-top: 9px;
}

.progress-copy strong {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.highlight-card {
  --accent: var(--blue);
  position: relative;
  min-height: 290px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 11%, transparent), rgba(255, 255, 255, 0.015) 55%),
    rgba(15, 20, 34, 0.88);
  transition: transform 180ms ease, border-color 180ms ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.highlight-card::after {
  content: "01";
  position: absolute;
  right: -8px;
  bottom: -30px;
  color: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 8.5rem;
  font-weight: 800;
  letter-spacing: -0.12em;
}

.highlight-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.metric-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0;
}

.winner-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.winner-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
}

.winner-copy {
  min-width: 0;
}

.winner-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.winner-copy strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.04rem;
}

.winner-value {
  position: relative;
  z-index: 1;
  margin-top: 34px;
}

.winner-value span {
  color: var(--muted);
  font-size: 0.72rem;
}

.winner-value strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.075em;
}

.highlight-grid-secondary .highlight-card {
  min-height: 245px;
  background: rgba(14, 19, 32, 0.7);
}

.highlight-grid-secondary .highlight-card::after {
  font-size: 6rem;
  bottom: -20px;
}

.highlight-grid-secondary .winner-profile {
  margin-top: 24px;
}

.highlight-grid-secondary .winner-value {
  margin-top: 24px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ranking-card {
  --accent: var(--blue);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(14, 19, 32, 0.8);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border);
}

.ranking-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ranking-title i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent);
}

.ranking-title strong {
  font-size: 0.94rem;
}

.ranking-head span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 12px;
  border-radius: 15px;
  transition: background 160ms ease;
}

.ranking-row + .ranking-row {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.ranking-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rank-position {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.ranking-row:first-child .rank-position {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.rank-person {
  min-width: 0;
}

.rank-person strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.rank-person span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
}

.rank-value {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.ranking-row:first-child .rank-value {
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 6px 0;
  color: #687187;
  font-size: 0.7rem;
}

.view-switcher {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 20px;
  width: min(calc(100% - 30px), 860px);
  transform: translateX(-50%);
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: rgba(10, 14, 25, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
}

.switcher-label {
  display: none;
}

.switcher-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.view-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.view-option:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.view-option.active {
  border-color: rgba(113, 129, 255, 0.28);
  background: linear-gradient(135deg, rgba(113, 129, 255, 0.25), rgba(113, 129, 255, 0.13));
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.view-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(201, 255, 74, 0.7);
}

.team-emoji {
  font-size: 1rem;
}

.toast {
  position: fixed;
  z-index: 70;
  right: 22px;
  bottom: 105px;
  max-width: min(360px, calc(100% - 44px));
  padding: 13px 16px;
  border: 1px solid rgba(201, 255, 74, 0.2);
  border-radius: 14px;
  background: rgba(15, 20, 34, 0.96);
  color: var(--text-soft);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 200ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-section.is-changing,
.hero-panel.is-changing {
  animation: contentSwap 330ms ease;
}

@keyframes contentSwap {
  0% { opacity: 0.45; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr 1fr;
  }

  .period-cluster {
    display: none;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-context {
    padding-left: 0;
  }

  .goal-grid,
  .highlight-grid,
  .ranking-grid {
    grid-template-columns: 1fr 1fr;
  }

  .goal-grid > :last-child,
  .highlight-grid > :last-child,
  .ranking-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(calc(100% - 24px), var(--max-width));
    padding-bottom: 190px;
  }

  .site-header {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 12px;
    padding: 12px;
  }

  .header-status {
    justify-content: space-between;
    padding-top: 11px;
    border-top: 1px solid var(--border);
    text-align: left;
  }

  .status-copy {
    flex: 1;
  }

  .brand {
    min-width: 102px;
    height: 48px;
  }

  .hero-panel,
  .dashboard-section {
    padding: 24px;
    border-radius: 24px;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .demo-chip {
    position: static;
    width: fit-content;
    margin-top: 24px;
  }

  .hero-context > div {
    flex-direction: column;
    gap: 7px;
  }

  .hero-context strong {
    text-align: left;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading p {
    text-align: left;
  }

  .goal-grid,
  .highlight-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .goal-grid > :last-child,
  .highlight-grid > :last-child,
  .ranking-grid > :last-child {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }

  .view-switcher {
    bottom: 10px;
    width: calc(100% - 20px);
    overflow-x: auto;
    border-radius: 19px;
  }

  .switcher-options {
    display: flex;
    min-width: max-content;
  }

  .view-option {
    min-width: 138px;
  }
}

@media (max-width: 460px) {
  .header-title span {
    display: none;
  }

  .hero-panel,
  .dashboard-section {
    padding: 20px;
  }

  .goal-card,
  .highlight-card {
    padding: 22px;
  }

  .goal-current strong,
  .winner-value strong {
    font-size: 2.45rem;
  }

  .ranking-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 9px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   V2 — ABERTURA EDITORIAL E NAVEGAÇÃO NO FIM DA PÁGINA
   ========================================================== */

.app-shell {
  padding-bottom: 46px;
}

.site-header {
  grid-template-columns: 1fr auto;
}

.hero-panel {
  display: block;
  min-height: 470px;
  padding: 58px 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 16px 0 10px;
  font-size: clamp(3rem, 7vw, 7rem);
}

.hero-divider {
  display: block;
  margin: 2px 0 20px;
  color: var(--lime);
  font-size: 2.2rem;
  line-height: 1;
}

.hero-manifesto {
  max-width: 780px !important;
  color: var(--text-soft) !important;
  font-size: clamp(1rem, 1.7vw, 1.28rem) !important;
  line-height: 1.75 !important;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 132px;
  height: 46px;
  padding: 0 18px;
  border-color: rgba(201, 255, 74, 0.28);
  border-radius: 14px;
  background: rgba(201, 255, 74, 0.1);
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
}

.updated-chip {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.view-section {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(113, 129, 255, 0.10), rgba(255, 109, 179, 0.035)),
    rgba(11, 15, 27, 0.78);
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.22);
}

.view-section-copy {
  margin-bottom: 24px;
}

.view-section-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  letter-spacing: -0.055em;
}

.view-section-copy p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.view-switcher {
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
  width: 100%;
  transform: none;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: rgba(8, 12, 22, 0.8);
  box-shadow: none;
  backdrop-filter: none;
}

.toast {
  bottom: 22px;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero-panel {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding-bottom: 34px;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
    padding: 34px 26px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .refresh-button,
  .updated-chip {
    width: 100%;
    justify-content: center;
  }

  .view-section {
    padding: 24px;
    border-radius: 24px;
  }

  .view-switcher {
    width: 100%;
    overflow-x: auto;
    border-radius: 19px;
  }
}

@media (max-width: 460px) {
  .hero-panel,
  .view-section {
    padding: 20px;
  }
}
/* FWD GOOGLE SHEETS — ESTADOS FUNCIONAIS */
.demo-chip b {
  color: inherit;
  font: inherit;
  font-weight: 600;
}

.demo-chip.is-live span {
  background: var(--green);
  box-shadow: 0 0 14px rgba(67, 230, 161, 0.65);
}

.demo-chip.is-loading span {
  background: var(--orange);
  animation: fwd-pulse 1.1s ease-in-out infinite;
}

.demo-chip.is-error span {
  background: var(--pink);
  box-shadow: 0 0 14px rgba(255, 109, 179, 0.55);
}

.refresh-button:disabled,
.view-option:disabled {
  cursor: wait;
  opacity: 0.62;
}

.dashboard-loading,
.dashboard-error {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.dashboard-error {
  color: var(--pink);
}

@keyframes fwd-pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.82);
  }
}


/* ==========================================================
   FWD — IDENTIDADES VISUAIS POR TIME
   Alterações exclusivamente visuais.
   ========================================================== */

:root {
  --scope-accent: #c9ff4a;
  --scope-accent-soft: rgba(201, 255, 74, 0.16);
  --scope-secondary: #7181ff;
  --scope-secondary-soft: rgba(113, 129, 255, 0.16);
  --scope-border: rgba(201, 255, 74, 0.24);
  --scope-hero-art: none;
  --scope-hero-size: min(42vw, 620px) auto;
  --scope-hero-position: 94% 52%;
  --scope-panel-a: rgba(113, 129, 255, 0.20);
  --scope-panel-b: rgba(255, 109, 179, 0.09);
  --scope-bg-a: rgba(113, 129, 255, 0.14);
  --scope-bg-b: rgba(255, 109, 179, 0.09);
}

body[data-scope="general"] {
  --scope-accent: #ffd84a;
  --scope-accent-soft: rgba(255, 216, 74, 0.16);
  --scope-secondary: #7181ff;
  --scope-secondary-soft: rgba(113, 129, 255, 0.16);
  --scope-border: rgba(113, 129, 255, 0.28);
  --scope-hero-art: none;
  --scope-panel-a: rgba(113, 129, 255, 0.20);
  --scope-panel-b: rgba(255, 109, 179, 0.09);
  --scope-bg-a: rgba(113, 129, 255, 0.14);
  --scope-bg-b: rgba(255, 109, 179, 0.09);
}

body[data-scope="team01"] {
  --scope-accent: #ffbd4a;
  --scope-accent-soft: rgba(255, 189, 74, 0.16);
  --scope-secondary: #ff5f2e;
  --scope-secondary-soft: rgba(255, 95, 46, 0.16);
  --scope-border: rgba(255, 145, 61, 0.36);
  --scope-hero-art: url("assets/team-01.webp");
  --scope-hero-size: min(44vw, 650px) auto;
  --scope-hero-position: 96% 48%;
  --scope-panel-a: rgba(255, 142, 43, 0.24);
  --scope-panel-b: rgba(120, 28, 10, 0.22);
  --scope-bg-a: rgba(255, 132, 35, 0.17);
  --scope-bg-b: rgba(111, 27, 13, 0.15);
}

body[data-scope="team02"] {
  --scope-accent: #ff4038;
  --scope-accent-soft: rgba(255, 64, 56, 0.17);
  --scope-secondary: #18a8ff;
  --scope-secondary-soft: rgba(24, 168, 255, 0.16);
  --scope-border: rgba(255, 54, 54, 0.38);
  --scope-hero-art: url("assets/team-02.webp");
  --scope-hero-size: min(46vw, 690px) auto;
  --scope-hero-position: 97% 48%;
  --scope-panel-a: rgba(255, 37, 37, 0.25);
  --scope-panel-b: rgba(0, 113, 255, 0.16);
  --scope-bg-a: rgba(255, 27, 27, 0.17);
  --scope-bg-b: rgba(0, 112, 255, 0.13);
}

body[data-scope="team09"] {
  --scope-accent: #c7d93d;
  --scope-accent-soft: rgba(199, 217, 61, 0.16);
  --scope-secondary: #d2ae55;
  --scope-secondary-soft: rgba(210, 174, 85, 0.15);
  --scope-border: rgba(199, 217, 61, 0.33);
  --scope-hero-art: url("assets/team-09.webp");
  --scope-hero-size: min(44vw, 650px) auto;
  --scope-hero-position: 96% 49%;
  --scope-panel-a: rgba(170, 191, 40, 0.21);
  --scope-panel-b: rgba(108, 84, 19, 0.19);
  --scope-bg-a: rgba(170, 191, 40, 0.14);
  --scope-bg-b: rgba(142, 105, 23, 0.12);
}

body {
  background:
    radial-gradient(circle at 18% 0%, var(--scope-bg-a), transparent 31%),
    radial-gradient(circle at 86% 18%, var(--scope-bg-b), transparent 28%),
    linear-gradient(180deg, #080b14 0%, #070a12 52%, #05070d 100%);
  transition: background 420ms ease;
}

.ambient-one {
  background: var(--scope-secondary);
}

.ambient-two {
  background: var(--scope-accent);
}

.site-header,
.dashboard-section,
.view-section,
.site-footer {
  border-color: color-mix(in srgb, var(--scope-accent) 15%, var(--border));
  transition: border-color 320ms ease, background 320ms ease;
}

.status-orb {
  background: var(--scope-accent);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--scope-accent) 11%, transparent),
    0 0 22px color-mix(in srgb, var(--scope-accent) 50%, transparent);
}

.hero-panel {
  isolation: isolate;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.9fr);
  border-color: var(--scope-border);
  background:
    linear-gradient(
      125deg,
      var(--scope-panel-a),
      rgba(13, 17, 31, 0.95) 42%,
      var(--scope-panel-b)
    ),
    var(--surface-strong);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    0 0 70px color-mix(in srgb, var(--scope-accent) 7%, transparent);
  transition:
    border-color 320ms ease,
    background 420ms ease,
    box-shadow 420ms ease;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  right: 0;
  bottom: 0;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  background-image:
    linear-gradient(
      90deg,
      rgba(11, 15, 28, 1) 0%,
      rgba(11, 15, 28, 0.97) 38%,
      rgba(11, 15, 28, 0.57) 63%,
      rgba(11, 15, 28, 0.12) 100%
    ),
    var(--scope-hero-art);
  background-position: center, var(--scope-hero-position);
  background-size: cover, var(--scope-hero-size);
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 420ms ease, transform 650ms ease;
  pointer-events: none;
}

body:not([data-scope="general"]) .hero-panel::before {
  opacity: 0.86;
  transform: scale(1);
}

.hero-panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto -120px -280px auto;
  width: 440px;
  height: 440px;
  border: 1px solid color-mix(in srgb, var(--scope-accent) 20%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px color-mix(in srgb, var(--scope-accent) 3%, transparent),
    0 0 0 86px color-mix(in srgb, var(--scope-secondary) 3%, transparent);
  pointer-events: none;
}

body[data-scope="team02"] .hero-panel::after {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(24, 168, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 64, 56, 0.25) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent 38%, black);
}

.hero-copy,
.demo-chip {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 820px;
}

.hero-copy h1 {
  display: flex;
  align-items: center;
  gap: 0.18em;
  flex-wrap: wrap;
  text-wrap: balance;
}

.hero-trophy {
  display: inline-block;
  font-size: 0.72em;
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(255, 188, 51, 0.22));
}

.hero-title-highlight {
  padding: 0;
  background: none;
  color: #ffd84a;
  -webkit-text-fill-color: #ffd84a;
  text-shadow: 0 0 26px rgba(255, 216, 74, 0.13);
}

body:not([data-scope="general"]) .hero-trophy {
  display: none;
}

body:not([data-scope="general"]) .hero-title-highlight {
  color: inherit;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

body:not([data-scope="general"]) .hero-copy {
  max-width: 58%;
}

.eyebrow,
.hero-divider {
  color: var(--scope-accent);
}

.hero-divider {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.refresh-button {
  border-color: color-mix(in srgb, var(--scope-accent) 30%, var(--border));
  background: color-mix(in srgb, var(--scope-accent) 9%, rgba(255,255,255,.025));
}

.refresh-button:hover {
  border-color: color-mix(in srgb, var(--scope-accent) 58%, transparent);
  background: color-mix(in srgb, var(--scope-accent) 14%, transparent);
}

.updated-chip {
  border-color: color-mix(in srgb, var(--scope-accent) 18%, var(--border));
}

.section-tag {
  background: color-mix(in srgb, var(--scope-accent) 10%, transparent);
  color: var(--scope-accent);
}

.section-tag-soft {
  background: color-mix(in srgb, var(--scope-secondary) 10%, transparent);
  color: color-mix(in srgb, var(--scope-secondary) 84%, white 10%);
}

.view-option.active {
  border-color: color-mix(in srgb, var(--scope-accent) 45%, transparent);
  background: color-mix(in srgb, var(--scope-accent) 13%, transparent);
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--scope-accent) 8%, transparent);
}

.view-option.active .view-dot {
  background: var(--scope-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--scope-accent) 70%, transparent);
}

body[data-scope="team01"] .hero-copy h1,
body[data-scope="team01"] #scopeHeader {
  text-shadow: 0 0 28px rgba(255, 123, 35, 0.18);
}

body[data-scope="team02"] .hero-copy h1,
body[data-scope="team02"] #scopeHeader {
  text-shadow:
    2px 0 0 rgba(0, 159, 255, 0.16),
    -2px 0 0 rgba(255, 35, 35, 0.18);
}

body[data-scope="team09"] .hero-copy h1,
body[data-scope="team09"] #scopeHeader {
  text-shadow: 0 0 28px rgba(199, 217, 61, 0.16);
}

body[data-scope="team01"] .dashboard-section {
  background:
    linear-gradient(145deg, rgba(255, 118, 34, 0.035), transparent 38%),
    rgba(11, 15, 27, 0.78);
}

body[data-scope="team02"] .dashboard-section {
  background:
    linear-gradient(145deg, rgba(255, 35, 35, 0.035), transparent 34%),
    linear-gradient(315deg, rgba(0, 130, 255, 0.025), transparent 38%),
    rgba(11, 15, 27, 0.79);
}

body[data-scope="team09"] .dashboard-section {
  background:
    linear-gradient(145deg, rgba(185, 203, 50, 0.035), transparent 38%),
    rgba(11, 15, 27, 0.80);
}

@media (max-width: 980px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  body:not([data-scope="general"]) .hero-copy {
    max-width: 72%;
  }

  .hero-panel::before {
    background-image:
      linear-gradient(
        90deg,
        rgba(11, 15, 28, 0.98) 0%,
        rgba(11, 15, 28, 0.88) 50%,
        rgba(11, 15, 28, 0.28) 100%
      ),
      var(--scope-hero-art);
    background-size: cover, min(64vw, 580px) auto;
    background-position: center, 108% 54%;
  }
}

@media (max-width: 720px) {
  .hero-panel {
    padding: 32px 24px;
  }

  body:not([data-scope="general"]) .hero-copy {
    max-width: 100%;
  }

  body:not([data-scope="general"]) .hero-panel::before {
    opacity: 0.34;
    background-image:
      linear-gradient(
        180deg,
        rgba(11, 15, 28, 0.82) 0%,
        rgba(11, 15, 28, 0.92) 68%,
        rgba(11, 15, 28, 1) 100%
      ),
      var(--scope-hero-art);
    background-size: cover, min(94vw, 520px) auto;
    background-position: center, 78% 6%;
  }

  .hero-copy h1 {
    align-items: flex-start;
    gap: 0.12em;
  }

  .hero-trophy {
    font-size: 0.58em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .hero-panel,
  .hero-panel::before,
  .site-header,
  .dashboard-section,
  .view-section,
  .site-footer {
    transition: none !important;
  }
}
