* {
    box-sizing: border-box;
}

/* ── Dashboard page-lead: match admin heading style ─────────────────────── */
.dash-page-lead {
    margin: 0 0 18px;
    padding: 0;
}

.crumb {
    margin: 0;
    color: #5a6b82;
    font-size: 13px;
    line-height: 1.4;
}

.dash-page-title {
    margin: 6px 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2332;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.dash-page-description {
    margin: 10px 0 0;
    color: #4a5b70;
    font-size: 14px;
    line-height: 1.55;
}

/* ── Chart-card section headers matching admin weight ───────────────────── */
.chart-card h3,
.chart-card h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a2332;
    letter-spacing: -0.01em;
}

/* ── Financial overview summary card ────────────────────────────────────── */
/* ── Financial Overview Header Band ────────────────────────────────────── */
.dash-fin-summary {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    /* Pull up into the topbar gap and stretch edge-to-edge (matches .dash-main .dash-topbar margins) */
    margin: -14px -18px 20px;
    background: #060f2b;
    border-bottom: 1px solid #1e3460;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 60px;
    z-index: 23;
    overflow: visible;
}

/* Left pane: title + currency switcher */
.dash-fin-summary__header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 16px 12px 20px;
    border-right: 1px solid #1e3460;
    flex-shrink: 0;
    min-width: 120px;
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.dash-fin-summary__title {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

/* Metric cards row */
.dash-fin-summary__grid {
    display: flex;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.dash-fin-summary__grid::-webkit-scrollbar { display: none; }

.dash-fin-card {
    flex: 1;
    min-width: 160px;
    padding: 10px 18px;
    border-radius: 0;
    border: none;
    border-right: 1px solid #1e3460;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-fin-card:last-child { border-right: none; }

/* Accent top strip (replaces left border accent) */
.dash-fin-card--processed { border-top: 2px solid #22c55e; }
.dash-fin-card--pending   { border-top: 2px solid #f59e0b; }
.dash-fin-card--withdrawable { border-top: 2px solid #3b82f6; }

.dash-fin-card__label {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.dash-fin-card__amount {
    margin: 4px 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #e2f7f1;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.dash-fin-card__sym {
    font-size: 0.85em;
    font-weight: 700;
    margin-right: 1px;
    color: #9ecfc4;
}

.dash-fin-card__sub {
    margin: 2px 0 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.dash-fin-card__link {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #5de0bf;
    text-decoration: none;
    white-space: nowrap;
}
.dash-fin-card__link:hover { text-decoration: underline; }

/* Currency selector (dark theme) */
.dash-fin-currency-wrap {
    position: relative;
}

.dash-fin-currency-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: #c8eee5;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.dash-fin-currency-trigger:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.dash-fin-currency-dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    min-width: 210px;
    max-height: 230px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #1e3460;
    background: #0c1b3e;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-fin-currency-dropdown[hidden] { display: none; }

.dash-fin-currency-option {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #b8d4e8;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}
.dash-fin-currency-option:hover { background: rgba(255, 255, 255, 0.07); }
.dash-fin-currency-option.is-active { background: rgba(93, 224, 191, 0.15); color: #5de0bf; }

.dash-fin-cur-code {
    font-weight: 700;
    font-size: 12px;
    min-width: 2.75rem;
}
.dash-fin-cur-label {
    font-size: 11px;
    color: #7a9bb8;
    flex: 1;
    min-width: 0;
}

@media (max-width: 760px) {
    .dash-fin-summary {
        flex-direction: column;
        margin: -14px -16px 16px;
        top: 56px;
        overflow: visible;
    }
    .dash-fin-summary__header {
        flex-direction: row;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid #1e3460;
        padding: 10px 16px;
        min-width: 0;
    }
    .dash-fin-summary__grid {
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        padding: 0;
    }
    .dash-fin-card {
        min-width: 140px;
        padding: 10px 14px;
    }
    .dash-fin-card--processed { border-top: 2px solid #22c55e; }
    .dash-fin-card--pending   { border-top: 2px solid #f59e0b; }
    .dash-fin-card--withdrawable { border-top: 2px solid #3b82f6; }
}

body {
    margin: 0;
    /* Grey page shell; .dash-sidebar keeps dark bg; .dash-main is white (admin-like content) */
    background: #f1f5f9;
    color: #1e2635;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/*
 * Mobile: primary breakpoint @media (max-width: 760px) — safe areas, topbar, forms (16px inputs to avoid iOS zoom),
 * support hub, tables (.table-scroll / .dash-table-scroll). New dashboard screens should use .chart-card,
 * .dash-form, and wrap wide tables for horizontal scroll.
 */
:root {
    --dash-content-bg: #ffffff;
    --dash-page-shell-bg: #f1f5f9;
    --dash-font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --dash-font-base: 13px;
    --dash-font-small: 12px;
    --dash-font-title: 13px;
    --dash-font-topbar: 24px;
}

a {
    color: inherit;
    text-decoration: none;
}
/* Global click affordance: pointer on interactive elements */
a[href],
button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
summary,
label[for],
[onclick],
[data-href],
[data-clickable="true"] {
    cursor: pointer;
}
a[href]:active,
button:active,
[role="button"]:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,
summary:active,
label[for]:active,
[onclick]:active,
[data-href]:active,
[data-clickable="true"]:active {
    cursor: pointer;
}


/* African Launch iframe: single main column, no duplicate sidebar/topbar */
body.dash-embed-shell {
    margin: 0;
    background: var(--dash-page-shell-bg, #f1f5f9);
    min-height: 100%;
}

.dash-main.dash-main--embed {
    margin: 0;
    max-width: none;
    min-height: 100vh;
    padding: 16px 18px 28px;
    padding-top: max(16px, env(safe-area-inset-top, 0px));
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

@media (max-width: 760px) {
    .dash-main.dash-main--embed {
        padding: 12px 14px 24px;
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
    }
}

.dash-shell {
    min-height: 100vh;
    min-width: 0;
    display: grid;
    grid-template-columns: 270px 1fr;
    align-items: stretch;
}

/* Launch funnel / Afripay Studio: hide header hamburger only when sidebar is in the grid */
@media (min-width: 1181px) {
    .dash-shell--launch-funnel .dash-nav-hamburger {
        display: none !important;
    }
}

.dash-sidebar {
    background: #060f2b;
    border-right: 1px solid #142140;
    padding: 0 14px 16px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    position: relative;
    top: auto;
    align-self: stretch;
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

.dash-sidebar-top {
    position: sticky;
    top: 0;
    z-index: 80;
    min-height: 62px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #060f2b 0%, #060f2b 82%, rgba(6, 15, 43, .96) 100%);
    padding: max(10px, env(safe-area-inset-top, 0px)) 14px 10px;
    margin: 0 -14px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 14px 28px rgba(3, 12, 28, .18);
    flex-shrink: 0;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: #5de0bf;
    margin: 0;
}
/* African Launch: same `.menu-item` rows as the rest of the sidebar (no separate card frame) */
.dash-menu > .dash-menu-launch {
    margin: 8px 0 0;
    padding: 8px 0 6px;
    flex-shrink: 0;
    border-top: 1px solid #1a2d57;
}
.dash-menu-launch__heading {
    margin: 0 0 6px;
    padding: 4px 12px 2px;
    font-size: 11px;
    font-weight: 900 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a8bfe8;
    line-height: 1.35;
}
.program-label {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #022c22;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    margin: 0 12px 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.dash-menu-launch__group-title {
    margin: 10px 0 6px;
    padding: 2px 12px;
    font-size: 11px;
    font-weight: 900 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6f88b7;
    line-height: 1.25;
}
.dash-menu-launch__split {
    height: 0;
    margin: 8px 0 6px;
    border: 0;
    border-top: 1px solid #1a2d57;
}
.dash-menu .menu-item.menu-item--launch,
.dash-menu button.menu-item.menu-item--launch {
    width: 100%;
    box-sizing: border-box;
}
.dash-sidebar .dash-menu .menu-item {
    font-size: 14px;
    font-weight: 800;
}
.dash-menu-launch a.menu-item.menu-item--launch {
    cursor: pointer;
}
.dash-menu-launch-submenu a {
    cursor: pointer;
}
.dash-menu button.menu-item {
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: #a6b8df;
    border-radius: 9px;
    padding: 7px 12px;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.dash-menu .menu-icon--launch {
    width: 22px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}
.menu-item-launch__trail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}
.menu-item-launch__lock {
    font-size: 12px;
    line-height: 1;
}
.menu-item-launch__mvp {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.menu-item-launch__mvp-star {
    display: none;
}
.menu-item-launch__mvp-chev {
    font-size: 10px;
    line-height: 1;
    opacity: 0.9;
    color: #93c5fd;
}
.menu-item--launch-mvp .menu-item-launch__trail {
    min-width: auto;
}

/* African Launch — expandable submenus (details/summary), accordion in dashboard.js */
.dash-menu-launch-dd {
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
    max-width: 100%;
}
.dash-menu-launch-dd > summary.menu-item--launch-dd-summary {
    list-style: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.dash-menu-launch-dd > summary.menu-item--launch-dd-summary::-webkit-details-marker {
    display: none;
}
.dash-menu-launch-dd > summary.menu-item--launch-dd-summary::-moz-list-marker {
    display: none;
}
.dash-menu-launch-dd > summary .menu-item-launch-dd__title {
    flex: 1;
    min-width: 0;
    text-align: left;
    line-height: 1.3;
}
.dash-menu-launch-dd[open] .menu-item-launch__mvp-chev--dd {
    transform: rotate(180deg);
}
.menu-item-launch__mvp-chev--dd {
    display: inline-block;
    transition: transform 0.2s ease;
}
.dash-menu-launch-submenu {
    margin: 0 0 6px;
    padding: 10px 10px 12px 12px;
    border-radius: 0 0 9px 9px;
    border: 1px solid rgba(43, 57, 80, 0.9);
    border-top: 0;
    background: rgba(7, 15, 40, 0.55);
    font-size: 11px;
    line-height: 1.45;
    color: #b8c9e8;
}
.dash-menu-launch-submenu__brand {
    margin: 0 0 2px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5de0bf;
}
.dash-menu-launch-submenu__subtitle {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.04em;
}
.dash-menu-launch-submenu__purpose {
    margin: 0 0 8px;
    color: #a8b5ca;
    font-size: 11px;
    line-height: 1.5;
}
.dash-menu-launch-submenu__purpose strong {
    color: #cbd5e1;
    font-weight: 600;
}
.dash-menu-launch-submenu__label {
    margin: 8px 0 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7b8fb8;
}
.dash-menu-launch-submenu__list {
    margin: 0 0 4px;
    padding: 0 0 0 16px;
    color: #c8d4ec;
    font-size: 11px;
    line-height: 1.45;
}
.dash-menu-launch-submenu__list li {
    margin: 3px 0;
}
.dash-menu-launch-submenu__list--compact {
    margin-bottom: 0;
}
.dash-menu-launch-submenu__upgrade {
    margin: 10px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid rgba(43, 57, 80, 0.75);
    font-size: 11px;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 6px;
}
.dash-menu-launch-submenu__upgrade-hint {
    flex-shrink: 0;
}
.dash-menu-launch-submenu__upgrade-link {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 600;
}
.dash-menu-launch-submenu__upgrade-link:hover {
    text-decoration: underline;
    color: #bae6fd;
}
.dash-menu-launch-submenu__actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dash-menu-launch-submenu__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    min-height: 40px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(93, 224, 191, 0.35);
    background: rgba(93, 224, 191, 0.12);
    color: #5de0bf;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.dash-menu-launch-submenu__btn:hover {
    background: rgba(93, 224, 191, 0.2);
    border-color: rgba(93, 224, 191, 0.55);
}
.dash-menu-launch-submenu__btn--primary {
    background: linear-gradient(180deg, rgba(93, 224, 191, 0.22), rgba(93, 224, 191, 0.08));
    border-color: rgba(93, 224, 191, 0.45);
    color: #ecfdf5;
}
.dash-menu-launch-submenu__btn--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.4);
    color: #cbd5e1;
    font-weight: 600;
}
.dash-menu-launch-submenu__btn--ghost:hover {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.65);
    color: #e2e8f0;
}
.dash-menu-launch-submenu__actions--stack {
    gap: 4px;
}
.dash-menu-launch-submenu__actions--stack .dash-menu-launch-submenu__btn {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 11px;
}
.dash-menu-launch-submenu__upgrade--muted {
    border-top-color: rgba(43, 57, 80, 0.45);
    color: #94a3b8;
    font-size: 10px;
}
.dash-menu-launch-submenu__links {
    margin: 8px 0 10px;
    padding: 8px 0 0;
    border-top: 1px solid rgba(43, 57, 80, 0.75);
}
.dash-menu-launch-submenu__links-label {
    margin: 0 0 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7b8fb8;
}
.dash-menu-launch-submenu__links-ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
}
.dash-menu-launch-submenu__links-item {
    margin: 0;
    min-width: 0;
}
.dash-menu-launch-submenu__links-a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}
.dash-menu-launch-submenu__links-a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}
.dash-menu-launch-submenu__links-all {
    display: inline-block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #7dd3fc;
    text-decoration: none;
}
.dash-menu-launch-submenu__links-all:hover {
    text-decoration: underline;
}
.dash-launch-module-links__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 8px;
}
.dash-launch-module-links__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.dash-launch-module-links__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.dash-launch-module-links__main {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 180px;
}
.dash-launch-module-links__main strong {
    font-size: 14px;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-launch-module-links__main .muted-light {
    font-size: 12px;
}
.dash-launch-module-links__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

/* Launch experience: compact mobile treatment across dashboard/module pages */
@media (max-width: 760px) {
    .dash-menu > .dash-menu-launch {
        margin-top: 6px;
        padding: 6px 0 4px;
    }
    .dash-menu-launch__heading {
        margin-bottom: 4px;
        padding: 3px 10px 1px;
        font-size: 9px;
        letter-spacing: 0.11em;
    }
    .dash-menu-launch__split {
        margin: 6px 0 4px;
    }
    .dash-menu .menu-item.menu-item--launch,
    .dash-menu button.menu-item.menu-item--launch {
        min-height: 38px;
        border-radius: 8px;
        padding: 8px 10px;
        font-size: 12px;
    }
    .dash-menu-launch-dd > summary .menu-item-launch-dd__title {
        font-size: 12px;
    }
    .dash-menu-launch-submenu {
        margin: 6px 10px 8px;
        padding: 10px 11px;
        border-radius: 9px;
    }
    .dash-menu-launch-submenu__brand {
        font-size: 9px;
    }
    .dash-menu-launch-submenu__subtitle {
        font-size: 12px;
    }
    .dash-menu-launch-submenu__purpose,
    .dash-menu-launch-submenu__label,
    .dash-menu-launch-submenu__list,
    .dash-menu-launch-submenu__upgrade {
        font-size: 11px;
    }
    .dash-menu-launch-submenu__list {
        padding-left: 16px;
    }
    .dash-menu-launch-submenu__actions {
        gap: 7px;
    }
    .dash-menu-launch-submenu__btn {
        width: 100%;
        justify-content: center;
        min-height: 36px;
        padding: 7px 10px;
        font-size: 12px;
    }
    .dash-launch-module__host--framed,
    .dash-launch-module__sales-wrap {
        border-radius: 10px;
    }
    .dash-launch-module__service-frame,
    .dash-launch-module__sales-frame {
        min-height: 420px;
        height: 62vh;
        max-height: 72vh;
    }
    .dash-launch-module__frame-hint {
        font-size: 12px;
        padding: 8px 10px 10px;
    }
    .dash-launch-module__payments-intro {
        margin-bottom: 10px;
        padding: 18px 16px;
        border-radius: 10px;
        font-size: 14px; /* Increased for mobile readability */
    }
    .dash-launch-module__payments-intro__quick {
        gap: 7px;
    }
    .dash-launch-module__payments-intro__quick a {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 11px;
    }
    .dash-launch-m-upgrade {
        padding: 20px 18px;
        margin-bottom: 12px;
    }
    .dash-launch-m-upgrade__text {
        font-size: 15px; /* Improved readability for mobile optimization */
        line-height: 1.5;
    }
    .dash-launch-sales-modal__dialog {
        width: min(980px, calc(100vw - 14px));
        max-height: calc(100vh - 14px);
        border-radius: 10px;
    }
    .dash-launch-sales-modal__head {
        padding: 9px 10px;
    }
    .dash-launch-sales-modal__frame {
        min-height: 520px;
        height: 90vh; /* Comprehensive height to fill more of the mobile viewport */
        max-height: 95vh;
    }
    .dash-launch-sales-modal__actions {
        font-size: 12px;
        padding: 8px 10px 10px;
    }
    .dash-al-launch-panel__head {
        gap: 8px;
    }
    .dash-al-launch-lead,
    .dash-al-launch-links a {
        font-size: 13px;
    }
}

.dash-launch-sales-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.dash-launch-sales-modal[hidden] {
    display: none !important;
}
.dash-launch-sales-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    cursor: default;
    pointer-events: auto; /* Block background interactions during slow save processes */
}
.dash-launch-sales-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(90vh, 880px);
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: #0f172a;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.dash-launch-sales-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #1e293b;
    flex-shrink: 0;
}
.dash-launch-sales-modal__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}
.dash-launch-sales-modal__x {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.dash-launch-sales-modal__x:hover {
    color: #f8fafc;
    background: #1e293b;
}
.dash-launch-sales-modal__frame {
    width: 100%;
    flex: 1;
    min-height: 85vh; /* Increased for a more comprehensive mobile view */
    border: 0;
    background: #fff;
}
.dash-launch-sales-modal__actions {
    margin: 0;
    padding: 10px 14px 14px;
    border-top: 1px solid #1e293b;
    font-size: 13px;
}

.dash-launch-sales-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: min(86vh, 900px);
}
.dash-launch-sales-inline__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.dash-launch-sales-inline__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
}
.dash-launch-sales-inline__actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dash-launch-sales-inline__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    background: #111827;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.dash-launch-sales-inline__action--back {
    background: #0b1220;
}
.dash-launch-sales-inline__action:hover {
    background: #1e293b;
    color: #fff;
}
.dash-launch-sales-inline__frame {
    width: 100%;
    min-height: min(80vh, 760px);
    border: 1px solid #1e293b;
    border-radius: 12px;
    background: #fff;
}

.dash-launch-module__badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
}
.dash-launch-module__badge.is-paid {
    background: #dcfce7;
    color: #166534;
}
.dash-launch-module__badge.is-unpaid {
    background: #fef3c7;
    color: #92400e;
}
/* Paid launch tools: same-origin iframe with ?dash_embed=1 (no duplicate sidebar inside). */
.dash-launch-module__host {
    margin: 0;
    padding: 14px 16px 26px;
    border: 0;
    border-radius: 0;
    background: transparent;
    min-height: 120px;
}

.dash-launch-module__host > *:first-child {
    margin-top: 0;
}

@media (max-width: 760px) {
    .dash-launch-module__host {
        padding: 10px 8px 22px;
    }
}

/* Whitelabel (OTO5): grids + fixed min widths caused horizontal scroll on mobile */
.dash-launch-module__host--whitelabel {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}
.dash-whitelabel-flow {
    display: grid;
    gap: 14px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}
.dash-whitelabel-flow .chart-card {
    min-width: 0;
    max-width: 100%;
}
.dash-whitelabel-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 8px;
    min-width: 0;
}
.dash-whitelabel-input {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}
.dash-whitelabel-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.dash-whitelabel-domain-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
    min-width: 0;
}
.dash-whitelabel-domain-btn {
    white-space: nowrap;
    align-self: center;
}
.dash-whitelabel-users-row,
.dash-whitelabel-pricing-row {
    display: grid;
    gap: 8px;
    align-items: stretch;
    min-width: 0;
}
.dash-whitelabel-users-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 180px) auto;
}
.dash-whitelabel-pricing-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 120px) minmax(0, 120px) auto;
}
@media (max-width: 960px) {
    .dash-whitelabel-domain-row {
        grid-template-columns: 1fr;
    }
    .dash-whitelabel-domain-btn {
        justify-self: stretch;
        text-align: center;
        white-space: normal;
    }
    .dash-whitelabel-users-row,
    .dash-whitelabel-pricing-row {
        grid-template-columns: 1fr;
    }
    .dash-whitelabel-submit {
        width: 100%;
        justify-self: stretch;
    }
}

.dash-launch-module__host--framed {
    margin-top: 4px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.dash-launch-module__service-frame {
    display: block;
    width: 100%;
    min-height: min(70vh, 720px);
    height: 70vh;
    max-height: 85vh;
    border: 0;
    background: #fff;
}

.dash-launch-module__frame-hint {
    margin: 0;
    padding: 10px 12px 12px;
    font-size: 13px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

/* Payments module: overview strip above embedded tool */
.dash-launch-module__payments-intro {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    font-size: 13px;
    line-height: 1.45;
    color: #334155;
}
.dash-launch-module__payments-intro__head {
    margin: 0 0 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
}
.dash-launch-module__payments-intro__brand {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #64748b;
}
.dash-launch-module__payments-intro__tag {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}
.dash-launch-module__payments-intro__grid {
    display: grid;
    gap: 12px 20px;
}
@media (min-width: 720px) {
    .dash-launch-module__payments-intro__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}
.dash-launch-module__payments-intro__block {
    margin: 0;
}
.dash-launch-module__payments-intro__label {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}
.dash-launch-module__payments-intro__label--gap {
    margin-top: 10px;
}
.dash-launch-module__payments-intro__list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 12px;
}
.dash-launch-module__payments-intro__list li {
    margin: 3px 0;
}
.dash-launch-module__payments-intro__hint {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 12px;
    color: #475569;
    grid-column: 1 / -1;
}
.dash-launch-module__payments-intro__quick {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
}
.dash-launch-module__payments-intro__quick-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    width: 100%;
}
.dash-launch-module__payments-intro__quick a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.dash-launch-module__payments-intro__quick a:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

/* payments-financial.php — module overview */
.pay-fin-lead__head {
    align-items: center;
}
.pay-fin-lead__sub {
    margin: -4px 0 0;
    max-width: 44rem;
}
.pay-fin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px 16px;
    margin-top: 8px;
}
.pay-fin-stat {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fafafa;
}
.pay-fin-stat__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 4px;
}
.pay-fin-stat__value {
    display: block;
    font-size: 1.35rem;
    color: #0f172a;
    line-height: 1.2;
}
.pay-fin-stat__hint {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.35;
}
.pay-fin-queue-banner {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    font-size: 14px;
    color: #14532d;
}
.pay-fin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.pay-fin-table th,
.pay-fin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
.pay-fin-table thead th {
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.pay-fin-table--compact td {
    font-size: 12px;
}
.pay-fin-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #334155;
}
.pay-fin-pill--pending {
    background: #fef9c3;
    color: #854d0e;
}
.pay-fin-pill--processing,
.pay-fin-pill--approved {
    background: #dbeafe;
    color: #1d4ed8;
}
.pay-fin-pill--successful {
    background: #dcfce7;
    color: #166534;
}
.pay-fin-pill--failed,
.pay-fin-pill--reversed,
.pay-fin-pill--rejected {
    background: #fee2e2;
    color: #991b1b;
}
.pay-fin-escrow-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

/* Unpaid: external sales page only — single light frame (no nested dashboard). */
.dash-launch-module__sales-wrap {
    margin-top: 4px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    min-height: min(70vh, 720px);
}

.dash-launch-module__sales-frame {
    display: block;
    width: 100%;
    min-height: min(70vh, 720px);
    height: 70vh;
    max-height: 85vh;
    border: 0;
    background: #fff;
}

.dash-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #68e6c7;
    font-size: 18px;
    line-height: 1;
}

.dash-brand-logo {
    display: block;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.dash-brand-text {
    display: grid;
    gap: 2px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.dash-brand-text strong {
    display: block;
    color: inherit;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.05;
}

.dash-brand-text span {
    display: block;
    color: #a8bfe8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* ── Topbar financial metric pills (dashboard page) ────────────────────── */
.dash-topbar-fin-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    margin-right: auto;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
    z-index: 20;
}
.dash-topbar-fin-pills::-webkit-scrollbar { display: none; }
.dash-topbar-fin-pills.is-currency-open { z-index: 40; }

.dash-topbar-fin-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.dash-topbar-fin-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}
.dash-topbar-fin-pill--processed { border-color: rgba(34, 197, 94, 0.28); }
.dash-topbar-fin-pill--pending   { border-color: rgba(245, 158, 11, 0.28); }
.dash-topbar-fin-pill--withdrawable { border-color: rgba(59, 130, 246, 0.28); }

.dtfp-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.01em;
}

.dtfp-value {
    font-size: 12px;
    font-weight: 700;
    color: #e2f7f1;
    letter-spacing: -0.01em;
}

.dtfp-sym {
    font-size: 0.88em;
    font-weight: 700;
    color: #9ecfc4;
    margin-right: 1px;
}

/* Currency switcher pill — sibling of fin pills, NOT inside overflow container */
.dash-topbar-fin-cur {
    position: relative;
    flex-shrink: 0;
    z-index: 30;
}

.dash-topbar-fin-cur.is-currency-open {
    z-index: 50;
}

.dash-topbar-fin-cur.is-currency-open .dash-topbar-currency-dropdown {
    display: flex;
}

.dash-topbar-fin-cur .dash-topbar-currency-dropdown {
    right: 0;
    left: auto;
    top: calc(100% + 8px);
}

@media (max-width: 1180px) {
    .dash-topbar-fin-pills {
        gap: 4px;
    }
    .dtfp-label {
        display: none;
    }
    .dash-topbar-fin-pill {
        padding: 5px 9px;
        gap: 4px;
    }
}

@media (max-width: 760px) {
    .dash-menu-launch__group-title {
        display: none;
    }
    /* Fin topbar: row 1 = navigation/actions; row 2 = pills + currency switch */
    .dash-main .dash-topbar.dash-topbar--fin,
    .dash-topbar.dash-topbar--fin {
        flex-wrap: wrap;
        align-items: center;
        padding-bottom: 0;
        row-gap: 6px;
    }
    .dash-topbar--fin .dash-nav-hamburger { order: 0; flex-shrink: 0; }
    .dash-topbar--fin .topbar-actions       { order: 2; margin-left: auto; flex-shrink: 0; }
    /* Row 2: keep metrics + currency selector on the same line */
    .dash-topbar--fin .dash-topbar-fin-pills {
        order: 10;
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 8px 2px 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
        align-items: center;
    }
    .dash-topbar--fin .dash-topbar-fin-cur  {
        order: 11;
        flex: 0 0 auto;
        align-self: stretch;
        display: inline-flex;
        align-items: center;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }
    .dash-topbar--fin .dash-topbar-fin-pills::-webkit-scrollbar { display: none; }
    /* Compact pills so all key metrics fit the row better */
    .dash-topbar--fin .dash-topbar-fin-pill {
        flex-shrink: 0;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 5px 8px;
    }
    .dash-topbar--fin .dtfp-label {
        display: none;
    }
    .dash-topbar--fin .dtfp-value {
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
    }
    /* Dropdown: anchor left so it doesn't overflow off-screen left */
    .dash-topbar-fin-cur .dash-topbar-currency-dropdown {
        left: 0;
        right: auto;
        min-width: min(210px, calc(100vw - 24px));
    }
}

