:root {
    --ink: #111827;
    --muted: #6b7280;
    --line: #d7dde6;
    --paper: #f6f8fb;
    --panel: #ffffff;
    --brand: #0e7c66;
    --brand-deep: #075c4a;
    --gold: #c58a1a;
    --danger: #b42318;
    --warning: #b54708;
    --ok: #027a48;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

a {
    color: var(--brand-deep);
    text-decoration: none;
}

.shell {
    min-height: 100vh;
}

.topbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 14px clamp(16px, 4vw, 42px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    align-items: center;
    background: var(--brand);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    letter-spacing: 0;
    width: 50px;
}

.brand-title {
    display: flex;
    flex-direction: column;
}

.brand-title strong {
    font-size: 16px;
}

.brand-title span {
    color: var(--muted);
    font-size: 12px;
}

.nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.nav a,
.nav button,
.button {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    min-height: 38px;
    padding: 8px 12px;
}

.button.primary,
.nav button.primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.button.danger {
    border-color: #fecdca;
    color: var(--danger);
}

.main {
    margin: 0 auto;
    max-width: 1180px;
    padding: 26px clamp(16px, 4vw, 42px) 48px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid.two {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.hero {
    background: linear-gradient(135deg, #0e7c66 0%, #0f4c81 60%, #1f2937 100%);
    border-radius: 8px;
    color: #ffffff;
    overflow: hidden;
    padding: clamp(24px, 5vw, 48px);
}

.hero h1 {
    font-size: 56px;
    line-height: 1;
    margin: 0 0 14px;
}

.hero p {
    color: rgba(255, 255, 255, 0.84);
    max-width: 680px;
}

.stat {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.stat span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.stat strong {
    display: block;
    font-size: 26px;
    margin-top: 8px;
}

.balance {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    margin: 12px 0;
}

.muted {
    color: var(--muted);
}

.status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 9px;
    text-transform: uppercase;
}

.status.active,
.status.completed,
.status.passed,
.status.approve {
    background: #ecfdf3;
    color: var(--ok);
}

.status.frozen,
.status.held,
.status.step_up,
.status.pending {
    background: #fffaeb;
    color: var(--warning);
}

.status.closed,
.status.failed,
.status.declined,
.status.decline {
    background: #fef3f2;
    color: var(--danger);
}

form {
    margin: 0;
}

label {
    color: #374151;
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

input,
select,
textarea {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    margin-bottom: 12px;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    min-height: 84px;
    resize: vertical;
}

.form-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 11px 8px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.flash {
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 12px 14px;
}

.flash.success {
    background: #ecfdf3;
    color: var(--ok);
}

.flash.error {
    background: #fef3f2;
    color: var(--danger);
}

.card-visual {
    background: linear-gradient(135deg, #101828 0%, #0e7c66 65%, #c58a1a 100%);
    border-radius: 8px;
    color: #ffffff;
    min-height: 190px;
    padding: 20px;
}

.card-visual .digits {
    font-size: 22px;
    letter-spacing: 0;
    margin-top: 42px;
}

.split-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-form {
    display: inline;
}

.inline-form button {
    margin: 0;
}

.setup {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: 24px;
}

.setup .panel {
    margin: auto;
    max-width: 720px;
}

@media (max-width: 840px) {
    .grid.two,
    .grid.three,
    .form-row {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        justify-content: flex-start;
    }
}


.public-hero {
    align-items: stretch;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 440px);
    margin-bottom: 18px;
}

.public-hero-copy {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
    padding: clamp(24px, 5vw, 54px);
}

.eyebrow {
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.public-hero h1 {
    font-size: 82px;
    line-height: 0.94;
    margin: 16px 0;
    max-width: 720px;
}

.public-hero p {
    color: #3f4a5a;
    font-size: 18px;
    max-width: 680px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hero-proof span {
    background: #ecfdf3;
    border: 1px solid #b7ead3;
    border-radius: 999px;
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 10px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.auth-switch {
    background: #eef2f6;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
    padding: 4px;
}

.auth-tab {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #344054;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    min-height: 42px;
    padding: 10px;
}

.auth-tab.active {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.13);
    color: var(--brand-deep);
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.auth-panel h2 {
    font-size: 22px;
    margin-top: 0;
}

.trust-strip {
    border-radius: 8px;
    margin: 18px 0;
    overflow: hidden;
}

.trust-strip img {
    aspect-ratio: 16 / 6;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.trust-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

.trust-icon {
    align-items: center;
    background: #0e7c66;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 42px;
}

.trust-card h2 {
    font-size: 22px;
    margin: 18px 0 8px;
}

.trust-card p {
    color: #4b5563;
    margin-bottom: 0;
}



.language-switcher {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    gap: 2px;
    padding: 3px;
}

.lang-link {
    border-radius: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    min-height: 30px;
    padding: 9px 10px;
}

.lang-link.active {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
    color: var(--brand-deep);
}

.setup-language-switcher {
    margin: -6px 0 18px;
}

.card-panel {
    overflow: hidden;
}

.card-visual-wide {
    display: grid;
    min-height: 214px;
}

.card-detail-dialog {
    max-width: 820px;
}

.secure-card-preview {
    background: linear-gradient(135deg, #071b2d 0%, #0e7c66 58%, #c58a1a 100%);
    border-radius: 8px;
    color: #ffffff;
    display: grid;
    gap: 18px;
    margin: 18px 0;
    min-height: 220px;
    padding: 24px;
}

.secure-card-preview .digits {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 0;
}

.card-detail-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.detail-box {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 14px;
}

.detail-box span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-box strong {
    font-size: 18px;
    overflow-wrap: anywhere;
}
body.modal-open {
    overflow: hidden;
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal {
    align-items: center;
    display: grid;
    inset: 0;
    justify-items: center;
    padding: 18px;
    position: fixed;
    z-index: 50;
}

.contact-backdrop {
    background: rgba(15, 23, 42, 0.56);
    inset: 0;
    position: absolute;
}

.contact-dialog {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.25);
    max-height: calc(100vh - 36px);
    max-width: 760px;
    overflow: auto;
    padding: clamp(20px, 4vw, 30px);
    position: relative;
    width: min(100%, 760px);
}

.contact-dialog h1 {
    font-size: 42px;
    line-height: 1;
    margin: 10px 42px 10px 0;
}

.contact-close {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
}

.contact-form {
    margin-top: 18px;
}

.form-note {
    color: var(--muted);
    font-size: 13px;
    margin: -4px 0 14px;
}

.hp-field {
    height: 1px !important;
    left: -10000px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: auto !important;
    width: 1px !important;
}

.messages-layout {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}

.message-list h1,
.message-detail h1 {
    margin-top: 0;
}

.message-row {
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    gap: 3px;
    padding: 12px;
}

.message-row + .message-row {
    margin-top: 8px;
}

.message-row span,
.message-row small {
    color: var(--muted);
}

.message-row.active,
.message-row:hover {
    background: #f8fafc;
    border-color: var(--line);
}

.message-body {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    line-height: 1.6;
    margin: 18px 0;
    padding: 16px;
    white-space: normal;
}

.file-grid {
    display: grid;
    gap: 10px;
}

.file-pill {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    gap: 4px;
    padding: 12px;
}

.file-pill span {
    color: var(--muted);
    font-size: 13px;
}

.private-panel {
    margin: 54px auto;
    max-width: 720px;
    padding: clamp(22px, 4vw, 34px);
}

.private-panel h1 {
    font-size: 46px;
    line-height: 1;
    margin: 10px 0 12px;
}

@media (max-width: 920px) {
    .public-hero,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .public-hero-copy {
        min-height: auto;
    }

    .trust-strip img {
        aspect-ratio: 4 / 3;
    }
}

/* Payment rails */
.rails-card-spend form,
.rails-payment-links form {
    display: grid;
    gap: 10px;
}

.provider-note {
    background: #eff8ff;
    border: 1px solid #b9e6fe;
    border-left: 4px solid #1570ef;
    border-radius: 8px;
    color: #1849a9;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 14px;
    padding: 12px;
}

.rail-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.rail-list h3 {
    font-size: 15px;
    margin: 0;
    text-transform: uppercase;
}

.rail-row {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
}

.rail-row p {
    margin: 6px 0 0;
}

.rail-row input[readonly] {
    background: #f8fafc;
    grid-column: 1 / -1;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rail-row.compact {
    grid-template-columns: minmax(0, 1.2fr) minmax(160px, auto);
}

.rail-row-actions {
    align-items: flex-end;
    display: grid;
    gap: 6px;
    justify-items: end;
}

.rail-url {
    color: var(--muted);
    display: block;
    font-size: 13px;
    margin-top: 4px;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.status.open,
.status.paid,
.status.approved {
    background: #ecfdf3;
    color: var(--ok);
}

.status.cancelled,
.status.expired {
    background: #fef3f2;
    color: var(--danger);
}

.checkout-main {
    display: grid;
    justify-items: center;
}

.checkout-panel {
    max-width: 760px;
    width: 100%;
}

.checkout-amount {
    color: var(--ink);
    font-size: clamp(42px, 8vw, 68px);
    font-weight: 900;
    line-height: 1;
    margin: 22px 0;
    overflow-wrap: anywhere;
}


.checkout-launch {
    margin-top: 16px;
}

.checkout-pay-form {
    display: grid;
    gap: 12px;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 280ms ease, opacity 220ms ease, transform 220ms ease, margin-top 220ms ease;
}

.checkout-pay-form.is-open {
    margin-top: 18px;
    max-height: 980px;
    opacity: 1;
    transform: translateY(0);
}

.checkout-suggested {
    color: var(--muted);
    margin: -12px 0 16px;
}

.checkout-amount-field {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    max-width: 380px;
    overflow: hidden;
}

.checkout-amount-field span {
    background: #f8fafc;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-weight: 800;
    height: 100%;
    padding: 14px 16px;
}

.checkout-amount-field input {
    border: 0;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    min-height: 52px;
}

.demo-card-fields {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

/* Responsive hardening */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
canvas {
    max-width: 100%;
}

.brand-title,
.nav,
.panel,
.stat,
.auth-card,
.trust-card,
.contact-dialog,
.detail-box,
.file-pill,
td,
th {
    min-width: 0;
}

.nav a,
.nav button,
.button,
.lang-link,
.auth-tab {
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
}

.card-visual,
.secure-card-preview {
    width: 100%;
}

.card-visual .digits,
.secure-card-preview .digits,
.balance {
    overflow-wrap: anywhere;
}

@media (max-width: 1060px) {
    .grid.two,
    .public-hero,
    .trust-grid,
    .messages-layout {
        grid-template-columns: 1fr;
    }

    .grid.two > aside.grid {
        order: -1;
    }

    .card-panel {
        order: -1;
    }
}

@media (max-width: 760px) {
    .topbar {
        align-items: stretch;
        gap: 12px;
        padding: 12px 14px;
    }

    .brand {
        width: 100%;
    }

    .nav {
        justify-content: flex-start;
        width: 100%;
    }

    .language-switcher {
        display: grid;
        flex: 1 1 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
    }

    .nav > a,
    .nav > button,
    .inline-form,
    .inline-form button {
        flex: 1 1 auto;
    }

    .main {
        padding: 16px 12px 36px;
    }

    .panel,
    .auth-card,
    .trust-card {
        padding: 16px;
    }

    .public-hero-copy {
        min-height: auto;
        padding: 24px;
    }

    .public-hero h1 {
        font-size: 42px;
        line-height: 1.04;
    }

    .public-hero p {
        font-size: 16px;
    }

    .hero h1,
    .balance,
    .private-panel h1 {
        font-size: 36px;
    }

    .grid.three {
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th,
    td {
        padding: 10px 8px;
    }

    .card-detail-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .secure-card-preview .digits {
        font-size: 26px;
    }

    .contact-dialog h1 {
        font-size: 30px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 14px;
    }

    .brand-mark {
        height: 34px;
        width: 48px;
    }

    .brand-title strong {
        font-size: 15px;
    }

    .brand-title span {
        font-size: 11px;
    }

    .nav {
        gap: 6px;
    }

    .lang-link {
        min-height: 38px;
        padding: 10px 6px;
    }

    .nav a,
    .nav button,
    .button {
        min-height: 40px;
        padding: 9px 10px;
    }

    .public-hero,
    .grid {
        gap: 12px;
    }

    .public-hero-copy {
        padding: 20px;
    }

    .public-hero h1 {
        font-size: 36px;
    }

    .hero-proof span {
        flex: 1 1 100%;
        justify-content: center;
    }

    .auth-switch {
        grid-template-columns: 1fr;
    }

    .card-visual {
        min-height: 178px;
        padding: 18px;
    }

    .card-visual .digits {
        font-size: 19px;
        margin-top: 26px;
    }

    .card-visual-wide {
        min-height: 190px;
    }

    .secure-card-preview {
        gap: 12px;
        min-height: 180px;
        padding: 18px;
    }

    .secure-card-preview .digits {
        font-size: 22px;
    }

    .contact-modal {
        align-items: end;
        padding: 0;
    }

    .contact-dialog {
        border-radius: 8px 8px 0 0;
        max-height: 92vh;
        width: 100%;
    }

    .detail-box strong {
        font-size: 16px;
    }

    .trust-strip img {
        aspect-ratio: 1 / 1;
    }
}

.limit-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    margin-bottom: 10px;
}

.limit-grid label {
    font-size: 12px;
    margin: 0;
    text-transform: uppercase;
}

.limit-grid input {
    margin-top: 6px;
}

@media (max-width: 760px) {
    .limit-grid {
        grid-template-columns: 1fr;
    }
}
.status.verified,
.status.enhanced,
.status.business,
.status.approved {
    background: #ecfdf3;
    color: var(--ok);
}

.status.unverified,
.status.basic,
.status.submitted,
.status.restricted {
    background: #fffaeb;
    color: var(--warning);
}

.status.rejected {
    background: #fef3f2;
    color: var(--danger);
}

.verification-panel,
.verification-lock-panel,
.verification-review-panel {
    border-color: #c6d8d3;
}

.verification-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.verification-heading h2,
.verification-lock-panel h2 {
    margin-bottom: 8px;
}

.verification-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.verification-grid .wide-field {
    grid-column: 1 / -1;
}

.verification-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.verification-file-list > strong {
    flex: 1 1 100%;
}

.verification-file-list.compact {
    align-items: stretch;
    flex-direction: column;
    margin: 0;
}

.review-form textarea {
    min-height: 74px;
}

@media (max-width: 760px) {
    .verification-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .verification-grid {
        grid-template-columns: 1fr;
    }
}
/* Customer dashboard UX */
.customer-page {
    scroll-behavior: smooth;
}

.wallet-hero {
    display: grid;
    gap: 12px;
    min-height: 360px;
}

.wallet-topline,
.section-heading-row,
.payment-link-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.icon-button {
    font-size: 13px;
    min-height: 34px;
    padding: 7px 10px;
}

.wallet-actions,
.payment-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.wallet-actions .button,
.payment-link-actions .button {
    flex: 1 1 auto;
}

.ux-accordion {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 14px;
    overflow: hidden;
}

.ux-accordion summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 14px;
}

.ux-accordion summary::-webkit-details-marker {
    display: none;
}

.ux-accordion summary span:first-child {
    align-items: center;
    background: #eef8f5;
    border-radius: 999px;
    color: var(--brand-deep);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    min-width: 26px;
}

.ux-accordion summary::after {
    color: var(--muted);
    content: '+';
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-left: auto;
}

.ux-accordion[open] summary::after {
    content: '-';
}

.wallet-breakdown .grid,
.kyc-step .verification-grid {
    padding: 0 14px 14px;
}

.step-progress {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 14px 0;
}

.step-progress span {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 8px;
    text-align: center;
}

.step-progress span.active {
    background: #ecfdf3;
    border-color: #b7ead3;
    color: var(--brand-deep);
}

.sticky-action-footer {
    background: #ffffff;
    border-top: 1px solid var(--line);
    bottom: 0;
    margin: 16px -18px -18px;
    padding: 14px 18px;
    position: sticky;
}

.file-upload input[type='file'] {
    background: #f8fafc;
}

.file-preview,
.field-error {
    color: var(--danger);
    display: block;
    font-size: 13px;
    margin: -6px 0 10px;
}

.file-preview {
    color: var(--brand-deep);
    overflow-wrap: anywhere;
}

input.has-error {
    border-color: #f97066;
    box-shadow: 0 0 0 3px rgba(249, 112, 102, 0.14);
}

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.activity-item summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    list-style: none;
    padding: 14px;
}

.activity-item summary::-webkit-details-marker {
    display: none;
}

.activity-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.activity-main small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.activity-amount {
    font-weight: 900;
    white-space: nowrap;
}

.activity-amount.credit {
    color: var(--ok);
}

.activity-amount.debit {
    color: var(--ink);
}

.activity-details {
    background: #f8fafc;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    padding: 14px;
}

.activity-details p {
    margin: 0;
    overflow-wrap: anywhere;
}

.empty-state {
    background: #f8fafc;
    border: 1px dashed var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    justify-items: start;
    padding: 18px;
}

.send-panel .amount-input {
    font-size: 24px;
    font-weight: 900;
    min-height: 56px;
}

.payment-link-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.payment-link-card input[readonly] {
    background: #f8fafc;
    font-size: 13px;
    margin: 0;
}

.payment-link-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px 14px;
}

.button.is-copied {
    background: #ecfdf3;
    border-color: #b7ead3;
    color: var(--ok);
}

.mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
    bottom: 0;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.12);
    display: none;
    gap: 4px;
    left: 0;
    padding: 8px;
    position: fixed;
    right: 0;
    z-index: 20;
}

.mobile-bottom-nav a {
    border-radius: 8px;
    color: #344054;
    flex: 1 1 0;
    font-size: 12px;
    font-weight: 800;
    min-height: 42px;
    padding: 10px 4px;
    text-align: center;
}

.mobile-bottom-nav a:focus,
.mobile-bottom-nav a:hover {
    background: #eef8f5;
    color: var(--brand-deep);
}

/* Admin review UX */
.admin-page .main {
    max-width: 1220px;
}

.admin-page .panel {
    overflow: hidden;
}

.admin-page table {
    table-layout: fixed;
}

.admin-page td,
.admin-page th {
    overflow-wrap: anywhere;
}

.admin-page .account-actions,
.admin-page .approval-actions,
.admin-page .review-form {
    align-items: stretch;
    display: grid;
    gap: 8px;
}

.admin-page .account-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-page .account-actions form,
.admin-page .account-actions button,
.admin-page .review-form button,
.admin-page .approval-actions button {
    width: 100%;
}

.admin-page .verification-file-list.compact .button {
    justify-content: flex-start;
}

:focus-visible {
    outline: 3px solid rgba(14, 124, 102, 0.26);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .step-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-item summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .activity-amount {
        white-space: normal;
    }

    .wallet-topline,
    .section-heading-row,
    .payment-link-head,
    .payment-link-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .customer-page .main {
        padding-bottom: 96px;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .wallet-hero {
        min-height: auto;
    }

    .sticky-action-footer {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-page table,
    .admin-page tbody,
    .admin-page tr,
    .admin-page td {
        display: block;
        overflow: visible;
        white-space: normal;
        width: 100%;
    }

    .admin-page thead {
        display: none;
    }

    .admin-page tr {
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 12px;
    }

    .admin-page td {
        border-bottom: 0;
        padding: 7px 0;
    }

    .admin-page .account-actions,
    .limit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .step-progress {
        grid-template-columns: 1fr;
    }

    .wallet-actions .button,
    .payment-link-actions .button,
    .mobile-bottom-nav a {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}