.module-hub-page {
  --mh-forest: #0b4b42;
  --mh-forest-soft: #1d6659;
  --mh-ink: #17332d;
  --mh-muted: #6d8179;
  --mh-paper: #fffefa;
  --mh-line: #d7e1db;
  --mh-lime: #dff184;
  --mh-coral: #ee7656;
  position: relative;
  min-height: calc(100vh - 150px);
  overflow: hidden;
  padding: 42px 52px 58px;
  color: var(--mh-ink);
  background:
    radial-gradient(circle at 95% 2%, rgba(197, 228, 205, .75), transparent 29%),
    radial-gradient(circle at 10% 92%, rgba(234, 239, 167, .38), transparent 30%),
    linear-gradient(135deg, #faf9f2 0%, #f4f7ef 55%, #eef6f0 100%);
}

.module-hub-page::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -130px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(20, 100, 84, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.16), 0 0 0 90px rgba(255,255,255,.1);
  pointer-events: none;
}

.mh-shell { position: relative; z-index: 1; max-width: 1480px; margin: 0 auto; }
.mh-kicker {
  margin: 0 0 9px;
  color: #277167;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.mh-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.mh-title-row h1 {
  max-width: 780px;
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.03em;
}
.mh-title-row p { max-width: 560px; margin: 12px 0 0; color: var(--mh-muted); font-size: 14px; line-height: 1.6; }
.mh-status {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 1px solid rgba(19, 95, 80, .18);
  border-radius: 99px;
  color: #236d61;
  background: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 800;
}
.mh-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #64aa65; box-shadow: 0 0 0 4px rgba(100,170,101,.13); }

