/* EriPay interaction layer: progress bar, processing screen, result animation. */
.epx-bar {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 3000; pointer-events: none;
    transform-origin: 0 50%; transform: scaleX(0); opacity: 0;
    background: linear-gradient(90deg, #0a4dff, #18c8ff, #0a4dff); background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(24, 200, 255, .6);
    transition: transform .25s ease-out, opacity .3s ease;
}
.epx-bar.is-on { opacity: 1; animation: epx-bar-flow 1.2s linear infinite; }
.epx-bar.is-done { opacity: 0; transition: transform .2s ease-out, opacity .35s ease .15s; }

/* Tap feedback on everything tappable in the app */
.btn:active, .modern-btn-primary:active, .modern-btn-secondary:active, [data-dk-qr-scanner-open]:active { transform: scale(.97); }
.btn, .modern-btn-primary, .modern-btn-secondary { transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease; }

.epx-overlay {
    position: fixed; inset: 0; z-index: 2900; display: grid; place-items: center; padding: 24px;
    background: rgba(7, 18, 48, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.epx-overlay.is-on { opacity: 1; visibility: visible; }
.epx-overlay-card {
    width: min(320px, 100%); padding: 28px 24px 22px; border-radius: 28px; text-align: center; background: #fff;
    box-shadow: 0 30px 60px -30px rgba(7, 18, 48, .7); transform: translateY(10px) scale(.97); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.epx-overlay.is-on .epx-overlay-card { transform: none; }
.epx-orbit { position: relative; width: 84px; height: 84px; margin: 0 auto 16px; display: grid; place-items: center; }
.epx-orbit-ring {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 30%, #18c8ff 55%, #0a4dff 80%, transparent 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    animation: epx-spin 0.9s linear infinite;
}
.epx-orbit-logo { width: 54px; height: 54px; border-radius: 16px; animation: epx-breathe 1.6s ease-in-out infinite; }
.epx-overlay-title { margin: 0 0 4px; font-weight: 800; font-size: 1.05rem; color: #0b1b3a; }
.epx-overlay-sub { margin: 0; font-size: .85rem; color: #64748b; }

.epx-result {
    position: fixed; inset: 0; z-index: 2950; display: grid; place-items: center; padding: 24px;
    background: rgba(7, 18, 48, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .22s ease;
}
.epx-result.is-on { opacity: 1; }
.epx-result-card {
    width: min(340px, 100%); padding: 28px 24px 20px; border-radius: 28px; text-align: center; background: #fff;
    box-shadow: 0 30px 60px -30px rgba(7, 18, 48, .7); transform: scale(.9); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1);
}
.epx-result.is-on .epx-result-card { transform: none; }
.epx-result-icon { width: 84px; height: 84px; margin: 0 auto 12px; display: block; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.epx-result-circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: epx-draw .55s ease-out forwards; }
.epx-result-mark { stroke-dasharray: 48; stroke-dashoffset: 48; animation: epx-draw .35s ease-out .45s forwards; }
.is-success .epx-result-icon { stroke: #059669; }
.is-success .epx-result-circle { fill: rgba(5, 150, 105, .08); }
.is-error .epx-result-icon { stroke: #e11d48; }
.is-error .epx-result-circle { fill: rgba(225, 29, 72, .07); }
.is-error.is-on .epx-result-card { animation: epx-shake .45s ease .55s; }
.epx-result-title { margin: 0 0 6px; font-weight: 800; font-size: 1.15rem; color: #0b1b3a; }
.epx-result-msg { margin: 0 0 18px; font-size: .92rem; color: #475569; line-height: 1.45; }
.epx-result-btn {
    width: 100%; height: 46px; border: 0; border-radius: 999px; font-weight: 700; color: #fff; cursor: pointer;
    background: linear-gradient(135deg, #0a4dff, #2f7bff); box-shadow: 0 10px 22px -12px rgba(10, 77, 255, .7);
}
.is-error .epx-result-btn { background: #0b1b3a; box-shadow: none; }
.epx-result-btn:active { transform: scale(.97); }

@keyframes epx-bar-flow { to { background-position: -200% 0; } }
@keyframes epx-spin { to { transform: rotate(360deg); } }
@keyframes epx-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(.92); } }
@keyframes epx-draw { to { stroke-dashoffset: 0; } }
@keyframes epx-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

@media (prefers-reduced-motion: reduce) {
    .epx-orbit-ring, .epx-orbit-logo, .epx-bar.is-on { animation: none; }
    .epx-result-circle, .epx-result-mark { animation: none; stroke-dashoffset: 0; }
    .is-error.is-on .epx-result-card { animation: none; }
}

.epx-result-btn:focus { outline: none; }
.epx-result-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(10, 77, 255, .25); }

/* On-screen notification pop-ups */
.epx-toasts {
    position: fixed; z-index: 2960; top: calc(12px + env(safe-area-inset-top)); right: 16px;
    width: min(380px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.epx-toast {
    position: relative; overflow: hidden; pointer-events: auto; display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 40px 14px 14px; border-radius: 18px; background: rgba(255, 255, 255, .97); color: #0b1b3a; text-decoration: none;
    box-shadow: 0 18px 40px -18px rgba(7, 18, 48, .45), 0 0 0 1px rgba(11, 27, 58, .06);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: translateY(-14px) scale(.97); opacity: 0; transition: transform .35s cubic-bezier(.2, 1.2, .4, 1), opacity .25s ease;
}
.epx-toast.is-on { transform: none; opacity: 1; }
a.epx-toast:hover { color: #0b1b3a; }
.epx-toast-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem; }
.is-success .epx-toast-icon { background: rgba(5, 150, 105, .12); color: #059669; }
.is-error .epx-toast-icon { background: rgba(225, 29, 72, .1); color: #e11d48; }
.is-warning .epx-toast-icon { background: rgba(217, 119, 6, .12); color: #d97706; }
.is-info .epx-toast-icon { background: rgba(10, 77, 255, .1); color: #0a4dff; }
.epx-toast-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.epx-toast-title { font-weight: 800; font-size: .92rem; line-height: 1.3; }
.epx-toast-msg { font-size: .84rem; color: #475569; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.epx-toast-close {
    position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: transparent; color: #94a3b8; font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.epx-toast-close:hover { background: #f1f5f9; color: #0b1b3a; }
.epx-toast-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: 0 50%; animation: epx-toast-timer 7s linear forwards; }
.is-success .epx-toast-timer { background: #059669; }
.is-error .epx-toast-timer { background: #e11d48; }
.is-warning .epx-toast-timer { background: #d97706; }
.is-info .epx-toast-timer { background: #0a4dff; }
.epx-toast.is-paused .epx-toast-timer { animation-play-state: paused; }
@keyframes epx-toast-timer { to { transform: scaleX(0); } }
@media (max-width: 575.98px) {
    .epx-toasts { left: 12px; right: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .epx-toast { transition: opacity .2s; transform: none; } .epx-toast-timer { animation: none; } }

/* ===== Interface audit, week 1 (2026-10) ===== */

/* iPhones zoom into any field set below 16px when it gets focus, so customers typed amounts
   and PINs on a zoomed, shifted page. Phones get 16px fields everywhere in the app and login. */
@media (max-width: 767.98px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px !important;
    }
}

/* Login and sign-up: the remember-me row matches the field labels instead of outranking them,
   and the country select sits its text on the same line as the other fields. */
.auth-card .form-check-label,
.auth-card .form-check + a {
    font-size: 14px;
}
.auth-card .form-select {
    height: auto;
    line-height: 1.5;
    padding-top: .55rem;
    padding-bottom: .55rem;
}

/* Sign-up: a one-line hint under the name fields, and the country picker joined to the phone box. */
.auth-card .auth-hint { margin-top: -6px; font-size: 13px; color: #64748b; }
.auth-card .auth-phone__country { flex: 0 0 auto; width: 38%; max-width: 11rem; text-overflow: ellipsis; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.auth-card .auth-phone > .input-group-text { font-variant-numeric: tabular-nums; }
.auth-card #togglePassword { min-width: 46px; justify-content: center; border-left: 0; }

/* ===== Interface audit, weeks 2-3 ===== */

/* One typeface: Plus Jakarta Sans everywhere in the app and login (the phone app already used it). */
:root {
    --body-font: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --heading-font: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
    /* Type scale: captions 12, small 13, body 16, then 20 / 26 / 42 for headings (16 x 1.2^2, x phi, x phi^2). */
    --ep-fs-caption: 12px;
    --ep-fs-small: 13px;
}
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6 { font-family: var(--body-font); }

/* Nothing a customer must read below 12px. Measured on the dashboard, wallets, history,
   deposit, goals and settings at phone and desktop width (8.5 to 11px before). */
.quick-function-menu__label,
.quick-function-menu__wallet-label,
.quick-function-menu__wallet-code,
.quick-function-menu__scan span,
.dk-more-menu__copy small,
.dk-tab__lb,
.dk-more-overview-card__copy small,
.dk-more-overview-card__stat b,
.dk-more-overview-card__stat em,
.dk-more-overview__head span,
.dk-more-overview__head small,
.dk-more-install__copy span,
.dk-more-install__button,
.dk-more-referral-card__badge,
.dk-more-referral-card__copy small,
.dk-qa-tile__lb,
.dk-greet__hi,
.dk-wc__action span,
.dk-wc__badge > span:not(.dk-wc__symbol),
.dk-wc__id-label, .dk-wc__id-text,
.dk-wc__balance-label,
.sidebar-wallet-card__action span,
.sidebar-wallet-card__badge > span:not(.sidebar-wallet-card__symbol),
.sidebar-wallet-card__id-label, .sidebar-wallet-card__id-text,
.dk-stat-card__lb,
.dk-history-stat span,
.dk-history-field span,
.dk-history-row__status,
.wlt-chip b,
.wlt-badge,
.ud-trx-chip,
.feature-summary-widget__label {
    font-size: var(--ep-fs-caption) !important;
}
/* Secondary lines people actually read (times, types, short descriptions): 13px. */
.dk-history-row__meta, .dk-history-row__meta span, .dk-history-row__type,
.dk-trx-row__time,
.ud-trx-item__meta, .ud-trx-item__meta time, .ud-trx-item__meta span,
.wlt-quick-item span,
.dk-action-card__copy strong,
.quick-function-menu__footer-copy span,
.dk-more-install__copy strong {
    font-size: var(--ep-fs-small) !important;
}
/* Labels in tight grids stay on one line instead of wrapping under the larger size. */
.dk-tab__lb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.quick-function-menu__label, .dk-qa-tile__lb {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
/* Chart axis labels on phones. */
.apexcharts-text tspan, .apexcharts-xaxis-label, .apexcharts-yaxis-label { font-size: 12px !important; }

/* Touch targets: at least 44 x 44px (34px header icons, 30px sheet closes, 24px card icons before). */
@media (max-width: 991.98px) {
    .dk-icon-btn,
    .dk-sheet-close,
    .quick-function-menu__close,
    .dk-notif-panel__close,
    .dk-more-menu__close,
    .dk-qr-scanner__close {
        min-width: 44px !important;
        min-height: 44px !important;
    }
    .dk-avatar { width: 44px !important; height: 44px !important; }
    .wlt-action { min-width: 44px; min-height: 44px; }
    .ep-quick-amount, .dk-kyc__cta, .modern-settings-nav-link, .dk-qr-scanner__manual-row button { min-height: 44px; }
    .dk-wc__action, .sidebar-wallet-card__action { min-height: 40px; }
}
/* Small icons keep their look but get an invisible 44px hit area around them. */
.dk-wc__act, .dk-wc__copy, .copy-icon, .dk-balance-eye, .quick-function-menu__wallet-eye,
.dk-kyc__close, .dk-section__link, .dk-seg__btn, .dk-action-hub__more {
    position: relative;
}
.dk-wc__act::after, .dk-wc__copy::after, .copy-icon::after, .dk-balance-eye::after, .quick-function-menu__wallet-eye::after,
.dk-kyc__close::after, .dk-section__link::after, .dk-seg__btn::after, .dk-action-hub__more::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: max(100%, 44px); height: max(100%, 44px);
    transform: translate(-50%, -50%);
}

/* Quick amounts under the deposit amount box. */
.ep-quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ep-quick-amount {
    flex: 1 1 0; min-width: 72px; padding: 8px 10px; border-radius: 999px; border: 1px solid #dbe3f1;
    background: #fff; color: #0b1b3a; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer;
}
.ep-quick-amount:hover { border-color: #0a4dff; color: #0a4dff; }
.ep-quick-amount.is-active { background: #0a4dff; border-color: #0a4dff; color: #fff; }

/* Second pass after re-measuring: the remaining sub-12px labels and sub-44px controls. */
.feature-summary-widget__trend span, .feature-summary-widget__context, .feature-summary-widget__toggle-label,
.dk-seg__btn, .dk-trx-group__title, .dk-history-group__title,
.modern-role-pill, .modern-status-pill, .modern-settings-client-label,
.ud-chart-card__period, .dk-insight__period, .dk-history-hero__eyebrow, .ud-hero__eyebrow,
.kyc-notice-card__step, .dk-kyc__cta {
    font-size: var(--ep-fs-caption) !important;
}
.user-feature-header__subtitle, .ud-transactions__subtitle, .dk-kyc__sub, .dk-insight__sub,
.dk-history-hero__copy p, .kyc-notice-card__text, .kyc-notice-card__btn span, .user-feature-header__actions .btn {
    font-size: var(--ep-fs-small) !important;
}
@media (max-width: 991.98px) {
    .wlt-chip, .wlt-id, .wlt-btn, .dk-history-filter__actions a, .dk-history-filter__actions button,
    .user-feature-header__actions .btn, form .btn-base, form .btn-primary, .modern-btn-copy { min-height: 44px; }
    .wlt-eye { min-width: 44px; min-height: 44px; }
}

/* The install banner never covers an open sheet. */
body:has(.dk-sheet.is-open) .dk-pwa-prompt { display: none !important; }

/* Desktop wallet card at EriPay's size: 312 x 185 in the sidebar. */
@media (min-width: 992px) {
    .walet-inner.sidebar-wallet-card { min-height: 185px !important; padding: 15px 14px 13px !important; display: flex; flex-direction: column; justify-content: space-between; }
}

/* ------------------------------------------------------------------
 | Wallet cards and phone header, matched 1:1 to EriPay 2.8 (measured
 | on the vendor demo, 2026-10-07) but drawn from EriPay's theme colours
 | (Admin > User Theme): primary -> accent (48%) -> deep primary.
 | Phone: one card at a time, full width; desktop sidebar: 312 x 185.
 ------------------------------------------------------------------ */
.sidebar-wallet-panel .walet-inner.sidebar-wallet-card {
    --sidebar-wallet-start: var(--front-color-primary);
    --sidebar-wallet-mid: var(--front-color-accent, var(--front-color-primary));
    --sidebar-wallet-end: var(--front-color-primary-dark);
    --sidebar-wallet-shadow: rgba(var(--front-color-primary-rgb), 0.2);
    border: 1px solid rgba(var(--front-color-white-rgb), 0.2);
    border-radius: 14px;
}
.sidebar-wallet-panel .walet-inner.sidebar-wallet-card--merchant {
    --sidebar-wallet-start: var(--front-color-merchant);
    --sidebar-wallet-mid: var(--front-color-merchant-accent);
    --sidebar-wallet-end: var(--front-color-merchant-dark);
    --sidebar-wallet-shadow: rgba(var(--front-color-merchant-rgb), 0.24);
}
.sidebar-wallet-panel .walet-inner.sidebar-wallet-card--agent {
    --sidebar-wallet-start: var(--front-color-agent);
    --sidebar-wallet-mid: var(--front-color-agent-dark);
    --sidebar-wallet-end: var(--front-palette-24315c);
    --sidebar-wallet-shadow: rgba(var(--front-color-agent-rgb), 0.22);
}
.sidebar-wallet-panel .walet-inner.sidebar-wallet-card,
.dk-wallet-card.sidebar-wallet-card {
    background:
        linear-gradient(115deg, rgba(var(--front-color-white-rgb), 0.12) 0%, transparent 36%),
        radial-gradient(circle at 88% 8%, rgba(var(--front-color-white-rgb), 0.2) 0 1px, transparent 2px),
        linear-gradient(135deg, var(--dk-wallet-start, var(--sidebar-wallet-start)) 0%, var(--dk-wallet-mid, var(--sidebar-wallet-mid)) 48%, var(--dk-wallet-end, var(--sidebar-wallet-end)) 100%);
    box-shadow:
        0 16px 32px var(--dk-wallet-shadow, var(--sidebar-wallet-shadow)),
        inset 0 1px 0 rgba(var(--front-color-white-rgb), 0.24),
        inset 0 -1px 0 rgba(var(--front-color-black-rgb), 0.08);
}
.dk-wallet-card.sidebar-wallet-card { border: 1px solid rgba(var(--front-color-white-rgb), 0.2); border-radius: 15px; }

/* Two rings: 124px top-right, 176px bottom-right. */
.sidebar-wallet-panel .walet-inner.sidebar-wallet-card::before,
.dk-wallet-card.sidebar-wallet-card::before {
    content: ""; position: absolute; top: -46px; right: -26px; width: 124px; height: 124px;
    border: 1px solid rgba(var(--front-color-white-rgb), 0.22); border-radius: 50%;
    box-shadow: inset 0 0 0 20px rgba(var(--front-color-white-rgb), 0.045); pointer-events: none;
}
.sidebar-wallet-panel .walet-inner.sidebar-wallet-card::after,
.dk-wallet-card.sidebar-wallet-card::after {
    content: ""; position: absolute; right: -34px; bottom: -72px; width: 176px; height: 176px;
    border: 1px solid rgba(var(--front-color-white-rgb), 0.1); border-radius: 50%; pointer-events: none; z-index: 0;
}

/* Account pill: 20px wallet bubble + 10px label. */
.sidebar-wallet-card .sidebar-wallet-card__top { min-height: 27px; }
.sidebar-wallet-card .sidebar-wallet-card__badge {
    gap: 7px; padding: 4px 11px 4px 5px;
    border: 1px solid rgba(var(--front-color-white-rgb), 0.08); border-radius: 999px;
    background: rgba(var(--front-color-white-rgb), 0.14);
    box-shadow: inset 0 1px 0 rgba(var(--front-color-white-rgb), 0.09);
    color: rgba(var(--front-color-white-rgb), 0.94);
    font-size: 10px !important; line-height: 1; text-transform: none; letter-spacing: 0;
}
.sidebar-wallet-card .sidebar-wallet-card__badge > span:last-child { font-size: 10px !important; }
.sidebar-wallet-card .sidebar-wallet-card__symbol {
    width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto;
    border-radius: 50%; background: rgba(var(--front-color-white-rgb), 0.2); font-size: 9px;
}

/* Phone tools: 26px rounded squares. */
.dk-wallet-card .dk-wc__act {
    width: 26px; height: 26px; border-radius: 9px;
    background: rgba(var(--front-color-white-rgb), 0.16); border: 1px solid rgba(var(--front-color-white-rgb), 0.14);
    color: rgba(var(--front-color-white-rgb), 0.9); font-size: 11px;
}

/* Wallet ID row: 9.5px, icon + "Wallet ID:" + masked ID + copy. */
.sidebar-wallet-card .sidebar-wallet-card__body { display: grid; gap: 9px; margin-top: 11px; }
.sidebar-wallet-card .sidebar-wallet-card__id {
    gap: 5px; margin: 0; color: rgba(var(--front-color-white-rgb), 0.76);
    font-size: 9.5px; font-weight: 600; line-height: 1.2;
}
.sidebar-wallet-card .sidebar-wallet-card__id-label,
.sidebar-wallet-card .sidebar-wallet-card__id-text { font-size: 9.5px !important; letter-spacing: 0; }
.sidebar-wallet-card .sidebar-wallet-card__id-label { color: rgba(var(--front-color-white-rgb), 0.9); font-weight: 700; }
.dk-wallet-card .sidebar-wallet-card__id-label { font-weight: 600; }
.sidebar-wallet-card .sidebar-wallet-card__id-label::after { content: ":"; }
.sidebar-wallet-card .sidebar-wallet-card__id-icon { display: inline-grid; place-items: center; flex: 0 0 auto; color: rgba(var(--front-color-white-rgb), 0.82); font-size: 10px; }
.sidebar-wallet-card .sidebar-wallet-card__copy,
.sidebar-wallet-card .dk-wc__copy {
    display: inline-grid; place-items: center; flex: 0 0 auto; padding: 3px; border: 0; background: transparent;
    color: rgba(var(--front-color-white-rgb), 0.5); font-size: 9.5px; line-height: 1; cursor: pointer;
}
.sidebar-wallet-card .sidebar-wallet-card__copy i, .sidebar-wallet-card .dk-wc__copy i { display: block; width: 11px; height: 11px; font-size: 11px; line-height: 11px; text-align: center; }
.sidebar-wallet-panel .sidebar-wallet-card__copy { padding: 5px; }
.sidebar-wallet-card .sidebar-wallet-card__copy:hover, .sidebar-wallet-card .sidebar-wallet-card__copy:focus-visible,
.sidebar-wallet-card .dk-wc__copy:hover, .sidebar-wallet-card .dk-wc__copy:focus-visible { color: var(--front-color-white); outline: 1px solid rgba(var(--front-color-white-rgb), 0.48); outline-offset: 1px; border-radius: 4px; }

/* Balance: 8.5px uppercase label, 25px amount, chip on the right. */
.sidebar-wallet-card .sidebar-wallet-card__balance { display: grid; gap: 4px; min-width: 0; }
.sidebar-wallet-card .sidebar-wallet-card__balance-label {
    color: rgba(var(--front-color-white-rgb), 0.66); font-size: 8.5px !important; font-weight: 600;
    line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
}
.sidebar-wallet-card .sidebar-wallet-card__amount-row { display: flex; align-items: center; min-width: 0; gap: 8px; width: 100%; max-width: 100%; }
.sidebar-wallet-card .sidebar-wallet-card__amount {
    min-width: 0; font-size: 25px; font-weight: 700; line-height: 1.05; letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-wallet-card .sidebar-wallet-card__eye {
    width: 24px; height: 24px; border: 1px solid rgba(var(--front-color-white-rgb), 0.2); border-radius: 999px;
    background: rgba(var(--front-color-white-rgb), 0.1); color: rgba(var(--front-color-white-rgb), 0.88);
}
.sidebar-wallet-card .sidebar-wallet-card__eye i { font-size: 10px; }
.sidebar-wallet-card__chip {
    position: relative; width: 29px; height: 21px; flex: 0 0 auto; margin-inline-start: auto; overflow: hidden;
    border: 1px solid rgba(var(--front-color-white-rgb), 0.42); border-radius: 6px;
    background:
        linear-gradient(90deg, transparent 27%, rgba(var(--front-color-black-rgb), 0.14) 28% 31%, transparent 32% 68%, rgba(var(--front-color-black-rgb), 0.14) 69% 72%, transparent 73%),
        linear-gradient(145deg, rgba(var(--front-color-white-rgb), 0.82) 0%, rgba(var(--front-color-white-rgb), 0.48) 46%, rgba(var(--front-color-white-rgb), 0.68) 100%);
    box-shadow: inset 0 1px 1px rgba(var(--front-color-white-rgb), 0.58), inset 0 -1px 1px rgba(var(--front-color-black-rgb), 0.08), 0 2px 6px rgba(var(--front-color-black-rgb), 0.1);
    opacity: 0.88; transform: translateY(-1px);
}
.sidebar-wallet-card__chip::before, .sidebar-wallet-card__chip::after { content: ""; position: absolute; }
.sidebar-wallet-card__chip::before { inset: 4px 9px; border: 1px solid rgba(var(--front-color-black-rgb), 0.14); border-radius: 2px; background: rgba(var(--front-color-white-rgb), 0.16); }
.sidebar-wallet-card__chip::after {
    top: 50%; right: 0; left: 0; height: 1px; background: rgba(var(--front-color-black-rgb), 0.14);
    box-shadow: 0 -6px 0 rgba(var(--front-color-black-rgb), 0.09), 0 6px 0 rgba(var(--front-color-black-rgb), 0.09);
}

/* Actions: 33px, 9px radius, 9px apart; white primary in the accent colour, outlined secondary. */
.sidebar-wallet-card .sidebar-wallet-card__actions { gap: 9px; margin-top: 12px; }
.sidebar-wallet-card .sidebar-wallet-card__action,
.dk-wallet-card .dk-wc__action {
    min-height: 33px !important; gap: 7px; padding: 0 8px; border-radius: 9px; font-size: 10.5px; font-weight: 700;
}
.dk-wallet-card .dk-wc__action { font-weight: 600; }
.sidebar-wallet-card .sidebar-wallet-card__action span { font-size: 10.5px !important; }
.sidebar-wallet-card .sidebar-wallet-card__action-icon { display: grid; place-items: center; flex: 0 0 auto; width: 13px; height: 13px; font-size: 12px; line-height: 1; }
.sidebar-wallet-card .sidebar-wallet-card__action--primary {
    background: var(--front-color-white); color: var(--dk-wallet-mid, var(--sidebar-wallet-mid));
    box-shadow: 0 5px 12px rgba(var(--front-color-black-rgb), 0.12);
}
.sidebar-wallet-card .sidebar-wallet-card__action--primary:hover,
.sidebar-wallet-card .sidebar-wallet-card__action--primary:focus { background: rgba(var(--front-color-white-rgb), 0.92); color: var(--dk-wallet-mid, var(--sidebar-wallet-mid)); }
.sidebar-wallet-card .sidebar-wallet-card__action--secondary {
    border: 1px solid rgba(var(--front-color-white-rgb), 0.52); background: rgba(var(--front-color-white-rgb), 0.1);
    box-shadow: inset 0 1px 0 rgba(var(--front-color-white-rgb), 0.08);
}
.sidebar-wallet-card .sidebar-wallet-card__action--secondary:hover,
.sidebar-wallet-card .sidebar-wallet-card__action--secondary:focus { border-color: rgba(var(--front-color-white-rgb), 0.74); background: rgba(var(--front-color-white-rgb), 0.18); }

/* Phone header at EriPay's size: 54px bar, 38px avatar, 34px round icons 6px apart.
   Each icon keeps an invisible 44px tap area. */
@media (max-width: 991.98px) {
    .dk-mobile-header { min-height: 54px; padding: 6px 12px 7px; }
    .dk-mobile-header__profile { grid-template-columns: 38px minmax(0, 1fr); gap: 8px; }
    .dk-mobile-header__actions { gap: 6px; }
    .dk-mobile-header .dk-avatar { width: 38px !important; height: 38px !important; }
    .dk-mobile-header .dk-avatar img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
    .dk-mobile-header .dk-icon-btn { width: 34px; height: 34px; min-width: 34px !important; min-height: 34px !important; font-size: 13px; }
    .dk-mobile-header .dk-icon-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
}
@media (max-width: 374.98px) {
    .dk-mobile-header { padding-right: 10px; padding-left: 10px; gap: 6px; }
    .dk-mobile-header__profile { grid-template-columns: 36px minmax(0, 1fr); gap: 7px; }
    .dk-mobile-header__actions { gap: 4px; }
    .dk-mobile-header .dk-avatar, .dk-mobile-header .dk-avatar img { width: 36px !important; height: 36px !important; }
    .dk-mobile-header .dk-icon-btn { width: 32px; height: 32px; min-width: 32px !important; min-height: 32px !important; font-size: 12px; }
}

/* Fingerprint / Face ID next to a Wallet PIN box (eripay-passkey.js). */
.ep-passkey-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 10px; border-radius: 12px; border: 1px solid rgba(var(--front-color-primary-rgb), 0.35); background: rgba(var(--front-color-primary-rgb), 0.06); color: var(--front-color-primary); font-weight: 600; font-size: 14px; }
.ep-passkey-btn i { font-size: 18px; }
.ep-passkey-btn:hover { background: rgba(var(--front-color-primary-rgb), 0.12); }
.ep-passkey-btn[disabled] { opacity: .6; }

/* Dark mode switch (profile menu, More sheet). */
.ep-dark-row { cursor: pointer; }
.ep-switch { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #cbd5e1; position: relative; cursor: pointer; transition: background .2s; margin-left: auto; }
.ep-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.ep-switch:checked { background: var(--front-color-primary); }
.ep-switch:checked::after { transform: translateX(18px); }
.ep-switch:focus-visible { outline: 2px solid var(--front-color-primary); outline-offset: 2px; }