/* ── Topbar balance cluster ─────────────────────────────────────────────── */
.dash-topbar-balance-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    margin-left: 0;
    position: relative;
    z-index: 20;
}

.dash-topbar-balance-cluster.is-hidden { display: none; }

.dash-topbar-balance-cluster.is-currency-open { z-index: 40; }

.dash-topbar-bal-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.dash-topbar-bal-label__short {
    display: none;
}

@media (max-width: 768px) {
    .dash-topbar-bal-label__full {
        display: none;
    }

    .dash-topbar-bal-label__short {
        display: inline;
    }
}

.dash-topbar-bal-value {
    font-size: 13px;
    font-weight: 700;
    color: #e2f7f1;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.dash-topbar-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #213a6a;
    background: #0d1d44;
    color: #d8e1ff;
    box-sizing: border-box;
    line-height: 1;
}

.dash-topbar-balance-btn {
    white-space: nowrap;
}

.dash-topbar-currency-wrap {
    position: relative;
}

.dash-topbar-currency-trigger {
    gap: 4px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #213a6a;
    background: #0d1d44;
    color: #c8eee5;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dash-topbar-currency-trigger:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
}

.dash-topbar-currency-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 210px;
    max-height: 230px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #1e3460;
    background: #0c1b3e;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: 2px;
}

.dash-topbar-balance-cluster.is-currency-open .dash-topbar-currency-dropdown {
    display: flex;
}

.dash-topbar-currency-option {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #b8d4e8;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}

.dash-topbar-currency-option:hover { background: rgba(255, 255, 255, 0.07); }
.dash-topbar-currency-option.is-active { background: rgba(93, 224, 191, 0.15); color: #5de0bf; }

.dash-tbc-code {
    font-weight: 700;
    font-size: 12px;
    min-width: 2.75rem;
}

.dash-tbc-label {
    font-size: 11px;
    color: #7a9bb8;
    flex: 1;
}

@media (max-width: 760px) {
    .dash-topbar-balance-cluster {
        margin-right: auto;
        gap: 6px;
    }
    .dash-topbar-bal-label { display: inline; }
    .dash-topbar-mini-btn { padding: 0 10px; }
}

/* Mobile topbar: keep only balance, currency switch, and profile icon controls. */
@media (max-width: 760px) {
    .dash-main .dash-topbar .topbar-notification,
    .dash-main .dash-topbar .topbar-deal-messages,
    .dash-main .dash-topbar .topbar-quick-action,
    .dash-main .dash-topbar .topbar-verification-badges,
    .dash-main .dash-topbar .topbar-account-badge,
    .dash-main .dash-topbar .topbar-tier-badge {
        display: none !important;
    }

    .dash-main .dash-topbar .dash-topbar-balance-cluster {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0;
        gap: 6px;
    }

    .dash-main .dash-topbar .dash-topbar-balance-btn {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
        padding: 0 9px;
    }

    .dash-main .dash-topbar .dash-topbar-bal-label__full {
        display: none !important;
    }

    .dash-main .dash-topbar .dash-topbar-bal-label__short {
        display: inline !important;
    }

    .dash-main .dash-topbar .dash-topbar-bal-value {
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
    }

    .dash-main .dash-topbar .dash-topbar-currency-trigger {
        flex: 0 0 40px;
        width: 40px;
        min-width: 40px;
        padding: 0;
        font-size: 0;
        gap: 0;
    }

    .dash-main .dash-topbar .dash-topbar-currency-trigger [data-topbar-fin-code] {
        display: none !important;
    }

    .dash-main .dash-topbar .dash-topbar-currency-trigger::before {
        content: "↺";
        font-size: 16px;
        line-height: 1;
    }

    .dash-main .dash-topbar .dash-topbar-currency-trigger span[aria-hidden="true"] {
        display: none !important;
    }

    .dash-main .dash-topbar .topbar-actions {
        flex: 0 0 auto;
        margin-left: 0 !important;
        gap: 6px;
    }

    .dash-main .dash-topbar .topbar-user-trigger {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }

    .dash-main .dash-topbar .topbar-user-name,
    .dash-main .dash-topbar .topbar-user-caret {
        display: none !important;
    }

    .dash-main .dash-topbar .topbar-avatar {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }
}

.dash-sidebar-wallet {
    margin: 0 10px 0;
    padding: 10px 12px 12px;
    border-radius: 12px;
    border: 1px solid #1a2d57;
    background: linear-gradient(145deg, rgba(12, 28, 68, 0.9), rgba(8, 18, 48, 0.95));
    position: relative;
    z-index: 2;
}

.dash-sidebar-wallet.is-currency-open {
    z-index: 40;
}

.dash-sidebar-balance-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #c8d7f5;
    line-height: 1.3;
}

.dash-ab-label {
    flex-shrink: 0;
    color: #8ea6d9;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.dash-ab-value {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: #e8f0ff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-ab-caret {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid #2a4578;
    border-radius: 8px;
    background: rgba(20, 40, 80, 0.55);
    color: #9eb7e8;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dash-ab-caret:hover {
    border-color: #4070b8;
    color: #e8f0ff;
    background: rgba(32, 58, 108, 0.75);
}

.dash-sidebar-wallet.is-currency-open .dash-ab-caret {
    border-color: #4be2bf;
    color: #4be2bf;
}

.dash-currency-dropdown {
    display: none;
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(100% - 4px);
    margin-top: 2px;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #1a2d57;
    background: #0b1430;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    z-index: 30;
    max-height: 220px;
    overflow-y: auto;
    flex-direction: column;
    gap: 2px;
}

.dash-sidebar-wallet.is-currency-open .dash-currency-dropdown {
    display: flex;
}

.dash-currency-option {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #a6b8df;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.dash-currency-option:hover {
    background: rgba(32, 58, 108, 0.45);
    color: #e8f0ff;
}

.dash-currency-option.is-active {
    background: rgba(75, 226, 191, 0.12);
    color: #4be2bf;
}

.dash-cur-code {
    font-weight: 700;
    min-width: 2.75rem;
}

.dash-cur-label {
    font-size: 11px;
    color: #7a92c4;
    flex: 1;
    min-width: 0;
}

.dash-currency-option.is-active .dash-cur-label {
    color: #9ee8d4;
}

.dash-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
}

.dash-menu-group {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

/* Full-bleed bar in sidebar: dark blue band + divider; text aligns with menu link labels */
.dash-menu-group-label.dash-menu-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0 -14px 4px;
    padding: 5px 14px 6px 26px;
    font-size: 10px;
    font-weight: 900 !important;
    font-family: inherit;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a8bfe8;
    line-height: 1.35;
    background: linear-gradient(180deg, #0c2348 0%, #081a38 100%);
    border: 0;
    border-bottom: 1px solid #1f3c6f;
    box-sizing: border-box;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.dash-menu-group-label-text {
    flex: 1;
    min-width: 0;
    font-weight: 900 !important;
}

.dash-menu-group-chevron {
    flex-shrink: 0;
    font-size: 9px;
    line-height: 1;
    opacity: 0.85;
    transition: transform 0.2s ease;
    color: #8ea9dc;
}

.dash-menu-group.is-open .dash-menu-group-chevron {
    transform: rotate(180deg);
}

/* 14px sidebar padding + 12px menu item inset = label text aligns with .dash-menu a */
/* Single rule between Dashboard and first section (avoids double line with .dash-menu-launch border-top) */
.dash-menu > .dash-menu-group:first-of-type .dash-menu-group-label.dash-menu-group-toggle {
    margin-top: 0;
    border-top: 1px solid #1a2d57;
    padding-top: 10px;
}

/* Desktop: section links open only on click state. */
@media (min-width: 1181px) {
    .dash-menu-group .dash-menu-group-items {
        display: none !important;
    }

    .dash-menu-group.is-open .dash-menu-group-items {
        display: grid !important;
    }

    /* Studio seller hub: keep every section expanded on desktop. */
    .dash-shell--studio-funnel .dash-menu-group .dash-menu-group-items,
    .dash-shell--studio-funnel .dash-menu-group:not(.is-open) .dash-menu-group-items,
    .dash-shell--studio-funnel .dash-menu-group.is-open .dash-menu-group-items {
        display: grid !important;
    }

    .dash-menu-group-toggle {
        pointer-events: auto;
        cursor: pointer;
    }

    .dash-menu-group-chevron {
        display: inline-flex !important;
    }
}

/* Desktop touch / stylus-primary (no hover): keep every section expanded */
@media (min-width: 1181px) and (hover: none) {
    .dash-menu-group .dash-menu-group-items {
        display: grid !important;
    }

    .dash-menu-group-toggle {
        pointer-events: none;
        cursor: default;
    }

    .dash-menu-group-chevron {
        display: none !important;
    }
}

.dash-menu-group-items {
    display: grid;
    gap: 2px;
    grid-template-columns: 1fr;
}

.dash-shell--studio-funnel .dash-menu-group {
    margin-top: 6px;
}

.dash-shell--studio-funnel .dash-menu-group .dash-menu-group-items {
    display: grid !important;
}

.dash-shell--studio-funnel .dash-menu-group-toggle {
    cursor: default;
    pointer-events: none;
}

.dash-shell--studio-funnel .dash-menu-group-chevron {
    display: none !important;
}

/* Default landing link — not under Personal / Business / etc. */
.dash-menu-home {
    margin: 0;
    padding-bottom: 8px;
    /* Divider is either first accordion group (border-top) or African Launch (border-top), not both */
}

.dash-menu-footer {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #1a2d57;
}

.dash-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 9px;
    color: #a6b8df;
    font-size: 13px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.dash-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 9px;
    color: #a6b8df;
    font-size: 13px;
    border: 1px solid transparent;
}
.dash-menu .menu-item.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: #1a2d57;
    background: #0a1536;
}
.menu-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #2bc49f;
    color: #052128;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}
