/* =====================================================================
   BNI Krishna Member Panel
   Same family as the website: BNI red, temple gold, ivory. Mobile first,
   bottom tab bar on phones, soft motion everywhere (off for reduced motion).
   ===================================================================== */

:root {
    --red: #cf2030; --red-600: #b31a28; --red-700: #8f1320; --red-900: #5c0a14; --red-50: #fdf0f1;
    --gold: #c9a24b; --gold-600: #a8832f; --gold-200: #ecd9a6;
    --ivory: #fffaf3; --cream: #fbf3e6; --sand: #f3e6cf;
    --ink: #1d1a1e; --ink-2: #3a3438; --muted: #6d6469; --line: #eadfce;
    --peacock: #0b7a83; --krishna: #1f4fa3; --leaf: #2f8f5b; --purple: #6b3fa0;
    --card: #ffffff;
    --radius: 18px; --radius-lg: 26px;
    --shadow-sm: 0 2px 10px rgba(60, 20, 20, .06);
    --shadow: 0 14px 40px -14px rgba(92, 10, 20, .2);
    --shadow-lg: 0 30px 70px -20px rgba(92, 10, 20, .35);
    --ease: cubic-bezier(.22, .8, .24, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --font-display: "Cinzel", "Times New Roman", serif;
    --font-script: "Cormorant Garamond", Georgia, serif;
    --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.65; color: var(--ink); background: var(--ivory); min-height: 100vh; overflow-x: clip; }
body.mp-lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; margin: 0; color: var(--ink); }
p { margin: 0; }
.gold { color: var(--gold-600); }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.solid { fill: currentColor; stroke: none; }
.tm-brand { display: inline; white-space: nowrap; }
.tm-brand .a { display: inline; }
/* WEBIXA TM: small TM at the top-right corner of the A (cap-height aligned, takes its own space) */
.tm-brand .tm { display: inline-block; font-size: .42em; line-height: 1; font-weight: 700; letter-spacing: 0; vertical-align: .95em; margin-left: .06em; }
[hidden] { display: none !important; }

