/* Member pop-up (member_modal_html() in includes/members.php) and the "join the conversation" boxes */
.mb-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(15, 23, 42, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mb-overlay[hidden] { display: none; }
.mb-box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 20px; padding: 26px 24px 22px; box-shadow: 0 24px 60px rgba(11, 61, 145, 0.25); font-family: "Segoe UI", Roboto, system-ui, sans-serif; color: #1e1e2a; }
.mb-box h3 { font-size: 1.2rem; color: #0f172a; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.mb-box h3 i { color: #0b3d91; }
.mb-intro { color: #64748b; font-size: 0.88rem; margin: 0 0 16px; }
.mb-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #f1f5f9; color: #475569; cursor: pointer; }
.mb-close:hover { background: #e2e8f0; }
.mb-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f5f9; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.mb-tab { border: none; background: none; padding: 9px 10px; border-radius: 9px; font: inherit; font-weight: 600; font-size: 0.9rem; color: #475569; cursor: pointer; }
.mb-tab.active { background: #fff; color: #0b3d91; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.mb-steps { list-style: none; display: flex; gap: 8px; justify-content: center; margin: 0 0 16px; padding: 0; }
.mb-steps li { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; background: #f1f5f9; color: #718096; }
.mb-steps li.on { background: #0b3d91; color: #facc15; }
.mb-box label { display: block; font-size: 0.85rem; font-weight: 600; color: #334155; margin: 0 0 6px; }
.mb-input { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
.mb-input > i { position: absolute; left: 14px; color: #718096; font-size: 0.9rem; pointer-events: none; }
.mb-input input { width: 100%; padding: 12px 14px 12px 40px; border: 1px solid #e2e8f0; border-radius: 12px; font: inherit; font-size: 0.95rem; background: #fff; color: #0f172a; }
.mb-input input:focus, .mb-code:focus { outline: none; border-color: #0b3d91; box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12); }
.mb-eye { position: absolute; right: 8px; border: none; background: none; color: #718096; cursor: pointer; padding: 6px 8px; }
.mb-input:has(.mb-eye) input { padding-right: 44px; }
.mb-hint { font-size: 0.78rem; color: #64748b; margin: -6px 0 14px; }
.mb-sent { font-size: 0.88rem; color: #334155; background: #f1f5fb; border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; }
.mb-sent i { color: #0b3d91; margin-right: 4px; }
.mb-code { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 12px; font: inherit; font-size: 1.6rem; font-weight: 700; letter-spacing: 0.5em; text-align: center; text-transform: uppercase; font-family: "Consolas", "Courier New", monospace; margin-bottom: 12px; padding-left: calc(12px + 0.5em); }
.mb-demo { font-size: 0.8rem; color: #92400e; background: #fffbeb; border: 1px dashed #f59e0b; border-radius: 10px; padding: 8px 10px; margin: 0 0 12px; }
.mb-demo strong { letter-spacing: 2px; }
.mb-btn { width: 100%; padding: 12px 16px; border: none; border-radius: 12px; background: #0b3d91; color: #fff; font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mb-btn:hover { background: #0a3480; }
.mb-btn[disabled] { opacity: 0.6; cursor: wait; }
.mb-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mb-links button, .mb-links a { border: none; background: none; padding: 0; font: inherit; font-size: 0.82rem; color: #1565c0; cursor: pointer; text-decoration: none; }
.mb-links button:hover, .mb-links a:hover { text-decoration: underline; }
.mb-remember { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; margin: 2px 0 14px !important; cursor: pointer; }
.mb-remember input { accent-color: #0b3d91; width: 16px; height: 16px; }
.mb-terms { font-size: 0.75rem; color: #718096; margin: 14px 0 0; text-align: center; }
.mb-terms a { color: #64748b; }
.mb-msg { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 0.86rem; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.mb-msg.ok { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.mb-msg[hidden], .mb-step[hidden], .mb-pane[hidden] { display: none; }

/* "Join the conversation" box (comments, forum) for people who are not signed in */
.mb-join { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border: 1px dashed #cbd5e1; border-radius: 16px; background: #f8fafc; }
.mb-join > i { font-size: 1.6rem; color: #0b3d91; }
.mb-join p { flex: 1 1 220px; margin: 0; font-size: 0.92rem; color: #334155; line-height: 1.5; }
.mb-join-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mb-join-btns button { padding: 9px 16px; border-radius: 30px; font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer; border: 1px solid #0b3d91; }
.mb-join-btns .mb-join-main { background: #0b3d91; color: #fff; }
.mb-join-btns .mb-join-alt { background: #fff; color: #0b3d91; }
.mb-as { font-size: 0.85rem; color: #475569; margin: 0 0 10px; }
.mb-as i { color: #2f855a; margin-right: 4px; }

@media (max-width: 480px) {
    .mb-overlay { padding: 0; align-items: flex-end; }
    .mb-box { max-width: none; border-radius: 20px 20px 0 0; max-height: 92vh; padding: 22px 16px 18px; }
    .mb-code { font-size: 1.3rem; letter-spacing: 0.35em; }
}
