/* matrimoniale3x.ro — profilul public (/profile/N.html) in stil de aplicatie de dating.
   Totul e sub body.m3x-app: paginile care nu pun clasa (revista, prieteni) nu se schimba.
   Valorile vin din macheta aprobata (mock4). Fontul Figtree se incarca doar pe aceste pagini
   (link in page_top_fixed.ihtml), cu revenire la fontul sistemului. */

body.m3x-app {
  --acc: #fe3c72;
  --acc2: #ff7854;
  --ink: #16151c;
  --mute: #6c6a78;
  --line: #ececf2;
  --soft: #f5f5f8;
  --grad: linear-gradient(135deg, var(--acc), var(--acc2));
  background: #fff;
  color: var(--ink);
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body.m3x-app.m3x-lock { overflow: hidden; }

.m3x-app ::selection { background: var(--acc); color: #fff; }
.m3x-app a { color: inherit; text-decoration: none; }
.m3x-app a:hover { text-decoration: none; }
.m3x-app p { margin: 0; }
.m3x-app img { display: block; }
.m3x-app button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
.m3x-app .grad { background: var(--grad); }
.m3x-app .ico { width: 20px; height: 20px; flex: 0 0 auto; }
.m3x-app :focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 8px; }

/* pagina: fara chenarul vechi, o coloana centrata */
.m3x-app .m-page { max-width: none; padding: 0; }
.m3x-app .app { max-width: 560px; margin: 0 auto; }

/* ---------- antet ---------- */
.m3x-app .app-hd {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.m3x-app .app-hd__in { max-width: 560px; margin: 0 auto; }
.m3x-app .app-hd__r1 { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px; }
.m3x-app .app-logo { display: flex; align-items: center; gap: 7px; font-weight: 900; font-size: 19px; letter-spacing: -.02em; min-height: 44px; }
.m3x-app .app-logo i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.m3x-app .app-logo i .ico { width: 16px; height: 16px; }
.m3x-app .app-join { font-weight: 800; font-size: 14px; color: var(--acc); min-height: 44px; display: flex; align-items: center; }
.m3x-app .app-nav { display: flex; gap: 6px; padding: 0 10px 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.m3x-app .app-nav::-webkit-scrollbar { display: none; }
.m3x-app .app-nav a {
  flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 99px; font-weight: 700; font-size: 14px; color: var(--mute); background: var(--soft); white-space: nowrap;
}
.m3x-app .app-nav a.on { background: var(--ink); color: #fff; }

/* ---------- traseu ---------- */
.m3x-app .crumb { font-size: 13px; color: var(--mute); padding: 10px 14px 0; }
.m3x-app .crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.m3x-app .crumb li + li::before { content: "\203A"; margin: 0 6px; }
.m3x-app .crumb a {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: #c9c8d3; text-underline-offset: 3px;
  display: inline-block; padding: 12px 0; margin: -12px 0; /* tinta de atingere ~44px */
}
.m3x-app .crumb [aria-current] { overflow-wrap: anywhere; }

/* ---------- poza principala ---------- */
.m3x-app .hero { position: relative; margin: 8px 10px 0; border-radius: 18px; overflow: hidden; background: #222; }
.m3x-app .hero__zoom { display: block; }
.m3x-app .hero__zoom img { width: 100%; height: auto; max-height: 82vh; aspect-ratio: 3 / 4; object-fit: cover; }
.m3x-app .hero__bars { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; gap: 4px; pointer-events: none; }
.m3x-app .hero__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.m3x-app .hero__bars i.on { background: #fff; }
.m3x-app .hero__ov {
  position: absolute; inset: auto 0 0 0; padding: 70px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78)); color: #fff; pointer-events: none;
}
.m3x-app .hero h1 { margin: 0; color: #fff; font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; overflow-wrap: anywhere; }
.m3x-app .hero h1 span { font-weight: 500; }
.m3x-app .hero__loc { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 600; margin-top: 4px; opacity: .95; }
.m3x-app .hero__loc .ico { width: 16px; height: 16px; }
.m3x-app .hero__save {
  position: absolute; top: 20px; right: 12px; width: 44px; height: 44px; border-radius: 50%; z-index: 2;
  background: rgba(0, 0, 0, .38); color: #fff; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
/* zonele de atingere pentru poza anterioara / urmatoare */
.m3x-app .hero__prev, .m3x-app .hero__next {
  position: absolute; top: 72px; bottom: 120px; width: 22%; min-width: 44px; z-index: 1;
  display: flex; align-items: center; color: #fff; opacity: .85;
}
.m3x-app .hero__prev { left: 0; justify-content: flex-start; padding-left: 8px; }
.m3x-app .hero__next { right: 0; justify-content: flex-end; padding-right: 8px; }
.m3x-app .hero__prev .ico, .m3x-app .hero__next .ico { width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.m3x-app .hero__prev .ico { transform: scaleX(-1); }

/* profil fara poze vizibile */
.m3x-app .nohero { margin: 8px 10px 0; padding: 20px 16px; border-radius: 18px; background: var(--soft); }
.m3x-app .nohero h1 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.m3x-app .nohero p { margin-top: 8px; color: var(--mute); }

/* ---------- chipuri ---------- */
.m3x-app .chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 14px 0; list-style: none; margin: 0; }
.m3x-app .chips li { background: var(--soft); border-radius: 99px; padding: 7px 12px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.m3x-app .chips .ico { width: 15px; height: 15px; color: var(--mute); }
.m3x-app .chips .on-now { background: #e8f7ee; color: #14623a; }
.m3x-app .chips .on-now .ico { color: #2db45d; }
.m3x-app .meta { padding: 10px 14px 0; font-size: 13px; color: var(--mute); }

/* ---------- despre ---------- */
.m3x-app .about { margin: 16px 14px 0; padding: 14px; border-radius: 14px; background: var(--soft); }
.m3x-app .about h2 { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.m3x-app .about h3 { margin: 12px 0 2px; font-size: 14px; font-weight: 800; color: var(--ink); }
.m3x-app .about p { margin-top: 8px; font-size: 15px; color: #43414f; white-space: pre-line; overflow-wrap: anywhere; }
.m3x-app .about .blur { margin-top: 8px; display: grid; gap: 7px; }
.m3x-app .about .blur i { display: block; height: 10px; border-radius: 5px; background: #dcdbe4; }
.m3x-app .about .blur i:nth-child(2) { width: 86%; }
.m3x-app .about .blur i:nth-child(3) { width: 62%; }
.m3x-app .about .note { font-size: 14px; color: var(--mute); margin-top: 10px; white-space: normal; }

.m3x-app .facts { margin: 10px 0 0; padding: 0; }
.m3x-app .facts div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.m3x-app .facts dt { color: var(--mute); }
.m3x-app .facts dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.m3x-app .tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.m3x-app .tags li { background: #fff; border-radius: 99px; padding: 4px 11px; font-size: 13.5px; font-weight: 600; }

/* actiunile membrilor */
.m3x-app .mact { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 14px 0; font-size: 14px; font-weight: 700; }
.m3x-app .mact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--acc); }
.m3x-app .mact a.rep { color: var(--mute); font-weight: 600; }

/* ---------- sectiuni, rails, grile ---------- */
.m3x-app h2.sec { margin: 0; padding: 24px 14px 10px; font-size: 19px; font-weight: 900; letter-spacing: -.01em; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.m3x-app h2.sec a { font-size: 14px; font-weight: 700; color: var(--acc); display: inline-flex; align-items: center; min-height: 44px; }
.m3x-app .rail { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 4px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 14px; -webkit-overflow-scrolling: touch; }
.m3x-app .rail::-webkit-scrollbar { display: none; }
.m3x-app .rail .c { flex: 0 0 128px; scroll-snap-align: start; }
.m3x-app .c { position: relative; border-radius: 14px; overflow: hidden; display: block; background: #ddd; }
.m3x-app .c img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.m3x-app .c .t { position: absolute; inset: auto 0 0 0; padding: 28px 9px 8px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72)); color: #fff; }
.m3x-app .c .t b { display: block; font-size: 14.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m3x-app .c .t span { font-size: 12.5px; opacity: .9; }
.m3x-app .c .seen { position: absolute; top: 7px; left: 7px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.m3x-app .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 10px; }
.m3x-app .more { margin: 14px 10px 0; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ink); text-align: center; padding: 0 12px; }
.m3x-app .inset { margin: 22px 10px 12px; border-radius: 16px; padding: 16px; color: #fff; }
.m3x-app .inset b { display: block; font-size: 18px; font-weight: 900; line-height: 1.2; }
.m3x-app .inset p { font-size: 14.5px; opacity: .95; margin-top: 4px; }
.m3x-app .inset a { margin-top: 12px; min-height: 46px; border-radius: 99px; background: #fff; color: var(--acc); font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; text-align: center; }

/* ---------- prieteni si comentarii (continut de membri) ---------- */
.m3x-app .mem { margin: 26px 14px 0; padding-top: 4px; border-top: 1px solid var(--line); }
.m3x-app .mem h2 { margin: 18px 0 8px; font-size: 19px; font-weight: 900; letter-spacing: -.01em; color: var(--ink); }
.m3x-app .mem p { margin-bottom: 10px; font-size: 14.5px; color: #43414f; }
.m3x-app .mem .m-muted { color: var(--mute); }
.m3x-app .mem .m-people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.m3x-app .mem .m-person a { color: var(--ink); }
.m3x-app .mem .m-comments { margin: 0 0 12px; }
.m3x-app .mem .m-comment a { color: var(--ink); }
.m3x-app .mem .m-btn { min-height: 44px; }
.m3x-app .mem a:not(.m-btn) { text-decoration: underline; text-decoration-color: #c9c8d3; text-underline-offset: 3px; }
.m3x-app .mem .m-person a, .m3x-app .mem .m-comment__ph { text-decoration: none; }

/* ---------- subsol ---------- */
.m3x-app .foot { padding: 26px 14px 24px; font-size: 13px; color: var(--mute); }
.m3x-app .foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9c8d3; display: inline-block; padding: 12px 0; margin: -12px 0; }
.m3x-app .foot .m-kwban { margin-top: 10px; }

/* ---------- bara fixa de jos ---------- */
.m3x-app .dock {
  position: sticky; bottom: var(--tabbar, 0px); z-index: 15;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 30%);
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px;
}
.m3x-app .dock a { min-height: 52px; border-radius: 99px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 16px; }
.m3x-app .dock .n { background: #fff; border: 1.5px solid var(--line); color: var(--ink); box-shadow: 0 4px 14px rgba(20, 10, 40, .1); }
.m3x-app .dock .w { color: #fff; box-shadow: 0 6px 18px rgba(254, 60, 114, .35); }

/* ---------- fereastra de jos (spre simpatie.ro) ---------- */
.m3x-app .sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.m3x-app .sheet-wrap[hidden] { display: none; }
.m3x-app .dim { position: absolute; inset: 0; background: rgba(14, 10, 24, .55); animation: m3x-fade .2s ease-out; }
.m3x-app .sheet {
  position: relative; width: 100%; max-width: 480px; max-height: 94vh; overflow-y: auto;
  background: #fff; border-radius: 24px 24px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center; animation: m3x-up .25s ease-out;
}
.m3x-app .sheet:focus, .m3x-app .sheet:focus-visible { outline: none; }
.m3x-app .sheet__x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--mute); border-radius: 50%; }
.m3x-app .sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #dcdbe4; margin: 0 auto 14px; }
.m3x-app .sheet .pair { display: flex; justify-content: center; align-items: center; }
.m3x-app .sheet .pair img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.m3x-app .sheet .pair img + img { margin-left: -16px; }
.m3x-app .sheet .pair .s { width: 74px; height: 74px; border-radius: 50%; margin-left: -16px; border: 4px solid #fff; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 13px; line-height: 1.05; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.m3x-app .sheet h3 { margin: 12px 0 0; font-size: 22px; font-weight: 900; letter-spacing: -.01em; line-height: 1.15; color: var(--ink); }
.m3x-app .sheet p { font-size: 15px; color: #43414f; margin-top: 8px; }
.m3x-app .sheet ul { list-style: none; text-align: left; margin: 14px auto 0; padding: 0; display: grid; gap: 8px; font-size: 15px; max-width: 320px; }
.m3x-app .sheet li { display: flex; gap: 9px; align-items: flex-start; }
.m3x-app .sheet li .ico { color: var(--acc); width: 19px; height: 19px; margin-top: 2px; }
.m3x-app .sheet .go { margin-top: 18px; min-height: 54px; border-radius: 99px; color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; box-shadow: 0 6px 18px rgba(254, 60, 114, .35); }
.m3x-app .sheet .alt { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--mute); }
.m3x-app .sheet small { display: block; margin-top: 4px; font-size: 13px; color: var(--mute); }
.m3x-app .sheet small a { text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 12px 0; margin: -12px 0; }
@media (min-width: 600px) {
  .m3x-app .sheet-wrap { align-items: center; }
  .m3x-app .sheet { border-radius: 24px; }
  .m3x-app .sheet .grab { display: none; }
}
@keyframes m3x-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes m3x-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 404 profil ---------- */
.m3x-app .gone { padding: 28px 14px 0; }
.m3x-app .gone h1 { margin: 0; font-size: 27px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.m3x-app .gone p { margin-top: 8px; font-size: 15px; color: #43414f; }
.m3x-app .gone .links { display: grid; gap: 10px; margin-top: 18px; }
.m3x-app .gone .links a { min-height: 50px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-weight: 800; padding: 0 16px; }
.m3x-app .gone .links .p { color: #fff; box-shadow: 0 6px 18px rgba(254, 60, 114, .35); }
.m3x-app .gone .links .s { border: 1.5px solid var(--line); color: var(--ink); }

/* ---------- ecrane late ---------- */
@media (min-width: 900px) {
  body.m3x-app { font-size: 16px; }
  .m3x-app .app, .m3x-app .app-hd__in { max-width: 600px; }
  .m3x-app .rail .c { flex-basis: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .m3x-app *, .m3x-app *::before, .m3x-app *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
