    :root {
      --verde: #13753a;
      --azul: #0a2d5e;
      --amarelo: #f9d423;
      --laranja: #e8912a;
      --branco: #ffffff;
      --cinza-texto: #333;
      /* Layout heights */
      --topbar-h: 50px;
      --nav-h-desktop: 120px;
      --nav-h-mobile: 100px;
      --safe-gap: 0px; /* no visible gap on desktop */
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background-color: var(--branco);
      color: var(--cinza-texto);
      font-family: 'Montserrat', sans-serif;
      line-height: 1.6;
      padding-bottom: 0;
      /* ? REMOVE O ESPA O FANTASMA */
    }

    /* Barra de Avisos Urgentes */
    .top-bar {
      background: var(--azul);
      color: white;
      padding: 10px 5%;
      text-align: center;
      font-size: 0.8rem;
      font-weight: 600;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1100; /* above nav to avoid bleed-through */
    }

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h-desktop); /* Increased from default */
  padding: 5px 5%; /* Reduced top/bottom padding */
  background: transparent;
  position: fixed;
  top: calc(var(--topbar-h) + var(--safe-gap));
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: none;
  border-bottom: none;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-links li {
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 10px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links li:hover {
  background: transparent;
  color: var(--azul);
}
.nav-links li.active {
  background: rgba(100, 110, 120, 0.14);
  font-weight: 600;
}
.nav-links li.active a {
  box-shadow: inset 0 -2px 0 var(--amarelo);
}

.nav-links-left {
  margin-right: auto;
}

.nav-links-right {
  margin-left: auto;
}

/* Menu mobile combinado: escondido no desktop */
#navLinks {
  display: none;
}

.nav-logo {
  position: absolute;
  left: 47%;
  transform: translateX(-0%);
  text-align: center;
}

.nav-logo-img {
  height: 110px;
  width: auto;
  margin-bottom: 0px;
  transition: all 0.3s ease;
}

.nav-logo span {
  display: block;
  font-family: 'Poiret One', cursive;
  font-size: 1rem;
  font-weight: bold;
  color: var(--azul);
  letter-spacing: 1px;
}

