:root {
    color-scheme: light;
    --canvas: #fafaf8;
    --surface: #ffffff;
    --surface-soft: #f4f5f2;
    --ink: #111111;
    --ink-secondary: #454845;
    --muted: #737873;
    --text-secondary: var(--ink-secondary);
    --line: #e3e5e1;
    --navy: #ffffff;
    --navy-soft: #f4f5f2;
    --brand: #285d43;
    --brand-hover: #1f4d36;
    --brand-pale: #edf3ee;
    --mint: #dce9df;
    --lime: #91c79d;
    --success: #285d43;
    --success-bg: #edf3ee;
    --danger: #cb4e57;
    --danger-bg: #fff0f1;
    --warning-bg: #fff8e8;
    --warning-ink: #986a12;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-card: none;
    --shadow-pop: none;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "DM Sans", "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 320px) {

    html,
    body {
        min-width: 0;
    }
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--brand);
}

::selection {
    color: var(--navy);
    background: var(--mint);
}

:focus-visible {
    outline: 3px solid rgba(40, 93, 67, .42);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Main application shell */
.app-body {
    background: var(--canvas);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex: 0 0 248px;
    flex-direction: column;
    width: 248px;
    height: 100vh;
    min-height: 600px;
    padding: 26px 17px 18px;
    overflow-y: auto;
    color: #fff;
    background: var(--navy);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 50px;
    height: 36px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-name {
    font-family: Manrope, sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.brand-name span {
    color: var(--mint);
}

.workspace-label {
    margin: 38px 11px 12px;
    color: #8f93a8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.side-nav {
    display: grid;
    gap: 5px;
}

.nav-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    color: #b9bdcd;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nav-link i {
    width: 20px;
    flex: 0 0 20px;
    color: #9399b1;
    font-size: 16px;
    text-align: center;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    transform: translateX(2px);
}

.nav-link.active {
    color: #fff;
    background: #282b43;
    box-shadow: inset 3px 0 var(--lime);
}

.nav-link.active i {
    color: var(--lime);
}

.sidebar-bottom {
    margin-top: auto;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #d3d6e0;
    font-size: 10px;
    justify-content: center;
}

.security-note i {
    color: var(--mint);
    font-size: 16px;
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 5px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.avatar {
    display: inline-grid;
    flex: 0 0 auto;
    width: 37px;
    height: 37px;
    place-items: center;
    border-radius: 50%;
    color: #252741;
    background: var(--mint);
    font-family: Manrope, sans-serif;
    font-weight: 800;
}

.avatar-photo {
    object-fit: cover;
}

.profile-layout {
    align-items: start;
}

.profile-card {
    display: grid;
    gap: 20px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    display: block;
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-initials {
    display: inline-grid;
    place-items: center;
    color: #252741;
    background: var(--mint);
    font-family: Manrope, sans-serif;
    font-size: 30px;
    font-weight: 800;
}

.profile-identity h2 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: 18px;
}

.profile-identity p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.profile-details {
    display: grid;
    gap: 13px;
    margin: 0;
}

.profile-details>div {
    display: grid;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.profile-details dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.profile-details dd {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.status-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.status-success {
    color: var(--success);
}

.status-pending {
    color: var(--warning-ink);
}

input[type="file"] {
    width: 100%;
    color: var(--ink-secondary);
    font-size: 12px;
}

.wallet-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
    padding: clamp(22px, 4vw, 36px);
    color: #fff;
    background: #202338;
}

.wallet-overview .metric-label {
    color: #b7bbcf;
}

.wallet-overview .metric-value {
    color: #fff;
    font-size: clamp(32px, 5vw, 46px);
}

.wallet-overview .metric-value span {
    color: #c8cbe0;
    font-size: 15px;
    letter-spacing: 0;
}

.wallet-overview-main>p {
    margin: 8px 0 0;
    color: #c6c8d7;
    font-size: 12px;
}

.wallet-overview-qr {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    text-align: center;
}

.wallet-overview-qr img {
    width: 118px;
    height: 118px;
    padding: 5px;
    border-radius: 9px;
    background: #fff;
}

.wallet-overview-qr>span {
    color: #c6c8d7;
    font-size: 10px;
}

.wallet-quick-actions {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.wallet-overview .wallet-quick-actions .btn {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    font-size: 12.5px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.wallet-overview .wallet-text-link {
    grid-column: 1 / -1;
    justify-self: start;
    padding-top: 2px;
}

.social-rewards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.welcome-reward-banner {
    display: grid;
    align-content: space-between;
    gap: 14px;
    border-left: 4px solid var(--brand);
    background: var(--brand-pale);
}

.welcome-reward-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-reward-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: rgba(40, 93, 67, 0.14);
    color: var(--brand);
    font-size: 16px;
}

.welcome-reward-copy {
    display: grid;
    gap: 8px;
}

.welcome-reward-copy h2,
.referral-share-card h2 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.welcome-reward-copy p,
.referral-share-card p {
    margin: 0;
    color: var(--ink-secondary);
    font-size: 12px;
    line-height: 1.5;
}

.welcome-reward-amount {
    display: inline-block;
    margin-top: 2px;
    font-family: Manrope, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}

.welcome-reward-banner form,
.welcome-reward-banner .btn {
    width: 100%;
}

.referral-share-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

.referral-share-card input {
    min-width: 0;
}

.referral-share-card .btn {
    justify-self: start;
}

.referral-share-card .referral-reward-count {
    color: var(--muted);
    font-size: 11px;
}

.policy-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.policy-actions .form-help {
    flex-basis: 100%;
}

.wallet-overview .btn-secondary {
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.wallet-overview .wallet-text-link {
    color: #d7d9e7;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.card-subtitle {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.recent-transactions {
    display: grid;
}

.recent-transactions> :last-child {
    border-bottom: 0;
}

.recent-transaction {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 12px;
    padding: 13px 2px;
    border-bottom: 1px solid #eff0f5;
    color: inherit;
    text-decoration: none;
}

.recent-transaction:last-child {
    border-bottom: 0;
}

.recent-withdrawal-code {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 16px;
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
}

.recent-withdrawal-code-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.recent-withdrawal-code-copy strong {
    color: var(--ink);
    font-size: 12px;
}

.recent-withdrawal-code-copy small {
    color: var(--muted);
    font-size: 10px;
}

.recent-withdrawal-code-copy code {
    width: fit-content;
    padding: 4px 7px;
    border-radius: 4px;
    color: var(--brand);
    background: var(--surface-soft);
    font-size: 12px;
    letter-spacing: .08em;
}

.recent-withdrawal-code>.recent-transaction-amount {
    grid-column: 2;
    grid-row: 1;
    color: var(--ink);
}

.recent-withdrawal-code-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 10px;
}

.withdrawal-code-status {
    color: var(--muted);
    font-size: 10px;
}

.recent-transaction:hover .recent-transaction-copy strong {
    color: var(--brand);
}

.transaction-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    font-size: 15px;
}

.transaction-icon-in {
    color: var(--success);
    background: var(--success-bg);
}

.transaction-icon-out {
    color: var(--danger);
    background: var(--danger-bg);
}

.recent-transaction-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.recent-transaction-copy strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-transaction-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-transaction-amount {
    font-size: 12px;
    white-space: nowrap;
}

.transaction-chevron {
    color: #9da1b0;
    font-size: 11px;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 30px 12px;
    color: var(--muted);
    text-align: center;
}

.empty-state i {
    color: #a4a8b8;
    font-size: 24px;
}

.empty-state p {
    margin: 0;
    font-size: 12px;
}

.form-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, .7fr);
    align-items: start;
    gap: 18px;
}

.form-page-card {
    max-width: 680px;
}

.section-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 13px;
    color: var(--brand);
    background: var(--brand-pale);
    font-size: 18px;
}

.form-page-card>.card-title {
    margin-bottom: 20px;
}

.form-page-card .btn-primary {
    width: 100%;
}

.counter-charge-page .form-page-card {
    max-width: none;
}

.counter-charge-summary {
    display: grid;
    gap: 5px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.counter-charge-summary-label,
.counter-charge-summary-customer {
    color: var(--muted);
    font-size: 12px;
}

.counter-charge-summary-amount {
    color: var(--ink);
    font-family: Manrope, sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.counter-charge-summary-business {
    color: var(--ink-secondary);
    font-size: 12px;
}

.counter-charge-instruction {
    margin-bottom: 18px;
    color: var(--ink-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.counter-charge-form {
    display: grid;
    gap: 4px;
}

.counter-charge-form .btn-primary {
    width: 100%;
}

.counter-charge-result {
    margin-top: 16px;
}

.counter-charge-cancel-form {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.counter-charge-cancel-form .btn {
    flex: 0 0 auto;
}

.counter-charge-pending {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.counter-charge-pending>summary {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.counter-charge-pending>summary::-webkit-details-marker {
    display: none;
}

.counter-charge-pending>summary::before {
    color: var(--brand);
    content: "+";
    font-size: 15px;
}

.counter-charge-pending[open]>summary::before {
    content: "-";
}

.counter-charge-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.counter-charge-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

.counter-charge-list li>span {
    display: grid;
    gap: 3px;
}

.counter-charge-list li strong {
    color: var(--ink);
    font-size: 13px;
}

.counter-charge-list li small {
    color: var(--muted);
    font-size: 11px;
}

.counter-charge-info-card ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.counter-charge-security-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.counter-charge-security-note i {
    flex: 0 0 auto;
    color: var(--brand);
}

.recipient-input-group {
    display: flex;
    gap: 8px;
}

.recipient-input-group input {
    min-width: 0;
}

.recipient-qr-button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

.recipient-qr-button[hidden] {
    display: none;
}

.recipient-qr-scanner {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.recipient-qr-scanner[hidden],
.recipient-qr-stop[hidden] {
    display: none;
}

.recipient-qr-reader {
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    border-radius: 10px;
}

.recipient-qr-reader video {
    width: 100%;
    max-height: 360px;
    border-radius: 10px;
    background: #101222;
    object-fit: cover;
}

.recipient-qr-scanner .form-help {
    margin: 0;
    text-align: center;
}

.recipient-qr-stop {
    width: auto;
}

.recipient-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin: -4px 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--muted);
    background: var(--surface-soft);
}

.recipient-preview.is-found {
    border-color: var(--lime);
    color: var(--success);
    background: var(--success-bg);
}

.recipient-preview.is-loading {
    opacity: .72;
}

.recipient-preview.is-loading::before {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--surface-soft), var(--line), var(--surface-soft));
    background-size: 200% 100%;
    content: "";
    animation: wapmoney-skeleton 1.2s ease-in-out infinite;
}

.skeleton {
    min-height: 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--surface-soft), var(--line), var(--surface-soft));
    background-size: 200% 100%;
    animation: wapmoney-skeleton 1.2s ease-in-out infinite;
}

@keyframes wapmoney-skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.recipient-preview span {
    display: grid;
}

.recipient-preview strong {
    color: var(--ink);
}

.recipient-preview small {
    color: var(--muted);
}

.recent-recipients {
    margin: -2px 0 16px;
}

.recent-recipients>div {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
}

.recipient-chip {
    display: flex;
    min-width: 128px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
}

.recipient-chip span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--mint);
    font-weight: 800;
}

.recipient-chip small {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amount-presets {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.amount-presets button {
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
}

.kyc-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.kyc-progress li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--muted);
}

.kyc-progress li>span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-soft);
    font-weight: 800;
}

