/* WPA Pool — "Match night" interface
   Felt green, rail black, ball colours. Depth from layered shadows, life from motion.
   Every class is prefixed mp- so the sheet can sit beside other site CSS. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: mp-vt-out .18s ease both; }
::view-transition-new(root) { animation: mp-vt-in .32s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mp-vt-out { to { opacity: 0; } }
@keyframes mp-vt-in { from { opacity: 0; transform: translateY(10px); } }

:root {
  --mp-primary: #0E5A45;
  --mp-primary-ink: #0A4535;
  --mp-primary-soft: #E3F1EC;
  --mp-felt: #0E5A45;
  --mp-felt-deep: #0A3F31;
  --mp-felt-line: rgba(255,255,255,.12);
  --mp-rail: #0E1621;
  --mp-ink: #0E1621;
  --mp-ink-2: #4A5563;
  --mp-ink-3: #8A94A3;
  --mp-line: #E6E9EE;
  --mp-line-2: #D3D8E0;
  --mp-bg: #F3F5F8;
  --mp-field: #F6F8FA;
  --mp-paper: #FFFFFF;
  --mp-cream: #FFF8E8;
  --mp-yellow: #FFC531;
  --mp-yellow-ink: #8A5F00;
  --mp-yellow-soft: #FFF4D2;
  --mp-red: #E5484D;
  --mp-red-soft: #FDECEC;
  --mp-blue: #3B6FE0;
  --mp-blue-soft: #EAF0FD;
  --mp-purple: #7C5CDB;
  --mp-link: #2F62D0;
  --mp-r: 10px;
  --mp-r-l: 18px;
  --mp-r-xl: 26px;
  --mp-sh-1: 0 1px 2px rgba(14,22,33,.05), 0 4px 14px -6px rgba(14,22,33,.10);
  --mp-sh-2: 0 2px 6px rgba(14,22,33,.05), 0 22px 44px -20px rgba(14,22,33,.28);
  --mp-sh-3: 0 30px 70px -24px rgba(14,22,33,.45);
  --mp-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mp-body: "Geist", "Segoe UI", Arial, sans-serif;
  --mp-spring: cubic-bezier(.34, 1.56, .64, 1);
  --mp-ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 15.5px/1.6 var(--mp-body); color: var(--mp-ink); background: var(--mp-bg); -webkit-font-smoothing: antialiased; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--mp-link); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--mp-head); font-weight: 800; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-stretch: 80%; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
h4 { font-size: .95rem; margin-top: 1.2em; }
p { margin: 0 0 .9em; }
img { max-width: 100%; }
code { font-size: .85em; background: var(--mp-bg); padding: 2px 6px; border-radius: 5px; }
::selection { background: var(--mp-yellow); color: var(--mp-ink); }
:focus-visible { outline: 3px solid var(--mp-yellow); outline-offset: 2px; border-radius: 6px; }
.mp-icon { flex: none; display: block; }
.mp-hidden { display: none !important; }
.mp-muted { color: var(--mp-ink-2); }
.mp-faint { color: var(--mp-ink-3); }
.mp-small { font-size: .86rem; }
.mp-num { font-variant-numeric: tabular-nums; }
.mp-mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; white-space: nowrap; font-weight: 600; }

/* ---------- motion ---------- */
@keyframes mp-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes mp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mp-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes mp-drop { from { opacity: 0; transform: translateY(-16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes mp-draw { to { stroke-dashoffset: 0; } }
@keyframes mp-spin { to { transform: rotate(360deg); } }
@keyframes mp-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes mp-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mp-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes mp-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,197,49,.55); } 100% { box-shadow: 0 0 0 14px rgba(255,197,49,0); } }
@keyframes mp-roll { from { transform: translateX(-60px) rotate(-300deg); } to { transform: none; } }
@keyframes mp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.mp-js [data-enter] { opacity: 0; transform: translateY(22px); }
.mp-js [data-enter].is-in { animation: mp-rise .7s var(--mp-ease) both; animation-delay: calc(var(--d, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .mp-js [data-enter] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ---------- top bar ---------- */
.mp-top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(14,22,33,.06); transition: background-color .3s, border-color .3s, color .3s; }
.mp-top__in { max-width: 1200px; margin: auto; padding: 0 28px; height: 70px; display: flex; align-items: center; gap: 28px; }
.mp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mp-ink); font: 800 1.15rem var(--mp-head); font-stretch: 85%; white-space: nowrap; letter-spacing: -.01em; }
.mp-brand img { max-height: 38px; max-width: 160px; }
.mp-brand__mark { width: 32px; height: 32px; border-radius: 50%; background: var(--mp-yellow); display: grid; place-items: center; flex: none; box-shadow: inset -3px -3px 0 rgba(0,0,0,.12); transition: transform .6s var(--mp-spring); }
.mp-brand:hover .mp-brand__mark { transform: rotate(360deg); }
.mp-brand__mark span { width: 16px; height: 16px; border-radius: 50%; background: #fff; color: var(--mp-ink); font: 800 .62rem/16px var(--mp-head); text-align: center; }
.mp-nav { display: flex; gap: 4px; }
.mp-nav a { position: relative; color: var(--mp-ink-2); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.mp-nav a:hover { color: var(--mp-ink); background: rgba(14,22,33,.05); }
.mp-nav a.is-active { color: var(--mp-ink); background: rgba(14,22,33,.06); }
.mp-top__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mp-toplink { color: var(--mp-ink-2); text-decoration: none; font-weight: 600; font-size: .94rem; background: none; border: 0; cursor: pointer; padding: 8px 4px; font-family: inherit; transition: color .2s; }
.mp-toplink:hover { color: var(--mp-ink); }
.mp-lang { appearance: none; border: 1px solid rgba(14,22,33,.12); border-radius: 999px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%234A5563' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; padding: 6px 26px 6px 12px; font: 500 .86rem var(--mp-body); color: var(--mp-ink-2); cursor: pointer; }
/* transparent header over the felt hero */
.mp-top.is-over { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mp-top.is-over .mp-brand, .mp-top.is-over .mp-toplink, .mp-top.is-over .mp-nav a { color: #fff; }
.mp-top.is-over .mp-nav a:hover, .mp-top.is-over .mp-nav a.is-active { background: rgba(255,255,255,.12); }
.mp-top.is-over .mp-lang { color: #fff; border-color: rgba(255,255,255,.3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.mp-top.is-over .mp-lang option { color: var(--mp-ink); }
.mp-top.is-over .mp-avatar { background: var(--mp-yellow); color: var(--mp-ink); }
@media (max-width: 720px) { .mp-nav, .mp-hide-sm { display: none !important; } .mp-top__in { padding: 0 18px; gap: 12px; height: 62px; } }

/* account menu */
.mp-menu { position: relative; }
.mp-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--mp-ink); color: #fff; display: grid; place-items: center; font: 700 .78rem var(--mp-body); letter-spacing: .03em; border: 0; cursor: pointer; flex: none; transition: transform .2s var(--mp-spring); }
.mp-avatar:hover { transform: scale(1.06); }
.mp-menu__list { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--mp-paper); border: 1px solid var(--mp-line); border-radius: 14px; box-shadow: var(--mp-sh-2); padding: 6px; z-index: 50;
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right; visibility: hidden; transition: opacity .18s, transform .25s var(--mp-spring), visibility 0s .2s; }
.mp-menu.is-open .mp-menu__list { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mp-menu--up .mp-menu__list { top: auto; bottom: calc(100% + 10px); left: 0; right: auto; transform-origin: bottom left; }
.mp-menu__head { padding: 10px 12px; border-bottom: 1px solid var(--mp-line); margin-bottom: 4px; }
.mp-menu__head b { display: block; font-weight: 600; color: var(--mp-ink); }
.mp-menu__head span { font-size: .8rem; color: var(--mp-ink-3); overflow-wrap: anywhere; }
.mp-menu__list a, .mp-menu__list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; border: 0; background: none; font: 500 .92rem var(--mp-body); color: var(--mp-ink); text-decoration: none; cursor: pointer; text-align: left; transition: background-color .15s; }
.mp-menu__list a:hover, .mp-menu__list button:hover { background: var(--mp-bg); }
.mp-menu__list .mp-icon { color: var(--mp-ink-3); }

/* ---------- layout ---------- */
.mp-main { max-width: 1200px; margin: 0 auto; padding: 44px 28px 96px; position: relative; }
.mp-panel { background: var(--mp-paper); border: 1px solid rgba(14,22,33,.06); border-radius: var(--mp-r-l); padding: 30px; box-shadow: var(--mp-sh-1); }
.mp-panel + .mp-panel { margin-top: 18px; }
@media (max-width: 600px) { .mp-main { padding: 28px 16px 72px; } .mp-panel { padding: 22px; } }
.mp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.mp-cols--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mp-cols > .mp-panel + .mp-panel, .mp-cols > * + aside, [style*="display:grid"] > * + .mp-panel { margin-top: 0; }
.mp-sticky { position: sticky; top: 96px; }
@media (max-width: 960px) { .mp-cols, .mp-cols--even { grid-template-columns: 1fr; } .mp-sticky { position: static; } }
.mp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.mp-head h1 { margin: 0; }
.mp-head p { margin: 8px 0 0; color: var(--mp-ink-2); }
.mp-crumbs { font-size: .86rem; color: var(--mp-ink-3); margin-bottom: 10px; }
.mp-crumbs a { color: inherit; text-decoration: none; transition: color .2s; }
.mp-crumbs a:hover { color: var(--mp-ink); }
.mp-section { margin-top: 96px; }
.mp-kicker { display: inline-block; font: 700 .78rem var(--mp-body); letter-spacing: .08em; text-transform: uppercase; color: var(--mp-primary); margin-bottom: 10px; }
.mp-section > h2, .mp-bigtitle { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-stretch: 78%; font-weight: 800; margin-bottom: 10px; letter-spacing: -.015em; }
.mp-section > p.mp-muted { font-size: 1.05rem; margin-bottom: 32px; max-width: 56ch; }
.mp-footer { background: var(--mp-rail); color: #9AA6B4; }
.mp-footer__in { max-width: 1200px; margin: auto; padding: 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem; }
.mp-footer a { color: #fff; }

/* band behind page headers (application flow, member area) */
.mp-band { background: var(--mp-felt); height: 300px; margin-bottom: -300px; position: relative; overflow: hidden; }
.mp-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0); background-size: 22px 22px; }
.mp-band + .mp-main { padding-top: 40px; }
.mp-onband > * > .mp-crumbs, .mp-onband > * > * > .mp-crumbs, .mp-onband .mp-crumbs a { color: rgba(255,255,255,.7); }
.mp-onband .mp-crumbs a:hover { color: #fff; }
.mp-onband > .mp-flowhead h1, .mp-onband > .mp-head h1, .mp-onband > .mp-section-title h2 { color: #fff; }
.mp-onband > .mp-head p { color: rgba(255,255,255,.75); }
.mp-onband > .mp-head p a { color: var(--mp-yellow); }
.mp-onband > .mp-head .mp-btn--ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }

/* ---------- toasts ---------- */
.mp-toasts { position: fixed; top: 86px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.mp-toast { display: flex; gap: 12px; align-items: center; background: var(--mp-ink); color: #fff; padding: 12px 14px 12px 12px; border-radius: 14px; font-size: .93rem; line-height: 1.45; box-shadow: var(--mp-sh-3); animation: mp-drop .5s var(--mp-spring) both; transition: opacity .25s, transform .3s; }
.mp-toast > .mp-icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--mp-yellow); color: var(--mp-ink); }
.mp-toast__text { flex: 1; }
.mp-toast__close { border: 0; background: none; color: #8C97A6; cursor: pointer; padding: 2px; transition: color .2s; }
.mp-toast__close:hover { color: #fff; }
.mp-toast.is-leaving { opacity: 0; transform: translateY(-12px) scale(.96); }
.mp-alert, .mp-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; font-size: .94rem; }
.mp-alert { background: var(--mp-red-soft); color: #A32A2E; animation: mp-pop .35s var(--mp-spring) both; }
.mp-note { background: var(--mp-paper); color: var(--mp-ink-2); box-shadow: var(--mp-sh-1); }
.mp-note--ok { background: var(--mp-primary-soft); color: var(--mp-primary-ink); box-shadow: none; }
.mp-note--warn { background: var(--mp-yellow-soft); color: var(--mp-yellow-ink); box-shadow: none; }
.mp-alert .mp-icon, .mp-note .mp-icon { margin-top: 2px; }
.mp-note b { color: inherit; }

/* ---------- home hero ---------- */
.mp-hero-wrap { background: var(--mp-felt); color: #fff; margin-top: -70px; padding-top: 70px; position: relative; overflow: hidden; }
.mp-hero-wrap::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0); background-size: 22px 22px; pointer-events: none; }
.mp-hero { max-width: 1200px; margin: 0 auto; padding: 56px 28px 120px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; position: relative; }
@media (max-width: 960px) { .mp-hero { grid-template-columns: 1fr; padding-bottom: 110px; } }
.mp-hero h1 { font-size: clamp(2.8rem, 6.2vw, 5.2rem); font-stretch: 70%; font-weight: 900; line-height: .92; letter-spacing: -.02em; margin-bottom: 22px; color: #fff; }
.mp-hero h1 em { font-style: normal; color: var(--mp-yellow); position: relative; white-space: nowrap; }
.mp-hero p { font-size: 1.12rem; color: rgba(255,255,255,.78); max-width: 42ch; margin-bottom: 30px; }
.mp-hero__links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mp-hero__trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; font-size: .88rem; color: rgba(255,255,255,.7); }
.mp-hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.mp-hero__trust .mp-icon { color: var(--mp-yellow); }
.mp-table-wrap { position: relative; }
.mp-pool { width: 100%; aspect-ratio: 2 / 1.12; display: block; border-radius: 22px; cursor: crosshair; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); touch-action: manipulation; }
.mp-table-hint { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); font-size: .82rem; color: rgba(255,255,255,.65); white-space: nowrap; display: flex; gap: 14px; align-items: center; }
.mp-table-hint button { border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; border-radius: 999px; padding: 4px 12px; font: 600 .78rem var(--mp-body); cursor: pointer; transition: background-color .2s; }
.mp-table-hint button:hover { background: rgba(255,255,255,.12); }

/* how it works overlapping hero */
.mp-how { list-style: none; margin: -76px auto 0; padding: 0 28px; max-width: 1200px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; z-index: 2; }
.mp-how li { background: var(--mp-paper); border-radius: var(--mp-r-l); padding: 24px; box-shadow: var(--mp-sh-2); transition: transform .35s var(--mp-spring), box-shadow .3s; }
.mp-how li:hover { transform: translateY(-6px); box-shadow: var(--mp-sh-3); }
.mp-how b { display: block; font: 800 1.08rem var(--mp-head); margin: 14px 0 6px; }
.mp-how span { font-size: .92rem; color: var(--mp-ink-2); }
.mp-how .mp-ball { width: 42px; height: 42px; }
@media (max-width: 900px) { .mp-how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mp-how { grid-template-columns: 1fr; } }

/* membership plans */
.mp-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.mp-plan { --c: var(--mp-yellow); background: var(--mp-paper); border-radius: var(--mp-r-xl); padding: 0; display: flex; flex-direction: column; box-shadow: var(--mp-sh-1); overflow: hidden; transition: transform .4s var(--mp-spring), box-shadow .3s; }
.mp-plan:hover { transform: translateY(-8px); box-shadow: var(--mp-sh-3); }
.mp-plan__top { background: var(--c); padding: 22px 26px; position: relative; overflow: hidden; min-height: 120px; color: var(--mp-ink); }
.mp-plan__top.is-dark { color: #fff; }
.mp-plan__num { position: absolute; right: -10px; bottom: -46px; font: 900 10rem/1 var(--mp-head); font-stretch: 70%; color: rgba(255,255,255,.22); transition: transform .5s var(--mp-spring); }
.mp-plan:hover .mp-plan__num { transform: translateY(-8px) rotate(-6deg); }
.mp-plan__meta { display: inline-block; font: 700 .72rem var(--mp-body); letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.85); color: var(--mp-ink); padding: 4px 10px; border-radius: 999px; }
.mp-plan h3 { font-size: 1.6rem; font-stretch: 78%; font-weight: 800; margin: 14px 0 0; position: relative; }
.mp-plan__body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.mp-plan__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.mp-plan__price b { font: 900 2.4rem var(--mp-head); font-stretch: 75%; letter-spacing: -.02em; }
.mp-plan__price span { color: var(--mp-ink-3); font-size: .9rem; }
.mp-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: .94rem; color: var(--mp-ink-2); }
.mp-list li { padding-left: 28px; position: relative; }
.mp-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--mp-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%230E5A45' stroke-width='4'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center; }
.mp-plan .mp-btn { margin-top: auto; }

/* faq */
.mp-faq { display: grid; gap: 12px; max-width: 820px; }
.mp-faq details { background: var(--mp-paper); border-radius: 16px; box-shadow: var(--mp-sh-1); overflow: hidden; transition: box-shadow .3s; interpolate-size: allow-keywords; }
.mp-faq details[open] { box-shadow: var(--mp-sh-2); }
.mp-faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mp-faq summary::-webkit-details-marker { display: none; }
.mp-faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mp-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E1621' stroke-width='3'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") no-repeat center; transition: transform .35s var(--mp-spring), background-color .2s; }
.mp-faq details[open] summary::after { transform: rotate(135deg); background-color: var(--mp-yellow); }
.mp-faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--mp-ease), content-visibility .35s allow-discrete; }
.mp-faq details[open]::details-content { block-size: auto; }
.mp-faq details p { color: var(--mp-ink-2); margin: 0; padding: 0 22px 20px; max-width: 64ch; }
.mp-cta { margin-top: 96px; background: var(--mp-ink); color: #fff; border-radius: var(--mp-r-xl); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.mp-cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-stretch: 78%; margin: 0 0 6px; color: #fff; }
.mp-cta p { margin: 0; color: #A9B4C1; }
.mp-cta__balls { position: absolute; right: 30%; top: -30px; display: flex; gap: 10px; opacity: .9; pointer-events: none; }

/* ---------- application flow ---------- */
.mp-flowhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.mp-flowhead h1 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.mp-steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.mp-steps::before, .mp-steps::after { content: ""; position: absolute; top: 19px; left: 19px; right: calc(25% - 19px); height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); }
.mp-steps::after { background: var(--mp-yellow); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--mp-ease) .25s; }
.mp-js.mp-ready .mp-steps::after { transform: scaleX(var(--p, 0)); }
.mp-step { position: relative; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.6); }
.mp-step__dot { width: 42px; height: 42px; border-radius: 50%; background: var(--mp-felt-deep); border: 2px solid rgba(255,255,255,.25); display: grid; place-items: center; position: relative; z-index: 1; font: 800 .9rem var(--mp-head); color: rgba(255,255,255,.7); transition: background-color .3s, border-color .3s; }
.mp-step.is-done .mp-step__dot { background: var(--mp-yellow); border-color: var(--mp-yellow); color: var(--mp-ink); }
.mp-step.is-current .mp-step__dot { background: #fff; border-color: #fff; color: var(--mp-ink); animation: mp-pulse 1.8s ease-out infinite; }
.mp-step.is-current .mp-step__dot span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--mp-ink); color: #fff; font-size: .72rem; }
.mp-js.mp-ready .mp-step.is-current .mp-step__dot { animation: mp-roll .9s var(--mp-ease) both, mp-pulse 1.8s ease-out 1s infinite; }
.mp-step b { display: block; font-weight: 600; color: inherit; }
.mp-step small { font-size: .78rem; opacity: .8; }
.mp-step.is-done, .mp-step.is-current { color: #fff; }
.mp-step a { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.mp-step a:hover b { text-decoration: underline; }
@media (max-width: 600px) { .mp-step small, .mp-step b { display: none; } .mp-step.is-current b { display: block; position: absolute; top: 48px; left: 0; white-space: nowrap; } .mp-steps { margin-bottom: 52px; } }

/* ticket summary */
.mp-summary { padding: 0; overflow: visible; box-shadow: var(--mp-sh-2); }
.mp-summary__top { padding: 22px 24px; display: flex; gap: 14px; align-items: center; position: relative; }
.mp-summary__top::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; border-bottom: 2px dashed var(--mp-line-2); }
.mp-summary__top::before { content: ""; position: absolute; left: -11px; right: -11px; bottom: -11px; height: 22px; background: radial-gradient(circle at 11px 11px, var(--mp-bg) 10px, transparent 11px) left / 22px 22px no-repeat, radial-gradient(circle at 11px 11px, var(--mp-bg) 10px, transparent 11px) right / 22px 22px no-repeat; }
.mp-summary__body { padding: 20px 24px 24px; }
.mp-row-kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .93rem; color: var(--mp-ink-2); }
.mp-row-kv b { color: var(--mp-ink); font-weight: 600; text-align: right; }
.mp-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 20px; padding: 16px; border-radius: 14px; background: var(--mp-bg); font-weight: 600; }
.mp-total b { font: 900 1.9rem var(--mp-head); font-stretch: 75%; }
.mp-help-box { padding: 14px 24px; border-top: 1px solid var(--mp-line); font-size: .85rem; color: var(--mp-ink-2); border-radius: 0 0 var(--mp-r-l) var(--mp-r-l); }

