* {
    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;
}

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

.dash-sidebar {
    background: #060f2b;
    border-right: 1px solid #142140;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.dash-sidebar-top {
    position: sticky;
    top: 0;
    z-index: 6;
    background: #060f2b;
    padding: 6px 0 14px;
    margin: -6px 0 4px;
    flex-shrink: 0;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 14px;
    font-size: 15px;
    font-weight: 800;
    color: #5de0bf;
    margin: 0;
}
.dash-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #68e6c7;
    font-size: 18px;
    line-height: 1;
}

/* ── 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) {
    /* Fin topbar: row 1 = hamburger + currency + actions; row 2 = pills (full width) */
    .dash-main .dash-topbar.dash-topbar--fin,
    .dash-topbar.dash-topbar--fin {
        flex-wrap: wrap;
        align-items: center;
        padding-bottom: 0;
        row-gap: 0;
    }
    .dash-topbar--fin .dash-nav-hamburger { order: 0; flex-shrink: 0; }
    .dash-topbar--fin .dash-topbar-fin-cur  { order: 1; flex-shrink: 0; }
    .dash-topbar--fin .topbar-actions       { order: 2; margin-left: auto; flex-shrink: 0; }
    /* Pills drop to second row, full width, scrollable */
    .dash-topbar--fin .dash-topbar-fin-pills {
        order: 10;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 8px 2px 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        align-items: stretch;
    }
    .dash-topbar--fin .dash-topbar-fin-pills::-webkit-scrollbar { display: none; }
    /* Each pill: label on top, figure below */
    .dash-topbar--fin .dash-topbar-fin-pill {
        flex-shrink: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 6px 12px;
    }
    .dash-topbar--fin .dtfp-label {
        display: block;
        font-size: 9px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.45);
        white-space: nowrap;
    }
    .dash-topbar--fin .dtfp-value {
        font-size: 12px;
        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;
    padding: 6px 14px;
    margin-right: auto;
    margin-left: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    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-value {
    font-size: 13px;
    font-weight: 700;
    color: #e2f7f1;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

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

.dash-topbar-currency-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
    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-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;
        padding: 5px 10px;
        gap: 6px;
    }
    .dash-topbar-bal-label { display: none; }
}

.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: 1;
    min-height: 0;
    overflow-y: auto;
}

.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: 700;
    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;
}

.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 */
/* First section label after standalone Dashboard */
.dash-menu > .dash-menu-group:first-of-type .dash-menu-group-label {
    margin-top: 4px;
}

@media (min-width: 1181px) {
    .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;
}

/* Default landing link — not under Personal / Business / etc. */
.dash-menu-home {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #1a2d57;
}

.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-icon {
    width: 14px;
    color: #5ddbc0;
    font-size: 11px;
    text-align: center;
}

.dash-menu a:hover,
.dash-menu a.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 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: 16px 18px 22px;
    min-width: 0;
    max-width: 100%;
    min-height: 100vh;
    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;
}

.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);
}

.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: 24;
    background: rgba(5, 11, 31, 0.96);
    backdrop-filter: blur(8px);
    padding: 8px 0 10px;
    border-bottom: 1px solid #142140;
}

.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: 999px;
    padding: 5px 10px 5px 6px;
    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: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 9px;
    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;
}

.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;
}

.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;
    }
    .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 {
        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: 8px;
    }
    .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: 6px;
    }
    .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,
    .dash-main .topbar-user-caret {
        display: none;
    }
    .dash-main .topbar-user-trigger {
        width: auto;
        justify-content: center;
        padding: 6px;
    }
    .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: 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;
    }
}

/* —— 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;
    margin: -16px -18px 14px;
    padding: 10px 18px 12px;
    position: sticky;
    top: 0;
    z-index: 24;
    background: #060f2b;
    border-bottom: 1px solid #142140;
    box-shadow: none;
    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: #9eb0d4;
}

.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;
}

.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;
}

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

/* 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;
}

/* 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: pointer;
}
.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 (existing) extended + ≤480px + ≤360px
   ══════════════════════════════════════════════════════════════════════ */

/* ── 760px: sidebar becomes off-canvas drawer ───────────────────────── */
@media (max-width: 760px) {

  /* Shell: single column, sidebar overlays */
  .dash-shell {
    display: block;
    position: relative;
  }

  /* Sidebar: fixed off-canvas, slides in */
  .dash-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: min(270px, 88vsidebar-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;
  }

  /* Hamburger: always visible */
  .dash-nav-hamburger {
    display: inline-flex   Breakpoints: ≤760px (existinght on mobile */
  .dash-topbar {
    padding: 0 12px;
    min-height: 52px;
    position: stic
/* ── 760px: sidebar becomes off-canvas drawer ───────────────────────── */
@media (max-width: 760px) {

  /* Shell: single column, sidebar overlays */e { font-size: 1.2rem; margin-bottom: 14px; }
  .dash-breadcrumb { font-size: 0.75rem; }

  /* Dashboard stat cards: 2-col */
  .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     border: 0; padding: 0; marginx 12px; font-size: 0.8125rem; }

  /* Marketplace listing: 2-col on 760 */
  .dash-mkt-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }

  /* Quick-action strip */
  .dash-q    mictions { 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-wi  .dash-stat-card { padding: 14px 12p 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: 
  /* Marketplace listing: 2-col on 760 */
  .dash-mkt-grid { grid-template-coperty 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  .dash-form: 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; }

  /* Card (payment card) */
  .afri-card-vis { border-radius: 14px; padding: 18px 16px; }
  .afri-card-vis__number { font-si  .dtfp-value { font-size: 11px; }

  /* Sta 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 (deal / proper  .dash-mkt-layout { flex-direction: column !important; }
  .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-  .wallet-bal-card__amount { font-p: 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 / dialo  .txn-row { padding: 10px  .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:  .chat-input-row -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; g
  /* KYC steps */
  .kyc-  .wallet-bal-card__amount { font-p: 10px* Profile / settings */
  .profile-avatar-wrap { flex-direction: column; gap: 10px; }
  .profile-section-grid { grid-template-columns: 1fr !important; }
  .settings-card { padding  .notif-item__icon { width: 32px; heightl 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; }
}