.menu-paid-offer-star {
    display: none;
}
.menu-paid-offer-lock {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
    opacity: 0.92;
}
.menu-item--paid-locked {
    cursor: pointer;
}
.menu-item--paid-locked:hover .menu-paid-offer-lock--closed,
.menu-item--paid-unlocked:hover .menu-paid-offer-lock--open {
    opacity: 1;
}
.menu-item-launch__lock--open {
    opacity: 0.88;
}
.menu-item--paid-offer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-item--paid-offer::before {
    display: none;
    content: none;
}
.menu-item--paid-offer-purple::before,
.menu-item--paid-offer-purple .menu-paid-offer-star { background: #7c3aed; box-shadow: 0 6px 14px rgba(124, 58, 237, 0.28); }
.menu-item--paid-offer-sky::before,
.menu-item--paid-offer-sky .menu-paid-offer-star { background: #0ea5e9; box-shadow: 0 6px 14px rgba(14, 165, 233, 0.28); }
.menu-item--paid-offer-emerald::before,
.menu-item--paid-offer-emerald .menu-paid-offer-star { background: #10b981; box-shadow: 0 6px 14px rgba(16, 185, 129, 0.28); }
.menu-item--paid-offer-rose::before,
.menu-item--paid-offer-rose .menu-paid-offer-star { background: #f43f5e; box-shadow: 0 6px 14px rgba(244, 63, 94, 0.28); }
.menu-item--paid-offer-indigo::before,
.menu-item--paid-offer-indigo .menu-paid-offer-star { background: #4f46e5; box-shadow: 0 6px 14px rgba(79, 70, 229, 0.28); }
.menu-item--paid-offer-amber::before,
.menu-item--paid-offer-amber .menu-paid-offer-star { background: #d97706; box-shadow: 0 6px 14px rgba(217, 119, 6, 0.28); }
.menu-item--paid-offer-cyan::before,
.menu-item--paid-offer-cyan .menu-paid-offer-star { background: #0891b2; box-shadow: 0 6px 14px rgba(8, 145, 178, 0.28); }
.menu-item--paid-offer-lime::before,
.menu-item--paid-offer-lime .menu-paid-offer-star { background: #65a30d; box-shadow: 0 6px 14px rgba(101, 163, 13, 0.28); }

.menu-product-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.4;
    flex-shrink: 0;
}
.menu-product-badge--owned {
    background: rgba(16, 185, 129, 0.16);
    color: #059669;
}
.menu-product-badge--upgrade {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}
.menu-icon {
    flex-shrink: 0;
    width: 22px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5ddbc0;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.dash-menu a:hover,
.dash-menu a.is-active,
.dash-menu button.menu-item:hover,
.dash-menu button.menu-item.is-active,
.dash-menu summary.menu-item:hover,
.dash-menu summary.menu-item.is-active {
    background: #112249;
    color: #f0f5ff;
    border-color: #213a6a;
}

.dash-help-card {
    margin-top: auto;
    flex-shrink: 0;
    border: 1px solid #1f3c6f;
    border-radius: 12px;
    background: linear-gradient(180deg, #123054 0%, #0c2345 100%);
    padding: 14px;
}

.dash-help-card h4 {
    margin: 0 0 6px;
    color: #d8f7f0;
}

.dash-help-card p {
    margin: 0 0 10px;
    color: #afc2ea;
    font-size: 12px;
}

.dash-help-card-action__icon.menu-icon--launch {
    color: inherit;
}
.dash-help-card a,
.dash-help-card .dash-help-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #53ddb9;
    color: #09373b;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.dash-help-card-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #0f766e;
    color: #ecfeff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash-main {
    padding: 18px 20px 24px;
    min-width: 0;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--dash-content-bg);
    color: #1e2635;
    box-shadow: -1px 0 0 #e2e8f0;
    font-family: var(--dash-font-family);
    font-size: var(--dash-font-base);
    line-height: 1.45;
}

/* Pin legal disclaimer to bottom of main column (aligns with sidebar Help Center). */
.dash-main .afs-caveat-footer {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 28px;
    padding-bottom: 28px;
    color: #64748b;
    box-sizing: border-box;
}

.dash-main .afs-caveat-footer__inner {
    border: 0 !important;
    background: transparent;
    padding: 16px;
    box-shadow: none !important;
}

.dash-main .afs-caveat-footer__title {
    margin: 0 0 8px !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dash-main .afs-caveat-footer p {
    margin: 8px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.65 !important;
    color: #64748b !important;
}

.dash-main .afs-caveat-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border: 0 !important;
    font-size: 12px;
    font-weight: 850;
    color: #334155;
}

.dash-main .afs-caveat-footer__links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-main .afs-caveat-footer__links a,
.dash-main .afs-caveat-footer__links a:visited,
.dash-main .afs-caveat-footer__links a:hover,
.dash-main .afs-caveat-footer__links a:focus {
    appearance: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: transparent !important;
    color: #4c1d95 !important;
    padding: 0 !important;
    font: inherit;
    font-weight: 950;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    cursor: pointer;
}

@media (max-width: 640px) {
    .dash-main .afs-caveat-footer {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .dash-main .afs-caveat-footer__inner {
        padding: 12px;
    }

    .dash-main .afs-caveat-footer__bottom {
        display: grid;
    }

    .dash-main .afs-caveat-footer__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .dash-main .afs-caveat-footer__links a {
        text-align: left;
    }
}

.dash-main p,
.dash-main li,
.dash-main label,
.dash-main th,
.dash-main td,
.dash-main input,
.dash-main select,
.dash-main textarea,
.dash-main button,
.dash-main a,
.dash-main span {
    font-family: var(--dash-font-family);
}

/* Launch mobile-first dashboard (African Launch funnel) */
.dash-launch-mobile-view {
    display: none;
}

.dash-launch-m-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #050a1e;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
}

.dash-launch-m-header__menu-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #213a6a;
    background: #0d1d44;
    color: #e2f7f1;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}

.dash-launch-m-header__menu-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.dash-launch-m-header__fin-slot {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.dash-launch-m-header .dash-launch-m-header__balance-cluster {
    flex: 1;
    min-width: 0;
    margin: 0;
    gap: 6px;
}

.dash-launch-m-header .dash-launch-m-header__balance-cluster .dash-topbar-balance-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.dash-launch-m-header__user {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.dash-launch-m-header__user.is-open {
    z-index: 55;
}

.dash-launch-m-header__user .topbar-user-name {
    display: none;
}

.dash-launch-m-header__user .topbar-user-trigger {
    padding: 0 8px;
    gap: 4px;
}

.dash-launch-m-header__user .topbar-user-dropdown {
    z-index: 56;
}

/* Mobile launch header controls: force tappable hit targets above overlays. */
.dash-launch-mobile-view .dash-launch-m-header,
.dash-launch-mobile-view .dash-launch-m-header__fin-slot,
.dash-launch-mobile-view .dash-launch-m-header .dash-launch-m-header__balance-cluster,
.dash-launch-mobile-view .dash-launch-m-header .dash-topbar-currency-trigger,
.dash-launch-mobile-view .dash-launch-m-header .topbar-user-trigger,
.dash-launch-mobile-view .dash-launch-m-header .topbar-user-dropdown,
.dash-launch-mobile-view .dash-launch-m-header__user {
    pointer-events: auto !important;
    touch-action: manipulation;
}

.dash-launch-m-header__chip {
    background: #0f172a;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    box-sizing: border-box;
    font-family: inherit;
}

.dash-launch-m-header__chip--bal {
    flex: 1;
    min-width: 0;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.dash-launch-m-header__sym {
    margin-right: 2px;
}

.dash-launch-m-header__chip--user {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #14b8a6;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.dash-launch-m-header button.dash-launch-m-header__chip[data-dash-menu-toggle] {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
}

.dash-launch-m-container {
    padding: 15px;
    background: #f8f9fa;
    color: #0f172a;
    padding-bottom: 88px;
}

.dash-launch-m-hero {
    background: #050a1e;
    padding: 14px 14px 16px;
    border-radius: 14px;
    margin-bottom: 15px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.dash-launch-m-hero__brand {
    margin: 0 0 12px;
    padding: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.dash-launch-m-hero__inner {
    background: #020617;
    border-radius: 12px;
    padding: 18px 16px 20px;
}

.dash-launch-m-hero__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.dash-launch-m-hero__sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #cbd5f5;
}

.dash-launch-m-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 16px; /* Ensures minimum 48px height for mobile accessibility */
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    border: 1px solid transparent;
}

.dash-launch-m-btn--primary {
    background: #22c55e;
    color: #020617;
    border-color: #22c55e;
}

.dash-launch-m-hero__inner .dash-launch-m-btn--primary {
    color: #ffffff;
}

.dash-launch-m-btn--secondary {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.55);
    color: #fff;
}

.dash-launch-m-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.dash-launch-m-stat-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 12px 8px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    line-height: 1.35;
}

.dash-launch-m-stat-card__line {
    display: block;
    color: #475569;
}

.dash-launch-m-stat-card__val {
    display: block;
    margin-top: 4px;
    font-size: 1.1rem;
    color: #0f172a;
}

.dash-launch-m-stat-card__hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.dash-launch-m-progress {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.dash-launch-m-progress__title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.dash-launch-m-progress__row {
    margin: 8px 0;
    font-size: 14px;
    color: #334155;
}

.dash-launch-m-hero__trust {
    margin: 10px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.dash-launch-hero-trust {
    margin: 10px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.dash-launch-m-activity {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.dash-launch-m-activity__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.dash-launch-m-activity__line {
    margin: 5px 0;
    font-size: 13px;
    color: #64748b;
}

.dash-launch-m-upgrade {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

.dash-launch-m-upgrade__title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.dash-launch-m-upgrade__text {
    margin: 0 0 10px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
}

.dash-launch-m-cta {
    display: none;
}

/* Standard dashboard button treatment: bordered and consistent. */
.dash-main button,
.dash-main .btn,
.dash-main a.btn,
.dash-main input[type="button"],
.dash-main input[type="submit"],
.dash-main input[type="reset"] {
    border: 1px solid #334155 !important;
    border-radius: 6px;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    body:has(.dash-launch-mobile-view) .dash-topbar {
        display: none;
    }

    body:has(.dash-launch-mobile-view) .dash-launch-desktop-view {
        display: none;
    }
    body:has(.dash-launch-mobile-view) .dash-launch-mobile-view {
        display: block;
        margin-bottom: 0;
        /* Match fixed header: max(12,safe) + 40px row + 12px bottom pad */
        padding-top: calc(40px + 12px + max(12px, env(safe-area-inset-top)));
    }

    /* Pin launch header to viewport top (DOM may place alerts/panels above this block) */
    body:has(.dash-launch-mobile-view) .dash-launch-m-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        z-index: 45;
        padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
        box-shadow: 0 1px 0 rgba(148, 163, 184, 0.12);
    }

    .dash-launch-m-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #f8f9fa;
        border-top: 1px solid #e5e7eb;
        padding: 10px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        z-index: 50;
        box-sizing: border-box;
    }

    /* Launch mobile: ensure dashboard hamburger reads on dark topbar if shown */
    body:has(.dash-launch-mobile-view) .dash-main .dash-nav-hamburger,
    body:has(.dash-launch-mobile-view) .dash-topbar .dash-nav-hamburger {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
    }

    body:has(.dash-launch-mobile-view) .dash-main .dash-nav-hamburger:hover,
    body:has(.dash-launch-mobile-view) .dash-topbar .dash-nav-hamburger:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.18);
    }

    .dash-launch-m-cta__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 16px;
        border-radius: 10px;
        border: none;
        background: #22c55e;
        color: #020617;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        font-family: inherit;
        box-sizing: border-box;
    }

    /* Launch header: match topbar fin pills (40px, 10px radius); override .dash-main button defaults */
    .dash-launch-mobile-view .dash-launch-m-header .dash-topbar-mini-btn,
    .dash-launch-mobile-view .dash-launch-m-header .dash-launch-m-header__menu-btn,
    .dash-launch-mobile-view .dash-launch-m-header .topbar-user-trigger {
        min-height: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }

    .dash-launch-mobile-view .dash-launch-m-header .dash-topbar-balance-btn,
    .dash-launch-mobile-view .dash-launch-m-header .dash-topbar-currency-trigger {
        padding: 0 10px !important;
        font-size: 12px !important;
        border: 1px solid #213a6a !important;
        background: #0d1d44 !important;
        color: #c8eee5 !important;
    }

    .dash-launch-mobile-view .dash-launch-m-header .dash-topbar-currency-trigger {
        flex-shrink: 0;
    }

    .dash-launch-mobile-view .dash-launch-m-header .dash-launch-m-header__menu-btn {
        width: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
        font-size: 18px !important;
        color: #e2f7f1 !important;
    }

    .dash-launch-mobile-view .dash-launch-m-header .topbar-user-trigger {
        padding: 0 8px !important;
        border: 1px solid #213a6a !important;
        background: #0d1d44 !important;
        color: #d8e1ff !important;
    }

    .dash-launch-mobile-view .dash-launch-m-header .dash-topbar-bal-label {
        font-size: 10px !important;
    }

    .dash-launch-mobile-view .dash-launch-m-header .dash-topbar-bal-value {
        font-size: 12px !important;
    }

    .dash-launch-mobile-view .dash-launch-m-header .dash-topbar-currency-dropdown {
        right: 0;
        left: auto;
    }

    .dash-launch-mobile-view .dash-launch-m-btn {
        border-radius: 10px !important;
    }

    .dash-launch-mobile-view .dash-launch-m-hero .dash-launch-m-btn--primary {
        border-color: #22c55e !important;
        background: #22c55e !important;
        color: #ffffff !important;
    }

    .dash-launch-mobile-view .dash-launch-m-upgrade .dash-launch-m-btn--primary {
        border-color: #22c55e !important;
        background: #22c55e !important;
        color: #020617 !important;
    }

    .dash-launch-mobile-view .dash-launch-m-btn--secondary {
        border-color: rgba(148, 163, 184, 0.55) !important;
        background: rgba(15, 23, 42, 0.65) !important;
        color: #fff !important;
    }

    /* Live sales: bottom-right, just above sticky CTA (align with bar / primary button side) */
    .dash-lcv-live-sales {
        left: auto;
        right: max(12px, env(safe-area-inset-right));
        transform: none;
        bottom: calc(112px + env(safe-area-inset-bottom, 0px));
        z-index: 45;
        max-width: min(320px, calc(100vw - 24px));
    }

    .dash-launch-m-cta__hint {
        margin: 8px 0 0;
        text-align: center;
        font-size: 12px;
        font-weight: 600;
        color: rgba(148, 163, 184, 0.95);
        opacity: 0.75;
    }

    .dash-launch-m-progress__row--next {
        font-weight: 700;
        font-size: 15px;
        color: #f8fafc;
    }

    .dash-launch-m-progress__cta {
        margin: 8px 0 0;
        font-size: 13px;
    }

    .dash-launch-m-progress__link {
        color: #5de0bf;
        font-weight: 600;
        text-decoration: none;
    }

    .dash-launch-m-progress__link:hover {
        text-decoration: underline;
    }

    .dash-launch-m-progress__row--done {
        color: rgba(226, 232, 240, 0.9);
        font-size: 14px;
    }

    .dash-lcv-desktop-earnings__grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Afripay Launch conversion strip (earnings, empty state, live ticker, modal) ── */
/* Launch dashboard text panels — black copy, rounded like stat cards */
.dash-launch-mobile-view,
.dash-launch-desktop-view {
    --dash-launch-panel-radius: 10px;
    --dash-launch-panel-border: 1px solid #e5e7eb;
    --dash-launch-panel-bg: #ffffff;
    --dash-launch-text: #0a0a0a;
    --dash-launch-text-muted: #334155;
}

@media (min-width: 769px) {
    .dash-launch-desktop-view {
        --dash-launch-panel-radius: 14px;
    }
}

.dash-launch-mobile-view .dash-lcv-quick-tip--mobile,
.dash-launch-mobile-view .dash-lcv-earnings,
.dash-launch-mobile-view .dash-lcv-empty,
.dash-launch-mobile-view .dash-lcv-momentum,
.dash-launch-mobile-view .dash-launch-m-progress,
.dash-launch-mobile-view .dash-launch-m-activity,
.dash-launch-mobile-view .dash-launch-m-upgrade,
.dash-launch-mobile-view .dash-bank-submissions {
    background: var(--dash-launch-panel-bg);
    border: var(--dash-launch-panel-border);
    border-radius: var(--dash-launch-panel-radius);
    box-shadow: none;
    color: var(--dash-launch-text);
}

.dash-lcv-quick-tip__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.dash-lcv-quick-tip__label {
    font-weight: 800;
}

.dash-lcv-quick-tip.chart-card .dash-lcv-quick-tip__text {
    color: #cbd5e1;
}

.dash-lcv-quick-tip.chart-card .dash-lcv-quick-tip__label {
    color: #f2f6ff;
}

.dash-main .chart-card.dash-lcv-quick-tip,
.dash-launch-desktop-view > .chart-card.dash-lcv-quick-tip {
    background: var(--dash-launch-panel-bg);
    border: var(--dash-launch-panel-border);
    border-radius: var(--dash-launch-panel-radius);
    box-shadow: none;
}

.dash-main .chart-card.dash-lcv-quick-tip .dash-lcv-quick-tip__text,
.dash-main .chart-card.dash-lcv-quick-tip .dash-lcv-quick-tip__label,
.dash-launch-desktop-view > .chart-card.dash-lcv-quick-tip .dash-lcv-quick-tip__text,
.dash-launch-desktop-view > .chart-card.dash-lcv-quick-tip .dash-lcv-quick-tip__label {
    color: var(--dash-launch-text);
}

.dash-lcv-quick-tip--mobile {
    padding: 12px 14px;
    margin: 0 0 12px;
}

.dash-lcv-quick-tip--mobile .dash-lcv-quick-tip__text,
.dash-launch-mobile-view .dash-lcv-quick-tip--mobile .dash-lcv-quick-tip__text {
    color: var(--dash-launch-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

.dash-lcv-quick-tip--mobile .dash-lcv-quick-tip__label,
.dash-launch-mobile-view .dash-lcv-quick-tip--mobile .dash-lcv-quick-tip__label {
    color: var(--dash-launch-text);
    font-weight: 800;
}

.dash-launch-mobile-view .dash-lcv-earnings__title,
.dash-launch-mobile-view .dash-lcv-earnings__dl dt,
.dash-launch-mobile-view .dash-lcv-earnings__dl dd,
.dash-launch-mobile-view .dash-lcv-earnings__hint {
    color: var(--dash-launch-text);
}

.dash-launch-mobile-view .dash-lcv-earnings__dl dt {
    color: var(--dash-launch-text-muted);
    font-weight: 600;
}

.dash-launch-mobile-view .dash-lcv-earnings__potential dd {
    color: #15803d;
}

.dash-launch-mobile-view .dash-lcv-empty__title,
.dash-launch-mobile-view .dash-lcv-empty__text,
.dash-launch-mobile-view .dash-lcv-empty__steps,
.dash-launch-mobile-view .dash-lcv-momentum__line {
    color: var(--dash-launch-text);
}

.dash-launch-mobile-view .dash-lcv-empty__link,
.dash-launch-mobile-view .dash-lcv-momentum__link {
    color: #15803d;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dash-launch-mobile-view .dash-launch-m-progress__title,
.dash-launch-mobile-view .dash-launch-m-progress__row,
.dash-launch-mobile-view .dash-launch-m-activity__title,
.dash-launch-mobile-view .dash-launch-m-activity__line,
.dash-launch-mobile-view .dash-launch-m-upgrade__title,
.dash-launch-mobile-view .dash-launch-m-upgrade__text {
    color: var(--dash-launch-text);
}

.dash-launch-mobile-view .dash-launch-m-progress__row--done {
    color: var(--dash-launch-text-muted);
}

.dash-launch-mobile-view .dash-launch-m-progress__link {
    color: #15803d;
    font-weight: 700;
}

.dash-launch-mobile-view .dash-lcv-upgrade__urgency {
    color: #15803d;
}

/* Bank transfer proof approvals */
.dash-bank-submissions__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-bank-submissions__item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
}

.dash-bank-submissions__title {
    margin: 0 0 6px;
    font-weight: 800;
    color: #0f172a;
}

.dash-bank-submissions__amount {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.45;
    color: #0a0a0a;
    font-weight: 600;
}

.dash-bank-submissions__amount strong {
    font-weight: 800;
}

.dash-bank-submissions__bump {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

.dash-bank-submissions__summary {
    white-space: normal;
    text-align: right;
}

.dash-bank-submissions__meta {
    margin: 0 0 4px;
    font-size: 13px;
    color: #475569;
}

.dash-bank-submissions__detail {
    margin: 0 0 4px;
    font-size: 13px;
    color: #64748b;
}

.dash-bank-submissions__when {
    margin: 0 0 10px;
    font-size: 12px;
    color: #94a3b8;
}

.dash-bank-submissions__proof {
    margin: 0 0 12px;
}

.dash-bank-submissions__proof-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.dash-bank-submissions__proof-link:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.dash-bank-submissions__form {
    margin: 0;
}

.dash-bank-submissions__intro {
    margin: 0 0 14px;
    line-height: 1.55;
}

.dash-bank-submissions__actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
}

.dash-bank-submissions__form {
    margin: 0;
    width: 100%;
}

.dash-bank-submissions__form--approve {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dash-bank-submissions__reject-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

.dash-bank-submissions__form--reject {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dash-bank-submissions__reject-label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.dash-bank-submissions__reject-input {
    display: block;
    width: 100%;
    min-height: 84px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0a0a0a;
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
}

.dash-bank-submissions__reject-input:focus {
    outline: 2px solid rgba(22, 163, 74, 0.35);
    border-color: #16a34a;
}

.dash-bank-submissions__approve {
    background: #16a34a;
    border-color: #16a34a;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dash-bank-submissions__reject {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-color: #dc2626 !important;
    color: #b91c1c !important;
    background: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
}

.dash-bank-submissions__reject:hover {
    background: #fef2f2 !important;
}

.dash-bank-submissions__approve:disabled,
.dash-bank-submissions__reject:disabled {
    opacity: 0.65;
    cursor: wait;
}

.dash-launch-mobile-view .dash-bank-submissions .tx-header h3,
.dash-launch-mobile-view .dash-bank-submissions .muted-light,
.dash-launch-mobile-view .dash-bank-submissions__title,
.dash-launch-mobile-view .dash-bank-submissions__amount {
    color: var(--dash-launch-text);
}

.dash-launch-mobile-view .dash-bank-submissions .muted-light {
    color: var(--dash-launch-text-muted);
}

/* Desktop launch dashboard — readable text in all chart cards */
.dash-launch-desktop-view > .chart-card,
.dash-launch-desktop-view > .chart-row .chart-card {
    background: var(--dash-launch-panel-bg);
    border: var(--dash-launch-panel-border);
    border-radius: var(--dash-launch-panel-radius);
    color: var(--dash-launch-text);
}

.dash-launch-desktop-view > .chart-card h3,
.dash-launch-desktop-view > .chart-card h4,
.dash-launch-desktop-view > .chart-row .chart-card h4,
.dash-launch-desktop-view > .chart-card .muted-light,
.dash-launch-desktop-view > .chart-card p,
.dash-launch-desktop-view > .chart-row .chart-card li {
    color: var(--dash-launch-text);
}

.dash-launch-desktop-view > .chart-card .tx-header h3 {
    color: var(--dash-launch-text);
}

.dash-launch-desktop-view > .chart-card .muted-light {
    color: var(--dash-launch-text-muted);
}

.dash-launch-desktop-view .dash-lcv-desktop-earnings .muted-light {
    color: var(--dash-launch-text-muted);
}

.dash-launch-desktop-view .dash-lcv-desktop-earnings strong,
.dash-launch-desktop-view .dash-lcv-desktop-earnings h3 {
    color: var(--dash-launch-text);
}

@media (max-width: 768px) {
    .dash-lcv-quick-tip.chart-card {
        background: var(--dash-launch-panel-bg);
        border: var(--dash-launch-panel-border);
        border-radius: var(--dash-launch-panel-radius);
        box-shadow: none;
    }

    .dash-lcv-quick-tip.chart-card .dash-lcv-quick-tip__text,
    .dash-lcv-quick-tip.chart-card .dash-lcv-quick-tip__label {
        color: var(--dash-launch-text);
        font-weight: 600;
    }

    .dash-lcv-quick-tip.chart-card .dash-lcv-quick-tip__label {
        font-weight: 800;
    }
}

.dash-lcv-earnings {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.dash-lcv-earnings__title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
}

.dash-lcv-earnings__dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.dash-lcv-earnings__dl > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
}

.dash-lcv-earnings__dl dt {
    margin: 0;
    color: rgba(226, 232, 240, 0.65);
    font-weight: 600;
}

.dash-lcv-earnings__dl dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #e2e8f0;
}

.dash-lcv-earnings__potential dd {
    color: #4ade80;
}

.dash-lcv-earnings__potential {
    flex-wrap: wrap;
}

.dash-lcv-earnings__hint {
    display: block;
    width: 100%;
    font-size: 11px;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.95);
    margin-top: 4px;
}

.dash-lcv-empty {
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.35), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.dash-lcv-empty__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
}

.dash-lcv-empty__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.88);
}

.dash-lcv-empty__steps {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(226, 232, 240, 0.75);
}

.dash-lcv-empty__link {
    color: #5de0bf;
    font-weight: 600;
}

.dash-lcv-momentum {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.dash-lcv-momentum__line {
    margin: 0;
    font-size: 13px;
    color: #ecfdf5;
}

.dash-lcv-momentum__link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #5de0bf;
}

.dash-lcv-upgrade--psych .dash-launch-m-upgrade__title {
    font-size: 15px;
}

.dash-lcv-upgrade__urgency {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #22c55e;
}

.dash-lcv-upgrade__urgency--desktop {
    margin: 0 0 12px;
}

.dash-lcv-desktop-earnings__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
    margin-top: 8px;
}

.dash-lcv-desktop-earnings__grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-lcv-desktop-earnings__grid strong {
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.dash-lcv-desktop-earnings__potential small {
    font-size: 11px;
    color: #64748b;
}

.dash-lcv-potential {
    color: #16a34a !important;
}

.dash-lcv-chart-row--activity {
    grid-template-columns: 1fr;
}

.dash-lcv-live-sales {
    position: fixed;
    z-index: 45;
    pointer-events: none;
}

.dash-lcv-live-sales__inner {
    pointer-events: none;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    animation: dashLcvSlideIn 0.45s ease;
    text-align: right;
}

.dash-lcv-live-sales--enter .dash-lcv-live-sales__inner {
    animation: dashLcvSlideIn 0.45s ease;
}

.dash-lcv-live-sales__main {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

@keyframes dashLcvSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Visibility toggled via .dash-lcv-modal--open (not [hidden] alone) so display:flex never fights the UA hidden stylesheet on desktop. */
.dash-lcv-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.dash-lcv-modal.dash-lcv-modal--open {
    display: flex !important;
    pointer-events: auto;
}

.dash-lcv-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.72);
}

.dash-lcv-modal__dialog {
    position: relative;
    z-index: 2;
    max-width: 360px;
    width: 100%;
    background: #fff;
    color: #0f172a;
    border-radius: 14px;
    padding: 22px 20px 20px;
    padding-top: 12px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.dash-lcv-modal__confetti {
    display: block;
    width: 100%;
    height: 120px;
    margin: 0 auto 4px;
    pointer-events: none;
}

.dash-lcv-modal__title {
    position: relative;
    z-index: 3;
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 800;
}

.dash-lcv-modal__text {
    position: relative;
    z-index: 3;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.dash-lcv-modal__btn {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
    position: relative;
    z-index: 3;
    cursor: pointer;
}

/* Watch demo: secondary only — text-sm, slate-400, muted */
.dash-launch-m-hero-dem--under-cta {
    margin: 8px 0 0;
    text-align: center;
}

.dash-launch-desktop-view .dash-launch-hero-dem--under-cta {
    margin-top: 10px;
    text-align: left;
}

.dash-launch-m-hero-dem--under-cta .dash-launch-hero-dem__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    opacity: 0.6;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dash-launch-m-hero-dem--under-cta .dash-launch-hero-dem__link:hover {
    color: #cbd5e1;
    opacity: 0.85;
}

@media (min-width: 769px) {
    /* Bottom-right (baseline corner); z-45 below modals */
    .dash-lcv-live-sales {
        left: auto;
        right: max(1.25rem, env(safe-area-inset-right));
        bottom: max(2.5rem, env(safe-area-inset-bottom));
        transform: none;
        width: min(320px, calc(100vw - 48px));
        z-index: 45;
    }

    /* Launch desktop: tighter vertical rhythm (mb-3) */
    .dash-launch-desktop-view > .stats-row,
    .dash-launch-desktop-view > .chart-card,
    .dash-launch-desktop-view > .chart-row,
    .dash-launch-desktop-view > .wallet-row {
        margin-bottom: 12px;
    }
}

/* Launch primary CTAs: subtle hover scale (Tailwind-style) */
.dash-launch-m-btn--primary,
.dash-launch-m-cta__btn,
.dash-lcv-upgrade__cta,
.dash-launch-desktop-view .btn.btn-primary {
    transition: transform 0.2s ease-in-out;
}

.dash-launch-m-btn--primary:hover,
.dash-launch-m-cta__btn:hover,
.dash-lcv-upgrade__cta:hover,
.dash-launch-desktop-view .btn.btn-primary:hover {
    transform: scale(1.02);
}

body:has(.dash-launch-mobile-view) .dash-launch-m-container {
    overflow-x: hidden;
}

.dash-topbar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    z-index: 90;
    min-height: 62px;
    background: rgba(5, 11, 31, 0.96);
    backdrop-filter: blur(8px);
    padding: 10px 0;
    border-bottom: 1px solid #142140;
    box-shadow: 0 10px 28px rgba(15,23,42,.12);
}

.dash-topbar .dash-nav-hamburger {
    flex-shrink: 0;
}

.dash-page-lead {
    margin: 0 0 18px;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.dash-page-lead .crumb {
    margin: 0 0 4px;
}

.dash-page-title {
    margin: 0;
    color: #f4f7ff;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dash-page-description {
    margin: 10px 0 0;
    max-width: 720px;
    color: #a8b8d8;
    font-size: 14px;
    line-height: 1.55;
}

/* Inbox shortcuts below top bar (same on all dashboard routes; keep in dashboard.css, not styles.css) */
.dash-account-msg-strip {
    background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 16px 10px;
    font-size: 13px;
}

.dash-account-msg-strip__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.dash-account-msg-strip__label {
    font-weight: 700;
    color: #0f172a;
    margin-right: 4px;
}

.dash-account-msg-strip__link {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

.dash-account-msg-strip__link:hover {
    text-decoration: underline;
}

.dash-account-msg-strip__link.has-unread {
    color: #b45309;
}

.dash-account-msg-strip__count {
    font-weight: 700;
}

.dash-account-msg-strip__muted {
    color: #64748b;
    font-weight: 400;
}

.dash-account-msg-strip__sep {
    color: #94a3b8;
}

.dash-page-description--html {
    margin-top: 10px;
    max-width: 720px;
    color: #a8b8d8;
    font-size: 14px;
    line-height: 1.55;
}

.dash-nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #d8e1ff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(94, 234, 212, 0.2);
    user-select: none;
    -webkit-user-select: none;
}
.dash-nav-hamburger:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}
.dash-nav-hamburger:focus {
    outline: none;
}
.dash-nav-hamburger:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}
.dash-nav-hamburger-box,
.dash-nav-hamburger-box::before,
.dash-nav-hamburger-box::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.dash-nav-hamburger-box {
    position: relative;
}
.dash-nav-hamburger-box::before,
.dash-nav-hamburger-box::after {
    content: "";
    position: absolute;
    left: 0;
}
.dash-nav-hamburger-box::before {
    top: -6px;
}
.dash-nav-hamburger-box::after {
    top: 6px;
}
.dash-shell.is-sidebar-open .dash-nav-hamburger-box {
    background: transparent;
}
.dash-shell.is-sidebar-open .dash-nav-hamburger-box::before {
    top: 0;
    transform: rotate(45deg);
}
.dash-shell.is-sidebar-open .dash-nav-hamburger-box::after {
    top: 0;
    transform: rotate(-45deg);
}

.dash-sidebar-backdrop {
    display: none;
}

.crumb {
    margin: 0 0 2px;
    color: #8ba2cb;
    font-size: var(--dash-font-small);
}

.topbar-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex-shrink: 0;
}
.topbar-verification-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}
.topbar-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.topbar-notification {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #213a6a;
    background: #0d1d44;
    color: #d8e1ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.topbar-notification:hover {
    background: #122655;
}
.topbar-bell-icon {
    display: block;
    color: #b8c9ef;
}
.topbar-notification.has-unread {
    border-color: #2bc49f;
    background: rgba(43, 196, 159, 0.12);
    box-shadow: 0 0 0 1px rgba(43, 196, 159, 0.25);
}
.topbar-notification.has-unread .topbar-bell-icon {
    color: #5eead4;
}
.topbar-notification.has-unread:hover {
    background: rgba(43, 196, 159, 0.2);
}
.topbar-deal-messages .topbar-msg-icon {
    display: block;
    color: #b8c9ef;
}
.topbar-deal-messages.has-unread {
    border-color: #2bc49f;
    background: rgba(43, 196, 159, 0.12);
    box-shadow: 0 0 0 1px rgba(43, 196, 159, 0.25);
}
.topbar-deal-messages.has-unread .topbar-msg-icon {
    color: #5eead4;
}
.topbar-deal-messages.has-unread:hover {
    background: rgba(43, 196, 159, 0.2);
}
.topbar-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #2bc49f;
    color: #052128;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid #0d1d44;
}
.topbar-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #2bc49f;
    background: #2bc49f;
    color: #042029;
    font-size: var(--dash-font-small);
    font-weight: 700;
}
.topbar-quick-action:hover {
    background: #39d6af;
    border-color: #39d6af;
}
.topbar-user-trigger {
    border: 1px solid #213a6a;
    background: #0d1d44;
    color: #d8e1ff;
    border-radius: 10px;
    padding: 5px 10px 5px 6px;
    min-height: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.topbar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2bc49f;
    color: #052128;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.topbar-user-name {
    font-size: var(--dash-font-base);
    font-weight: 600;
}
.topbar-verification-badges .topbar-account-badge,
.topbar-verification-badges .topbar-tier-badge {
    box-sizing: border-box;
    min-height: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.03em;
}
.topbar-account-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-account-badge.personal {
    color: #9cc4ff;
    border-color: #31588f;
    background: rgba(36, 63, 108, 0.35);
}
.topbar-account-badge.business {
    color: #8ef2dc;
    border-color: #2f7f71;
    background: rgba(27, 77, 70, 0.35);
}
.topbar-account-badge.gold {
    color: #fde68a;
    border-color: #b45309;
    background: rgba(120, 53, 15, 0.45);
}
.topbar-tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}
.topbar-tier-badge.tier-gold {
    color: #fde68a;
    border-color: #d97706;
    background: linear-gradient(145deg, rgba(180, 83, 9, 0.55), rgba(55, 32, 8, 0.75));
    box-shadow: 0 0 0 1px rgba(253, 230, 138, 0.15);
}
.topbar-tier-badge.tier-premium {
    color: #a5f3fc;
    border-color: #0e7490;
    background: linear-gradient(145deg, rgba(14, 116, 144, 0.5), rgba(6, 40, 52, 0.85));
    box-shadow: 0 0 0 1px rgba(165, 243, 252, 0.12);
}
.topbar-tier-badge.tier-enterprise {
    color: #e9d5ff;
    border-color: #7c3aed;
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.45), rgba(46, 16, 101, 0.88));
    box-shadow: 0 0 0 1px rgba(233, 213, 255, 0.15);
}
.topbar-user-caret {
    font-size: 10px;
    color: #9eb4dc;
}
.topbar-user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 190px;
    background: #0b1a3d;
    border: 1px solid #294377;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(2, 10, 24, 0.35);
    padding: 6px;
    display: none;
    z-index: 20;
}
.topbar-user.is-open .topbar-user-dropdown {
    display: block;
}
.topbar-user-dropdown a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: var(--dash-font-small);
    color: #d8e1ff;
}
.topbar-user-dropdown a:hover {
    background: #112249;
}

/* Seller / Afripay Studio chrome: echo the dashboard hero gradient without hurting readability. */
.dash-shell--launch-funnel .dash-sidebar,
.dash-shell--studio-funnel .dash-sidebar {
    background:
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.24), transparent 32%),
        radial-gradient(circle at 95% 12%, rgba(124, 58, 237, 0.32), transparent 34%),
        linear-gradient(160deg, #111827 0%, #251151 47%, #082f49 100%);
    border-right-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.dash-shell--launch-funnel .dash-sidebar-top,
.dash-shell--studio-funnel .dash-sidebar-top {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(37, 17, 81, 0.92) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.28);
}

.dash-shell--launch-funnel .dash-brand,
.dash-shell--studio-funnel .dash-brand,
.dash-shell--launch-funnel .dash-brand-icon,
.dash-shell--studio-funnel .dash-brand-icon {
    color: #dbeafe;
}

.dash-shell--launch-funnel .dash-topbar,
.dash-shell--studio-funnel .dash-topbar {
    background:
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.24), transparent 32%),
        radial-gradient(circle at 95% 12%, rgba(124, 58, 237, 0.32), transparent 34%),
        linear-gradient(135deg, #111827 0%, #4c1d95 56%, #0ea5e9 100%);
    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.dash-shell--launch-funnel .dash-topbar::after,
.dash-shell--studio-funnel .dash-topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 68% -40%, rgba(255, 255, 255, 0.16), transparent 38%);
}

.dash-shell--launch-funnel .dash-topbar > *,
.dash-shell--studio-funnel .dash-topbar > * {
    position: relative;
    z-index: 1;
}

.dash-shell--launch-funnel .dash-menu-group-label.dash-menu-group-toggle,
.dash-shell--studio-funnel .dash-menu-group-label.dash-menu-group-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    color: #c4b5fd;
}

.dash-shell--launch-funnel .dash-menu > .dash-menu-group:first-of-type .dash-menu-group-label.dash-menu-group-toggle,
.dash-shell--studio-funnel .dash-menu > .dash-menu-group:first-of-type .dash-menu-group-label.dash-menu-group-toggle,
.dash-shell--launch-funnel .dash-menu-footer,
.dash-shell--studio-funnel .dash-menu-footer,
.dash-shell--launch-funnel .dash-menu > .dash-menu-launch,
.dash-shell--studio-funnel .dash-menu > .dash-menu-launch {
    border-color: rgba(255, 255, 255, 0.12);
}

.dash-shell--launch-funnel .dash-menu a,
.dash-shell--launch-funnel .dash-menu .menu-item,
.dash-shell--studio-funnel .dash-menu a,
.dash-shell--studio-funnel .dash-menu .menu-item {
    color: #dbeafe;
}

.dash-shell--launch-funnel .menu-icon,
.dash-shell--launch-funnel .dash-menu .menu-icon--launch,
.dash-shell--studio-funnel .menu-icon,
.dash-shell--studio-funnel .dash-menu .menu-icon--launch {
    color: #93c5fd;
}

.dash-shell--launch-funnel .dash-menu a:hover,
.dash-shell--launch-funnel .dash-menu a.is-active,
.dash-shell--launch-funnel .dash-menu button.menu-item:hover,
.dash-shell--launch-funnel .dash-menu button.menu-item.is-active,
.dash-shell--launch-funnel .dash-menu summary.menu-item:hover,
.dash-shell--launch-funnel .dash-menu summary.menu-item.is-active,
.dash-shell--studio-funnel .dash-menu a:hover,
.dash-shell--studio-funnel .dash-menu a.is-active,
.dash-shell--studio-funnel .dash-menu button.menu-item:hover,
.dash-shell--studio-funnel .dash-menu button.menu-item.is-active,
.dash-shell--studio-funnel .dash-menu summary.menu-item:hover,
.dash-shell--studio-funnel .dash-menu summary.menu-item.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
}

.dash-shell--launch-funnel .dash-menu a.is-active,
.dash-shell--launch-funnel .dash-menu .menu-item.is-active,
.dash-shell--studio-funnel .dash-menu a.is-active,
.dash-shell--studio-funnel .dash-menu .menu-item.is-active {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 3px 0 0 #93c5fd;
}

.dash-shell--launch-funnel .dash-sidebar-wallet,
.dash-shell--studio-funnel .dash-sidebar-wallet,
.dash-shell--launch-funnel .dash-topbar-mini-btn,
.dash-shell--launch-funnel .dash-topbar-currency-trigger,
.dash-shell--launch-funnel .topbar-user-trigger,
.dash-shell--launch-funnel .topbar-notification,
.dash-shell--studio-funnel .dash-topbar-mini-btn,
.dash-shell--studio-funnel .dash-topbar-currency-trigger,
.dash-shell--studio-funnel .topbar-user-trigger,
.dash-shell--studio-funnel .topbar-notification {
    border-color: rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.10);
    color: #e0f2fe;
}

.dash-shell--launch-funnel .topbar-quick-action,
.dash-shell--studio-funnel .topbar-quick-action {
    border-color: rgba(255, 255, 255, 0.82);
    background: #ffffff;
    color: #4c1d95;
}

.dash-shell--launch-funnel .topbar-quick-action:hover,
.dash-shell--studio-funnel .topbar-quick-action:hover {
    border-color: #ffffff;
    background: #eef2ff;
}

.dash-shell--launch-funnel .topbar-user-dropdown,
.dash-shell--launch-funnel .dash-topbar-currency-dropdown,
.dash-shell--launch-funnel .dash-currency-dropdown,
.dash-shell--studio-funnel .topbar-user-dropdown,
.dash-shell--studio-funnel .dash-topbar-currency-dropdown,
.dash-shell--studio-funnel .dash-currency-dropdown {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 760px) {
    .dash-shell--launch-funnel .dash-sidebar-backdrop:not([hidden]),
    .dash-shell--studio-funnel .dash-sidebar-backdrop:not([hidden]) {
        background: rgba(17, 24, 39, 0.64);
        backdrop-filter: blur(2px);
    }
}

.dash-switch {
    display: flex;
    gap: 6px;
}

.dash-switch button {
    border: 1px solid #1f335f;
    background: #0c1a3d;
    color: #d3e0ff;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: var(--dash-font-small);
    cursor: pointer;
}

.dash-switch .is-on {
    background: #2ac49d;
    border-color: #2ac49d;
    color: #052128;
}

/* Fixed toast — visible below sticky / fixed dashboard headers */
.dash-alert--toast {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    z-index: 120;
    margin: 0;
    padding: 12px 44px 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.22);
    word-break: break-word;
    box-sizing: border-box;
}

.dash-alert--toast-success,
.dash-alert--toast.success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.dash-alert--toast-error,
.dash-alert--toast.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.dash-alert--toast__dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
}

.dash-alert--toast__dismiss:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    body:has(.dash-launch-mobile-view) .dash-alert--toast {
        top: calc(56px + max(12px, env(safe-area-inset-top, 0px)));
    }
}

@media (min-width: 769px) {
    body:has(.dash-main .dash-topbar) .dash-alert--toast {
        top: calc(68px + max(0px, env(safe-area-inset-top, 0px)));
    }
}

.dash-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: var(--dash-font-base);
}

.dash-alert.success {
    background: #0f3f3a;
    border: 1px solid #1c5d53;
}

.dash-alert.error {
    background: #3c1a24;
    border: 1px solid #6a2a3f;
}

/* Dashboard: marketplace preview (published + verified listings) */
.dash-marketplace-section {
    margin-bottom: 12px;
    background: #08122f;
    border: 1px solid #152348;
    border-radius: 14px;
    padding: 14px 16px 16px;
    box-shadow: 0 8px 24px rgba(3, 8, 24, 0.28);
}

