/*
 * 28.11.2026 – antetul „pastilă” (ca pe misibi.com), bara de jos ca în aplicația MisiBi
 * și anunțurile cu proiecte mai mici. Se încarcă după mb-vechi.css și îl suprascrie.
 */
:root { --mbv-head: 64px; --mbv-gap: 12px; --mb-nav-h: 58px; }

/* ---------- antetul: o pastilă albă care plutește ---------- */
.mbv-head {
  top: var(--mbv-gap); left: 50%; right: auto; transform: translateX(-50%);
  width: min(1200px, calc(100% - 2 * var(--mbv-gap))); height: var(--mbv-head);
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border: 1px solid rgba(17, 24, 39, .07); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .10), 0 1px 2px rgba(16, 24, 40, .06);
  transition: box-shadow .2s ease, background .2s ease;
}
.mbv-head.is-scrolled { background: rgba(255, 255, 255, .95); box-shadow: 0 12px 34px rgba(16, 24, 40, .14), 0 1px 2px rgba(16, 24, 40, .06); }
.mbv-head__in { width: 100%; padding: 0 10px 0 22px; gap: 10px; }
.mbv-logo img { width: 132px; height: 42px; }
.mbv-menu > li > a, .mbv-menu > li > button { height: 40px; padding: 0 13px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.mbv-menu > li > a:hover, .mbv-menu > li > button:hover, .mbv-menu > li:focus-within > button { background: rgba(151, 15, 15, .06); color: var(--brand-red); }
.mbv-menu a[aria-current="page"], .mbv-menu > li.is-current > button, .mbv-menu > li.is-current > a { color: var(--brand-red); background: rgba(151, 15, 15, .07); font-weight: 600; }
.mbv-sub { top: calc(100% + 12px); border-top: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(16, 24, 40, .14); border: 1px solid rgba(17, 24, 39, .07); }
.mbv-menu > li { display: flex; align-items: center; }
.mbv-menu > li::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }   /* puntea până la submeniu */
.mbv-donate { height: 42px; padding: 0 22px; margin-left: 8px; border-radius: 999px; font: 700 14px/1 "Inter", Arial, sans-serif; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(151, 15, 15, .25); }
.mbv-donate:hover { background: var(--brand-red-dark); }
main.mbv-main { padding-top: calc(var(--mbv-head) + 2 * var(--mbv-gap)); }

@media (max-width: 921px) {
  :root { --mbv-head: 54px; --mbv-gap: 8px; }
  .mbv-head__in { padding: 0 7px 0 14px; gap: 6px; }
  .mbv-logo img { width: 104px; height: 33px; }
  .mbv-donate { height: 34px; padding: 0 13px; font-size: 12px; box-shadow: none; }
  .mbv-toggle { width: 38px; height: 38px; margin-left: 2px; border: 0; border-radius: 50%; background: rgba(151, 15, 15, .07); }
  .mbv-head.is-open .mbv-menu--mob { top: calc(100% + 8px); left: 0; right: 0; border-radius: 18px; border: 1px solid rgba(17, 24, 39, .07);
    box-shadow: 0 18px 44px rgba(16, 24, 40, .16); max-height: calc(100vh - var(--mbv-head) - var(--mb-nav-h) - 60px); }
  .mbv-head.is-open .mbv-menu > li > a, .mbv-head.is-open .mbv-menu > li > button { height: auto; border-radius: 0; background: none; }
}

/* ---------- bara de jos: ca în aplicația MisiBi, o pastilă care plutește ---------- */
.mb-global-bottom-nav {
  left: 50%; right: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(520px, calc(100% - 16px)); padding: 0 6px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(17, 24, 39, .07); border-radius: 999px; box-shadow: 0 10px 30px rgba(16, 24, 40, .16);
}
@media (max-width: 1024px) { body { padding-bottom: calc(var(--mb-nav-h) + 22px + env(safe-area-inset-bottom, 0px)); } }
.mb-global-bottom-nav__item { gap: 3px; }
.mb-global-bottom-nav__icon { width: 46px; height: 26px; border-radius: 999px; }
.mb-global-bottom-nav__icon svg { width: 20px; height: 20px; }
.mb-global-bottom-nav__label { font-size: 10px; }
.mb-global-bottom-nav__item.is-active .mb-global-bottom-nav__icon { background: rgba(151, 15, 15, .10); }
/* „Donează” în linie cu celelalte, roșu plin (nu mai iese din bară) */
.mb-global-bottom-nav__item--doneaza .mb-global-bottom-nav__icon { width: 46px; height: 26px; margin-top: 0; border-radius: 999px; background: var(--brand-red); box-shadow: 0 4px 10px rgba(151, 15, 15, .28); }
.mb-global-bottom-nav__item--doneaza .mb-global-bottom-nav__icon svg { width: 17px; height: 17px; }