.kyc-progress li div {
    display: grid;
}

.kyc-progress li strong {
    color: var(--ink);
    font-size: 12px;
}

.kyc-progress li small {
    margin-top: 2px;
    font-size: 10px;
}

.kyc-progress li.active {
    border-color: var(--lime);
    background: var(--brand-pale);
}

.kyc-progress li.active>span {
    color: #fff;
    background: var(--brand);
}

.kyc-progress li.complete {
    border-color: var(--lime);
    color: var(--success);
    background: var(--success-bg);
}

.kyc-progress li.complete>span {
    color: #fff;
    background: var(--success);
}

.kyc-progress li.complete>span::before {
    content: "\2713";
}

.kyc-progress li.complete>span {
    font-size: 0;
}

.kyc-progress li.complete>span::before {
    font-size: 13px;
}

.kyc-complete-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid var(--lime);
    border-radius: var(--radius-md);
    color: var(--ink-secondary);
    background: var(--brand-pale);
}

.payout-code-search {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.payout-code-search input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100% !important;
    height: 44px;
    padding: 0 14px;
    font-family: monospace;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-sizing: border-box;
}

.payout-code-search .btn,
.form-page-card .payout-code-search .btn-primary {
    width: auto !important;
    min-width: 130px;
    height: 44px;
    padding: 0 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    box-sizing: border-box;
}

@media (max-width: 520px) {
    .payout-code-search {
        flex-direction: column;
        gap: 10px;
    }

    .payout-code-search input,
    .payout-code-search .btn,
    .form-page-card .payout-code-search .btn-primary {
        width: 100% !important;
    }
}

.form-info-card {
    display: grid;
    align-content: start;
    gap: 12px;
    background: #f9f9ff;
}

.form-info-card>i {
    color: var(--brand);
    font-size: 22px;
}

.form-info-card h2 {
    margin: 0;
    color: var(--ink);
    font-family: Manrope, sans-serif;
    font-size: 15px;
}

.form-info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.btn.btn-secondary {
    border-color: var(--line);
    color: var(--ink);
    background: #f8f9fc;
    flex: 1 1 calc(50% - 5px);
}

.btn.btn-secondary:hover {
    color: var(--ink);
    background: #eff0f7;
}

.activity-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr) auto;
    align-items: end;
    gap: 13px;
    margin-bottom: 12px;
}

.activity-filters .form-group {
    margin: 0;
}

.activity-filters .btn {
    width: auto;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 18px;
    color: var(--muted);
    font-size: 12px;
}

.pagination .btn {
    width: auto;
    min-height: 36px;
}

.receipt-card {
    max-width: 720px;
    margin: 0 auto;
}

.receipt-header {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 12px 0 25px;
    border-bottom: 1px dashed var(--line);
    text-align: center;
}

.receipt-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
}

.receipt-header h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-family: Manrope, sans-serif;
    font-size: 16px;
}

.receipt-amount {
    color: var(--ink);
    font-family: Manrope, sans-serif;
    font-size: 28px;
    font-weight: 800;
}

.receipt-header p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.receipt-details {
    display: grid;
    gap: 0;
    margin: 12px 0 20px;
}

.receipt-details>div {
    display: grid;
    grid-template-columns: minmax(110px, .45fr) 1fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #eff0f5;
}

.receipt-details dt {
    color: var(--muted);
    font-size: 11px;
}

.receipt-details dd {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
    overflow-wrap: anywhere;
    text-align: right;
}

.receipt-details code {
    color: inherit;
}

.receipt-back {
    margin-top: 5px;
}

.ledger-receipt {
    margin-bottom: 20px;
}

.ledger-receipt h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-family: Manrope, sans-serif;
    font-size: 13px;
}

.reversal-form {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.reversal-form .btn {
    width: auto;
}

.scanner-panel {
    position: relative;
    display: grid;
    min-height: 210px;
    justify-items: center;
    align-content: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 16px;
    overflow: hidden;
    border: 1px dashed #cfd1e1;
    border-radius: 14px;
    background: #f8f9fc;
    text-align: center;
}

.scanner-panel video {
    width: min(100%, 360px);
    max-height: 240px;
    border-radius: 10px;
    background: #101222;
    object-fit: cover;
}

.qr-camera-reader {
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    border-radius: 12px;
}

.qr-camera-reader video {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.scanner-placeholder {
    display: grid;
    justify-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
}

.scanner-placeholder i {
    color: var(--brand);
    font-size: 28px;
}

.scanner-panel .form-help {
    margin: 0;
}

.payroll-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.payroll-submit .btn {
    width: auto;
}

.merchant-summary {
    margin: 2px 0 12px;
}

.merchant-summary strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 14px;
}

.merchant-summary p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.app-main .card-header .text-link {
    flex: 0 0 auto;
}

.support-ticket-list {
    display: grid;
}

.support-ticket-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 12px;
    padding: 14px 2px;
    border-bottom: 1px solid #eff0f5;
    color: inherit;
    text-decoration: none;
}

.support-ticket-row.notification-row {
    grid-template-columns: 38px minmax(0, 1fr) minmax(220px, 28%);
}

.support-ticket-row:last-child {
    border-bottom: 0;
}

.support-ticket-row:hover .support-ticket-copy strong {
    color: var(--brand);
}

.support-ticket-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: var(--brand);
    background: var(--brand-pale);
}

.support-ticket-dispute {
    color: #b17a12;
    background: var(--warning-bg);
}