.mp-ball { --c: var(--mp-yellow); width: 44px; height: 44px; border-radius: 50%; background: var(--c); display: grid; place-items: center; flex: none; box-shadow: inset -4px -4px 0 rgba(0,0,0,.14); position: relative; }
.mp-ball::after { content: ""; position: absolute; top: 18%; left: 22%; width: 18%; height: 18%; border-radius: 50%; background: rgba(255,255,255,.55); }
.mp-ball span { width: 46%; height: 46%; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 800 .66rem var(--mp-head); color: var(--mp-ink); position: relative; z-index: 1; }
.mp-ball--sm { width: 30px; height: 30px; } .mp-ball--sm span { font-size: .52rem; }

.mp-currency { display: inline-flex; background: var(--mp-bg); border-radius: 999px; padding: 4px; position: relative; }
.mp-currency a { position: relative; z-index: 1; padding: 7px 16px; text-decoration: none; color: var(--mp-ink-2); font-weight: 600; font-size: .86rem; border-radius: 999px; transition: color .2s, background-color .2s; }
.mp-currency a:hover { color: var(--mp-ink); }
.mp-currency a.is-active { background: var(--mp-ink); color: #fff; box-shadow: var(--mp-sh-1); }
.mp-desc { color: var(--mp-ink-2); max-width: 66ch; font-size: 1rem; }
.mp-desc strong { color: var(--mp-ink); }
.mp-desc h4 { color: var(--mp-ink); font: 800 1.05rem var(--mp-head); margin-top: 1.6em; }
.mp-desc ul { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.mp-desc li { padding-left: 28px; position: relative; }
.mp-desc li::before { content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--mp-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%230E5A45' stroke-width='4'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center; }

/* tabs with sliding pill */
.mp-tabs2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--mp-bg); border-radius: 14px; padding: 5px; margin-bottom: 26px; position: relative; }
.mp-tabs2::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); background: var(--mp-paper); border-radius: 10px; box-shadow: var(--mp-sh-1); transition: transform .4s var(--mp-spring); }
.mp-tabs2.is-second::before { transform: translateX(100%); }
.mp-tabs2 button { position: relative; z-index: 1; border: 0; background: none; padding: 11px; font: 600 .94rem var(--mp-body); color: var(--mp-ink-3); cursor: pointer; transition: color .2s; }
.mp-tabs2 button.is-active { color: var(--mp-ink); }
[data-panel] { animation: mp-fade .35s both; }

