/* =========================================================
   A PLATAFORMA — STYLE.CSS GLOBAL
   Identidade visual: azul escuro, verde, branco e cards suaves
   ========================================================= */

/* =========================
   1. VARIÁVEIS GLOBAIS
   ========================= */
:root {
  --navy: #06265a;
  --navy-2: #0a3b82;
  --green: #2fa52f;
  --green-2: #45c23e;
  --blue: #0d63ce;

  --text: #071f49;
  --muted: #64748b;
  --line: #e6edf5;
  --bg: #f7fbff;
  --white: #ffffff;

  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow: 0 18px 45px rgba(6, 38, 90, 0.10);
  --shadow-soft: 0 8px 22px rgba(6, 38, 90, 0.08);

  --transition: all 0.2s ease;
}

/* =========================
   2. RESET / BASE
   ========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* =========================
   3. BOTÕES
   ========================= */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 22px;

  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

button:hover,
.btn:hover {
  transform: scale(1.05);
}

button:active,
.btn:active {
  transform: scale(0.95);
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 12px 20px rgba(47, 165, 47, 0.22);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 1px solid #aebbd0;
}

.btn-danger {
  background: var(--white);
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.btn-lg {
  padding: 17px 28px;
  border-radius: 10px;
}

/* =========================
   4. FORMULÁRIOS
   ========================= */
input,
select,
textarea {
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 99, 206, 0.12);
}

.container input,
.container select,
select:not(.no-global) {
  width: 100%;
  padding: 12px;
  margin: 8px 0 12px;
}

/* =========================
   5. TOPO / MARCA / MENU
   ========================= */
.topbar {
  min-height: 100px;
  background: var(--white);

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;

  padding: 0 32px;
  border-bottom: 1px solid var(--line);

  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 180px;
  min-width: 180px;
  overflow: visible;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;

  display: grid;
  place-items: center;

  background: var(--green);
  color: var(--white);
  font-size: 25px;

  box-shadow: 0 10px 22px rgba(47, 165, 47, 0.25);
}

.brand-logo {
  width: 175px;
  height: auto;
  object-fit: contain;
}

.footer .brand-logo {
  width: 150px;
  max-height: 75px;
}

.brand strong {
  font-size: 34px;
  line-height: 0.9;
  letter-spacing: 1px;
  color: var(--navy);
  font-weight: 900;
}

.brand small {
  display: block;
  font-size: 12px;
  color: var(--navy);
  font-weight: 600;
  margin-top: 5px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;

  font-weight: 800;
  color: var(--navy);
  font-size: 14px;
}

.cart-link {
  font-size: 26px;
}

.search-box {
  width: 420px;
  height: 48px;
  margin-left: 20px;

  display: flex;
  align-items: center;

  padding: 0 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 14px;
  color: var(--text);
}

.search-box span {
  font-size: 24px;
  color: var(--navy);
}

.category-bar {
  height: 50px;
  background: var(--white);

  display: flex;
  align-items: center;
  gap: 28px;

  padding: 0 42px;
  border-bottom: 1px solid var(--line);

  font-size: 13px;
  font-weight: 800;
  color: var(--navy);

  overflow: auto;
}

.category-bar a:first-child {
  font-size: 14px;
}

/* =========================
   6. PÁGINA INICIAL / HERO
   ========================= */
main {
  overflow: hidden;
}