/* Mobile Styles */
@media (max-width: 1024px) {
  :root { --safe-gap: 1px; }
  nav {
    justify-content: space-between;
    top: calc(var(--topbar-h) + var(--safe-gap));
    height: var(--nav-h-mobile);
  }
  .nav-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  .menu-toggle {
    display: flex !important;
    position: absolute;
    left: 5%;
  }
  
  .nav-logo-img {
    height: 92px;
  }
  
  .nav-logo span {
    font-size: 0.9rem;
  }
  
}

    .container {
      max-width: 1100px;
      margin: 100px auto 70px;
      padding: 10px;
      padding-top: 90px;
      text-align: center;
      min-height: auto;
      scroll-margin-top: 100px;
      /* Ajuste para o menu fixo */
      position: relative;
      z-index: 9;
    }

    .section {
      display: none;
      animation: fadeIn 0.6s ease;
    }

    .section.active {
      display: block;
    }

    .platform-tabs {
      display: flex;
      gap: 10px;
      margin: 16px auto 0;
      max-width: 1100px;
    }

    .platform-tab {
      flex: 1;
      padding: 10px;
      border: 1px solid #e6e6e6;
      border-radius: 10px;
      background: #fff;
      color: #444;
      font-family: 'Montserrat', sans-serif;
      font-size: .95rem;
      font-weight: 700;
      cursor: pointer;
      transition: all .15s ease;
    }

    .platform-tab.active {
      color: #fff;
      border-color: transparent;
      background: linear-gradient(90deg, #14814a, #0a2d5e);
      box-shadow: 0 8px 18px rgba(10,45,94,.14);
    }

    .platform-tab:not(.active):hover {
      border-color: #bfd0e6;
      transform: translateY(-1px);
    }

    .top3-section {
      display: grid;
      grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.32fr);
      gap: 18px;
      padding: 16px 0 12px;
      align-items: stretch;
    }

    .top3-panel,
    .top3-ranking {
      background: #fff;
      border: 1px solid #eee;
      border-radius: 18px;
      box-shadow: 0 8px 20px rgba(0,0,0,.06);
    }

    .top3-panel { padding: 16px; }

    .top3-panel h2,
    .top3-ranking h2 {
      margin: 0 0 6px;
      font-family: 'Poiret One', cursive;
      font-size: 1.65rem;
      color: var(--azul);
      text-align: left;
    }

    .top3-panel p,
    .top3-ranking p {
      margin: 0 0 14px;
      color: #666;
      font-size: .9rem;
      text-align: left;
    }

    .chart-mode-tabs {
      display: inline-flex;
      gap: 6px;
      margin: 0 0 12px;
      padding: 4px;
      border-radius: 10px;
      background: #f3f6fa;
      border: 1px solid #e8edf2;
    }

    .chart-mode-tab {
      padding: 6px 12px;
      border: none;
      border-radius: 8px;
      background: transparent;
      color: #4b5563;
      font-family: 'Montserrat', sans-serif;
      font-size: 0.78rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }

    .chart-mode-tab.active {
      color: #fff;
      background: linear-gradient(90deg, #14814a, #0a2d5e);
      box-shadow: 0 4px 10px rgba(10, 45, 94, 0.18);
    }

    .chart-mode-tab:not(.active):hover {
      color: var(--azul);
      background: rgba(255, 255, 255, 0.85);
    }

    .top3-chart-wrap { position: relative; height: 320px; }

    .top3-ranking {
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .chart-card {
      display: flex;
      gap: 14px;
      padding: 14px;
      border-radius: 18px;
      border: 1px solid #eee;
      background: #fff;
      box-shadow: 0 8px 20px rgba(0,0,0,.08);
      align-items: flex-start;
      text-align: left;
      text-decoration: none;
      color: inherit;
      transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    }

    .chart-card:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 22px rgba(0,0,0,.1);
      border-color: #dbe5f3;
    }

    .chart-card .capa {
      position: relative;
      width: 90px;
      height: 90px;
      display: block;
      flex-shrink: 0;
      border-radius: 14px;
      overflow: hidden;
      background: #f0f0f0;
    }

    .chart-card .capa img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .top3-rank {
      position: absolute;
      top: 6px;
      left: 6px;
      z-index: 2;
      width: 24px;
      height: 24px;
      border-radius: 8px;
      background: #ffd24d;
      color: #1d2a57;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: .85rem;
      box-shadow: 0 2px 6px rgba(0,0,0,.15);
    }

    .chart-card .conteudo {
      display: flex;
      flex: 1;
      min-width: 0;
      flex-direction: column;
      justify-content: center;
      text-align: left;
    }

    .chart-card .nome {
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 1rem;
      color: #111;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .chart-stats-host:empty {
      display: none;
    }

    .chart-stats {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-top: 4px;
      line-height: 1.2;
    }

    .chart-stat-deltas {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 10px;
    }

    .chart-card .chart-stat-total {
      font-family: 'Montserrat', sans-serif;
      font-weight: 800;
      font-size: 1.35rem;
      color: var(--azul);
      letter-spacing: -0.02em;
    }

    .chart-stat-line {
      font-size: .82rem;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
    }

    .chart-stat-up { color: #13753a; }
    .chart-stat-diff-up { color: var(--azul); }
    .chart-stat-down { color: #b91c1c; }
    .chart-stat-flat { color: #6b7280; }
    .chart-stat-muted { color: #9ca3af; font-weight: 600; }

    .chart-stat-deltas [data-stat="daily"].chart-stat-up { color: #13753a; }
    .chart-stat-deltas [data-stat="daily"].chart-stat-down { color: #b91c1c; }
    .chart-stat-deltas [data-stat="diff"].chart-stat-diff-up { color: #0a2d5e; }
    .chart-stat-deltas [data-stat="diff"].chart-stat-down { color: #b91c1c; }

    .progress-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 6px;
    }

    .progress-row .barra { flex: 1; }

    .progress-pct {
      flex-shrink: 0;
      color: var(--verde);
      font-weight: 700;
      font-size: .85rem;
      line-height: 1;
      white-space: nowrap;
    }

    .chart-card .progress-row {
      width: 100%;
    }

    .chart-card .progress-row .barra {
      height: 10px;
      background: #eee;
      border-radius: 999px;
      overflow: hidden;
    }

    .chart-card .progress-row .barra[title] {
      cursor: help;
    }

    .chart-card .progress-row .progresso {
      display: block;
      height: 10px;
      min-height: 10px;
      border-radius: 999px;
      background: linear-gradient(90deg, #37d67a, #0a2d5e);
    }

    .charts-dashboard {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 14px;
      align-items: stretch;
      margin: 14px 0;
    }

    .charts-stat-card {
      min-width: 0;
      background: #fff;
      border: 1px solid #eee;
      border-radius: 16px;
      padding: 16px;
      box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
    }

    .charts-stat-title {
      color: #666;
      font-weight: 600;
      font-size: .9rem;
      margin-bottom: 8px;
    }

    .charts-stat-card .stat-value {
      font-family: 'Montserrat', sans-serif;
      font-weight: 800;
      font-size: 1.75rem;
      line-height: 1.1;
      font-variant-numeric: tabular-nums;
    }

    .charts-stat-card .charts-stat-total {
      font-size: 2.2rem;
      color: var(--azul);
    }

    .charts-stat-card .charts-stat-up { color: #13753a; }
    .charts-stat-card .charts-stat-diff-up { color: var(--azul); }
    .charts-stat-card .charts-stat-down { color: #b91c1c; }
    .charts-stat-card .charts-stat-flat { color: #6b7280; }
    .charts-stat-card .charts-stat-muted { color: #9ca3af; }

    .charts-stat-hint {
      margin-top: 6px;
      font-size: .78rem;
      color: #9ca3af;
    }

    .charts-dashboard-extras {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin: -4px 0 14px;
    }

    .charts-extra-card {
      min-width: 0;
      background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
      border: 1px solid #e8eef5;
      border-radius: 14px;
      padding: 12px 14px;
      box-shadow: 0 4px 12px rgba(10, 45, 94, 0.05);
    }

    .charts-extra-card .charts-stat-title {
      font-size: 0.82rem;
      margin-bottom: 6px;
    }

    .charts-extra-card .charts-extra-value {
      font-family: 'Montserrat', sans-serif;
      font-weight: 800;
      font-size: 1.35rem;
      line-height: 1.1;
      color: var(--azul);
      font-variant-numeric: tabular-nums;
    }

    @media (max-width: 900px) {
      .top3-section { grid-template-columns: 1fr; }
      .top3-chart-wrap { height: 280px; }
    }

    @media (max-width: 640px) {
      .platform-tabs { padding: 0 10px; gap: 8px; }
      .platform-tab { padding: 10px; font-size: .92rem; }
      .top3-panel,
      .top3-ranking { padding: 12px; }
      .top3-panel h2,
      .top3-ranking h2 { font-size: 1.45rem; }
      .chart-card { padding: 12px; gap: 12px; }
      .chart-card .capa { width: 72px; height: 72px; }
      .chart-card .nome { font-size: .92rem; }
      .chart-card .chart-stat-total { font-size: 1.1rem; }
      .chart-card .chart-stat-line { font-size: .75rem; }
      .chart-card .progress-pct { font-size: .8rem; }
      .charts-dashboard {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }
      .charts-dashboard .charts-stat-card:first-child {
        grid-column: 1 / -1;
      }
      .charts-stat-card { padding: 12px; }
      .charts-stat-title { font-size: .82rem; margin-bottom: 6px; }
      .charts-stat-card .stat-value { font-size: 1.35rem; }
      .charts-stat-card .charts-stat-total { font-size: 1.6rem; }
      .charts-stat-hint { font-size: .7rem; }
      .charts-dashboard-extras {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: -2px 0 12px;
      }
      .charts-extra-card { padding: 10px 12px; }
      .charts-extra-card .charts-extra-value { font-size: 1.15rem; }
    }

    .chart-card .conteudo.chart-card-body--hist {
      cursor: pointer;
      border-radius: 12px;
      flex: 1;
      min-width: 0;
    }

    .chart-card .conteudo.chart-card-body--hist:focus-visible {
      outline: 2px solid var(--azul);
      outline-offset: 2px;
    }

    .chart-hist-modal.open {
      display: flex;
    }

    .chart-hist-modal .chart-hist-modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(10, 45, 94, 0.55);
      border: 0;
      padding: 0;
      cursor: pointer;
    }

    .chart-hist-modal .chart-hist-modal-panel {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 520px;
      max-height: min(88vh, 640px);
      overflow: auto;
      background: #fff;
      border-radius: 16px;
      padding: 18px 16px 16px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
      margin: auto;
    }

    .chart-hist-modal-close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 10px;
      background: #f3f4f6;
      color: #111827;
      font-size: 1.4rem;
      line-height: 1;
      cursor: pointer;
    }

    .chart-hist-modal-close:hover {
      background: #e5e7eb;
    }

    .chart-hist-modal-head {
      display: flex;
      gap: 12px;
      align-items: center;
      padding-right: 36px;
      margin-bottom: 8px;
    }

    .chart-hist-modal-head img {
      width: 56px;
      height: 56px;
      border-radius: 10px;
      object-fit: cover;
      flex-shrink: 0;
    }

    .chart-hist-modal-head h3 {
      margin: 0;
      font-family: 'Montserrat', sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--azul);
      line-height: 1.25;
    }

    .chart-hist-modal-platform {
      margin: 4px 0 0;
      font-size: 0.82rem;
      color: #6b7280;
    }

    .chart-hist-modal-meta {
      margin: 0 0 10px;
      padding: 8px 10px;
      border-radius: 8px;
      background: #f8fafc;
      border: 1px solid #e5e7eb;
      font-size: 0.8rem;
      line-height: 1.4;
      color: #374151;
    }

    .chart-hist-meta-part {
      font-weight: 600;
    }

    .chart-hist-meta-sep {
      margin: 0 6px;
      font-weight: 400;
      color: #9ca3af;
    }

    .chart-hist-modal-hint {
      margin: 0 0 12px;
      font-size: 0.78rem;
      color: #9ca3af;
    }

    .chart-hist-table-wrap {
      overflow: auto;
      -webkit-overflow-scrolling: touch;
    }

    .chart-hist-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      font-size: 0.88rem;
      border: 1px solid #e5eaf3;
      border-radius: 12px;
      overflow: hidden;
    }

    .chart-hist-table thead {
      background: linear-gradient(135deg, var(--azul) 0%, #1a4a8a 100%);
    }

    .chart-hist-table th {
      padding: 12px 10px;
      text-align: left;
      font-size: 0.72rem;
      font-weight: 700;
      color: #fff;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      border: 0;
      white-space: nowrap;
    }

    .chart-hist-table th:first-child {
      padding-left: 14px;
    }

    .chart-hist-table th:last-child {
      padding-right: 14px;
    }

    .chart-hist-table tbody tr:nth-child(even) {
      background: #f8fafc;
    }

    .chart-hist-table td {
      padding: 10px 10px;
      text-align: left;
      border-bottom: 1px solid #eef2f7;
      color: #1f2937;
    }

    .chart-hist-table tbody tr:last-child td {
      border-bottom: 0;
    }

    .chart-hist-table td:first-child {
      padding-left: 14px;
      font-weight: 600;
      color: var(--azul);
    }

    .chart-hist-table td:last-child {
      padding-right: 14px;
    }

    .chart-hist-table td.num {
      font-variant-numeric: tabular-nums;
      font-weight: 600;
      white-space: nowrap;
    }

    .chart-hist-table .chart-stat-up { color: #13753a; }
    .chart-hist-table .chart-stat-diff-up { color: var(--azul); }
    .chart-hist-table .chart-stat-down { color: #b91c1c; }
    .chart-hist-table .chart-stat-flat { color: #6b7280; }
    .chart-hist-table .chart-stat-muted { color: #9ca3af; }

    .chart-hist-empty {
      margin: 0;
      padding: 16px 0;
      text-align: center;
      color: #6b7280;
      font-size: 0.9rem;
    }

    @media (max-width: 640px) {
      .chart-hist-modal {
        padding: 12px;
        align-items: flex-end;
      }

      .chart-hist-modal .chart-hist-modal-panel {
        max-width: none;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
      }

      .chart-hist-table th,
      .chart-hist-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    .hero-logo {
      width: 140px;
      margin-bottom: 20px;
    }

    h1 {
      font-family: 'Poiret One', cursive;
      font-size: 3rem;
      color: var(--azul);
      margin-bottom: 10px;
    }

    .slogan {
      font-size: 0.9rem;
      color: var(--verde);
      font-weight: bold;
      letter-spacing: 3px;
      text-transform: uppercase;
      margin-bottom: 20px;
    }

    .divider {
      width: 50px;
      height: 3px;
      background: var(--amarelo);
      margin: 20px auto;
    }

    .home-hero {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      align-items: stretch;
      margin: 8px auto 4px;
      max-width: 980px;
      text-align: left;
    }

    /* Prévia / home empilhada: promo → contador; comeback → level up */
    body.home-layout-stacked .home-hero {
      grid-template-columns: 1fr;
      gap: 0;
      row-gap: 0;
      max-width: 560px;
    }

    body.home-layout-stacked .home-hero--no-promo {
      max-width: 520px;
    }

    body.home-layout-stacked .home-hero-promo {
      height: auto;
      min-height: 0;
    }

    body.home-layout-stacked .home-hero-img {
      height: auto;
      min-height: 0;
      width: 100%;
    }

    body.home-layout-stacked .home-hero-alt-text {
      min-height: 0;
      height: auto;
      padding: 0 12px;
      line-height: 1.35;
    }

    body.home-layout-stacked .home-hero-promo.is-text-fallback .home-hero-alt-text {
      display: block;
    }

    body.home-layout-stacked .home-hero-alt-text p + p {
      margin-top: 4px;
    }

    body.home-layout-stacked .home-hero .home-frase {
      margin: 0 auto 14px;
      padding: 0 12px;
      line-height: 1.45;
    }

    body.home-layout-stacked .home-hero-countdown {
      height: auto;
      min-height: 0;
    }

    body.home-layout-stacked .home-widgets-row {
      grid-template-columns: 1fr;
      max-width: 420px;
      gap: 22px;
      justify-items: stretch;
    }

    body.home-layout-stacked .home-widgets-row--single-levelup {
      max-width: 320px;
      justify-items: center;
    }

    body.home-layout-stacked .home-widgets-col--comeback,
    body.home-layout-stacked .home-widgets-col--levelup {
      width: 100%;
    }

    body.home-layout-stacked .home-widgets-col--levelup {
      padding-top: 0;
    }

    .home-hero--no-promo {
      grid-template-columns: 1fr;
      max-width: 520px;
    }

    .home-hero-promo {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 200px;
      height: 100%;
      border-radius: 14px;
      overflow: hidden;
      background: transparent;
      border: none;
    }

    .home-hero-promo.is-empty {
      display: none;
    }

    .home-hero-promo.is-text-fallback {
      padding: 0;
      background: transparent;
      border: none;
    }

    .home-hero-promo.is-text-fallback .home-hero-img {
      display: none !important;
    }

    .home-hero-alt-text {
      display: none;
      box-sizing: border-box;
      width: 100%;
      flex: 1 1 100%;
      min-height: 200px;
      height: 100%;
      margin: 0;
      padding: 24px 20px;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-size: 1.05rem;
      font-weight: 600;
      line-height: 1.5;
      color: var(--azul);
    }

    .home-hero-promo.is-text-fallback .home-hero-alt-text {
      display: flex;
    }

    .home-hero-alt-text p {
      margin: 0;
    }

    .home-hero-alt-text p + p {
      margin-top: 8px;
    }

    .home-hero-alt-text a {
      color: inherit;
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .home-hero-alt-text ul,
    .home-hero-alt-text ol {
      margin: 0;
      padding-left: 1.2em;
      text-align: left;
    }

    .home-hero-img {
      width: 100%;
      height: 100%;
      max-height: 420px;
      object-fit: contain;
    }

    .home-hero-img:not([hidden]) {
      display: block;
    }

    .home-hero-img[hidden],
    .home-hero-alt-text[hidden] {
      display: none !important;
    }

    .home-hero-countdown {
      position: relative;
      display: flex;
      border-radius: 14px;
      overflow: hidden;
      background: linear-gradient(160deg, #0a2d5e 0%, #123d75 55%, #0a2d5e 100%);
      color: #fff;
      min-height: 200px;
      height: 100%;
      box-shadow: 0 8px 24px rgba(10, 45, 94, 0.18);
    }

    .home-hero-countdown.has-custom-bg {
      background-color: #0a2d5e;
    }

    .home-hero-countdown.is-panel-transparent {
      background-color: transparent;
      box-shadow: none;
    }

    .home-hero-countdown.is-panel-transparent.has-custom-bg {
      background-color: transparent;
    }

    .home-countdown-inner {
      position: relative;
      z-index: 1;
      display: flex;
      flex: 1;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 200px;
      padding: 22px 18px 20px;
      text-align: center;
    }

    .countdown-badge {
      display: inline-block;
      margin: 0 0 10px;
      padding: 5px 14px;
      border-radius: 999px;
      background: rgba(9, 119, 57, 0.76);
      border: 1px solid rgba(255, 255, 255, 0.2);
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #fff;
    }

    .countdown-event-title {
      margin: 0 0 16px;
      font-size: 1rem;
      font-weight: 700;
      line-height: 1.35;
      color: #fff;
      max-width: 280px;
    }

    .countdown-event-title.has-deco::before,
    .countdown-event-title.has-deco::after {
      color: var(--laranja);
      font-weight: 800;
      letter-spacing: 0.02em;
    }

    .countdown-event-title.has-deco::before {
      content: '>>  ';
    }

    .countdown-event-title.has-deco::after {
      content: '  <<';
    }

    .home-hero-countdown.is-empty .countdown-event-title {
      font-size: 0.95rem;
      font-weight: 600;
      opacity: 0.92;
      margin-bottom: 0;
    }

    .countdown-container {
      display: flex;
      justify-content: center;
      align-items: stretch;
      gap: 0;
      margin: 0;
      width: 100%;
      max-width: 340px;
    }

    .countdown-unit {
      flex: 1;
      min-width: 0;
      padding: 0 10px;
      text-align: center;
    }

    .countdown-unit:not(:last-child) {
      border-right: 1px solid rgba(255, 255, 255, 0.35);
    }

    .countdown-unit span {
      display: block;
      font-size: clamp(1.6rem, 4vw, 2.2rem);
      font-weight: 700;
      line-height: 1.1;
      color: #fff;
      font-variant-numeric: tabular-nums;
    }

    .countdown-unit label {
      display: block;
      margin-top: 6px;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--laranja);
    }

    @media (min-width: 769px) {
      body.home-layout-stacked .home-hero-promo {
        min-height: auto;
      }

      body.home-layout-stacked .home-hero-alt-text {
        min-height: 0;
        padding: 0 12px;
      }

      body.home-layout-stacked .home-hero-img {
        min-height: 0;
        max-height: 380px;
      }

      body.home-layout-stacked .home-hero-countdown {
        min-height: 280px;
      }

      body.home-layout-stacked .home-countdown-inner {
        min-height: 176px;
        padding: 18px 20px 20px;
        justify-content: center;
        gap: 8px;
      }

      body.home-layout-stacked .countdown-container {
        margin-top: 4px;
        margin-bottom: 0;
      }

      .home-hero-promo {
        min-height: 280px;
      }

      .home-hero-alt-text {
        min-height: 280px;
        padding: 28px 24px;
        font-size: 1.12rem;
      }

      .home-hero-img {
        max-height: none;
        min-height: 280px;
        object-fit: contain;
      }

      .home-hero-countdown {
        min-height: 280px;
      }

      .home-countdown-inner {
        min-height: 280px;
        padding: 20px 22px 22px;
        justify-content: space-between;
        gap: 10px;
      }

      .countdown-badge {
        margin-bottom: 4px;
        flex-shrink: 0;
      }

      .countdown-event-title {
        margin: 0;
        font-size: 1.15rem;
        max-width: 92%;
        flex-shrink: 0;
      }

      .countdown-event-title.has-deco {
        font-size: 1.28rem;
        letter-spacing: 0.01em;
      }

      .countdown-container {
        flex: 1;
        max-width: 100%;
        align-items: center;
        margin-top: auto;
        margin-bottom: auto;
      }

      .countdown-unit {
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .countdown-unit span {
        font-size: clamp(2.4rem, 4.2vw, 3.25rem);
      }

      .countdown-unit label {
        font-size: 0.72rem;
        margin-top: 8px;
      }
    }

    @media (max-width: 768px) {
      .home-hero {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 520px;
      }

      .home-hero--no-promo {
        max-width: 520px;
      }

      .home-hero-promo.is-empty {
        display: none;
      }

      .home-hero-img {
        max-height: 360px;
      }

      .home-countdown-inner {
        min-height: 180px;
        padding: 20px 14px 18px;
      }

      .countdown-event-title.has-deco {
        font-size: 1.05rem;
      }
    }

    .home-aviso {
      margin: 14px auto 2px;
      max-width: 580px;
      padding: 0 12px;
    }

    .home-aviso[hidden],
    .home-aviso.is-dismissed {
      display: none !important;
    }

    .home-aviso-inner {
      position: relative;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 10px;
      border: 2px solid var(--azul);
      border-radius: 10px;
      background: #fff;
    }

    .home-aviso-icon {
      flex-shrink: 0;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      line-height: 1;
    }

    .home-aviso-icon img {
      width: 48px;
      height: 48px;
      object-fit: contain;
      border-radius: 6px;
    }

    .home-aviso-body {
      flex: 1 1 auto;
      min-width: 0;
    }

    .home-aviso-titulo {
      margin: 0;
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--azul);
      line-height: 1.25;
    }

    .home-aviso-descricao {
      margin: 1px 0 0;
      font-size: 0.8rem;
      color: rgba(10, 45, 94, 0.72);
      line-height: 1.3;
    }

    .home-aviso-descricao[hidden] {
      display: none;
    }

    .home-aviso-descricao p {
      margin: 0;
    }

    .home-aviso-descricao p + p {
      margin-top: 3px;
    }

    .home-aviso-descricao a {
      color: var(--azul);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .home-aviso-descricao strong {
      font-weight: 700;
    }

    .home-aviso-descricao em {
      font-style: italic;
    }

    .home-aviso-link {
      flex-shrink: 0;
      align-self: center;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 5px 12px;
      border-radius: 999px;
      border: 1.5px solid rgba(10, 45, 94, 0.35);
      background: rgba(10, 45, 94, 0.06);
      color: var(--azul) !important;
      font-family: 'Montserrat', sans-serif;
      font-size: 0.74rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      text-decoration: none;
      white-space: nowrap;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

    .home-aviso-link:hover {
      background: rgba(10, 45, 94, 0.12);
      border-color: rgba(10, 45, 94, 0.55);
      color: var(--azul) !important;
      transform: none;
    }

    .home-aviso-link[hidden] {
      display: none;
    }

    .home-aviso-close {
      flex-shrink: 0;
      align-self: center;
      margin: 0;
      padding: 0 2px;
      border: none;
      background: transparent;
      color: var(--azul);
      font-size: 1.2rem;
      line-height: 1;
      cursor: pointer;
      opacity: 0.65;
      transition: opacity 0.15s ease;
    }

    .home-aviso-close:hover {
      opacity: 1;
    }

    @media (max-width: 640px) {
      .home-aviso-inner {
        gap: 8px;
        padding: 6px 26px 6px 10px;
      }

      .home-aviso-icon {
        width: 56px;
        height: 56px;
        font-size: 2.1rem;
      }

      .home-aviso-icon img {
        width: 56px;
        height: 56px;
      }

      .home-aviso-body {
        flex: 1 1 auto;
        min-width: 0;
      }

      .home-aviso-titulo {
        font-size: 0.84rem;
        line-height: 1.22;
      }

      .home-aviso-descricao {
        font-size: 0.76rem;
        line-height: 1.28;
      }

      .home-aviso-link {
        width: auto;
        margin-top: 0;
        padding: 5px 10px;
        font-size: 0.72rem;
      }

      .home-aviso-close {
        position: absolute;
        top: 5px;
        right: 5px;
        align-self: auto;
      }
    }

    .album-presave {
      margin: 16px auto 6px;
      max-width: 420px;
      padding: 0 12px;
      width: 100%;
    }

    .album-presave[hidden] {
      display: none !important;
    }

    .album-presave-card {
      border: 2px solid var(--azul);
      border-radius: 12px;
      background: #fff;
      overflow: hidden;
      box-shadow: 0 4px 18px rgba(10, 45, 94, 0.1);
    }

    .album-presave-video[hidden] {
      display: none !important;
    }

    .album-presave-video-wrap {
      position: relative;
      aspect-ratio: 16 / 9;
      background: linear-gradient(160deg, #0a1f45 0%, #061530 100%);
    }

    .album-presave-video-wrap iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .album-presave-video-label {
      margin: 0;
      padding: 7px 12px 10px;
      text-align: center;
      font-size: 0.66rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--laranja);
      border-bottom: 1px solid rgba(10, 45, 94, 0.1);
      background: rgba(232, 145, 42, 0.06);
    }

    .album-presave-cta {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 16px 16px;
      text-align: left;
      text-decoration: none;
      color: inherit;
      transition: background 0.2s ease;
    }

    .album-presave-cta:hover {
      background: rgba(19, 117, 58, 0.05);
    }

    .album-presave-cta:focus-visible {
      outline: 2px solid var(--laranja);
      outline-offset: -2px;
    }

    .album-presave-cover {
      flex-shrink: 0;
      width: 108px;
      aspect-ratio: 1;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 14px rgba(10, 45, 94, 0.2);
    }

    .album-presave-cover[hidden] {
      display: none !important;
    }

    .album-presave-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .album-presave-copy {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: 6px;
    }

    .album-presave-badge {
      display: inline-flex;
      align-items: center;
      margin: 0;
      padding: 3px 10px;
      border-radius: 999px;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.3px;
      text-transform: uppercase;
      line-height: 1.3;
      background: rgba(19, 117, 58, 0.14);
      color: #0f5c30;
    }

    .album-presave-title {
      margin: 0;
      font-size: clamp(1.15rem, 4vw, 1.35rem);
      font-weight: 800;
      color: var(--azul);
      line-height: 1.15;
      letter-spacing: 0.01em;
    }

    .album-presave-desc {
      margin: 0;
      width: 100%;
      font-size: 0.78rem;
      line-height: 1.45;
      color: #4a5568;
    }

    .album-presave-desc[hidden] {
      display: none !important;
    }

    .album-presave-desc p {
      margin: 0;
    }

    .album-presave-desc p + p {
      margin-top: 4px;
    }

    .album-presave-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 2px;
      padding: 8px 16px;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 700;
      color: #fff;
      background: #1db954;
      box-shadow: 0 2px 8px rgba(29, 185, 84, 0.35);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .album-presave-cta:hover .album-presave-link {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
    }

    @media (min-width: 769px) {
      .album-presave {
        max-width: 460px;
      }

      .album-presave-cta {
        gap: 16px;
        padding: 16px 18px 18px;
      }

      .album-presave-cover {
        width: 120px;
      }

      .album-presave-desc {
        font-size: 0.8rem;
      }
    }

    .world-clocks {
      margin: 28px auto 8px;
      max-width: 520px;
    }

    .world-clocks-heading {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin: 0 0 14px;
      padding: 0 8px;
      font-family: 'Montserrat', sans-serif;
      font-size: 0.88rem;
      font-weight: 700;
      line-height: 1.3;
      color: var(--azul);
      text-align: center;
    }

    .world-clocks-heading::before,
    .world-clocks-heading::after {
      content: '';
      flex: 1;
      max-width: 80px;
      height: 2px;
      border-radius: 2px;
      background: linear-gradient(90deg, transparent, var(--amarelo) 35%, var(--amarelo) 65%, transparent);
      opacity: 0.85;
    }

    .world-clocks-row {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .world-clock {
      flex: 1 1 100px;
      min-width: 100px;
      max-width: 150px;
      padding: 12px 10px;
      border-radius: 10px;
      border: 1px solid transparent;
      text-align: center;
    }

    .world-clock--verde {
      background: rgba(19, 117, 58, 0.11);
      border-color: rgba(19, 117, 58, 0.2);
    }

    .world-clock--amarelo {
      background: rgba(249, 212, 35, 0.22);
      border-color: rgba(249, 212, 35, 0.45);
    }

    .world-clock--azul {
      background: rgba(10, 45, 94, 0.09);
      border-color: rgba(10, 45, 94, 0.16);
    }

    .world-clock-label {
      display: block;
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 5px;
      line-height: 1.3;
    }

    .world-clock--verde .world-clock-label {
      color: var(--azul);
    }

    .world-clock--amarelo .world-clock-label {
      color: var(--azul);
    }

    .world-clock--azul .world-clock-label {
      color: var(--azul);
    }

    .world-clock-time-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }

    .world-clock-flag {
      font-size: 0.85rem;
      line-height: 1;
    }

    .world-clock-time {
      font-size: 0.95rem;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      line-height: 1.2;
    }

    .world-clock--verde .world-clock-time {
      color: var(--verde);
    }

    .world-clock--amarelo .world-clock-time {
      color: #8a6e00;
    }

    .world-clock--azul .world-clock-time {
      color: var(--azul);
    }

    @media (max-width: 400px) {
      .world-clocks-row {
        gap: 8px;
      }

      .world-clock {
        min-width: 90px;
        padding: 10px 6px;
      }

      .world-clock-time {
        font-size: 0.85rem;
      }

      .world-clock-flag {
        font-size: 0.75rem;
      }
    }

    .home-frase {
      max-width: 640px;
      margin: 20px auto 8px;
      padding: 0 12px;
      text-align: center;
      font-size: 1.08rem;
      line-height: 1.55;
      font-weight: 600;
      color: var(--azul);
    }

    .home-hero .home-frase {
      margin: 0 auto;
    }

    .home-frase p {
      margin: 0;
    }

    .home-frase p + p {
      margin-top: 6px;
    }

    .home-widgets-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px 28px;
      max-width: 920px;
      margin: 24px auto 0;
      align-items: start;
    }

    .home-widgets-row--single-levelup {
      grid-template-columns: 1fr;
      justify-items: center;
      max-width: 320px;
    }

    .home-widgets-col--comeback {
      display: flex;
      justify-content: center;
      width: 100%;
      min-width: 0;
    }

    .home-widgets-col--levelup {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding-top: 4px;
    }

    .comeback-progress-block {
      width: 100%;
      max-width: 420px;
      min-width: 280px;
      margin: 0;
    }

    .home-widget-hidden {
      display: none !important;
    }

    .level-up-btn {
      display: block;
      margin: 0 auto;
      padding: 0;
      border: none;
      background: none;
      cursor: pointer;
      width: 140px;
      max-width: 50%;
      text-decoration: none;
      transition: transform 0.2s ease;
    }

    .level-up-desc {
      margin: 12px 0 0;
      max-width: 300px;
      font-size: 0.9rem;
      line-height: 1.5;
      color: var(--azul);
    }

    .level-up-desc p {
      margin: 0;
    }

    .level-up-desc p + p {
      margin-top: 6px;
    }

    .level-up-desc a {
      color: var(--azul);
      font-weight: 600;
    }

    @media (max-width: 768px) {
      .home-widgets-row {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 420px;
      }

      .home-widgets-col--levelup {
        padding-top: 0;
      }
    }

    .level-up-btn:hover {
      transform: scale(1.03);
    }

    .level-up-btn:focus-visible {
      outline: 2px solid var(--amarelo);
      outline-offset: 4px;
      border-radius: 8px;
    }

    .level-up-img {
      display: block;
      width: 100%;
      height: auto;
    }

    .level-up-img-hover {
      display: none;
    }

    .level-up-btn:hover .level-up-img-default {
      display: none;
    }

    .level-up-btn:hover .level-up-img-hover {
      display: block;
    }

    .comeback-progress-heading {
      margin: 0 0 10px;
      font-size: 1rem;
      font-weight: 700;
      color: var(--azul);
      text-align: center;
      line-height: 1.3;
    }

    .comeback-progress {
      display: block;
      position: relative;
      max-width: 420px;
      margin: 0 auto;
      text-decoration: none;
      color: inherit;
      cursor: pointer;
      transition: transform 0.2s ease;
    }

    .comeback-progress:hover {
      transform: scale(1.02);
    }

    .comeback-progress:focus-visible {
      outline: 2px solid var(--amarelo);
      outline-offset: 4px;
      border-radius: 8px;
    }

    .comeback-progress:hover .comeback-progress-track {
      border-color: var(--verde);
    }

    .comeback-progress:hover .comeback-progress-fill {
      background: var(--verde);
    }

    .comeback-progress-bar-wrap {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      position: relative;
    }

    .comeback-progress-track {
      position: relative;
      flex: 1;
      height: 28px;
      border: 2px solid var(--azul);
      border-radius: 999px;
      background: #fff;
      overflow: hidden;
    }

    .comeback-progress-track::before,
    .comeback-progress-track::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      width: 2px;
      background: #fff;
      opacity: 0.85;
      z-index: 2;
      pointer-events: none;
    }

    .comeback-progress-track::before {
      left: 33.333%;
    }

    .comeback-progress-track::after {
      left: 66.666%;
    }

    .comeback-progress-fill {
      position: relative;
      z-index: 1;
      height: 100%;
      width: 0;
      background: var(--azul);
      border-radius: 999px;
      transition: width 0.4s ease;
    }

    .comeback-progress-trophy {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 1.75rem;
      height: 1.75rem;
      font-size: 1.55rem;
      line-height: 1;
      z-index: 4;
      transform-origin: center center;
      animation: trophy-shine 2.4s ease-in-out infinite;
      pointer-events: none;
    }

    @keyframes trophy-shine {
      0%, 100% {
        filter: drop-shadow(0 0 1px rgba(249, 212, 35, 0.35));
        transform: scale(1);
      }
      50% {
        filter: drop-shadow(0 0 7px rgba(249, 212, 35, 0.95));
        transform: scale(1.2);
      }
    }

    .comeback-progress-phase-label {
      position: absolute;
      top: 50%;
      z-index: 3;
      transform: translate(-50%, -50%);
      font-size: 0.58rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #fff;
      pointer-events: none;
      white-space: nowrap;
      line-height: 1;
    }

    .comeback-progress[data-phase="1"] .comeback-progress-phase-label {
      left: 16.666%;
    }

    .comeback-progress[data-phase="2"] .comeback-progress-phase-label {
      left: 50%;
    }

    .comeback-progress[data-phase="3"] .comeback-progress-phase-label {
      left: 83.333%;
    }

    .comeback-progress-img,
    .comeback-progress-emoji {
      position: relative;
      display: block;
      margin-top: 8px;
      width: 72px;
      transform: translateX(-50%);
      transition: left 0.4s ease;
    }

    .comeback-progress-img {
      height: auto;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
    }

    .comeback-progress-img[hidden],
    .comeback-progress-emoji[hidden] {
      display: none !important;
    }

    .comeback-progress-emoji {
      font-size: 2.4rem;
      line-height: 1;
      text-align: center;
    }

    .comeback-progress[data-phase="1"] .comeback-progress-img,
    .comeback-progress[data-phase="1"] .comeback-progress-emoji {
      left: 16.666%;
    }

    .comeback-progress[data-phase="2"] .comeback-progress-img,
    .comeback-progress[data-phase="2"] .comeback-progress-emoji {
      left: 50%;
    }

    .comeback-progress[data-phase="3"] .comeback-progress-img,
    .comeback-progress[data-phase="3"] .comeback-progress-emoji {
      left: 83.333%;
    }

    @media (max-width: 400px) {
      .comeback-progress {
        max-width: 100%;
      }

      .comeback-progress-phase-label {
        font-size: 0.5rem;
        letter-spacing: 0.2px;
      }

      .comeback-progress-img {
        width: 60px;
      }

      .comeback-progress-emoji {
        width: 60px;
        font-size: 2rem;
      }
    }

.quem-somos-content p {
  text-align: justify;
  margin-bottom: 20px;
}

.quem-somos-content .manifesto-box {
  margin: 16px 0;
}

.quem-somos-content .manifesto-box p {
  margin-bottom: 20px;
}

.quem-somos-content .manifesto-box p:last-child {
  margin-bottom: 0;
}

    .manifesto-box {
      background: #f9fdfa;
      padding: 40px;
      border-left: 5px solid var(--amarelo);
      font-style: italic;
      font-size: 1.2rem;
      margin: 20px 0;
      border-radius: 0 15px 15px 0;
      color: var(--azul);
      text-align: justify;
    }

    .btn {
      background: var(--azul);
      color: white;
      padding: 12px 30px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.8rem;
      cursor: pointer;
      transition: 0.3s;
      border: none;
      display: inline-block;
    }

    .btn:hover {
      background: var(--verde);
      transform: scale(1.05);
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      margin-top: 30px;
      align-items: end;
    }

    /* Votações grid: 2 colunas no desktop, 1 no mobile */
    #votacoes-grid { grid-template-columns: 1fr; }
    @media (min-width: 768px) {
      #votacoes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    /* Logo-only mode for non-Ativas tabs */
    #votacoes-grid.as-logos {
      grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
      justify-items: center;
      align-items: start;
    }
    .logo-item { display:flex; flex-direction: column; align-items:center; justify-content:center; padding:8px; cursor:pointer; text-align:center }
    .logo-round {
      width: 90px; height: 90px; border-radius: 50%;
      object-fit: cover; background:#fff; border:2px solid #eee;
      box-shadow: 0 3px 8px rgba(0,0,0,0.06);
      transition: transform .2s ease, box-shadow .2s ease;
    }
    .logo-item:hover .logo-round { transform: scale(1.05); box-shadow: 0 6px 14px rgba(0,0,0,0.08) }
    .logo-caption { margin-top:6px; font-size:.8rem; color:#444; line-height:1.2; max-width: 120px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical }

    /* Guias grid (logo-only) reusing same layout */
    #guias-grid.as-logos {
      grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
      justify-items: center;
      align-items: start;
    }

    /* Guias tabs layout */
    #guias-tabs .tab-btn { position: relative; padding-right: 0; display:flex; align-items:center; gap:8px; justify-content:center }
    #guias-tabs .tab-badge {
      position: absolute; top: 6px; right: 6px;
      background: var(--amarelo); color: var(--azul);
      font-weight: 800; font-size: 0.7rem;
      min-width: 18px; height: 18px; border-radius: 999px; padding: 0 6px;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
    #guias-tabs .tab-title { pointer-events: none; }
    /* Ícones nas abas de Guias */
    #guias-tabs .tab-icon { font-size: 1rem; opacity: .95; }

    .card {
      background: #fff;
      padding: 20px;
      border-radius: 15px;
      border: 1px solid #eee;
      border-bottom: 5px solid var(--verde);
      text-align: center;
    }

    /* Barras de progresso — missões (resumo, diárias, comunidade) */
    .progress {
      background: #f0f0f0;
      border-radius: 999px;
      height: 10px;
      overflow: hidden;
      margin-top: 8px;
    }

    .progress span {
      display: block;
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--verde), var(--azul));
      transition: width .4s;
    }

    /* Missões diárias — capa à esquerda (4:3 YouTube, 1:1 Spotify) */
    .mission {
      --mission-thumb-h: 102px;
      display: flex;
      align-items: stretch;
      gap: 12px;
      margin-top: 12px;
      padding: 10px;
      min-height: calc(var(--mission-thumb-h) + 20px);
      background: #fff;
      border-radius: 12px;
      border: 1px solid #e8edf2;
      text-align: left;
    }

    .mission-media {
      flex: 0 0 auto;
      height: var(--mission-thumb-h);
      border-radius: 10px;
      overflow: hidden;
      background: #f0f4f8;
      box-shadow: 0 2px 10px rgba(10, 45, 94, 0.12);
    }

    /* YouTube: 480×360 (4:3) */
    .mission-media--youtube {
      width: calc(var(--mission-thumb-h) * 4 / 3);
      aspect-ratio: 4 / 3;
    }

    /* Spotify: 640×640 (1:1) */
    .mission-media--spotify {
      width: var(--mission-thumb-h);
      aspect-ratio: 1 / 1;
    }

    .mission-cover {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .mission-cover-placeholder {
      width: 100%;
      height: 100%;
      background: linear-gradient(160deg, #f4f7fb 0%, #e8edf2 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      line-height: 1;
    }

    .mission--youtube .mission-cover-placeholder {
      background: linear-gradient(160deg, #eef2f8 0%, #e2e9f2 100%);
    }

    .mission--spotify .mission-cover-placeholder {
      background: linear-gradient(160deg, #edf8f0 0%, #e0f0e6 100%);
    }

    .mission-body {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      gap: 3px;
      padding: 4px 4px 4px 0;
    }

    .card .mission h3 {
      font-family: 'Montserrat', sans-serif;
      color: var(--azul);
      margin: 0;
      font-size: 1.05rem;
      font-weight: 700;
      line-height: 1.25;
      letter-spacing: 0.01em;
    }

    .mission-progress-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 2px;
    }

    .mission-progress-row .progress {
      flex: 1;
      min-width: 0;
      margin-top: 0;
    }

    .mission .counter {
      flex: 0 0 auto;
      margin: 0;
      font-size: 0.8rem;
      font-weight: 700;
      color: #5a6a7a;
      line-height: 1;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .mission-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      gap: 8px;
      margin-top: auto;
      padding-top: 6px;
    }

    .listen,
    .confirm {
      flex: 0 0 auto;
      width: auto;
      max-width: 100%;
      border-radius: 999px;
      padding: 7px 16px;
      border: none;
      font-family: 'Montserrat', sans-serif;
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      transition: filter 0.15s ease, transform 0.15s ease;
    }

    .listen:hover,
    .confirm:hover {
      filter: brightness(1.06);
      transform: translateY(-1px);
    }

    .listen {
      background: var(--azul);
      color: #fff;
    }

    .confirm {
      background: var(--verde);
      color: #fff;
      display: none;
    }

    @media (max-width: 520px) {
      .mission {
        --mission-thumb-h: 88px;
        gap: 10px;
        padding: 8px;
      }

      .mission-cover-placeholder {
        font-size: 1.65rem;
      }

      .card .mission h3 {
        font-size: 0.98rem;
      }
    }

    .card h3 {
      color: var(--azul);
      margin-bottom: 15px;
      font-family: 'Poiret One';
      font-weight: bold;
      font-size: 1.5rem;
    }

    

    .table-wrap {
      overflow-x: auto;
      margin-top: 20px;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      background: white;
    }

    th {
      background: var(--azul);
      color: white;
      padding: 15px;
      text-align: left;
      font-size: 0.8rem;
    }

    td {
      padding: 15px;
      border-bottom: 1px solid #eee;
      text-align: left;
      font-size: 0.9rem;
    }

    .social-links {
      margin: 40px 0;
      display: flex;
      justify-content: center;
      gap: 20px;
    }

    .social-links a {
      color: var(--azul);
      font-size: 1.4rem;
      transition: 0.3s;
    }

    .social-links a:hover {
      color: var(--verde);
      transform: translateY(-3px);
    }

    .faq-item {
      text-align: left;
      background: #fff;
      border: 1px solid #eee;
      border-radius: 12px;
      margin-bottom: 10px;
      overflow: hidden;
      box-shadow: 0 1px 4px rgba(10, 45, 94, 0.04);
    }

    .faq-item[open] {
      border-color: #d6e4f0;
      box-shadow: 0 2px 8px rgba(10, 45, 94, 0.08);
    }

    .faq-question {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      cursor: pointer;
      list-style: none;
      font-weight: 700;
      color: var(--azul);
      -webkit-tap-highlight-color: transparent;
    }

    .faq-question::-webkit-details-marker {
      display: none;
    }

    .faq-question::marker {
      content: '';
    }

    .faq-question-text {
      flex: 1;
      min-width: 0;
      line-height: 1.4;
      text-align: left;
    }

    .faq-question-arrow {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      border: 1px solid #d1d9e6;
      border-radius: 50%;
      color: var(--azul);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .faq-item[open] .faq-question-arrow {
      transform: rotate(180deg);
      background: #eef2ff;
    }

    .faq-item .faq-answer {
      margin: 0;
      padding: 12px 16px 16px;
      line-height: 1.6;
      color: #333;
      border-top: 1px solid #f0f2f5;
    }

    .faq-item:not([open]) .faq-answer {
      display: none;
    }

    .faq-item .faq-answer p {
      margin: 0 0 10px;
    }

    .faq-item .faq-answer p:last-child {
      margin-bottom: 0;
    }

    .faq-item .faq-answer ul,
    .faq-item .faq-answer ol {
      margin: 8px 0 10px;
      padding-left: 1.25rem;
    }

    .faq-item .faq-answer a {
      color: var(--azul);
      font-weight: 600;
    }

    .faq-cat-badge {
      display: inline-block;
      margin-bottom: 8px;
      padding: 4px 10px;
      border-radius: 999px;
      background: #eef2ff;
      color: var(--azul);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .comunidade-panel {
      display: none;
      margin-top: 12px;
    }

    .comunidade-panel.active {
      display: block;
    }

    #comunidade-tabs .tab-btn,
    #faq-tabs .tab-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      justify-content: center;
      min-width: 0;
    }

    .faq-subtabs {
      margin-top: 0;
    }

    .sas-cat-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin-top: 16px;
    }

    @media (min-width: 641px) {
      .sas-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
      }
    }

    .sas-cat-card {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
      padding: 14px 16px;
      background: #fff;
      border: 1px solid #eee;
      border-bottom: 3px solid var(--verde);
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(10, 45, 94, 0.06);
      cursor: pointer;
      text-align: left;
      font-family: inherit;
      color: var(--azul);
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      -webkit-tap-highlight-color: transparent;
    }

    .sas-cat-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(10, 45, 94, 0.1);
      border-color: #d6e4f0;
    }

    .sas-cat-card:focus-visible {
      outline: 2px solid var(--amarelo);
      outline-offset: 2px;
    }

    .sas-cat-icon {
      flex-shrink: 0;
      width: 42px;
      height: 42px;
      border-radius: 10px;
      background: #eef2ff;
      color: var(--azul);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
    }

    .sas-cat-label {
      flex: 1;
      min-width: 0;
      font-size: 0.95rem;
      font-weight: 700;
      line-height: 1.35;
      color: var(--azul);
    }

    .sas-cat-arrow {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      border: 1px solid #d1d9e6;
      border-radius: 50%;
      color: var(--azul);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      opacity: 0.85;
    }

    .sas-faq-view {
      margin-top: 8px;
    }

    .sas-back-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 4px 0 16px;
      scroll-margin-top: 120px;
      padding: 8px 14px;
      border: 1px solid #e0e7ef;
      border-radius: 10px;
      background: #fff;
      color: var(--azul);
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease;
    }

    .sas-back-btn:hover {
      background: #f8fafc;
      border-color: #c5d4e8;
    }

    .sas-back-btn:focus-visible {
      outline: 2px solid var(--amarelo);
      outline-offset: 2px;
    }

    .faq-empty {
      text-align: center;
      color: #667;
      padding: 24px 12px;
      background: #f8f9fa;
      border-radius: 10px;
    }

    #panel-faq .faq-section {
      margin-top: 0;
    }

    #panel-faq .sas-faq-view .faq-section {
      margin-top: 0;
    }

    #panel-comunidade .social-links {
      margin: 20px auto 0;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
      gap: 14px;
      max-width: 520px;
      justify-items: center;
    }

    #panel-comunidade .social-links a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: 80px;
      aspect-ratio: 1;
      background: #fff;
      border: 1px solid #e9edf2;
      border-bottom: 3px solid var(--verde);
      border-radius: 14px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
      color: var(--azul);
      font-size: 1.5rem;
      text-decoration: none;
      transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    #panel-comunidade .social-links a:hover {
      color: var(--verde);
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(10, 45, 94, 0.12);
      border-color: #d6e4f0;
    }

    @media (min-width: 641px) {
      #panel-comunidade .social-links {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        max-width: none;
        gap: 14px;
      }

      #panel-comunidade .social-links a {
        flex: 0 0 80px;
        width: 80px;
        max-width: 80px;
      }
    }

    .donacao-actions {
      display: flex;
      justify-content: center;
      margin: 16px 0 24px;
    }

    .donacao-paypal-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 12px 20px;
      border-radius: 12px;
      background: linear-gradient(90deg, var(--verde), var(--azul));
      color: #fff;
      font-weight: 700;
      text-decoration: none;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 8px 20px rgba(10, 45, 94, 0.18);
    }

    .donacao-paypal-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 24px rgba(10, 45, 94, 0.24);
    }

    .donacao-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
      max-width: 720px;
      margin: 0 auto;
    }

    .donacao-card {
      background: #fff;
      border: 1px solid #e9edf2;
      border-radius: 14px;
      padding: 16px;
      text-align: center;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    }

    .donacao-card-label {
      font-weight: 700;
      color: var(--azul);
      margin-bottom: 12px;
    }

    .donacao-card img {
      width: 100%;
      max-width: 220px;
      height: auto;
      border-radius: 10px;
      background: #f8f9fa;
    }

    @media (max-width: 480px) {
      #comunidade-tabs,
      #faq-tabs {
        flex-wrap: wrap;
      }

      #comunidade-tabs .tab-btn,
      #faq-tabs .tab-btn {
        flex: 1 1 calc(50% - 5px);
      }
    }
.skz-visual-footer {
  position: relative;
  width: 100%;
  text-align: center;
  background: transparent;
  z-index: 10;
  margin: 40px 0 0;
  padding: 0;
  overflow: visible;
}

.skz-photo {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  max-height: 80vh; /* Limita a altura m xima da imagem */
  object-fit: contain;
  object-position: bottom;
}

/* Remove a margem superior em telas muito pequenas */
@media (max-width: 767px) {
  .skz-visual-footer {
    margin-top: 20px;
  }
  
  .skz-photo {
    max-height: 60vh;
  }
  .footer-bar {
  color: white;
  padding: 10px;
  height: 50px;
  font-size: 0.6rem;
  letter-spacing: 2px;
  position: relative;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 1000;
}

.footer-text {
  background: var(--azul);
  font-size: 0.6rem;
  
  color: white;
  padding: 5px;
  bottom: 0;
  left: 0;
  right: 0;
  position: fixed;
}
}

/* Estilos para tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .skz-visual-footer {
    margin: 40px auto 0;
    max-width: 100%;
  }
  
  .skz-photo {
    max-height: 70vh;
  }
}

/* Estilos para desktop */
@media (min-width: 1024px) {
  .skz-visual-footer {
    margin: 40px auto 0;
    max-width: 1400px;
    padding: 0 20px;
    min-height: 240px; /* altura mínima final para reduzir espaço em branco */
    display: flex;
    align-items: flex-end;
    position: relative;
  }
  
  .skz-photo {
    max-height: 25vh; /* imagem ainda mais compacta no desktop */
    width: auto;
    max-width: 50%; /* Reduzido em 50% */
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease; /* Adiciona transi  o suave */
  }
}

    .footer-bar {
      color: white;
      padding: 10px;
      height: 80px;
      font-size: 0.7rem;
      letter-spacing: 2px;
/*      text-transform: uppercase;*/
      position: relative;
      bottom: 30px;
      left: 0;
      right: 0;
      z-index: 1000;
    }

.footer-text {
  background: var(--azul);
  font-size: 0.6rem;
  font-weight: 400;
  color: white;
  padding: 5px;
  bottom: 0;
  left: 0;
  right: 0;
  position: fixed;
}

    .card.votacao {
      position: relative;
      border-bottom: 5px solid #e1e1e1; /* sempre apenas barra inferior; cor padrão neutra */
    }
    /* Cores por prioridade */
    .card.votacao.prio-alta { border-bottom-color: #13753a; }
    .card.votacao.prio-media { border-bottom-color: #f9d423; }
    .card.votacao.prio-baixa { border-bottom-color: #0a2d5e; }

    .card-logo {
      display: block;
      width: 90px;
      height: 90px;
      margin: 0 auto 12px;
      object-fit: cover;
      border-radius: 50%;
      background: #fff;
      border: 2px solid #eee;
      box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    }

    .priority-badge {
      position: absolute;
      top: 12px;
      left: 12px; /* prioridade no lado esquerdo */
      background: #6c757d; /* default, sobrescrito pelas variantes */
      color: #fff;
      font-size: 0.55rem;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 20px;
      letter-spacing: 1px;
    }
    .priority-badge.prio-alta { background: #ff4757; color: #fff; }
    .priority-badge.prio-media { background: #f9d423; color: #212529; }
    .priority-badge.prio-baixa { background: #0a2d5e; color: #fff; }

    /* Fase da votação (coletando, votando, encerrada) no canto esquerdo */
    .card.votacao { position: relative; }
    .phase-badge {
      position: absolute;
      top: 12px;
      right: 12px; /* fase no lado direito */
      background: #6c757d; /* default */
      color: #fff;
      font-size: 0.55rem;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 20px;
      letter-spacing: 1px;
    }
    .phase-badge.fase-coletando { background: #1e90ff; }
    .phase-badge.fase-votando { background: #28a745; }
    .phase-badge.fase-encerrada { background: #6c757d; }

    .app-links {
      display: flex;
      gap: 10px;
      margin-top: 8px;
    }

    .app-links a {
      font-size: 20px;
      color: #555;
    }

    .app-links a:hover {
      color: #000;
    }

    @media (min-width: 1024px) {
      .container {
        margin-bottom: 70px; /* aproxima o conteúdo ao máximo do footer fixo */
        margin: 100px auto 100px;
      }
    }
    
/* Mobile Menu Styles */
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 45, 94, 0.32);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: opacity 0.25s ease;
}

#nav-overlay.active {
  display: block;
}

.menu-toggle {
  position: absolute;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1200;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 4px 2px;
}

.hamburger {
  width: 22px;
  height: 2.5px;
  background-color: var(--azul);
  margin: 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.active .hamburger:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }
      .footer-bar {
  color: white;
  padding: 10px;
  height: 60px;
  font-size: 0.6rem;
  letter-spacing: 2px;
  position: relative;
  bottom: 100px;
  left: 0;
  right: 0;
  z-index: 1000;
}

.footer-text {
  background: var(--azul);
  font-size: 0.6rem;
  
  color: white;
  padding: 5px;
  bottom: 0;
  left: 0;
  right: 0;
  position: fixed;
}
  /* esconder menus de desktop no mobile */
  .nav-links-left,
  .nav-links-right {
    display: none;
  }

  /* menu combinado mobile */
  #navLinks {
    display: flex;
    position: fixed;
    top: calc(var(--topbar-h) + var(--nav-h-mobile) + var(--safe-gap) + 8px);
    left: -100%;
    width: min(100%, 320px);
    height: calc(100vh - (var(--topbar-h) + var(--nav-h-mobile) + var(--safe-gap)) - 16px);
    height: calc(100dvh - (var(--topbar-h) + var(--nav-h-mobile) + var(--safe-gap)) - 16px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px 12px max(14px, env(safe-area-inset-bottom, 0px));
    transition: left 0.28s ease;
    box-shadow: 4px 0 28px rgba(10, 45, 94, 0.14);
    border-right: 1px solid rgba(255, 255, 255, 0.55);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }

  #navLinks.nav-menu-bg-custom {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
  }

  #navLinks.active {
    left: 0;
  }

  #navLinks li {
    width: 100%;
    text-align: center;
    padding: 0;
    border-bottom: none;
    flex-shrink: 0;
    border-radius: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: background 0.2s ease;
  }

  #navLinks li:hover {
    background: transparent;
  }

  #navLinks li.active {
    background: rgba(100, 110, 120, 0.14);
  }

  #navLinks li a {
    display: block;
    padding: 12px 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 600;
    color: var(--azul);
  }

  #navLinks li.active a {
    box-shadow: inset 0 -2px 0 var(--amarelo);
  }
  .skz-photo {
  margin-top: 2vh;
}
.skz-visual-footer {
  padding-top: 3vh;
}
}

    /* ====== Modal styles ====== */
    .modal {
      display: none;
      position: fixed;
      z-index: 2100;
      inset: 0;
      background: rgba(0, 0, 0, 0.85);
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .modal.open {
      display: flex;
    }

    .modal-content {
      width: 100%;
      max-width: 740px;
      background: #000;
      border-radius: 12px;
      overflow: hidden;
      position: relative;
    }

    .modal-iframe {
      width: 100%;
      height: 65vh;
      border: 0;
      display: block;
    }

    .modal-close {
      position: absolute;
      top: 8px;
      right: 10px;
      color: #fff;
      background: rgba(0, 0, 0, 0.35);
      border-radius: 6px;
      padding: 6px 10px;
      cursor: pointer;
      font-weight: 700;
      border: none;
    }

    /* Ações do modal (ex.: Ver vídeo) no topo direito */
    .modal-actions { position:absolute; top:8px; right:56px; display:flex; gap:8px; align-items:center }
    .btn.btn-small { padding:6px 12px; font-size:.75rem; border-radius:999px }

    /* Links do modal (ícones) com contraste e hover temático */
    .modal .app-links a { color:#cfd8e3; transition: color .2s ease }
    .modal .app-links a:hover { color: var(--amarelo) }
    .modal .app-links a:focus { outline:2px solid var(--amarelo); outline-offset:2px; border-radius:4px }

    /* Botão padrão pequeno no modal */
    .modal .btn.btn-small { background: var(--amarelo); color: var(--azul) }
    .modal .btn.btn-small:hover { background:#ffd24d }

    /* Botão YouTube para "Tutorial em vídeo" */
    .modal .btn.btn-small.btn-youtube { background:#ff0000; color:#fff }
    .modal .btn.btn-small.btn-youtube:hover { background:#cc0000; color:#fff }
    .modal .btn.btn-small.btn-youtube:focus { outline:2px solid #fff; outline-offset:2px }

    @media (max-width: 420px) {
      .modal-content {
        max-width: 420px;
      }

      .modal-iframe {
        height: 75vh;
      }

      .footer-bar {
  color: white;
  padding: 10px;
  height: 60px;
  font-size: 0.6rem;
  letter-spacing: 2px;
  position: relative;
  bottom: 90px;
  left: 0;
  right: 0;
  z-index: 1000;
}

.footer-text {
  background: var(--azul);
  font-size: 0.6rem;
  
  color: white;
  padding: 5px;
  bottom: 0;
  left: 0;
  right: 0;
  position: fixed;
}
    }
/* Tabs */
.tabs { display:flex; gap:10px; margin-top:12px; }
.tab-btn { flex:1; padding:10px; border-radius:10px; border:1px solid #e6e6e6; background:#fff; color:#444; cursor:pointer; font-weight:700 }
.tab-btn.active { background: linear-gradient(90deg, var(--verde), var(--azul)); color:#fff; border-color: transparent }
.tab-content { margin-top:12px }

/* Evitar overflow horizontal em telas pequenas (Votações) */
.tabs .tab-btn { min-width: 0; }
@media (max-width: 480px) {
  #votacoes-tabs { flex-wrap: wrap; }
  #votacoes-tabs .tab-btn { flex: 1 1 calc(50% - 5px); }
  /* Guias: mesmo comportamento responsivo das abas de Votações */
  #guias-tabs { flex-wrap: wrap; }
  #guias-tabs .tab-btn { flex: 1 1 calc(50% - 5px); }
}

/* Votações tabs: add count badge per tab */
#votacoes-tabs .tab-btn { position: relative; padding-right: 0; display:flex; align-items:center; gap:8px; justify-content:center }
#votacoes-tabs .tab-badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--amarelo); color: var(--azul);
  font-weight: 800; font-size: 0.7rem;
  min-width: 18px; height: 18px; border-radius: 999px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
#votacoes-tabs .tab-title { pointer-events: none; }
#votacoes-tabs .tab-icon { font-size: 1rem; opacity: .95; }

/* Votações: descrição por aba */
.vot-desc { margin-top:10px; text-align:left; background:#f8f9fa; border:1px solid #eaeaea; border-radius:10px; padding:14px }
.vot-desc p { margin:6px 0 }

/* Tutorial/Guia (Markdown) - estilos alinhados ao tema */
.guide-md { margin-top:14px; background:#0b0b0b; border:1px solid #222; border-radius:12px; padding:14px; color:#e9ecef }
.guide-md h1, .guide-md h2, .guide-md h3 { font-family:'Poiret One', cursive; margin:8px 0 6px; line-height:1.3 }
.guide-md h1 { font-size:1.15rem; color:var(--amarelo) }
.guide-md h2 { font-size:1.05rem; color:var(--amarelo) }
.guide-md h3 { font-size:.95rem; color:#d6d6d6; text-transform:uppercase; letter-spacing:.3px }
.guide-md p { margin:8px 0; line-height:1.6 }
.guide-md strong, .guide-md b { font-weight:700 }
.guide-md ul { margin:6px 0 10px 18px; padding-left:16px; list-style:disc outside }
.guide-md ol { margin:6px 0 10px 18px; padding-left:16px; list-style:decimal outside }
.guide-md li { margin:4px 0 }
.guide-md blockquote { margin:8px 0; padding:8px 10px; border-left:3px solid var(--amarelo); background:rgba(255,255,255,.03); border-radius:6px }
.guide-video { position:relative; padding-top:56.25%; border-radius:12px; overflow:hidden; background:#000; margin:10px 0 }
.guide-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0 }
/* Bloco de descrição do guia (antes do conteúdo) */
.guide-desc { margin-top:12px; background:#0b0b0b; border:1px solid #222; border-radius:12px; padding:12px; color:#e9ecef }
.guide-desc p { margin:8px 0; line-height:1.6 }
/* Lista de badges para descrições em CSV */
.badge-list { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
.badge { background: linear-gradient(90deg, var(--verde), var(--azul)); color:#fff; border:1px solid rgba(255,255,255,.15); padding:6px 10px; border-radius:999px; font-weight:700; font-size:.75rem; letter-spacing:.3px; white-space:nowrap }

/* Estado visual para votações encerradas */
.card.votacao { position: relative; }
.card.votacao.is-closed { filter: grayscale(100%); opacity: .92; }
.card.votacao.is-closed .card-logo { opacity: .75; }
.card.votacao.is-closed .app-links a { pointer-events: none; opacity: .55; }
.card.votacao.is-closed .app-links img { pointer-events: none; opacity: .55; filter: grayscale(100%); }
.card.votacao.is-closed .btn { pointer-events: none; opacity: .65; }
.card.votacao.is-closed .priority-badge { display: none; }
.card.votacao.is-closed { border-bottom: 5px solid #bfbfbf; }
    .card.votacao.is-closed::after {
  content: '';
  position: absolute; inset: 0; border-radius: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.18));
  pointer-events: none;
}

/* Calendar styles (from eventos-teste) */

.calendario-container{
    margin-top:0;
    padding-top:0;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.calendario-container .vot-desc{
    margin-top: 16px;
    margin-bottom: 28px;
}
.charts-container{
    margin-top:0;
    padding-top:0;
}

.calendar-card{background:#fff;border-radius:24px;padding:22px;box-shadow:0 10px 28px rgba(0,0,0,.07);}
.cal-grid{display:grid;grid-template-columns:520px 1fr;gap:20px;align-items:start}
.calendar-column{min-width:0}
.events-column{min-width:0}
.nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.nav button{background:var(--azul);border:none;color:#fff;padding:8px 12px;border-radius:10px;cursor:pointer;font-size:16px}
.month{font-family:'Poiret One';font-size:1.5rem;font-weight:700;color:var(--azul)}
.weekdays,.days{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.weekdays div{text-align:center;font-weight:700;color:var(--azul);padding:6px;font-size:0.78rem}
.day{
  aspect-ratio:1;
  min-width:0;
  min-height:0;
  background:#fff;
  border-radius:50%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative;
  transition:.16s;
  border:none;
  padding:4px;
  box-sizing:border-box;
}
.day-body{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  line-height:1;
  max-width:100%;
}
.day-num{
  font-size:clamp(0.85rem, 2.8vw, 1.05rem);
  line-height:1;
  font-weight:600;
  flex-shrink:0;
}
.day:hover{transform:translateY(-2px);box-shadow:0 6px 14px rgba(0,0,0,.06);background:rgba(148, 173, 204, 0.35)}
.day.today,
.day.today.has-event{background:var(--azul);color:#fff;font-weight:700}
.day.today .day-num{color:#fff;font-weight:700}
.day.today.has-event{box-shadow:inset 0 0 0 2px rgba(249,212,35,0.9)}
.day.today:hover,
.day.today.has-event:hover{background:var(--azul);color:#fff}
.day.selected{border:2px solid var(--azul);box-shadow:0 0 0 6px rgba(10,45,94,0.06);transform:translateY(-2px)}
.dots{
  position:static;
  left:auto;
  bottom:auto;
  transform:none;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:center;
  gap:2px;
  max-width:100%;
  line-height:1;
  margin-top:2px;
  flex-shrink:0;
}
.cal-event-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  flex-shrink:0;
  display:block;
}
.cal-event-dot-more{
  font-size:0.5rem;
  line-height:1;
  font-weight:700;
  color:#666;
  flex-shrink:0;
}
.day.today .cal-event-dot-more{color:rgba(255,255,255,0.9)}
.day.has-event{background:rgba(249,212,35,0.25)}
.day.has-event::before{content:"";position:absolute;width:32px;height:32px;border-radius:50%;background:rgba(249,212,35,0.35);top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;display:none}
/*.day.has-event::before{content:"";position:absolute;width:32px;height:32px;border-radius:50%;background:rgba(249,212,35,0.35);top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}*/
.day.other{opacity:.35}
.evento-popup{background:#fff;border-radius:12px;padding:16px;margin-bottom:12px;border-left:6px solid var(--verde);box-shadow:0 2px 8px rgba(0,0,0,.08)}
/*.evento-popup img{width:100%;height:150px;object-fit:cover;border-radius:8px;margin-bottom:12px}*/
.evento-popup img { 
  width: 100px; 
  height: 100px; 
  border-radius: 50%;
  object-fit: cover;
}
.evento-popup .tipo{display:none;background:var(--verde);color:#fff;padding:4px 10px;border-radius:999px;font-size:0.7rem;font-weight:700;margin-bottom:8px}
.evento-popup h3{color:var(--azul);margin:8px 0;font-size:1.1rem}
.evento-popup p{color:#666;font-size:0.9rem;margin:8px 0;line-height:1.5}
.evento-popup a{display:inline-block;background:var(--azul);color:#fff;padding:8px 16px;border-radius:6px;text-decoration:none;font-size:0.85rem;font-weight:600;margin-top:8px;transition:background 0.2s}
.evento-popup a:hover{background:var(--azul)}
.events{margin:0}
.event-card{background:#fff;border-left:6px solid var(--verde);padding:12px;margin-bottom:12px;border-radius:12px;box-shadow:0 3px 10px rgba(0,0,0,.04)}
.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:.72rem;font-weight:700;margin-bottom:8px}
.empty{opacity:.55}
.next-table{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 20px rgba(0,0,0,.06);margin-top:12px}
.table-header{display:grid;grid-template-columns:110px 1fr 100px;gap:12px;padding:12px 14px;background:#f5f8fb;font-size:.72rem;font-weight:800;letter-spacing:.06em;color:#667}
.next-row{display:grid;grid-template-columns:70px 1fr 100px;gap:12px;padding:12px 14px;align-items:center;border-top:1px solid #eef1f4;transition:.12s}
.tipo-badge{display:inline-flex;justify-content:center;align-items:center;padding:6px 10px;border-radius:999px;font-size:.72rem;font-weight:800}
.next-title{font-weight:700;color:#223}.next-desc{font-size:.8rem;opacity:.65;margin-top:4px}.next-date{font-size:.82rem;font-weight:600;text-align:left}.destaque{box-shadow:inset 4px 0 0 var(--amarelo);background:#fffdf2}
@media(max-width:720px){
  .cal-grid{grid-template-columns:1fr}
  .table-header{display:none}
  .next-row{grid-template-columns:1fr;gap:8px}
  .next-date{text-align:left}
  .calendar-card{padding:12px}
  .weekdays,.days{gap:4px}
  .day{padding:3px}
  .day-body{gap:2px}
  .cal-event-dot{width:4px;height:4px}
  .cal-event-dot-more{font-size:0.45rem}
  .dots{gap:1px}
}
.cal-layout{
  display: grid;
  grid-template-columns: minmax(280px, 0.70fr) 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  align-items: start;
  width: 100%;
}
.calendar-card{
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: 100%;
}
.next-events-wrapper{
  grid-column: 2;
  grid-row: 1;
  margin-top: 0 !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.next-events-wrapper .next-table{
  width: 100%;
  margin-top: 0;
  flex: 1;
}
.cal-legend{
  max-width: 100%;
  width: 100%;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0;
}
.events-card{display:none}
.cal-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 0;
  padding: 16px 20px;
  background: rgba(10, 45, 94, 0.03);
  border-radius: 12px;
}
.cal-legend-item{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #666;
}
.cal-legend-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
@media(max-width:768px){
  .cal-layout{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
  }
  .calendar-card{
    grid-column: 1;
    grid-row: 1;
  }
  .next-events-wrapper{
    grid-column: 1;
    grid-row: 2;
    margin-top: 0 !important;
  }
  .cal-legend{
    grid-column: 1;
    grid-row: 3;
    margin-top: 12px;
  }
}

/* garante largura total nos cards */
.calendar-card,
.events-card,
.next-table{
  width: 100%;
}

/* MOBILE */
@media (max-width: 720px){

  /* vira uma coluna só */

  .cal-layout{
    grid-template-columns: 1fr !important;
    display: grid !important;
  }


  /* controla a ordem */
  .calendar-card{
    order: 1;
  }

  .events-card{
    order: 2;
  }

  /* tabela sempre abaixo e full width */
  .next-table{
    order: 3;
  }

  /* evita qualquer “travamento” de largura */
  .calendar-card,
  .events-card{
    padding: 12px;
  }

}

@media (max-width: 420px) {
  .weekdays div{font-size:0.68rem;padding:4px 2px}
  .weekdays,.days{gap:3px}
  .day{padding:3px 1px}
  .day-num{font-size:clamp(0.78rem, 3.4vw, 0.95rem)}
  .cal-event-dot{width:3px;height:3px}
}