.dash-marketplace-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.dash-marketplace-head h3 {
    margin: 0;
    font-size: var(--dash-font-title);
    font-weight: 600;
    color: #f2f6ff;
}

.dash-marketplace-head__links {
    font-size: var(--dash-font-base);
    color: #9eb4dc;
}

.dash-marketplace-head__cta {
    font-weight: 600;
    color: #7ed8c2;
    text-decoration: underline;
}

.dash-marketplace-head__sub {
    color: #89a0cb;
    text-decoration: underline;
}

.dash-marketplace-head__sep {
    margin: 0 6px;
    color: #4a5f8a;
}

.dash-marketplace-empty {
    margin: 0;
    font-size: var(--dash-font-base);
    line-height: 1.5;
}

.dash-marketplace-empty a {
    color: #7ed8c2;
    text-decoration: underline;
}

.dash-marketplace-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 12px;
}

.dash-marketplace-card {
    display: block;
    background: rgba(6, 15, 43, 0.85);
    border: 1px solid #1c2f5c;
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dash-marketplace-card:hover {
    border-color: #2ac49d;
    box-shadow: 0 4px 16px rgba(42, 196, 157, 0.12);
}

.dash-marketplace-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #060f2b;
}

.dash-marketplace-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dash-marketplace-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 11px;
    color: #5c6d94;
}

.dash-marketplace-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(6, 15, 43, 0.88);
    border: 1px solid rgba(126, 216, 194, 0.35);
    color: #8ef2dc;
}

.dash-marketplace-card__body {
    padding: 10px 10px 12px;
}

.dash-marketplace-card__price {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #f2f6ff;
}

.dash-marketplace-card__title {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-marketplace-card__loc {
    margin: 0;
    font-size: 11px;
    color: #89a0cb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-row,
.stats-row,
.chart-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 12px;
}

.chart-row {
    grid-template-columns: 1fr 1fr;
}

.wallet-card,
.stat-card,
.chart-card,
.escrow-actions-panel,
.tx-log {
    background: #08122f;
    border: 1px solid #152348;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(3, 8, 24, 0.28);
}

.wallet-card p {
    margin: 0;
    color: #9eb4dc;
    font-size: var(--dash-font-base);
}

.wallet-card h3 {
    margin: 6px 0 0;
    color: #f2f6ff;
    font-size: var(--dash-font-title);
    font-weight: 600;
}

.stat-card h3 {
    margin: 6px 0 0;
    color: #f2f6ff;
    font-size: var(--dash-font-title);
    font-weight: 600;
}

.stat-card p {
    margin: 0;
    color: #9eb4dc;
    font-size: var(--dash-font-base);
    font-weight: 500;
}
.card-link {
    display: inline-block;
    margin-top: 8px;
    font-size: var(--dash-font-base);
    font-weight: 500;
    text-decoration: underline;
    color: #7ed8c2;
}

.chart-card h4,
.escrow-actions-panel h3,
.tx-log h3 {
    margin: 0 0 10px;
    font-size: var(--dash-font-title);
    font-weight: 600;
}
.chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.legend-chip {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.escrow-chip {
    color: #8ef2dc;
    border: 1px solid #2f7f71;
    background: rgba(27, 77, 70, 0.35);
}
.wallet-chip {
    color: #9cc4ff;
    border: 1px solid #31588f;
    background: rgba(36, 63, 108, 0.35);
}
.chart-kpi {
    margin: 0 0 8px;
    color: #89a0cb;
    font-size: var(--dash-font-small);
}
.chart-kpi strong {
    color: #dce7ff;
    font-weight: 700;
}

/* —— Agent partner dashboard (compact single card) —— */
.agent-partner-home {
    padding: 12px 14px 14px;
}
.agent-partner-home__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 14px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #152348;
}
.agent-partner-home__title {
    margin: 0 0 4px;
    font-size: calc(var(--dash-font-title) * 0.95);
    line-height: 1.2;
}
.agent-partner-home__lede {
    margin: 0;
    font-size: var(--dash-font-small);
    line-height: 1.45;
    max-width: 36rem;
}
.agent-partner-home__badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid #304775;
    color: #9cc4ff;
    background: rgba(36, 63, 108, 0.35);
}
.agent-partner-home__badge--pending {
    color: #fcd34d;
    border-color: #92400e;
    background: rgba(120, 53, 15, 0.35);
}
.agent-partner-home__badge--approved {
    color: #8ef2dc;
    border-color: #2f7f71;
    background: rgba(27, 77, 70, 0.35);
}
.agent-partner-home__badge--rejected {
    color: #fca5a5;
    border-color: #7f1d1d;
    background: rgba(127, 29, 29, 0.3);
}
.agent-partner-home__badge--suspended {
    color: #fdba74;
    border-color: #9a3412;
    background: rgba(154, 52, 18, 0.35);
}
.agent-partner-home__detail {
    margin: 0;
    font-size: var(--dash-font-small);
    line-height: 1.5;
}
.agent-partner-home__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 2px;
}
.agent-partner-home__actions--stack {
    flex-direction: column;
    align-items: flex-start;
}
.agent-partner-home__btn {
    padding: 8px 14px;
    font-size: 13px;
}
.agent-partner-home__kpis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.agent-partner-home__kpi {
    border: 1px solid #1e3a66;
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(15, 28, 60, 0.65);
}
.agent-partner-home__kpi-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7f97c3;
    margin-bottom: 2px;
}
.agent-partner-home__kpi-value {
    font-size: var(--dash-font-title);
    font-weight: 700;
    color: #f2f6ff;
    line-height: 1.2;
}
.agent-partner-home__ref {
    margin-top: 2px;
}
.agent-partner-home__ref-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7f97c3;
    margin-bottom: 6px;
}
.agent-partner-home__ref-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    padding: 8px 10px;
}
.agent-partner-home__ref-hint {
    margin: 6px 0 0;
    font-size: 11px;
}
.agent-partner-home__ref-hint code {
    font-size: 11px;
    color: #b8cce8;
}

.chart-placeholder {
    height: 190px;
    border: 1px dashed #304775;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(31, 56, 101, 0.2) 0%, rgba(12, 20, 44, 0.2) 100%);
}
.chart-canvas {
    width: 100%;
    height: 190px;
    border: 1px dashed #304775;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(31, 56, 101, 0.2) 0%, rgba(12, 20, 44, 0.2) 100%);
    display: block;
}
.chart-xlabels {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}
.chart-xlabels span {
    text-align: center;
    font-size: 10px;
    color: #7f97c3;
}

.topup-form {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}
.security-form {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.topup-form input,
.topup-form select,
.topup-form button,
.security-form input,
.security-form button {
    border-radius: 8px;
    border: 1px solid #294377;
    padding: 9px 10px;
    font-size: var(--dash-font-small);
}

.topup-form input {
    background: #0b1b40;
    color: #ecf2ff;
    flex: 1;
}

.topup-form select {
    background: #0b1b40;
    color: #ecf2ff;
}
.security-form input {
    background: #0b1b40;
    color: #ecf2ff;
}

.topup-form button {
    background: #2bc49f;
    color: #042029;
    font-weight: 700;
    cursor: pointer;
}

.topup-form button:hover {
    background: #39d6af;
}
.security-form button {
    background: #2bc49f;
    color: #042029;
    font-weight: 700;
    cursor: pointer;
}
.security-form button:hover {
    background: #39d6af;
}

.dash-form {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}
.dash-form label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--dash-font-small);
    color: #9eb4dc;
}
.dash-form-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}
.dash-form input,
.dash-form select,
.dash-form textarea,
.dash-form button {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #294377;
    padding: 9px 10px;
    font-size: var(--dash-font-small);
}
.dash-form input,
.dash-form select,
.dash-form textarea {
    background: #0b1b40;
    color: #ecf2ff;
}
.dash-form textarea {
    min-height: 96px;
    resize: vertical;
}
.dash-form button {
    width: auto;
    background: #2bc49f;
    color: #042029;
    font-weight: 700;
    cursor: pointer;
}
.dash-form-actions {
    display: flex;
    justify-content: flex-start;
}

.wallet-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.wallet-mini-grid p {
    margin: 0;
    color: #9eb4dc;
    font-size: var(--dash-font-base);
}
.financial-records-grid {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.financial-record-item {
    text-align: left;
    color: #9eb4dc;
    font-size: var(--dash-font-base);
    font-family: var(--dash-font-family);
    font-weight: 500;
}
.rate-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9eb4dc;
    font-size: var(--dash-font-base);
}
.audit-export-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #294377;
    color: #9eb4dc;
    font-size: var(--dash-font-small);
}
.audit-export-link:hover {
    border-color: #3b5d9f;
    color: #d8e1ff;
}
.audit-pagination {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9eb4dc;
    font-size: var(--dash-font-small);
}

.muted-light {
    color: #9eb4dc;
}

.muted-light a {
    text-decoration: underline;
}
.module-links {
    margin: 10px 0 0;
    font-size: var(--dash-font-small);
    color: #9eb4dc;
}
.module-links a {
    text-decoration: underline;
}

.escrow-table-wrap {
    overflow: auto;
}

.escrow-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.escrow-table th,
.escrow-table td {
    border-bottom: 1px solid #1c2e58;
    text-align: left;
    padding: 9px 8px;
    font-size: var(--dash-font-small);
}

.escrow-table th {
    color: #a7bbe2;
}

.action-inline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.action-inline form button {
    border: 1px solid #2a4478;
    background: #0d1d44;
    color: #e7f0ff;
    border-radius: 7px;
    font-size: var(--dash-font-small);
    padding: 6px 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.card-amount-input {
    border: 1px solid #2a4478;
    background: #0b1b40;
    color: #e7f0ff;
    border-radius: 7px;
    font-size: var(--dash-font-small);
    padding: 6px 8px;
    min-width: 120px;
}

.action-inline form button:hover {
    background: #122655;
    border-color: #3b5d9f;
}

.tx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tx-header a {
    background: #2bc49f;
    color: #072a2e;
    font-size: var(--dash-font-small);
    font-weight: 700;
    border-radius: 8px;
    padding: 7px 10px;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.2s ease;
}

.tx-header a:hover {
    background: #36cfaa;
    transform: translateY(-1px);
}

.tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1a2d57;
    padding: 12px 0;
}

.tx-item h4 {
    margin: 0;
    font-size: var(--dash-font-base);
}

.tx-item p {
    margin: 3px 0 0;
    color: #8fa7d2;
    font-size: var(--dash-font-small);
}

.tx-item strong {
    color: #6de0c2;
    font-size: var(--dash-font-base);
}

.deal-msg-row {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 10px;
    margin: 2px -10px;
    padding: 2px 10px;
    transition: background 0.15s ease;
}
.deal-msg-row:hover {
    background: rgba(26, 45, 87, 0.35);
}
.deal-msg-row .deal-msg-item {
    border-top: none;
    padding: 12px 0;
}
.deal-msg-row + .deal-msg-row .deal-msg-item {
    border-top: 1px solid #1a2d57;
}
.deal-msg-row.is-unread .deal-msg-item h4 {
    font-weight: 700;
    color: #f4f7ff;
}
.deal-msg-item-main {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}
.deal-msg-item-text {
    min-width: 0;
}
.deal-msg-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2bc49f;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(43, 196, 159, 0.5);
}
.deal-msg-new-label {
    margin-left: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5eead4;
    font-weight: 700;
}
.deal-msg-chevron {
    color: #6b7fa8;
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1;
    padding-left: 8px;
}
.deal-msg-detail .deal-msg-body {
    margin-top: 14px;
    line-height: 1.6;
    color: #d8e1ff;
    font-size: var(--dash-font-base);
}
.dash-inline-link {
    color: #5eead4;
    font-weight: 600;
    text-decoration: none;
}
.dash-inline-link:hover {
    text-decoration: underline;
}

.inline-form-zero {
    margin: 0;
    padding: 0;
    display: inline;
}
button.linkish-btn {
    background: none;
    border: none;
    color: #5eead4;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
button.linkish-btn:hover {
    color: #7dd3fc;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.shortcut-card {
    border: 1px solid #1a2d57;
    background: #0b1739;
    border-radius: 10px;
    padding: 10px;
}
.shortcut-card h4 {
    margin: 0 0 6px;
    font-size: var(--dash-font-base);
    color: #dce7ff;
}
.shortcut-card p {
    margin: 0;
    color: #8fa7d2;
    font-size: var(--dash-font-small);
}
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #2f7f71;
    background: rgba(27, 77, 70, 0.35);
    color: #8ef2dc;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.trust-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}
.trust-chip.business {
    color: #8ef2dc;
    border-color: #2f7f71;
    background: rgba(27, 77, 70, 0.35);
}
.trust-chip.personal {
    color: #9cc4ff;
    border-color: #31588f;
    background: rgba(36, 63, 108, 0.35);
}
.account-badge.personal {
    color: #9cc4ff;
    border: 1px solid #31588f;
    background: rgba(36, 63, 108, 0.35);
}
.account-badge.business {
    color: #8ef2dc;
    border: 1px solid #2f7f71;
    background: rgba(27, 77, 70, 0.35);
}
.mono-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: var(--dash-font-small);
    color: #a8bde3;
}

/* Module tool switcher: desktop rail beside sidebar column; mobile strip at top */
.dash-module-layout--tools {
    width: 100%;
}

.dash-module-tool-dropdown-summary,
.dash-module-tool-mobile-summary {
    list-style: none;
    cursor: pointer;
}

.dash-module-tool-dropdown-summary::-webkit-details-marker,
.dash-module-tool-mobile-summary::-webkit-details-marker {
    display: none;
}

.dash-module-tool-dropdown-heading {
    margin: 0 0 8px;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.dash-module-tool-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dash-module-tool-dropdown-list a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    color: #1e293b;
    border-radius: 0;
}

.dash-module-tool-dropdown-list a:hover {
    background: #f1f5f9;
}

.dash-module-tool-dropdown-list a.is-active {
    background: rgba(75, 226, 191, 0.12);
    color: #0f172a;
    font-weight: 600;
}

.dash-module-hub-lead--mobile {
    display: none;
}

@media (min-width: 1181px) {
    .dash-module-layout--tools {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 0;
        align-items: start;
    }

    .dash-module-tool-rail {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: sticky;
        top: 0;
        align-self: start;
        min-height: 100%;
        padding: 20px 0;
        margin: -8px 0 -8px -8px;
        border-right: 1px solid #e2e8f0;
        background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    }

    .dash-module-tool-mobile {
        display: none !important;
    }

    .dash-module-layout-body {
        min-width: 0;
        padding-left: 4px;
    }

    .dash-module-tool-rail .dash-module-tool-dropdown {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .dash-module-tool-dropdown-summary {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 40px;
        min-height: 72px;
        padding: 8px 4px;
        margin: 0 auto;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
        font-size: 10px;
        font-weight: 700;
        color: #334155;
        text-align: center;
        line-height: 1.2;
    }

    .dash-module-tool-dropdown-summary:hover {
        border-color: #4be2bf;
        color: #0f172a;
    }

    .dash-module-tool-dropdown-icon {
        font-size: 18px;
        line-height: 1;
    }

    .dash-module-tool-dropdown-desktop-label {
        display: block;
    }

    .dash-module-tool-rail .dash-module-tool-dropdown-panel {
        position: absolute;
        left: calc(100% + 8px);
        top: 0;
        min-width: 232px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
        padding: 12px 0;
        z-index: 45;
    }

    .dash-module-hub-lead--mobile {
        display: none !important;
    }

    .dash-module-hub-lead--desktop {
        display: block;
    }
}

@media (max-width: 1180px) {
    .dash-module-layout--tools {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .dash-module-tool-rail {
        display: none !important;
    }

    .dash-module-tool-mobile {
        display: block;
        position: sticky;
        top: 0;
        z-index: 18;
        margin: 0 0 14px;
    }

    .dash-module-tool-dropdown--mobile {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
        overflow: hidden;
    }

    .dash-module-tool-mobile-summary {
        padding: 12px 14px;
        margin: 0;
    }

    .dash-module-tool-mobile-label {
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #64748b;
    }

    .dash-module-tool-mobile-current {
        display: block;
        margin-top: 4px;
        font-size: 15px;
        font-weight: 600;
        color: #0f172a;
    }

    .dash-module-tool-mobile-summary::after {
        content: "▾";
        float: right;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
    }

    .dash-module-tool-dropdown--mobile .dash-module-tool-dropdown-panel {
        padding: 0 0 8px;
        border-top: 1px solid #e2e8f0;
    }

    .dash-module-tool-dropdown--mobile .dash-module-tool-dropdown-heading {
        display: none;
    }

    .dash-module-hub-lead--desktop {
        display: none !important;
    }

    .dash-module-hub-lead--mobile {
        display: block;
    }
}

.dash-module-history {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-module-history-block {
    margin-bottom: 0;
}

@media (max-width: 1180px) {
    .dash-shell {
        display: block;
    }
    .dash-sidebar-backdrop:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(2, 6, 18, 0.55);
        border: 0;
        padding: 0;
        margin: 0;
    }
    .dash-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(290px, 92vw);
        max-width: 100vw;
        z-index: 100;
        transform: translateX(-102%);
        transition: transform 0.22s ease;
        border-right: 1px solid #142140;
        border-top: 0;
        height: 100vh;
        max-height: none;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
        align-items: stretch;
        text-align: left;
        padding: 0 14px 16px;
    }
    .dash-sidebar-top {
        margin: 0 -14px 10px;
        padding: max(10px, env(safe-area-inset-top, 0px)) 14px 10px;
    }
    .dash-shell.is-sidebar-open .dash-sidebar {
        transform: translateX(0);
    }
    .dash-main {
        min-width: 0;
    }
    .dash-nav-hamburger {
        display: inline-flex;
        min-width: 48px;
        min-height: 48px;
        width: auto;
        height: auto;
        padding: 12px 14px;
        z-index: 35;
    }
    .dash-brand {
        margin: 0 6px 8px;
        justify-content: flex-start;
    }
    .dash-sidebar-wallet {
        margin: 0 6px;
    }
    .dash-sidebar-balance-line {
        justify-content: flex-start;
    }
    /* Single-column nav; accordion — only one .is-open section shows links */
    .dash-menu-group:not(.is-open) .dash-menu-group-items {
        display: none !important;
    }

    .dash-menu-group.is-open .dash-menu-group-items {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .dash-menu-group-label.dash-menu-group-toggle {
        padding-left: 22px;
        padding-right: 12px;
    }
    .dash-menu a,
    .dash-menu .menu-item,
    .dash-menu button.menu-item {
        justify-content: flex-start;
        text-align: left;
        padding: 10px 12px;
        font-size: 12px;
    }
    .dash-menu a .menu-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .dash-menu-home,
    .dash-menu-footer {
        text-align: left;
    }
    .dash-help-card {
        text-align: left;
    }
    .dash-help-card a,
    .dash-help-card .dash-help-card-action {
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
    }
    .wallet-row,
    .stats-row,
    .chart-row {
        grid-template-columns: 1fr 1fr;
    }
    .shortcut-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    /* Main column: safe-area + readable rhythm */
    .dash-main {
        padding: 12px 14px 28px;
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
        padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    }
    /* Sticky top bar: single horizontal row — hamburger · actions */
    .dash-main .dash-topbar {
        margin: -12px -14px 16px;
        padding: 10px 14px 12px;
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
    }
    .dash-main .dash-topbar.dash-topbar--fin {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .dash-main .dash-topbar.dash-topbar--fin::-webkit-scrollbar {
        display: none;
    }

    /* ── Dropdown fix: both dropdowns live inside .dash-topbar which gets
       overflow-x:auto → CSS forces overflow-y:auto too → the dropdowns
       (position:absolute, top:calc(100%+Xpx)) are clipped because they
       overflow the topbar's scroll-container boundary.
       Fix: switch to position:fixed so they escape the scroll container
       and render relative to the viewport. z-index must beat topbar (24). ── */
    .dash-topbar-currency-dropdown {
        position: fixed;
        right: 8px;
        left: auto;
        bottom: auto;
        top: 60px;
        z-index: 300;
        max-height: min(230px, 60vh);
    }
    .topbar-user-dropdown {
        position: fixed;
        right: 8px;
        left: auto;
        bottom: auto;
        top: 60px;
        z-index: 300;
        width: min(260px, calc(100vw - 16px));
        min-width: 0;
    }

    .dash-topbar {
        flex-wrap: nowrap;
    }
    .topbar-actions {
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
    }
    .dash-main .dash-topbar-balance-cluster,
    .dash-main .topbar-actions,
    .dash-main .topbar-user {
        flex-shrink: 0;
    }
    .dash-main .topbar-notification {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    .dash-main .topbar-quick-action {
        width: auto;
        min-height: 40px;
        padding: 8px 11px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.02em;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .topbar-user {
        width: auto;
        flex-shrink: 0;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0;
    }
    /* Badges + long name: hide in bar; status remains in account settings / profile */
    .dash-main .topbar-verification-badges {
        display: none;
    }
    .dash-main .topbar-user-name {
        display: none;
    }
    .dash-main .topbar-user-caret {
        display: inline-flex;
        align-items: center;
        font-size: 11px;
        opacity: 0.85;
    }
    .dash-main .topbar-user-trigger {
        width: auto;
        justify-content: center;
        padding: 4px 6px;
        min-height: 36px;
        height: 36px;
    }
    .dash-main .topbar-user-dropdown {
        left: auto;
        right: 0;
        width: min(260px, calc(100vw - 24px));
        min-width: 188px;
    }
    .dash-switch {
        width: 100%;
    }
    .dash-switch button {
        flex: 1;
    }
    /* Wallets + KPIs: 2×2 grid for scanability */
    .wallet-row,
    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 14px;
    }
    .chart-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 14px;
    }
    .wallet-card,
    .stat-card {
        padding: 12px 11px;
        border-radius: 12px;
    }
    .wallet-card p {
        font-size: 11px;
        line-height: 1.35;
    }
    .wallet-card h3 {
        font-size: 14px;
        margin-top: 6px;
    }
    .stat-card p {
        font-size: 11px;
    }
    .stat-card h3 {
        font-size: 17px;
        margin-top: 4px;
    }
    .shortcut-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .chart-canvas {
        height: 160px;
    }
    .chart-xlabels span {
        font-size: 9px;
    }
    .chart-head {
        flex-wrap: wrap;
        gap: 6px;
        align-items: flex-start;
    }
    .chart-kpi {
        font-size: 11px;
    }
    .topup-form {
        flex-direction: column;
    }
    .topup-form button {
        width: 100%;
    }
    .dash-form-row {
        grid-template-columns: 1fr;
    }
    .financial-records-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tx-header {
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    .tx-header h3 {
        flex: 1 1 auto;
        margin: 0;
        min-width: 0;
    }
    .tx-header a {
        flex-shrink: 0;
    }
    .tx-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    /* New command center sections */
    .dash-main #dashboard-onboarding .sec-settings-related,
    .dash-main #dashboard-activity .sec-settings-related {
        padding-left: 16px;
        margin-top: 6px;
    }
    .dash-main #dashboard-onboarding .sec-settings-related li,
    .dash-main #dashboard-activity .sec-settings-related li {
        font-size: 12px;
        line-height: 1.45;
    }
    .dash-main .chart-card .sec-settings-related {
        margin: 6px 0 0;
        padding-left: 16px;
    }
    .dash-main .chart-card .sec-settings-related li {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 6px;
    }
    .dash-main .chart-card .tx-header h3 {
        font-size: 15px;
    }
    .dash-main .chart-card h4 {
        font-size: 14px;
        line-height: 1.35;
    }
    .dash-main .chart-card p {
        font-size: 12px;
        line-height: 1.45;
    }
    .dash-main .chart-card .card-link,
    .dash-main .chart-card .dash-inline-link {
        display: inline-block;
        min-height: 28px;
        line-height: 1.3;
    }
    /* Escrow table: smooth horizontal scroll + readable wrapped cells */
    .escrow-table-wrap {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        border-radius: 10px;
        margin: 0 -2px;
        padding: 2px;
    }
    .escrow-table {
        min-width: 520px;
        width: max-content;
        max-width: none;
    }
    .escrow-table th,
    .escrow-table td {
        white-space: normal;
        word-break: break-word;
        padding: 8px 7px;
        font-size: 11px;
        vertical-align: top;
    }
    .action-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .action-inline form {
        width: 100%;
    }
    .action-inline form button {
        width: 100%;
        min-height: 36px;
    }
    .support-topic-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }
    .support-hub-split {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 18px;
    }
    .support-hub-hero {
        margin-bottom: 16px;
        border-radius: 12px;
    }
    .support-hub-hero-inner {
        padding: 18px 16px 20px;
    }
    .support-hub-title {
        font-size: clamp(1.35rem, 6vw, 1.65rem);
        line-height: 1.2;
    }
    .support-hub-lead {
        font-size: 13px;
        margin-bottom: 16px;
    }
    .support-hub-quick-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .support-hub-btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }
    .support-topic-card {
        padding: 14px 14px 16px;
        border-radius: 12px;
        -webkit-tap-highlight-color: rgba(45, 212, 191, 0.15);
    }
    .support-topic-card:active {
        transform: translateY(0);
    }
    .support-topic-card h3 {
        font-size: 14px;
    }
    .support-topic-card p {
        font-size: 12px;
    }
    .support-form-card#contact-form {
        scroll-margin-top: 72px;
    }
    .support-contact-form .chart-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .support-contact-form .chart-head .muted-light {
        font-size: 12px;
        line-height: 1.4;
        word-break: break-word;
    }
    .dash-main .support-contact-form input,
    .dash-main .support-contact-form select,
    .dash-main .support-contact-form textarea,
    .support-contact-form .dash-form input,
    .support-contact-form .dash-form select,
    .support-contact-form .dash-form textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 48px;
        font-size: 16px;
    }
    .dash-main .support-contact-form textarea,
    .support-contact-form .dash-form textarea {
        min-height: 140px;
        resize: vertical;
    }
    .support-contact-form .support-form-actions {
        margin-top: 14px;
    }
    .support-contact-form .support-form-actions button,
    .support-form-actions button {
        width: 100%;
        min-height: 48px;
        font-size: 15px;
    }
    .support-aside {
        gap: 12px;
    }
    .support-aside-card {
        padding: 14px;
    }
    .support-history-card .chart-head h4 {
        font-size: 15px;
    }
    .support-history-item h5 {
        font-size: 13px;
        word-break: break-word;
    }
    .support-history-meta {
        gap: 6px 8px;
    }
    /* Global dashboard main: pages built with .chart-card + .dash-form */
    .dash-page-lead {
        margin-bottom: 14px;
    }
    .dash-page-lead .dash-page-description,
    .dash-page-lead .dash-page-description--html {
        font-size: 13px;
    }
    .dash-main .chart-card,
    .dash-main .support-form-card,
    .dash-main .support-history-card {
        padding: 12px 12px 14px;
        border-radius: 12px;
    }
    .dash-main .dash-form input,
    .dash-main .dash-form select,
    .dash-main .dash-form textarea {
        min-height: 48px;
        font-size: 16px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .dash-main .dash-form textarea {
        min-height: 112px;
    }
    .dash-main .dash-form button:not(.linkish-btn) {
        min-height: 48px;
    }
    .dash-main .dash-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .dash-main .dash-form-actions button {
        width: 100%;
        min-height: 48px;
        box-sizing: border-box;
    }
    .dash-alert {
        margin-bottom: 12px;
        padding: 12px 14px;
        font-size: 14px;
        line-height: 1.45;
        word-break: break-word;
    }
    /* Horizontal scroll for wide tables inside main (add .table-scroll on a wrapper when needed) */
    .dash-main .table-scroll,
    .dash-main .dash-table-scroll {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 0 12px;
    }
    .dash-main .table-scroll table,
    .dash-main .dash-table-scroll table {
        min-width: 520px;
    }
    .financial-records-grid {
        grid-template-columns: 1fr;
    }
    .dash-account-msg-strip {
        padding: 7px max(12px, env(safe-area-inset-left, 0px)) 7px max(12px, env(safe-area-inset-right, 0px));
        font-size: 11px;
        line-height: 1.4;
    }
    .dash-account-msg-strip__inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 10px;
    }
    .dash-account-msg-strip__label {
        font-size: 11px;
    }
    .dash-account-msg-strip__sep {
        display: inline;
        color: #94a3b8;
    }
    .dash-account-msg-strip__link {
        padding: 4px 0;
        min-height: 36px;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 420px) {
    .wallet-row,
    .stats-row,
    .shortcut-grid,
    .financial-records-grid {
        grid-template-columns: 1fr;
    }
}