.mh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.mh-card {
  position: relative;
  display: flex;
  min-height: 250px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 27px;
  border: 1px solid var(--mh-line);
  border-radius: 24px;
  background: rgba(255,254,250,.92);
  box-shadow: 0 15px 38px rgba(28, 63, 51, .08);
  animation: mh-rise .45s ease both;
}
.mh-card:nth-child(2) { animation-delay: .06s; }
.mh-card:nth-child(3) { animation-delay: .12s; }
.mh-card:nth-child(4) { animation-delay: .18s; }
.mh-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(20, 104, 88, .055);
}
.mh-card.bank { color: white; border-color: transparent; background: linear-gradient(145deg, #083f38 0%, #1d6253 100%); box-shadow: 0 20px 45px rgba(9, 67, 57, .22); }
.mh-card.bank::after { background: rgba(223,241,132,.12); box-shadow: 0 0 0 38px rgba(255,255,255,.035); }
.mh-card.annual { background: linear-gradient(145deg, #fffefa, #f5f8da); }
.mh-card.cards { background: linear-gradient(145deg, #fffaf4, #ffede5); }
.mh-card.members { background: linear-gradient(145deg, #f8fffc, #dff1ea); }
.mh-card-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.mh-icon {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border-radius: 17px;
  color: var(--mh-forest);
  background: var(--mh-lime);
}
.mh-card.cards .mh-icon { color: #a53e29; background: #ffd8c9; }
.mh-card.members .mh-icon { color: #176b5d; background: #cae9df; }
.mh-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mh-tag { padding: 7px 10px; border-radius: 99px; color: #5d746c; background: rgba(255,255,255,.76); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.mh-card.bank .mh-tag { color: rgba(255,255,255,.8); background: rgba(255,255,255,.1); }
.mh-card-copy { position: relative; z-index: 1; margin-top: 25px; }
.mh-card-copy h2 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-size: 29px; font-weight: 400; }
.mh-card-copy p { max-width: 500px; min-height: 40px; margin: 8px 0 0; color: var(--mh-muted); font-size: 12px; line-height: 1.55; }
.mh-card.bank .mh-card-copy p { color: rgba(255,255,255,.68); }
.mh-card-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.mh-metric { color: var(--mh-muted); font-size: 10px; font-weight: 700; }
.mh-card.bank .mh-metric { color: rgba(255,255,255,.68); }
.mh-open {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  padding: 12px 15px;
  color: white;
  background: var(--mh-forest);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(10,74,63,.15);
  transition: transform .16s ease, box-shadow .16s ease;
}
.mh-card.bank .mh-open { color: var(--mh-forest); background: var(--mh-lime); box-shadow: none; }
.mh-open:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(10,74,63,.2); }
.mh-open::after { content: "→"; font-size: 15px; }

.mh-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 23px;
  padding: 0;
  border: 0;
  color: #266f64;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.mh-back::before { content: "←"; font-size: 15px; }

.mh-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.mh-choice {
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--mh-line);
  border-radius: 24px;
  background: var(--mh-paper);
  box-shadow: 0 16px 40px rgba(28,63,51,.09);
}
.mh-choice:first-child { background: linear-gradient(145deg, #fffefa, #f3f8dd); }
.mh-choice:last-child { color: white; border-color: transparent; background: linear-gradient(145deg, #0b4b42, #1d6755); }
.mh-choice-number { display: grid; width: 47px; height: 47px; place-items: center; border-radius: 15px; color: var(--mh-forest); background: var(--mh-lime); font-size: 13px; font-weight: 900; }
.mh-choice h2 { margin: 29px 0 0; font-family: "DM Serif Display", Georgia, serif; font-size: 34px; font-weight: 400; }
.mh-choice p { max-width: 500px; min-height: 56px; margin: 10px 0 0; color: var(--mh-muted); font-size: 12px; line-height: 1.6; }
.mh-choice:last-child p { color: rgba(255,255,255,.7); }
.mh-choice-meta { display: block; margin: 18px 0; color: #557269; font-size: 11px; font-weight: 800; }
.mh-choice:last-child .mh-choice-meta { color: rgba(255,255,255,.72); }
.mh-choice:last-child .mh-open { color: var(--mh-forest); background: var(--mh-lime); box-shadow: none; }

.mh-placeholder {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  margin-top: 32px;
}
.mh-placeholder-main,
.mh-placeholder-side { padding: 31px; border: 1px solid var(--mh-line); border-radius: 24px; background: rgba(255,254,250,.92); box-shadow: 0 15px 40px rgba(28,63,51,.08); }
.mh-placeholder-main h2 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-size: 34px; font-weight: 400; }
.mh-placeholder-main > p { color: var(--mh-muted); font-size: 13px; line-height: 1.65; }
.mh-feature-list { display: grid; gap: 10px; margin-top: 24px; }
.mh-feature { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 13px; color: #315d54; background: #edf5f0; font-size: 11px; font-weight: 800; }
.mh-feature::before { content: "✓"; display: grid; width: 23px; height: 23px; place-items: center; border-radius: 8px; color: #0f6558; background: #d4ebdf; }
.mh-placeholder-side { display: flex; flex-direction: column; justify-content: space-between; color: white; border-color: transparent; background: linear-gradient(145deg, #a74b34, #e47152); }
.mh-placeholder-side span { font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.mh-placeholder-side strong { display: block; margin-top: 14px; font-family: "DM Serif Display", Georgia, serif; font-size: 32px; font-weight: 400; line-height: 1.1; }
.mh-placeholder-side p { color: rgba(255,255,255,.75); font-size: 12px; line-height: 1.6; }

.module-sidebar-context {
  margin: 14px 18px 7px;
  padding: 15px 13px 10px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.62);
}
.module-sidebar-context span {
  display: block;
  margin-bottom: 5px;
  color: #dff184;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.module-sidebar-context strong {
  display: block;
  color: white;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.1;
}

body.module-home-active .sidebar { display: none !important; }
body.module-home-active .app-shell,
body.module-home-active .app-layout,
body.module-home-active .app-main,
body.module-home-active .main-shell,
body.module-home-active .main-area,
body.module-home-active .content-shell {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: minmax(0, 1fr) !important;
}
body.module-home-active .module-hub-page { min-height: calc(100vh - 150px); }

body.module-shell-ready .sidebar .nav-item[data-module-scope] { display: none !important; }
body.module-shell-ready.module-context-bank .sidebar .nav-item[data-module-scope="global"],
body.module-shell-ready.module-context-bank .sidebar .nav-item[data-module-scope="bank"],
body.module-shell-ready.module-context-annual .sidebar .nav-item[data-module-scope="global"],
body.module-shell-ready.module-context-annual .sidebar .nav-item[data-module-scope="annual"],
body.module-shell-ready.module-context-cards .sidebar .nav-item[data-module-scope="global"],
body.module-shell-ready.module-context-cards .sidebar .nav-item[data-module-scope="cards"],
body.module-shell-ready.module-context-members .sidebar .nav-item[data-module-scope="global"],
body.module-shell-ready.module-context-members .sidebar .nav-item[data-module-scope="members"] {
  display: flex !important;
}
body.module-shell-ready.module-context-home .module-sidebar-context { display: none; }

body.module-hub-ready.module-context-annual [data-real-nav="contributions"],
body.module-hub-ready.module-context-annual [data-nav="excedentes"] { display: flex !important; }

@keyframes mh-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  .module-hub-page { padding: 34px 28px 48px; }
  .mh-title-row { align-items: flex-start; flex-direction: column; }
  .mh-grid, .mh-choice-grid { grid-template-columns: 1fr; }
  .mh-card { min-height: 225px; }
}

@media (max-width: 720px) {
  .module-hub-page { padding: 27px 16px 38px; }
  .mh-title-row h1 { font-size: 39px; }
  .mh-status { align-self: flex-start; }
  .mh-card, .mh-choice, .mh-placeholder-main, .mh-placeholder-side { padding: 23px; border-radius: 19px; }
  .mh-card-bottom { align-items: flex-start; flex-direction: column; }
  .mh-open { width: 100%; justify-content: center; }
  .mh-placeholder { grid-template-columns: 1fr; }
}
