/*
 * Shared by every theme (App\Support\Theme\SiteTheme), loaded after all other stylesheets on the public
 * site, the sign-in pages and the member area. A theme file (v2.css, aurora.css, ios.css, clay.css)
 * sets the tokens below on body.mm-theme-<key>; this file draws everything from them.
 *
 * Themed pages do not load the classic look's dark-premium-design.css and global-dark-fix.css (they
 * forced one grey on every p, span and div), so the shared Bootstrap parts are styled here instead.
 *
 * Tokens (besides the member app's --mm-* colours from middlesman-app.css):
 *   --mm-page-bg       page background (may be a gradient)
 *   --mm-card-bg, --mm-card-border, --mm-card-shadow, --mm-card-blur
 *   --mm-btn-bg, --mm-btn-ink, --mm-btn-shadow, --mm-btn-radius
 *   --mm-btn2-bg, --mm-btn2-ink, --mm-btn2-border, --mm-btn2-shadow
 *   --mm-field-bg, --mm-field-border, --mm-field-shadow
 *   --mm-nav-bg, --mm-tab-bg, --mm-tab-shadow, --mm-active-bg, --mm-active-ink
 *   --mm-hl            the homepage's highlighted words (colour or gradient)
 *   --mm-heading-weight, --mm-heading-spacing
 */