/* ---------- Animated backdrop ---------- */
.mp-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
    background: radial-gradient(1200px 600px at 110% -10%, #fde6e8 0, transparent 60%), radial-gradient(900px 500px at -10% 110%, #f8ecd2 0, transparent 60%), var(--ivory); }
.mp-bg .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.mp-bg .orb.one { width: 380px; height: 380px; background: #f7c7cc; top: -120px; right: -80px; }
.mp-bg .orb.two { width: 320px; height: 320px; background: #f3dfae; bottom: -120px; left: -60px; animation-delay: -9s; }
.mp-bg .mandala { position: absolute; width: 640px; height: 640px; right: -260px; top: 30%; opacity: .07; border-radius: 50%;
    background: repeating-conic-gradient(var(--gold) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, transparent 28%, #000 29%, #000 31%, transparent 32%, transparent 44%, #000 45%, #000 70%, transparent 71%);
    mask: radial-gradient(circle, transparent 28%, #000 29%, #000 31%, transparent 32%, transparent 44%, #000 45%, #000 70%, transparent 71%); animation: spin 120s linear infinite; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reveal ---------- */
[data-anim] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
[data-anim].in { opacity: 1; transform: none; }
.pop { animation: pop .5s var(--spring); }
@keyframes pop { from { transform: scale(.85); opacity: .3; } }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- Buttons ---------- */
.mp-btn { --b: var(--red); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
    border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--b), var(--red-700)); color: #fff; font: 600 14px/1.2 var(--font-body);
    text-decoration: none; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(207, 32, 48, .7); transition: transform .25s var(--spring), box-shadow .25s, filter .2s; overflow: hidden; }
.mp-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.mp-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(207, 32, 48, .8); }
.mp-btn:hover::after { transform: translateX(120%); }
.mp-btn:active { transform: translateY(0) scale(.97); }
.mp-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.mp-btn.ghost { background: #fff; color: var(--red-700); box-shadow: inset 0 0 0 1.5px var(--gold-200), var(--shadow-sm); }
.mp-btn.ghost.danger { color: var(--red); }
.mp-btn.sm { min-height: 38px; padding: 7px 14px; font-size: 13px; }
.mp-btn.block { width: 100%; }
.mp-btn.busy { pointer-events: none; color: transparent !important; }
.mp-btn.busy > * { visibility: hidden; }
.mp-btn.busy::before { content: ""; position: absolute; width: 20px; height: 20px; left: calc(50% - 10px); top: calc(50% - 10px); border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.mp-btn.ghost.busy::before { border-color: var(--line); border-top-color: var(--red); }
.mp-btn.glow { animation: glow 1.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(207, 32, 48, .18), 0 10px 22px -10px rgba(207, 32, 48, .7); } }
.mp-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #fff; color: var(--ink-2); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: .2s; }
.mp-icon-btn:hover { color: var(--red); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--gold-200), var(--shadow-sm); }
.mp-icon-btn.danger:hover { background: var(--red); color: #fff; }
.mp-link { background: none; border: 0; padding: 4px 0; color: var(--red); font: 600 14px var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mp-link:hover { text-decoration: underline; }

/* ---------- Flash, badges, chips ---------- */
.mp-flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; margin: 0 0 18px; font-size: 14px; animation: slideIn .5s var(--ease); transition: opacity .6s, transform .6s; }
.mp-flash .icon { margin-top: 3px; }
.mp-flash.success { background: #eaf7ef; color: #1e6b41; box-shadow: inset 0 0 0 1px #c5e8d3; }
.mp-flash.error { background: var(--red-50); color: var(--red-700); box-shadow: inset 0 0 0 1px #f5c9cd; }
.mp-flash.info { background: #fdf6e5; color: #7a5a14; box-shadow: inset 0 0 0 1px var(--gold-200); }
.mp-flash.fade { opacity: .0; transform: translateY(-6px); pointer-events: none; height: 0; padding: 0; margin: 0; overflow: hidden; transition: opacity .5s, transform .5s, height .4s .4s, padding .4s .4s, margin .4s .4s; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } }
.mp-badge { flex: none; align-self: flex-start; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.mp-badge.live { background: #eaf7ef; color: #1e6b41; }
.mp-badge.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2fae63; margin-right: 6px; vertical-align: 1px; animation: ping 1.8s infinite; }
.mp-badge.wait { background: #fdf6e5; color: #7a5a14; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 174, 99, .6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(47, 174, 99, 0); } }
.mp-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--red-50); color: var(--red-700); font-size: 12px; font-weight: 600; }
.mp-kicker { display: inline-block; font-family: var(--font-script); font-style: italic; font-weight: 600; font-size: 19px; color: var(--gold-600); }

/* ---------- Login / code ---------- */
.mp-auth-main { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; gap: 18px; }
.mp-auth-logo img { height: 64px; width: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .08)); }
.mp-auth-card { width: 100%; max-width: 440px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 30px 24px 26px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(234, 223, 206, .8); text-align: center; position: relative; }
.mp-auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(90deg, var(--red), var(--gold), var(--red)); background-size: 200% 100%; animation: shimmer 4s linear infinite; }
@keyframes shimmer { to { background-position: 200% 0; } }
.mp-auth-icon { width: 66px; height: 66px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 22px; color: #fff; font-size: 28px; background: linear-gradient(135deg, var(--red), var(--red-700)); box-shadow: 0 14px 26px -12px rgba(207, 32, 48, .8); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-3deg); } }
.mp-auth-card h1 { font-size: 26px; margin: 4px 0 8px; }
.mp-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.mp-auth-card .mp-form { text-align: left; }
.mp-auth-card .mp-flash { text-align: left; }
.mp-devcode { font-size: 18px; letter-spacing: .25em; color: var(--red-700); }
.mp-steps { list-style: none; padding: 0; margin: 22px 0 0; display: flex; justify-content: center; gap: 6px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.mp-steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sand); color: var(--red-700); font-size: 11px; margin-right: 4px; }
.mp-otp { display: flex; justify-content: center; gap: 8px; margin: 6px 0 18px; }
.mp-otp input { width: 46px; height: 56px; text-align: center; font: 600 24px var(--font-body); color: var(--ink); border: 1.5px solid var(--line); border-radius: 14px; background: #fff; outline: none; transition: .2s var(--spring); caret-color: var(--red); }
.mp-otp input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(207, 32, 48, .12); transform: translateY(-2px); }
.mp-otp input.on { border-color: var(--gold); background: #fffdf7; }
.mp-resend { margin-top: 16px; font-size: 13px; color: var(--muted); }
.mp-auth-foot a { color: var(--muted); font-size: 13px; text-decoration: none; }
.mp-auth-foot a:hover { color: var(--red); }

/* ---------- Forms ---------- */
.mp-form { display: grid; gap: 14px; }
.mp-grid { grid-template-columns: 1fr; }
.mp-field { display: grid; gap: 6px; min-width: 0; }
.mp-field > span:first-child { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mp-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.mp-field small { color: var(--muted); font-size: 12px; }
.mp-field input, .mp-field textarea, .mp-field select, .mp-asks input, .mp-form > textarea {
    width: 100%; min-height: 46px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
    font: 15px/1.5 var(--font-body); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.mp-field textarea { resize: vertical; }
.mp-field input:focus, .mp-field textarea:focus, .mp-asks input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(207, 32, 48, .1); }
.mp-field input:disabled { background: var(--cream); color: var(--muted); }
.mp-input-ic { position: relative; display: block; }
.mp-input-ic > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color .2s; }
.mp-input-ic input { padding-left: 42px; }
.mp-input-ic:focus-within > .icon { color: var(--red); }
.mp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mp-actions small { color: var(--muted); font-size: 12.5px; }
.mp-asks { margin: 0; padding: 0; list-style: none; counter-reset: ask; display: grid; gap: 8px; }
.mp-asks li { counter-increment: ask; display: flex; gap: 10px; align-items: center; }
.mp-asks li::before { content: counter(ask); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sand); color: var(--red-700); font-size: 12px; font-weight: 700; }
.mp-count { text-align: right; }
.mp-count.over { color: var(--red) !important; font-weight: 600; }

/* Text editor */
.mp-field .ql-toolbar.ql-snow { border: 1.5px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--cream); font-family: var(--font-body); padding: 6px; display: flex; flex-wrap: wrap; gap: 2px; }
.mp-field .ql-toolbar.ql-snow .ql-formats { margin-right: 6px; }
.mp-field .ql-container.ql-snow { border: 1.5px solid var(--line); border-radius: 0 0 12px 12px; background: #fff; font: 15px/1.7 var(--font-body); }
.mp-field .ql-editor { min-height: 190px; max-height: 60vh; overflow-y: auto; padding: 14px 16px; }
.mp-field .ql-editor.ql-blank::before { color: #a99fa4; font-style: normal; left: 16px; right: 16px; }
.mp-field:focus-within .ql-toolbar.ql-snow, .mp-field:focus-within .ql-container.ql-snow { border-color: var(--red); }
.ql-snow .ql-stroke { stroke: var(--ink-2); }
.ql-snow .ql-fill { fill: var(--ink-2); }
.ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--red); }
.ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--red); }
.ql-snow.ql-toolbar button.ql-active, .ql-snow .ql-picker-label.ql-active { color: var(--red); }
.ql-snow .ql-tooltip { z-index: 5; border-radius: 10px; box-shadow: var(--shadow); }
.ql-snow .ql-tooltip[data-mode=link]::before { content: "Website:"; }
.ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: "Save"; }

