/* Admin MB, 28.11.2026: meniul pe categorii, antetul cu poza și „Admin Site”, Setări, Contul meu,
   cardurile de pe Acasă care se mută (ține apăsat). Se încarcă după mbx-app.css și mbx-filament.css. */

/* antetul */
.mbx-topbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--red-line); color: var(--red); background: var(--red-soft); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.mbx-topbtn:hover { background: var(--red); color: #fff; }
.mbx-topbtn .mbx-ic { width: 17px; height: 17px; }
.mbx-top__me { text-decoration: none; color: inherit; padding: 3px 8px 3px 3px; border-radius: 999px; }
.mbx-top__me:hover { background: var(--line-2); }
.mbx-top__meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mbx-me { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.mbx-me img { width: 100%; height: 100%; object-fit: cover; }
.mbx-me--xl { width: 96px; height: 96px; font-size: 32px; }
.mbx-iconbtn.is-on { color: var(--red); border-color: var(--red-line); background: var(--red-soft); }
@media (max-width: 900px) {
  .mbx-topbtn span { display: none; }
  .mbx-topbtn { padding: 0 9px; }
  .mbx-top__meta { display: none; }
  .mbx-top__me { padding: 0; }
  .mbx-top__user { gap: 8px; }
}

/* meniul din stânga, pe categorii (calculator) */
.mbx-menu { display: flex; flex-direction: column; gap: 1px; }
.mbx-menu .mbx-nav__item { padding: 8px 12px; font-size: 14px; }
.mbx-menu__group { margin-top: 8px; }
.mbx-menu__group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-radius: 6px; user-select: none; }
.mbx-menu__group > summary::-webkit-details-marker { display: none; }
.mbx-menu__group > summary::after { content: "▾"; font-size: 11px; transition: transform .15s; }
.mbx-menu__group:not([open]) > summary::after { transform: rotate(-90deg); }
.mbx-menu__group > summary:hover { color: var(--ink); background: var(--line-2); }
.mbx-menu__subs { display: flex; flex-direction: column; margin: 0 0 4px 36px; border-left: 1px solid var(--line); }
.mbx-menu__subs a { padding: 5px 10px; font-size: 13px; color: var(--ink-2); text-decoration: none; border-radius: 0 6px 6px 0; }
.mbx-menu__subs a:hover { color: var(--ink); background: var(--line-2); }
.mbx-menu__subs a.is-active { color: var(--red); font-weight: 600; box-shadow: inset 2px 0 0 var(--red); }
.mbx-menu__links { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 1px; }
.mbx-menu__label { padding: 0 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.mbx-side > .mbx-nav { display: none; }
@media (max-width: 900px) {
  .mbx-menu { display: none; }
  .mbx-side > .mbx-nav { display: flex; }
}

/* foaia „Mai mult” (telefon), pe categorii */
.mbx-sheet__me { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 0 6px; border-radius: 10px; background: var(--line-2); text-decoration: none; color: var(--ink); }
.mbx-sheet__me strong { display: block; font-size: 15px; }
.mbx-sheet__me small { display: block; font-size: 12.5px; }
.mbx-sheet__cat { margin: 14px 4px 6px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.mbx-sheet__item.is-active { border-color: var(--red-line); background: var(--red-soft); }
.mbx-sheet__item--sub .mbx-sheet__ic { background: transparent; font-size: 18px; }

/* Acasă: aranjarea cardurilor (doar pentru omul logat) */
.mbx-homebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.mbx-homebar .mbx-section-title { margin: 0; flex: 1 1 auto; }
.mbx-homebar__hint { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.mbx-homebar__hint:hover { color: var(--red); background: var(--red-soft); }
.mbx-homebar__edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--red-soft); border: 1px solid var(--red-line); font-size: 13.5px; }
.mbx-homebar__edit > span { flex: 1 1 200px; color: var(--ink-2); }
.mbx-sortable .mbx-tile { -webkit-touch-callout: none; user-select: none; }
.mbx-sortable.is-editing .mbx-tile { outline: 2px dashed var(--red-line); outline-offset: -2px; animation: mbx-wiggle .35s ease-in-out infinite alternate; cursor: default; }
.mbx-sortable.is-editing .mbx-tile:nth-child(2n) { animation-delay: .12s; }
@keyframes mbx-wiggle { from { transform: rotate(-.4deg); } to { transform: rotate(.4deg); } }
@media (prefers-reduced-motion: reduce) { .mbx-sortable.is-editing .mbx-tile { animation: none; } }
.mbx-tile { position: relative; }
.mbx-tile__move { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; z-index: 2; }
.mbx-tile__move button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--red-line); background: var(--card); color: var(--red); font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); }
.mbx-tile__move button:disabled { opacity: .35; cursor: default; }

