/* Match filters popup (shared by text, voice and video) */
.mf-overlay{position:fixed;inset:0;z-index:99990;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(17,24,39,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:mfFade .18s}
@keyframes mfFade{from{opacity:0}to{opacity:1}}
.mf-modal{position:relative;width:100%;max-width:440px;max-height:calc(100dvh - 36px);overflow-y:auto;background:#fff;color:#111827;border-radius:28px;padding:24px 22px 22px;box-shadow:0 30px 80px rgba(0,0,0,.35);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;animation:mfPop .22s cubic-bezier(.2,.9,.3,1.2)}
@keyframes mfPop{from{transform:translateY(14px) scale(.96);opacity:0}to{transform:none;opacity:1}}
.mf-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px;padding-right:34px}
.mf-head-ic{width:54px;height:54px;border-radius:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,var(--purple,#5b4fff),var(--pink,#ff5da2));box-shadow:0 8px 20px rgba(91,79,255,.3)}
.mf-head-t h3{margin:2px 0 3px;font-size:1.28rem;font-weight:800;letter-spacing:-.2px;color:#0f172a}
.mf-head-t p{margin:0;font-size:.9rem;line-height:1.35;color:#6b7280}
.mf-x{position:absolute;top:16px;right:16px;width:36px;height:36px;border:0;border-radius:50%;background:#eef0f7;color:#4b5563;display:flex;align-items:center;justify-content:center;cursor:pointer}
.mf-label{margin:16px 2px 8px;font-size:.78rem;font-weight:800;letter-spacing:.1em;color:#6b7280}
.mf-genders{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mf-g{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:104px;padding:12px 6px;border-radius:18px;border:1.5px solid #e8eaf1;background:#fff;color:#374151;font-family:inherit;cursor:pointer;transition:.15s}
.mf-g b{font-size:.95rem;font-weight:800}
.mf-g-ic{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#6b7280;background:transparent}
.mf-g.on{border-color:var(--purple,#5b4fff);background:linear-gradient(180deg,#f3f1ff,#e6e3ff);box-shadow:0 0 0 3px rgba(91,79,255,.14)}
.mf-g.on .mf-g-ic{color:#fff;background:linear-gradient(135deg,var(--purple,#5b4fff),var(--pink,#ff5da2))}
.mf-g.on b{color:#0f172a}
.mf-g.locked{color:#9ca3af;background:#fff}
.mf-g.locked b{color:#9ca3af}
.mf-g.locked .mf-g-ic{color:#9ca3af}
.mf-lock{position:absolute;top:8px;right:8px;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--purple,#5b4fff);color:#fff;font-style:normal}
.mf-country{position:relative;display:flex;align-items:center;gap:12px;min-height:60px;padding:0 44px 0 16px;border-radius:18px;border:1.5px solid #e8eaf1;background:#fff;color:#374151}
.mf-country b{font-size:.98rem;font-weight:800;color:#374151}
.mf-country.locked b{color:#6b7280}
.mf-c-ic{display:flex;align-items:center}
.mf-chev{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#9ca3af;display:flex}
.mf-country .mf-lock{top:-8px;right:10px}
.mf-country.locked{cursor:pointer}
.mf-select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
.mf-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:58px;margin-top:20px;padding:0 18px;border:0;border-radius:100px;background:linear-gradient(90deg,var(--purple,#5b4fff),var(--pink,#ff5da2));color:#fff!important;font:800 1.08rem/1 Inter,system-ui,sans-serif;text-decoration:none;cursor:pointer;box-shadow:0 10px 24px rgba(91,79,255,.35)}
.mf-cta:active{transform:scale(.99)}
.mf-note{display:flex;align-items:center;gap:12px;margin-top:14px;padding:14px 16px;border-radius:16px;background:#efedff;border:1px solid #cfcaff;color:#111827;font-size:.92rem;font-weight:700;line-height:1.35}
.mf-note svg{flex-shrink:0;color:var(--purple,#5b4fff)}
.mf-note.shake{animation:mfShake .4s}
@keyframes mfShake{0%,100%{transform:none}20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}
body.mf-open{overflow:hidden}
/* dark theme */
:root[data-theme="dark"] .mf-modal{background:#1c1330;color:#f3e8ff;box-shadow:0 30px 80px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.08)}
:root[data-theme="dark"] .mf-head-t h3{color:#fff}
:root[data-theme="dark"] .mf-head-t p,:root[data-theme="dark"] .mf-label{color:#a99bc4}
:root[data-theme="dark"] .mf-x{background:rgba(255,255,255,.1);color:#e5d9ff}
:root[data-theme="dark"] .mf-g,:root[data-theme="dark"] .mf-country{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.12);color:#e5d9ff}
:root[data-theme="dark"] .mf-g.on{background:linear-gradient(180deg,rgba(91,79,255,),rgba(91,79,255,.14));border-color:var(--pink,#ff5da2)}
:root[data-theme="dark"] .mf-g.on b{color:#fff}
:root[data-theme="dark"] .mf-g.locked,:root[data-theme="dark"] .mf-g.locked b,:root[data-theme="dark"] .mf-g.locked .mf-g-ic{color:#7d6f99}
:root[data-theme="dark"] .mf-country b{color:#f3e8ff}
:root[data-theme="dark"] .mf-country.locked b{color:#b7a8d6}
:root[data-theme="dark"] .mf-note{background:rgba(139,127,255,.16);border-color:rgba(164,154,255,.4);color:#ece9ff}
:root[data-theme="dark"] .mf-note svg{color:#a49aff}
/* the row that opens it from Settings */
.mf-open-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:14px;padding:13px 14px;border-radius:14px;border:1px solid var(--border,#e5e7eb);background:transparent;color:inherit;font:inherit;cursor:pointer;text-align:left}
.mf-open-row .mf-or-l{display:flex;align-items:center;gap:10px;font-weight:700}
.mf-open-row .mf-or-r{display:flex;align-items:center;gap:8px;font-size:.78rem;color:var(--muted,#6b7280)}
.mf-open-row .mf-or-vip{font-weight:800;padding:2px 9px;border-radius:100px;background:rgba(251,191,36,.16);color:#b45309;border:1px solid rgba(251,191,36,.45)}