/* ---------- anunțurile cu proiectele de sezon: mai mici, rulează la fel ---------- */
/* anunțurile cu proiecte: mici, discrete; X-ul are o zonă de atingere mare (32 px), separată de legătură */
.mb-anunt { --mb-card: 208px; --mb-coada: 22px; }
.mb-anunt__pista { padding-top: 8px; padding-bottom: 10px; }
.mb-anunt__card { border-radius: 12px; box-shadow: 0 8px 22px rgba(16, 24, 40, .16); }
.mb-anunt__poza { width: 46px; flex-basis: 46px; }
.mb-anunt__corp { padding: 6px 34px 7px 9px; }
.mb-anunt__eticheta { font-size: 7.5px; padding: 1px 5px; }
.mb-anunt__titlu { margin-top: 3px; font-size: 12px; line-height: 1.25; }
.mb-anunt__buton { margin-top: 3px; font-size: 11px; }
.mb-anunt__inchide { width: 32px; height: 32px; top: 0; right: 0; background: transparent !important; display: grid; place-items: center; touch-action: manipulation; }
.mb-anunt__inchide::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: rgba(16, 24, 40, .08); }
.mb-anunt__inchide svg { position: relative; width: 10px; height: 10px; }
@media (max-width: 600px) {
  .mb-anunt { --mb-card: min(212px, calc(100vw - 80px)); }
  .mb-anunt__poza { width: 44px; flex-basis: 44px; }
}
@media (max-width: 1024px) { .mb-anunt { bottom: calc(var(--mb-nav-h) + 18px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- butoanele magazinelor (după insignele oficiale), câte două pe rând ---------- */
.mb-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 8px; }
.mb-badge { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; background: #000; color: #fff !important; text-decoration: none !important;
  border: 1px solid #a6a6a6; border-radius: 7px; transition: transform .15s ease, border-color .15s ease; }
.mb-badge:hover { border-color: #fff; transform: translateY(-1px); }
.mb-badge__logo { width: 22px; height: 22px; flex: 0 0 22px; }
.mb-badge__txt { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.mb-badge__txt small { font-size: 8.5px; letter-spacing: .02em; white-space: nowrap; }
.mb-badge__txt strong { font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .mb-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mb-badge__txt strong { font-size: 12.5px; } }

/* ---------- antetul: ordinea (… Donează · lună/soare · meniu la margine), ascuns la derulare în jos ---------- */
.mbv-head { transition: transform .28s ease, box-shadow .2s ease, background .2s ease; }
.mbv-head.is-hidden { transform: translate(-50%, calc(-100% - 2 * var(--mbv-gap))); }
.mbv-mode { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 6px; padding: 0; border: 0; border-radius: 50%; background: rgba(151, 15, 15, .07); color: var(--brand-red); cursor: pointer; transition: background .15s; }
.mbv-mode:hover { background: rgba(151, 15, 15, .14); }
.mbv-mode svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mbv-mode__sun { display: none; }
html.mbv-dark .mbv-mode__sun { display: block; }
html.mbv-dark .mbv-mode__moon { display: none; }
.mbv-donate { height: 38px; padding: 0 18px; font-size: 13.5px; }
@media (max-width: 921px) {
  .mbv-donate { margin-left: auto; height: 32px; padding: 0 12px; font-size: 11.5px; }
  .mbv-mode { width: 36px; height: 36px; margin-left: 4px; }
  .mbv-mode svg { width: 17px; height: 17px; }
  .mbv-toggle { margin-left: 4px; margin-right: 0; }
  .mbv-head__in { padding-right: 6px; }
}

/* butoanele magazinelor centrate (subsol, pagina MisiBi) */
.mb-badges--center { justify-content: center; margin-left: auto; margin-right: auto; }
.mb-casete { text-align: center; }
.mb-casete__titlu { text-align: center; }
.mbapp__stores--web { grid-template-columns: 1fr !important; max-width: 160px; margin: 10px auto 0 !important; }
.mbd .mb-badges, .pgk-badges .mb-badges { margin: 14px 0 6px; }
.pgk-badges { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--brand-muted); }
.pgk-badges .mb-badges { margin: 0; }
.mbapp .mb-badges, .mbv-astra .mb-badges--center { margin-top: 18px; }