/* ---- Page ------------------------------------------------------------------------------------- */
html:has(> body.mm-theme) { background: var(--mm-html-bg, #0f172a); }
body.mm-theme {
    background: var(--mm-page-bg, var(--mm-bg)) !important;
    background-attachment: fixed !important;
    color: var(--mm-ink) !important;
    font-family: var(--mm-font) !important;
    -webkit-font-smoothing: antialiased;
}
body.mm-theme.mm-shell .dashboard-section,
body.mm-theme.mm-shell .dashboard,
body.mm-theme .main-wrapper,
body.mm-theme .dashboard-wrapper,
body.mm-theme .user-wrapper,
body.mm-theme .content-wrapper,
body.mm-theme .page-wrapper,
body.mm-theme .login-section,
body.mm-theme .login-left--section,
body.mm-theme .account {
    background: transparent !important;
    background-image: none !important;
}
body.mm-theme h1, body.mm-theme h2, body.mm-theme h3,
body.mm-theme h4, body.mm-theme h5, body.mm-theme h6 {
    color: var(--mm-ink);
    font-family: var(--mm-font);
    font-weight: var(--mm-heading-weight, 800);
    letter-spacing: var(--mm-heading-spacing, -0.02em);
}
body.mm-theme p, body.mm-theme li, body.mm-theme td, body.mm-theme dd, body.mm-theme dt { color: inherit; }
body.mm-theme a:not([class]) { color: var(--mm-link); }
body.mm-theme .text-muted, body.mm-theme .mm-help, body.mm-theme .mm-muted { color: var(--mm-muted) !important; }
body.mm-theme.mm-theme-dark .text-dark, body.mm-theme.mm-theme-dark .text--black { color: var(--mm-ink) !important; }
body.mm-theme.mm-theme-light .text-white, body.mm-theme.mm-theme-light .text--white { color: var(--mm-ink) !important; }
body.mm-theme hr { border-color: var(--mm-line); opacity: 1; }
body.mm-theme ::selection { background: color-mix(in srgb, var(--mm-accent-text) 30%, transparent); }

/* ---- Cards and surfaces (Bootstrap and the member app) ---------------------------------------- */
body.mm-theme .card,
body.mm-theme .user-card,
body.mm-theme .form-card-user,
body.mm-theme .login-box,
body.mm-theme .base--card,
body.mm-theme .custom--card,
body.mm-theme .contact-card,
body.mm-theme .blog-card,
body.mm-theme .mm-card {
    background: var(--mm-card-bg) !important;
    border: 1px solid var(--mm-card-border) !important;
    border-radius: var(--mm-radius) !important;
    box-shadow: var(--mm-card-shadow) !important;
    color: var(--mm-ink);
    -webkit-backdrop-filter: var(--mm-card-blur, none);
    backdrop-filter: var(--mm-card-blur, none);
}
body.mm-theme .card .card { box-shadow: none !important; }
body.mm-theme .card-header,
body.mm-theme .card-footer {
    background: transparent !important;
    border-color: var(--mm-line) !important;
    color: var(--mm-ink) !important;
}
body.mm-theme .card-title { color: var(--mm-ink) !important; }
body.mm-theme .card-body { background: transparent !important; color: var(--mm-ink); }
body.mm-theme.mm-theme-dark .bg-white,
body.mm-theme.mm-theme-dark .bg--white,
body.mm-theme.mm-theme-dark .bg-light { background: var(--mm-surface) !important; color: var(--mm-ink) !important; }
body.mm-theme .mm-summary__item,
body.mm-theme .mm-list,
body.mm-theme .mm-icon-btn,
body.mm-theme .mm-back {
    background: var(--mm-card-bg);
    border-color: var(--mm-card-border);
    box-shadow: var(--mm-card-shadow);
    border-radius: var(--mm-radius-sm, 12px);
}
body.mm-theme .mm-summary__item:hover { border-color: var(--mm-accent-text); }
body.mm-theme .mm-row { border-color: var(--mm-line); }
body.mm-theme .mm-header { background: color-mix(in srgb, var(--mm-bg) 82%, transparent); }

/* ---- Buttons --------------------------------------------------------------------------------- */
body.mm-theme .mm-btn,
body.mm-theme .btn-primary,
body.mm-theme .btn--primary,
body.mm-theme .btn--base,
body.mm-theme .btn-base,
body.mm-theme .btn-success,
body.mm-theme .btn--success,
body.mm-theme .bg--base:not(.text--base),
body.mm-theme .btn-primary-modern,
body.mm-theme .mm-site-btn {
    background: var(--mm-btn-bg) !important;
    border: 0 !important;
    color: var(--mm-btn-ink, #fff) !important;
    border-radius: var(--mm-btn-radius, 12px) !important;
    box-shadow: var(--mm-btn-shadow, none) !important;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
body.mm-theme .mm-btn:hover,
body.mm-theme .btn-primary:hover,
body.mm-theme .btn--base:hover,
body.mm-theme .mm-site-btn:hover { filter: brightness(1.06); color: var(--mm-btn-ink, #fff) !important; }
body.mm-theme .mm-btn:active,
body.mm-theme .mm-site-btn:active { transform: translateY(1px); }
body.mm-theme .mm-btn *, body.mm-theme .btn-primary *, body.mm-theme .btn--base *, body.mm-theme .mm-site-btn * { color: inherit !important; }
body.mm-theme .mm-btn--ghost,
body.mm-theme .btn-outline-primary,
body.mm-theme .btn--secondary,
body.mm-theme .btn-secondary,
body.mm-theme .btn-light,
body.mm-theme .btn-outline--base,
body.mm-theme .mm-site-btn2 {
    background: var(--mm-btn2-bg) !important;
    color: var(--mm-btn2-ink) !important;
    border: 1px solid var(--mm-btn2-border) !important;
    border-radius: var(--mm-btn-radius, 12px) !important;
    box-shadow: var(--mm-btn2-shadow, none) !important;
}
body.mm-theme .mm-btn--ghost *, body.mm-theme .mm-site-btn2 * { color: inherit !important; }
body.mm-theme .mm-btn--danger,
body.mm-theme .btn--danger,
body.mm-theme .btn-danger { background: var(--mm-danger-solid) !important; color: #fff !important; box-shadow: none !important; }
body.mm-theme .mm-btn--warn { background: #b45309 !important; color: #fff !important; box-shadow: none !important; }
body.mm-theme .mm-btn:focus-visible,
body.mm-theme .mm-site-btn:focus-visible,
body.mm-theme .mm-site-btn2:focus-visible,
body.mm-theme a:focus-visible,
body.mm-theme button:focus-visible,
body.mm-theme summary:focus-visible { outline: 3px solid var(--mm-focus) !important; outline-offset: 2px; }

/* ---- Fields ---------------------------------------------------------------------------------- */
body.mm-theme .form-control,
body.mm-theme .form-select,
body.mm-theme .form--control,
body.mm-theme input[type="text"], body.mm-theme input[type="email"], body.mm-theme input[type="password"],
body.mm-theme input[type="number"], body.mm-theme input[type="search"], body.mm-theme input[type="tel"],
body.mm-theme input[type="url"], body.mm-theme input[type="date"],
body.mm-theme textarea,
body.mm-theme select,
body.mm-shell.mm-theme input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=hidden]),
body.mm-shell.mm-theme select,
body.mm-shell.mm-theme textarea,
body.mm-shell.mm-theme .form-control,
body.mm-shell.mm-theme .form-select {
    background-color: var(--mm-field-bg) !important;
    border: 1px solid var(--mm-field-border) !important;
    box-shadow: var(--mm-field-shadow, none) !important;
    color: var(--mm-ink) !important;
    border-radius: var(--mm-radius-sm, 12px);
}
body.mm-theme .form-control:focus,
body.mm-theme .form-select:focus,
body.mm-theme input:focus,
body.mm-theme textarea:focus,
body.mm-theme select:focus,
body.mm-shell.mm-theme input:focus, body.mm-shell.mm-theme select:focus, body.mm-shell.mm-theme textarea:focus,
body.mm-shell.mm-theme .form-control:focus, body.mm-shell.mm-theme .form-select:focus {
    border-color: var(--mm-accent-text) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mm-accent-text) 28%, transparent) !important;
    outline: none;
}
body.mm-theme ::placeholder, body.mm-shell.mm-theme ::placeholder { color: var(--mm-muted) !important; opacity: .85; }
body.mm-theme select option { background: var(--mm-surface); color: var(--mm-ink); }
body.mm-theme label, body.mm-theme .form-label { color: var(--mm-ink) !important; }
body.mm-theme .input-group-text {
    background: var(--mm-surface-2) !important;
    border-color: var(--mm-field-border) !important;
    color: var(--mm-muted) !important;
}
body.mm-theme .form-check-input, body.mm-theme input[type="checkbox"]:not(.mm-switch) { background-color: var(--mm-surface); border: 1.5px solid var(--mm-muted) !important; accent-color: var(--mm-accent); }
body.mm-theme .form-check-input:checked { background-color: var(--mm-accent); border-color: var(--mm-accent); }
body.mm-theme .form-check-label { color: var(--mm-ink) !important; }

/* ---- Tables, lists, menus, dialogs ------------------------------------------------------------ */
body.mm-theme .table {
    --bs-table-color: var(--mm-ink);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--mm-line);
    --bs-table-striped-bg: color-mix(in srgb, var(--mm-ink) 4%, transparent);
    --bs-table-hover-bg: color-mix(in srgb, var(--mm-ink) 5%, transparent);
    --bs-table-hover-color: var(--mm-ink);
    color: var(--mm-ink) !important;
    background: transparent !important;
}
body.mm-theme .table th { color: var(--mm-muted) !important; background: transparent !important; border-color: var(--mm-line) !important; }
body.mm-theme .table td { color: var(--mm-ink) !important; border-color: var(--mm-line) !important; background: transparent !important; }
body.mm-theme .mm-table tbody tr:hover td { background: color-mix(in srgb, var(--mm-ink) 4%, transparent); }
body.mm-theme .list-group-item {
    background: transparent !important;
    border-color: var(--mm-line) !important;
    color: var(--mm-ink) !important;
}
body.mm-theme .dropdown-menu {
    background: var(--mm-surface) !important;
    border: 1px solid var(--mm-line) !important;
    border-radius: var(--mm-radius-sm, 12px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
body.mm-theme .dropdown-item { color: var(--mm-ink) !important; }
body.mm-theme .dropdown-item:hover, body.mm-theme .dropdown-item:focus { background: var(--mm-surface-2) !important; }
body.mm-theme .modal-content,
body.mm-theme .mm-sheet__panel,
body.mm-theme .offcanvas {
    background: var(--mm-surface) !important;
    color: var(--mm-ink) !important;
    border: 1px solid var(--mm-line) !important;
    border-radius: var(--mm-radius);
}
body.mm-theme .modal-header, body.mm-theme .modal-footer { border-color: var(--mm-line) !important; }
body.mm-theme .modal-title { color: var(--mm-ink) !important; }
body.mm-theme.mm-theme-dark .btn-close { filter: invert(1) grayscale(1) brightness(2); }
body.mm-theme .alert { border-radius: var(--mm-radius-sm, 12px); }
body.mm-theme .page-link { background: var(--mm-surface) !important; border-color: var(--mm-line) !important; color: var(--mm-ink) !important; }
body.mm-theme .page-item.active .page-link { background: var(--mm-accent) !important; border-color: var(--mm-accent) !important; color: var(--mm-accent-ink) !important; }
body.mm-theme .breadcrumb { background: transparent !important; }
body.mm-theme .nav-link { color: var(--mm-muted); }
body.mm-theme .nav-link.active, body.mm-theme .nav-link:hover { color: var(--mm-ink); }
body.mm-theme .progress { background: color-mix(in srgb, var(--mm-ink) 10%, transparent); }
body.mm-theme .progress-bar { background: var(--mm-accent); }
body.mm-theme .accordion-item, body.mm-theme .accordion-button {
    background: var(--mm-card-bg) !important;
    color: var(--mm-ink) !important;
    border-color: var(--mm-line) !important;
}

/* ---- Member app parts that used a green tint ---------------------------------------------------- */
body.mm-theme .mm-tabbar {
    background: var(--mm-tab-bg) !important;
    border-top: 1px solid var(--mm-line);
    box-shadow: var(--mm-tab-shadow, none);
    -webkit-backdrop-filter: var(--mm-card-blur, none);
    backdrop-filter: var(--mm-card-blur, none);
}
body.mm-theme .mm-tabbar a.active,
body.mm-theme .mm-tabbar a[aria-current="page"] {
    background: var(--mm-active-bg) !important;
    color: var(--mm-active-ink) !important;
}
body.mm-theme .mm-tabbar a.active *, body.mm-theme .mm-tabbar a[aria-current="page"] * { color: inherit !important; }
body.mm-theme .mm-nav { background: var(--mm-nav-bg) !important; border-color: var(--mm-line) !important; }
body.mm-theme .mm-nav__link[aria-current="page"] { background: var(--mm-active-bg) !important; color: var(--mm-active-ink) !important; }
body.mm-theme .mm-nav__link[aria-current="page"] * { color: inherit !important; }
body.mm-theme .mm-nav__link:hover { background: var(--mm-surface-2); }
body.mm-theme .mm-badge--neutral { background: color-mix(in srgb, var(--mm-ink) 9%, transparent); }
body.mm-theme .mm-progress span { background: color-mix(in srgb, var(--mm-ink) 8%, transparent); }
body.mm-theme .mm-progress span.is-now { background: color-mix(in srgb, var(--mm-accent-text) 18%, transparent); }
body.mm-theme .mm-sheet__backdrop { background: rgba(10, 10, 25, .55); }
body.mm-theme .mm-qr { box-shadow: 0 0 0 1px var(--mm-line); }

/* Wallet page on the light themes: its light palette, in the theme's accent. */
body.mm-theme.mm-theme-light #wallet-page {
    --w-hero: linear-gradient(180deg, color-mix(in srgb, var(--mm-accent) 16%, var(--mm-bg)) 0%, color-mix(in srgb, var(--mm-accent) 6%, var(--mm-bg)) 60%, transparent 100%);
    --w-ink: var(--mm-ink);
    --w-muted: var(--mm-muted);
    --w-accent: var(--mm-accent);
    --w-accent-ink: #fff;
    --w-pill-bg: var(--mm-card-bg);
    --w-pill-line: color-mix(in srgb, var(--mm-accent) 35%, transparent);
    --w-focus: var(--mm-accent);
    --w-track: color-mix(in srgb, var(--mm-ink) 12%, transparent);
    --w-usdc: #2563eb;
    --w-usdt: #047857;
    --w-card: var(--mm-card-bg);
    --w-card-line: var(--mm-card-border);
    --w-test-bg: var(--mm-test-bg);
    --w-test: var(--mm-test);
    --w-link: var(--mm-link);
}

/* ---- Sign-in pages ---------------------------------------------------------------------------- */
body.mm-theme.mm-auth-page .login-box { max-width: 560px; margin-left: auto; margin-right: auto; }
body.mm-theme.mm-auth-page .mm-auth-links { color: var(--mm-muted) !important; opacity: 1; background: transparent !important; }
body.mm-theme.mm-auth-page .mm-auth-links * { color: inherit !important; }
body.mm-theme.mm-auth-page .mm-auth-title { color: var(--mm-ink); }

/* ---- Logo on light themes: the dark logo (dark letters) is used; the badge only when the admin chose
   it (SiteTheme::logo()), because the usual logo has white letters ------------------------------------ */
.mm-site-logo__img--badge,
.mm-logo-badge,
body.mm-theme.mm-theme-light .dashboard-header .logo img {
    background: var(--mm-logo-badge, #1c1c2e);
    padding: 6px 10px;
    border-radius: 10px;
}

/* ---- Theme preview bar (admins only) ----------------------------------------------------------- */
.mm-theme-previewbar {
    position: sticky; top: 0; z-index: 2000;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px;
    padding: 8px 16px; background: #111827; color: #f9fafb; font: 600 14px/1.4 system-ui, sans-serif;
}
.mm-theme-previewbar span { color: #f9fafb !important; }
.mm-theme-previewbar a { color: #fde68a !important; text-decoration: underline; }

/* ======================================================================================== */
/* Public site (site/header, site/home, site/footer)                                         */
/* ======================================================================================== */
body.mm-site-page { font-size: 16px; line-height: 1.55; }
.mm-site-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
@media (min-width: 768px) { .mm-site-wrap { padding: 0 32px; } }
.mm-site-icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mm-site-muted { color: var(--mm-muted) !important; }

/* Header */
.mm-site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--mm-header-bg, color-mix(in srgb, var(--mm-bg) 82%, transparent));
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--mm-header-line, transparent);
}
.mm-site-header__row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.mm-site-logo { display: inline-flex; align-items: center; flex: none; }
.mm-site-logo__img { max-height: 38px; max-width: 180px; width: auto; }
.mm-site-nav { flex: 1; display: none; }
.mm-site-nav__list { display: flex; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.mm-site-nav__link { color: var(--mm-ink) !important; text-decoration: none; font-weight: 600; opacity: .85; padding: 8px 0; display: inline-block; }
.mm-site-nav__link:hover { opacity: 1; color: var(--mm-accent-text) !important; }
.mm-site-header__actions { display: none; align-items: center; gap: 16px; margin-left: auto; }
.mm-site-link { color: var(--mm-ink) !important; font-weight: 700; text-decoration: none; }
.mm-site-lang { width: auto !important; min-height: 40px; padding: 4px 28px 4px 10px !important; }
.mm-site-menu { margin-left: auto; position: relative; }
.mm-site-menu__button {
    list-style: none; display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: var(--mm-radius-sm, 12px); cursor: pointer;
    background: var(--mm-btn2-bg); color: var(--mm-ink); border: 1px solid var(--mm-btn2-border); box-shadow: var(--mm-btn2-shadow, none);
}
.mm-site-menu__button::-webkit-details-marker { display: none; }
.mm-site-menu__panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
    background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: var(--mm-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25); padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.mm-site-menu__list { list-style: none; margin: 0; padding: 0; }
.mm-site-menu__list a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 10px; color: var(--mm-ink) !important; text-decoration: none; font-weight: 600; }
.mm-site-menu__list a:hover { background: var(--mm-surface-2); }
@media (min-width: 992px) {
    .mm-site-nav { display: block; }
    .mm-site-header__actions { display: flex; }
    .mm-site-menu { display: none; }
}

/* Buttons */
.mm-site-btn, .mm-site-btn2 {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 20px; font-weight: 700; text-decoration: none !important; white-space: nowrap; cursor: pointer;
}
.mm-site-btn--big { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.mm-site-btn--block { display: flex; width: 100%; }
.mm-site-btn--light { background: #fff !important; color: #111827 !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .2) !important; }

/* Page title on pages other than the homepage */
.mm-site-pagehead { padding: 40px 0 8px; }
.mm-site-pagehead__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }

/* Homepage */
.mm-site-main { display: block; }
.mm-site-section { padding: 48px 0; }
.mm-site-section--last { padding-bottom: 72px; }
@media (min-width: 992px) { .mm-site-section { padding: 72px 0; } .mm-site-section--last { padding-bottom: 96px; } }
.mm-site-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.mm-site-head--left { text-align: left; margin: 0; }
.mm-site-h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.12; margin: 0 0 12px; }
.mm-site-h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 8px; }
.mm-site-lead { font-size: 1.1rem; color: var(--mm-muted) !important; margin: 0 0 8px; }
.mm-site-card {
    background: var(--mm-card-bg); border: 1px solid var(--mm-card-border); border-radius: var(--mm-radius);
    box-shadow: var(--mm-card-shadow); padding: 22px; box-sizing: border-box; color: var(--mm-ink);
    -webkit-backdrop-filter: var(--mm-card-blur, none); backdrop-filter: var(--mm-card-blur, none);
}
.mm-site-badge {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700;
    background: color-mix(in srgb, var(--mm-accent-text) 14%, transparent); color: var(--mm-accent-text) !important;
}
.mm-site-badge * { color: inherit !important; }
.mm-site-hl { background: var(--mm-hl, none); -webkit-background-clip: text; background-clip: text; color: var(--mm-hl-color, transparent) !important; }

.mm-site-hero { padding: 32px 0 40px; }
.mm-site-hero__grid { display: grid; gap: 36px; align-items: center; }
.mm-site-hero__text { display: flex; flex-direction: column; gap: 20px; }
.mm-site-hero__title { font-size: clamp(2.3rem, 7.5vw, 4rem); line-height: 1.04; margin: 0; }
.mm-site-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mm-site-note { font-size: .92rem; color: var(--mm-muted) !important; margin: 0; }
@media (min-width: 992px) {
    .mm-site-hero { padding: 56px 0 64px; }
    .mm-site-hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}
.mm-site-demo { display: flex; flex-direction: column; gap: 16px; max-width: 460px; width: 100%; justify-self: center; }
.mm-site-demo__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.mm-site-demo__who { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; }
.mm-site-demo__who strong { font-size: 1.05rem; }
.mm-site-demo__who span { font-size: .85rem; }
.mm-site-avatar {
    width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
    font-weight: 800; background: color-mix(in srgb, var(--mm-accent-text) 18%, transparent); color: var(--mm-accent-text) !important;
}
.mm-site-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 13px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.mm-site-pill--wait { background: var(--mm-warn-bg); color: var(--mm-warn) !important; }
.mm-site-demo__amount { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mm-site-demo__amount strong { font-size: 2rem; font-weight: 800; }
.mm-site-demo__amount small { font-size: 1rem; color: var(--mm-muted) !important; }
.mm-site-demo__pay { display: flex; align-items: center; gap: 16px; }
.mm-site-demo__qr { width: 104px; height: 104px; flex: none; border-radius: 12px; overflow: hidden; }
.mm-site-demo__addr { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: .9rem; }
.mm-site-demo__addr code { font-size: 1rem; font-weight: 700; color: var(--mm-ink) !important; background: none; padding: 0; }
.mm-site-demo__steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.mm-site-demo__steps li {
    flex: 1; text-align: center; font-size: .72rem; font-weight: 700; padding: 7px 2px; border-radius: 8px;
    background: color-mix(in srgb, var(--mm-ink) 7%, transparent); color: var(--mm-muted) !important;
}
.mm-site-demo__steps li.is-done { background: var(--mm-ok-bg); color: var(--mm-ok) !important; }
.mm-site-demo__steps li.is-now { background: var(--mm-btn-bg); color: var(--mm-btn-ink, #fff) !important; }
.mm-qr-art { display: block; width: 100%; height: 100%; fill: #111827; }
.mm-qr-art .mm-qr-bg { fill: #ffffff; }

.mm-site-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .mm-site-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.mm-site-step { display: flex; flex-direction: column; }
.mm-site-step__num {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; margin-bottom: 14px; background: var(--mm-btn-bg); color: var(--mm-btn-ink, #fff) !important; box-shadow: var(--mm-btn-shadow, none);
}

.mm-site-pay { display: grid; gap: 28px; align-items: center; padding: 28px; }
.mm-site-pay__art { width: min(220px, 60vw); aspect-ratio: 1; border-radius: 20px; overflow: hidden; justify-self: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
.mm-site-pay__text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (min-width: 768px) { .mm-site-pay { grid-template-columns: auto 1fr; padding: 40px; gap: 48px; } }

.mm-site-checks { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mm-site-checks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.mm-site-checks .mm-site-icon { color: var(--mm-ok); margin-top: 3px; }

.mm-site-grid3, .mm-site-grid4 { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .mm-site-grid3, .mm-site-grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .mm-site-grid3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } .mm-site-grid4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.mm-site-feature__icon {
    width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
    background: color-mix(in srgb, var(--mm-accent-text) 15%, transparent); color: var(--mm-accent-text) !important;
}
.mm-site-feature__icon * { color: inherit !important; }

.mm-site-split { display: grid; gap: 20px; }
@media (min-width: 992px) { .mm-site-split { grid-template-columns: 1fr 1fr; } }
.mm-site-fees__value { margin: 4px 0 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mm-site-fees__value strong { font-size: 3.2rem; line-height: 1; font-weight: 800; background: var(--mm-hl, none); -webkit-background-clip: text; background-clip: text; color: var(--mm-hl-color, transparent) !important; }
.mm-site-netlist { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mm-site-netlist li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--mm-radius-sm, 12px); background: color-mix(in srgb, var(--mm-ink) 4%, transparent); }
.mm-site-netlist li > span:last-child { display: flex; flex-direction: column; }
.mm-site-netlist__dot {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
    font-weight: 800; background: var(--mm-btn-bg); color: var(--mm-btn-ink, #fff) !important;
}

.mm-site-faqwrap { display: grid; gap: 28px; }
@media (min-width: 992px) { .mm-site-faqwrap { grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; } }
.mm-site-faqwrap .mm-site-head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mm-site-faq { display: flex; flex-direction: column; gap: 12px; }
.mm-site-faq__item { padding: 0; }
.mm-site-faq__item summary {
    list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; min-height: 56px;
}
.mm-site-faq__item summary::-webkit-details-marker { display: none; }
.mm-site-faq__item summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; font-weight: 400; color: var(--mm-accent-text);
}
.mm-site-faq__item[open] summary::after { content: "\2212"; }
.mm-site-faq__item p { padding: 0 20px 18px; margin: 0; }

.mm-site-cta {
    border-radius: calc(var(--mm-radius) + 8px); padding: 44px 24px; text-align: center;
    background: var(--mm-cta-bg, var(--mm-btn-bg)); box-shadow: var(--mm-btn-shadow, none);
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.mm-site-cta .mm-site-h2, .mm-site-cta .mm-site-lead { color: #fff !important; }
.mm-site-cta .mm-site-lead { opacity: .9; max-width: 560px; }
@media (min-width: 768px) { .mm-site-cta { padding: 64px 48px; } }

/* Footer */
.mm-site-footer { padding: 48px 0 24px; border-top: 1px solid var(--mm-line); background: var(--mm-footer-bg, transparent); }
.mm-site-footer__grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .mm-site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .mm-site-footer__grid { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.mm-site-footer__brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mm-site-footer__brand p { margin: 0; max-width: 340px; font-size: .95rem; }
.mm-site-footer__title { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .08em !important; color: var(--mm-muted) !important; margin: 0 0 12px; font-weight: 800; }
.mm-site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mm-site-footer__links a { color: var(--mm-ink) !important; text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.mm-site-footer__links a:hover { color: var(--mm-accent-text) !important; }
.mm-site-social { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.mm-site-social a {
    width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--mm-btn2-bg); border: 1px solid var(--mm-btn2-border); color: var(--mm-ink) !important;
}
.mm-site-social a * { color: inherit !important; }
.mm-site-footer__bottom {
    margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--mm-line);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: .9rem; color: var(--mm-muted) !important;
}
.mm-site-footer__bottom * { color: inherit; }
.mm-site-footer__bottom a { color: var(--mm-ink) !important; }

/* The classic template's content pages (contact, policies, blog) under a theme. */
body.mm-site-page .py-100, body.mm-site-page .pt-100 { padding-top: 40px !important; }
body.mm-site-page .py-100, body.mm-site-page .pb-100 { padding-bottom: 56px !important; }
body.mm-site-page section, body.mm-site-page .contact-section, body.mm-site-page .blog-section { background: transparent !important; }
body.mm-site-page .bg--img { background-image: none !important; }

@media (prefers-reduced-motion: reduce) {
    body.mm-theme *, body.mm-theme *::before, body.mm-theme *::after { transition: none !important; animation: none !important; }
}