/* ---------- App shell ---------- */
.mp-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.mp-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 250, 243, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.mp-top-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.mp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.mp-logo img { height: 40px; width: auto; }
.mp-logo span { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--red-700); padding-left: 10px; border-left: 1px solid var(--gold-200); white-space: nowrap; }
.mp-me { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mp-me form { margin: 0; }
.mp-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--gold)); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--gold-200); flex: none; }
.mp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-me-name { display: none; font-weight: 600; font-size: 14px; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Phones: tab bar at the bottom */
/* (no blur on the header here: a blurred parent would pin the fixed tab bar to the header) */
@media (max-width: 1099.98px) { .mp-top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 250, 243, .97); } }
.mp-nav { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 20px; padding: 6px; box-shadow: 0 18px 40px -12px rgba(92, 10, 20, .35), inset 0 0 0 1px var(--line); }
.mp-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 14px; text-decoration: none; color: var(--muted); font-size: 10.5px; font-weight: 600; transition: .25s var(--ease); }
.mp-nav a .icon { width: 22px; height: 22px; transition: transform .3s var(--spring); }
.mp-nav a.on { color: var(--red); background: var(--red-50); }
.mp-nav a.on .icon { transform: translateY(-2px) scale(1.08); }
.mp-main { padding-top: 22px; padding-bottom: 120px; }
.mp-foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 0 16px 110px; }
.mp-foot a { color: var(--red-700); font-weight: 600; text-decoration: none; }