.hero {
  min-height: 570px;

  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 36px;

  padding: 55px 64px 40px;
  background: linear-gradient(90deg, #f9fdff 0%, #ffffff 48%, #eff7ff 100%);
}

.hero-copy h1 {
  margin: 0 0 22px;

  font-size: 62px;
  line-height: 1.02;
  letter-spacing: -2px;

  color: var(--navy);
  font-weight: 900;
}

.hero-copy h1 span {
  display: block;
  color: var(--green);
}

.hero-copy p {
  max-width: 570px;
  margin: 0 0 32px;

  font-size: 19px;
  line-height: 1.65;
  color: #18385f;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-row {
  display: flex;
  gap: 38px;

  margin-top: 30px;

  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}

.hero-visual {
  min-height: 500px;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 48px;
  background:
    radial-gradient(circle at 20% 15%, #55c83f 0 19%, transparent 20%),
    radial-gradient(circle at 92% 8%, var(--navy) 0 25%, transparent 26%);
}

.hero-visual img {
  width: 82%;
  height: 410px;
  object-fit: cover;

  border-radius: 44% 28% 42% 28%;
  box-shadow: var(--shadow);
}

.conversion-card {
  position: absolute;
  right: 24px;
  bottom: 54px;

  min-width: 310px;
  padding: 28px 34px;

  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.conversion-card strong {
  font-size: 28px;
  line-height: 1.15;
  color: var(--navy);
}

.conversion-card strong span {
  font-size: 30px;
}

.conversion-card p {
  margin: 14px 0 8px;
  font-weight: 700;
  color: #18385f;
}

.conversion-card a {
  font-weight: 900;
  color: var(--blue);
}

/* =========================
   7. COMO FUNCIONA
   ========================= */
.how-section {
  background: var(--white);
  padding: 36px 48px 54px;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  text-align: center;
}

.how-section h2,
.section-block h2,
.partners h2 {
  margin: 0 0 32px;

  font-size: 28px;
  color: var(--navy);
}

.steps {
  max-width: 1120px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

.step-card {
  position: relative;
  padding: 10px 20px;
}

.step-card:not(:last-child)::after {
  content: "→";

  position: absolute;
  right: -26px;
  top: 42px;

  color: #a8b2c3;
  font-size: 32px;
}

.step-icon,
.floating-icon {
  display: grid;
  place-items: center;
  color: var(--white);
}

.step-icon {
  width: 88px;
  height: 88px;

  margin: 0 auto 18px;
  border-radius: 50%;

  font-size: 34px;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.10);
}

.green {
  background: var(--green);
}

.navy {
  background: var(--navy);
}

.blue {
  background: var(--blue);
}

.step-card h3 {
  margin: 0 0 10px;

  text-transform: uppercase;
  color: var(--navy);
}

.step-card p {
  margin: 0;

  color: #24415f;
  line-height: 1.45;
  font-weight: 500;
}

/* =========================
   8. CATEGORIAS / CARDS
   ========================= */
.section-block {
  background: var(--white);
  padding: 34px 52px 42px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 24px;
}

.section-head a {
  color: var(--blue);
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  overflow: hidden;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);

  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card img {
  width: 100%;
  height: 155px;
  object-fit: cover;
}

.floating-icon {
  width: 44px;
  height: 44px;

  position: absolute;
  top: 128px;
  left: 18px;

  border-radius: 50%;
  border: 4px solid var(--white);
}

.category-card h3 {
  margin: 32px 16px 8px;

  font-size: 19px;
  line-height: 1.15;
  color: var(--navy);
}

.category-card p {
  margin: 0 16px 22px;

  color: #334e68;
  font-weight: 500;
  line-height: 1.4;
}

.card,
.balance-card,
.history,
.profile-info,
.product-card,
.panel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* =========================
   9. IMPACTO / ESTATÍSTICAS
   ========================= */
.impact-band {
  margin: 28px 34px;
  padding: 38px 42px;

  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  align-items: center;
  gap: 28px;

  color: var(--white);
  background: linear-gradient(135deg, #061c3f, var(--navy-2));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.impact-band h2 {
  margin: 0 0 10px;

  font-size: 28px;
  line-height: 1.12;
}

.impact-band p {
  margin: 0 0 12px;
}

.impact-band a {
  color: #80e05c;
  font-weight: 900;
}

.impact-stat {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);

  text-align: center;
}

.impact-stat strong {
  display: block;
  color: #65dc48;
  font-size: 32px;
}

.impact-stat span {
  font-size: 14px;
}

/* =========================
   10. PARCEIROS
   ========================= */
.partners {
  background: var(--white);
  text-align: center;
  padding: 0 40px 34px;
}

.partner-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 26px;

  font-size: 27px;
  font-weight: 900;
  color: var(--navy);
}

.partner-row span:nth-child(1),
.partner-row span:nth-child(5) {
  color: #f97316;
}

.partner-row span:nth-child(3) {
  color: #1d75d8;
}

.partner-row span:nth-child(7) {
  color: #087f5b;
}

/* =========================
   11. RODAPÉ
   ========================= */
.footer {
  background: var(--white);
  padding: 28px 40px 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 28px;

  padding: 28px;

  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(6, 38, 90, 0.05);
}

.footer h4 {
  margin: 0 0 13px;
  color: var(--navy);
}

.footer a {
  display: block;
  margin: 9px 0;

  color: #18385f;
  font-weight: 600;
  font-size: 14px;
}

.footer input {
  width: 100%;
  height: 46px;

  margin-bottom: 10px;
  padding: 0 12px;

  border: 1px solid var(--line);
  border-radius: 8px;
}

.footer .btn {
  width: 100%;
}

.copyright {
  margin-top: 18px;

  text-align: center;
  font-size: 13px;
  color: #667085;
}

/* =========================
   12. PÁGINAS DE FORMULÁRIO
   ========================= */
.container {
  width: min(440px, 92vw);

  margin: 60px auto;
  padding: 28px;

  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.container button {
  width: 100%;
  margin-top: 8px;
}

.msg {
  margin-top: 10px;

  text-align: center;
  font-size: 13px;
  color: #e11d48;
}

/* =========================
   13. RESPONSIVIDADE
   ========================= */
@media (max-width: 1050px) {
  .desktop-only {
    display: none;
  }

  .topbar {
    padding: 0 18px;
  }

  .topnav {
    gap: 10px;
  }

  .category-bar {
    padding: 0 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 42px 26px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-visual img {
    height: 320px;
  }

  .steps,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-band,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .topbar {
    height: auto;
    min-height: 82px;
    flex-wrap: wrap;
    padding: 16px;
  }

  .brand strong {
    font-size: 28px;
  }

  .topnav {
    width: 100%;
    justify-content: space-between;
    overflow: auto;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .steps,
  .category-grid,
  .impact-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }

  .impact-stat {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .conversion-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -30px;
  }

  .hero-visual {
    display: block;
    padding: 20px;
  }

  .hero-visual img {
    width: 100%;
    height: 260px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

/* AJUSTE FINAL DO LOGO NO TOPO */
.topbar {
  position: sticky;
  top: 0;
  min-height: 105px;
  padding: 0 32px;
}

.topbar .brand {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 190px;
}

.topbar .brand-logo {
  width: 170px;
  height: auto;
}

.search-box {
  margin-left: 260px;
}

.topnav {
  margin-left: auto;
}

/* AJUSTE DO LOGO NO RODAPÉ */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  max-width: 220px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* ======================================
   DASHBOARD INVESTIDOR
====================================== */

.dashboard {
    width: min(1200px, 94%);
    margin: 30px auto;
}

.dashboard-header {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.metric-card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: var(--shadow-soft);
}

.metric-card.primary {
    background: linear-gradient(
        135deg,
        var(--navy),
        var(--navy-2)
    );

    color: white;
}

.metric-card h2 {
    margin: 8px 0 0;
    font-size: 34px;
}

.dashboard-section {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: var(--shadow-soft);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.actions button {
    min-width: 180px;
}

/* =========================================================
   DASHBOARD DO INVESTIDOR — REDESIGN
   ========================================================= */

.dashboard {
  width: min(1320px, 94%);
  margin: 32px auto 60px;
}

.investor-hero {
  display: grid;
  grid-template-columns: 1.5fr 360px;
  align-items: center;
  gap: 28px;

  margin-bottom: 28px;
  padding: 34px 38px;

  background: linear-gradient(135deg, #ffffff 0%, #f3fbff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.investor-hero h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -1px;
}

.investor-hero p {
  margin: 0;
  color: #334e68;
  font-size: 18px;
}

.hero-mini-card {
  justify-self: end;
  width: 320px;
  padding: 22px;

  background: rgba(47, 165, 47, 0.08);
  border: 1px solid rgba(47, 165, 47, 0.15);
  border-radius: 24px;
  text-align: center;
}

.mini-chart {
  height: 90px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.mini-chart span {
  width: 42px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, var(--green-2), var(--green));
}

.mini-chart span:nth-child(1) { height: 42px; }
.mini-chart span:nth-child(2) { height: 68px; }
.mini-chart span:nth-child(3) { height: 88px; }

.hero-mini-card p {
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.metric-card {
  min-height: 160px;
  padding: 28px;

  display: flex;
  align-items: center;
  gap: 22px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.metric-card.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.metric-card p {
  margin: 0 0 8px;
  color: inherit;
  font-weight: 800;
  opacity: 0.9;
}

.metric-card h2 {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1;
  color: inherit;
}

.metric-card small {
  color: inherit;
  opacity: 0.75;
  font-weight: 600;
}

.metric-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);

  font-size: 30px;
}

.metric-icon.green-soft {
  background: rgba(47, 165, 47, 0.12);
  color: var(--green);
}

.metric-icon.blue-soft {
  background: rgba(13, 99, 206, 0.10);
  color: var(--blue);
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 22px;
}

.dashboard-section {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.dashboard-section h3 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 24px;
}

.quick-actions-card h3::after,
.donations-card h3::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--green);
}

.actions-list {
  display: grid;
  gap: 14px;
}

.action-button {
  width: 100%;
  min-height: 70px;
  padding: 16px 20px;

  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;

  border: 1px solid var(--line);
  border-radius: 16px;

  text-align: left;
  background: var(--white);
  color: var(--navy);
}

.action-button span {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: 14px;
  font-size: 23px;
}

.action-button strong {
  font-size: 17px;
}

.action-button em {
  font-style: normal;
  font-size: 28px;
  color: var(--navy);
}

.action-green {
  background: linear-gradient(90deg, rgba(47,165,47,.12), rgba(47,165,47,.03));
}

.action-green span {
  background: rgba(47,165,47,.14);
  color: var(--green);
}

.action-blue {
  background: linear-gradient(90deg, rgba(13,99,206,.10), rgba(13,99,206,.03));
}

.action-blue span {
  background: rgba(13,99,206,.10);
  color: var(--blue);
}

.action-gray span {
  background: #f1f5f9;
  color: var(--muted);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title-row a {
  color: var(--green);
  font-weight: 900;
}

.donation-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;

  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.donation-icon {
  width: 62px;
  height: 62px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: #f1f7ff;
  font-size: 30px;
}

.donation-info strong {
  color: var(--navy);
  font-size: 18px;
}

.donation-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 7px 0 14px;

  color: var(--muted);
  font-size: 14px;
}

.status-tag {
  display: inline-flex;
  align-items: center;

  padding: 4px 9px;
  border-radius: 999px;

  background: #e2e8f0;
  color: var(--navy);

  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}

.status-tag.aprovado {
  background: rgba(47,165,47,.12);
  color: var(--green);
}

.status-tag.pendente {
  background: #fff7ed;
  color: #ea580c;
}

.status-tag.rejeitado {
  background: #fee2e2;
  color: #dc2626;
}

.donation-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.donation-values div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.donation-values strong {
  display: block;
  font-size: 18px;
  color: var(--navy);
}

.donation-values small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.empty-state {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
}

.empty-state p {
  margin: 0 0 14px;
  color: var(--muted);
}

/* Responsividade do dashboard */
@media (max-width: 1050px) {
  .investor-hero,
  .metrics-row,
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini-card {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .dashboard {
    width: min(94%, 100%);
    margin-top: 22px;
  }

  .investor-hero,
  .dashboard-section,
  .metric-card {
    padding: 22px;
  }

  .investor-hero h1 {
    font-size: 30px;
  }

  .metric-card {
    align-items: flex-start;
  }

  .donation-values {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   LOJA — REDESIGN
   ========================================================= */

.loja-page {
  width: min(1320px, 94%);
  margin: 32px auto 60px;
}

.loja-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 34px 38px;
  margin-bottom: 22px;

  background: linear-gradient(135deg, #ffffff 0%, #f3fbff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.loja-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.loja-hero p {
  margin: 0;
  color: #334e68;
  font-size: 18px;
}

.saldo-card {
  min-width: 240px;
  padding: 24px;

  text-align: center;
  color: var(--white);

  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-soft);
}

.saldo-card span {
  display: block;
  font-size: 14px;
  font-weight: 800;
  opacity: 0.85;
}

.saldo-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 42px;
  line-height: 1;
}

.saldo-card small {
  opacity: 0.8;
  font-weight: 700;
}

.loja-filtros {
  display: grid;
  grid-template-columns: 260px 260px;
  gap: 14px;

  margin-bottom: 24px;
}

.loja-filtros select {
  width: 100%;
  padding: 14px 16px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;

  color: var(--navy);
  font-weight: 800;
}

.loading-store {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.loja-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 24px;
}

.loja-product-card {
  overflow: hidden;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);

  transition: var(--transition);
}

.loja-product-card:hover {
  transform: translateY(-5px);
}

.product-image-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #e2e8f0;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;

  padding: 7px 11px;
  border-radius: 999px;

  background: rgba(47, 165, 47, 0.92);
  color: var(--white);

  font-size: 12px;
  font-weight: 900;
}

.product-content {
  padding: 20px;
}

.product-category {
  display: inline-flex;
  align-items: center;

  padding: 5px 10px;
  margin-bottom: 12px;

  border-radius: 999px;
  background: rgba(13, 99, 206, 0.09);
  color: var(--blue);

  font-size: 12px;
  font-weight: 900;
}

.product-content h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 22px;
}

.product-sponsor {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.product-description {
  min-height: 48px;
  margin: 0 0 18px;

  color: #334e68;
  line-height: 1.45;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.product-footer strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
}

.product-footer small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.product-footer .btn {
  min-width: 110px;
}

.loja-history {
  margin-top: 34px;
  padding: 28px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.loja-history h3 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}

.loja-history-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;

  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.loja-history-item span {
  color: var(--navy);
  font-weight: 800;
}

.loja-history-item strong {
  color: var(--green);
}

.loja-history-item small {
  color: var(--muted);
}

.mensagem {
  display: none;

  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 999;

  padding: 14px 18px;
  border-radius: 14px;

  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.loja-empty {
  grid-column: 1 / -1;
}

/* Responsividade da loja */
@media (max-width: 900px) {
  .loja-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .saldo-card {
    width: 100%;
  }

  .loja-filtros {
    grid-template-columns: 1fr;
  }

  .loja-history-item {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   CARTEIRA — REDESIGN
   ========================================================= */

.wallet-page {
  width: min(1320px, 94%);
  margin: 32px auto 60px;
}

.wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 34px 38px;
  margin-bottom: 22px;

  background: linear-gradient(135deg, #ffffff 0%, #f3fbff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.wallet-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.wallet-hero p {
  margin: 0;
  color: #334e68;
  font-size: 18px;
}

.wallet-main-balance {
  min-width: 260px;
  padding: 24px;

  text-align: center;
  color: var(--white);

  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-soft);
}

.wallet-main-balance span {
  font-size: 14px;
  font-weight: 800;
  opacity: .85;
}

.wallet-main-balance strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 42px;
  line-height: 1;
}

.wallet-main-balance small {
  opacity: .8;
  font-weight: 700;
}

.wallet-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.wallet-card {
  min-height: 160px;
  padding: 28px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.wallet-card.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.wallet-card p {
  margin: 0 0 8px;
  font-weight: 900;
  opacity: .9;
}

.wallet-card h2 {
  margin: 0 0 8px;
  font-size: 32px;
  color: inherit;
}

.wallet-card small {
  color: inherit;
  opacity: .72;
  font-weight: 600;
}

.wallet-section {
  margin-top: 22px;
  padding: 28px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.wallet-section h3 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}

.wallet-bars {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.wallet-bars span {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 900;
}

.bar-track {
  width: 100%;
  height: 18px;
  overflow: hidden;

  background: #eef2f7;
  border-radius: 999px;
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width .4s ease;
}

.bar-fill.positive {
  background: linear-gradient(90deg, var(--green), var(--green-2));
}

.bar-fill.negative {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.wallet-item {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 16px;

  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.wallet-item-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.wallet-item-icon.positive {
  background: rgba(47, 165, 47, .12);
  color: var(--green);
}

.wallet-item-icon.negative {
  background: #fee2e2;
  color: #dc2626;
}

.wallet-item-info strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
}

.wallet-item-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.wallet-item-value {
  font-weight: 900;
}

.wallet-item-value.positive {
  color: var(--green);
}

.wallet-item-value.negative {
  color: #dc2626;
}

.wallet-item-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* Responsividade da carteira */
@media (max-width: 900px) {
  .wallet-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .wallet-main-balance {
    width: 100%;
  }

  .wallet-metrics {
    grid-template-columns: 1fr;
  }

  .wallet-item {
    grid-template-columns: 48px 1fr;
  }

  .wallet-item-value,
  .wallet-item-date {
    grid-column: 2;
  }
}


/* =========================================================
   PERFIL — REDESIGN COMPLETO
   ========================================================= */

.profile-page {
  width: min(1320px, 94%);
  margin: 32px auto 60px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 90px 1fr 260px;
  align-items: center;
  gap: 24px;

  padding: 34px 38px;
  margin-bottom: 22px;

  background: linear-gradient(135deg, #ffffff 0%, #f3fbff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.profile-avatar {
  width: 82px;
  height: 82px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: var(--white);

  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(47, 165, 47, 0.20);
}

.profile-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 11px;

  background: rgba(47, 165, 47, .10);
  color: var(--green);

  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-hero h1 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.profile-hero p {
  margin: 0;
  color: #334e68;
  font-size: 17px;
}

.profile-hero-badge {
  justify-self: end;

  min-width: 220px;
  padding: 22px;

  text-align: center;
  color: var(--white);

  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-soft);
}

.profile-hero-badge span {
  display: block;
  margin-bottom: 8px;

  font-size: 13px;
  font-weight: 800;
  opacity: .82;
}

.profile-hero-badge strong {
  font-size: 24px;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.profile-metric {
  min-height: 150px;
  padding: 24px;

  display: flex;
  align-items: center;
  gap: 18px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.profile-metric.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.profile-metric p {
  margin: 0 0 7px;
  font-weight: 900;
  opacity: .9;
}

.profile-metric h2 {
  margin: 0 0 6px;
  font-size: 30px;
  color: inherit;
}

.profile-metric small {
  color: inherit;
  opacity: .72;
  font-weight: 600;
}

.profile-metric-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: var(--white);

  font-size: 26px;
}

.profile-metric-icon.green-soft {
  background: rgba(47, 165, 47, .12);
  color: var(--green);
}

.profile-metric-icon.blue-soft {
  background: rgba(13, 99, 206, .10);
  color: var(--blue);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 22px;
  margin-bottom: 22px;
}

.profile-card {
  padding: 28px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.profile-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}

.profile-info-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.profile-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.profile-info-row span {
  color: var(--muted);
  font-weight: 700;
}

.profile-info-row strong {
  color: var(--navy);
  text-align: right;
}

.profile-summary {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.profile-summary div {
  padding: 18px;

  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.profile-summary strong {
  display: block;
  color: var(--navy);
  font-size: 30px;
}

.profile-summary span {
  color: var(--muted);
  font-weight: 700;
}

.profile-history-item {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 16px;

  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.profile-history-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.profile-history-icon.positive {
  background: rgba(47, 165, 47, .12);
  color: var(--green);
}

.profile-history-icon.negative {
  background: #fee2e2;
  color: #dc2626;
}

.profile-history-info strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
}

.profile-history-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.profile-history-value {
  font-weight: 900;
}

.profile-history-value.positive {
  color: var(--green);
}

.profile-history-value.negative {
  color: #dc2626;
}

.profile-history-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* Responsividade do perfil */
@media (max-width: 1050px) {
  .profile-hero {
    grid-template-columns: 90px 1fr;
  }

  .profile-hero-badge {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .profile-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-avatar {
    margin: 0 auto;
  }

  .profile-hero h1 {
    font-size: 32px;
  }

  .profile-metrics {
    grid-template-columns: 1fr;
  }

  .profile-history-item {
    grid-template-columns: 48px 1fr;
  }

  .profile-history-value,
  .profile-history-date {
    grid-column: 2;
  }

  .profile-info-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-info-row strong {
    text-align: left;
  }
}

/* =========================================================
   RANKING — REDESIGN COMPLETO
   ========================================================= */

.ranking-page {
  width: min(1320px, 94%);
  margin: 32px auto 60px;
}

.ranking-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 38px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f3fbff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.ranking-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 11px;
  background: rgba(47, 165, 47, .10);
  color: var(--green);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ranking-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.ranking-hero p {
  margin: 0;
  color: #334e68;
  font-size: 18px;
}

.ranking-trophy {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-soft);
  font-size: 58px;
}

.ranking-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.ranking-stat {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.ranking-stat.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.ranking-stat p {
  margin: 0 0 8px;
  font-weight: 900;
  opacity: .85;
}

.ranking-stat h2 {
  margin: 0;
  color: inherit;
  font-size: 34px;
}

.ranking-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 22px;
  margin-bottom: 22px;
}

.podium-card {
  padding: 28px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.podium-card:hover {
  transform: translateY(-5px);
}

.podium-card.gold {
  min-height: 330px;
  border-color: rgba(234, 179, 8, .35);
  background: linear-gradient(180deg, #fffbe8 0%, #ffffff 70%);
}

.podium-card.silver {
  min-height: 290px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 70%);
}

.podium-card.bronze {
  min-height: 270px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 70%);
}

.podium-medal {
  font-size: 48px;
  margin-bottom: 10px;
}

.podium-card span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.podium-card h3 {
  margin: 12px 0 6px;
  color: var(--navy);
  font-size: 24px;
}

.podium-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.podium-score {
  margin: 18px auto;
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.podium-score strong {
  display: block;
  color: var(--green);
  font-size: 34px;
}

.podium-score small {
  color: var(--muted);
  font-weight: 800;
}

.ranking-list-section {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.ranking-list-section h3 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 80px 1fr 160px 120px;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  transition: var(--transition);
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.ranking-position {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.ranking-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ranking-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.ranking-user strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
}

.ranking-user small,
.ranking-score span,
.ranking-xp span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ranking-score strong,
.ranking-xp strong {
  color: var(--navy);
  font-size: 20px;
}

.ranking-score strong {
  color: var(--green);
}

@media (max-width: 1050px) {
  .ranking-podium,
  .ranking-stats {
    grid-template-columns: 1fr;
  }

  .podium-card.gold,
  .podium-card.silver,
  .podium-card.bronze {
    min-height: auto;
  }

  .ranking-item {
    grid-template-columns: 70px 1fr;
  }

  .ranking-score,
  .ranking-xp {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .ranking-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .ranking-hero h1 {
    font-size: 32px;
  }

  .ranking-trophy {
    width: 90px;
    height: 90px;
    font-size: 46px;
  }
}


/* =========================================================
   PAINEL DO PATROCINADOR — REDESIGN
   ========================================================= */

.sponsor-page {
  width: min(1320px, 94%);
  margin: 32px auto 60px;
}

.sponsor-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 34px 38px;
  margin-bottom: 22px;

  background: linear-gradient(135deg, #ffffff 0%, #f3fbff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.sponsor-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 11px;

  background: rgba(47, 165, 47, .10);
  color: var(--green);

  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sponsor-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.sponsor-hero p {
  margin: 0;
  color: #334e68;
  font-size: 17px;
}

.sponsor-balance-card {
  min-width: 270px;
  padding: 24px;

  text-align: center;
  color: var(--white);

  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-soft);
}

.sponsor-balance-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  opacity: .85;
}

.sponsor-balance-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 30px;
}

.sponsor-balance-card small {
  opacity: .75;
  font-weight: 700;
}

.sponsor-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.sponsor-metric {
  padding: 26px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.sponsor-metric.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.sponsor-metric p {
  margin: 0 0 8px;
  font-weight: 900;
  opacity: .85;
}

.sponsor-metric h2 {
  margin: 0 0 8px;
  color: inherit;
  font-size: 34px;
}

.sponsor-metric small {
  color: inherit;
  opacity: .72;
  font-weight: 600;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.sponsor-card {
  padding: 28px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.sponsor-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}

.sponsor-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.sponsor-form input,
.sponsor-form select,
.sponsor-form textarea {
  width: 100%;
  padding: 13px 14px;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;

  color: var(--navy);
}

.sponsor-form textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sponsor-msg {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.sponsor-msg.success {
  color: var(--green);
}

.sponsor-msg.error {
  color: #dc2626;
}

.sponsor-product-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;

  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.sponsor-product-image {
  width: 140px;
  height: 100px;
  overflow: hidden;

  border-radius: 16px;
  background: #e2e8f0;
}

.sponsor-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sponsor-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sponsor-product-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}

.sponsor-product-info p {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.sponsor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sponsor-tags span,
.sponsor-status {
  display: inline-flex;
  padding: 5px 9px;

  border-radius: 999px;
  background: rgba(13, 99, 206, .08);
  color: var(--blue);

  font-size: 12px;
  font-weight: 900;
}

.sponsor-status.pending {
  background: #fff7ed;
  color: #ea580c;
}

.sponsor-status.approved {
  background: rgba(47, 165, 47, .12);
  color: var(--green);
}

.sponsor-status.rejected {
  background: #fee2e2;
  color: #dc2626;
}

.sponsor-sale-item {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 16px;

  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.sale-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: rgba(47, 165, 47, .12);
  color: var(--green);

  font-size: 22px;
}

.sponsor-sale-item strong {
  display: block;
  color: var(--navy);
}

.sponsor-sale-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.sale-value {
  color: var(--green);
  font-weight: 900;
}

.sale-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* Responsividade do patrocinador */
@media (max-width: 1100px) {
  .sponsor-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .sponsor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sponsor-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .sponsor-balance-card {
    width: 100%;
  }

  .sponsor-metrics {
    grid-template-columns: 1fr;
  }

  .sponsor-product-item {
    grid-template-columns: 1fr;
  }

  .sponsor-product-image {
    width: 100%;
    height: 180px;
  }

  .sponsor-sale-item {
    grid-template-columns: 48px 1fr;
  }

  .sale-value,
  .sale-date {
    grid-column: 2;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PAINEL DA INSTITUIÇÃO — REDESIGN
   ========================================================= */

.institution-page {
  width: min(1320px, 94%);
  margin: 32px auto 60px;
}

.institution-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 38px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f3fbff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.institution-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 11px;
  background: rgba(47, 165, 47, .10);
  color: var(--green);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.institution-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.institution-hero p {
  margin: 0;
  color: #334e68;
  font-size: 17px;
}

.institution-public-card {
  min-width: 280px;
  padding: 24px;
  text-align: center;
  color: var(--white);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-soft);
}

.institution-public-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  opacity: .85;
}

.institution-public-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 20px;
}

.institution-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.institution-metric {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.institution-metric.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.institution-metric p {
  margin: 0 0 8px;
  font-weight: 900;
  opacity: .85;
}

.institution-metric h2 {
  margin: 0 0 8px;
  color: inherit;
  font-size: 32px;
}

.institution-metric small {
  color: inherit;
  opacity: .72;
  font-weight: 600;
}

.institution-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  margin-bottom: 22px;
}

.institution-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.institution-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}

.institution-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.institution-form input,
.institution-form textarea {
  width: 100%;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
}

.institution-form textarea {
  min-height: 130px;
  resize: vertical;
}

.institution-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.institution-msg {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.institution-msg.success {
  color: var(--green);
}

.institution-summary {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.institution-summary-item {
  padding: 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.institution-summary-item span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 6px;
}

.institution-summary-item strong {
  color: var(--navy);
  font-size: 24px;
}

.institution-donation-item {
  display: grid;
  grid-template-columns: 52px 1fr auto 120px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.donation-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: var(--white);
  font-weight: 900;
  font-size: 18px;
}

.donation-info strong {
  display: block;
  color: var(--navy);
}

.donation-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.donation-value {
  color: var(--green);
  font-weight: 900;
}

.institution-status {
  justify-self: end;
  display: inline-flex;
  justify-content: center;
  min-width: 90px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}

.institution-status.pending {
  background: #fff7ed;
  color: #ea580c;
}

.institution-status.approved {
  background: rgba(47, 165, 47, .12);
  color: var(--green);
}

.institution-status.rejected {
  background: #fee2e2;
  color: #dc2626;
}

@media (max-width: 1100px) {
  .institution-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .institution-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .institution-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .institution-public-card {
    width: 100%;
  }

  .institution-metrics {
    grid-template-columns: 1fr;
  }

  .institution-form-row {
    grid-template-columns: 1fr;
  }

  .institution-donation-item {
    grid-template-columns: 52px 1fr;
  }

  .donation-value,
  .institution-status {
    grid-column: 2;
    justify-self: start;
  }
}


/* =========================================================
   ADMIN — REDESIGN COMPLETO
   ========================================================= */

.admin-page {
  width: min(1320px, 94%);
  margin: 32px auto 60px;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 34px 38px;
  margin-bottom: 22px;

  background: linear-gradient(135deg, #ffffff 0%, #f3fbff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.admin-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 11px;

  background: rgba(47, 165, 47, .10);
  color: var(--green);

  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.admin-hero p {
  margin: 0;
  color: #334e68;
  font-size: 17px;
}

.admin-hero-card {
  min-width: 280px;
  padding: 24px;

  text-align: center;
  color: var(--white);

  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-soft);
}

.admin-hero-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  opacity: .85;
}

.admin-hero-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
}

.admin-hero-card small {
  opacity: .75;
  font-weight: 700;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.admin-stat {
  padding: 26px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.admin-stat.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.admin-stat p {
  margin: 0 0 8px;
  font-weight: 900;
  opacity: .85;
}

.admin-stat h2 {
  margin: 0 0 8px;
  color: inherit;
  font-size: 32px;
}

.admin-stat small {
  color: inherit;
  opacity: .72;
  font-weight: 600;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.admin-card {
  padding: 28px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.admin-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}

.admin-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;

  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.admin-item strong {
  color: var(--navy);
}

.admin-item p {
  margin: 4px 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-item small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.admin-item-value {
  color: var(--green);
  font-weight: 900;
  text-align: right;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-actions .btn {
  padding: 10px 14px;
}

.admin-status {
  justify-self: end;

  display: inline-flex;
  justify-content: center;

  min-width: 90px;
  padding: 6px 10px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}

.admin-status.pendente {
  background: #fff7ed;
  color: #ea580c;
}

.admin-status.aprovado {
  background: rgba(47, 165, 47, .12);
  color: var(--green);
}

.admin-status.rejeitado {
  background: #fee2e2;
  color: #dc2626;
}

.admin-user-item {
  display: grid;
  grid-template-columns: 46px 1fr auto auto;
  align-items: center;
  gap: 14px;

  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.admin-avatar {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: var(--white);

  font-weight: 900;
}

.admin-user-item strong {
  color: var(--navy);
}

.admin-user-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.admin-user-item span {
  padding: 5px 9px;

  border-radius: 999px;
  background: rgba(13, 99, 206, .08);
  color: var(--blue);

  font-size: 12px;
  font-weight: 900;
}

/* Responsividade Admin */
@media (max-width: 1100px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-hero-card {
    width: 100%;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .admin-item-value {
    text-align: left;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .admin-user-item {
    grid-template-columns: 46px 1fr;
  }

  .admin-user-item span,
  .admin-user-item > strong:last-child {
    grid-column: 2;
  }
}





