/* Force light theme — app UI is designed for light backgrounds */
:root {
    color-scheme: light only;
}

html {
    color-scheme: light only;
    background-color: #f5f5f5;
}

body,
.app-shell {
    background-color: #f5f5f5;
    color: #111827;
}

/* Keep form fields readable when the phone is in dark mode */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
textarea,
select {
    background-color: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af;
    opacity: 1;
}

.service-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    flex-shrink: 0;
}

.service-icon-badge-lg {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.125rem;
}

.service-grid-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.quick-action-btn span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.01em;
}


.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.receipt-zigzag {
    position: relative;
}
.receipt-zigzag::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(135deg, #A0E7E5 25%, transparent 25%) -8px 0,
                linear-gradient(225deg, #A0E7E5 25%, transparent 25%) -8px 0,
                linear-gradient(315deg, #A0E7E5 25%, transparent 25%),
                linear-gradient(45deg, #A0E7E5 25%, transparent 25%);
    background-size: 16px 16px;
    background-color: #A0E7E5;
}

.success-starburst {
    clip-path: polygon(
        50% 0%, 61% 11%, 75% 5%, 79% 20%, 95% 22%, 88% 35%,
        100% 50%, 88% 65%, 95% 78%, 79% 80%, 75% 95%, 61% 89%,
        50% 100%, 39% 89%, 25% 95%, 21% 80%, 5% 78%, 12% 65%,
        0% 50%, 12% 35%, 5% 22%, 21% 20%, 25% 5%, 39% 11%
    );
}

/* Send money â processing spinner */
.send-processing-spinner {
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 9999px;
    border: 6px solid rgba(1, 199, 177, 0.18);
    border-top-color: #01C7B1;
    border-right-color: #01C7B1;
}

/* Send result screens (success / failed) */
.send-result-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem max(2rem, env(safe-area-inset-bottom, 0px));
    text-align: center;
}

.send-result-inner {
    width: 100%;
    max-width: 22rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.send-result-icon {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.send-result-icon--success {
    background: #22c55e;
    border-radius: 9999px;
    color: #fff;
    animation: success-check-pop 0.55s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.send-result-ray {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    margin: -0.2rem 0 0 -0.2rem;
    border-radius: 999px;
    background: #4ade80;
    animation: success-check-ray 1.5s ease-out infinite;
}

.send-result-ray:nth-child(1) { transform: rotate(18deg) translateY(-3.35rem); }
.send-result-ray:nth-child(2) { transform: rotate(108deg) translateY(-3.35rem); animation-delay: 0.12s; }
.send-result-ray:nth-child(3) { transform: rotate(198deg) translateY(-3.35rem); animation-delay: 0.24s; }
.send-result-ray:nth-child(4) { transform: rotate(288deg) translateY(-3.35rem); animation-delay: 0.36s; }

@keyframes success-check-pop {
    0% { transform: scale(0.35); opacity: 0; }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes success-check-ray {
    0% { opacity: 0; }
    25% { opacity: 1; }
    100% { opacity: 0.2; }
}

.send-result-icon--pending {
    background: #fff7ed;
    border-radius: 9999px;
    color: #ea580c;
}

.send-result-icon--failed {
    background: #fee2e2;
    border-radius: 9999px;
}

.send-result-check {
    position: relative;
    z-index: 1;
    width: 2.5rem;
    height: 2.5rem;
    stroke-width: 2.5;
}

.send-result-x {
    width: 3.5rem;
    height: 3.5rem;
    color: #ef4444;
}

.send-result-clock {
    width: 2.75rem;
    height: 2.75rem;
    color: #ea580c;
}

.send-result-copy {
    width: 100%;
    margin-top: 1.75rem;
    margin-bottom: 1.5rem;
}

.send-result-brand {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #01C7B1;
    letter-spacing: 0.02em;
    margin: 0 0 0.375rem;
}

.send-result-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    text-align: center;
}

.send-result-message {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
    text-align: center;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
}

.send-result-message strong {
    color: #111827;
    font-weight: 700;
}

.send-result-details {
    width: 100%;
    background: #f3f4f6;
    border-radius: 1rem;
    padding: 0.875rem 1.125rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.send-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.4375rem 0;
    font-size: 0.875rem;
    line-height: 1.35;
}

.send-result-row--total {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.25rem;
    padding-top: 0.625rem;
}

.send-result-label {
    color: #9ca3af;
    flex-shrink: 0;
}

.send-result-value {
    color: #111827;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

.send-result-value--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

.send-result-value--amount {
    font-size: 0.9375rem;
}

.send-result-btn {
    display: block;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 0.875rem;
    text-align: center;
    transition: background-color 0.15s ease;
}

.send-result-btn--success {
    background-color: #01C7B1;
    color: #fff;
}

.send-result-btn--success:hover {
    background-color: #00A693;
}

.send-result-btn--pending {
    background-color: #ea580c;
    color: #fff;
}

.send-result-btn--pending:hover {
    background-color: #c2410c;
}

.send-result-btn--failed {
    background-color: #01C7B1;
    color: #fff;
    margin-bottom: 0.75rem;
}

.send-result-btn--failed:hover {
    background-color: #00A693;
}

.send-result-btn--tax {
    background-color: #d97706;
    color: #fff;
    margin-bottom: 0.75rem;
}

.send-result-btn--tax:hover {
    background-color: #b45309;
}

.send-result-link {
    color: #01C7B1;
    font-weight: 600;
    font-size: 0.9375rem;
}

.send-result-footnote {
    margin: 0.875rem 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    line-height: 1.4;
}

.payment-option:has(input:checked) {
    background-color: rgba(160, 231, 229, 0.45);
}

input[type="radio"] {
    accent-color: #01C7B1;
}

.keypad-key {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.send-nav-home-active {
    background-color: #A0E7E5;
    border-radius: 9999px;
    padding: 6px;
}

@media (max-width: 380px) {
    .grid-cols-3.gap-3 > a {
        padding: 0.75rem;
    }
}

/* Hubtel-style shared UI */
.hub-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hub-btn {
    width: 100%;
    background-color: #01C7B1;
    color: #fff;
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: background-color 0.15s ease;
}

.hub-btn:hover {
    background-color: #00A693;
}

.hub-input {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
}

.hub-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(1, 199, 177, 0.3);
}

.hub-page {
    background: #fff;
    min-height: 100vh;
}

.hub-section-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

/* Send money flow â clearer type & color */
.send-flow-page {
    color: #111827;
}

.send-section-title {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.625rem;
    padding-left: 0.625rem;
    border-left: 4px solid #01C7B1;
    color: #0f766e;
}

.send-section-title--bank {
    border-left-color: #4338ca;
    color: #3730a3;
}

.send-section-title--momo {
    border-left-color: #0d9488;
    color: #115e59;
}

.send-field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.375rem;
}

.send-form-intro {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.send-field-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.send-field-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.send-field-input:focus {
    outline: none;
    border-color: #01C7B1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(1, 199, 177, 0.2);
}

.send-field-input--account {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.04em;
}

.send-field-error {
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.send-primary-btn {
    display: block;
    background: linear-gradient(135deg, #01C7B1 0%, #009688 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 4px 12px rgba(1, 199, 177, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.send-primary-btn:hover {
    box-shadow: 0 6px 16px rgba(1, 199, 177, 0.45);
}

.send-provider-banner {
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
}

.send-provider-banner--momo {
    background: linear-gradient(135deg, #ecfdf5 0%, #ccfbf1 100%);
    border: 1px solid #99f6e4;
}

.send-provider-banner--bank {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
}

.send-recipient-card {
    border: 1px solid transparent;
}

.send-recipient-card--momo {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}

.send-recipient-card--bank {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: #a5b4fc;
}

.send-recipient-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #111827;
}

.send-recipient-primary {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e1b4b;
}

.send-recipient-meta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4b5563;
}

.send-recipient-edit {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0d9488;
}

.send-keypad {
    background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 100%);
    border-radius: 1rem 1rem 0 0;
}

.card-brands-accepted .card-brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.375rem;
    padding: 0 0.35rem;
    border-radius: 0.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.card-brand-svg {
    height: 0.875rem;
    width: auto;
    display: block;
}

.card-brand-svg--visa {
    width: 2rem;
    height: 0.625rem;
}

.card-brand-badge {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.125rem;
    min-width: 2.5rem;
    max-width: 4.75rem;
    height: 1.375rem;
    pointer-events: none;
    overflow: hidden;
}

.card-brand-badge--empty {
    opacity: 0.4;
}

.card-brand-badge--visa,
.card-brand-badge--mastercard,
.card-brand-badge--amex,
.card-brand-badge--discover,
.card-brand-badge--diners,
.card-brand-badge--jcb,
.card-brand-badge--unionpay,
.card-brand-badge--maestro,
.card-brand-badge--rupay,
.card-brand-badge--elo,
.card-brand-badge--mir {
    opacity: 1;
}

.card-brand-badge svg,
.card-brand-badge-svg {
    height: 1.125rem;
    width: auto;
    display: block;
    max-width: 100%;
}

.card-brand-badge-svg--visa {
    width: 2.125rem;
    height: 0.75rem;
}

.card-brand-badge-svg--text {
    height: 0.875rem;
    width: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.send-number-input {
    height: 2.875rem;
    max-width: 100%;
}

.checkout-panel {
    max-width: 100%;
    overflow: hidden;
}

.checkout-field {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    height: 2.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background: #f3f4f6;
    border-radius: 0.75rem;
    border: none;
}

.checkout-field:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(1, 199, 177, 0.3);
}

.checkout-expiry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 0.5rem;
    width: 100%;
}

#card-details {
    overflow: hidden;
}

.checkout-submit {
    box-sizing: border-box;
}

.provider-logo-img {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2px;
    box-sizing: border-box;
}

.provider-logo-img[class*="rounded-xl"] {
    padding: 4px;
}

.brand-name {
    letter-spacing: -0.02em;
    line-height: 1.1;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

/* Home page header */
.home-header {
    background: #fff;
    padding-top: max(0.625rem, env(safe-area-inset-top, 0px));
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.875rem;
}

.home-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-header-profile {
    position: relative;
    flex-shrink: 0;
    display: block;
}

.home-header-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: linear-gradient(145deg, #2563eb 0%, #60a5fa 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.home-header-avatar--photo {
    object-fit: cover;
    display: block;
}

.home-header-greeting {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.home-header-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.home-header-title-text {
    min-width: 0;
}

.home-header-sub {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0.1875rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.3;
}

.home-header-status-dot {
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 9999px;
    background: #22c55e;
    flex-shrink: 0;
}

.home-header-notify {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #374151;
    transition: background-color 0.15s ease;
}

.home-header-notify:hover {
    background: #f9fafb;
}

.home-header-notify-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.home-header-notify-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    background: #e51c23;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.home-header--guest {
    padding-bottom: 0.625rem;
}

.home-header-guest-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-header-logo {
    display: inline-flex;
}

.app-shell {
    width: 100%;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

/* Prevent iOS zoom on input focus */
@media (max-width: 767px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .checkout-field,
    .send-number-input,
    .hub-input {
        font-size: 16px !important;
    }
}

.balance-amount {
    font-size: clamp(1.35rem, 6.5vw, 2.25rem);
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.balance-amount--on-light {
    color: #111827 !important;
    -webkit-text-fill-color: #111827;
}

.balance-hero {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.balance-hero--emerald {
    background: linear-gradient(135deg, #10b981 0%, #0d9488 100%) !important;
}

.balance-hero--teal {
    background: linear-gradient(135deg, #01c7b1 0%, #00a693 100%) !important;
}

.balance-hero__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
}

.balance-hero__amount {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.balance-hero__meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
}

.balance-hero__link {
    display: block;
    font-size: 0.75rem;
    color: #fef3c7 !important;
    -webkit-text-fill-color: #fef3c7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.balance-hero__btn-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.balance-hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.balance-hero-row .balance-amount {
    flex: 1 1 8rem;
    min-width: 0;
}

.balance-pending-chip {
    flex: 0 1 auto;
    max-width: 100%;
    text-align: right;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    transition: background-color 0.15s ease;
    text-decoration: none;
}

.balance-pending-chip:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

.balance-pending-chip__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.balance-pending-chip__value {
    font-size: 0.875rem;
    font-weight: 800;
    color: #fef3c7 !important;
    -webkit-text-fill-color: #fef3c7;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 380px) {
    .balance-hero-row {
        flex-direction: column;
        align-items: stretch;
    }

    .balance-pending-chip {
        text-align: left;
        width: 100%;
    }
}

.page-title {
    font-size: clamp(1.125rem, 4.5vw, 1.5rem);
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

/* Bottom nav safe area (iPhone home indicator) */
.safe-bottom-nav {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.app-shell-pad {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

/* Admin panel */
.admin-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-nav-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin-nav-scroll::-webkit-scrollbar {
    display: none;
}

.admin-nav-scroll a {
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table-wrap table {
    min-width: 520px;
}

.admin-card-grid {
    display: grid;
    gap: 0.75rem;
}

@media (max-width: 639px) {
    .admin-main {
        padding: 1rem;
    }

    .admin-page-title {
        font-size: 1.25rem;
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .admin-stat-grid .text-3xl {
        font-size: 1.5rem;
    }

    .admin-action-row {
        flex-direction: column;
        align-items: stretch !important;
    }

    .admin-action-row input,
    .admin-action-row .border {
        width: 100% !important;
        max-width: 100%;
    }

    .admin-action-row form {
        width: 100%;
    }
}

@media (min-width: 640px) {
    .admin-main {
        padding: 1.5rem;
    }
}

/* Send flow pages without bottom nav */
.send-flow-page {
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
}

/* Sticky primary action on flow pages (withdraw / receive steps) */
.flow-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: auto;
    padding: 1rem 0 max(1rem, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
}

.keypad {
    max-width: 100%;
}

@media (max-width: 380px) {
    .keypad-key {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
        font-size: 1.125rem;
    }
}

/* ââ Loan flow ââ */
.loan-wrap {
    --loan-accent: #01C7B1;
}

.loan-hero {
    background: linear-gradient(145deg, #0f766e 0%, #01C7B1 55%, #00A693 100%);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    color: #fff;
    text-align: center;
    box-shadow: 0 12px 40px rgba(1, 199, 177, 0.25);
}

.loan-hero__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.loan-hero__title {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.loan-hero__subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    max-width: 20rem;
    margin: 0 auto 1.25rem;
}

.loan-hero__cta {
    display: inline-block;
    background: #fff;
    color: #0f766e;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.loan-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.loan-card__heading {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.loan-card__text {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.loan-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loan-steps li {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    font-size: 0.8125rem;
    color: #4b5563;
}

.loan-steps li strong {
    display: block;
    color: #111827;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.loan-steps li p {
    margin: 0;
    line-height: 1.45;
}

.loan-steps__num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgba(1, 199, 177, 0.12);
    color: #0d9488;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loan-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.loan-tier {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 0.625rem 0.75rem;
    text-align: center;
    border: 1px solid #f3f4f6;
}

.loan-tier__loan {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    color: #111827;
}

.loan-tier__collateral {
    display: block;
    font-size: 0.6875rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.loan-progress {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: #9ca3af;
}

.loan-progress__step {
    white-space: nowrap;
}

.loan-progress__step--active {
    color: #0d9488;
}

.loan-progress__step--done {
    color: #01C7B1;
}

.loan-progress__line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    min-width: 0.5rem;
}

.loan-progress__line--done {
    background: #01C7B1;
}

.loan-type-grid,
.loan-amount-grid {
    display: grid;
    gap: 0.625rem;
}

.loan-type-option,
.loan-amount-option {
    cursor: pointer;
}

.loan-type-option__box,
.loan-amount-option__box {
    display: block;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 0.875rem 1rem;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.loan-type-option__box--selected,
.loan-amount-option__box--selected {
    border-color: #01C7B1;
    background: rgba(1, 199, 177, 0.06);
    box-shadow: 0 0 0 1px rgba(1, 199, 177, 0.2);
}

.loan-type-option__title {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    color: #111827;
}

.loan-type-option__desc {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.loan-amount-grid {
    grid-template-columns: repeat(2, 1fr);
}

.loan-amount-option__amount {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    color: #111827;
}

.loan-amount-option__fee {
    display: block;
    font-size: 0.6875rem;
    color: #0d9488;
    font-weight: 600;
    margin-top: 0.25rem;
}

.loan-field {
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 0.875rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    outline: none;
}

.loan-field:focus {
    border-color: rgba(1, 199, 177, 0.5);
    box-shadow: 0 0 0 3px rgba(1, 199, 177, 0.15);
}

.loan-summary {
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
    border: 1px solid rgba(1, 199, 177, 0.2);
    border-radius: 1.25rem;
    padding: 1.25rem;
}

.loan-summary__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.loan-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    padding: 0.375rem 0;
    color: #4b5563;
}

.loan-summary__note {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0.75rem 0 0;
    line-height: 1.45;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(1, 199, 177, 0.3);
}

.loan-submit-btn {
    display: block;
    width: 100%;
    background: #01C7B1;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(1, 199, 177, 0.35);
}

.loan-submit-btn:hover {
    background: #00A693;
}

.loan-review-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.loan-review-card__label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    font-weight: 600;
}

.loan-review-card__ref {
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.loan-review-card__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.loan-review-card__meta {
    font-size: 0.6875rem;
    color: #9ca3af;
    margin-bottom: 0.125rem;
}

.loan-review-card__value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.loan-review-card__value--accent {
    color: #0d9488;
    font-size: 1.125rem;
}

.loan-ussd-box {
    background: #111827;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    margin: 1rem 0;
}

.loan-ussd-box__code {
    font-family: ui-monospace, monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
}

.loan-ussd-box__copy {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #01C7B1;
}

.loan-ussd-steps {
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.55;
    padding-left: 1.125rem;
    margin: 0;
}

.loan-ussd-steps li + li {
    margin-top: 0.375rem;
}

.loan-alert {
    font-size: 0.875rem;
    border-radius: 0.875rem;
    padding: 0.875rem 1rem;
}

.loan-alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.loan-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.loan-alert--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    line-height: 1.45;
}

.loan-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.375rem;
}

.loan-form-grid {
    display: block;
}

.loan-payout-option {
    display: block;
    cursor: pointer;
}

.loan-payout-option__box {
    display: block;
    border: 2px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    transition: border-color 0.15s, background 0.15s;
}

.loan-payout-option__box--selected,
.loan-payout-input:checked + .loan-payout-option__box {
    border-color: #01C7B1;
    background: rgba(1, 199, 177, 0.06);
    color: #0f766e;
}

.loan-consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.45;
}

.loan-consent__check {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: #01C7B1;
}

.loan-app-item {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #f3f4f6;
}

.loan-app-item__top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: flex-start;
}

.loan-app-item__amount {
    font-weight: 800;
    font-size: 1.0625rem;
    color: #111827;
}

.loan-app-item__meta {
    font-size: 0.6875rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.loan-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.loan-app-item__momo,
.loan-app-item__collateral {
    font-size: 0.75rem;
    color: #4b5563;
    margin-top: 0.5rem;
}

.loan-app-item__action {
    display: block;
    margin-top: 0.75rem;
    text-align: center;
    background: #01C7B1;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.625rem;
    border-radius: 0.75rem;
}

.loan-app-item__done {
    font-size: 0.75rem;
    color: #059669;
    font-weight: 600;
    margin-top: 0.5rem;
}

.loan-app-item__note {
    font-size: 0.6875rem;
    color: #9ca3af;
    margin-top: 0.375rem;
}

.loan-app-item__date {
    font-size: 0.625rem;
    color: #d1d5db;
    margin-top: 0.5rem;
}

/* ââ Mobile Money collateral payment (CARDMATRIX-style) ââ */
.loan-momo-page {
    padding-bottom: 5.5rem;
}

.momo-pay {
    max-width: 28rem;
    margin: 0 auto;
    padding: 0 1rem 1.5rem;
}

.momo-pay__card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.25rem 0 1rem;
}

.momo-pay__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.momo-pay__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.9375rem;
}

.momo-pay__meta-label {
    color: #374151;
    font-weight: 500;
}

.momo-pay__meta-value {
    font-weight: 700;
    color: #111827;
}

.momo-pay__momo-link {
    font-weight: 700;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.momo-pay__ussd-box {
    margin: 1.25rem 0;
    padding: 1.25rem 1rem;
    border: 2px solid #f97316;
    border-radius: 0.375rem;
    text-align: center;
    background: #fff;
}

.payment-link-card {
    margin: 1.25rem 0;
    padding: 1.25rem 1rem;
    border: 2px solid #f97316;
    border-radius: 0.375rem;
    text-align: center;
    background: #fff7ed;
}

.payment-momo-card__label {
    font-size: 0.875rem;
    color: #9a3412;
    margin-bottom: 0.5rem;
}

.payment-momo-card__number {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #9a3412;
    margin: 0.25rem 0;
    font-variant-numeric: tabular-nums;
}

.payment-momo-card__network {
    font-size: 0.75rem;
    color: #c2410c;
    margin-bottom: 0.875rem;
}

.payment-link-card__pay-btn {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    background: #f97316;
    color: #fff;
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    text-decoration: none;
    cursor: pointer;
}

.payment-link-card__pay-btn:hover {
    background: #ea580c;
    color: #fff;
}

.payment-proof-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
}

.payment-proof-notice__title {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 0.35rem;
}

.payment-proof-notice__text {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #78350f;
}

.payment-screenshot-field {
    margin-top: 0.25rem;
}

.momo-pay__ussd-code {
    font-family: ui-monospace, monospace;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ea580c;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.momo-pay__copy-btn {
    display: inline-block;
    width: 100%;
    max-width: 14rem;
    background: #f97316;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

.momo-pay__copy-btn:hover {
    background: #ea580c;
}

.momo-pay__steps-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.momo-pay__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.momo-pay__steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.45;
}

.momo-pay__step-num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: #f97316;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.momo-pay__footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, #fff 80%, rgba(255, 255, 255, 0));
    z-index: 30;
}

.momo-pay__proceed-btn {
    display: block;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    background: #1e293b;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
}

.momo-pay__proceed-btn:hover {
    background: #0f172a;
}

.momo-pay__upload {
    margin-top: 1.5rem;
    padding-bottom: 5rem;
}

.momo-pay__upload-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
}

.momo-pay__upload-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.35rem;
}

.momo-pay__upload-text {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.45;
}

/* ââ Savings account ââ */
.savings-wrap {
    max-width: 32rem;
}

.savings-hero {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%) !important;
    border-radius: 1.25rem;
    padding: 1.5rem;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.2);
}

.savings-hero__label {
    font-size: 0.875rem;
    opacity: 0.9;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.savings-hero__amount {
    font-size: 2.25rem;
    font-weight: 800;
    margin-top: 0.25rem;
    letter-spacing: -0.02em;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.savings-hero__tier {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    opacity: 0.95;
}

.savings-hero__wallet {
    font-size: 0.75rem;
    margin-top: 0.75rem;
    opacity: 0.85;
}

.savings-tier-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.savings-tier-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
}

.savings-tier-item--unlocked {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.savings-tier-item--active {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: 0 0 0 1px #059669;
}

.savings-tier-item__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.savings-tier-item__name {
    font-weight: 700;
    font-size: 0.875rem;
    color: #111827;
}

.savings-tier-item__badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #047857;
    background: #d1fae5;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
}

.savings-tier-item__meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.2rem;
}

.savings-next-tier {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.savings-cta-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--exo-primary, #0d9488);
    text-decoration: none;
}

.savings-deposit-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    background: #f3f4f6;
    border-radius: 0.75rem;
}

.savings-deposit-tab {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.savings-deposit-tab--active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.loan-screenshot-picker--validating {
    border-color: #f59e0b;
    background: #fffbeb;
}

.loan-screenshot-picker--valid {
    border-color: #10b981;
    background: #ecfdf5;
}

.loan-screenshot-picker--invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.rushpay-status {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.rushpay-status--ok {
    color: #047857;
    background: #ecfdf5;
}

.rushpay-status--bad {
    color: #b91c1c;
    background: #fef2f2;
}

.rushpay-status--busy {
    color: #b45309;
    background: #fffbeb;
}

.savings-tx-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.savings-tx-item:last-child {
    border-bottom: none;
}

.savings-tx-item__type {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.savings-tx-item__date {
    font-size: 0.6875rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.savings-tx-item__amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: #059669;
}

.savings-tx-item__amount--out {
    color: #dc2626;
}

.savings-tx-item__balance {
    font-size: 0.6875rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.loan-eligibility-path {
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
}

.loan-eligibility-path--primary {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.loan-eligibility-path--secondary {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.loan-eligibility-path__title {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.35rem;
}

.loan-amount-option__tag {
    display: block;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

.loan-amount-option__tag--savings {
    color: #047857;
}

.loan-amount-option__tag--collateral {
    color: #1d4ed8;
}

/* Account verification KYC wizard */
.kyc-wrap { max-width: 28rem; }
.kyc-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid #f3f4f6;
}
.kyc-phase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.kyc-phase__item { display: flex; align-items: center; }
.kyc-phase__dot {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    background: #e5e7eb;
    color: #6b7280;
}
.kyc-phase__item.is-current .kyc-phase__dot {
    background: #0d9488;
    color: #fff;
}
.kyc-phase__item.is-done .kyc-phase__dot {
    background: #10b981;
    color: #fff;
}
.kyc-phase__line {
    width: 3.5rem;
    height: 3px;
    background: #e5e7eb;
    margin: 0 0.35rem;
    border-radius: 9999px;
}
.kyc-phase__line.is-done { background: #10b981; }
.kyc-hero__title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #111827;
    margin-top: 0.75rem;
}
.kyc-hero__text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.35rem;
    line-height: 1.45;
}
.kyc-subprogress {
    display: flex;
    gap: 0.35rem;
    margin-top: 1rem;
    justify-content: center;
}
.kyc-subprogress__seg {
    height: 4px;
    width: 2.75rem;
    border-radius: 9999px;
    background: #e5e7eb;
}
.kyc-subprogress__seg.is-on { background: #0d9488; }
.kyc-section-icon {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #ecfdf5;
    color: #0d9488;
}
.kyc-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}
.kyc-optional { font-weight: 500; color: #9ca3af; }
.kyc-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
    background: #fff;
}
.kyc-input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
.kyc-notice {
    background: #eff6ff;
    color: #1e40af;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}
.kyc-tip {
    background: #fffbeb;
    color: #92400e;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
}
.kyc-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.kyc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 3rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem 1rem;
}
.kyc-btn--primary {
    background: #0d9488;
    color: #fff;
}
.kyc-btn--primary:hover { background: #0f766e; }
.kyc-btn--ghost {
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.kyc-btn--lg { min-height: 3.25rem; }
.kyc-review-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}
.kyc-review-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}
.kyc-review-list dt {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}
.kyc-review-list dd {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    text-align: right;
    margin: 0;
}
.kyc-secure {
    font-size: 0.75rem;
    color: #047857;
    background: #ecfdf5;
    border-radius: 0.75rem;
    padding: 0.75rem;
}
.kyc-fee-card {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
}
.kyc-fee-card__label {
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: .95;
}
.kyc-fee-card__amount {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.35rem 0;
    letter-spacing: -0.02em;
}
.kyc-fee-card__note {
    font-size: 0.75rem;
    opacity: .9;
}
.kyc-warn {
    background: #fffbeb;
    color: #92400e;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    text-align: left;
}
.kyc-howto__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: kyc-step;
    text-align: left;
}
.kyc-howto__list li {
    counter-increment: kyc-step;
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
}
.kyc-howto__list li::before {
    content: counter(kyc-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: #0d9488;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kyc-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.kyc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .55);
}
.kyc-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    max-width: 22rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
}
.kyc-modal__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: #ecfdf5;
    color: #059669;
    font-size: 1.5rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

/* Bitcoin payment card (wallet upgrade) */
.btc-payment-card {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 1rem;
    padding: 1.15rem;
}
.btc-payment-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.btc-payment-card__badge {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: #f97316;
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}
.btc-payment-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: #9a3412;
    margin: 0;
}
.btc-payment-card__label {
    font-size: 0.875rem;
    color: #7c2d12;
    margin-bottom: 0.35rem;
}
.btc-payment-card__network {
    font-size: 0.75rem;
    font-weight: 600;
    color: #c2410c;
    margin-bottom: 0.85rem;
}
.btc-payment-card__field-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9a3412;
    margin-bottom: 0.35rem;
}
.btc-payment-card__row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.btc-payment-card__address {
    flex: 1;
    min-width: 0;
    border: 1px solid #fdba74;
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.7rem 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    color: #111827;
}
.btc-payment-card__copy {
    flex-shrink: 0;
    background: #ea580c;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    padding: 0 1rem;
    font-weight: 700;
    font-size: 0.8125rem;
    cursor: pointer;
}
.btc-payment-card__qr {
    margin-top: 1rem;
    text-align: center;
}
.btc-payment-card__qr img {
    display: inline-block;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.5rem;
    border: 1px solid #fed7aa;
}
.btc-payment-card__qr p {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9a3412;
}

.app-shell.landing-shell {
    max-width: none;
    background: #042824;
    padding-bottom: 0;
}

.landing {
    min-height: 100vh;
    color: #f8fffd;
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(255, 214, 102, 0.45), transparent 55%),
        radial-gradient(700px 480px at -10% 30%, rgba(124, 58, 237, 0.38), transparent 60%),
        linear-gradient(165deg, #042824 0%, #0b5c54 48%, #01a892 100%);
}

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.1rem 0 0.4rem;
}

.landing-brand {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    line-height: 1;
}

.landing-brand-xoom,
.landing-brand-money {
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.landing-brand-xoom {
    color: #ffffff;
}

.landing-brand-money {
    color: #ffe08a;
}

.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.landing-signin,
.landing-signup,
.landing-cta-primary,
.landing-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
}

.landing-signin {
    color: #ffffff;
    padding: 0.55rem 0.85rem;
}

.landing-signup {
    color: #06332f;
    background: #ffe08a;
    padding: 0.6rem 1rem;
}

.landing-main {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 0 2rem;
}

.landing-hero {
    max-width: 40rem;
}

.landing-kicker {
    display: inline-block;
    margin: 0 0 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #d9fff8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 800;
    color: #ffffff;
}

.landing-lead {
    margin: 1.1rem 0 0;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.55;
}

.landing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.landing-cta-primary {
    background: #ffffff;
    color: #06332f;
    padding: 0.95rem 1.25rem;
}

.landing-cta-secondary {
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    padding: 0.95rem 1.25rem;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 2.75rem;
}

.landing-card {
    border-radius: 1.25rem;
    padding: 1.15rem 1.15rem 1.25rem;
    min-height: 8.5rem;
    box-shadow: 0 12px 30px rgba(4, 24, 22, 0.18);
}

.landing-card h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.landing-card p {
    margin: 0.4rem 0 0;
    font-size: 0.92rem;
    line-height: 1.4;
}

.landing-card--send { background: #e0e7ff; color: #312e81; }
.landing-card--airtime { background: #ffedd5; color: #9a3412; }
.landing-card--bills { background: #ccfbf1; color: #115e59; }
.landing-card--save { background: #d1fae5; color: #065f46; }
.landing-card--tickets { background: #ede9fe; color: #5b21b6; }
.landing-card--food { background: #ffe4e6; color: #9f1239; }

.landing-footer {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0.5rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
}

@media (max-width: 800px) {
    .landing-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .landing-header {
        align-items: flex-start;
    }

    .landing-brand-xoom,
    .landing-brand-money {
        font-size: 1.55rem;
    }

    .landing-signin {
        padding-right: 0.35rem;
    }

    .landing-grid {
        grid-template-columns: 1fr;
    }
}