/* Setări și Contul meu */
.mbx-settings .mbx-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mbx-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.mbx-theme { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; text-align: center; font-size: 13.5px; }
.mbx-theme input { position: absolute; opacity: 0; pointer-events: none; }
.mbx-theme.is-on { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.mbx-theme__prev { display: grid; grid-template-columns: 30% 1fr; grid-template-rows: 12px 1fr; gap: 4px; height: 70px; padding: 6px; border-radius: 7px; }
.mbx-theme__prev i { border-radius: 3px; }
.mbx-theme__prev i:first-child { grid-column: 1 / -1; }
.mbx-theme__prev--light { background: #f5f3ef; }
.mbx-theme__prev--light i { background: #fff; box-shadow: 0 0 0 1px #e5e1da; }
.mbx-theme__prev--light i:first-child { background: #7d1a1d; }
.mbx-theme__prev--dark { background: #18191d; }
.mbx-theme__prev--dark i { background: #26272c; }
.mbx-theme__prev--dark i:first-child { background: #d0545a; }
.mbx-theme__prev--system { background: linear-gradient(135deg, #f5f3ef 50%, #18191d 50%); }
.mbx-theme__prev--system i { background: rgba(127, 127, 127, .35); }
.mbx-theme__prev--system i:first-child { background: #a8444a; }
.mbx-setlist { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.mbx-setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.mbx-setrow:last-child { border-bottom: 0; }
a.mbx-setrow:hover { background: var(--line-2); }
.mbx-setrow strong { display: block; font-size: 14.5px; }
.mbx-setrow small { display: block; font-size: 12.5px; }
.mbx-setrow > span[aria-hidden] { color: var(--muted); font-size: 18px; }
.mbx-settings__super { border-top: 3px solid var(--red); }
.mbx-account__photo { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.mbx-account__photo-act { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mbx-account__role { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 40px; }
.mbx-upload { position: relative; overflow: hidden; cursor: pointer; }
.mbx-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 640px) { .mbx-themes { gap: 8px; } .mbx-theme { font-size: 12px; padding: 7px; } }

/* pagina de intrare: Misiunea în stânga, formularul în dreapta */
.fi-simple-layout:has(.mbl) { background: radial-gradient(1100px 520px at 15% -10%, rgba(125, 26, 29, .10), transparent 70%), var(--bg, #f5f3ef); }
.fi-simple-main:has(.mbl) { padding: 0 !important; overflow: hidden; border-radius: 12px !important; background: var(--card, #fff) !important; box-shadow: 0 24px 60px rgba(29, 31, 35, .14) !important; margin-block: 24px; }
.mbl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 600px; }
.mbl__brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 34px 34px 26px; color: #fff; background-size: cover; background-position: center; }
.mbl__brand-top { display: flex; align-items: center; gap: 12px; }
.mbl__brand-top img { width: 44px; height: 54px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3)); }
.mbl__brand-top strong { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.15; }
.mbl__brand-top small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.mbl__brand-mid h2 { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin: 0 0 12px; color: #fff; }
.mbl__brand-mid p { margin: 0 0 16px; color: rgba(255, 255, 255, .86); font-size: 15px; }
.mbl__brand-mid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mbl__brand-mid li { position: relative; padding-left: 26px; font-size: 14px; color: rgba(255, 255, 255, .92); }
.mbl__brand-mid li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.mbl__brand-foot { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.mbl__main { display: flex; flex-direction: column; padding: 34px 34px 24px; }
.mbl__main .fi-simple-page { padding: 0; }
.mbl__main .fi-simple-header { align-items: flex-start; text-align: left; }
.mbl__main .fi-simple-header-heading { font-size: 27px; }
.mbl__err { margin-bottom: 14px; padding: 10px 14px; border-radius: 8px; background: #fdecec; color: #9b1c1c; font-weight: 600; font-size: 14px; }
.mbl__ways { margin-top: 18px; display: grid; gap: 8px; }
.mbl__or { display: flex; align-items: center; gap: 10px; color: var(--muted, #6c717a); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.mbl__or::before, .mbl__or::after { content: ""; flex: 1; height: 1px; background: var(--line, #e5e1da); }
.mbl__way { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line, #e5e1da); color: var(--ink, #1d1f23); text-decoration: none; font-size: 14px; }
.mbl__way strong { display: block; font-size: 14px; }
.mbl__way small { display: block; font-size: 12.5px; color: var(--muted, #6c717a); line-height: 1.4; }
.mbl__way--google { justify-content: center; flex-wrap: wrap; gap: 4px 10px; font-weight: 700; background: var(--card, #fff); }
.mbl__way--google:hover { border-color: #4285f4; box-shadow: 0 0 0 3px rgba(66, 133, 244, .12); }
.mbl__way--google small { flex-basis: 100%; text-align: center; font-weight: 400; }
.mbl__way--info { background: var(--line-2, #efece7); border-color: transparent; }
.mbl__way-ic { font-size: 20px; flex: 0 0 auto; }
.mbl__help { margin-top: 14px; font-size: 13.5px; }
.mbl__help summary { cursor: pointer; color: var(--red, #7d1a1d); font-weight: 600; }
.mbl__help ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2, #474c55); display: grid; gap: 4px; }
.mbl__foot { margin: auto 0 0; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted, #6c717a); }
.mbl__foot a { color: inherit; }
@media (max-width: 860px) {
  .mbl { grid-template-columns: 1fr; min-height: 0; }
  .mbl__brand { padding: 22px 20px; gap: 14px; }
  .mbl__brand-mid h2 { font-size: 21px; margin-bottom: 6px; }
  .mbl__brand-mid p { font-size: 13.5px; margin: 0; }
  .mbl__brand-mid ul, .mbl__brand-foot { display: none; }
  .mbl__main { padding: 22px 20px 18px; }
  .fi-simple-main:has(.mbl) { margin-block: 0; border-radius: 0 !important; }
}

/* tema întunecată: ce e specific acestor bucăți */
html.dark .fi-simple-layout:has(.mbl) { background: var(--bg); }
html.dark .mbl__err { background: #3a1d20; color: #f0b4b4; }
html.dark .mbx-theme__prev--light i { box-shadow: none; }
html.dark .mbx-tile.is-featured { background: linear-gradient(135deg, #22232a 0%, #2c1f22 100%); border-color: #b8434a; }
html.dark .mbx-tile.is-featured.is-green { background: linear-gradient(135deg, #22232a 0%, #1c2a22 100%); border-color: #2f8a52; }
html.dark .mbx-tile__art { background: radial-gradient(circle at 35% 30%, #34262a 0%, #2a2124 55%, #241d20 100%); box-shadow: inset 0 0 0 1px #3f2d31, 0 6px 14px rgba(0, 0, 0, .3); }
html.dark .mbx-tile__badge { color: #fff; }
html.dark .fi-body, html.dark .fi-main { background: var(--bg); }

/* reîmprospătarea trăgând în jos (telefon) */
.mbx-ptr { position: fixed; top: calc(var(--top, 58px) - 44px); left: 50%; z-index: 90; width: 40px; height: 40px; border-radius: 50%; background: var(--card, #fff); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); display: grid; place-items: center; transform: translate(-50%, 0); opacity: 0; pointer-events: none; }
.mbx-ptr svg { width: 22px; height: 22px; fill: none; stroke: var(--red, #7d1a1d); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.mbx-ptr.is-ready svg { opacity: 1; }
.mbx-ptr.is-busy svg { animation: mbx-ptr-spin .7s linear infinite; opacity: 1; }
@keyframes mbx-ptr-spin { to { transform: rotate(360deg); } }

/* reglarea pozei de profil */
.mbx-crop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(10, 10, 12, .6); }
.mbx-crop__panel { width: min(420px, 100%); background: var(--card, #fff); border-radius: 12px; padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.mbx-crop__panel h3 { margin: 0 0 4px; font-size: 18px; }
.mbx-crop__panel p { margin: 0 0 12px; font-size: 13.5px; }
.mbx-crop__stage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #111; touch-action: none; cursor: grab; user-select: none; }
.mbx-crop__stage:active { cursor: grabbing; }
.mbx-crop__stage img { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; }
.mbx-crop__mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .5); outline: 2px solid rgba(255, 255, 255, .8); outline-offset: -2px; pointer-events: none; }
.mbx-crop__zoom { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 800; color: var(--muted, #6c717a); }
.mbx-crop__zoom input { flex: 1; accent-color: var(--red, #7d1a1d); }

/* poza de sus de pe Acasă, aleasă de om (Setări) */
.mbx-hero.has-photo.has-own { background-image: linear-gradient(90deg, rgba(78, 12, 16, .92) 0%, rgba(110, 24, 28, .72) 45%, rgba(110, 24, 28, .12) 100%), var(--mbx-hero) !important; background-size: cover !important; background-position: center !important; }
@media (max-width: 760px) { .mbx-hero.has-photo.has-own { background-image: linear-gradient(180deg, rgba(78, 12, 16, .08) 0%, rgba(78, 12, 16, .55) 45%, rgba(78, 12, 16, .94) 78%), var(--mbx-hero) !important; } }
.mbx-heroset { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.mbx-heroset__prev { width: 220px; aspect-ratio: 16 / 7; border-radius: 10px; background: #2a1214 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.mbx-heroset__act { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* butoanele de încărcare (poza de profil, bannerul): textul pe mijloc, și pe telefon */
.mbx-upload { display: inline-flex !important; align-items: center !important; justify-content: center !important; text-align: center; line-height: 1.2 !important; min-height: 38px; padding-top: 0 !important; padding-bottom: 0 !important; }
/* butonul lună / soare din antet */
.mbx-mode .mbx-mode__sun { display: none; }
html.dark .mbx-mode .mbx-mode__moon { display: none; }
html.dark .mbx-mode .mbx-mode__sun { display: block; }
/* Profil: ieșirea din cont, sus */
.mbx-prof-out { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.mbx-prof-out button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--red-line); background: var(--red-soft); color: var(--red); font-weight: 700; font-size: 14px; cursor: pointer; }
.mbx-prof-out button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mbx-prof-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .mbx-prof-head .mbx-prof-out { margin: 0; }