.mp-fsec { padding: 4px 0 6px; }
.mp-fsec + .mp-fsec { margin-top: 18px; padding-top: 28px; border-top: 1px solid var(--mp-line); }
.mp-fsec > h2 { font-size: 1.15rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.mp-fsec > h2::before { content: counter(sec); counter-increment: sec; width: 28px; height: 28px; border-radius: 50%; background: var(--mp-ink); color: #fff; display: grid; place-items: center; font: 800 .78rem var(--mp-head); }
#mp-details { counter-reset: sec; }
.mp-progress { height: 8px; border-radius: 8px; background: var(--mp-bg); overflow: hidden; margin: 10px 0 6px; }
.mp-progress i { display: block; height: 100%; background: var(--mp-primary); border-radius: 8px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--mp-spring); }
.mp-ring { width: 64px; height: 64px; flex: none; }
.mp-ring circle { fill: none; stroke-width: 7; }
.mp-ring .bg { stroke: var(--mp-bg); }
.mp-ring .fg { stroke: var(--mp-primary); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .7s var(--mp-spring); }

/* ---------- forms ---------- */
.mp-field { margin-bottom: 20px; }
.mp-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.mp-opt { font-weight: 400; color: var(--mp-ink-3); margin-left: 4px; }
.mp-req { color: var(--mp-red); margin-left: 2px; }
.mp-help { font-size: .84rem; color: var(--mp-ink-3); margin-top: 6px; }
.mp-input, .mp-select, .mp-textarea { width: 100%; font: inherit; font-size: .97rem; padding: 12px 15px; min-height: 50px; border: 1.5px solid transparent; border-radius: 12px; background-color: var(--mp-field); color: var(--mp-ink); transition: border-color .2s, background-color .2s, box-shadow .25s; }
.mp-input::placeholder, .mp-textarea::placeholder { color: #A3ACB8; }
.mp-input:hover, .mp-select:hover, .mp-textarea:hover { background-color: #EEF1F5; }
.mp-input:focus, .mp-select:focus, .mp-textarea:focus { outline: 0; border-color: var(--mp-primary); background-color: var(--mp-paper); box-shadow: 0 0 0 4px rgba(14,90,69,.12); }
.mp-textarea { min-height: 120px; resize: vertical; }
.mp-select { appearance: none; padding-right: 40px; background: var(--mp-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5563' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 15px center; }
.mp-field.has-error .mp-input, .mp-field.has-error .mp-select, .mp-field.has-error .mp-textarea { border-color: var(--mp-red); background-color: #FFF8F8; }
.mp-field.has-error .mp-drop, .mp-field.has-error .mp-agree { border-color: var(--mp-red); }
.mp-field.is-shake { animation: mp-shake .4s; }
.mp-err { display: flex; align-items: center; gap: 6px; color: var(--mp-red); font-size: .85rem; margin-top: 6px; font-weight: 500; animation: mp-pop .3s var(--mp-spring) both; }
.mp-err::before { content: "!"; width: 16px; height: 16px; border-radius: 50%; background: var(--mp-red); color: #fff; font: 800 .68rem/16px var(--mp-body); text-align: center; }
.mp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .mp-row { grid-template-columns: 1fr; } }
.mp-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .95rem; margin-bottom: 6px; }
.mp-check input { margin: 2px 0 0; width: 20px; height: 20px; accent-color: var(--mp-primary); flex: none; cursor: pointer; }
.mp-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-choices .mp-check { border: 1.5px solid var(--mp-line); background: var(--mp-paper); border-radius: 999px; padding: 9px 16px 9px 12px; margin: 0; align-items: center; font-weight: 500; transition: border-color .2s, background-color .2s, transform .25s var(--mp-spring); }
.mp-choices .mp-check input { margin: 0; width: 18px; height: 18px; }
.mp-choices .mp-check:hover { border-color: var(--mp-line-2); transform: translateY(-2px); }
.mp-choices .mp-check:has(input:checked) { border-color: var(--mp-primary); background: var(--mp-primary-soft); color: var(--mp-primary-ink); }
.mp-agree { border: 1.5px solid var(--mp-line); background: var(--mp-field); border-radius: 14px; padding: 16px 18px; margin: 0; transition: border-color .2s, background-color .2s; }
.mp-agree:has(input:checked) { border-color: var(--mp-primary); background: var(--mp-primary-soft); }
.mp-phone { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.mp-pw { position: relative; }
.mp-pw .mp-input { padding-right: 72px; }
.mp-pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--mp-paper); color: var(--mp-ink); font: 600 .8rem var(--mp-body); cursor: pointer; padding: 6px 10px; border-radius: 8px; box-shadow: var(--mp-sh-1); }
.mp-meter { height: 5px; background: var(--mp-bg); border-radius: 5px; margin-top: 10px; overflow: hidden; }
.mp-meter i { display: block; height: 100%; width: 100%; background: var(--mp-red); transform-origin: left; transform: scaleX(0); transition: transform .45s var(--mp-spring), background-color .3s; border-radius: 5px; }
.mp-rules { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .78rem; color: var(--mp-ink-3); }
.mp-rules li { padding: 3px 10px; border-radius: 999px; background: var(--mp-bg); transition: color .2s, background-color .2s, transform .3s var(--mp-spring); }
.mp-rules li.ok { color: var(--mp-primary-ink); background: var(--mp-primary-soft); transform: scale(1.04); }
.mp-rules li.ok::before { content: "✓ "; }
.mp-switch { font-size: .88rem; margin: -8px 0 18px; }

/* upload */
.mp-drop { position: relative; border: 2px dashed var(--mp-line-2); border-radius: 16px; padding: 18px; display: flex; align-items: center; gap: 16px; background: var(--mp-field); transition: border-color .2s, background-color .2s, transform .3s var(--mp-spring); }
.mp-drop:hover, .mp-drop.is-over { border-color: var(--mp-primary); background: var(--mp-primary-soft); }
.mp-drop.is-over { transform: scale(1.01); }
.mp-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.mp-drop__thumb { width: 54px; height: 54px; border-radius: 12px; background: var(--mp-paper); display: grid; place-items: center; color: var(--mp-ink-3); flex: none; overflow: hidden; box-shadow: var(--mp-sh-1); transition: transform .4s var(--mp-spring); }
.mp-drop:hover .mp-drop__thumb { transform: translateY(-3px) rotate(-4deg); }
.mp-drop__thumb img { width: 100%; height: 100%; object-fit: cover; animation: mp-pop .4s var(--mp-spring) both; }
.mp-drop__text { min-width: 0; }
.mp-drop__text b { display: block; font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-drop__text span { font-size: .83rem; color: var(--mp-ink-3); }
.mp-drop.has-file { border-style: solid; border-color: var(--mp-primary); background: var(--mp-paper); }
.mp-drop.has-file .mp-drop__thumb { color: #fff; background: var(--mp-primary); }
.mp-drop__view { position: relative; z-index: 2; margin-left: auto; font-size: .86rem; font-weight: 600; }

/* ---------- buttons ---------- */
.mp-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem var(--mp-body); min-height: 46px; padding: 11px 22px; border-radius: 12px; overflow: hidden;
  border: 0; background: var(--mp-ink); color: #fff; text-decoration: none; cursor: pointer; transition: transform .25s var(--mp-spring), box-shadow .25s, background-color .2s, color .2s; white-space: nowrap; box-shadow: 0 1px 2px rgba(14,22,33,.12); isolation: isolate; }
.mp-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(14,22,33,.45); background: #1C2836; }
.mp-btn:active { transform: translateY(0) scale(.98); }
.mp-btn .mp-icon { transition: transform .3s var(--mp-spring); }
.mp-btn:hover .mp-icon { transform: translateX(2px); }
.mp-btn--yellow { background: var(--mp-yellow); color: var(--mp-ink); }
.mp-btn--yellow:hover { background: #FFD058; box-shadow: 0 14px 28px -12px rgba(255,197,49,.7); }
.mp-btn--green { background: var(--mp-primary); }
.mp-btn--green:hover { background: var(--mp-primary-ink); box-shadow: 0 14px 28px -12px rgba(14,90,69,.6); }
.mp-btn--ghost { background: var(--mp-paper); color: var(--mp-ink); box-shadow: inset 0 0 0 1.5px var(--mp-line-2); }
.mp-btn--ghost:hover { background: var(--mp-paper); box-shadow: inset 0 0 0 1.5px var(--mp-ink), 0 10px 20px -12px rgba(14,22,33,.3); }
.mp-btn--light { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.mp-btn--light:hover { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1.5px #fff; }
.mp-btn--dark { background: var(--mp-ink); }
.mp-btn--danger { background: var(--mp-paper); color: var(--mp-red); box-shadow: inset 0 0 0 1.5px #F3C3C5; }
.mp-btn--danger:hover { background: var(--mp-red-soft); box-shadow: inset 0 0 0 1.5px var(--mp-red); }
.mp-btn--block { width: 100%; }
.mp-btn--sm { min-height: 34px; padding: 6px 14px; font-size: .85rem; border-radius: 10px; }
.mp-btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.02rem; border-radius: 14px; }
.mp-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.mp-btn .mp-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.35); animation: mp-ripple .6s ease-out; pointer-events: none; z-index: -1; }
.mp-btn--ghost .mp-ripple, .mp-btn--yellow .mp-ripple, .mp-btn--danger .mp-ripple { background: rgba(14,22,33,.12); }
@keyframes mp-ripple { to { transform: scale(4); opacity: 0; } }
.mp-btn.is-loading { color: transparent !important; pointer-events: none; }
.mp-btn.is-loading .mp-icon { opacity: 0; }
.mp-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: mp-spin .7s linear infinite; }
.mp-btn--ghost.is-loading::after, .mp-btn--yellow.is-loading::after, .mp-btn--danger.is-loading::after { border-color: rgba(14,22,33,.15); border-top-color: var(--mp-ink); }
.mp-linkbtn { border: 0; background: none; color: var(--mp-link); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.mp-linkbtn:hover { text-decoration: underline; }
.mp-linkbtn--muted { color: var(--mp-ink-2); font-weight: 500; }
.mp-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--mp-line); }
.mp-spacer { flex: 1; }
.mp-saved { font-size: .83rem; color: var(--mp-ink-3); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 960px) {
  .mp-actions--sticky { position: sticky; bottom: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); margin: 26px -30px -30px; padding: 14px 30px; border-top: 1px solid var(--mp-line); border-radius: 0 0 var(--mp-r-l) var(--mp-r-l); z-index: 5; }
}
@media (max-width: 600px) { .mp-actions--sticky { margin: 22px -22px -22px; padding: 12px 22px; } .mp-actions--sticky .mp-saved, .mp-actions--sticky .mp-hide-sm { display: none; } .mp-actions--sticky .mp-btn--lg { width: 100%; } }

/* ---------- status ---------- */
.mp-status { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem var(--mp-body); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.mp-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mp-status--draft, .mp-status--unpaid, .mp-status--not_required, .mp-status--member { color: var(--mp-ink-2); background: var(--mp-bg); }
.mp-status--submitted, .mp-status--changes { color: var(--mp-yellow-ink); background: var(--mp-yellow-soft); }
.mp-status--submitted::before { animation: mp-blink 1.6s ease-in-out infinite; }
@keyframes mp-blink { 50% { opacity: .3; } }
.mp-status--approved, .mp-status--active, .mp-status--paid { color: var(--mp-primary-ink); background: var(--mp-primary-soft); }
.mp-status--rejected, .mp-status--revoked, .mp-status--expired { color: #B42B30; background: var(--mp-red-soft); }
.mp-status--super, .mp-status--admin, .mp-status--subadmin { color: #2849A8; background: var(--mp-blue-soft); }

/* ---------- tables & boxes ---------- */
.mp-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.mp-table th { text-align: left; font: 600 .74rem var(--mp-body); letter-spacing: .06em; text-transform: uppercase; color: var(--mp-ink-3); padding: 12px 20px; border-bottom: 1px solid var(--mp-line); white-space: nowrap; background: #FAFBFC; }
.mp-table td { border-bottom: 1px solid var(--mp-line); padding: 14px 20px; vertical-align: middle; white-space: nowrap; }
.mp-table td.mp-wrap { white-space: normal; }
.mp-table tbody tr { transition: background-color .15s; }
.mp-table tbody tr:hover td { background: #F8FAFB; }
.mp-table tbody tr:last-child td { border-bottom: 0; }
.mp-table tr[data-href] { cursor: pointer; }
.mp-table tr[data-href]:hover td:first-child { box-shadow: inset 3px 0 0 var(--mp-yellow); }
.mp-table .num { text-align: right; }
.mp-table a { font-weight: 600; text-decoration: none; color: var(--mp-ink); }
.mp-table a:hover { color: var(--mp-link); }
.mp-table a.mp-btn, .mp-table a.mp-btn:hover { color: #fff; }
.mp-table a.mp-btn--ghost, .mp-table a.mp-btn--ghost:hover { color: var(--mp-ink); }
.mp-scroll { overflow-x: auto; }
.mp-box { background: var(--mp-paper); border-radius: var(--mp-r-l); overflow: hidden; box-shadow: var(--mp-sh-1); border: 1px solid rgba(14,22,33,.05); }
.mp-box__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--mp-line); }
.mp-box__head h2 { margin: 0; font-size: 1.05rem; }
.mp-box__head a, .mp-box__head span { font-size: .86rem; }
.mp-box__head a { font-weight: 600; text-decoration: none; }
.mp-box__body { padding: 22px; }
.mp-person { display: flex; align-items: center; gap: 12px; }
.mp-person__av { --c: var(--mp-blue); width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 700 .72rem var(--mp-body); flex: none; }
.mp-person b { display: block; font-weight: 600; line-height: 1.3; }
.mp-person small { color: var(--mp-ink-3); font-size: .82rem; }
.mp-empty { text-align: center; padding: 56px 20px; color: var(--mp-ink-2); }
.mp-empty b { display: block; color: var(--mp-ink); margin-bottom: 6px; font: 800 1.2rem var(--mp-head); }
.mp-empty .mp-btn { margin-top: 18px; }
.mp-empty::before { content: ""; display: block; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--mp-yellow); box-shadow: inset -6px -6px 0 rgba(0,0,0,.12); animation: mp-float 3s ease-in-out infinite; }
.mp-dl { display: grid; grid-template-columns: minmax(130px, 36%) 1fr; margin: 0; }
.mp-dl dt, .mp-dl dd { padding: 12px 0; border-bottom: 1px solid var(--mp-line); margin: 0; }
.mp-dl dt { color: var(--mp-ink-3); font-size: .9rem; }
.mp-dl dd { overflow-wrap: anywhere; font-weight: 500; }
.mp-dl > :nth-last-child(-n+2) { border-bottom: 0; }
.mp-rsec { padding: 22px 0; border-top: 1px solid var(--mp-line); }
.mp-rsec:first-of-type { border-top: 0; padding-top: 0; }
.mp-rsec__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mp-rsec__head h3 { margin: 0; font-size: 1.05rem; }
.mp-rsec__head a { font-size: .85rem; font-weight: 600; text-decoration: none; padding: 5px 12px; border-radius: 999px; background: var(--mp-bg); color: var(--mp-ink); transition: background-color .2s; }
.mp-rsec__head a:hover { background: var(--mp-line); }
.mp-docs { display: flex; gap: 12px; flex-wrap: wrap; }
.mp-doc { display: flex; gap: 12px; align-items: center; background: var(--mp-field); border-radius: 14px; padding: 8px 14px 8px 8px; text-decoration: none; color: var(--mp-ink); font-size: .88rem; transition: transform .3s var(--mp-spring), box-shadow .3s; max-width: 100%; }
a.mp-doc:hover { transform: translateY(-3px); box-shadow: var(--mp-sh-2); }
.mp-doc img, .mp-doc .mp-drop__thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.mp-doc small { display: block; color: var(--mp-ink-3); }

/* ---------- modal & palette ---------- */
.mp-modal { border: 0; padding: 0; border-radius: 22px; width: min(440px, calc(100vw - 24px)); color: var(--mp-ink); box-shadow: var(--mp-sh-3); }
.mp-modal::backdrop { background: rgba(14, 22, 33, .55); backdrop-filter: blur(4px); }
.mp-modal[open] { animation: mp-pop .4s var(--mp-spring) both; }
.mp-modal[open]::backdrop { animation: mp-fade .3s both; }
.mp-modal__in { padding: 32px; }
.mp-modal__close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mp-bg); cursor: pointer; color: var(--mp-ink-2); display: grid; place-items: center; transition: background-color .2s, transform .3s var(--mp-spring); }
.mp-modal__close:hover { background: var(--mp-line); transform: rotate(90deg); }
.mp-modal h2 { font: 800 1.7rem var(--mp-head); font-stretch: 80%; margin-bottom: 4px; padding-right: 36px; }
.mp-modal__lede { color: var(--mp-ink-2); font-size: .95rem; margin-bottom: 22px; }
.mp-modal .mp-actions { border-top: 0; padding-top: 0; justify-content: flex-end; margin-top: 22px; }
.mp-or { display: flex; align-items: center; gap: 12px; color: var(--mp-ink-3); font-size: .82rem; margin: 20px 0 14px; }
.mp-or::before, .mp-or::after { content: ""; flex: 1; height: 1px; background: var(--mp-line); }
.mp-social { display: grid; gap: 8px; }
.mp-palette { width: min(620px, calc(100vw - 24px)); margin-top: 12vh; }
.mp-palette .mp-modal__in { padding: 0; }
.mp-palette__input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--mp-line); }
.mp-palette__input input { flex: 1; border: 0; outline: 0; font: 500 1.08rem var(--mp-body); background: none; }
.mp-palette__input kbd, .mp-kbd { font: 600 .72rem var(--mp-body); background: var(--mp-bg); border-radius: 6px; padding: 3px 7px; color: var(--mp-ink-2); border: 1px solid var(--mp-line); }
.mp-palette ul { list-style: none; margin: 0; padding: 8px; max-height: 360px; overflow-y: auto; }
.mp-palette li a { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: var(--mp-ink); font-weight: 500; }
.mp-palette li a .mp-icon { color: var(--mp-ink-3); }
.mp-palette li a small { margin-left: auto; color: var(--mp-ink-3); }
.mp-palette li.is-active a { background: var(--mp-ink); color: #fff; }
.mp-palette li.is-active a .mp-icon, .mp-palette li.is-active a small { color: rgba(255,255,255,.7); }

/* ---------- confirmation ---------- */
.mp-done { max-width: 660px; margin: 0 auto; text-align: center; }
.mp-done__mark { width: 96px; height: 96px; display: block; margin: 8px auto 22px; }
.mp-done__mark circle { fill: var(--mp-yellow); transform-origin: center; animation: mp-pop .6s var(--mp-spring) both; }
.mp-done__mark path { fill: none; stroke: var(--mp-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: mp-draw .5s var(--mp-ease) .45s forwards; }
.mp-done--bad .mp-done__mark circle { fill: var(--mp-red-soft); } .mp-done--bad .mp-done__mark path { stroke: var(--mp-red); }
.mp-done h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-stretch: 72%; }
.mp-done .mp-panel, .mp-done .mp-next { text-align: left; }
.mp-next { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: n; }
.mp-next li { counter-increment: n; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--mp-paper); border-radius: 16px; box-shadow: var(--mp-sh-1); color: var(--mp-ink-2); font-size: .94rem; }
.mp-next li::before { content: counter(n); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--mp-ink); color: #fff; display: grid; place-items: center; font: 800 .85rem var(--mp-head); }
.mp-next b { color: var(--mp-ink); display: block; }
.mp-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ---------- member area ---------- */
.mp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.mp-tilt { perspective: 900px; }
.mp-card-m { background: var(--mp-rail); color: #E9EEF2; border-radius: 22px; padding: 26px 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 216px; box-shadow: var(--mp-sh-3); transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
.mp-card-m::before { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--mp-felt); }
.mp-card-m::after { content: ""; position: absolute; left: 28px; bottom: 0; width: 64px; height: 5px; border-radius: 5px 5px 0 0; background: var(--mp-yellow); }
.mp-card-m > * { position: relative; z-index: 1; }
.mp-card-m__ball { position: absolute !important; right: 24px; top: 24px; transform: translateZ(40px); }
.mp-card-m small { color: #8C98A6; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.mp-card-m h3 { font: 800 1.45rem var(--mp-head); font-stretch: 78%; color: #fff; margin: 6px 0 0; max-width: 70%; }
.mp-card-m__no { font: 700 1.5rem var(--mp-head); letter-spacing: .14em; color: #fff; margin-top: auto; padding-top: 26px; font-variant-numeric: tabular-nums; transform: translateZ(30px); }
.mp-card-m__foot { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; color: #B9C4CE; margin-top: 6px; max-width: 72%; }
.mp-card-m__foot a { color: var(--mp-yellow); }
.mp-card-m.is-off { background: #4A5662; }
.mp-card-m.is-off::after { background: var(--mp-red); }
.mp-card-ph { border: 2px dashed rgba(255,255,255,.35); border-radius: 22px; padding: 26px 28px; min-height: 216px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.75); font-size: .92rem; }
.mp-card-ph b { display: block; color: #fff; font: 800 1.2rem var(--mp-head); margin-bottom: 4px; }
.mp-todo { list-style: none; padding: 0; margin: 0; }
.mp-todo li { display: flex; gap: 18px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--mp-line); flex-wrap: wrap; transition: background-color .2s; }
.mp-todo li:hover { background: #FAFBFC; }
.mp-todo li:first-child { border-top: 0; }
.mp-todo__text { flex: 1; min-width: 220px; }
.mp-todo__text b { display: block; font-weight: 600; }
.mp-todo__text span { font-size: .87rem; color: var(--mp-ink-2); }
.mp-todo .mp-progress { width: 180px; margin: 8px 0 0; }
.mp-track { display: flex; align-items: center; font-size: .8rem; color: var(--mp-ink-3); }
.mp-track span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.mp-track span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--mp-line-2); background: var(--mp-paper); }
.mp-track span.is-on { color: var(--mp-ink); font-weight: 500; }
.mp-track span.is-on::before { border-color: var(--mp-primary); background: var(--mp-primary); }
.mp-track span.is-bad::before { border-color: var(--mp-red); background: var(--mp-red); }
.mp-track i { width: 26px; height: 2px; background: var(--mp-line-2); margin: 0 7px; }
.mp-track i.is-on { background: var(--mp-primary); }
.mp-member-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.mp-member-stats div { background: rgba(255,255,255,.1); border-radius: 14px; padding: 10px 16px; color: #fff; font-size: .82rem; }
.mp-member-stats b { display: block; font: 800 1.5rem var(--mp-head); font-stretch: 80%; }
.mp-section-title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; }
.mp-section-title h2 { margin: 0; font-size: 1.25rem; }

/* =================== ADMIN =================== */
.mp-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; flex: 1 0 auto; }
.mp-sidecol { background: var(--mp-rail); }
.mp-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; overflow-y: auto; background: var(--mp-rail); color: #B5C0CC; }
.mp-side .mp-brand { padding: 4px 10px 22px; color: #fff; }
.mp-side__label { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #5E6B7B; padding: 18px 12px 6px; }
.mp-side nav { display: grid; gap: 2px; }
.mp-side nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #B5C0CC; text-decoration: none; font-weight: 500; font-size: .93rem; transition: color .2s, background-color .2s; }
.mp-side nav a .mp-icon { color: #6E7C8D; transition: color .2s, transform .3s var(--mp-spring); }
.mp-side nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.mp-side nav a:hover .mp-icon { color: #fff; transform: scale(1.1); }
.mp-side nav a.is-active { color: #fff; background: rgba(255,255,255,.08); }
.mp-side nav a.is-active .mp-icon { color: var(--mp-yellow); }
.mp-side nav a.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--mp-yellow); animation: mp-grow-y .4s var(--mp-spring) both; }
@keyframes mp-grow-y { from { transform: scaleY(0); } }
.mp-count { margin-left: auto; background: var(--mp-yellow); color: var(--mp-ink); font: 700 .72rem var(--mp-body); padding: 0 8px; border-radius: 999px; line-height: 20px; }
.mp-side__foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.mp-side__user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; width: 100%; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 12px; text-align: left; font: inherit; transition: background-color .2s; }
.mp-side__user:hover { background: rgba(255,255,255,.06); }
.mp-side__user .mp-avatar { background: var(--mp-yellow); color: var(--mp-ink); }
.mp-side__user b { display: block; font-size: .9rem; font-weight: 600; line-height: 1.2; color: #fff; }
.mp-side__user span span { font-size: .78rem; color: #6E7C8D; }
.mp-bar { position: sticky; top: 0; z-index: 20; background: rgba(243,245,248,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(14,22,33,.06); }
.mp-bar__in { height: 66px; display: flex; align-items: center; gap: 12px; padding: 0 36px; }
.mp-cmd { display: flex; align-items: center; gap: 10px; width: min(380px, 100%); height: 42px; padding: 0 12px 0 14px; border-radius: 12px; border: 0; background: var(--mp-paper); box-shadow: var(--mp-sh-1); color: var(--mp-ink-3); font: 500 .9rem var(--mp-body); cursor: pointer; transition: box-shadow .25s, transform .25s var(--mp-spring); }
.mp-cmd:hover { box-shadow: var(--mp-sh-2); transform: translateY(-1px); }
.mp-cmd .mp-kbd { margin-left: auto; }
.mp-bar__right { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: .86rem; color: var(--mp-ink-3); }
.mp-iconbtn { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--mp-paper); color: var(--mp-ink-2); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; box-shadow: var(--mp-sh-1); position: relative; transition: color .2s, transform .25s var(--mp-spring); }
.mp-iconbtn:hover { color: var(--mp-ink); transform: translateY(-1px); }
.mp-iconbtn i { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--mp-red); box-shadow: 0 0 0 2px var(--mp-paper); }
.mp-content { padding: 32px 36px 72px; max-width: 1340px; width: 100%; }
.mp-burger, .mp-scrim { display: none !important; }
@media (max-width: 980px) {
  .mp-shell { grid-template-columns: 1fr; }
  .mp-sidecol { display: contents; }
  .mp-side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .35s var(--mp-ease); }
  .mp-shell.is-nav .mp-side { transform: none; box-shadow: var(--mp-sh-3); }
  .mp-scrim { display: block !important; position: fixed; inset: 0; background: rgba(14,22,33,.5); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .mp-shell.is-nav .mp-scrim { opacity: 1; pointer-events: auto; }
  .mp-burger { display: inline-grid !important; }
  .mp-bar__in, .mp-content { padding-inline: 16px; }
  .mp-bar__right .mp-hide-sm { display: none; }
}

/* dashboard */
.mp-welcome { background: var(--mp-felt); color: #fff; border-radius: var(--mp-r-xl); padding: 30px 32px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.mp-welcome::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0); background-size: 22px 22px; }
.mp-welcome > * { position: relative; }
.mp-welcome h1 { color: #fff; margin: 0 0 6px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.mp-welcome p { margin: 0; color: rgba(255,255,255,.75); }
.mp-welcome__balls { position: absolute !important; right: 30%; bottom: -16px; display: flex; gap: 8px; opacity: .85; }
.mp-welcome__balls .mp-ball { animation: mp-float 4s ease-in-out infinite; }
.mp-welcome__balls .mp-ball:nth-child(2) { animation-delay: -1.3s; } .mp-welcome__balls .mp-ball:nth-child(3) { animation-delay: -2.6s; }
.mp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
@media (max-width: 1150px) { .mp-kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mp-kpis { grid-template-columns: 1fr; } }
.mp-kpi { --c: var(--mp-primary); background: var(--mp-paper); border-radius: var(--mp-r-l); padding: 20px 22px 0; text-decoration: none; color: var(--mp-ink); display: flex; flex-direction: column; box-shadow: var(--mp-sh-1); overflow: hidden; transition: transform .35s var(--mp-spring), box-shadow .3s; }
a.mp-kpi:hover { transform: translateY(-4px); box-shadow: var(--mp-sh-2); }
.mp-kpi__top { display: flex; justify-content: space-between; align-items: center; }
.mp-kpi__label { font-size: .88rem; color: var(--mp-ink-2); font-weight: 500; }
.mp-kpi__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--t); color: var(--c); }
.mp-kpi__value { font: 900 2.3rem/1 var(--mp-head); font-stretch: 78%; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.mp-kpi__sub { font-size: .8rem; color: var(--mp-ink-3); }
.mp-kpi__sub b { color: var(--c); font-weight: 600; }
.mp-spark { display: block; width: calc(100% + 44px); height: 54px; margin: 10px -22px 0; }
.mp-spark path.line { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.mp-spark path.area { fill: var(--c); opacity: .1; }
.mp-js .mp-spark path.line { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.mp-js.mp-ready .mp-spark path.line { animation: mp-draw 1.6s var(--mp-ease) .3s forwards; }
.mp-js .mp-spark path.area { opacity: 0; }
.mp-js.mp-ready .mp-spark path.area { animation: mp-area .8s ease 1s forwards; }
@keyframes mp-area { to { opacity: .1; } }
.mp-dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
@media (max-width: 1150px) { .mp-dash { grid-template-columns: 1fr; } }
.mp-area { position: relative; }
.mp-area svg { display: block; width: 100%; height: 240px; overflow: visible; }
.mp-area .grid line { stroke: var(--mp-line); stroke-dasharray: 3 4; }
.mp-area .grid text { fill: var(--mp-ink-3); font: 500 11px var(--mp-body); }
.mp-area path.line { fill: none; stroke: var(--mp-primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.mp-area path.fill { fill: var(--mp-primary); opacity: .1; }
.mp-js .mp-area path.line { stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.mp-js.mp-ready .mp-area path.line { animation: mp-draw 2s var(--mp-ease) .3s forwards; }
.mp-js .mp-area path.fill { opacity: 0; }
.mp-js.mp-ready .mp-area path.fill { animation: mp-area 1s ease 1.2s forwards; }
.mp-area .dot { fill: var(--mp-paper); stroke: var(--mp-primary); stroke-width: 3; opacity: 0; transition: opacity .15s; }
.mp-area .hit { fill: transparent; cursor: pointer; }
.mp-area .hit:hover + .dot { opacity: 1; }
.mp-area__tip { position: absolute; pointer-events: none; background: var(--mp-ink); color: #fff; font-size: .78rem; padding: 6px 10px; border-radius: 8px; transform: translate(-50%, -130%); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.mp-donut { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.mp-donut__wrap { position: relative; width: 168px; height: 168px; flex: none; }
.mp-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mp-donut circle { fill: none; stroke-width: 20; stroke-linecap: round; }
.mp-donut .seg { transition: stroke-dasharray 1.4s var(--mp-spring); }
.mp-donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mp-donut__center b { font: 900 2.2rem/1 var(--mp-head); font-stretch: 78%; }
.mp-donut__center small { font-size: .76rem; color: var(--mp-ink-3); margin-top: 4px; }
.mp-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; flex: 1; min-width: 160px; }
.mp-legend li { display: flex; align-items: center; gap: 10px; }
.mp-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.mp-legend b { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.mp-feed { list-style: none; padding: 0; margin: 0; }
.mp-feed li { display: flex; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--mp-line); font-size: .9rem; align-items: center; transition: background-color .15s; }
.mp-feed li:hover { background: #FAFBFC; }
.mp-feed li:first-child { border-top: 0; }
.mp-feed__dot { width: 34px; height: 34px; border-radius: 50%; background: var(--t); color: var(--c); display: grid; place-items: center; flex: none; }
.mp-feed small { display: block; color: var(--mp-ink-3); font-size: .8rem; }
.mp-feed a { color: inherit; text-decoration: none; }
.mp-feed a:hover b { text-decoration: underline; }
.mp-age { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--mp-ink-2); font-weight: 500; }
.mp-age.is-old { color: #B42B30; }
.mp-age.is-old::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mp-red); animation: mp-blink 1.4s infinite; }
.mp-bars-h { display: grid; gap: 14px; }
.mp-bars-h__row { display: grid; gap: 6px; }
.mp-bars-h__top { display: flex; justify-content: space-between; font-size: .9rem; gap: 10px; }
.mp-bars-h__top b { font-weight: 600; }
.mp-bars-h__track { height: 10px; border-radius: 10px; background: var(--mp-bg); overflow: hidden; }
.mp-bars-h__track i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 10px; transform-origin: left; }
.mp-js.mp-ready .mp-bars-h__track i { animation: mp-grow-x 1.1s var(--mp-spring) both .4s; }

/* filters & tabs */
.mp-tabs { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--mp-line); overflow-x: auto; }
.mp-tabs a { padding: 8px 14px; text-decoration: none; color: var(--mp-ink-2); font-weight: 600; font-size: .88rem; border-radius: 999px; white-space: nowrap; transition: color .2s, background-color .2s; }
.mp-tabs a:hover { color: var(--mp-ink); background: var(--mp-bg); }
.mp-tabs a.is-active { color: #fff; background: var(--mp-ink); }
.mp-tabs a span { margin-left: 6px; font-weight: 600; font-size: .76rem; padding: 1px 7px; border-radius: 999px; background: rgba(14,22,33,.07); }
.mp-tabs a.is-active span { background: rgba(255,255,255,.18); }
.mp-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--mp-line); }
.mp-filters .mp-input, .mp-filters .mp-select { width: auto; min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: .9rem; }
.mp-filters .mp-input { flex: 1; min-width: 200px; }

/* review */
.mp-decide { box-shadow: var(--mp-sh-2); }
.mp-decide textarea { min-height: 96px; }
.mp-decide__btns { display: grid; gap: 10px; }
.mp-decide__btns > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mp-timeline { list-style: none; padding: 0; margin: 0; }
.mp-timeline li { position: relative; padding: 0 0 16px 26px; font-size: .88rem; color: var(--mp-ink-2); }
.mp-timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--mp-line-2)); box-shadow: 0 0 0 4px var(--mp-paper); z-index: 1; }
.mp-timeline li::after { content: ""; position: absolute; left: 5px; top: 10px; bottom: -4px; width: 2px; background: var(--mp-line); }
.mp-timeline li:last-child { padding-bottom: 0; }
.mp-timeline li:last-child::after { display: none; }
.mp-timeline b { color: var(--mp-ink); font-weight: 600; display: block; }

/* builder */
.mp-builder__item { border: 1.5px solid var(--mp-line); border-radius: 14px; padding: 14px; margin-bottom: 10px; background: var(--mp-paper); animation: mp-pop .35s var(--mp-spring) both; transition: border-color .2s, box-shadow .2s; }
.mp-builder__item:hover { border-color: var(--mp-line-2); box-shadow: var(--mp-sh-1); }
.mp-builder__item.is-heading { background: var(--mp-bg); }
.mp-builder__row { display: grid; grid-template-columns: 1.4fr 1fr .9fr auto; gap: 10px; align-items: end; }
@media (max-width: 760px) { .mp-builder__row { grid-template-columns: 1fr 1fr; } }
.mp-builder__tools { display: flex; gap: 4px; }
.mp-builder__extra { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mp-builder .mp-check { margin-bottom: 14px; }
.mp-builder .mp-label { margin-bottom: 4px; font-size: .78rem; color: var(--mp-ink-2); font-weight: 500; }
.mp-builder .mp-input, .mp-builder .mp-select { min-height: 42px; padding: 8px 12px; }

/* settings */
.mp-settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.mp-settings__nav { position: sticky; top: 90px; display: grid; gap: 2px; }
.mp-settings__nav a { padding: 9px 14px; border-radius: 10px; color: var(--mp-ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; transition: color .2s, background-color .2s; }
.mp-settings__nav a:hover { color: var(--mp-ink); background: var(--mp-paper); }
.mp-settings__nav a.is-active { color: #fff; background: var(--mp-ink); }
.mp-settings .mp-panel { scroll-margin-top: 90px; }
@media (max-width: 900px) { .mp-settings { grid-template-columns: 1fr; } .mp-settings__nav { display: none; } }
.mp-savebar { position: sticky; bottom: 18px; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 14px; margin-top: 18px; background: var(--mp-ink); color: #fff; border-radius: 16px; box-shadow: var(--mp-sh-3); }
.mp-savebar span { margin-right: auto; font-size: .86rem; color: #A9B4C1; padding-left: 6px; }
.mp-savebar .mp-btn { background: var(--mp-yellow); color: var(--mp-ink); }
.mp-perm { width: 100%; border-collapse: collapse; font-size: .86rem; }
.mp-perm th, .mp-perm td { padding: 9px 8px; border-bottom: 1px solid var(--mp-line); text-align: center; }
.mp-perm th { font-size: .76rem; color: var(--mp-ink-3); font-weight: 600; }
.mp-perm th:first-child, .mp-perm td:first-child { text-align: left; color: var(--mp-ink-2); }
.mp-perm td.y { color: var(--mp-primary); font-weight: 800; }
.mp-perm td.n { color: var(--mp-line-2); }

/* install */
.mp-install { max-width: 760px; margin: auto; padding: 48px 24px 80px; }
.mp-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: .9rem; }
.mp-checklist div { display: flex; gap: 8px; align-items: center; }
.mp-checklist .mp-icon { color: var(--mp-primary); }
.mp-checklist .is-bad .mp-icon { color: var(--mp-red); }
@media (max-width: 600px) { .mp-checklist { grid-template-columns: 1fr; } }

/* =====================================================================
   v4 — "Midnight glass": navy → teal gradients, frosted glass, curves
   (overrides the flat green treatment above)
   ===================================================================== */
:root {
  --mp-primary: #0F7B6C;
  --mp-primary-ink: #0B5E53;
  --mp-primary-soft: #E2F4F0;
  --mp-navy: #0A1530;
  --mp-navy-2: #10244A;
  --mp-teal: #14B8A6;
  --mp-grad: linear-gradient(125deg, #081127 0%, #0D1F45 38%, #0E3D5C 68%, #0E6B5F 100%);
  --mp-grad-btn: linear-gradient(135deg, #2F6BFF 0%, #14B8A6 100%);
  --mp-grad-btn-h: linear-gradient(135deg, #2558D6 0%, #0E9E8E 100%);
  --mp-glass: rgba(255, 255, 255, .08);
  --mp-glass-2: rgba(255, 255, 255, .14);
  --mp-glass-line: rgba(255, 255, 255, .18);
  --mp-glass-light: rgba(255, 255, 255, .72);
  --mp-felt: #0D1F45;
  --mp-rail: #0A1530;
  --mp-bg: #EEF2F8;
}
body {
  background-color: var(--mp-bg);
  background-image:
    radial-gradient(900px 600px at 105% -10%, rgba(47,107,255,.10), transparent 60%),
    radial-gradient(800px 600px at -10% 40%, rgba(20,184,166,.09), transparent 60%),
    radial-gradient(700px 500px at 60% 110%, rgba(124,92,219,.07), transparent 60%);
  background-attachment: fixed;
}

/* gradient surfaces with soft colour glows and a curved bottom edge */
.mp-hero-wrap, .mp-band, .mp-welcome { background: var(--mp-grad); }
.mp-hero-wrap::after, .mp-band::after, .mp-welcome::after {
  content: ""; position: absolute; pointer-events: none; inset: 0;
  background:
    radial-gradient(520px 380px at 82% 30%, rgba(47,107,255,.35), transparent 65%),
    radial-gradient(460px 360px at 12% 90%, rgba(20,184,166,.28), transparent 65%);
}
.mp-hero-wrap::before, .mp-band::before, .mp-welcome::before { opacity: .55; z-index: 1; }
.mp-hero-wrap { border-radius: 0 0 50% 50% / 0 0 90px 90px; }
.mp-hero { z-index: 2; }
.mp-band { height: 330px; margin-bottom: -330px; border-radius: 0 0 50% 50% / 0 0 70px 70px; }
@media (max-width: 700px) { .mp-hero-wrap { border-radius: 0 0 40px 40px; } .mp-band { border-radius: 0 0 32px 32px; } }

/* glass header */
.mp-top { background: rgba(255,255,255,.62); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); border-bottom: 1px solid rgba(255,255,255,.6); box-shadow: 0 1px 0 rgba(10,21,48,.04); }
.mp-top.is-over { background: rgba(8,17,39,.15); border-bottom-color: rgba(255,255,255,.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mp-top.is-over .mp-nav a.is-active, .mp-top.is-over .mp-nav a:hover { background: var(--mp-glass-2); }

/* glass panels on the light background */
.mp-panel, .mp-box, .mp-kpi, .mp-plan, .mp-faq details, .mp-next li, .mp-how li, .mp-note {
  background: var(--mp-glass-light);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 40px -24px rgba(10,21,48,.25);
}
.mp-panel, .mp-box, .mp-kpi { border-radius: 22px; }
.mp-plan { border-radius: 28px; }
.mp-how li { border-radius: 24px; }
.mp-summary { background: rgba(255,255,255,.85); }
.mp-table th { background: rgba(248,250,253,.7); }
.mp-table tbody tr:hover td { background: rgba(47,107,255,.04); }
.mp-input, .mp-select, .mp-textarea { background-color: rgba(238,242,248,.8); border-radius: 14px; }
.mp-input:focus, .mp-select:focus, .mp-textarea:focus { border-color: #2F6BFF; box-shadow: 0 0 0 4px rgba(47,107,255,.14); background-color: #fff; }
.mp-select { background-color: rgba(238,242,248,.8); }

/* buttons */
.mp-btn { border-radius: 14px; }
.mp-btn--green, .mp-btn--primary { background: var(--mp-grad-btn); color: #fff; }
.mp-btn--green:hover, .mp-btn--primary:hover { background: var(--mp-grad-btn-h); box-shadow: 0 16px 30px -14px rgba(47,107,255,.65); }
.mp-btn { background-color: var(--mp-navy); }
.mp-btn:not(.mp-btn--yellow):not(.mp-btn--ghost):not(.mp-btn--light):not(.mp-btn--danger):not(.mp-btn--green) { background: var(--mp-navy); }
.mp-btn:not(.mp-btn--yellow):not(.mp-btn--ghost):not(.mp-btn--light):not(.mp-btn--danger):not(.mp-btn--green):hover { background: var(--mp-navy-2); }
.mp-btn--yellow { background: linear-gradient(135deg, #FFD45C 0%, #FFB21E 100%); }
.mp-btn--yellow:hover { background: linear-gradient(135deg, #FFDB73 0%, #FFBB33 100%); }
.mp-btn--light { background: var(--mp-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--mp-glass-line); }
.mp-btn--light:hover { background: var(--mp-glass-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.mp-btn--ghost { background: rgba(255,255,255,.7); backdrop-filter: blur(10px); }

/* hero */
.mp-hero { padding-bottom: 150px; }
.mp-hero h1 em { background: linear-gradient(90deg, #FFD45C, #FFB21E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mp-pool { border-radius: 26px; box-shadow: 0 50px 90px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08); }
.mp-table-wrap::before { content: ""; position: absolute; inset: -18px; border-radius: 34px; background: var(--mp-glass); border: 1px solid var(--mp-glass-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: -1; }
.mp-table-wrap { isolation: isolate; }
.mp-table-hint { bottom: -54px; }
.mp-how { margin-top: -96px; }
.mp-how li { background: rgba(255,255,255,.82); }
.mp-hero__trust span { background: var(--mp-glass); border: 1px solid var(--mp-glass-line); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
.mp-cta { background: var(--mp-grad); border-radius: 32px; }
.mp-cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 85% 20%, rgba(47,107,255,.35), transparent 65%); pointer-events: none; }
.mp-cta > * { position: relative; z-index: 1; }
.mp-plan__top { border-radius: 0; }
.mp-plan__top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 55%); pointer-events: none; }
.mp-kicker { background: var(--mp-grad-btn); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* application flow on the gradient band */
.mp-steps::before { background: rgba(255,255,255,.16); }
.mp-steps::after { background: linear-gradient(90deg, #FFD45C, #14B8A6); }
.mp-step__dot { background: var(--mp-glass); border: 1px solid var(--mp-glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mp-step.is-done .mp-step__dot { background: linear-gradient(135deg, #FFD45C, #FFB21E); border-color: transparent; }
.mp-progress i { background: var(--mp-grad-btn); }
.mp-ring .fg { stroke: url(#mp-ring-grad); }
.mp-ring .fg:not([stroke]) { stroke: #2F6BFF; }
.mp-tabs2 { background: rgba(238,242,248,.8); }
.mp-currency { background: rgba(238,242,248,.9); }
.mp-currency a.is-active { background: var(--mp-navy); }
.mp-choices .mp-check:has(input:checked) { border-color: #2F6BFF; background: rgba(47,107,255,.08); color: #1F4FC4; }
.mp-agree:has(input:checked) { border-color: #2F6BFF; background: rgba(47,107,255,.06); }
.mp-drop.has-file { border-color: #2F6BFF; }
.mp-drop.has-file .mp-drop__thumb { background: var(--mp-grad-btn); }
.mp-drop:hover, .mp-drop.is-over { border-color: #2F6BFF; background: rgba(47,107,255,.05); }

/* member area: glass stats on the band; the placeholder card is solid so it reads off the band */
.mp-member-stats div { background: var(--mp-glass); border: 1px solid var(--mp-glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 18px; padding: 12px 18px; min-width: 110px; }
.mp-card-ph { background: rgba(255,255,255,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.9); color: var(--mp-ink-2); box-shadow: 0 30px 60px -30px rgba(10,21,48,.5); justify-content: flex-start; gap: 20px; }
.mp-card-ph b { color: var(--mp-ink); }
.mp-card-m { background: linear-gradient(135deg, #0A1530 0%, #14295A 60%, #0E5A6B 100%); border: 1px solid rgba(255,255,255,.12); }
.mp-card-m::before { background: radial-gradient(circle, rgba(47,107,255,.55), transparent 70%); right: -80px; bottom: -110px; width: 300px; height: 300px; }
.mp-card-m::after { background: linear-gradient(90deg, #FFD45C, #14B8A6); width: 90px; }

/* admin */
.mp-sidecol, .mp-side { background: linear-gradient(180deg, #081127 0%, #0D1F45 100%); }
.mp-side nav a.is-active { background: var(--mp-glass-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.mp-side nav a.is-active::before { background: linear-gradient(180deg, #FFD45C, #14B8A6); }
.mp-bar { background: rgba(238,242,248,.65); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); }
.mp-cmd, .mp-iconbtn { background: rgba(255,255,255,.75); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.9); }
.mp-welcome { border-radius: 30px; padding: 34px 36px; }
.mp-welcome > * { z-index: 2; }
.mp-welcome .mp-btn--light { color: #fff; }
.mp-kpi__icon { background: var(--t); }
.mp-kpi { padding-bottom: 0; }
.mp-spark.is-empty { height: 22px; }
.mp-spark.is-empty path.line { stroke: var(--mp-line-2); stroke-dasharray: 4 6 !important; stroke-dashoffset: 0 !important; animation: none !important; }
.mp-spark.is-empty path.area { display: none; }
.mp-area path.line { stroke: url(#mp-area-grad); }
.mp-area path.fill { fill: url(#mp-area-fill); opacity: 1; }
.mp-js .mp-area path.fill { opacity: 0; }
.mp-js.mp-ready .mp-area path.fill { animation: mp-area-in 1s ease 1.2s forwards; }
@keyframes mp-area-in { to { opacity: 1; } }
.mp-tabs a.is-active { background: var(--mp-navy); }
.mp-savebar { background: rgba(10,21,48,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.mp-palette { background: rgba(255,255,255,.88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.mp-palette li.is-active a { background: var(--mp-grad-btn); }
.mp-modal { background: rgba(255,255,255,.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.mp-modal::backdrop { background: rgba(8,17,39,.5); backdrop-filter: blur(6px); }
.mp-toast { background: rgba(10,21,48,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.1); }
.mp-footer { background: var(--mp-navy); }
.mp-person__av { box-shadow: inset 0 -6px 0 rgba(0,0,0,.12); }
.mp-donut circle.seg { filter: none; }
.mp-done__mark circle { fill: url(#mp-done-grad); }

/* browsers without backdrop-filter: keep text readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mp-panel, .mp-box, .mp-kpi, .mp-plan, .mp-faq details, .mp-how li { background: #fff; }
  .mp-top { background: #fff; }
}
.mp-hero__trust { gap: 10px; }
.mp-card-ph { background: rgba(255,255,255,.97); }
.mp-track span.is-on::before { border-color: #2F6BFF; background: #2F6BFF; }
.mp-track i.is-on { background: linear-gradient(90deg, #2F6BFF, #14B8A6); }
.mp-list li::before, .mp-desc li::before { background-color: rgba(47,107,255,.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%232F6BFF' stroke-width='4'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.mp-status--approved, .mp-status--active, .mp-status--paid { color: #0B7A6C; background: rgba(20,184,166,.12); }
