/*
 * NAVIGAREA UNITĂ (lotul 26): bara de jos pe telefon (toate paginile), foaia „Meniu”,
 * cardul de cont din bara laterală. Marcajul: `inc/sections/zz-navigare.php`, plus barele
 * paginilor de activ (`x-navbar.php`) și de Acțiuni / piețe (`x-hub-actiuni.php`).
 *
 * ⚠ Se încarcă după `92-navbar.css`, deci aspectul barei de aici îl înlocuiește pe cel vechi;
 *   panourile barei (Cuprins, Investește) rămân ale lor, doar așezate deasupra barei plutitoare.
 * ⚠ Straturile: bara 55, panourile ei 56-57, foaia 75, căutarea 90.
 */

.mun-bar, .mun-sh{ display:none; }

/* ── bara laterală (calculator): contul ca un card, separat de navigare ── */
.mds-gsn .mds-sn__foot, .mds-asset__side .mds-sn__foot{ gap:8px; margin-top:12px; padding:14px 12px 12px; border-top:0; border-radius:14px; background:var(--mds-card, #0f1011); box-shadow:inset 0 0 0 1px var(--mds-line, rgba(255,255,255,.06)); }
.mds-sn__pitch{ margin:0 0 4px; color:var(--mds-tx-2, rgba(232,233,235,.62)); font:400 12.5px/18px var(--mds-sans, system-ui); }
.mds-gsn .mds-sn__foot .mds-btn--primary{ background:var(--mds-tx, #e8e9eb); color:#08090a; border-color:transparent; }

@media (max-width:920px){

  /* ⚠ hamburgerul de sus pleacă: meniul e în bara de jos */
  .mds-header--mobile [data-mds-drawer-open]{ display:none !important; }

  /* ══ BARA: plutitoare, din sticlă, cu 5 butoane ══════════════════════ */
  body .xnb__bar, .mun-bar{
    position:fixed; left:10px; right:10px; bottom:calc(8px + env(safe-area-inset-bottom, 0px)); z-index:55;
    display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:2px;
    padding:6px; border:1px solid rgba(255,255,255,.08); border-radius:28px;
    background:rgba(22,22,25,.74);
    -webkit-backdrop-filter:saturate(180%) blur(22px); backdrop-filter:saturate(180%) blur(22px);
    box-shadow:0 12px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
  }
  body .xnb__bar .xnb__t, .mun-bar .xnb__t{
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    min-width:0; min-height:50px; padding:5px 2px; border:0; border-radius:22px; background:none; cursor:pointer;
    color:rgba(245,243,240,.6); text-decoration:none;
    font:500 11.5px/14px var(--xf, var(--mds-sans, system-ui)); letter-spacing:0;
    -webkit-tap-highlight-color:transparent; transition:background .2s ease, color .2s ease, transform .2s cubic-bezier(.32,.72,0,1);
  }
  body .xnb__bar .xnb__t > span, .mun-bar .xnb__t > span{ max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  body .xnb__bar .xnb__i, .mun-bar .xnb__i{ width:22px; height:22px; }
  body .xnb__bar .xnb__t:active, .mun-bar .xnb__t:active{ transform:scale(.92); background:rgba(255,255,255,.06); }
  /* butonul aprins: pagina curentă, foaia deschisă sau panoul deschis */
  body .xnb__bar .xnb__t.is-cur, .mun-bar .xnb__t.is-cur,
  body .xnb__bar .xnb__t[aria-expanded="true"], .mun-bar .xnb__t[aria-expanded="true"],
  #xnb-p-an:checked ~ .xnb__bar .xnb__t--an,
  #xnb-p-inv:checked ~ .xnb__bar .xnb__t--inv{ color:#f5f3f0; background:rgba(255,255,255,.09); }
  /* ⚠ derularea nu mai aprinde Cuprinsul (nu e o pagină, e un panou) */
  body .xnb__bar .xnb__t--an.is-on{ color:rgba(245,243,240,.6); }
  /* Investește: acțiunea cu bani, în verdele site-ului */
  body .xnb__bar .xnb__t--inv{ color:#00ba7c; }
  /* Urmărește (pluginul de cont): aceeași mărime ca restul */
  body .xnb__bar .ec-xfol{ font:500 11.5px/14px var(--xf, var(--mds-sans, system-ui)); }

  /* panourile barei: deasupra barei plutitoare */
  body .xnb__pan--an{ left:10px; right:10px; bottom:calc(80px + env(safe-area-inset-bottom, 0px)); border:1px solid rgba(255,255,255,.08); border-radius:22px; background:rgba(22,22,25,.94); }

  /* locul de sub conținut, pe paginile cu bara de aici */
  .mun-bar{ display:grid; }
  body.mun-page{ padding-bottom:calc(84px + env(safe-area-inset-bottom, 0px)); }

  /* ══ FOAIA „MENIU” ══════════════════════════════════════════════════ */
  .mun-sh{ position:fixed; inset:0; z-index:75; display:block; }
  .mun-sh[hidden]{ display:none; }
  .mun-sh__bg{ position:absolute; inset:0; background:rgba(0,0,0,.5); opacity:0; transition:opacity .32s ease; }
  .mun-sh.is-open .mun-sh__bg{ opacity:1; }
  .mun-sh__p{
    position:absolute; left:0; right:0; bottom:0; display:flex; flex-direction:column;
    max-height:88vh; max-height:88dvh; padding:8px 0 calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius:28px 28px 0 0; background:#141416; outline:0;
    box-shadow:0 -1px 0 rgba(255,255,255,.06), 0 -18px 48px rgba(0,0,0,.55);
    transform:translateY(100%); transition:transform .42s cubic-bezier(.32,.72,0,1); will-change:transform;
  }
  .mun-sh.is-open .mun-sh__p{ transform:translateY(0); }
  .mun-sh.is-drag .mun-sh__p{ transition:none; }
  .mun-sh__grab{ flex:none; width:36px; height:5px; margin:0 auto 10px; border-radius:3px; background:rgba(255,255,255,.2); }
  .mun-sh__hd{ display:flex; align-items:center; justify-content:space-between; padding:0 20px 12px; }
  .mun-sh__t{ margin:0; color:#f5f3f0; font:600 20px/26px var(--xf, var(--mds-sans, system-ui)); letter-spacing:-.01em; }
  .mun-sh__x{ display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:#242428; color:#9c9a96; cursor:pointer; }
  .mun-sh__x .xnb__i{ width:16px; height:16px; }
  .mun-sh__b{ flex:1; min-height:0; padding:0 16px; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }

  .mun-g{ margin:0 0 22px; }
  .mun-g__t{ display:flex; align-items:center; gap:6px; margin:0 4px 10px; color:#f5f3f0; font:600 15.5px/22px var(--xf, var(--mds-sans, system-ui)); letter-spacing:-.01em; }

  /* siglele și steagurile, suprapuse ca în Wallet */
  .mun-lg{ display:inline-grid; place-items:center; width:22px; height:22px; flex:none; padding:2px; border-radius:50%; background:#fff; object-fit:contain; box-shadow:0 0 0 2px #1c1c1f; }
  .mun-lg--t{ padding:0; background:#2c2c31; color:#f5f3f0; font:600 11.5px/1 var(--xf, var(--mds-sans, system-ui)); }
  .mun-fl{ display:inline-block; width:22px; height:22px; flex:none; border-radius:50%; background-size:cover !important; background-position:center !important; box-shadow:0 0 0 2px #1c1c1f; }
  .mun-stk{ display:inline-flex; align-items:center; flex:none; margin-right:8px; }
  .mun-stk > * + *{ margin-left:-7px; }
  .mun-stk .mun-fl, .mun-stk .mun-lg{ width:22px !important; height:22px !important; line-height:22px; font-size:11.5px; vertical-align:middle; }
  .mun-u{ color:#7d7a74; font:400 13.5px/20px var(--xf, var(--mds-sans, system-ui)); }
  .mun-au{ display:inline-grid; place-items:center; width:22px; height:22px; flex:none; margin-right:8px; border-radius:7px; background:linear-gradient(135deg,#f6d77a,#c99a2e); color:#3a2a05; font:700 11.5px/1 var(--xf, var(--mds-sans, system-ui)); }

  /* piețele: un rând pe piață, cu cifra de acum, ca în aplicația Bursa */
  .mun-mks{ overflow:hidden; border-radius:20px; background:#1c1c1f; }
  .mun-mk{ --c:#1d9bf0; position:relative; display:flex; align-items:center; gap:12px; min-height:68px; padding:10px 14px; color:#f5f3f0; text-decoration:none; -webkit-tap-highlight-color:transparent; }
  .mun-mk + .mun-mk::before{ content:""; position:absolute; top:0; left:62px; right:0; height:1px; background:rgba(255,255,255,.07); }
  .mun-mk:active{ background:#242428; }
  .mun-mk[aria-current] .mun-mk__n b{ color:var(--c); }
  .mun-mk__i{ display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:11px; background:color-mix(in srgb, var(--c) 18%, transparent); color:var(--c); }
  .mun-mk__i .xnb__i{ width:19px; height:19px; }
  .mun-mk__n{ flex:1; min-width:0; }
  .mun-mk__n b{ display:block; font:600 15.5px/22px var(--xf, var(--mds-sans, system-ui)); }
  .mun-mk__n small{ display:flex; align-items:center; margin-top:3px; overflow:hidden; color:#7d7a74; font:400 13.5px/20px var(--xf, var(--mds-sans, system-ui)); white-space:nowrap; text-overflow:ellipsis; }
  .mun-mk__v{ display:flex; flex-direction:column; align-items:flex-end; gap:3px; flex:none; text-align:right; }
  .mun-mk__v b{ color:#f5f3f0; font:600 15.5px/22px var(--xf, var(--mds-sans, system-ui)); font-variant-numeric:tabular-nums; white-space:nowrap; }
  .mun-ch{ padding:0 7px; border-radius:7px; font:600 13.5px/20px var(--xf, var(--mds-sans, system-ui)); font-style:normal; font-variant-numeric:tabular-nums; }
  .mun-ch--up{ background:rgba(0,186,124,.16); color:#00ba7c; }
  .mun-ch--dn{ background:rgba(244,33,46,.16); color:#ff5a66; }
  .mun-ch--eq{ background:#242428; color:#9c9a96; }
  .mun-mk--crypto{ --c:#f7931a; } .mun-mk--etf{ --c:#7d7aff; } .mun-mk--indici{ --c:#30d5c8; } .mun-mk--valute{ --c:#00ba7c; } .mun-mk--marfuri{ --c:#ffd400; }

  /* acțiunile pe țări: steaguri, pe un rând care se derulează */
  .mun-cys{ display:flex; gap:8px; margin:0 -16px; padding:0 16px 2px; overflow-x:auto; scroll-snap-type:x proximity; scroll-padding:0 16px; scrollbar-width:none; overscroll-behavior-x:contain; }
  .mun-cys::-webkit-scrollbar{ display:none; }
  .mun-cy{ display:flex; align-items:center; gap:10px; flex:none; padding:7px 16px 7px 7px; border-radius:999px; background:#1c1c1f; color:#f5f3f0; text-decoration:none; scroll-snap-align:start; }
  .mun-cy:active{ background:#242428; }
  .mun-cy .mun-fl{ width:34px; height:34px; box-shadow:none; }
  .mun-cy b{ display:block; font:600 13.5px/18px var(--xf, var(--mds-sans, system-ui)); white-space:nowrap; }
  .mun-cy small{ display:block; color:#7d7a74; font:400 11.5px/16px var(--xf, var(--mds-sans, system-ui)); white-space:nowrap; }

  /* uneltele: trei carduri */
  .mun-tools{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .mun-tool{ display:flex; flex-direction:column; gap:4px; min-width:0; padding:14px 12px 12px; border-radius:18px; background:#1c1c1f; color:#f5f3f0; text-decoration:none; }
  .mun-tool:active{ background:#242428; }
  .mun-tool[aria-current]{ box-shadow:inset 0 0 0 1.5px rgba(29,155,240,.7); }
  .mun-tool__i{ display:grid; place-items:center; width:34px; height:34px; margin-bottom:6px; border-radius:11px; background:rgba(29,155,240,.16); color:#1d9bf0; }
  .mun-tool:nth-child(2) .mun-tool__i{ background:rgba(125,122,255,.16); color:#9d9aff; }
  .mun-tool:nth-child(3) .mun-tool__i{ background:rgba(0,186,124,.16); color:#00ba7c; }
  .mun-tool__i .xnb__i{ width:19px; height:19px; }
  .mun-tool b{ overflow:hidden; font:600 13.5px/18px var(--xf, var(--mds-sans, system-ui)); white-space:nowrap; text-overflow:ellipsis; }
  .mun-tool small{ display:flex; align-items:center; min-height:22px; overflow:hidden; color:#7d7a74; font:400 11.5px/16px var(--xf, var(--mds-sans, system-ui)); white-space:nowrap; text-overflow:ellipsis; }

  /* știrile și educația: rânduri, ca în setările telefonului */
  .mun-rows{ overflow:hidden; border-radius:20px; background:#1c1c1f; }
  .mun-row{ position:relative; display:flex; align-items:center; gap:12px; min-height:54px; padding:0 14px; color:#f5f3f0; text-decoration:none; font:500 15.5px/22px var(--xf, var(--mds-sans, system-ui)); -webkit-tap-highlight-color:transparent; }
  .mun-row + .mun-row::before{ content:""; position:absolute; top:0; left:58px; right:0; height:1px; background:rgba(255,255,255,.07); }
  .mun-row:active{ background:#242428; }
  .mun-row__i{ display:grid; place-items:center; width:32px; height:32px; flex:none; border-radius:10px; background:rgba(244,33,46,.16); color:#ff5a66; }
  .mun-row__i--guides{ background:rgba(255,212,0,.14); color:#ffd400; }
  .mun-row__i--method{ background:rgba(48,213,200,.14); color:#30d5c8; }
  .mun-row__i .xnb__i{ width:18px; height:18px; }
  .mun-row__l{ flex:1; min-width:0; }
  .mun-row > .xnb__i{ width:16px; height:16px; color:#7d7a74; }

  /* contul: vizitator */
  .mun-sh__acc{ margin:0 0 22px; }
  .mun-acc{ position:relative; padding:16px; border-radius:20px; background:radial-gradient(120% 140% at 100% 0%, rgba(29,155,240,.18), transparent 55%), radial-gradient(120% 140% at 0% 100%, rgba(0,186,124,.16), transparent 55%), #1c1c1f; }
  .mun-acc__i{ display:grid; place-items:center; width:36px; height:36px; margin-bottom:10px; border-radius:11px; background:rgba(255,212,0,.16); color:#ffd400; }
  .mun-acc__i .xnb__i{ width:19px; height:19px; }
  .mun-acc p{ margin:0 0 14px; color:#f5f3f0; font:500 15.5px/22px var(--xf, var(--mds-sans, system-ui)); }
  .mun-acc__b{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .mun-btn{ display:flex; align-items:center; justify-content:center; height:44px; padding:0 14px; border-radius:999px; background:#f5f3f0; color:#0b0b0d; text-decoration:none; font:600 13.5px/1 var(--xf, var(--mds-sans, system-ui)); white-space:nowrap; }
  .mun-btn--q{ background:rgba(255,255,255,.08); color:#f5f3f0; }

  /* contul: logat */
  .mun-me{ overflow:hidden; border-radius:20px; background:#1c1c1f; }
  .mun-me__hd{ display:flex; align-items:center; gap:12px; padding:14px; color:#f5f3f0; text-decoration:none; }
  .mun-me__hd img, .mun-me__hd .ec-av{ width:44px; height:44px; flex:none; border-radius:50%; }
  .mun-me__hd > span{ flex:1; min-width:0; }
  .mun-me__hd b{ display:block; font:600 15.5px/22px var(--xf, var(--mds-sans, system-ui)); }
  .mun-me__hd small{ display:block; overflow:hidden; color:#7d7a74; font:400 13.5px/18px var(--xf, var(--mds-sans, system-ui)); white-space:nowrap; text-overflow:ellipsis; }
  .mun-me__hd > .xnb__i{ width:16px; height:16px; color:#7d7a74; }
  .mun-me__q{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; padding:0 10px 10px; }
  .mun-me__q a{ position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 4px 10px; border-radius:14px; background:#242428; color:#f5f3f0; text-decoration:none; font:500 11.5px/14px var(--xf, var(--mds-sans, system-ui)); }
  .mun-me__q a > span{ max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .mun-me__q .xnb__i{ width:20px; height:20px; color:#9c9a96; }
  .mun-me__q em{ position:absolute; top:6px; right:calc(50% - 22px); min-width:18px; padding:0 5px; border-radius:99px; background:#f4212e; color:#fff; font:600 11.5px/18px var(--xf, var(--mds-sans, system-ui)); font-style:normal; text-align:center; }
  .mun-me__l{ display:flex; border-top:1px solid rgba(255,255,255,.07); }
  .mun-me__l a{ display:flex; align-items:center; justify-content:center; flex:1; padding:12px 6px; color:#9c9a96; text-align:center; text-decoration:none; font:500 13.5px/18px var(--xf, var(--mds-sans, system-ui)); }
  .mun-me__l a + a{ border-left:1px solid rgba(255,255,255,.07); }
  .mun-me__l a:last-child{ color:#ff5a66; }

  /* limba, cu steaguri */
  .mun-lang{ display:flex; flex-wrap:wrap; gap:8px; }
  .mun-lang__o{ display:inline-flex; align-items:center; gap:8px; padding:7px 14px 7px 7px; border-radius:999px; background:#1c1c1f; color:#9c9a96; text-decoration:none; font:500 13.5px/18px var(--xf, var(--mds-sans, system-ui)); }
  .mun-lang__o .mun-fl{ box-shadow:none; }
  .mun-lang__o.is-on{ background:#f5f3f0; color:#0b0b0d; }
  .mun-lang__o.is-soon{ opacity:.4; }

  /* punctul de noutăți pe Feed */
  .mun-dot{ position:relative; }
  .mun-dot::after{ content:""; position:absolute; top:7px; left:calc(50% + 6px); width:8px; height:8px; border-radius:50%; background:#f4212e; box-shadow:0 0 0 2px #161619; }

  /* foaia „Piețe”: doar piețele și uneltele */
  .mun-sh[data-mode="markets"] [data-mun-part]:not([data-mun-part~="markets"]){ display:none; }

  .mun-sh[data-mode="markets"] .mun-g:first-of-type .mun-g__t{ display:none; }
  html.mun-lock, html.mun-lock body{ overflow:hidden; }
}

@media (prefers-reduced-motion:reduce){
  .mun-sh__p, .mun-sh__bg, body .xnb__bar .xnb__t, .mun-bar .xnb__t{ transition:none; }
}
@media (max-width:920px){
  .mun-sh[data-mode="markets"] section.mun-g:first-of-type > .mun-g__t{ display:none; }
}