/* —— Help & Support hub —— */
.support-hub-hero {
    margin-bottom: 22px;
    border-radius: 16px;
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #1e3a6e;
    background: linear-gradient(135deg, rgba(18, 52, 98, 0.95) 0%, rgba(8, 22, 52, 0.98) 50%, rgba(12, 40, 72, 0.96) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.support-hub-hero-inner {
    padding: 26px 24px 28px;
    max-width: 720px;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.support-hub-eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5eead4;
}

.support-hub-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f0f6ff;
    line-height: 1.2;
}

.support-hub-lead {
    margin: 0 0 20px;
    color: #a8c0ec;
    font-size: 14px;
    line-height: 1.55;
    max-width: 560px;
}

.support-hub-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.support-hub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.support-hub-btn:hover {
    transform: translateY(-1px);
}

.support-hub-btn-primary {
    background: linear-gradient(180deg, #5eead4, #2dd4bf);
    color: #042f2e;
    border-color: #5eead4;
    box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
}

.support-hub-btn-primary:hover {
    background: linear-gradient(180deg, #7ff5e1, #5eead4);
    color: #022c2c;
}

.support-hub-btn-ghost {
    background: rgba(10, 28, 58, 0.6);
    color: #d0e2ff;
    border-color: #2a4a7c;
}

.support-hub-btn-ghost:hover {
    background: rgba(20, 48, 92, 0.85);
    border-color: #3d6aad;
    color: #fff;
}

.support-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.support-topic-grid > * {
    min-width: 0;
}

.support-topic-card {
    display: block;
    padding: 16px 16px 18px;
    border-radius: 14px;
    border: 1px solid #1c355f;
    background: linear-gradient(165deg, rgba(14, 32, 68, 0.92), rgba(8, 18, 44, 0.96));
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.support-topic-card:hover {
    border-color: #2d6b9a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.support-topic-card.is-active {
    border-color: #2dd4bf;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.35), 0 12px 32px rgba(0, 0, 0, 0.22);
}

.support-topic-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: rgba(45, 212, 191, 0.12);
    color: #5eead4;
    font-size: 16px;
    font-weight: 700;
}

.support-topic-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #eef4ff;
}

.support-topic-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #94aed9;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.support-hub-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, min(280px, 100%));
    gap: 20px;
    align-items: start;
    margin-bottom: 22px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.support-hub-split > * {
    min-width: 0;
    max-width: 100%;
}

.support-form-card#contact-form {
    scroll-margin-top: 24px;
    min-width: 0;
    max-width: 100%;
}

.support-form-card .chart-head {
    min-width: 0;
    width: 100%;
}

.support-form-card .chart-head h4 {
    min-width: 0;
}

.support-prefill-banner {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.support-contact-form .support-form-actions {
    margin-top: 8px;
}

.support-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.support-aside-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #1f3c6f;
    background: rgba(10, 24, 52, 0.65);
}

.support-aside-card h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #d8f7f0;
}

.support-aside-card p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.support-contact-form select,
.support-aside .dash-inline-link {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.support-contact-form textarea,
.support-contact-form input[type="text"] {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.support-history-card {
    max-width: 100%;
    min-width: 0;
}

.support-history-card .support-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.support-history-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.support-history-item:last-child {
    border-bottom: none;
}

.support-history-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    max-width: 100%;
    min-width: 0;
}

.support-history-id {
    font-size: 12px;
    font-weight: 700;
    color: #7dd3fc;
}

.support-history-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 6px;
}

.support-history-status.is-open {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
}

.support-history-status.is-progress {
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
}

.support-history-status.is-resolved {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
}

.support-history-item h5 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #e8f0ff;
}

.support-history-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #c5d5f0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(8, 20, 48, 0.85);
    border-left: 3px solid #2dd4bf;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.support-history-item.has-unread-update {
    border-left: 3px solid #fbbf24;
    padding-left: 12px;
    margin-left: -4px;
}

.support-history-new {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
}

/* Dashboard command center layout helpers */
.dash-main #dashboard-onboarding .sec-settings-related,
.dash-main #dashboard-activity .sec-settings-related {
    margin: 0;
    padding-left: 18px;
}

.dash-main #dashboard-onboarding .sec-settings-related li,
.dash-main #dashboard-activity .sec-settings-related li {
    line-height: 1.5;
    margin-bottom: 6px;
}

@media (max-width: 1100px) {
    .support-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .support-hub-split {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Main column header: same shell as .dash-sidebar (#060f2b); controls use base .topbar-* dark styles
   -------------------------------------------------------------------------- */
.dash-main .dash-topbar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    min-height: 62px;
    margin: -18px -20px 18px;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 90;
    background: #060f2b;
    border-bottom: 1px solid #142140;
    box-shadow: 0 10px 28px rgba(15,23,42,.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dash-main .dash-topbar .dash-nav-hamburger {
    margin-right: auto;
}

.dash-main .crumb {
    color: #8ba2cb;
}

.dash-main .dash-page-title {
    color: #000;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dash-main .dash-page-description,
.dash-main .dash-page-description--html {
    color: #1a2332;
}

.dash-main .dash-page-lead .crumb {
    color: #475569;
}

.dash-main .chart-card.dash-launch-module .tx-header h3 {
    color: #0f172a;
}

.dash-main .chart-card.dash-launch-module > .muted-light {
    color: #1e293b;
}

.dash-main .topbar-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 0 1 auto;
}

.dash-main .topbar-actions > .topbar-notification,
.dash-main .topbar-actions > .topbar-quick-action {
    flex-shrink: 0;
}

/* Slightly larger controls in main topbar; inherits colors from .topbar-notification etc. */
.dash-main .topbar-notification {
    width: 40px;
    height: 40px;
}

.dash-main .topbar-verification-badges {
    gap: 8px;
}

.dash-main .topbar-notification:focus-visible,
.dash-main .topbar-quick-action:focus-visible,
.dash-main .topbar-user-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.45);
}

.dash-main .topbar-notification:focus-visible {
    border-color: #5eead4;
}

.dash-main .topbar-user-trigger:focus-visible {
    border-color: #5eead4;
}

.dash-main .dash-switch button {
    border: 1px solid #cfd9e6;
    background: #ffffff;
    color: #3d4d66;
}

.dash-main .dash-switch .is-on {
    background: #e8f5f0;
    border-color: #2bb89a;
    color: #134032;
}

.dash-main .dash-alert.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #134032;
}

.dash-main .dash-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #7f1d1d;
}

.dash-main .wallet-card,
.dash-main .stat-card,
.dash-main .chart-card,
.dash-main .escrow-actions-panel,
.dash-main .tx-log {
    background: #ffffff;
    border: 1px solid #dfe6ef;
    box-shadow: 0 2px 10px rgba(19, 34, 53, 0.05);
}

.dash-main .wallet-card p,
.dash-main .stat-card p {
    color: #78859c;
}

.dash-main .wallet-card h3,
.dash-main .stat-card h3 {
    color: #232f43;
}

.dash-main .card-link {
    color: #1f6b52;
}

.dash-main .chart-card h4,
.dash-main .escrow-actions-panel h3,
.dash-main .tx-log h3 {
    color: #232f43;
}

/* Default user dashboard first layer: +2px breathing room. */
.dash-main[data-active-menu="dashboard"] > .wallet-row,
.dash-main[data-active-menu="dashboard"] > .stats-row,
.dash-main[data-active-menu="dashboard"] > .chart-row {
    gap: 14px;
    margin-bottom: 14px;
}

.dash-main[data-active-menu="dashboard"] > .chart-card,
.dash-main[data-active-menu="dashboard"] > .chart-row > .chart-card,
.dash-main[data-active-menu="dashboard"] > .wallet-row > .wallet-card,
.dash-main[data-active-menu="dashboard"] > .stats-row > .stat-card {
    padding: 16px;
}

.dash-main .escrow-chip {
    color: #0f5b4a;
    border-color: #7fdac3;
    background: #ebfff8;
}

.dash-main .wallet-chip {
    color: #1e3a8a;
    border-color: #93c5fd;
    background: #eff6ff;
}

.dash-main .chart-kpi {
    color: #677891;
}

.dash-main .chart-kpi strong {
    color: #232f43;
}

.dash-main .chart-placeholder,
.dash-main .chart-canvas {
    border: 1px solid #e7edf5;
    background: #f8fafc;
}

.dash-main .chart-xlabels span {
    color: #677891;
}

.dash-main .topup-form input,
.dash-main .topup-form select,
.dash-main .security-form input {
    background: #ffffff;
    color: #232f43;
    border: 1px solid #cfd9e6;
}

.dash-main .topup-form button,
.dash-main .security-form button {
    background: linear-gradient(135deg, #2d8f75, #1f6b57);
    color: #ffffff;
    border-color: #1f6b57;
}

.dash-main .topup-form button:hover,
.dash-main .security-form button:hover {
    filter: brightness(1.05);
}

.dash-main .dash-form label {
    color: #4e5d74;
}

.dash-main .dash-form input,
.dash-main .dash-form select,
.dash-main .dash-form textarea {
    background: #ffffff;
    color: #232f43;
    border: 1px solid #cfd9e6;
}

.dash-main .dash-form button {
    background: linear-gradient(135deg, #2d8f75, #1f6b57);
    color: #ffffff;
    border-color: #1f6b57;
}

.dash-main .field-select {
    background: #ffffff;
    color: #232f43;
    border: 1px solid #cfd9e6;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: var(--dash-font-small);
}

.dash-main .wallet-mini-grid p,
.dash-main .financial-record-item,
.dash-main .rate-toggle {
    color: #4e5d74;
}

.dash-main .muted-light {
    color: #677891;
}

.dash-main .muted-light a,
.dash-main .module-links a {
    color: #1f6b52;
}

.dash-main .audit-export-link {
    border: 1px solid #cfd9e6;
    background: #ffffff;
    color: #3d4d66;
}

.dash-main .audit-export-link:hover {
    background: #eef4fb;
    color: #232f43;
}

.dash-main .audit-pagination {
    color: #677891;
}

.dash-main .escrow-table th,
.dash-main .escrow-table td {
    border-bottom: 1px solid #e8eef5;
    color: #3d4d66;
}

.dash-main .escrow-table th {
    color: #677891;
    font-weight: 700;
}

.dash-main .action-inline form button {
    border: 1px solid #cfd9e6;
    background: #ffffff;
    color: #2b3950;
}

.dash-main .action-inline form button:hover {
    background: #eef4fb;
    border-color: #b8c5d6;
}

.dash-main .card-amount-input {
    border: 1px solid #cfd9e6;
    background: #ffffff;
    color: #232f43;
}

.dash-main .tx-item {
    border-top: 1px solid #e8eef5;
}

.dash-main .tx-item h4 {
    color: #232f43;
}

.dash-main .tx-item p {
    color: #677891;
}

.dash-main .tx-item strong {
    color: #1f6b52;
}

.dash-main a.tx-item.tx-item--link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    margin: 0 -8px;
    padding: 12px 8px;
    border-top: 1px solid #e8eef5;
    transition: background 0.15s ease;
}

.dash-main a.tx-item.tx-item--link:hover {
    background: #f1f5f9;
}

.dash-main .tx-detail-card .tx-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.dash-main .tx-detail-head-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
}

.dash-main .tx-detail-dl {
    margin: 0;
    padding: 0;
}

.dash-main .tx-detail-row {
    display: grid;
    grid-template-columns: minmax(100px, 140px) 1fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #e8eef5;
}

.dash-main .tx-detail-row:first-of-type {
    border-top: 0;
    padding-top: 4px;
}

.dash-main .tx-detail-row dt {
    margin: 0;
    font-size: var(--dash-font-small);
    font-weight: 600;
    color: #64748b;
}

.dash-main .tx-detail-row dd {
    margin: 0;
    color: #232f43;
}

.dash-main .tx-detail-amount {
    font-size: 1.1rem;
    color: #1f6b52;
}

.dash-main .tx-detail-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.dash-main .tx-detail-status--success {
    background: #ecfdf5;
    color: #047857;
}

.dash-main .tx-detail-status--pending {
    background: #fffbeb;
    color: #b45309;
}

.dash-main .tx-detail-status--failed {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 560px) {
    .dash-main .tx-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.dash-main .tx-dispute-card {
    margin-top: 14px;
}

.dash-main .tx-dispute-title {
    margin: 0 0 10px;
    color: #232f43;
    font-size: 15px;
}

.dash-main .tx-dispute-form {
    margin-top: 12px;
}

.dash-main .tx-dispute-form textarea {
    font-family: inherit;
}

.dash-main .tx-dispute-actions {
    margin-top: 12px;
}

.dash-main .tx-dispute-submit {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #1f6b57;
    background: linear-gradient(135deg, #2d8f75, #1f6b57);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}

.dash-main .tx-dispute-submit:hover {
    filter: brightness(1.05);
}

.dash-main .tx-dispute-links {
    margin: 8px 0 0;
}

/* Transaction detail — purchase record & A4 print */
.dash-main .tx-print-root {
    margin-bottom: 24px;
}

.dash-main .tx-print-sheet-header,
.dash-main .tx-print-sheet-footer {
    display: none;
}

.dash-main .only-print {
    display: none;
}

.dash-main .tx-purchase-record-card {
    margin-top: 14px;
}

.dash-main .tx-purchase-dl .tx-purchase-desc-row dd {
    max-width: 100%;
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    body {
        background: #fff !important;
        color: #111 !important;
    }

    .dash-sidebar,
    .dash-sidebar-backdrop,
    .dash-topbar,
    .no-print {
        display: none !important;
    }

    .dash-shell {
        display: block !important;
    }

    .dash-main {
        max-width: none !important;
        margin: 0 !important;
        padding: 8px 0 !important;
        width: 100% !important;
    }

    .dash-main .tx-print-sheet-header,
    .dash-main .tx-print-sheet-footer {
        display: block !important;
    }

    .dash-main .only-print {
        display: grid !important;
    }

    .dash-main .only-print.tx-detail-row {
        display: grid !important;
    }

    .dash-main .chart-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #bbb !important;
        margin-bottom: 14px !important;
        background: #fff !important;
    }

    .dash-main .tx-print-sheet-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
        border-bottom: 2px solid #1f6b57;
    }

    .dash-main .tx-print-sheet-logo {
        font-size: 22px;
        font-weight: 800;
        color: #1f6b57;
        letter-spacing: 0.02em;
    }

    .dash-main .tx-print-sheet-tagline {
        margin: 4px 0 0;
        font-size: 11px;
        color: #444;
    }

    .dash-main .tx-print-sheet-footer {
        margin-top: 18px;
        padding-top: 10px;
        border-top: 1px solid #aaa;
        font-size: 9px;
        color: #555;
        line-height: 1.35;
    }

    .dash-main .tx-purchase-desc {
        font-size: 11px;
        line-height: 1.45;
    }
}

/* Money exchange */
.dash-main .mx-exchange-hero h4 {
    margin: 0 0 8px;
    color: #232f43;
    font-size: 18px;
}

.dash-main .mx-exchange-lead {
    margin: 0;
    max-width: 52rem;
    line-height: 1.5;
}

.dash-main .mx-exchange-callout {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.dash-main .mx-exchange-form {
    margin-top: 18px;
}

.dash-main .mx-exchange-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px 12px;
    align-items: end;
}

.dash-main .mx-exchange-field label {
    color: #4e5d74;
}

.dash-main .mx-exchange-balance-hint {
    margin: 6px 0 0;
    font-size: 11px;
}

.dash-main .mx-exchange-swap-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 28px;
}

.dash-main .mx-exchange-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #cfd9e6;
    background: #f1f5f9;
    color: #1f6b52;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

/* Desktop: horizontal swap icon; mobile: down-arrow */
.dash-main .mx-swap-icon--v { display: none; }
.dash-main .mx-swap-icon--h { display: inline; }

.dash-main .mx-exchange-swap:hover {
    background: #e8f0fe;
    border-color: #94a3b8;
}

.dash-main .mx-exchange-amount-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.dash-main .mx-exchange-amount-main {
    flex: 1 1 200px;
    min-width: 0;
}

.dash-main .mx-exchange-max-wrap {
    flex: 0 0 auto;
    padding-bottom: 2px;
}

.dash-main .mx-exchange-max {
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f766e;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.dash-main .mx-exchange-max:hover:not(:disabled) {
    background: #f0fdfa;
    border-color: #2dd4bf;
}

.dash-main .mx-exchange-max:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dash-main .mx-exchange-estimate {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d8f5ef;
    background: linear-gradient(180deg, #f0fdf9 0%, #ecfeff 100%);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

.dash-main .mx-exchange-estimate-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-main .mx-exchange-estimate-value {
    font-size: 1.15rem;
    color: #0f766e;
}

.dash-main .mx-exchange-estimate-note {
    flex-basis: 100%;
    font-size: 12px;
    margin: 0;
}

.dash-main .mx-exchange-disclaimer {
    margin: 8px 0 0;
    font-size: 11px;
}

.dash-main .mx-exchange-actions {
    margin-top: 6px;
}

.dash-main .mx-exchange-submit {
    padding: 11px 22px;
    border-radius: 8px;
    border: 1px solid #1f6b57;
    background: linear-gradient(135deg, #2d8f75, #1f6b57);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.dash-main .mx-exchange-submit:hover:not(:disabled) {
    filter: brightness(1.05);
}

.dash-main .mx-exchange-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dash-main .mx-exchange-row {
    gap: 14px;
}

.dash-main .mx-exchange-side-card h4 {
    margin: 0 0 8px;
    color: #232f43;
}

.dash-main .mx-wallet-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.dash-main .mx-wallet-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e8eef5;
    font-size: 13px;
}

.dash-main .mx-wallet-row:last-child {
    border-bottom: 0;
}

.dash-main .mx-wallet-code {
    font-weight: 700;
    color: #334155;
}

.dash-main .mx-wallet-amt {
    font-variant-numeric: tabular-nums;
    color: #1f6b52;
    font-weight: 600;
}

.dash-main .mx-rates-table-wrap {
    margin-top: 10px;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e8eef5;
}

.dash-main .mx-rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.dash-main .mx-rates-table th,
.dash-main .mx-rates-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.dash-main .mx-rates-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dash-main .mx-rates-table tbody tr:last-child td {
    border-bottom: 0;
}

.dash-main .mx-exchange-activity .tx-header h3 {
    color: #232f43;
}

/* Personal payment link (Create Payment Link page) */
.dash-main .pl-personal-card .pl-personal-header {
    margin-bottom: 10px;
}

.dash-main .pl-personal-card h4 {
    margin: 0 0 8px;
    color: #232f43;
    font-size: 17px;
    line-height: 1.35;
}

.dash-main .pl-personal-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.dash-main .pl-personal-purpose {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f766e;
}

.dash-main .pl-personal-purpose-icon {
    margin-right: 4px;
}

.dash-main .pl-personal-lead {
    margin: 12px 0 14px;
    line-height: 1.5;
}

.dash-main .pl-personal-jump {
    margin-bottom: 14px;
}

.dash-main .pl-personal-jump-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.dash-main .pl-personal-jump-select {
    max-width: 320px;
}

.dash-main .pl-personal-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-main .pl-personal-details {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fafbfc;
    overflow: hidden;
}

.dash-main .pl-personal-summary {
    padding: 12px 14px;
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-main .pl-personal-summary::-webkit-details-marker {
    display: none;
}

.dash-main .pl-personal-summary::before {
    content: "▸";
    font-size: 10px;
    color: #64748b;
    transition: transform 0.15s ease;
}

.dash-main .pl-personal-details[open] .pl-personal-summary::before {
    transform: rotate(90deg);
}

.dash-main .pl-personal-details-body {
    padding: 0 14px 14px 32px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #334155;
}

.dash-main .pl-personal-list {
    margin: 8px 0 0;
    padding-left: 1.1rem;
    line-height: 1.55;
}

.dash-main .pl-personal-code {
    display: block;
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    word-break: break-all;
}

.dash-main .pl-personal-audience {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    font-size: 13px;
    color: #475569;
}

.dash-main .pl-personal-audience-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 4px;
}

/* Security settings hub */
.dash-main .sec-settings-intro h4 {
    margin: 0 0 8px;
    color: #232f43;
}

.dash-main .sec-settings-dl {
    margin: 0;
}

.dash-main .sec-settings-dl-row {
    display: grid;
    grid-template-columns: minmax(100px, 130px) 1fr;
    gap: 10px 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.dash-main .sec-settings-dl-row:last-child {
    border-bottom: 0;
}

.dash-main .sec-settings-dl-row dt {
    margin: 0;
    color: #64748b;
    font-weight: 600;
}

.dash-main .sec-settings-dl-row dd {
    margin: 0;
    color: #232f43;
}

.dash-main .sec-settings-ok {
    color: #047857;
    font-weight: 700;
}

.dash-main .sec-settings-warn {
    color: #b45309;
    font-weight: 700;
}

.dash-main .sec-settings-2fa-status {
    margin-top: 10px;
}

.dash-main .sec-settings-2fa-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-main .sec-settings-2fa-pill--off {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.dash-main .sec-settings-tips {
    margin: 0;
    padding-left: 1.15rem;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
}

.dash-main .sec-settings-related {
    margin: 8px 0 0;
    padding-left: 1.15rem;
    line-height: 1.7;
    color: #334155;
}

.dash-main .sec-settings-password-form {
    margin-top: 8px;
}

.dash-main .sec-settings-password-form .sec-pass-field {
    position: relative;
    display: block;
}

.dash-main .sec-settings-password-form .sec-pass-field > input {
    padding-right: 92px !important;
}

.dash-main .sec-settings-password-form .sec-pass-field > .sec-pass-toggle {
    position: absolute;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    min-height: 30px !important;
    height: 30px !important;
    min-width: 58px;
    width: 58px !important;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    max-width: 58px;
    z-index: 3;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dash-main .sec-settings-password-form input[type="password"]::-webkit-credentials-auto-fill-button,
.dash-main .sec-settings-password-form input[type="password"]::-webkit-strong-password-auto-fill-button,
.dash-main .sec-settings-password-form input[type="password"]::-webkit-textfield-decoration-container,
.dash-main .sec-settings-password-form input[type="password"]::-webkit-contacts-auto-fill-button {
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}
.dash-main .sec-settings-password-form input[type="password"]::-ms-reveal,
.dash-main .sec-settings-password-form input[type="password"]::-ms-clear {
    display: none;
}

/* Keep topbar controls visually identical (Wallet/Currency/Profile). */
.dash-topbar.dash-topbar--fin .dash-topbar-balance-btn,
.dash-topbar.dash-topbar--fin .dash-topbar-currency-trigger,
.dash-topbar.dash-topbar--fin .topbar-user-trigger {
    border-radius: 10px !important;
    min-height: 40px !important;
    height: 40px !important;
}
.dash-topbar.dash-topbar--fin .topbar-verification-badges .topbar-account-badge,
.dash-topbar.dash-topbar--fin .topbar-verification-badges .topbar-tier-badge {
    border-radius: 10px !important;
    min-height: 40px !important;
    height: 40px !important;
}

.dash-main .sec-settings-row .chart-card {
    min-width: 0;
}

@media (max-width: 560px) {
    .dash-main .sec-settings-row {
        gap: 12px;
    }
    .dash-main .sec-settings-row .chart-card,
    .dash-main .sec-settings-intro,
    .dash-main .sec-settings-2fa,
    .dash-main .sec-settings-links,
    .dash-main .sec-settings-activity {
        padding: 14px;
    }
    .dash-main .sec-settings-dl-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .dash-main .sec-settings-password-form .sec-pass-field > input {
        padding-right: 84px !important;
    }
    .dash-main .sec-settings-password-form .sec-pass-field > .sec-pass-toggle {
        right: 7px;
        min-height: 28px;
        height: 28px !important;
        min-width: 54px;
        width: 54px !important;
        padding: 5px 9px;
        font-size: 11px;
    }
}

/* Business — Create custom Payment Link */
.dash-main .bpl-hero .bpl-header {
    margin-bottom: 10px;
}

.dash-main .bpl-hero h4 {
    margin: 0 0 8px;
    color: #232f43;
    font-size: 17px;
    line-height: 1.35;
}

.dash-main .bpl-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    background: linear-gradient(135deg, #e0e7ff 0%, #fef3c7 100%);
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.dash-main .bpl-purpose {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #3730a3;
}

.dash-main .bpl-purpose-icon {
    margin-right: 4px;
}

.dash-main .bpl-lead {
    margin: 12px 0 16px;
    line-height: 1.5;
}

.dash-main .bpl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.dash-main .bpl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.15s ease, background 0.15s ease;
}

.dash-main .bpl-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    border: 1px solid #3730a3;
}

.dash-main .bpl-btn-primary:hover {
    filter: brightness(1.06);
}

.dash-main .bpl-btn-secondary {
    background: #fff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.dash-main .bpl-btn-secondary:hover {
    background: #eef2ff;
}

.dash-main .bpl-jump {
    margin-bottom: 14px;
}

.dash-main .bpl-jump-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.dash-main .bpl-jump-select {
    max-width: 340px;
}

.dash-main .bpl-advanced-label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #c2410c;
}

.dash-main .bpl-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-main .bpl-details {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
    overflow: hidden;
}

.dash-main .bpl-summary {
    padding: 12px 14px;
    font-weight: 700;
    font-size: 13px;
    color: #1e1b4b;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-main .bpl-summary::-webkit-details-marker {
    display: none;
}

.dash-main .bpl-summary::before {
    content: "▸";
    font-size: 10px;
    color: #6366f1;
    transition: transform 0.15s ease;
}

.dash-main .bpl-details[open] .bpl-summary::before {
    transform: rotate(90deg);
}

.dash-main .bpl-details-body {
    padding: 0 14px 14px 32px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #334155;
}

.dash-main .bpl-list {
    margin: 8px 0 0;
    padding-left: 1.1rem;
    line-height: 1.55;
}

.dash-main .bpl-audience {
    margin: 20px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, #eef2ff 0%, #fff7ed 100%);
    border: 1px dashed #a5b4fc;
    font-size: 13px;
    color: #4338ca;
}

.dash-main .bpl-audience-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6366f1;
    margin-bottom: 4px;
}

@media (max-width: 720px) {
    .dash-main .mx-exchange-flow {
        grid-template-columns: 1fr;
    }

    .dash-main .mx-exchange-swap-wrap {
        padding: 4px 0 8px;
    }

    .dash-main .mx-swap-icon--h { display: none; }
    .dash-main .mx-swap-icon--v { display: block; }
}

.dash-main .deal-msg-row:hover {
    background: #f1f5f9;
}

.dash-main .deal-msg-row + .deal-msg-row .deal-msg-item {
    border-top: 1px solid #e8eef5;
}

.dash-main .deal-msg-row.is-unread .deal-msg-item h4 {
    color: #0f172a;
}

.dash-main .deal-msg-chevron {
    color: #94a3b8;
}

.dash-main .deal-msg-detail .deal-msg-body {
    color: #334155;
}

.dash-main .dash-inline-link {
    color: #0f766e;
}

.dash-main button.linkish-btn {
    color: #0f766e;
}

.dash-main button.linkish-btn:hover {
    color: #0e7490;
}

.dash-main .shortcut-card {
    border: 1px solid #dfe6ef;
    background: #ffffff;
}

.dash-main .shortcut-card h4 {
    color: #232f43;
}

.dash-main .shortcut-card p {
    color: #677891;
}

.dash-main .status-pill {
    color: #0f5b4a;
    border-color: #7fdac3;
    background: #ebfff8;
}

.dash-main .trust-chip.business {
    color: #0f5b4a;
    border-color: #7fdac3;
    background: #ebfff8;
}

.dash-main .trust-chip.personal {
    color: #1e3a8a;
    border-color: #93c5fd;
    background: #eff6ff;
}

.dash-main .account-badge.personal {
    color: #1e3a8a;
    border-color: #93c5fd;
    background: #eff6ff;
}

.dash-main .account-badge.business {
    color: #0f5b4a;
    border-color: #7fdac3;
    background: #ebfff8;
}

.dash-main .mono-text {
    color: #5a6b82;
}

/* Support hub — light panels to match admin main */
.dash-main .support-hub-hero {
    border: 1px solid #d5dfeb;
    background: linear-gradient(135deg, #f8fafc 0%, #eef4fb 50%, #f0fdf9 100%);
    box-shadow: 0 8px 24px rgba(19, 34, 53, 0.06);
}

.dash-main .support-hub-eyebrow {
    color: #0f766e;
}

.dash-main .support-hub-title {
    color: #232f43;
}

.dash-main .support-hub-lead {
    color: #4e5d74;
}

.dash-main .support-hub-btn-ghost {
    background: #ffffff;
    color: #2b3950;
    border-color: #cfd9e6;
}

.dash-main .support-hub-btn-ghost:hover {
    background: #eef4fb;
    border-color: #b8c5d6;
    color: #232f43;
}

.dash-main .support-topic-card {
    border: 1px solid #dfe6ef;
    background: #ffffff;
}

.dash-main .support-topic-card:hover {
    border-color: #c5d0e0;
    box-shadow: 0 8px 22px rgba(19, 34, 53, 0.08);
}

.dash-main .support-topic-card.is-active {
    border-color: #2bb89a;
    box-shadow: 0 0 0 1px rgba(43, 184, 154, 0.35), 0 8px 22px rgba(19, 34, 53, 0.08);
}

.dash-main .support-topic-icon {
    background: #ecfdf5;
    color: #0f766e;
}

.dash-main .support-topic-card h3 {
    color: #232f43;
}

.dash-main .support-topic-card p {
    color: #677891;
}

.dash-main .support-aside-card {
    border: 1px solid #dfe6ef;
    background: #ffffff;
}

.dash-main .support-aside-card h4 {
    color: #1f6b52;
}

.dash-main .support-aside-card p {
    color: #4e5d74;
}

.dash-main .support-history-item {
    border-bottom: 1px solid #e8eef5;
}

.dash-main .support-history-id {
    color: #2563eb;
}

.dash-main .support-history-item h5 {
    color: #232f43;
}

.dash-main .support-history-note {
    color: #475569;
    background: #f8fafc;
    border-left-color: #2bb89a;
}

/* AfripayFunnel support center */
.dash-main .support-hub-hero {
    position: relative;
    border: 1px solid rgba(109, 40, 217, 0.24);
    background:
        radial-gradient(circle at 82% 12%, rgba(45, 212, 191, 0.24), transparent 34%),
        radial-gradient(circle at 14% 12%, rgba(124, 58, 237, 0.22), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef2ff 48%, #ecfdf5 100%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.dash-main .support-hub-hero::after {
    content: "";
    position: absolute;
    inset: 18px 22px auto auto;
    width: min(240px, 28vw);
    height: min(240px, 28vw);
    pointer-events: none;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.10), rgba(45, 212, 191, 0.10));
    filter: blur(2px);
}

.dash-main .support-hub-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
    padding: clamp(22px, 4vw, 38px);
}

.dash-main .support-hub-eyebrow {
    color: #6d28d9;
    font-weight: 950;
}

.dash-main .support-hub-title {
    max-width: 820px;
    color: #101827;
    font-size: clamp(1.9rem, 4vw, 3.35rem);
    font-weight: 950;
    letter-spacing: -0.055em;
}

.dash-main .support-hub-lead {
    max-width: 760px;
    color: #40516a;
    font-size: 15px;
}

.support-funnel-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    max-width: 760px;
}

.support-funnel-stats span {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: #52627a;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.support-funnel-stats strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.dash-main .support-hub-btn {
    border-radius: 999px;
    min-height: 42px;
    padding-inline: 18px;
    font-weight: 950;
}

.dash-main .support-hub-btn-primary {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    color: #042f2e;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.25);
}

.dash-main .support-hub-btn-ghost {
    background: rgba(255, 255, 255, 0.84);
    color: #111827;
    border-color: rgba(148, 163, 184, 0.34);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dash-main .support-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-main .support-topic-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #e3e8f2;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.dash-main .support-topic-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, #6d28d9, #14b8a6);
    opacity: 0;
    transition: opacity 0.16s ease;
}

.dash-main .support-topic-card:hover::after,
.dash-main .support-topic-card.is-active::after {
    opacity: 1;
}

.dash-main .support-topic-card.is-active {
    border-color: rgba(109, 40, 217, 0.35);
    box-shadow: 0 0 0 1px rgba(109, 40, 217, 0.12), 0 22px 54px rgba(15, 23, 42, 0.10);
}

.dash-main .support-topic-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.12), rgba(20, 184, 166, 0.16));
    color: #4c1d95;
    font-size: 13px;
    font-weight: 950;
}