/* ---------- Dashboard ---------- */
.mp-hero { position: relative; display: grid; gap: 22px; align-items: center; padding: 26px 22px; border-radius: var(--radius-lg); color: #fff; overflow: hidden;
    background: radial-gradient(500px 260px at 100% 0, rgba(201, 162, 75, .45), transparent 60%), linear-gradient(135deg, var(--red) 0%, var(--red-700) 60%, var(--red-900) 100%); box-shadow: var(--shadow-lg); }
.mp-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -160px; border-radius: 50%; opacity: .14;
    background: repeating-conic-gradient(#fff 0 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(circle, transparent 35%, #000 36%); mask: radial-gradient(circle, transparent 35%, #000 36%); animation: spin 80s linear infinite; }
.mp-hero > * { position: relative; z-index: 1; }
.mp-hero .mp-kicker { color: var(--gold-200); }
.mp-hero h1 { color: #fff; font-size: clamp(24px, 6vw, 34px); margin: 2px 0 8px; }
.mp-hero .gold { color: #f6dc95; }
.mp-hero p { opacity: .9; max-width: 520px; }
.mp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mp-hero .mp-btn { background: #fff; color: var(--red-700); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .4); }
.mp-hero .mp-btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.mp-ring { position: relative; width: 150px; height: 150px; justify-self: center; }
.mp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mp-ring circle { fill: none; stroke-width: 10; }
.mp-ring .bg { stroke: rgba(255, 255, 255, .18); }
.mp-ring .fg { stroke: #f6dc95; stroke-linecap: round; animation: ring 1.6s var(--ease) both; filter: drop-shadow(0 0 6px rgba(246, 220, 149, .6)); }
@keyframes ring { from { stroke-dashoffset: 326.7; } }
.mp-ring > div { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; text-align: center; }
.mp-ring b { font: 700 38px/1 var(--font-display); }
.mp-ring > div > span { font-size: 18px; font-weight: 600; margin-top: 4px; }
.mp-ring small { flex-basis: 100%; font-size: 11px; opacity: .85; margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }
.mp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.mp-status > div { flex: 1 1 220px; display: grid; gap: 2px; font-size: 13.5px; color: var(--muted); }
.mp-status b { color: var(--ink); font-size: 14.5px; }
.mp-status-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px; font-size: 20px; }
.mp-status.pending .mp-status-ic { background: #fdf6e5; color: var(--gold-600); animation: tick 2s ease-in-out infinite; }
.mp-status.ok .mp-status-ic { background: #eaf7ef; color: #1e6b41; }
.mp-status.no .mp-status-ic { background: var(--red-50); color: var(--red); }
@keyframes tick { 50% { transform: rotate(-12deg); } }
.mp-tiles { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
.mp-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 2px; padding: 16px; border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink);
    box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform .35s var(--spring), box-shadow .3s; overflow: hidden; }
.mp-tile::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 75, .16), transparent 70%); transition: transform .5s var(--ease); }
.mp-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow), inset 0 0 0 1px var(--gold-200); }
.mp-tile:hover::before { transform: scale(1.6); }
.mp-tile-ic { grid-row: 1 / 4; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; font-size: 22px; color: #fff; transition: transform .4s var(--spring); }
.mp-tile:hover .mp-tile-ic { transform: rotate(-8deg) scale(1.08); }
.mp-tile b { font-size: 15.5px; }
.mp-tile span:not(.mp-tile-ic) { font-size: 13px; color: var(--muted); }
.mp-tile em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.mp-tile em .icon { transition: transform .3s var(--spring); }
.mp-tile:hover em .icon { transform: translateX(4px); }
.red { background: linear-gradient(135deg, var(--red), var(--red-700)); }
.gold-bg, .mp-tile-ic.gold, .mp-card-ic.gold { background: linear-gradient(135deg, var(--gold), var(--gold-600)); }
.teal { background: linear-gradient(135deg, #12a3ad, var(--peacock)); }
.purple { background: linear-gradient(135deg, #8a5cc4, var(--purple)); }
.mp-preview { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
.mp-preview-photo { width: 130px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, var(--sand), var(--gold-200)); display: grid; place-items: center; box-shadow: var(--shadow); justify-self: center; }
.mp-preview-photo img { width: 100%; height: 100%; object-fit: cover; }
.mp-preview-photo span { font: 700 34px var(--font-display); color: var(--red-700); }
.mp-preview-body h2 { font-size: 22px; margin: 8px 0 4px; }
.mp-biz { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); }
.mp-biz img { height: 32px; width: auto; max-width: 90px; object-fit: contain; }
.mp-tagline { color: var(--muted); font-size: 14px; margin-top: 4px; }
.mp-check { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; color: var(--muted); }
.mp-check li { display: flex; align-items: center; gap: 8px; }
.mp-check .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--sand); color: transparent; stroke-width: 3; transition: .3s; }
.mp-check li.done { color: var(--ink); }
.mp-check li.done .icon { background: #2fae63; color: #fff; }

/* ---------- Cards & profile ---------- */
.mp-card { position: relative; background: var(--card); border-radius: var(--radius-lg); padding: 20px 16px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); margin-bottom: 18px; }
.mp-card.hl { animation: hl 1.8s var(--ease); }
@keyframes hl { 0%, 40% { box-shadow: 0 0 0 4px rgba(201, 162, 75, .45), var(--shadow); } }
.mp-card-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-start; margin-bottom: 18px; }
.mp-card-head > div { flex: 1 1 200px; }
.mp-card-head h2 { font-size: 19px; }
.mp-card-head p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.mp-card-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: #fff; font-size: 20px; }
.mp-page-head { margin: 4px 0 18px; }
.mp-page-head h1 { font-size: clamp(21px, 5.4vw, 30px); margin: 2px 0 6px; }
.mp-page-head p { color: var(--muted); max-width: 640px; }
.mp-jump { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.mp-jump::-webkit-scrollbar { display: none; }
.mp-jump a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: .25s; }
.mp-jump a:hover { color: var(--red); box-shadow: inset 0 0 0 1.5px var(--gold-200), var(--shadow-sm); transform: translateY(-1px); }
.mp-images { display: grid; gap: 16px; }
.mp-imgbox { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--ivory); box-shadow: inset 0 0 0 1px var(--line); transition: .25s; }
.mp-imgbox.drop { box-shadow: inset 0 0 0 2px var(--red); background: var(--red-50); }
.mp-imgframe { width: 120px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.mp-imgbox.logo .mp-imgframe { aspect-ratio: 1; padding: 10px; background: #fff repeating-conic-gradient(#f5efe4 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.mp-imgframe img { width: 100%; height: 100%; object-fit: cover; }
.mp-imgbox.logo .mp-imgframe img { object-fit: contain; }
.mp-imgframe.empty span { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 26px; text-align: center; }
.mp-imgframe.empty small { font-size: 11px; line-height: 1.3; padding: 0 6px; }
.mp-imgmeta { display: grid; gap: 6px; justify-items: start; }
.mp-imgmeta b { font-size: 15px; }
.mp-imgmeta small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.mp-imgmeta form { margin: 0; display: inline; }
.mp-imgmeta .mp-btn { margin-top: 2px; }

/* ---------- Customers ---------- */
.mp-meter { position: relative; margin-top: 14px; height: 30px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; max-width: 360px; }
.mp-meter span { position: absolute; inset: 0 auto 0 0; width: var(--v); background: linear-gradient(90deg, var(--gold-200), var(--gold)); border-radius: 999px; animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { width: 0; } }
.mp-meter b { position: relative; display: block; text-align: center; line-height: 30px; font-size: 12.5px; color: var(--ink-2); }
.mp-cust-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.mp-cust { margin: 0; padding: 16px; transition: transform .35s var(--spring), box-shadow .3s; }
.mp-cust:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--gold-200); }
.mp-cust.drop { box-shadow: inset 0 0 0 2px var(--red); }
.mp-cust-logo { width: 100%; height: 120px; border-radius: 14px; display: grid; place-items: center; padding: 14px; margin-bottom: 14px; background: #fff repeating-conic-gradient(#f7f2e9 0 25%, #fff 0 50%) 0 0 / 16px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.mp-cust-logo img { max-width: 100%; max-height: 92px; object-fit: contain; }
.mp-cust-logo.pick { border: 2px dashed var(--gold-200); cursor: pointer; font: inherit; transition: .25s; }
.mp-cust-logo.pick:hover { border-color: var(--red); background-color: var(--red-50); }
.mp-cust-empty { display: grid; justify-items: center; gap: 2px; color: var(--muted); }
.mp-cust-empty .icon { width: 30px; height: 30px; color: var(--red); transition: transform .4s var(--spring); }
.mp-cust-logo.pick:hover .mp-cust-empty .icon { transform: rotate(90deg) scale(1.1); }
.mp-cust-empty b { color: var(--ink); font-size: 14px; }
.mp-cust-empty small { font-size: 11.5px; }
.mp-cust .mp-form { gap: 10px; }
.mp-cust .mp-field.sm { max-width: 110px; }
.mp-cust-del { position: absolute; top: 22px; right: 22px; margin: 0; }
.mp-cust-del .mp-icon-btn { width: 34px; height: 34px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.mp-cust.add { background: linear-gradient(180deg, #fff, var(--ivory)); }
.mp-empty-note { margin-top: 18px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13.5px; }
.mp-empty-note .icon { color: var(--gold-600); }

/* ---------- Crop window ---------- */
.mp-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; background: rgba(29, 26, 30, .62); backdrop-filter: blur(4px); animation: fadeIn .25s; }
.mp-modal-box { width: 100%; max-width: 640px; max-height: 100dvh; display: flex; flex-direction: column; background: #fff; border-radius: 24px 24px 0 0; overflow: hidden; animation: up .4s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.mp-modal-box header, .mp-modal-box footer { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.mp-modal-box header h3 { font-size: 17px; flex: 1; }
.mp-modal-box footer { justify-content: flex-end; border-top: 1px solid var(--line); }
.mp-crop-area { height: min(58vh, 460px); background: #2a2427; }
.mp-crop-area img { max-width: 100%; display: block; }
.mp-crop-tools { display: flex; justify-content: center; gap: 8px; padding: 10px; background: var(--ivory); }
.cropper-view-box { outline: 2px solid var(--gold); outline-color: rgba(201, 162, 75, .9); }
.cropper-line, .cropper-point { background-color: var(--gold); }
.cropper-point.point-se { width: 10px; height: 10px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
    .mp-grid { grid-template-columns: 1fr 1fr; }
    .mp-grid .wide { grid-column: 1 / -1; }
    .mp-tiles { grid-template-columns: 1fr 1fr; }
    .mp-cust-grid { grid-template-columns: 1fr 1fr; }
    .mp-check { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mp-preview { grid-template-columns: auto 1fr; }
    .mp-imgbox { grid-template-columns: 140px 1fr; }
    .mp-imgframe { width: 140px; }
    .mp-auth-card { padding: 36px 34px 30px; }
    .mp-otp input { width: 52px; height: 62px; }
    .mp-modal { place-items: center; padding: 20px; }
    .mp-modal-box { border-radius: 24px; max-height: calc(100dvh - 40px); }
}
@media (min-width: 860px) {
    body { font-size: 15.5px; }
    .mp-main { padding-top: 30px; padding-bottom: 50px; }
    .mp-foot { padding-bottom: 30px; }
    .mp-hero { grid-template-columns: 1fr auto; padding: 36px 40px; }
    .mp-ring { width: 170px; height: 170px; }
    .mp-tiles { grid-template-columns: repeat(4, 1fr); }
    .mp-tile { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 4px; padding: 20px; }
    .mp-tile-ic { grid-row: auto; margin-bottom: 8px; }
    .mp-card { padding: 26px 28px; }
    .mp-images { grid-template-columns: 1fr 1fr; }
    .mp-cust-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
    .mp-logo span { display: none; }
    .mp-otp { gap: 6px; }
    .mp-otp input { width: 40px; height: 52px; font-size: 21px; }
    .mp-imgbox { grid-template-columns: 96px 1fr; }
    .mp-imgframe { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-anim] { opacity: 1; transform: none; }
}
.mp-cust-mono { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-700)); color: #fff; font: 700 18px var(--font-display); }

/* ---------- Inquiries ---------- */
.mp-inq-list { display: grid; gap: 14px; }
.mp-inq { margin: 0; }
.mp-inq header { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.mp-inq header > div { display: grid; min-width: 0; }
.mp-inq header b { font-size: 15.5px; }
.mp-inq-time { color: var(--muted); font-size: 12px; }
.mp-inq-req { white-space: pre-wrap; background: var(--ivory); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.mp-empty-card { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 34px 20px; }
.mp-empty-card p { color: var(--muted); max-width: 420px; }
@media (min-width: 860px) { .mp-inq-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .mp-nav a { font-size: 9.5px; } }

/* ---------- Header: top menu only where it fits; below that the bottom tab bar ---------- */
.mp-top .mp-wrap { max-width: 1320px; }
.mp-nav a, .mp-nav a span { white-space: nowrap; }
@media (min-width: 1100px) {
    .mp-top-in { height: 72px; gap: 16px; }
    .mp-nav { position: static; display: flex; flex: 1; justify-content: center; gap: 2px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; padding: 0; margin: 0; border-radius: 0; }
    .mp-nav a { flex-direction: row; gap: 7px; font-size: 14px; padding: 9px 13px; border-radius: 999px; }
    .mp-nav a .icon { width: 18px; height: 18px; }
    .mp-nav a:hover { color: var(--red); background: rgba(207, 32, 48, .06); }
    .mp-nav a.on .icon { transform: none; }
    .mp-me { margin-left: 0; flex: none; }
    .mp-main { padding-bottom: 50px; }
    .mp-foot { padding-bottom: 30px; }
}
@media (min-width: 1100px) and (max-width: 1279.98px) { .mp-logo span { display: none; } }
@media (min-width: 1280px) { .mp-me-name { display: block; } }
@media (min-width: 860px) and (max-width: 1099.98px) { .mp-main { padding-bottom: 120px; } .mp-foot { padding-bottom: 110px; } .mp-nav { left: 50%; right: auto; transform: translateX(-50%); width: min(620px, calc(100% - 20px)); } }

/* ---------- Login & code pages: split like the admin login (art left, form right) ---------- */
.mp-split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.mp-art { position: relative; overflow: hidden; color: #fff; padding: 26px 20px 30px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px;
    background: radial-gradient(600px 340px at 85% 10%, rgba(201, 162, 75, .45), transparent 60%), linear-gradient(135deg, var(--red-900), var(--red-700) 45%, var(--red)); }
.mp-art::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -260px; border-radius: 50%; opacity: .12;
    background: repeating-conic-gradient(#fff 0 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(circle, transparent 34%, #000 35%); mask: radial-gradient(circle, transparent 34%, #000 35%); animation: spin 90s linear infinite; }
.mp-art-glow { position: absolute; width: 260px; height: 260px; right: 10%; top: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(246, 220, 149, .45), transparent 70%); filter: blur(10px); animation: drift 12s ease-in-out infinite alternate; }
.mp-art-photo { position: absolute; right: -30px; top: 18px; width: 46%; max-width: 230px; aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; overflow: hidden;
    border: 5px solid rgba(255, 255, 255, .85); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); animation: float 7s ease-in-out infinite; }
.mp-art-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; animation: kb 18s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.05); } to { transform: scale(1.16) translate(-2%, 2%); } }
.mp-art-text { position: relative; z-index: 1; max-width: 58%; }
.mp-art .mp-kicker { color: var(--gold-200); font-size: 15px; }
.mp-art h2 { color: #fff; font-size: clamp(24px, 6.5vw, 40px); margin: 2px 0 8px; text-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.mp-art p { color: rgba(255, 255, 255, .88); font-size: 13.5px; max-width: 380px; }
.mp-art ul { display: none; list-style: none; padding: 0; margin: 22px 0 0; gap: 12px; }
.mp-art li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: rgba(255, 255, 255, .92); opacity: 0; transform: translateX(-12px); animation: liIn .6s var(--ease) forwards; }
.mp-art li:nth-child(2) { animation-delay: .15s; } .mp-art li:nth-child(3) { animation-delay: .3s; } .mp-art li:nth-child(4) { animation-delay: .45s; }
.mp-art li .icon { width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #f6dc95; flex: none; }
@keyframes liIn { to { opacity: 1; transform: none; } }
.mp-pane { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 26px 16px 30px; background: #fff; }
.mp-pane .mp-auth-logo img { height: 56px; }
.mp-pane .mp-auth-card { box-shadow: none; background: transparent; backdrop-filter: none; padding: 6px 4px 0; max-width: 420px; }
.mp-pane .mp-auth-card::before { display: none; }
.mp-auth .mp-bg { display: none; }
@media (min-width: 900px) {
    .mp-split { grid-template-columns: 1.1fr 1fr; }
    .mp-art { padding: 56px; min-height: 0; }
    .mp-art-photo { right: -40px; top: 44px; width: 60%; max-width: 420px; border-width: 6px; }
    .mp-art-text { max-width: 420px; }
    .mp-art ul { display: grid; }
    .mp-art p { font-size: 15px; }
    .mp-pane { padding: 40px 30px; }
    .mp-pane .mp-auth-card { text-align: left; }
    .mp-pane .mp-auth-card .mp-auth-icon { margin-left: 0; }
    .mp-pane .mp-steps { justify-content: flex-start; }
    .mp-pane .mp-otp { justify-content: flex-start; }
}
.mp-devby { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); } .mp-devby a { color: var(--red-700); font-weight: 700; letter-spacing: .08em; text-decoration: none; } .mp-devby a:hover { color: var(--red); }