.support-ticket-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.support-ticket-copy strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-ticket-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-actions {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.notification-actions>a,
.notification-actions form {
    display: flex;
    min-width: 0;
    max-width: 160px;
    flex: 1 1 110px;
    margin: 0;
}

.notification-actions .notification-action {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 8px 10px;
    font-size: clamp(10px, .75vw, 12px);
    white-space: nowrap;
}

.ticket-status {
    display: inline-flex;
    width: fit-content;
    padding: 5px 8px;
    border-radius: 99px;
    color: var(--brand);
    background: var(--brand-pale);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.ticket-status-resolved,
.ticket-status-closed {
    color: var(--success);
    background: var(--success-bg);
}

.ticket-status-reviewing {
    color: var(--warning-ink);
    background: var(--warning-bg);
}

.support-detail-grid {
    max-width: 850px;
    margin: 0 auto;
}

.support-detail-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 11px;
}

.support-transaction {
    margin: 14px 0;
    padding: 11px;
    border-radius: 10px;
    color: var(--ink-secondary);
    background: #f7f8fc;
    font-size: 11px;
}

.support-transaction a {
    color: var(--brand);
    font-weight: 700;
}

.support-messages {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.support-message {
    max-width: 90%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fbfbfd;
}

.support-message-customer {
    justify-self: end;
    border-color: #dce9df;
    background: #edf3ee;
}

.support-message-staff {
    justify-self: start;
}

.support-message header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 10px;
}

.support-message header strong {
    color: var(--ink);
}

.support-message p {
    margin: 9px 0 0;
    color: var(--ink-secondary);
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.support-reply-form {
    padding-top: 17px;
    border-top: 1px solid var(--line);
}

.support-back {
    margin-top: 14px;
}

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .sidebar,
    .topbar,
    .page-heading,
    .app-footer,
    .message-stack,
    .receipt-back,
    .page-heading-actions,
    .no-print {
        display: none !important;
    }

    .app-main,
    .page-content {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .receipt-card {
        max-width: none;
        border: 0;
        box-shadow: none;
    }

    .qr-stand-terminal {
        display: block !important;
        max-width: 480px !important;
        margin: 40px auto !important;
        padding: 40px 30px !important;
        border: 3px solid #285d43 !important;
        border-radius: 16px !important;
        text-align: center !important;
        page-break-inside: avoid !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    .qr-stand-terminal img {
        width: 260px !important;
        height: 260px !important;
        display: block !important;
        margin: 16px auto !important;
    }
}

.profile-copy {
    display: grid;
    min-width: 0;
    flex: 1;
}

.profile-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy small {
    overflow: hidden;
    color: #a4a8ba;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #a4a8ba;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    transition: .18s ease;
}

.logout-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.app-main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.topbar {
    position: sticky;
    z-index: 25;
    top: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: flex-end;
    padding: 0 clamp(22px, 4vw, 58px);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}

.topbar-context {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-secondary);
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #58c58a;
    box-shadow: 0 0 0 4px #e8f7ef;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-user {
    max-width: 190px;
    overflow: hidden;
    color: #54596c;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.verification-badge,
.verified-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    color: #168960;
}

.verification-badge {
    font-size: 17px;
}

.verified-badge {
    margin-left: 8px;
    font-size: 20px;
    vertical-align: middle;
}

.avatar-small {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.language-control {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink-secondary);
    background: #fff;
}

.language-control i {
    font-size: 14px;
}

.language-select {
    width: auto !important;
    min-width: 40px;
    padding: 4px 14px 4px 0 !important;
    border: 0 !important;
    color: var(--ink-secondary) !important;
    background-color: transparent !important;
    font-size: 11px !important;
    font-weight: 700;
    cursor: pointer;
}

.language-select:focus {
    box-shadow: none !important;
}

.topbar .language-control {
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding-inline: 8px;
}

.topbar .language-select {
    height: 36px;
    min-height: 0 !important;
    padding-block: 4px !important;
    line-height: 1;
}

.topbar .theme-toggle {
    width: 38px;
    height: 38px;
}

.mobile-menu-toggle {
    display: none;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.page-content {
    width: 100%;
    max-width: 1540px;
    flex: 1;
    margin: 0 auto;
    padding: 36px clamp(22px, 4vw, 58px) 40px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #85899b;
    font-size: 11px;
    font-weight: 600;
}

.eyebrow-separator {
    color: #c5c7d1;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.page-heading h1 {
    margin: 0;
    color: var(--ink);
    font-family: Manrope, sans-serif;
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -1.1px;
    line-height: 1.2;
}

.page-heading p {
    max-width: 700px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.page-heading-actions {
    display: flex;
    gap: 10px;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 clamp(22px, 4vw, 58px) 20px;
    color: #989cac;
    font-size: 11px;
}

.kyc-banner {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px clamp(22px, 4vw, 58px);
    border-bottom: 1px solid #f0dfb2;
    color: #594211;
    background: #fff8e8;
}

.kyc-banner-copy {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.kyc-banner-copy>i {
    flex: 0 0 auto;
    color: #b17a12;
    font-size: 21px;
}

.kyc-banner-copy div {
    display: grid;
    gap: 2px;
}

.kyc-banner-copy strong {
    font-size: 12px;
}

.kyc-banner-copy span {
    color: #826b3f;
    font-size: 11px;
}

.btn-kyc {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 8px 13px;
    color: #fff;
    background: #785713;
}

.btn-kyc:hover {
    color: #fff;
    background: #62470f;
}

.form-help {
    margin: 5px 0 14px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.count-pill {
    display: inline-grid;
    min-width: 26px;
    height: 26px;
    place-items: center;
    padding: 0 7px;
    border-radius: 99px;
    color: var(--brand);
    background: var(--brand-pale);
    font-size: 11px;
    font-weight: 700;
}

.errorlist {
    margin: 4px 0 0;
    padding: 0;
    color: var(--danger);
    font-size: 11px;
    list-style: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-ink);
}

.badge-danger {
    background: #fde8e8;
    color: #9b1c1c;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-info {
    background: #e1effe;
    color: #1e429f;
}

.badge-neutral {
    background: var(--surface-secondary, #f3f4f6);
    color: var(--ink-secondary, #4b5563);
}

/* Dashboard layouts and data surfaces */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

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

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

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

.card {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card:hover {
    border-color: #dce9df;
    box-shadow: 0 12px 30px rgba(27, 31, 57, .07);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--ink);
    font-family: Manrope, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.card-title::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    content: "";
}

.metric-label {
    display: block;
    color: #85899b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .55px;
    text-transform: uppercase;
}

.metric-value {
    display: block;
    margin: 6px 0 4px;
    color: var(--ink);
    font-family: Manrope, sans-serif;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.metric-value+p {
    margin-bottom: 0;
}

.metric-value+p,
.card p {
    color: var(--ink-secondary);
}

.qr-box {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
}

.qr-box img {
    width: 150px;
    height: 150px;
    margin-top: 10px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.qr-box code {
    overflow-wrap: anywhere;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #eff0f5;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    white-space: nowrap;
}

th {
    padding: 12px 14px;
    color: #777c90;
    background: #f8f9fc;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-align: left;
    text-transform: uppercase;
}

td {
    padding: 13px 14px;
    border-top: 1px solid #eff0f5;
    color: #43485c;
}

tbody tr {
    transition: background .16s ease;
}

tbody tr:hover {
    background: #f8f9f6;
}

td code {
    color: #686d82;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
}

.text-right {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.amount-in {
    color: var(--success) !important;
    font-weight: 700;
}

.amount-out {
    color: var(--danger) !important;
    font-weight: 700;
}

/* Forms, buttons, and feedback */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #565b6e;
    font-size: 12px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    display: block;
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #e4e6ee;
    border-radius: 10px;
    outline: none;
    color: var(--ink);
    background-color: #fff;
    font-size: 13px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder,
textarea::placeholder {
    color: #b0b3c0;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(40, 93, 67, .12);
}

input[type="checkbox"] {
    width: 16px !important;
    height: 16px;
    accent-color: var(--brand);
    vertical-align: middle;
}

.btn {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #fff;
    background: var(--navy);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn:hover {
    color: #fff;
    background: #262940;
    box-shadow: 0 7px 17px rgba(17, 19, 33, .14);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn[aria-busy="true"],
.btn.is-loading {
    cursor: wait !important;
}

.btn-primary {
    width: 100%;
    background: var(--brand);
}

.btn-primary:hover {
    background: var(--brand-hover);
}

.btn-dark {
    background: var(--navy);
}

.btn-spinner {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-spin .68s linear infinite;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

.alert {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.alert i {
    margin-top: 1px;
    font-size: 15px;
}

.alert-success {
    border-color: #caeedc;
    color: #13744f;
    background: var(--success-bg);
}

.alert-error {
    border-color: #f4d0d2;
    color: #a73d48;
    background: var(--danger-bg);
}

.alert-warning,
.alert-info {
    border-color: #f3e5b9;
    color: var(--warning-ink);
    background: var(--warning-bg);
}

.message-stack {
    margin-bottom: 18px;
}

.message-stack .alert:last-child {
    margin-bottom: 0;
}

/* Sign in, registration, and verification */
.auth-body {
    min-height: 100vh;
    background: #fff;
}

.auth-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
}

.auth-showcase {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(28px, 5vw, 68px);
    color: #fff;
    isolation: isolate;
    background: #242824;
}

.brand-light {
    position: relative;
    z-index: 1;
}

.auth-slides {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
}

.auth-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 120px clamp(28px, 5vw, 68px) 118px;
    background-image: var(--slide-image);
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity .85s ease, transform 7.5s ease, visibility 0s linear .85s;
    visibility: hidden;
}

.auth-slide.is-active {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0s;
    visibility: visible;
}

.showcase-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    margin: 0;
}

.showcase-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 99px;
    color: #d6d7ef;
    background: rgba(255, 255, 255, .07);
    font-size: 11px;
}

.showcase-kicker i {
    color: var(--mint);
}

.showcase-copy h2 {
    max-width: 510px;
    margin: 0 0 13px;
    font-family: Manrope, sans-serif;
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.12;
}

.showcase-copy p {
    max-width: 440px;
    margin: 0;
    color: #b8bbce;
    font-size: 15px;
    line-height: 1.8;
}

.showcase-caption {
    position: absolute;
    z-index: 2;
    bottom: 34px;
    left: clamp(28px, 5vw, 68px);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e3ed;
    font-size: 11px;
}

.showcase-caption i {
    color: var(--mint);
}

.auth-panel {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    padding: 30px clamp(26px, 6vw, 86px);
}

.auth-panel-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: auto;
    padding-top: 6px;
}

.auth-privacy {
    display: none !important;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 42px 0 24px;
}

.auth-header {
    margin-bottom: 23px;
}

.auth-header h1 {
    margin: 0;
    color: var(--ink);
    font-family: Manrope, sans-serif;
    font-size: clamp(25px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -1px;
}

.auth-header p {
    margin: 8px 0 0;
    color: #85899a;
    font-size: 13px;
    line-height: 1.65;
}

.auth-panel .card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.auth-panel .card:hover {
    box-shadow: none;
}

.auth-panel .form-group {
    margin-bottom: 17px;
}

.auth-panel input {
    min-height: 47px;
}

.auth-panel .btn {
    min-height: 47px;
    margin-top: 4px;
    font-size: 13px;
}

.auth-links {
    margin: 20px 0 0;
    color: #85899a;
    font-size: 12px;
    text-align: center;
}

.auth-links-secondary {
    margin-top: 8px;
}

.auth-links a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-panel small {
    display: inline-block;
    margin-top: 5px;
    color: var(--danger);
}

.otp-input {
    text-align: center;
    font-family: Manrope, sans-serif;
    font-size: 22px !important;
    font-weight: 700;
    letter-spacing: 8px;
}

.email-link-code-result[hidden] {
    display: none;
}

.email-link-code {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
}

.email-link-code-value {
    display: grid;
    min-width: 0;
    flex: 1;
    place-items: center;
    padding: 14px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--ink);
    font-family: Manrope, sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 7px;
    text-align: center;
}

.email-link-code .btn {
    flex: 0 0 auto;
}

.auth-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 15px;
    color: var(--brand);
    background: var(--brand-pale);
    font-size: 21px;
}

.auth-inline-button {
    padding: 0;
    border: 0;
    color: var(--brand);
    background: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.auth-inline-button:hover {
    text-decoration: underline;
}

.auth-legal {
    margin: auto 0 0;
    padding-top: 28px;
    color: #a3a6b3;
    font-size: 10px;
    text-align: center;
}

.auth-messages {
    position: fixed;
    z-index: 10;
    top: 16px;
    right: 16px;
    width: min(440px, calc(100% - 32px));
}

@media (max-width: 1050px) {
    .sidebar {
        flex-basis: 220px;
        width: 220px;
    }

    .page-content {
        padding-right: 28px;
        padding-left: 28px;
    }

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

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

    .sidebar {
        position: fixed;
        z-index: 60;
        inset: 0 auto 0 0;
        width: min(280px, 84vw);
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        max-height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-105%);
        transition: transform .24s ease;
        box-shadow: var(--shadow-pop);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    body.is-sidebar-open {
        overflow: hidden;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 50;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(2px);
    }

    .sidebar-backdrop[hidden] {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-grid;
        width: 38px;
        height: 38px;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--surface);
        color: var(--ink);
        transition: .15s ease;
    }

    .mobile-menu-toggle:active {
        background: var(--surface-soft);
        transform: scale(.96);
    }

    .topbar {
        min-height: 60px;
        justify-content: space-between;
        gap: 10px;
        padding: 0 16px;
    }

    .topbar-context {
        flex: 1;
    }

    .topbar-user {
        display: none;
    }

    .topbar-actions {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .topbar .language-control {
        height: 38px;
        min-height: 38px;
        padding-inline: 8px;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: var(--surface);
    }

    .topbar .language-select {
        height: 36px;
        font-size: 11px;
    }

    .topbar .theme-toggle {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: var(--surface);
    }

    .topbar .avatar-small {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .kyc-banner {
        align-items: flex-start;
        padding: 12px 18px;
    }

    .kyc-banner-copy {
        align-items: flex-start;
    }

    .kyc-banner-copy span {
        line-height: 1.45;
    }

    .page-content {
        padding: 27px 18px 30px;
    }

    .page-heading {
        align-items: flex-start;
        margin-bottom: 22px;
    }

    .page-heading h1 {
        font-size: 27px;
    }

    .app-footer {
        padding: 0 18px 16px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 14px;
    }

    .card {
        padding: 18px;
    }

    .auth-layout {
        display: flex;
        min-height: 100vh;
        flex-direction: column;
    }

    .auth-showcase {
        display: none;
    }

    .auth-slide {
        padding: 92px 22px 65px;
        background-position: center 38%;
    }

    .showcase-kicker {
        margin-bottom: 12px;
    }

    .showcase-copy h2 {
        max-width: 520px;
        font-size: clamp(25px, 6vw, 36px);
        letter-spacing: -.8px;
    }

    .showcase-copy p {
        max-width: 500px;
        font-size: 12px;
        line-height: 1.6;
    }

    .showcase-caption {
        bottom: 16px;
        left: 22px;
        font-size: 10px;
    }

    .auth-panel {
        min-height: 100vh;
        flex: 1;
        padding: 22px clamp(22px, 7vw, 60px);
    }

    .auth-container {
        padding: 22px 0;
    }

    .auth-panel-top {
        margin-bottom: 12px;
    }

    .wallet-overview {
        grid-template-columns: minmax(0, 1fr) 130px;
        gap: 12px;
        padding: 20px;
    }

    .wallet-overview-qr {
        padding: 9px;
    }

    .wallet-overview-qr img {
        width: 90px;
        height: 90px;
    }

    .form-page-grid {
        grid-template-columns: 1fr;
    }

    .form-info-card {
        order: -1;
    }

    .activity-filters {
        grid-template-columns: 1fr;
    }

    .activity-filters .btn {
        width: 100%;
    }

    .merchant-summary {
        grid-template-columns: 1fr;
    }

    .recent-transaction {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 9px;
    }

    .transaction-chevron {
        display: none;
    }

    .recent-transaction-amount {
        font-size: 10px;
    }

    .wallet-quick-actions {
        gap: 8px;
    }

    .wallet-quick-actions .btn {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .support-ticket-row {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .support-ticket-row.notification-row {
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: start;
    }

    .notification-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .notification-actions>a,
    .notification-actions form {
        max-width: 180px;
        flex-basis: 120px;
    }

    .support-ticket-row>i {
        display: none;
    }

    .ticket-status {
        padding: 4px 6px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .wallet-overview {
        grid-template-columns: minmax(0, 1fr) 84px;
        gap: 10px;
    }

    .wallet-overview-qr {
        padding: 5px;
        justify-items: end;
    }

    .wallet-overview-qr img {
        width: 72px;
        height: 72px;
    }

    .metric-value {
        font-size: 28px;
    }

    .page-heading {
        flex-direction: column;
    }

    .card {
        padding: 16px;
        border-radius: 14px;
    }

    .card-header {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .app-footer {
        flex-wrap: wrap;
    }

    .auth-showcase {
        min-height: 280px;
        height: 34vh;
        padding: 18px;
    }

    .brand-logo {
        width: 46px;
    }

    .auth-slide {
        padding: 84px 18px 56px;
    }

    .showcase-caption {
        bottom: 13px;
        left: 18px;
    }

    .auth-panel {
        padding-right: 20px;
        padding-left: 20px;
    }

    .auth-privacy {
        font-size: 10px;
    }

    .kyc-banner {
        flex-direction: column;
        gap: 10px;
    }

    .kyc-banner form,
    .btn-kyc {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .auth-slide {
        transition: none;
    }
}

/* WapMoney product direction: paper, charcoal and a single green action color. */
body,
.app-body {
    background: var(--canvas);
    color: var(--ink);
}

a {
    color: var(--brand);
}

:focus-visible {
    outline-color: rgba(40, 93, 67, .42);
}

.sidebar {
    color: var(--ink);
    background: #fff;
    border-right: 1px solid var(--line);
}

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

.nav-link,
.nav-link i {
    color: #5b615c;
}

.nav-link:hover {
    color: var(--ink);
    background: #f5f6f3;
    transform: none;
}

.nav-link.active {
    color: var(--brand);
    background: #f1f5f1;
    box-shadow: inset 2px 0 var(--brand);
}

.nav-link.active i {
    color: var(--brand);
}

.security-note {
    border-color: var(--line);
    color: var(--ink-secondary);
}

.security-note i {
    color: var(--brand);
}

.profile-mini {
    border-color: var(--line);
}

.profile-copy strong {
    color: var(--ink);
}

.profile-copy small,
.logout-icon {
    color: var(--muted);
}

.logout-icon:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

.topbar {
    background: rgba(250, 250, 248, .96);
    border-bottom-color: var(--line);
    backdrop-filter: none;
}

.status-dot {
    background: var(--brand);
    box-shadow: none;
}

.language-control {
    border-radius: 4px;
    background: transparent;
}

.page-heading h1,
.profile-identity h2,
.card-title,
.form-info-card h2,
.receipt-header h2,
.ledger-receipt h3,
.support-detail-heading,
.auth-header h1,
.showcase-copy h2 {
    color: var(--ink);
    font-family: "Manrope", "DM Sans", sans-serif;
    letter-spacing: -.035em;
}

.page-heading p,
.card-subtitle {
    color: var(--muted);
}

.card {
    border-color: var(--line);
    border-radius: 4px;
    box-shadow: none;
    transition: border-color .16s ease;
    margin-top: 20px;
}

.card:hover {
    border-color: #c8cec8;
    box-shadow: none;
}

.card-title::before {
    display: none;
}

.card-header {
    border-color: var(--line);
}

.wallet-overview {
    color: var(--ink);
    background: #f0f3ef;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.wallet-overview .metric-label,
.wallet-overview .metric-value,
.wallet-overview .metric-value span,
.wallet-overview-main>p,
.wallet-overview-qr>span,
.wallet-overview .wallet-text-link {
    color: var(--ink);
}

.wallet-overview-qr {
    border-color: var(--line);
    border-radius: 4px;
    background: #fff;
}

.wallet-overview-qr img {
    border-radius: 2px;
}

.wallet-overview .btn-secondary {
    border-color: var(--line);
    color: var(--ink);
    background: #fff;
}

.transaction-icon,
.support-ticket-icon,
.section-icon,
.auth-icon {
    display: inline-flex;
    width: auto;
    height: auto;
    place-items: initial;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--brand);
    background: transparent;
    font-size: 17px;
}

.transaction-icon-in,
.transaction-icon-out,
.support-ticket-dispute {
    color: var(--brand);
    background: transparent;
}

.support-ticket-icon {
    justify-content: center;
}

.form-info-card {
    background: transparent;
}

.text-link,
.wallet-overview .wallet-text-link {
    color: var(--brand);
}

.btn {
    border-radius: 4px;
    box-shadow: none;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.btn:hover {
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-primary,
.btn-kyc {
    color: #fff;
    background: var(--brand);
}

.btn-primary:hover,
.btn-kyc:hover {
    color: #fff;
    background: var(--brand-hover);
}

.btn-dark {
    color: #fff;
    background: #222622;
}

.btn-secondary {
    border-color: var(--line);
    border-radius: 4px;
    color: var(--ink);
    background: #fff;
}

.btn-secondary:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    border-color: #d8dcd7;
    border-radius: 4px;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(40, 93, 67, .12);
}

input[type="checkbox"] {
    accent-color: var(--brand);
}

label {
    color: var(--ink-secondary);
}

.table-wrapper {
    border-color: var(--line);
    border-radius: 4px;
}

th {
    color: var(--muted);
    background: #f5f6f3;
}

td {
    color: var(--ink-secondary);
    border-color: var(--line);
}

tbody tr:hover {
    background: #f8f9f6;
}

.receipt-header {
    justify-items: start;
    text-align: left;
    border-color: var(--line);
}

.receipt-details>div {
    border-color: var(--line);
}

.scanner-panel {
    border-color: #cbd2cc;
    border-radius: 4px;
    background: #f5f6f3;
    text-align: left;
}

.scanner-placeholder {
    justify-items: start;
}

.ticket-status {
    border-radius: 3px;
    color: var(--brand);
    background: #edf3ee;
}

.ticket-status-resolved,
.ticket-status-closed {
    color: var(--brand);
    background: #edf3ee;
}

.support-transaction,
.support-message,
.support-message-customer {
    border-color: var(--line);
    border-radius: 4px;
    background: transparent;
}

.support-message-customer {
    justify-self: start;
}

.empty-state {
    justify-items: start;
    text-align: left;
}

.empty-state i {
    color: var(--brand);
}

.kyc-banner {
    border-color: #d9e3da;
    color: var(--ink);
    background: #f2f5f1;
}

.kyc-banner-copy>i,
.kyc-banner-copy span {
    color: var(--brand);
}

.kyc-banner-copy strong {
    color: var(--ink);
}

.auth-body {
    background: var(--canvas);
}

.auth-showcase {
    background-color: #242824;
    background-image: var(--slide-image);
}

.auth-panel {
    background: var(--canvas);
}

.auth-container {
    max-width: 440px;
}

.auth-header,
.auth-container .auth-header {
    text-align: left;
}

.auth-container .card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.auth-container .card:hover {
    border-color: transparent;
}

.auth-privacy,
.auth-legal {
    color: var(--muted);
}

.auth-links a,
.auth-inline-button {
    color: var(--brand);
}

.showcase-kicker {
    border-radius: 3px;
    color: #f1f2ef;
    background: rgba(17, 20, 17, .28);
}

.showcase-copy h2 {
    color: #fff;
}

.showcase-copy p,
.showcase-caption {
    color: rgba(255, 255, 255, .82);
}

.form-page-grid,
.profile-layout {
    gap: 24px;
}

.form-info-card {
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}

.section-icon {
    margin-bottom: 12px;
}

.profile-avatar-initials,
.avatar {
    color: var(--ink);
    background: var(--mint);
}

.profile-avatar {
    border-radius: 50%;
}

.profile-details>div,
.recent-transaction,
.support-ticket-row {
    border-color: var(--line);
}

.profile-identity h2 {
    letter-spacing: -.025em;
}

.form-group {
    margin-bottom: 18px;
}

.auth-header h1 {
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 700;
}

.auth-header p {
    color: var(--muted);
}

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

.kyc-documents {
    margin-top: 20px;
    box-shadow: none;
}

.kyc-document-list,
.kyc-audit-list {
    display: grid;
    margin-top: 20px;
}

.kyc-document-row {
    display: flex;
    border-radius: 4px;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
}

.kyc-document-row>span:first-child {
    display: grid;
    gap: 3px;
}

.kyc-document-row strong {
    color: var(--ink);
    font-size: 12px;
}

.kyc-document-row small,
.kyc-document-row p {
    color: var(--muted);
    font-size: 10px;
}

.kyc-document-row p {
    grid-column: 1 / -1;
    margin: 0;
}

.kyc-document-state {
    color: var(--ink-secondary);
    font-size: 12px;
    font-weight: 700;
}

.kyc-document-state-accepted {
    color: var(--brand);
}

.kyc-document-state-rejected {
    color: #8d3933;
}

.kyc-audit-list {}

.kyc-audit-list h3 {
    margin: 16px 0 6px;
    color: var(--ink);
    font-size: 12px;
}

.kyc-audit-list>p {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px 12px;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-secondary);
    font-size: 10px;
}

.kyc-audit-list time {
    color: var(--muted);
}

.kyc-audit-list small {
    flex: 0 0 100%;
    color: var(--muted);
}

.kyc-review-list {
    display: grid;
}

.kyc-review-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, .7fr) auto;
    gap: 12px 18px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.kyc-review-person {
    display: grid;
    gap: 4px;
}

.kyc-review-person strong {
    color: var(--ink);
    font-size: 12px;
}

.kyc-review-person small,
.kyc-review-type {
    color: var(--muted);
    font-size: 10px;
}

.kyc-review-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: end;
    gap: 12px;
}

.kyc-review-actions form {
    display: flex;
    align-items: end;
    gap: 9px;
}

.kyc-review-actions .btn {
    width: auto;
    white-space: nowrap;
}

.kyc-review-actions .form-group,
.kyc-review-actions label {
    margin: 0;
}

.csv-format {
    margin: 14px 0;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.csv-format code {
    overflow-wrap: anywhere;
    color: var(--ink-secondary);
}

.schedule-payroll-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
}

.schedule-payroll-form .form-group {
    min-width: 240px;
    margin: 0;
}

.schedule-payroll-form .btn {
    width: auto;
}

.scheduled-payroll-table {
    margin-top: 18px;
}

.scheduled-status {
    color: var(--ink-secondary);
    font-size: 10px;
    font-weight: 700;
}

.scheduled-status-completed {
    color: var(--brand);
}

.scheduled-status-failed {
    color: #8d3933;
}

.scheduled-status-cancelled {
    color: var(--muted);
}

.scheduled-payroll-table .form-help {
    margin: 4px 0 0;
}

.scheduled-payroll-table form {
    display: inline;
}

@media (max-width: 760px) {
    .form-info-card {
        order: initial;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .page-content {
        padding-top: 26px;
    }

    .kyc-document-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
        padding: 12px;
        justify-content: space-between;
    }

    .kyc-document-row>a {
        grid-column: 2;
    }

    .kyc-review-row {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .kyc-review-actions {
        grid-template-columns: 1fr;
    }

    .kyc-review-actions form:last-child {
        flex-wrap: wrap;
    }
}

/* Manual theme preference; when unset, the operating-system preference applies. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #171a17;
    --surface: #202420;
    --surface-soft: #252b26;
    --ink: #edf0eb;
    --ink-secondary: #c1c8c0;
    --muted: #9aa39b;
    --line: #353d36;
    --navy: #171a17;
    --navy-soft: #252b26;
    --brand: #9bcba7;
    --brand-hover: #b2d8ba;
    --brand-pale: #29362c;
    --mint: #314238;
    --lime: #9bcba7;
    --success: #9bcba7;
    --success-bg: #26352b;
    --danger-bg: #3a2828;
    --warning-bg: #383321;
    --warning-ink: #ead18d;
    --shadow-card: none;
    --shadow-pop: 0 16px 38px rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --canvas: #171a17;
        --surface: #202420;
        --surface-soft: #252b26;
        --ink: #edf0eb;
        --ink-secondary: #c1c8c0;
        --muted: #9aa39b;
        --line: #353d36;
        --navy: #171a17;
        --navy-soft: #252b26;
        --brand: #9bcba7;
        --brand-hover: #b2d8ba;
        --brand-pale: #29362c;
        --mint: #314238;
        --lime: #9bcba7;
        --success: #9bcba7;
        --success-bg: #26352b;
        --danger-bg: #3a2828;
        --warning-bg: #383321;
        --warning-ink: #ead18d;
        --shadow-card: none;
        --shadow-pop: 0 16px 38px rgba(0, 0, 0, .35);
    }
}

.theme-toggle {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink-secondary);
    background: transparent;
    cursor: pointer;
}

.theme-toggle:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

.guest-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar {
    padding-top: 16px;
}

.sidebar-profile {
    justify-content: space-between;
    padding: 0 3px 14px;
    border: 0;
}

.sidebar-profile-link {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.sidebar-profile .profile-copy {
    min-width: 0;
}

.sidebar-profile .profile-copy strong {
    overflow: hidden;
    max-width: 142px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-profile .logout-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
}

.sidebar-brand {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 8px 0 0;
}

.sidebar-brand .brand-logo {
    width: 35px;
    height: 44px;
}

.sidebar-brand .brand-logo,
.landing-brand .brand-logo {
    filter: invert(1);
}

.workspace-label {
    margin-top: 16px;
}

.sidebar-bottom {
    padding-top: 12px;
}

.wallet-overview {
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: start;
}

.wallet-overview-qr {
    justify-items: end;
    padding: 0;
    border: 0;
    background: transparent;
}

.wallet-overview-qr img {
    width: 126px;
    height: 126px;
}

.auth-layout {
    display: block;
    min-height: 100vh;
}

.auth-panel {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 26px clamp(22px, 8vw, 120px);
}

.auth-panel-top {
    width: 100%;
    margin: 0;
    padding: 0;
}

.auth-container {
    align-self: flex-start;
    margin: auto 0;
}

.auth-container .auth-header {
    margin-bottom: 25px;
}

.auth-container .auth-header p {
    max-width: 390px;
}

.auth-container .auth-links {
    text-align: left;
}

.login-form .btn {
    width: 100%;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--ink);
}

.caps-lock-notice,
.field-error {
    display: block;
    margin-top: 6px;
    color: var(--warning-ink);
    font-size: 11px;
}

.caps-lock-notice[hidden] {
    display: none;
}

.auth-panel .caps-lock-notice {
    color: var(--warning-ink);
}

.field-error,
.form-errors {
    color: var(--danger);
}

.auth-links {
    margin-top: 18px;
}

.auth-links-secondary {
    margin-top: 10px;
}

.landing-page {
    overflow-x: clip;
    color: var(--ink);
    background: var(--canvas);
}

.landing-body .auth-layout,
.landing-body .auth-panel,
.landing-body .auth-container,
.policy-body .auth-layout,
.policy-body .auth-panel,
.policy-body .auth-container {
    display: contents !important;
}

.landing-body .auth-panel-top,
.landing-body .auth-legal,
.policy-body .auth-panel-top,
.policy-body .auth-legal {
    display: none !important;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    width: 100%;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px clamp(20px, 6vw, 80px);
    border-bottom: 1px solid var(--line);
    background: var(--canvas);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.landing-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.landing-brand .brand-logo {
    width: 78px;
    height: 48px;
    object-fit: contain;
}

.landing-header-right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.8vw, 20px);
    flex: 1 1 auto;
    min-width: 0;
}

.landing-nav {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.8vw, 20px);
}

.landing-nav-controls {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.landing-nav-link,
.landing-nav>a:not(.btn):not(.landing-login) {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    color: var(--ink-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.landing-nav-link:hover,
.landing-nav>a:not(.btn):not(.landing-login):hover {
    color: var(--brand);
}

.landing-nav .landing-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all .2s ease;
}

.landing-nav .landing-login:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-pale);
}

:root[data-theme="dark"] .landing-nav .landing-login {
    background: var(--surface-soft);
    border-color: var(--line);
}

:root[data-theme="dark"] .landing-nav .landing-login:hover {
    color: var(--mint);
    border-color: var(--brand);
}

.landing-nav-controls .language-control {
    display: inline-flex;
    align-items: center;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-sizing: border-box;
}

.landing-nav-controls .language-select {
    height: 36px;
    min-height: 0 !important;
    padding-block: 4px !important;
    line-height: 1;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.landing-nav-controls .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-secondary);
    box-sizing: border-box;
    cursor: pointer;
    transition: all .2s ease;
}

.landing-nav-controls .theme-toggle:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.landing-hero {
    --landing-gutter: clamp(22px, 7vw, 108px);
    display: flex;
    min-height: calc(100vh - 72px);
    flex-direction: column;
    padding: 24px var(--landing-gutter) 40px;
}

.landing-hero-copy {
    width: min(100%, 850px);
    margin: auto 0;
    padding: 72px 0 52px;
}

.landing-hero-copy>* {
    animation: hero-copy-enter .75s cubic-bezier(.2, .7, .25, 1) both;
}

.landing-hero-copy> :nth-child(2) {
    animation-delay: .08s;
}

.landing-hero-copy> :nth-child(3) {
    animation-delay: .16s;
}

.landing-hero-copy> :nth-child(4) {
    animation-delay: .24s;
}

.landing-hero-copy> :nth-child(5) {
    animation-delay: .32s;
}

@keyframes hero-copy-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-eyebrow {
    margin: 0 0 14px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.landing-hero h1 {
    max-width: 820px;
    margin: 0;
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: clamp(42px, 7vw, 86px);
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: 1.08;
}

.rotating-phrases {
    display: inline-grid;
    min-height: 1.08em;
    color: var(--brand);
}

.rotating-phrases [data-rotating-phrase] {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(.18em);
    visibility: hidden;
    transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .25, 1), visibility .55s;
}

.rotating-phrases [data-rotating-phrase].is-active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.landing-intro {
    max-width: 530px;
    margin: 25px 0 0;
    color: var(--ink-secondary);
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.7;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.landing-actions .btn {
    width: auto;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-sizing: border-box;
}

.landing-actions .btn-primary {
    background: var(--brand);
    color: #fff !important;
    border: 1.5px solid var(--brand);
}

.landing-actions .btn-primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #fff !important;
}

.landing-actions .landing-login-cta {
    border: 1.5px solid var(--line);
    color: var(--ink) !important;
    background: var(--surface);
    box-shadow: none;
    transform: none;
    transition: all .2s ease;
}

.landing-actions .landing-login-cta:hover {
    border-color: var(--brand);
    color: var(--brand) !important;
    background: var(--brand-pale);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 93, 67, 0.08);
}

:root[data-theme="dark"] .landing-actions .landing-login-cta {
    border-color: var(--line);
    color: var(--ink) !important;
    background: var(--surface-soft);
}

:root[data-theme="dark"] .landing-actions .landing-login-cta:hover {
    border-color: var(--brand);
    color: var(--mint) !important;
    background: rgba(40, 93, 67, 0.2);
}

.landing-origin {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 56px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.landing-origin i {
    color: var(--brand);
}

.landing-photos,
.landing-metrics,
.landing-benefits,
.landing-faq {
    padding: clamp(58px, 8vw, 112px) clamp(22px, 7vw, 108px);
}

.landing-photos {
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(30px, 7vw, 100px);
    background: var(--surface-soft);
}

.landing-photos-copy h2,
.landing-section-heading h2 {
    max-width: 520px;
    margin: 0;
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.2;
}

.landing-slideshow {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
}

.landing-photo {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    transform: translateY(10px) scale(.99);
    visibility: hidden;
    transition: opacity .55s ease, transform .65s cubic-bezier(.2, .7, .25, 1), visibility .55s;
}

.landing-photo.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.landing-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1.55;
    object-fit: cover;
}

.landing-photo figcaption {
    margin-top: 12px;
    color: var(--ink-secondary);
    font-size: 12px;
}

.landing-photo figcaption strong {
    display: block;
    color: var(--ink);
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: 16px;
}

.landing-photo figcaption p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.landing-slide-controls {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 11px;
}

.landing-slide-controls button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    cursor: pointer;
}

.landing-slide-controls button:hover {
    color: var(--brand);
    border-color: var(--brand);
}

.landing-slide-controls [data-slide-count] {
    margin: 0 3px;
}

.landing-slide-progress {
    height: 3px;
    flex: 1;
    overflow: hidden;
    border-radius: 99px;
    background: var(--line);
}

.landing-slide-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left center;
}

.landing-slide-progress span.is-running {
    animation: landing-slide-progress 6.5s linear forwards;
}

@keyframes landing-slide-progress {
    to {
        transform: scaleX(1);
    }
}

.landing-section-heading {
    margin-bottom: 36px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 4vw, 58px);
}

.benefit-item {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.benefit-item>i {
    color: var(--brand);
    font-size: 19px;
}

.benefit-item h3 {
    margin: 18px 0 8px;
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: 16px;
}

.benefit-item p,
.faq-list p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.landing-faq {
    background: var(--surface-soft);
}

.landing-faq .landing-section-heading {
    margin-bottom: 28px;
}

.faq-list {
    max-width: 820px;
}

.faq-list details {
    border-top: 1px solid var(--line);
}

.faq-list details:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 19px 36px 19px 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    position: absolute;
    right: 4px;
    content: "+";
    color: var(--brand);
    font-size: 20px;
    font-weight: 400;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    padding: 0 36px 20px 0;
}

.landing-footer {
    display: flex;
    min-height: 100px;
    align-items: center;
    gap: 28px;
    padding: 20px clamp(22px, 7vw, 108px);
    color: var(--muted);
    font-size: 10px;
}

.landing-footer .landing-brand {
    margin-right: auto;
}

.landing-footer>a:last-child {
    color: var(--ink-secondary);
    text-decoration: none;
}

.landing-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 18px;
}

.landing-footer-links a {
    color: var(--ink-secondary);
    text-decoration: none;
}

.landing-footer-links a:hover {
    color: var(--brand);
}

.landing-whatsapp {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 90;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    background: #358a5b;
    box-shadow: 0 3px 12px rgba(17, 17, 17, .16);
    font-size: 21px;
    opacity: .9;
    text-decoration: none;
    transition: opacity .18s ease, transform .18s ease;
}

.landing-whatsapp:hover {
    color: #fff;
    opacity: 1;
    transform: translateY(-2px);
}

.policy-page {
    width: 100%;
    min-height: 100vh;
    padding: 24px clamp(20px, 6vw, 80px) 60px;
    background: var(--canvas);
}

.policy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
}

.policy-header .landing-brand .brand-logo {
    width: 78px;
    height: 48px;
    object-fit: contain;
}

.policy-nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.policy-nav-controls .language-control {
    display: inline-flex;
    align-items: center;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-sizing: border-box;
}

.policy-nav-controls .language-select {
    height: 36px;
    min-height: 0 !important;
    padding-block: 4px !important;
    line-height: 1;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.policy-nav-controls .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-secondary);
    box-sizing: border-box;
    cursor: pointer;
    transition: all .2s ease;
}

.policy-nav-controls .theme-toggle:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.policy-nav-controls .policy-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    min-height: 38px;
    padding: 0 16px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: none;
    transform: none;
    transition: all .2s ease;
}

.policy-nav-controls .policy-back-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--surface-soft);
    box-shadow: none;
    transform: none;
}

:root[data-theme="dark"] .policy-nav-controls .policy-back-btn {
    background: var(--surface-soft);
    border-color: var(--line);
    color: var(--ink);
}

:root[data-theme="dark"] .policy-nav-controls .policy-back-btn:hover {
    border-color: var(--brand);
    color: var(--mint);
}

.policy-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md, 16px);
    padding: clamp(24px, 5vw, 56px);
    box-shadow: var(--shadow-card);
}

.policy-content h1 {
    margin: 0 0 10px;
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--ink);
}

.policy-meta {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.policy-content h2 {
    margin: 32px 0 12px;
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.policy-content p,
.policy-content li {
    color: var(--ink-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.policy-content ul {
    margin: 12px 0 20px;
    padding-left: 24px;
}

.policy-content a {
    color: var(--brand);
    text-decoration: underline;
}

.admin-shortcuts .admin-shortcut {
    display: grid;
    min-height: 145px;
    align-content: start;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.admin-shortcuts .admin-shortcut:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
}

.admin-shortcut>i {
    color: var(--brand);
    font-size: 20px;
}

.admin-shortcut>strong {
    color: var(--ink);
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: 14px;
}

.admin-shortcut>span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

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

.admin-record {
    border: 1px solid var(--line);
    border-radius: 12px;
}

.admin-record>summary,
.agent-record {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    color: var(--ink);
    list-style: none;
}

.admin-record>summary {
    cursor: pointer;
}

.admin-record>summary::-webkit-details-marker {
    display: none;
}

.admin-record>summary>span:first-child,
.agent-record>span:first-child {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.admin-record>summary small,
.agent-record small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
}

.admin-record-balance {
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-edit-form {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-top: 1px solid var(--line);
}

.admin-user-flags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.admin-user-flags label,
.admin-edit-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-secondary);
    font-size: 12px;
}

.admin-user-flags input[type="checkbox"],
.admin-edit-form .form-check input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.agent-record {
    border: 1px solid var(--line);
    border-radius: 12px;
}

.agent-record-status {
    color: var(--brand);
    font-size: 11px;
}

.error-page-card {
    max-width: 640px;
    margin: clamp(24px, 8vh, 80px) auto;
    padding: clamp(28px, 6vw, 56px);
}

.error-page-code {
    display: block;
    margin-bottom: 12px;
    color: var(--brand);
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: clamp(56px, 12vw, 112px);
    font-weight: 800;
    letter-spacing: -.08em;
    line-height: 1;
}

.error-page-card .card-title {
    margin: 0 0 10px;
    font-size: clamp(22px, 4vw, 30px);
}

.error-page-card .card-subtitle {
    margin: 0 0 24px;
    line-height: 1.7;
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .app-body,
:root[data-theme="dark"] .auth-body {
    background: var(--canvas);
    color: var(--ink);
}

@media (prefers-color-scheme: dark) {

    :root:not([data-theme]) body,
    :root:not([data-theme]) .app-body,
    :root:not([data-theme]) .auth-body {
        background: var(--canvas);
        color: var(--ink);
    }
}

:root[data-theme="dark"] .sidebar {
    color: var(--ink);
    background: #1c211d;
    border-color: var(--line);
}

:root[data-theme="dark"] .workspace-label,
:root[data-theme="dark"] .nav-link,
:root[data-theme="dark"] .nav-link i {
    color: var(--muted);
}

:root[data-theme="dark"] .nav-link:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

:root[data-theme="dark"] .nav-link.active {
    color: var(--brand);
    background: #29332b;
}

:root[data-theme="dark"] .nav-link.active i {
    color: var(--brand);
}

:root[data-theme="dark"] .topbar {
    background: rgba(23, 26, 23, .96);
    border-color: var(--line);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .table-wrapper {
    color: var(--ink);
    border-color: var(--line);
}

:root[data-theme="dark"] .card:hover {
    border-color: #4a554b;
}

:root[data-theme="dark"] th {
    color: var(--muted);
    background: var(--surface-soft);
}

:root[data-theme="dark"] td {
    color: var(--ink-secondary);
    border-color: var(--line);
}

:root[data-theme="dark"] td code {
    color: var(--muted);
}

:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .topbar-user {
    color: var(--muted);
}

:root[data-theme="dark"] .qr-box {
    color: var(--ink);
    background: var(--surface);
}

:root[data-theme="dark"] .wallet-overview {
    color: var(--ink);
    background: #232a24;
    border-color: var(--line);
}

:root[data-theme="dark"] .wallet-overview .metric-label,
:root[data-theme="dark"] .wallet-overview .metric-value,
:root[data-theme="dark"] .wallet-overview .metric-value span,
:root[data-theme="dark"] .wallet-overview-main>p,
:root[data-theme="dark"] .wallet-overview .wallet-text-link {
    color: var(--ink);
}

:root[data-theme="dark"] .wallet-overview-qr img {
    background: #fff;
}

:root[data-theme="dark"] .btn-secondary {
    color: var(--ink);
    background: var(--surface-soft);
    border-color: var(--line);
}

:root[data-theme="dark"] .btn-secondary:hover {
    color: var(--ink);
    background: #303831;
}

:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .btn-kyc {
    color: #172019;
    background: var(--brand);
}

:root[data-theme="dark"] .btn-primary:hover,
:root[data-theme="dark"] .btn-kyc:hover {
    color: #172019;
    background: var(--brand-hover);
}

:root[data-theme="dark"] input[type="text"],
:root[data-theme="dark"] input[type="email"],
:root[data-theme="dark"] input[type="password"],
:root[data-theme="dark"] input[type="number"],
:root[data-theme="dark"] input[type="tel"],
:root[data-theme="dark"] input[type="search"],
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    color: var(--ink);
    background: #1d221e;
    border-color: #414a42;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
    color: #858e86;
}

:root[data-theme="dark"] th,
:root[data-theme="dark"] tbody tr:hover {
    background: var(--surface-soft);
}

:root[data-theme="dark"] td,
:root[data-theme="dark"] .recent-transaction,
:root[data-theme="dark"] .card-header,
:root[data-theme="dark"] .profile-details>div,
:root[data-theme="dark"] .support-ticket-row {
    border-color: var(--line);
}

:root[data-theme="dark"] .recent-transaction-copy strong,
:root[data-theme="dark"] .page-heading h1,
:root[data-theme="dark"] .card-title,
:root[data-theme="dark"] .profile-identity h2,
:root[data-theme="dark"] .form-info-card h2,
:root[data-theme="dark"] label {
    color: var(--ink);
}

:root[data-theme="dark"] .form-info-card,
:root[data-theme="dark"] .scanner-panel,
:root[data-theme="dark"] .kyc-banner {
    color: var(--ink);
    background: var(--surface-soft);
    border-color: var(--line);
}

:root[data-theme="dark"] .alert-success {
    color: #b6e0bf;
    background: #26352b;
    border-color: #3d5a44;
}

:root[data-theme="dark"] .alert-error {
    color: #f0b5b5;
    background: #3a2828;
    border-color: #654040;
}

:root[data-theme="dark"] .alert-warning,
:root[data-theme="dark"] .alert-info {
    color: #ead18d;
    background: #383321;
    border-color: #5a5030;
}

:root[data-theme="dark"] .landing-photos,
:root[data-theme="dark"] .landing-faq {
    background: #1d221e;
}

:root[data-theme="dark"] .theme-toggle {
    color: var(--ink-secondary);
}

:root[data-theme="dark"] .auth-privacy,
:root[data-theme="dark"] .auth-legal {
    color: var(--muted);
}

:root[data-theme="dark"] .sidebar-brand .brand-logo,
:root[data-theme="dark"] .landing-brand .brand-logo {
    filter: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .sidebar {
        color: var(--ink);
        background: #1c211d;
        border-color: var(--line);
    }

    :root:not([data-theme]) .workspace-label,
    :root:not([data-theme]) .nav-link,
    :root:not([data-theme]) .nav-link i {
        color: var(--muted);
    }

    :root:not([data-theme]) .nav-link:hover {
        color: var(--ink);
        background: var(--surface-soft);
    }

    :root:not([data-theme]) .nav-link.active {
        color: var(--brand);
        background: #29332b;
    }

    :root:not([data-theme]) .nav-link.active i {
        color: var(--brand);
    }

    :root:not([data-theme]) .topbar {
        background: rgba(23, 26, 23, .96);
        border-color: var(--line);
    }

    :root:not([data-theme]) .topbar-user {
        color: var(--ink-secondary);
    }

    :root:not([data-theme]) .card,
    :root:not([data-theme]) .table-wrapper {
        color: var(--ink);
        background: var(--surface);
        border-color: var(--line);
    }

    :root:not([data-theme]) .card:hover {
        border-color: #4a554b;
    }

    :root:not([data-theme]) th {
        color: var(--muted);
        background: var(--surface-soft);
    }

    :root:not([data-theme]) td {
        color: var(--ink-secondary);
        border-color: var(--line);
    }

    :root:not([data-theme]) td code {
        color: var(--muted);
    }

    :root:not([data-theme]) .eyebrow,
    :root:not([data-theme]) .topbar-user {
        color: var(--muted);
    }

    :root:not([data-theme]) .wallet-overview {
        color: var(--ink);
        background: #232a24;
        border-color: var(--line);
    }

    :root:not([data-theme]) .wallet-overview .metric-label,
    :root:not([data-theme]) .wallet-overview .metric-value,
    :root:not([data-theme]) .wallet-overview .metric-value span,
    :root:not([data-theme]) .wallet-overview-main>p,
    :root:not([data-theme]) .wallet-overview .wallet-text-link {
        color: var(--ink);
    }

    :root:not([data-theme]) .btn-secondary {
        color: var(--ink);
        background: var(--surface-soft);
        border-color: var(--line);
    }

    :root:not([data-theme]) .btn-primary,
    :root:not([data-theme]) .btn-kyc {
        color: #172019;
        background: var(--brand);
    }

    :root:not([data-theme]) .btn-primary:hover,
    :root:not([data-theme]) .btn-kyc:hover {
        color: #172019;
        background: var(--brand-hover);
    }

    :root:not([data-theme]) input[type="text"],
    :root:not([data-theme]) input[type="email"],
    :root:not([data-theme]) input[type="password"],
    :root:not([data-theme]) input[type="number"],
    :root:not([data-theme]) input[type="tel"],
    :root:not([data-theme]) input[type="search"],
    :root:not([data-theme]) select,
    :root:not([data-theme]) textarea {
        color: var(--ink);
        background: #1d221e;
        border-color: #414a42;
    }

    :root:not([data-theme]) th,
    :root:not([data-theme]) tbody tr:hover,
    :root:not([data-theme]) .landing-photos,
    :root:not([data-theme]) .landing-faq {
        background: var(--surface-soft);
    }

    :root:not([data-theme]) .card-header,
    :root:not([data-theme]) .recent-transaction,
    :root:not([data-theme]) .profile-details>div {
        border-color: var(--line);
    }

    :root:not([data-theme]) .qr-box,
    :root:not([data-theme]) .scanner-panel,
    :root:not([data-theme]) .form-info-card,
    :root:not([data-theme]) .kyc-banner {
        color: var(--ink);
        background: var(--surface-soft);
        border-color: var(--line);
    }

    :root:not([data-theme]) .alert-success {
        color: #b6e0bf;
        background: #26352b;
        border-color: #3d5a44;
    }

    :root:not([data-theme]) .alert-error {
        color: #f0b5b5;
        background: #3a2828;
        border-color: #654040;
    }

    :root:not([data-theme]) .alert-warning,
    :root:not([data-theme]) .alert-info {
        color: #ead18d;
        background: #383321;
        border-color: #5a5030;
    }

    :root:not([data-theme]) .sidebar-brand .brand-logo,
    :root:not([data-theme]) .landing-brand .brand-logo {
        filter: none;
    }
}

@media (max-width: 880px) {
    .auth-panel {
        min-height: 100vh;
        padding: 22px clamp(22px, 7vw, 60px);
    }

    .auth-container {
        margin-top: auto;
        margin-bottom: auto;
    }

    .wallet-overview {
        grid-template-columns: minmax(0, 1fr) 110px;
        gap: 12px;
    }

    .wallet-overview-qr {
        justify-items: end;
    }

    .wallet-overview-qr img {
        width: 92px;
        height: 92px;
    }

    .landing-header {
        padding: 10px clamp(16px, 4vw, 32px);
        min-height: 64px;
    }

    .landing-brand .brand-logo {
        width: 62px;
        height: 38px;
    }

    .landing-nav-link,
    .landing-nav>a:not(.landing-login),
    .landing-nav>a:not(.btn):not(.landing-login) {
        display: none !important;
    }

    .landing-header-right {
        gap: 10px;
    }

    .landing-nav {
        gap: 8px;
    }

    .landing-nav-controls {
        gap: 6px;
    }

    .landing-photos {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .landing-footer {
        flex-wrap: wrap;
        gap: 14px 22px;
    }

    .landing-footer-links {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-user-flags {
        grid-template-columns: 1fr;
    }

    .agent-record {
        flex-wrap: wrap;
    }
}

#minting,
#companies,
#businesses,
#ledger,
#payments,
#activity {
    scroll-margin-top: 88px;
}

@media (max-width: 480px) {
    .auth-panel {
        padding-right: 20px;
        padding-left: 20px;
    }

    .wallet-overview {
        position: relative;
        display: block;
        padding-top: 20px;
    }

    .wallet-overview-main {
        padding-right: 82px;
    }

    .wallet-overview-qr {
        position: absolute;
        top: 20px;
        right: 20px;
        display: block;
    }

    .wallet-overview-qr img {
        width: 72px;
        height: 72px;
    }

    .wallet-overview .wallet-quick-actions {
        margin-top: 18px;
    }

    .landing-hero {
        --landing-gutter: 20px;
        padding: 18px var(--landing-gutter) 30px;
    }

    .landing-header {
        padding: 8px 14px;
        min-height: 56px;
        gap: 8px;
    }

    .landing-brand .brand-logo {
        width: 50px;
        height: 32px;
    }

    .landing-header-right {
        gap: 6px;
    }

    .landing-nav {
        gap: 6px;
    }

    .landing-nav-link,
    .landing-nav>a:not(.landing-login),
    .landing-nav>a:not(.btn):not(.landing-login) {
        display: none !important;
    }

    .landing-nav .landing-login {
        height: 36px;
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    .landing-nav-controls {
        gap: 4px;
    }

    .landing-nav-controls .language-control {
        height: 36px;
        min-height: 36px;
        padding: 0 6px;
    }

    .landing-nav-controls .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .policy-header {
        margin-bottom: 20px;
        padding-bottom: 14px;
        gap: 8px;
    }

    .policy-header .landing-brand .brand-logo {
        width: 50px;
        height: 32px;
    }

    .policy-nav-controls {
        gap: 6px;
    }

    .policy-nav-controls .language-control,
    .policy-nav-controls .theme-toggle,
    .policy-nav-controls .policy-back-btn {
        height: 36px;
        min-height: 36px;
    }

    .policy-nav-controls .theme-toggle {
        width: 36px;
    }

    .policy-nav-controls .policy-back-btn {
        padding: 0 10px;
        font-size: 12px;
    }

    .landing-hero-copy {
        padding: 56px 0 32px;
    }

    .landing-hero h1 {
        font-size: clamp(37px, 11vw, 52px);
    }

    .landing-origin {
        margin-top: 38px;
    }

    .landing-photos,
    .landing-metrics,
    .landing-benefits,
    .landing-faq {
        padding: 56px 20px;
    }

    .landing-footer {
        padding: 20px;
    }

    .landing-footer .landing-brand {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .landing-hero-copy>*,
    .rotating-phrases [data-rotating-phrase],
    .landing-photo,
    .landing-slide-progress span {
        animation: none !important;
        transition: none !important;
    }

    .rotating-phrases [data-rotating-phrase] {
        display: none;
    }

    .rotating-phrases [data-rotating-phrase].is-active {
        display: inline;
    }

    .landing-photo:not(.is-active) {
        display: none;
    }
}

.checkout-card {
    width: min(100%, 660px);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 34px);
    border-radius: 4px;
}

.checkout-recipient {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 5px;
    background: var(--surface-soft);
}

.checkout-recipient .profile-avatar {
    width: 58px;
    height: 58px;
}

.checkout-recipient h2 {
    margin: 0;
    color: var(--ink);
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: clamp(16px, 3vw, 20px);
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.checkout-recipient p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.checkout-summary {
    display: grid;
    gap: 0;
    margin: 22px 0 24px;
}

.checkout-summary>div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.checkout-summary dt {
    color: var(--muted);
    font-size: 13px;
}

.checkout-summary dd {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.checkout-summary .checkout-total {
    margin-top: 5px;
    border-bottom: 0;
}

.checkout-summary .checkout-total dt,
.checkout-summary .checkout-total dd {
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.checkout-card form .btn {
    width: 100%;
    min-height: 48px;
}

.checkout-cancel {
    justify-content: center;
    width: 100%;
    margin-top: 15px;
    padding: 8px;
}

@media (max-width: 480px) {
    .checkout-card {
        padding: 16px;
    }

    .checkout-recipient {
        gap: 12px;
        padding: 14px;
    }

    .checkout-recipient .profile-avatar {
        width: 48px;
        height: 48px;
    }

    .checkout-summary>div {
        gap: 10px;
    }
}

.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
}

.confirm-modal {
    width: min(100%, 420px);
    padding: 24px;
    margin: 0;
}

.confirm-modal h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--ink);
}

.confirm-modal p {
    margin: 0 0 20px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ink-secondary);
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-metrics {
    background: var(--surface-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.landing-live-badge {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.landing-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.landing-metric-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(24px, 3vw, 36px);
    border-right: 1px solid var(--line);
}

.landing-metric-card:first-child {
    padding-left: 0;
}

.landing-metric-card:last-child {
    padding-right: 0;
    border-right: 0;
}

.landing-metric-value {
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.1;
    color: var(--ink);
    transition: color .25s ease;
}

.landing-metric-value.is-updated {
    color: var(--brand);
}

.landing-metric-label {
    color: var(--ink-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (max-width: 880px) {
    .landing-metrics-grid {
        grid-template-columns: 1fr;
    }

    .landing-metric-card,
    .landing-metric-card:first-child,
    .landing-metric-card:last-child {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: baseline;
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .landing-metric-card:last-child {
        border-bottom: 0;
    }

    .landing-metric-value {
        grid-column: 2;
        grid-row: 1 / 3;
    }
}

/* Unified compact dashboard hierarchy & UX/UI refinements */
.dash-kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dash-kpi-card {
    padding: 16px 18px;
}

.dash-kpi-value {
    display: block;
    margin: 6px 0 4px;
    color: var(--ink);
    font-family: Manrope, sans-serif;
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.dash-kpi-value span {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
}

.dash-kpi-note {
    margin: 0;
    color: var(--ink-secondary);
    font-size: 11.5px;
    line-height: 1.45;
}

.dash-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-left: 3px solid var(--brand);
    font-size: 12px;
}

.dash-banner-success {
    border-left-color: var(--success, #168960);
    background: rgba(22, 137, 96, 0.05);
}

.dash-banner-warning {
    border-left-color: #d97706;
    background: rgba(245, 158, 11, 0.07);
}

.dash-banner-danger {
    border-left-color: #dc2626;
    background: rgba(239, 68, 68, 0.06);
}

.dash-banner-brand {
    border-left-color: var(--brand);
    background: rgba(40, 93, 67, 0.04);
}

.dash-banner-copy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex: 1 1 280px;
}

.dash-banner-copy>i {
    flex: 0 0 auto;
    font-size: 1.05rem;
    margin-top: 2px;
    color: var(--brand);
}

.dash-banner-warning .dash-banner-copy>i {
    color: #d97706;
}

.dash-banner-danger .dash-banner-copy>i {
    color: #dc2626;
}

.dash-banner-copy strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.dash-banner-copy p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--ink-secondary);
}

.dash-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dash-split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.dash-side-stack {
    display: grid;
    gap: 16px;
}

.dash-qr-panel {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
}

.dash-qr-frame {
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
}

.dash-qr-frame img {
    display: block;
    width: 152px;
    height: 152px;
}

.dash-token-box {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--surface-soft);
    border: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-token-box code {
    font-size: 11px;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.dash-help-list {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--ink-secondary);
}

.dash-subtle-meta {
    margin: 0;
    font-size: 11.5px;
    color: var(--muted);
}

.dash-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px dashed var(--line);
    width: 100%;
}

.dash-inline-form .form-group {
    margin: 0;
}

.dash-inline-form label {
    font-size: 11px;
}

/* External QR Entry & Notifications Limit Banner */
.qr-entry-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-pale);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

.qr-entry-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.qr-entry-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-family: Manrope, sans-serif;
    font-weight: 800;
    font-size: 14px;
    flex: 0 0 auto;
}

.qr-entry-copy {
    flex: 1 1 160px;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.qr-entry-copy strong {
    font-size: 14px;
    color: var(--ink);
}

.qr-entry-copy small {
    font-size: 11.5px;
    color: var(--muted);
}

.qr-entry-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.notifications-limit-banner {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.notifications-limit-copy {
    display: grid;
    gap: 3px;
    max-width: 620px;
}

.notifications-limit-copy strong {
    font-size: 12.5px;
    color: var(--ink);
}

.notifications-limit-copy span {
    font-size: 11.5px;
    color: var(--ink-secondary);
}

/* UX/UI Polish: Table toolbar, live inline validation, mobile bottom bar */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.table-search-input {
    max-width: 280px;
    min-height: 36px !important;
    padding: 6px 11px !important;
    font-size: 12px !important;
}

.inline-validation-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
}

.inline-validation-hint.is-valid {
    color: var(--success, #168960);
}

.inline-validation-hint.is-invalid {
    color: var(--danger, #b91c1c);
}

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

/* Dark mode polish for tables, selects, banners, and mobile bar */
:root[data-theme="dark"] .table-wrapper,
:root[data-theme="dark"] th,
:root[data-theme="dark"] td,
:root[data-theme="dark"] tbody tr:hover,
:root[data-theme="dark"] .language-control,
:root[data-theme="dark"] .dash-token-box,
:root[data-theme="dark"] .notifications-limit-banner,
:root[data-theme="dark"] .qr-entry-summary {
    border-color: var(--line);
    background-color: var(--surface-soft);
    color: var(--ink-secondary);
}

:root[data-theme="dark"] td strong,
:root[data-theme="dark"] .dash-kpi-value,
:root[data-theme="dark"] .dash-banner-copy strong,
:root[data-theme="dark"] .notifications-limit-copy strong {
    color: var(--ink);
}

:root[data-theme="dark"] input[type="text"],
:root[data-theme="dark"] input[type="email"],
:root[data-theme="dark"] input[type="password"],
:root[data-theme="dark"] input[type="number"],
:root[data-theme="dark"] input[type="tel"],
:root[data-theme="dark"] input[type="search"],
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    color: var(--ink);
    background-color: #1d221e;
    border-color: #414a42;
}

/* Landing Santa hat & minimalist holiday identity */
.landing-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.landing-santa-hat {
    position: absolute;
    top: -11px;
    left: -10px;
    width: 34px;
    height: auto;
    pointer-events: none;
    transform: rotate(-14deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18));
    z-index: 2;
}

.landing-social-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.landing-social-links a {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--ink-secondary);
    background: var(--surface);
    text-decoration: none;
    font-size: 14px;
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.landing-social-links a:hover {
    color: var(--brand);
    border-color: var(--brand);
    transform: translateY(-1px);
}

/* POS QR Terminal Card (Merchant Dashboard) */
.pos-qr-stage {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 18px;
    margin: 12px 0 14px;
}

.pos-qr-frame {
    padding: 12px;
    border-radius: 2px;
    background: #ffffff;
    border: 1px solid var(--line);

}

.pos-qr-frame img {
    display: block;
    width: 148px;
    height: 148px;
}

.pos-qr-caption {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}

.pos-qr-specs {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.pos-qr-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface);
}

.pos-qr-spec-row+.pos-qr-spec-row {
    border-top: 1px solid var(--line);
}

.pos-qr-spec-meta {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.pos-qr-spec-meta code {
    font-size: 11px;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-qr-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pos-qr-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Floating Cookie Consent Card */
.cookie-consent-card[hidden] {
    display: none !important;
}

.cookie-consent-card {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 45;
    width: min(calc(100vw - 32px), 360px);
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.cookie-consent-head strong {
    display: block;
    font-family: Manrope, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.cookie-consent-card p {
    margin: 0 0 10px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--ink-secondary);
}

.cookie-consent-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 11.5px;
}

.cookie-consent-links a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.cookie-consent-links a:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cookie-consent-actions .btn {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11.5px;
}

@media (max-width: 600px) {
    .cookie-consent-card {
        left: 14px;
        right: 14px;
        bottom: 14px;
        width: auto;
    }
}

.dash-accordion {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.dash-accordion summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    list-style: none;
}

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

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

.referral-actions-row .btn {
    flex: 1 1 140px;
    justify-content: center;
}

@media (max-width: 980px) {
    .dash-split {
        grid-template-columns: 1fr;
    }

    .dash-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .dash-kpi-strip {
        grid-template-columns: 1fr;
    }

    .landing-santa-hat {
        top: -9px;
        left: -8px;
        width: 28px;
    }

    .wallet-overview {
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 14px;
        padding: 18px;
    }

    .wallet-overview-qr {
        padding: 6px;
    }

    .wallet-overview-qr img {
        width: 76px;
        height: 76px;
    }

    .wallet-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 4px;
    }

    .wallet-overview .wallet-quick-actions .btn {
        width: 100%;
        min-height: 42px;
        padding: 8px 8px;
        font-size: 12px;
        line-height: 1.15;
        text-align: center;
        justify-content: center;
    }

    .wallet-overview .wallet-text-link {
        grid-column: 1 / -1;
        justify-self: start;
        padding-top: 4px;
    }
}

/* Global Card & Template Visual Hierarchy Standardization */
.grid-2 > .card,
.grid-3 > .card,
.grid-4 > .card,
.dash-kpi-strip > .card,
.social-rewards > .card,
.dash-split > .card,
.dash-side-stack > .card,
.form-page-grid > .card {
    margin-top: 0;
}
.card h2,
.card-title,
.form-info-card h2,
.checkout-recipient h2 {
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.card h3,
.section-subheading {
    margin: 0 0 10px;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}
.card-subtitle,
.form-info-card p,
.form-info-card ul,
.form-info-card ol {
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-secondary);
}
.form-info-card ul,
.form-info-card ol {
    margin: 0;
    padding-left: 18px;
}
.form-info-card li + li {
    margin-top: 4px;
}
.receipt-details {
    font-size: 12px;
}
.receipt-details dt {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.receipt-details dd {
    font-size: 12.5px;
    color: var(--ink);
}
.checkout-summary dt,
.checkout-summary dd {
    font-size: 12.5px;
}
.checkout-summary .checkout-total dt,
.checkout-summary .checkout-total dd {
    font-size: 14px;
}

/* Unified Remittance & Voucher Surfaces */
.voucher-shell {
    max-width: 660px;
    margin: 0 auto;
}
.voucher-header {
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--line);
    text-align: center;
}
.voucher-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.voucher-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.voucher-code-box {
    display: inline-block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(20px, 4.5vw, 28px);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--ink);
}
.voucher-amount-block {
    margin-top: 16px;
}
.voucher-amount-value {
    margin-top: 4px;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: clamp(24px, 4.5vw, 32px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}
.voucher-amount-value span {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}
.voucher-beneficiary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.voucher-beneficiary-name {
    margin: 0 0 6px;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.voucher-beneficiary-line {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--ink-secondary);
}
.voucher-qr-box {
    text-align: center;
}
.voucher-qr-box img {
    width: 118px;
    height: 118px;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #ffffff;
}
.voucher-qr-box small {
    display: block;
    margin-top: 4px;
    font-size: 10.5px;
    color: var(--muted);
}
.voucher-instructions {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-secondary);
}
.voucher-instructions strong.voucher-instructions-title {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    color: var(--ink);
}
.voucher-instructions ul {
    margin: 0;
    padding-left: 18px;
}
.payout-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: var(--surface-soft);
    margin-bottom: 18px;
}
.payout-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.payout-code-title {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--ink);
}
.payout-amount-box {
    margin: 12px 0 14px;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.payout-amount-value {
    display: block;
    margin-top: 4px;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}
.btn-xs {
    min-height: 32px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
}
@media (max-width: 600px) {
    .voucher-beneficiary-grid {
        grid-template-columns: 1fr;
    }
    .voucher-qr-box {
        justify-self: start;
    }
}