.dash-main .support-topic-card h3 {
    color: #101827;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.dash-main .support-topic-card p {
    color: #52627a;
    font-size: 13px;
}

.dash-main .support-form-card,
.dash-main .support-history-card,
.dash-main .support-aside-card {
    border-radius: 0;
    border-color: #e3e8f2;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.dash-main .support-form-card .chart-head h4,
.dash-main .support-history-card .chart-head h4 {
    color: #101827;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.dash-main .support-contact-form select,
.dash-main .support-contact-form input[type="text"],
.dash-main .support-contact-form textarea {
    border-radius: 0;
    border-color: #d7deea;
    background: #fbfdff;
}

.dash-main .support-contact-form .support-form-actions button {
    border-radius: 0;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.20);
}

.dash-main .support-aside-card--priority {
    border-color: rgba(20, 184, 166, 0.32);
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.dash-main .support-aside-card h4 {
    color: #0f172a;
    font-weight: 950;
}

.dash-main .support-aside-card p {
    color: #52627a;
}

@media (max-width: 900px) {
    .dash-main .support-topic-grid,
    .support-funnel-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dash-main .support-topic-grid,
    .support-funnel-stats {
        grid-template-columns: 1fr;
    }
}

/* Developer API (in-dashboard) */
.dash-main .dash-api-page {
    max-width: 900px;
}

.dash-main .dash-api-intro {
    margin-bottom: 16px;
}

.dash-main .dash-api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.dash-main .dash-api-card h4,
.dash-main .dash-api-section h4 {
    margin-top: 0;
}

.dash-main .dash-api-pre {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #dfe6ef;
    background: #f8fafc;
    color: #1e293b;
    font-size: 12px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.dash-main .dash-api-table-wrap {
    overflow-x: auto;
    margin-top: 10px;
}

.dash-main .dash-api-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dash-main .dash-api-table th,
.dash-main .dash-api-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e8eef5;
    vertical-align: top;
}

.dash-main .dash-api-table th {
    color: #64748b;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dash-main .dash-api-method {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: ui-monospace, monospace;
}

.dash-main .dash-api-method--get {
    background: #e0f2fe;
    color: #0369a1;
}

.dash-main .dash-api-method--post {
    background: #ecfdf5;
    color: #047857;
}

.dash-main .dash-api-section {
    margin-bottom: 14px;
}

.dash-main .dash-api-foot {
    margin-top: 8px;
    font-size: 13px;
}

/* Personal Verification hub (verification-center) */
.dash-main .pvc-toc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0 0 14px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #dfe6ef;
    border-radius: 10px;
}

.dash-main .pvc-toc-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.dash-main .pvc-toc a {
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
}

.dash-main .pvc-toc a:hover {
    text-decoration: underline;
}

.dash-main .pvc-toc .pvc-toc-external {
    margin-left: auto;
}

.dash-main .pvc-toc .pvc-toc-sep {
    color: #94a3b8;
    font-weight: 600;
    user-select: none;
}

@media (max-width: 640px) {
    .dash-main .pvc-toc .pvc-toc-external {
        margin-left: 0;
        width: 100%;
    }
}

.dash-main .pvc-step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 720px) {
    .dash-main .pvc-step-grid {
        grid-template-columns: 1fr;
    }
}

.dash-main .pvc-step-card .chart-head {
    align-items: flex-start;
}

.dash-main .pvc-step-card .chart-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.dash-main .pvc-inline-form {
    margin-top: 10px;
}

.dash-main .pvc-phone-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-main .pvc-otp-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.dash-main .pvc-otp-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 10rem;
}

.dash-main .pvc-otp-label input {
    padding: 8px 10px;
    border: 1px solid #cfd9e6;
    border-radius: 8px;
    font-size: 14px;
}

/* Business Dashboard (business-escrow.php) */
.dash-main .bz-dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.dash-main .bz-dash-stat {
    background: #ffffff;
    border: 1px solid #dfe6ef;
    border-radius: 10px;
    padding: 14px 14px 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dash-main .bz-dash-stat--alert {
    border-color: #fbbf24;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.dash-main .bz-dash-stat--note {
    border-color: #7dd3fc;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.dash-main .bz-dash-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.dash-main .bz-dash-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-top: 6px;
}

.dash-main .bz-dash-stat-hint {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.35;
    color: #64748b;
}

.dash-main .bz-dash-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.dash-main .bz-dash-action {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #dfe6ef;
    border-radius: 10px;
    background: #fafbfc;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dash-main .bz-dash-action:hover {
    border-color: #2bb89a;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(43, 184, 154, 0.12);
}

.dash-main .bz-dash-action-title {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
}

.dash-main .bz-dash-action-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.dash-main .bz-dash-workflow {
    margin-bottom: 12px;
}

.dash-main .bz-dash-workflow-summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    padding: 4px 0;
}

.dash-main .bz-dash-workflow[open] .bz-dash-workflow-summary {
    margin-bottom: 0;
}

.dash-main a.bz-dash-deal-row h4 {
    font-size: 14px;
}

/* Payment link editor — link type fieldset (legend + intro side by side; radios stay readable) */
.dash-main .pl-link-access-fieldset {
    position: relative;
    border: 1px solid #294377;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0;
}

.dash-main .pl-link-access-legend-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dash-main .pl-link-access-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 10px 20px;
    align-items: start;
    margin-bottom: 14px;
}

.dash-main .pl-link-access-head-title {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    color: #1e2635;
}

.dash-main .pl-link-access-head-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

.dash-main .pl-link-access-options {
    display: grid;
    gap: 12px;
}

.dash-main .pl-link-access-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    cursor: pointer;
}

.dash-main .pl-link-access-option > input[type="radio"] {
    margin-top: 4px;
}

.dash-main .pl-link-access-option-body {
    min-width: 0;
    display: block;
}

.dash-main .pl-link-access-option-hint {
    display: block;
    font-size: 0.88rem;
    margin-top: 2px;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .dash-main .pl-link-access-head {
        grid-template-columns: 1fr;
    }
}

/* ── Property chat: inbox / all-chats view ───────────────────────────────── */
.pc-inbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.pc-inbox__title {
    margin: 0;
    font-size: 1.1rem;
    color: #111827;
}
.pc-inbox__all-link {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}
.pc-inbox__all-link:hover { color: #2563eb; }
.pc-inbox__empty {
    padding: 24px 0;
    color: #6b7280;
    font-size: 0.9rem;
}
.pc-inbox__cta {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 18px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.pc-inbox__cta:hover { background: #1d4ed8; color: #fff; }

/* Thread list */
.pc-thread-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pc-thread-item {
    border-bottom: 1px solid #f3f4f6;
}
.pc-thread-item:last-child { border-bottom: none; }
.pc-thread-item__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.12s;
}
.pc-thread-item__link:hover { background: #f8fafc; }
.pc-thread-item--unread .pc-thread-item__link { background: #eff6ff; }
.pc-thread-item--unread .pc-thread-item__link:hover { background: #dbeafe; }

.pc-thread-item__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pc-thread-item__body {
    flex: 1;
    min-width: 0;
}
.pc-thread-item__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.pc-thread-item__buyer {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-thread-item--unread .pc-thread-item__buyer { color: #1d4ed8; }
.pc-thread-item__time {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
    white-space: nowrap;
}
.pc-thread-item__prop {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}
.pc-thread-item__prop svg { opacity: 0.6; flex-shrink: 0; }
.pc-thread-item__preview {
    font-size: 13px;
    color: #6b7280;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pc-thread-item--unread .pc-thread-item__preview { color: #374151; }
.pc-thread-item__badge {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Property context banner (thread view) ───────────────────────────────── */
.pc-prop-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
    font-size: 13px;
}
.pc-prop-context__inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.pc-prop-context__icon { color: #2563eb; flex-shrink: 0; }
.pc-prop-context__label { color: #6b7280; white-space: nowrap; }
.pc-prop-context__title {
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pc-prop-context__title:hover { text-decoration: underline; }
.pc-prop-context__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.pc-prop-context__view-btn {
    padding: 5px 14px;
    background: #2563eb;
    color: #fff;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.12s;
    white-space: nowrap;
}
.pc-prop-context__view-btn:hover { background: #1d4ed8; color: #fff; }
.pc-prop-context__back {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
}
.pc-prop-context__back:hover { color: #2563eb; }

/* ── Thread card ─────────────────────────────────────────────────────────── */
.pc-thread .property-chat-log {
    max-height: 420px;
    overflow-y: auto;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pc-thread .property-chat-msg {
    font-size: 0.9rem;
}
.pc-thread .property-chat-msg__meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
}
.pc-thread .property-chat-msg__who {
    font-weight: 700;
    color: #111827;
}
.pc-thread .property-chat-msg--mine .property-chat-msg__who {
    color: #2563eb;
}
.pc-thread .property-chat-msg__time {
    font-size: 11px;
    color: #9ca3af;
}
.pc-thread__compose textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 80px;
}
.pc-thread__listing-link {
    display: inline-block;
    padding: 7px 16px;
    background: #f1f5f9;
    color: #374151;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 8px;
    transition: background 0.12s;
}
.pc-thread__listing-link:hover { background: #e2e8f0; color: #111827; }

/* ── Persistent guest registration strip (below dashboard chat form) ─── */
.pc-guest-reg-strip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 16px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 10px;
    flex-wrap: wrap;
}
.pc-guest-reg-strip__icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.pc-guest-reg-strip__body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.pc-guest-reg-strip__text {
    font-size: 13px;
    color: #78350f;
    font-weight: 600;
}
.pc-guest-reg-strip__btn {
    display: inline-block;
    padding: 7px 18px;
    background: #d97706;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 7px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.14s;
}
.pc-guest-reg-strip__btn:hover {
    background: #b45309;
    color: #fff;
}
.pc-guest-reg-strip__hint {
    width: 100%;
    margin: 4px 0 0;
    font-size: 12px;
    color: #92400e;
}

/* Legacy compat — keep old class names working */
.dash-main .property-chat-thread-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}
.dash-main .property-chat-thread-list li { margin: 0.4rem 0; }
.dash-main .property-chat-page .property-chat-log {
    max-height: 300px;
    overflow-y: auto;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafbfc;
}
.dash-main .property-chat-page .property-chat-msg {
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.dash-main .property-chat-page .property-chat-msg__who {
    font-weight: 700;
    color: #111827;
}
.dash-main .property-chat-page .property-chat-compose textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 72px;
}

/* —— Deal chat (React island, deal-chat.php) —— */
.dash-main .tp-deal-chat-mount {
    margin: 0 -6px;
}

.tp-deal-chat {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: min(720px, calc(100dvh - 140px));
    max-height: calc(100dvh - 120px);
    background: #0b1d3a;
    color: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #142a4a;
    box-shadow: 0 12px 40px rgba(5, 11, 31, 0.25);
    font-size: 14px;
    line-height: 1.45;
}

.tp-deal-chat__sidebar {
    width: 26%;
    min-width: 200px;
    max-width: 280px;
    flex-shrink: 0;
    background: #08162e;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tp-deal-chat__sidebar-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tp-deal-chat__conv-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.tp-deal-chat__conv {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}

.tp-deal-chat__conv:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tp-deal-chat__conv--active {
    background: rgba(34, 197, 94, 0.22);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.tp-deal-chat__conv-name {
    margin: 0;
    font-weight: 600;
    font-size: 13px;
}

.tp-deal-chat__conv-last {
    margin: 4px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.tp-deal-chat__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tp-deal-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.tp-deal-chat__header-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.tp-deal-chat__header-phase {
    margin: 0 0 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #93c5fd;
}

.tp-deal-chat__header-status {
    margin: 4px 0 0;
    font-size: 12px;
    color: #4ade80;
}

.tp-deal-chat__header-amount {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

.tp-deal-chat__shield {
    width: 28px;
    height: 28px;
    color: #4ade80;
    flex-shrink: 0;
}

.tp-deal-chat__trust-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 14px;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #fef3c7;
    background: rgba(234, 179, 8, 0.12);
    border-bottom: 1px solid rgba(234, 179, 8, 0.28);
}

.tp-deal-chat__trust-banner strong {
    color: #fde68a;
}

.tp-deal-chat__trust-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #fbbf24;
    margin-top: 1px;
}

.tp-deal-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.tp-deal-chat__bubble {
    max-width: min(320px, 88%);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    word-wrap: break-word;
}

.tp-deal-chat__bubble--self {
    align-self: flex-end;
    background: #22c55e;
    color: #052e16;
}

.tp-deal-chat__bubble--other {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.tp-deal-chat__bubble--system {
    align-self: center;
    max-width: 90%;
    text-align: center;
    background: rgba(59, 130, 246, 0.25);
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.35);
}

.tp-deal-chat__composer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.tp-deal-chat__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    cursor: pointer;
}

.tp-deal-chat__icon-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.tp-deal-chat__input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-size: 14px;
    outline: none;
}

.tp-deal-chat__input::placeholder {
    color: #64748b;
}

.tp-deal-chat__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #22c55e;
    color: #052e16;
    cursor: pointer;
}

.tp-deal-chat__send:hover {
    filter: brightness(1.06);
}

.tp-deal-chat__deal {
    width: 26%;
    min-width: 200px;
    max-width: 280px;
    flex-shrink: 0;
    background: #08162e;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
}

.tp-deal-chat__deal-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.tp-deal-chat__deal-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 14px;
    border-radius: 10px;
}

.tp-deal-chat__deal-label {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}

.tp-deal-chat__deal-amount {
    margin: 6px 0 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tp-deal-chat__deal-meta {
    margin: 10px 0 0;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

.tp-deal-chat__terms {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-deal-chat__terms-title {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.tp-deal-chat__terms-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #cbd5e1;
}

.tp-deal-chat__timeline-title {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.tp-deal-chat__timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-deal-chat__timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: #94a3b8;
}

.tp-deal-chat__timeline-item:last-child {
    margin-bottom: 0;
}

.tp-deal-chat__timeline-dot {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #475569;
}

.tp-deal-chat__timeline-item--done {
    color: #a7f3d0;
}

.tp-deal-chat__timeline-item--done .tp-deal-chat__timeline-dot {
    background: #22c55e;
}

.tp-deal-chat__timeline-item--current {
    color: #fde68a;
    font-weight: 600;
}

.tp-deal-chat__timeline-item--current .tp-deal-chat__timeline-dot {
    background: #eab308;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.35);
}

.tp-deal-chat__timeline-item--upcoming .tp-deal-chat__timeline-dot {
    background: #334155;
}

.tp-deal-chat__admin-note {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #64748b;
}

.tp-deal-chat__admin-note a {
    color: #7dd3fc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tp-deal-chat__admin-note a:hover {
    color: #bae6fd;
}

.tp-deal-chat__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-deal-chat__action-form {
    margin: 0;
}

.tp-deal-chat__btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.3;
}

.tp-deal-chat__btn--primary {
    background: #22c55e;
    color: #052e16;
}

.tp-deal-chat__btn--primary:hover {
    filter: brightness(1.05);
}

.tp-deal-chat__btn--dispute {
    background: #eab308;
    color: #422006;
}

.tp-deal-chat__btn--dispute:hover {
    filter: brightness(1.05);
}

.tp-deal-chat__btn--ghost {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tp-deal-chat__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

@media (max-width: 960px) {
    .tp-deal-chat {
        flex-direction: column;
        max-height: none;
        min-height: 480px;
    }

    .tp-deal-chat__sidebar,
    .tp-deal-chat__deal {
        width: 100%;
        max-width: none;
        border-right: 0;
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tp-deal-chat__deal {
        border-bottom: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tp-deal-chat__conv-list {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .tp-deal-chat__conv {
        flex: 0 0 auto;
        min-width: 160px;
    }

    .tp-deal-chat__main {
        min-height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-deal-chat__conv,
    .tp-deal-chat__icon-btn,
    .tp-deal-chat__send,
    .tp-deal-chat__btn--primary,
    .tp-deal-chat__btn--dispute,
    .tp-deal-chat__btn--ghost {
        transition: none;
    }
}

/* Deal chat first-time contact gate */
.tp-deal-chat-gate {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12px 0 24px;
}

.tp-deal-chat-gate__panel {
    width: 100%;
    max-width: 420px;
    padding: 24px 22px;
    border-radius: 14px;
    background: linear-gradient(165deg, #0b1d3a 0%, #08162e 100%);
    border: 1px solid #1e3a5c;
    color: #e2e8f0;
    box-shadow: 0 16px 48px rgba(5, 11, 31, 0.2);
}

.tp-deal-chat-gate__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.tp-deal-chat-gate__lede {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
}

.tp-deal-chat-gate__warn {
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #fef3c7;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.28);
}

.tp-deal-chat-gate__warn strong {
    color: #fde68a;
}

.tp-deal-chat-gate__label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.tp-deal-chat-gate__label span {
    display: block;
    margin-bottom: 6px;
}

.tp-deal-chat-gate__input {
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #2d4a6f;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-size: 14px;
    outline: none;
}

.tp-deal-chat-gate__input:focus {
    border-color: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.tp-deal-chat-gate__error {
    margin: 0 0 12px;
    font-size: 12px;
    color: #fca5a5;
}

.tp-deal-chat-gate__submit {
    width: 100%;
    margin-top: 4px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: #22c55e;
    color: #052e16;
    font-family: inherit;
}

.tp-deal-chat-gate__submit:hover:not(:disabled) {
    filter: brightness(1.06);
}

.tp-deal-chat-gate__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.tp-deal-chat-gate__hint {
    margin: 12px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #64748b;
}

/* Dispute details — live thread (dispute-details.php + dispute-thread.js) */
.dispute-thread-card .dispute-thread-lede {
    margin-top: 0;
}

.dispute-thread-status {
    margin: 0 0 10px;
    font-size: 12px;
    color: #64748b;
}

.dispute-thread-log {
    max-height: 360px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 14px;
}

.dispute-thread-msg {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.dispute-thread-msg--buyer {
    border-left: 3px solid #3b82f6;
}

.dispute-thread-msg--seller {
    border-left: 3px solid #22c55e;
}

.dispute-thread-msg--admin {
    border-left: 3px solid #a855f7;
}

.dispute-thread-msg--system {
    border-left: 3px solid #64748b;
    background: #f1f5f9;
}

.dispute-thread-msg__who {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 4px;
}

.dispute-thread-msg__body {
    font-size: 13px;
    line-height: 1.5;
    color: #1e293b;
    white-space: pre-wrap;
}

.dispute-thread-msg__file {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}

.dispute-thread-msg__ts {
    margin-top: 6px;
    font-size: 11px;
    color: #94a3b8;
}

.dispute-thread-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Dashboard marketplace: 3-column listing. */
.dash-pm-embed .pm-feed--mock.pm-feed--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
    .dash-pm-embed .pm-feed--mock.pm-feed--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .dash-pm-embed .pm-feed--mock.pm-feed--grid {
        grid-template-columns: 1fr;
    }
}

/* Property detail inside dashboard main column */
.dash-pd-embed .pm-detail-mock-grid,
.dash-pd-embed .pd-detail-grid {
    min-width: 0;
}

.dash-pd-missing .pm-missing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

/* ── Deal creation modal (must be in dashboard.css because styles.css is not
      loaded on all dashboard pages) ───────────────────────────────────────── */
.tp-deal-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.tp-deal-modal[hidden] {
    display: none !important;
}
body.tp-deal-modal--open {
    overflow: hidden;
}
.tp-deal-modal__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.55);
    cursor: default; /* Remove pointer to indicate it's not clickable to close */
}
.tp-deal-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    color: #111827;
    border-radius: 16px;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
    text-align: left;
}
.tp-deal-modal__x {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tp-deal-modal__x:hover { background: #e5e7eb; }
.tp-deal-modal__title {
    margin: 0 2rem 0.35rem 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}
.tp-deal-modal__sub {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6b7280;
}
.tp-deal-modal__auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0.5rem;
}
.tp-deal-modal__fineprint {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
}
.tp-deal-modal__fineprint a { color: #2563eb; font-weight: 600; text-decoration: none; }
.tp-deal-modal__fineprint a:hover { text-decoration: underline; }
.tp-deal-modal__label {
    display: block;
    margin: 0.65rem 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}
.tp-deal-modal__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
}
.tp-deal-modal__textarea { min-height: 5rem; resize: vertical; }
.tp-deal-modal__hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}
.tp-deal-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.tp-deal-modal__btn--primary { background: #2563eb; color: #fff; }
.tp-deal-modal__btn--primary:hover { background: #1d4ed8; }
.tp-deal-modal__btn--ghost { background: #f3f4f6; color: #1f2937; }
.tp-deal-modal__btn--ghost:hover { background: #e5e7eb; }
.tp-deal-modal__submit { width: 100%; margin-top: 1rem; padding: 0.75rem 1rem; }
.tp-deal-modal__paynote {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #6b7280;
}


/* ==========================================================================
   MOBILE OPTIMIZATION - User Dashboard compact phone view
   Breakpoints: <=760px (sidebar off-canvas) + <=480px + <=360px
   ========================================================================== */

/* -- 760px: sidebar becomes off-canvas drawer ----------------------------- */
@media (max-width: 760px) {

  /* Shell: single column; sidebar floats as fixed overlay */
  .dash-shell {
    display: block;
    position: relative;
  }

  /* Sidebar: hidden off-canvas by default, slides in when .is-sidebar-open */
  .dash-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: min(270px, 88vw);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .dash-shell.is-sidebar-open .dash-sidebar {
    transform: translateX(0);
  }

  /* Backdrop: visible only when sidebar is open */
  .dash-sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(6, 15, 43, 0.5);
    border: 0; padding: 0; margin: 0;
    cursor: pointer;
  }

  /* Hamburger: always visible on mobile */
  .dash-nav-hamburger {
    display: inline-flex;
  }

  /* Topbar: compact padding + guaranteed sticky */
  .dash-topbar {
    padding: 0 12px;
    min-height: 52px;
    position: sticky;
    top: 0;
  }

  /* Page titles */
  .dash-page-title { font-size: 1.2rem; margin-bottom: 14px; }
  .dash-breadcrumb { font-size: 0.75rem; }

  /* Dashboard stat cards: 2-col grid */
  .dash-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-stat-card { padding: 14px 12px; border-radius: 12px; }
  .dash-stat-card__val { font-size: 1.3rem; }
  .dash-stat-card__label { font-size: 0.72rem; }

  /* Deal / escrow table: horizontal scroll */
  .dash-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-table { min-width: 540px; }
  .dash-table td, .dash-table th { padding: 8px 12px; font-size: 0.8125rem; }

  /* Marketplace listing: 2-col on 760px */
  .dash-mkt-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }

  /* Quick-action strip */
  .dash-quick-actions { flex-wrap: wrap; gap: 8px; }
  .dash-quick-action { min-width: calc(50% - 4px); }

  /* Forms */
  .dash-form-row { flex-direction: column; gap: 10px; }
  .dash-form-col { min-width: 0; }
}

/* -- 480px: phone compact ------------------------------------------------- */
@media (max-width: 480px) {

  /* Fin pills: even smaller */
  .dash-topbar-fin-pill { padding: 5px 8px; }
  .dtfp-value { font-size: 11px; }

  /* Stat cards: single column */
  .dash-stat-grid { grid-template-columns: 1fr !important; gap: 8px; }
  .dash-stat-card { padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
  .dash-stat-card__val { font-size: 1.4rem; }

  /* Marketplace: 1 col */
  .dash-mkt-grid { grid-template-columns: 1fr !important; }

  /* Property sidebar stacks below */
  .dash-mkt-layout { flex-direction: column !important; }
  .prop-trust-sidebar { width: 100% !important; max-width: none !important; }

  /* Deal cards */
  .deal-card { padding: 14px 12px; border-radius: 12px; }
  .deal-card__row { flex-wrap: wrap; gap: 6px; }
  .deal-card__amount { font-size: 1.1rem; }

  /* Wallet balance card */
  .wallet-bal-card { padding: 18px 14px; border-radius: 14px; }
  .wallet-bal-card__amount { font-size: 1.8rem; }

  /* Payment card visual */
  .afri-card-vis { border-radius: 14px; padding: 18px 16px; }
  .afri-card-vis__number { font-size: 1.1rem; }

  /* Transaction list */
  .txn-row { padding: 10px 0; gap: 10px; }
  .txn-row__icon { width: 34px; height: 34px; }
  .txn-row__amount { font-size: 0.9rem; }

  /* Escrow detail */
  .escrow-detail-grid { grid-template-columns: 1fr !important; }
  .escrow-meta-grid { grid-template-columns: 1fr 1fr !important; }

  /* Chat panel */
  .pw { gap: 6px; }
  .chat-input-row input { font-size: 16px; }

  /* Payment link builder */
  .paylink-builder-grid { grid-template-columns: 1fr !important; }
  .paylink-preview-frame { min-height: 280px; }

  /* Business account panels */
  .biz-section-grid { grid-template-columns: 1fr !important; gap: 12px; }

  /* KYC steps */
  .kyc-step-num { padding: 10px; }
  .kyc-step { flex-direction: row; gap: 10px; align-items: flex-start; }

  /* Notification items */
  .notif-item { padding: 12px; gap: 8px; }
  .notif-item__icon { width: 32px; height: 32px; flex-shrink: 0; }

  /* Modal / dialog: bottom sheet on phones */
  .dash-modal-panel, .tp-deal-modal__box {
    margin: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important; right: 0 !important;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Add money / money out */
  .add-money-card, .money-out-card { padding: 18px 14px; border-radius: 14px; }
  .add-money-tabs { gap: 4px; }
  .add-money-tab { padding: 8px 12px; font-size: 0.8125rem; }

  /* Quick-action buttons: 2-col grid */
  .dash-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Profile / settings */
  .profile-avatar-wrap { flex-direction: column; gap: 10px; }
  .profile-section-grid { grid-template-columns: 1fr !important; }
  .settings-card { padding: 18px 14px; }
}

/* -- 360px: ultra-small phones -------------------------------------------- */
@media (max-width: 360px) {
  .dash-content { padding: 12px 10px; }
  .wallet-bal-card__amount { font-size: 1.5rem; }
  .dash-quick-actions { grid-template-columns: 1fr; }
  .dash-table { min-width: 460px; }
}

/* ── African Launch cohort panel (main user dashboard) ─────────────────────── */
.dash-al-launch-panel {
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 45%, #ffffff 100%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.dash-al-launch-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dash-al-launch-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #047857;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
}
.dash-al-launch-lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}
.dash-al-launch-links {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.dash-al-launch-links a {
  font-size: 14px;
  font-weight: 600;
  color: #0f766e;
  text-decoration: none;
}
.dash-al-launch-links a:hover {
  text-decoration: underline;
}
.dash-al-launch-foot {
  margin: 0;
  font-size: 13px;
}

/* Secret/API key reveal — inside input (Business Branding payment settlement, etc.) */
.dash-main .password-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
}

.dash-main .password-input-wrapper input[type="password"],
.dash-main .password-input-wrapper input[type="text"],
.dash-main .password-input-wrapper .cbl-input {
    padding-right: 2.75rem !important;
    box-sizing: border-box;
}

.dash-main .password-input-wrapper .password-toggle {
    position: absolute !important;
    right: 1px !important;
    top: 1px !important;
    bottom: 1px !important;
    left: auto !important;
    width: 2.75rem !important;
    min-width: 2.75rem !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    border: none !important;
    border-radius: 0 9px 9px 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 3 !important;
    line-height: 1 !important;
    font-weight: 400 !important;
}

.dash-main .password-input-wrapper .password-toggle:hover {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.06) !important;
}

.dash-main .password-input-wrapper .password-toggle:focus-visible {
    outline: 2px solid #2563eb !important;
    outline-offset: -2px !important;
}

.dash-main .password-input-wrapper .password-toggle-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    pointer-events: none;
}

/* Compact dashboard layout polish: keep borders, remove container radius. */
.dash-main > .chart-card,
.dash-main .chart-card,
.dash-main .wallet-card,
.dash-main .stat-card,
.dash-main .tx-log,
.dash-main .dash-alert,
.dash-main .dash-form,
.dash-main .dash-page-lead,
.dash-main .escrow-actions-panel,
.dash-main .support-form-card,
.dash-main .support-history-card,
.dash-main .support-topic-card,
.dash-main .support-hub-hero,
.dash-main .dash-module-hero,
.dash-main .dash-launch-module,
.dash-main .dash-launch-module__host,
.dash-main .dash-launch-module__host--framed,
.dash-main .dash-launch-module__sales-wrap,
.dash-main .dash-launch-module__service-frame,
.dash-main .dash-bank-submissions,
.dash-main .dash-bank-submissions__item,
.dash-main .cbl-card,
.dash-main .cpl-card,
.dash-main .cbl-hero,
.dash-main .cpl-hero,
.dash-main .pay-fin-stat,
.dash-main .dash-table-scroll,
.dash-main .table-scroll {
    border-radius: 0 !important;
}

.dash-shell--studio-funnel .dash-main {
    padding: 0 14px 22px;
    width: 100%;
    box-sizing: border-box;
}

.dash-shell--studio-funnel .dash-main .dash-topbar {
    min-height: 62px;
    height: 62px;
    margin: 0 -14px 0;
    padding: 10px 20px;
    flex-shrink: 0;
    box-sizing: border-box;
}

@media (min-width: 761px) {
    .dash-shell--studio-funnel .dash-main .dash-topbar .dash-nav-hamburger {
        display: none !important;
    }
}

.dash-shell--studio-funnel .dash-main > *,
.dash-shell--studio-funnel .dash-main .chart-card,
.dash-shell--studio-funnel .dash-main .tx-log,
.dash-shell--studio-funnel .dash-main .dash-launch-module,
.dash-shell--studio-funnel .dash-main .cbl-page,
.dash-shell--studio-funnel .dash-main .cpl-page {
    max-width: none;
}

@media (max-width: 760px) {
    .dash-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .dash-shell--studio-funnel .dash-main,
    .dash-main {
        padding: 10px 10px 22px;
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
    }

    .dash-shell--studio-funnel .dash-main {
        padding-top: 0;
    }

    .dash-main .dash-topbar {
        margin: -10px -10px 10px;
    }

    .dash-shell--studio-funnel .dash-main .dash-topbar {
        min-height: 62px;
        height: 62px;
        margin: 0 -10px 0;
        padding-top: max(10px, env(safe-area-inset-top, 0px));
        padding-bottom: 10px;
    }

    .wallet-row,
    .stats-row,
    .chart-row {
        gap: 8px;
        margin-bottom: 8px;
    }

    .dash-main .chart-card,
    .dash-main .wallet-card,
    .dash-main .stat-card,
    .dash-main .tx-log,
    .dash-main .support-form-card,
    .dash-main .support-history-card {
        padding: 10px;
    }
}

/* Seller dashboard mobile drawer: keep desktop sidebar hidden until hamburger opens it. */
@media (max-width: 760px) {
    .dash-shell--studio-funnel {
        display: block !important;
        position: relative;
        overflow-x: hidden;
    }

    .dash-shell--studio-funnel .dash-sidebar {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(300px, 88vw) !important;
        max-width: 88vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        z-index: 1000 !important;
        transform: translateX(-105%) !important;
        transition: transform 0.22s ease !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        box-shadow: 18px 0 42px rgba(2, 6, 23, 0.45);
    }

    .dash-shell--studio-funnel.is-sidebar-open .dash-sidebar {
        transform: translateX(0) !important;
    }

    .dash-shell--studio-funnel .dash-sidebar-backdrop:not([hidden]) {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 990 !important;
        background: rgba(2, 6, 23, 0.58) !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .dash-shell--studio-funnel .dash-main .dash-topbar .dash-nav-hamburger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 35;
        flex: 0 0 auto;
    }

    .dash-shell--studio-funnel.is-sidebar-open .dash-main .dash-topbar .dash-nav-hamburger {
        color: #0f172a;
        background: #f8fafc;
        border-color: #cbd5e1;
    }

    .dash-shell--studio-funnel .dash-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        padding-bottom: 84px !important;
    }

    .dash-shell--studio-funnel .dash-menu-group {
        display: block !important;
        margin-top: 6px !important;
    }

    .dash-shell--studio-funnel .dash-menu-group .dash-menu-group-items,
    .dash-shell--studio-funnel .dash-menu-group:not(.is-open) .dash-menu-group-items,
    .dash-shell--studio-funnel .dash-menu-group.is-open .dash-menu-group-items {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 4px !important;
    }

    .dash-shell--studio-funnel .dash-menu-group-label.dash-menu-group-toggle {
        min-height: 34px !important;
        padding: 8px 12px !important;
        cursor: default !important;
        pointer-events: none !important;
    }

    .dash-shell--studio-funnel .dash-menu-group-chevron {
        display: none !important;
    }

    .dash-shell--studio-funnel .dash-menu a,
    .dash-shell--studio-funnel .dash-menu .menu-item,
    .dash-shell--studio-funnel .dash-menu button.menu-item {
        display: flex !important;
        width: 100% !important;
        min-height: 36px !important;
        justify-content: flex-start !important;
        text-align: left !important;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    .dash-shell--studio-funnel .dash-sidebar-wallet {
        margin-bottom: 10px !important;
    }
}

/* Core Studio responsive hardening: shared overflow and compact-card safeguards. */
.dash-main[data-active-menu="dashboard"],
.dash-main[data-active-menu="studio-home"],
.dash-main[data-active-menu="funnel-buyers"],
.dash-main[data-active-menu="launch-bundle-full"],
.dash-main[data-active-menu="v1-launch-readiness"],
.dash-main[data-active-menu="ai-funnel-generator"],
.dash-main[data-active-menu="ai-marketing-tools"],
.dash-main[data-active-menu="launch-agency-os"],
.dash-main[data-active-menu="business-payment-domain"],
.dash-main[data-active-menu="receipt_suite"],
.dash-main[data-active-menu="seller-analytics"],
.dash-main[data-active-menu="properties"],
.dash-main[data-active-menu="customize-payment-link"],
.dash-main[data-active-menu="create-business-link"],
.dash-main[data-active-menu="create-personal-link"],
.dash-main[data-active-menu="funnel-builder-v2"],
.dash-main[data-active-menu="funnel-builder-v3"],
.dash-main[data-active-menu="content-builder"],
.dash-main[data-active-menu="product-manager"],
.dash-main[data-active-menu="media-library"],
.dash-main[data-active-menu="launch-academy"],
.dash-main[data-active-menu="support"] {
    overflow-x: clip;
}

.dash-main[data-active-menu="dashboard"] *,
.dash-main[data-active-menu="studio-home"] *,
.dash-main[data-active-menu="funnel-buyers"] *,
.dash-main[data-active-menu="launch-bundle-full"] *,
.dash-main[data-active-menu="v1-launch-readiness"] *,
.dash-main[data-active-menu="ai-funnel-generator"] *,
.dash-main[data-active-menu="ai-marketing-tools"] *,
.dash-main[data-active-menu="launch-agency-os"] *,
.dash-main[data-active-menu="business-payment-domain"] *,
.dash-main[data-active-menu="receipt_suite"] *,
.dash-main[data-active-menu="seller-analytics"] *,
.dash-main[data-active-menu="properties"] *,
.dash-main[data-active-menu="customize-payment-link"] *,
.dash-main[data-active-menu="create-business-link"] *,
.dash-main[data-active-menu="create-personal-link"] *,
.dash-main[data-active-menu="funnel-builder-v2"] *,
.dash-main[data-active-menu="funnel-builder-v3"] *,
.dash-main[data-active-menu="content-builder"] *,
.dash-main[data-active-menu="product-manager"] *,
.dash-main[data-active-menu="media-library"] *,
.dash-main[data-active-menu="launch-academy"] *,
.dash-main[data-active-menu="support"] * {
    min-width: 0;
}

.dash-main[data-active-menu="funnel-buyers"] .dash-bank-submissions,
.dash-main[data-active-menu="funnel-buyers"] .dash-bank-submissions__item,
.dash-main[data-active-menu="launch-bundle-full"] .dash-module-hero,
.dash-main[data-active-menu="v1-launch-readiness"] .dash-module-hero {
    max-width: 100%;
}

@media (max-width: 760px) {
    .dash-main[data-active-menu="dashboard"],
    .dash-main[data-active-menu="studio-home"],
    .dash-main[data-active-menu="funnel-buyers"],
    .dash-main[data-active-menu="launch-bundle-full"],
    .dash-main[data-active-menu="v1-launch-readiness"],
    .dash-main[data-active-menu="ai-funnel-generator"],
    .dash-main[data-active-menu="ai-marketing-tools"],
    .dash-main[data-active-menu="launch-agency-os"],
    .dash-main[data-active-menu="business-payment-domain"],
    .dash-main[data-active-menu="receipt_suite"],
    .dash-main[data-active-menu="seller-analytics"],
    .dash-main[data-active-menu="properties"],
    .dash-main[data-active-menu="customize-payment-link"],
    .dash-main[data-active-menu="create-business-link"],
    .dash-main[data-active-menu="create-personal-link"],
    .dash-main[data-active-menu="funnel-builder-v2"],
    .dash-main[data-active-menu="funnel-builder-v3"],
    .dash-main[data-active-menu="content-builder"],
    .dash-main[data-active-menu="product-manager"],
    .dash-main[data-active-menu="media-library"],
    .dash-main[data-active-menu="launch-academy"],
    .dash-main[data-active-menu="support"] {
        gap: 10px;
    }

    .dash-main[data-active-menu="dashboard"] .chart-card,
    .dash-main[data-active-menu="studio-home"] .chart-card,
    .dash-main[data-active-menu="funnel-buyers"] .chart-card,
    .dash-main[data-active-menu="launch-bundle-full"] .chart-card,
    .dash-main[data-active-menu="v1-launch-readiness"] .chart-card,
    .dash-main[data-active-menu="ai-funnel-generator"] .chart-card,
    .dash-main[data-active-menu="ai-marketing-tools"] .chart-card,
    .dash-main[data-active-menu="launch-agency-os"] .chart-card,
    .dash-main[data-active-menu="business-payment-domain"] .chart-card,
    .dash-main[data-active-menu="receipt_suite"] .chart-card,
    .dash-main[data-active-menu="seller-analytics"] .chart-card,
    .dash-main[data-active-menu="properties"] .chart-card,
    .dash-main[data-active-menu="customize-payment-link"] .chart-card,
    .dash-main[data-active-menu="create-business-link"] .chart-card,
    .dash-main[data-active-menu="create-personal-link"] .chart-card,
    .dash-main[data-active-menu="funnel-builder-v2"] .chart-card,
    .dash-main[data-active-menu="funnel-builder-v3"] .chart-card,
    .dash-main[data-active-menu="content-builder"] .chart-card,
    .dash-main[data-active-menu="product-manager"] .chart-card,
    .dash-main[data-active-menu="media-library"] .chart-card,
    .dash-main[data-active-menu="launch-academy"] .chart-card,
    .dash-main[data-active-menu="support"] .chart-card {
        padding: 10px;
    }

    .dash-main .aos-grid,
    .dash-main .aos-grid--2,
    .dash-main .aos-grid--3,
    .dash-main .wlbc-grid,
    .dash-main .wlbc-grid--2,
    .dash-main .wlbc-grid--3,
    .dash-main .wlbc-checks,
    .dash-main .wlbc-toggle-grid,
    .dash-main .bdc-grid,
    .dash-main .bdc-grid--2,
    .dash-main .bdc-grid--3,
    .dash-main .receipt-grid,
    .dash-main .receipt-grid--2,
    .dash-main .receipt-grid--3,
    .dash-main .seller-analytics-grid,
    .dash-main .seller-analytics-grid--2,
    .dash-main .seller-analytics-grid--3,
    .dash-main .dash-marketplace-grid,
    .dash-main .pay-fin-stat-grid,
    .dash-main .agent-partner-home__kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .dash-main .aos-page,
    .dash-main .wlbc-page,
    .dash-main .bdc-page,
    .dash-main .receipt-page {
        gap: 12px !important;
    }

    .dash-main .aos-card,
    .dash-main .wlbc-card,
    .dash-main .bdc-card,
    .dash-main .receipt-card {
        padding: 12px !important;
    }
}

@media (max-width: 420px) {
    .dash-main .aos-grid,
    .dash-main .aos-grid--2,
    .dash-main .aos-grid--3,
    .dash-main .wlbc-grid,
    .dash-main .wlbc-grid--2,
    .dash-main .wlbc-grid--3,
    .dash-main .wlbc-checks,
    .dash-main .wlbc-toggle-grid,
    .dash-main .bdc-grid,
    .dash-main .bdc-grid--2,
    .dash-main .bdc-grid--3,
    .dash-main .receipt-grid,
    .dash-main .receipt-grid--2,
    .dash-main .receipt-grid--3,
    .dash-main .seller-analytics-grid,
    .dash-main .seller-analytics-grid--2,
    .dash-main .seller-analytics-grid--3,
    .dash-main .dash-marketplace-grid,
    .dash-main .pay-fin-stat-grid,
    .dash-main .agent-partner-home__kpis {
        grid-template-columns: 1fr !important;
    }
}

/* Sitewide dashboard compact mobile pass.
   Short cards/stats/actions stay two-up on mobile; tables, forms and editors keep their safer layouts. */
@media (max-width: 760px) {
    .dash-main .stats-row,
    .dash-main .wallet-row,
    .dash-main .shortcut-grid,
    .dash-main .financial-records-grid,
    .dash-main .wallet-mini-grid,
    .dash-main .support-topic-grid,
    .dash-main .support-funnel-stats,
    .dash-main .dash-stat-grid,
    .dash-main .dash-quick-actions,
    .dash-main .dash-marketplace-grid,
    .dash-main .dash-mkt-grid,
    .dash-main .escrow-meta-grid,
    .dash-main .pay-fin-stat-grid,
    .dash-main .agent-partner-home__kpis,
    .dash-main .pvc-step-grid,
    .dash-main .pl-link-access-grid,
    .dash-main .pm-stats,
    .dash-main .pm-stat-grid,
    .dash-main .cb-stats,
    .dash-main .cb-health,
    .dash-main .ml-stats,
    .dash-main .fbv3-list-grid,
    .dash-main .cbl-stats,
    .dash-main .cpl-stats,
    .dash-main .ate-summary__grid,
    .dash-main .ate-review-grid,
    .dash-main .pt-module-dd__grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .dash-main .stat-card,
    .dash-main .wallet-card,
    .dash-main .shortcut-card,
    .dash-main .dash-stat-card,
    .dash-main .support-topic-card,
    .dash-main .dash-marketplace-card,
    .dash-main .agent-partner-home__kpis > *,
    .dash-main .pay-fin-stat-grid > *,
    .dash-main .financial-records-grid > * {
        min-width: 0 !important;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 340px) {
    .dash-main .stats-row,
    .dash-main .wallet-row,
    .dash-main .shortcut-grid,
    .dash-main .financial-records-grid,
    .dash-main .wallet-mini-grid,
    .dash-main .support-topic-grid,
    .dash-main .support-funnel-stats,
    .dash-main .dash-stat-grid,
    .dash-main .dash-quick-actions,
    .dash-main .dash-marketplace-grid,
    .dash-main .dash-mkt-grid,
    .dash-main .escrow-meta-grid,
    .dash-main .pay-fin-stat-grid,
    .dash-main .agent-partner-home__kpis,
    .dash-main .pvc-step-grid,
    .dash-main .pl-link-access-grid,
    .dash-main .pm-stats,
    .dash-main .pm-stat-grid,
    .dash-main .cb-stats,
    .dash-main .cb-health,
    .dash-main .ml-stats,
    .dash-main .fbv3-list-grid,
    .dash-main .cbl-stats,
    .dash-main .cpl-stats,
    .dash-main .ate-summary__grid,
    .dash-main .ate-review-grid,
    .dash-main .pt-module-dd__grid {
        grid-template-columns: 1fr !important;
    }
}

/* Final mobile nav safety: keep hamburger visible across dashboard shells. */
@media (max-width: 760px) {
    .dash-shell .dash-nav-hamburger,
    .dash-shell--studio-funnel .dash-main .dash-topbar .dash-nav-hamburger,
    .dash-shell--launch-funnel .dash-main .dash-topbar .dash-nav-hamburger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Final dashboard header behavior: keep top header sticky on desktop and mobile. */
.dash-shell .dash-main > .dash-topbar,
.dash-shell .dash-main .dash-topbar,
.dash-shell--studio-funnel .dash-main > .dash-topbar,
.dash-shell--studio-funnel .dash-main .dash-topbar,
.dash-shell--launch-funnel .dash-main > .dash-topbar,
.dash-shell--launch-funnel .dash-main .dash-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 150 !important;
}

@media (max-width: 760px) {
    .dash-shell .dash-main > .dash-topbar,
    .dash-shell .dash-main .dash-topbar,
    .dash-shell--studio-funnel .dash-main > .dash-topbar,
    .dash-shell--studio-funnel .dash-main .dash-topbar,
    .dash-shell--launch-funnel .dash-main > .dash-topbar,
    .dash-shell--launch-funnel .dash-main .dash-topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 150 !important;
    }
}

/* Final mobile topbar control set: balance, messages, currency dropdown, profile dropdown. */
@media (max-width: 760px) {
    .dash-main .dash-topbar .topbar-deal-messages {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .dash-main .dash-topbar .dash-topbar-currency-trigger {
        flex: 0 0 48px !important;
        width: 48px !important;
        min-width: 48px !important;
        padding: 0 !important;
        gap: 4px !important;
        font-size: 0 !important;
    }

    .dash-main .dash-topbar .dash-topbar-currency-trigger::before {
        content: "↺";
        font-size: 15px;
        line-height: 1;
    }

    .dash-main .dash-topbar .dash-topbar-currency-trigger span[aria-hidden="true"] {
        display: inline !important;
        font-size: 10px !important;
        line-height: 1;
    }

    .dash-main .dash-topbar .topbar-user-trigger {
        width: 48px !important;
        min-width: 48px !important;
        height: 40px !important;
        padding: 0 5px !important;
        gap: 3px !important;
    }

    .dash-main .dash-topbar .topbar-user-name {
        display: none !important;
    }

    .dash-main .dash-topbar .topbar-user-caret {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 10px !important;
        opacity: .9 !important;
    }

    .dash-main .dash-topbar .topbar-user-dropdown {
        position: fixed !important;
        top: calc(52px + max(0px, env(safe-area-inset-top, 0px))) !important;
        right: max(8px, env(safe-area-inset-right, 0px)) !important;
        left: auto !important;
        width: min(260px, calc(100vw - 16px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 16px) !important;
        z-index: 500 !important;
    }
}

/* Mobile fixed dashboard header: avoid sticky failures inside overflow containers. */
@media (max-width: 760px) {
    .dash-shell .dash-main,
    .dash-shell--studio-funnel .dash-main,
    .dash-shell--launch-funnel .dash-main {
        padding-top: calc(62px + max(0px, env(safe-area-inset-top, 0px))) !important;
    }

    .dash-shell .dash-main > .dash-topbar,
    .dash-shell .dash-main .dash-topbar,
    .dash-shell--studio-funnel .dash-main > .dash-topbar,
    .dash-shell--studio-funnel .dash-main .dash-topbar,
    .dash-shell--launch-funnel .dash-main > .dash-topbar,
    .dash-shell--launch-funnel .dash-main .dash-topbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        margin: 0 !important;
        z-index: 1000 !important;
        border-radius: 0 !important;
        padding-top: max(10px, env(safe-area-inset-top, 0px)) !important;
    }

    .dash-main .dash-topbar .dash-topbar-currency-dropdown {
        position: fixed !important;
        top: calc(52px + max(0px, env(safe-area-inset-top, 0px))) !important;
        right: max(8px, env(safe-area-inset-right, 0px)) !important;
        left: auto !important;
        width: min(220px, calc(100vw - 16px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 16px) !important;
        max-height: min(260px, calc(100vh - 76px)) !important;
        z-index: 1001 !important;
    }
}

/* Afripay AI Assistant — modern chat panel */
.afripay-ai-assistant {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    z-index: 2200;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.afripay-ai-assistant__launcher {
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    min-height: 46px;
    padding: 0 18px 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .22), 0 0 0 1px rgba(255, 255, 255, .06) inset;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.01em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.afripay-ai-assistant__launcher:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .28);
}

.afripay-ai-assistant__spark {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 13px;
    line-height: 1;
}

.afripay-ai-assistant__panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(400px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 96px));
    max-height: min(560px, calc(100vh - 96px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .18), 0 0 0 1px rgba(255, 255, 255, .8) inset;
    color: #0f172a;
    transition: max-height .28s ease, height .28s ease, box-shadow .28s ease;
}

.afripay-ai-assistant.is-chatting .afripay-ai-assistant__panel {
    height: min(620px, calc(100vh - 96px));
    max-height: min(620px, calc(100vh - 96px));
    box-shadow: 0 28px 72px rgba(15, 23, 42, .22);
}

.afripay-ai-assistant__panel[hidden] {
    display: none !important;
}

.afripay-ai-assistant__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
}

.afripay-ai-assistant__head-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.afripay-ai-assistant__head-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    font-size: 16px;
    line-height: 1;
}

.afripay-ai-assistant__head p {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.afripay-ai-assistant__head span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(226, 232, 240, .82);
    font-weight: 500;
}

.afripay-ai-assistant__head-tagline {
    display: block;
}

.afripay-ai-assistant__head-byline {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: .04em;
    color: rgba(226, 232, 240, .58);
}

.afripay-ai-assistant__close {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}

.afripay-ai-assistant__close:hover {
    background: rgba(255, 255, 255, .16);
}

.afripay-ai-assistant__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.afripay-ai-assistant__brief {
    flex: 0 0 auto;
    padding: 14px 14px 0;
    transition: max-height .28s ease, opacity .22s ease, padding .28s ease;
}

.afripay-ai-assistant.is-chatting .afripay-ai-assistant__brief {
    max-height: 0;
    padding: 0 14px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.afripay-ai-assistant__brief-card {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.afripay-ai-assistant__brief-title {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}

.afripay-ai-assistant__brief-summary,
.afripay-ai-assistant__brief-details {
    display: grid;
    gap: 6px;
    color: #334155;
}

.afripay-ai-assistant__brief-summary strong,
.afripay-ai-assistant__brief-details strong {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.afripay-ai-assistant__brief-summary span,
.afripay-ai-assistant__brief-details span {
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.afripay-ai-insight__greeting-line {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: #475569;
}

.afripay-ai-insight__scores {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
    overflow-wrap: anywhere;
}

.afripay-ai-assistant__brief-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    max-height: 180px;
    overflow: auto;
}

.afripay-ai-assistant__brief-toggle {
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.afripay-ai-assistant__brief-toggle:hover {
    text-decoration: underline;
}

.afripay-ai-assistant__messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 14px 14px 8px;
    display: grid;
    align-content: start;
    gap: 12px;
}

.afripay-ai-assistant:not(.is-chatting) .afripay-ai-assistant__messages {
    display: none;
}

.afripay-ai-assistant__prompts-wrap {
    flex: 0 0 auto;
    padding: 12px 14px 14px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.afripay-ai-assistant.is-chatting .afripay-ai-assistant__prompts-wrap {
    display: none;
}

.afripay-ai-assistant__prompts-label {
    margin: 0 0 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.afripay-ai-assistant__prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.afripay-ai-assistant__prompts button {
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.afripay-ai-assistant__prompts button:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.afripay-ai-msg {
    display: grid;
    gap: 6px;
}

.afripay-ai-msg__body {
    width: fit-content;
    max-width: 88%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border-radius: 16px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.afripay-ai-msg--assistant .afripay-ai-msg__body {
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 6px;
}

.afripay-ai-msg--user {
    justify-items: end;
}

.afripay-ai-msg--user .afripay-ai-msg__body {
    background: linear-gradient(135deg, #1e3a5f, #4f46e5);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.afripay-ai-msg.is-typing .afripay-ai-msg__body {
    color: #64748b;
    font-style: italic;
}

.afripay-ai-msg__meta {
    display: grid;
    gap: 8px;
    justify-items: start;
    padding-left: 2px;
}

.afripay-ai-confidence {
    display: inline-flex;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
}

.afripay-ai-confidence--high { background: #ecfdf5; color: #047857; }
.afripay-ai-confidence--medium { background: #fffbeb; color: #92400e; }
.afripay-ai-confidence--low { background: #fef2f2; color: #b91c1c; }

.afripay-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.afripay-ai-action,
.afripay-ai-ticket {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.afripay-ai-action {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.afripay-ai-ticket {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.afripay-ai-assistant__footer {
    flex: 0 0 auto;
    padding: 12px 14px 14px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.afripay-ai-assistant__form {
    margin: 0;
}

.afripay-ai-assistant__composer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.afripay-ai-assistant__composer:focus-within {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
    background: #fff;
}

.afripay-ai-assistant__composer textarea {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 22px;
    max-height: 120px;
    border: 0;
    background: transparent;
    padding: 8px 0;
    resize: none;
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    color: #0f172a;
}

.afripay-ai-assistant__composer textarea:focus {
    outline: none;
}

.afripay-ai-assistant__send {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a5f, #4f46e5);
    color: #fff;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}

.afripay-ai-assistant__send:hover {
    opacity: .92;
    transform: scale(1.03);
}

.afripay-ai-assistant__note {
    margin: 10px 0 0;
    padding: 0 2px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.afripay-ai-assistant.is-chatting .afripay-ai-assistant__note {
    display: none;
}

/* Brief detail blocks (expandable) */
.afripay-ai-focus {
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.afripay-ai-focus strong {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}

.afripay-ai-focus__subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #475569;
}

.afripay-ai-focus__list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.afripay-ai-focus__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    line-height: 1.35;
}

.afripay-ai-focus__step {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 10px;
    font-weight: 800;
}

.afripay-ai-focus__item a {
    color: #4338ca;
    font-weight: 600;
    text-decoration: none;
}

.afripay-ai-focus__item a:hover {
    text-decoration: underline;
}

.afripay-ai-focus__eta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 11px;
    color: #64748b;
}

.afripay-ai-focus__eta strong {
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    color: #0f172a;
}

.afripay-ai-success {
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.afripay-ai-success strong {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.afripay-ai-success__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    font-size: 12px;
    color: #475569;
}

.afripay-ai-success__grid b {
    font-weight: 800;
    color: #0f172a;
}

.afripay-ai-success__tip,
.afripay-ai-insight__page,
.afripay-ai-insight__tip {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
}

.afripay-ai-insight__page strong {
    font-weight: 700;
    color: #0f172a;
}

.afripay-ai-insight__list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.afripay-ai-insight__item {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    line-height: 1.4;
}

.afripay-ai-insight__item--alert { border-left: 3px solid #ef4444; }
.afripay-ai-insight__item--growth { border-left: 3px solid #22c55e; }
.afripay-ai-insight__item--support { border-left: 3px solid #3b82f6; }

.afripay-ai-insight__action {
    font-size: 11px;
    font-weight: 700;
    color: #4338ca;
    text-decoration: none;
    width: fit-content;
}

.afripay-ai-insight__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.afripay-ai-insight__quick a {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    text-decoration: none;
}

@media (max-width: 760px) {
    .afripay-ai-assistant {
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
    }

    .afripay-ai-assistant__launcher {
        min-height: 44px;
        padding: 0 14px 0 12px;
        font-size: 12px;
    }

    .afripay-ai-assistant__panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        height: min(72dvh, calc(100dvh - 24px));
        max-height: min(72dvh, calc(100dvh - 24px));
        border-radius: 18px;
    }

    .afripay-ai-assistant.is-chatting .afripay-ai-assistant__panel {
        height: min(82dvh, calc(100dvh - 24px));
        max-height: min(82dvh, calc(100dvh - 24px));
    }
}

/* Business Journey Engine — platform strip (all seller workspaces) */
.bje-strip {
    margin: 0 0 18px;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.bje-strip__progress {
    height: 4px;
    background: #e2e8f0;
}

.bje-strip__progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #0ea5e9);
    transition: width 0.35s ease;
}

.bje-strip__body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
    gap: 14px 18px;
    align-items: center;
    padding: 14px 16px;
}

.bje-strip__kicker {
    display: block;
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
}

.bje-strip__stage-label {
    display: block;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.2;
}

.bje-strip__focus {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
}

.bje-strip__details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: flex-start;
}

.bje-strip__detail span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.04em;
}

.bje-strip__detail strong,
.bje-strip__detail p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.35;
}

.bje-strip__detail p {
    font-weight: 500;
    color: #475569;
}

.bje-strip__detail--blocker strong {
    color: #b45309;
}

.bje-strip__bsi {
    display: grid;
    justify-items: center;
    min-width: 52px;
    padding: 6px 8px;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    background: #fff;
}

.bje-strip__bsi span {
    font-size: 9px;
    font-weight: 800;
    color: #6366f1;
    text-transform: uppercase;
}

.bje-strip__bsi strong {
    font-size: 18px;
    color: #312e81;
    line-height: 1;
}

.bje-strip__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    min-width: 132px;
}

.bje-strip__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    background: #4f46e5;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    text-align: center;
}

.bje-strip__cta:hover {
    background: #4338ca;
}

.bje-strip__link {
    font-size: 11px;
    font-weight: 700;
    color: #4f46e5 !important;
    text-align: center;
    text-decoration: none !important;
}

.bje-strip__link:hover {
    text-decoration: underline !important;
}

@media (max-width: 900px) {
    .bje-strip__body {
        grid-template-columns: 1fr;
    }

    .bje-strip__actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .bje-strip__cta {
        flex: 1 1 auto;
    }
}

/* Business Success Intelligence — shared component (Sprint 4c+4d) */
.bsi-intel{display:grid;gap:16px;border:1px solid #c7d2fe;border-radius:12px;background:linear-gradient(135deg,#f8fafc 0%,#eef2ff 55%,#fff 100%);padding:clamp(14px,2.4vw,20px)}
.bsi-intel--summary{margin-bottom:12px;padding:12px 14px}
.bsi-intel__head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.bsi-intel__kicker{margin:0 0 4px;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6366f1}
.bsi-intel__primary h3{margin:0;font-size:14px;color:#0f172a}
.bsi-intel__score{margin:6px 0 0;line-height:1}
.bsi-intel__score strong{font-size:clamp(2rem,4vw,2.6rem);color:#312e81;letter-spacing:-.04em}
.bsi-intel__score span{font-size:1.2rem;color:#6366f1;font-weight:800}
.bsi-intel__status{display:block;margin-top:4px;font-style:normal;font-size:12px;color:#475569}
.bsi-intel__supporting{display:grid;grid-template-columns:repeat(3,minmax(88px,1fr));gap:8px;min-width:min(100%,320px)}
.bsi-intel__metric{padding:10px;border:1px solid #e2e8f0;background:#fff;border-radius:8px;text-align:center}
.bsi-intel__metric span{display:block;font-size:10px;font-weight:800;text-transform:uppercase;color:#64748b;letter-spacing:.04em}
.bsi-intel__metric strong{display:block;margin-top:6px;font-size:1.15rem;color:#0f172a}
.bsi-intel__confidence-title{margin:0 0 8px;font-size:13px;font-weight:800;color:#0f172a}
.bsi-intel__reasons{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
.bsi-intel__reason{display:flex;gap:8px;align-items:center;font-size:12px;color:#475569}
.bsi-intel__reason.is-ok{color:#166534}
.bsi-intel__reason.is-warn{color:#9a3412}
.bsi-intel__improve{margin:10px 0 0;font-size:12px;color:#475569;line-height:1.45}
.bsi-intel__journey-lead{margin:0 0 8px;font-size:12px;color:#64748b}
.bsi-intel__journey-progress{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-bottom:10px}
.bsi-intel__journey-progress span{display:block;height:100%;background:linear-gradient(90deg,#4f46e5,#0ea5e9)}
.bsi-intel__steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none}
.bsi-intel__step{padding:8px;border:1px solid #e2e8f0;background:#fff;border-radius:8px;font-size:11px}
.bsi-intel__step.is-done{border-color:#bbf7d0;background:#f0fdf4}
.bsi-intel__step.is-current{border-color:#818cf8;background:#eef2ff}
.bsi-intel__next{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;padding:12px;border:1px solid #dbeafe;background:#eff6ff;border-radius:8px}
.bsi-intel__next span{display:block;font-size:10px;font-weight:800;text-transform:uppercase;color:#1d4ed8}
.bsi-intel__cta{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;background:#4f46e5;color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:800;border-radius:8px}
.bje-ftue__head--compact{margin-top:4px}
@media(max-width:720px){.bsi-intel__supporting,.bsi-intel__reasons,.bsi-intel__steps{grid-template-columns:1fr}.bsi-intel__next{display:grid}}

/* Business Success — My Business OS dashboard variant */
.bsi-intel--dashboard{
  gap:18px;
  border:1px solid rgba(99,102,241,.14);
  border-radius:18px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(99,102,241,.08), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(14,165,233,.06), transparent 50%),
    #fff;
  padding:clamp(18px,2.6vw,26px);
  box-shadow:0 18px 40px rgba(15,23,42,.06), 0 1px 0 rgba(255,255,255,.8) inset;
}
.bsi-intel--dashboard .bsi-intel__kicker{display:none}
.bsi-dash__head{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}
.bsi-dash__label{margin:0 0 8px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.bsi-dash__ring{--bsi-score:0;width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#6366f1 calc(var(--bsi-score) * 1%), #e2e8f0 0);position:relative;box-shadow:0 8px 24px rgba(79,70,229,.18)}
.bsi-dash__ring::after{content:"";position:absolute;inset:9px;border-radius:50%;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.bsi-dash__ring strong{position:relative;z-index:1;font-size:1.72rem;color:#0f172a;line-height:1;letter-spacing:-.04em}
.bsi-dash__ring strong span{font-size:.95rem;color:#64748b}
.bsi-dash__status{display:block;margin-top:6px;font-style:normal;font-size:12px;font-weight:600;color:#475569}
.bsi-dash__metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:1;min-width:min(100%,360px)}
.bsi-dash__metric{padding:12px 14px;border:1px solid rgba(226,232,240,.95);border-radius:12px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 1px 0 rgba(255,255,255,.9) inset}
.bsi-dash__metric span{display:block;font-size:10px;font-weight:800;text-transform:uppercase;color:#64748b;letter-spacing:.04em}
.bsi-dash__metric strong{display:block;margin-top:5px;font-size:1.15rem;color:#0f172a;letter-spacing:-.02em}

/* Stage + journey rail */
.bsi-dash__stage--premium{
  padding:16px 16px 14px;
  border:1px solid rgba(226,232,240,.95);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(248,250,252,.95),#fff);
}
.bsi-dash__stage-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}
.bsi-dash__stage-badge{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  background:linear-gradient(135deg,#eef2ff,#e0e7ff);
  border:1px solid rgba(99,102,241,.18);
  color:#4338ca;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.bsi-dash__stage-title{margin:8px 0 0;font-size:1.05rem;font-weight:800;color:#0f172a;line-height:1.25;letter-spacing:-.02em}
.bsi-dash__stage-percent{text-align:right;flex-shrink:0}
.bsi-dash__stage-percent strong{display:block;font-size:1.35rem;line-height:1;color:#4f46e5;letter-spacing:-.03em}
.bsi-dash__stage-percent span{display:block;margin-top:3px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#64748b}
.bsi-dash__journey-rail{
  display:grid;
  grid-template-columns:repeat(9,minmax(0,1fr));
  gap:6px;
  margin:0 0 12px;
  padding:0;
  list-style:none;
}
.bsi-dash__journey-dot{
  position:relative;
  display:grid;
  place-items:center;
  min-height:34px;
  border-radius:10px;
  border:1px solid #e2e8f0;
  background:#fff;
  color:#94a3b8;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bsi-dash__journey-dot-num{font-size:11px;font-weight:800;line-height:1}
.bsi-dash__journey-dot.is-done{
  border-color:#86efac;
  background:linear-gradient(180deg,#f0fdf4,#ecfdf5);
  color:#15803d;
  box-shadow:0 4px 12px rgba(34,197,94,.12);
}
.bsi-dash__journey-dot.is-current{
  border-color:#818cf8;
  background:linear-gradient(180deg,#eef2ff,#e0e7ff);
  color:#4338ca;
  box-shadow:0 8px 18px rgba(99,102,241,.22);
  transform:translateY(-1px) scale(1.04);
}
.bsi-dash__journey-dot.is-current::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:12px;
  border:2px solid rgba(99,102,241,.28);
  pointer-events:none;
}
.bsi-dash__progress{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.bsi-dash__progress--premium{height:10px;background:linear-gradient(90deg,#e2e8f0,#edf2f7);box-shadow:inset 0 1px 2px rgba(15,23,42,.06)}
.bsi-dash__progress span,.bsi-dash__progress--premium span{
  display:block;height:100%;
  background:linear-gradient(90deg,#312e81,#6366f1 45%,#0ea5e9);
  border-radius:999px;
  box-shadow:0 0 16px rgba(99,102,241,.35);
}

/* Journey Confidence panel */
.bsi-dash__confidence--premium{
  padding:16px;
  border:1px solid rgba(251,191,36,.28);
  border-radius:16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(251,191,36,.12), transparent 55%),
    linear-gradient(180deg,#fffbeb,#fff);
  box-shadow:0 10px 28px rgba(245,158,11,.08);
}
.bsi-dash__confidence--complete{
  border-color:rgba(34,197,94,.25);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(34,197,94,.1), transparent 55%),
    linear-gradient(180deg,#f0fdf4,#fff);
  box-shadow:0 10px 28px rgba(34,197,94,.08);
}
.bsi-dash__confidence-head{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.bsi-dash__confidence-ring{
  --bsi-conf:0;
  flex-shrink:0;
  width:64px;height:64px;border-radius:50%;
  display:grid;place-items:center;
  background:conic-gradient(#f59e0b calc(var(--bsi-conf) * 1%), #fde68a 0);
  position:relative;
  box-shadow:0 6px 18px rgba(245,158,11,.22);
}
.bsi-dash__confidence-ring--high{background:conic-gradient(#22c55e calc(var(--bsi-conf) * 1%), #bbf7d0 0);box-shadow:0 6px 18px rgba(34,197,94,.18)}
.bsi-dash__confidence-ring::after{content:"";position:absolute;inset:7px;border-radius:50%;background:#fff}
.bsi-dash__confidence-ring strong{position:relative;z-index:1;font-size:1.05rem;color:#92400e;line-height:1;letter-spacing:-.03em}
.bsi-dash__confidence-ring strong span{font-size:.72rem}
.bsi-dash__confidence-ring--high strong{color:#166534}
.bsi-dash__confidence-kicker{margin:0 0 4px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#b45309}
.bsi-dash__confidence--complete .bsi-dash__confidence-kicker{color:#15803d}
.bsi-dash__confidence-title{margin:0;font-size:1rem;font-weight:800;color:#0f172a;line-height:1.3;letter-spacing:-.02em}
.bsi-dash__confidence-status{
  display:inline-flex;
  margin-left:6px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(15,23,42,.06);
  font-size:11px;
  font-weight:700;
  color:#475569;
  vertical-align:middle;
}
.bsi-dash__gaps{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.bsi-dash__gap-item{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  align-items:flex-start;
  padding:11px 12px;
  border:1px solid rgba(254,215,170,.85);
  border-radius:12px;
  background:rgba(255,255,255,.82);
}
.bsi-dash__gap-icon{
  width:22px;height:22px;border-radius:8px;
  display:grid;place-items:center;
  background:linear-gradient(180deg,#fb923c,#f97316);
  color:#fff;font-size:12px;font-weight:900;line-height:1;
  box-shadow:0 4px 10px rgba(249,115,22,.28);
}
.bsi-dash__gap-text strong{display:block;font-size:12px;font-weight:800;color:#9a3412;line-height:1.25}
.bsi-dash__gap-text span{display:block;margin-top:3px;font-size:12px;line-height:1.45;color:#7c2d12}
.bsi-dash__signals{margin-top:12px;border-top:1px dashed rgba(245,158,11,.25);padding-top:10px;font-size:12px;color:#475569}
.bsi-dash__signals summary{
  cursor:pointer;
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  color:#4338ca;
}
.bsi-dash__signals summary::-webkit-details-marker{display:none}
.bsi-dash__signals-icon{
  width:20px;height:20px;border-radius:999px;
  display:grid;place-items:center;
  background:#dcfce7;color:#15803d;font-size:11px;font-weight:900;
}
.bsi-dash__signals summary em{
  font-style:normal;
  min-width:20px;height:20px;padding:0 6px;
  border-radius:999px;
  display:inline-grid;place-items:center;
  background:#eef2ff;color:#4338ca;font-size:11px;font-weight:800;
}
.bsi-dash__signals ul{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.bsi-dash__signals li{
  display:flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:10px;
  background:rgba(240,253,244,.85);
  border:1px solid #bbf7d0;
  color:#166534;font-size:12px;font-weight:600;
}
.bsi-dash__signals li span{
  width:18px;height:18px;border-radius:999px;
  display:grid;place-items:center;
  background:#22c55e;color:#fff;font-size:10px;font-weight:900;
}
.bsi-dash__tip{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  align-items:flex-start;
  margin-top:12px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(99,102,241,.16);
  background:linear-gradient(135deg,rgba(238,242,255,.95),rgba(255,255,255,.95));
}
.bsi-dash__tip-icon{font-size:1rem;line-height:1;margin-top:1px}
.bsi-dash__tip p{margin:0;font-size:12px;line-height:1.55;color:#334155;font-weight:600}

.bsi-dash__footer{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding-top:14px;border-top:1px solid rgba(226,232,240,.95);margin-top:2px;
}
.bsi-dash__next-label{display:block;font-size:10px;font-weight:800;text-transform:uppercase;color:#64748b;letter-spacing:.06em}
.bsi-dash__footer strong{display:block;margin-top:4px;font-size:14px;color:#0f172a;letter-spacing:-.01em}
.bsi-dash__cta{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:42px;padding:0 18px;
  background:linear-gradient(135deg,#4f46e5,#6366f1);
  color:#fff!important;text-decoration:none!important;
  font-size:12px;font-weight:800;border-radius:12px;white-space:nowrap;
  box-shadow:0 10px 24px rgba(79,70,229,.28);
  transition:transform .16s ease, box-shadow .16s ease;
}
.bsi-dash__cta:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(79,70,229,.34)}
.bsi-dash__cta-arrow{font-size:14px;line-height:1;opacity:.9}

@media(max-width:720px){
  .bsi-dash__head{display:grid}
  .bsi-dash__metrics{grid-template-columns:1fr}
  .bsi-dash__footer{display:grid}
  .bsi-dash__stage-top{display:grid}
  .bsi-dash__stage-percent{text-align:left}
  .bsi-dash__journey-rail{gap:4px}
  .bsi-dash__journey-dot{min-height:28px;border-radius:8px}
  .bsi-dash__journey-dot-num{font-size:10px}
  .bsi-dash__cta{width:100%}
}
@media(max-width:520px){
  .bsi-dash__journey-rail{grid-template-columns:repeat(5,minmax(0,1fr));row-gap:6px}
}

/* BSI 2.0 — commercial intelligence blocks (embedded in existing card) */
.bsi-dash__commercial{
  display:grid;gap:12px;
  margin-top:14px;padding-top:14px;
  border-top:1px dashed rgba(199,210,254,.85);
}
.bsi-dash__commercial-block{
  padding:12px 14px;border-radius:12px;
  border:1px solid rgba(226,232,240,.95);
  background:rgba(255,255,255,.88);
}
.bsi-dash__commercial-kicker{
  margin:0 0 6px;font-size:10px;font-weight:800;
  text-transform:uppercase;letter-spacing:.06em;color:#64748b;
}
.bsi-dash__commercial-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.bsi-dash__commercial-score{
  font-size:1.35rem;font-weight:800;color:#0f766e;line-height:1;flex-shrink:0;
}
.bsi-dash__commercial-sub{display:block;margin-top:4px;font-size:11px;color:#64748b;font-weight:600}
.bsi-dash__commercial-body{margin:8px 0 0;font-size:12px;line-height:1.5;color:#334155}
.bsi-dash__commercial-meta{
  display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;
  margin-top:10px;font-size:12px;color:#475569;
}
.bsi-dash__commercial-meta a{font-weight:700;color:#4f46e5!important;text-decoration:none!important}
.bsi-dash__commercial-reasons-title{margin:10px 0 6px;font-size:11px;font-weight:800;color:#b45309}
.bsi-dash__signal-list{margin:0;padding:0;list-style:none;display:grid;gap:5px}
.bsi-dash__signal-list li{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}
.bsi-dash__signal-list--ok li{color:#166534}
.bsi-dash__signal-list--warn li{color:#9a3412}
.bsi-dash__peer{
  margin:0;padding:10px 12px;border-radius:10px;
  background:linear-gradient(90deg,#eef2ff,#f8fafc);
  border:1px solid #c7d2fe;font-size:12px;line-height:1.45;color:#3730a3;
}
.bsi-dash__timeline-deltas{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.bsi-dash__delta{
  padding:5px 10px;border-radius:999px;font-size:11px;font-weight:800;
  border:1px solid #e2e8f0;background:#f8fafc;color:#475569;
}
.bsi-dash__delta.is-up{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.bsi-dash__delta.is-down{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.bsi-dash__membership{border-color:#99f6e4;background:linear-gradient(180deg,#f0fdfa,#fff)}
.bsi-dash__growth{border-color:#fde68a;background:linear-gradient(180deg,#fffbeb,#fff)}
.bsi-dash__revenue{border-color:#c7d2fe;background:linear-gradient(180deg,#eef2ff,#fff)}
