/* Mood wallet hub: currency accounts, payout methods, history table, withdraw picker */

/* —— Currency account tiles (square rail) —— */
.acc-wallets-rail.acc-wallets-list {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-3);
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    margin-bottom: var(--space-2);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.acc-wallets-rail.acc-wallets-list::-webkit-scrollbar {
    height: 4px;
}
.acc-wallets-rail.acc-wallets-list::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text-muted) 35%, transparent);
    border-radius: 999px;
}

.acc-wallet-tile {
    position: relative;
    flex: 0 0 auto;
    width: 128px;
    height: 128px;
    aspect-ratio: 1;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
    --tile-chip: var(--accent);
}
.acc-wallet-tile:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}
.acc-wallet-tile--active {
    border-color: color-mix(in srgb, var(--tile-chip) 45%, var(--border));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--tile-chip) 22%, transparent) inset,
        0 8px 20px color-mix(in srgb, var(--tile-chip) 12%, transparent);
}
.acc-wallet-tile__hit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    height: 100%;
    padding: 12px 10px 10px;
    border: none;
    border-radius: inherit;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}
.acc-wallet-tile--active .acc-wallet-tile__hit {
    cursor: default;
}
.acc-wallet-tile__sym-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: linear-gradient(145deg, color-mix(in srgb, var(--tile-chip) 78%, #fff), var(--tile-chip));
    box-shadow: 0 4px 14px color-mix(in srgb, var(--tile-chip) 32%, transparent);
}
.acc-wallet-tile__sym-badge--long {
    font-size: 12px;
    letter-spacing: -0.03em;
    font-weight: 700;
}
.acc-wallet-tile__head {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}
.acc-wallet-tile__code {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}
.acc-wallet-tile--active .acc-wallet-tile__code {
    color: var(--tile-chip);
}
.acc-wallet-tile__active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tile-chip);
    flex-shrink: 0;
}
.acc-wallet-tile__balance {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acc-wallet-tile__sym {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    flex-shrink: 0;
}
.acc-wallet-tile__label {
    font-size: 10px;
    line-height: 1.25;
    color: var(--text-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: auto;
}
.acc-wallet-tile__del {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--danger, #c0392b) 35%, var(--border));
    border-radius: 50%;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    font-size: 14px;
    line-height: 1;
    font-family: inherit;
    color: var(--danger, #c0392b);
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out);
}
.acc-wallet-tile--deletable:hover .acc-wallet-tile__del {
    opacity: 1;
}
.acc-wallet-tile__del:hover {
    background: color-mix(in srgb, var(--danger, #c0392b) 10%, var(--surface));
}
.acc-wallet-tile__del:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Per-currency chip accent */
.acc-wallet-tile--rub { --tile-chip: #2563eb; }
.acc-wallet-tile--usd { --tile-chip: #15803d; }
.acc-wallet-tile--eur { --tile-chip: #0369a1; }
.acc-wallet-tile--uah { --tile-chip: #0057b7; }
.acc-wallet-tile--kzt { --tile-chip: #0891b2; }
.acc-wallet-tile--uzs { --tile-chip: #059669; }
.acc-wallet-tile--azn { --tile-chip: #0d9488; }
.acc-wallet-tile--usdt { --tile-chip: #26a17b; }
.acc-wallet-tile--usdc { --tile-chip: #2775ca; }
.acc-wallet-tile--btc { --tile-chip: #f7931a; }
.acc-wallet-tile--eth { --tile-chip: #627eea; }
.acc-wallet-tile--default { --tile-chip: var(--accent); }

html[data-theme="light"] .acc-wallet-tile {
    box-shadow: 0 1px 6px color-mix(in srgb, #101828 5%, transparent);
}
html[data-theme="light"] .acc-wallet-tile--active {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--tile-chip) 18%, transparent) inset,
        0 6px 16px color-mix(in srgb, var(--tile-chip) 10%, transparent);
}

@media (max-width: 560px) {
    .acc-wallet-tile {
        width: 112px;
        height: 112px;
    }
    .acc-wallet-tile__sym-badge {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .acc-wallet-tile__balance {
        font-size: 14px;
    }
    .acc-wallet-tile__del {
        opacity: 1;
    }
}

#accountModal .acc-wallets-add {
    align-items: flex-end;
}
#accountModal .acc-wallets-add-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: flex-end;
    width: 100%;
}
#accountModal .acc-wallets-add-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    flex: 1;
}
#accountModal .acc-wallets-add-field span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

#accountModal .acc-payout-block .acc-card__sub { max-width: 52ch; }
#accountModal .acc-payout-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-3);
}
.acc-payout-empty {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-2));
    border: 1px dashed color-mix(in srgb, var(--border) 85%, var(--text-muted));
}
.acc-payout-empty p {
    margin: 0;
    max-width: none;
}
#accountModal .acc-payout-empty {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}
#accountModal .acc-payout-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
}
#accountModal .acc-payout-card--ok { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
#accountModal .acc-payout-card--wait { border-color: color-mix(in srgb, #d4a017 45%, var(--border)); }
#accountModal .acc-payout-card .acc-pill--idle {
    background: var(--surface-2);
    color: var(--text-dim);
}
#accountModal .acc-payout-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
#accountModal .acc-payout-card__type {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
}
#accountModal .acc-payout-card__mask {
    font-weight: 700;
    font-size: 14px;
    word-break: break-word;
}
#accountModal .acc-payout-card__hint,
#accountModal .acc-payout-card__reason {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}
#accountModal .acc-payout-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* —— Payout wizard shell —— */
.acc-payout-wizard {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(5, 8, 13, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 12px;
}
html[data-theme="light"] .acc-payout-wizard {
    background: rgba(16, 24, 40, 0.44);
}
body.acc-payout-wizard-open {
    overflow: hidden;
}
.acc-payout-wizard.hidden { display: none; }
.acc-payout-wiz {
    width: min(580px, 100%);
    max-height: min(92dvh, 760px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-card, var(--surface-2));
    border-radius: 18px 18px 12px 12px;
    border: 1px solid var(--border);
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 24px 64px color-mix(in srgb, #04110f 28%, transparent);
}
.acc-payout-wiz__head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.acc-payout-wiz__head-spacer {
    min-width: 0;
}
.acc-payout-wiz__back {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-height: 40px;
    padding: 6px 4px 6px 0;
    margin: 0;
    justify-self: start;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity var(--dur-2) var(--ease-out);
}
.acc-payout-wiz__back:hover {
    opacity: 0.85;
}
.acc-payout-wiz__back-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.acc-payout-wiz__back-ico svg {
    width: 18px;
    height: 18px;
}
.acc-payout-wiz__back-text {
    line-height: 1.2;
}
.acc-payout-wiz__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    line-height: 1.25;
    justify-self: center;
    grid-column: 2;
}
.acc-payout-wiz__lead {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* —— Step 1: type picker —— */
.acc-payout-wiz__types {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.ppm-type {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.ppm-type:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    background: color-mix(in srgb, var(--accent) 6%, var(--surface));
    box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 10%, transparent);
}
.ppm-type:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.ppm-type__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
}
.ppm-type__icon svg { width: 22px; height: 22px; }
.ppm-type--card .ppm-type__icon { background: linear-gradient(135deg, #0d4a42, #1a6b5c); color: #fff; }
.ppm-type--sbp .ppm-type__icon { background: #21a038; color: #fff; }
.ppm-type--fk .ppm-type__icon { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
.ppm-type--crypto .ppm-type__icon { background: #0f1419; color: #f0b90b; }
.ppm-type__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ppm-type__title { font-weight: 800; font-size: 14px; color: var(--text); }
.ppm-type__sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

#walletPayoutMethodsList.acc-payout-list {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  #walletPayoutMethodsList.acc-payout-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.acc-payout-wiz__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.ppm-form { margin-bottom: 14px; }
.acc-payout-wiz__body .btn-block { margin-top: 4px; }

/* Card stage */
.ppm-card-stage {
    position: relative;
    aspect-ratio: 1.586;
    max-width: 360px;
    margin: 0 auto 14px;
    padding: 18px 20px 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0d4a42 0%, #1a6b5c 45%, #0a3530 100%);
    color: #fff;
    box-shadow: 0 12px 32px color-mix(in srgb, #0d4a42 45%, transparent), 0 0 0 1px color-mix(in srgb, #fff 12%, transparent) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ppm-card-stage__shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 20% 0%, color-mix(in srgb, #fff 18%, transparent), transparent 60%);
    pointer-events: none;
}
.ppm-card-stage__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.ppm-card-stage__chip {
    width: 36px;
    height: 28px;
    border-radius: 5px;
    background: linear-gradient(135deg, #d4af37, #f5e6a3 50%, #c9a227);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.ppm-card-stage__brand {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    opacity: 0.92;
}
.ppm-card-field {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.ppm-card-field--number { flex: 1; margin-bottom: 8px; }
.ppm-card-field__label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
}
.ppm-card-input {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, #fff 22%, transparent) !important;
    border-radius: 8px;
    background: color-mix(in srgb, #000 28%, transparent) !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: ui-monospace, monospace;
    outline: none;
    box-shadow: none !important;
}
.ppm-card-input::placeholder {
    color: color-mix(in srgb, #fff 52%, transparent) !important;
    letter-spacing: 0.06em;
}
.ppm-card-input:focus {
    background: color-mix(in srgb, #000 38%, transparent) !important;
    border-color: color-mix(in srgb, #fff 42%, transparent) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, #fff 22%, transparent) !important;
}
.ppm-card-input:-webkit-autofill,
.ppm-card-input:-webkit-autofill:hover,
.ppm-card-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    transition: background-color 9999s ease-out 0s;
    -webkit-box-shadow: 0 0 0 1000px color-mix(in srgb, #0a3530 88%, #000) inset !important;
}
.ppm-card-input--sm {
    font-size: 14px;
    letter-spacing: 0.06em;
    min-height: 40px;
}
.ppm-card-input--exp {
    letter-spacing: 0.04em;
    text-align: center;
    padding-inline: 6px;
}
.ppm-card-stage__row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}
.ppm-card-field--exp {
    flex: 0 0 76px;
    width: 76px;
    min-width: 76px;
    max-width: 76px;
}
.ppm-card-field--holder {
    flex: 1 1 0;
    min-width: 0;
}
.ppm-card-stage__row .ppm-card-field {
    margin-bottom: 0;
}

/* CVV security alert */
.ppm-security-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-top: 4px;
    border-radius: 12px;
    border: 2px solid var(--danger, #c0392b);
    background: color-mix(in srgb, var(--danger, #c0392b) 8%, var(--surface));
    animation: ppm-alert-pulse 2.5s ease-in-out infinite;
}
@keyframes ppm-alert-pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger, #c0392b) 0%, transparent); }
    50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger, #c0392b) 18%, transparent); }
}
.ppm-security-alert__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--danger, #c0392b);
}
.ppm-security-alert__icon svg { width: 28px; height: 28px; }
.ppm-security-alert__body { min-width: 0; }
.ppm-security-alert__title {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: var(--danger, #c0392b);
    line-height: 1.25;
    margin-bottom: 6px;
}
.ppm-security-alert__body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
}
.ppm-security-alert__body p strong { color: var(--danger, #c0392b); font-weight: 800; }

/* SBP sheet */
.ppm-sbp-sheet {
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, #21a038 35%, var(--border));
    background: #f4faf6;
    overflow: hidden;
}
html[data-theme="dark"] .ppm-sbp-sheet {
    background: color-mix(in srgb, #21a038 8%, var(--surface));
}
.ppm-sbp-sheet__stripe {
    height: 4px;
    background: #21a038;
}
.ppm-sbp-sheet__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 10px;
}
.ppm-sbp-sheet__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    background: #21a038;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
}
.ppm-sbp-sheet__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}
.ppm-sbp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px 12px;
}
.ppm-sbp-field__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.ppm-sbp-input,
.ppm-sbp-select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}
.ppm-sbp-input:focus,
.ppm-sbp-select:focus {
    border-color: #21a038;
    box-shadow: 0 0 0 2px color-mix(in srgb, #21a038 20%, transparent);
}
.ppm-sbp-phone {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}
.ppm-sbp-phone:focus-within {
    border-color: #21a038;
    box-shadow: 0 0 0 2px color-mix(in srgb, #21a038 20%, transparent);
}
.ppm-sbp-phone__prefix {
    padding: 10px 12px;
    font-weight: 800;
    font-size: 15px;
    color: var(--text-muted);
    background: var(--surface-2);
    border-right: 1px solid var(--border);
}
.ppm-sbp-phone .ppm-sbp-input {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0;
    box-shadow: none;
}
.ppm-sbp-phone .ppm-sbp-input:focus { box-shadow: none; }
.ppm-sbp-sheet__hint {
    margin: 0;
    padding: 0 16px 14px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
}

/* SBP bank picker */
.ppm-bank-picker {
    position: relative;
}
.ppm-bank-picker__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
    font-size: 15px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: none !important;
}
.ppm-bank-picker__trigger:hover {
    border-color: color-mix(in srgb, #21a038 40%, var(--border)) !important;
}
.ppm-bank-picker--open .ppm-bank-picker__trigger {
    border-color: #21a038 !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, #21a038 20%, transparent) !important;
}
.ppm-bank-picker__trigger-mark {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}
.ppm-bank-picker__trigger-mark--empty {
    background: var(--surface-2);
    color: var(--text-muted);
}
.ppm-bank-picker__trigger-text {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}
.ppm-bank-picker__chev {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.55;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--dur-2) var(--ease-out);
}
.ppm-bank-picker--open .ppm-bank-picker__chev {
    transform: rotate(180deg);
}
.ppm-bank-picker__panel {
    margin-top: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 12px 32px color-mix(in srgb, #04110f 14%, transparent);
}
.ppm-bank-picker__panel.hidden { display: none; }
.ppm-bank-picker__search {
    margin-bottom: 8px;
}
.ppm-bank-picker__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: min(220px, 42vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.ppm-bank-picker__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.ppm-bank-picker__opt:hover {
    background: color-mix(in srgb, #21a038 8%, var(--surface-2));
}
.ppm-bank-picker__opt--selected {
    background: color-mix(in srgb, #21a038 12%, var(--surface-2));
    border-color: color-mix(in srgb, #21a038 35%, var(--border));
}
.ppm-bank-picker__opt.hidden { display: none; }
.ppm-bank-picker__mark {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}
.ppm-bank-picker__name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}
.ppm-bank-picker__check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #21a038;
}
.ppm-bank-picker__check svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* FK Wallet */
.ppm-fk-wallet {
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, #7c3aed 35%, var(--border));
    background: var(--surface);
    overflow: hidden;
}
.ppm-fk-wallet__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}
.ppm-fk-wallet__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: color-mix(in srgb, #fff 18%, transparent);
}
.ppm-fk-wallet__icon svg { width: 24px; height: 24px; }
.ppm-fk-wallet__title {
    display: block;
    font-size: 16px;
    font-weight: 800;
}
.ppm-fk-wallet__sub {
    display: block;
    font-size: 12px;
    opacity: 0.85;
}
.ppm-fk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 0;
}
.ppm-fk-field__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.ppm-fk-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}
.ppm-fk-input--hero {
    font-size: 22px;
    font-weight: 800;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.08em;
    text-align: center;
}
.ppm-fk-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px color-mix(in srgb, #7c3aed 22%, transparent);
}
.ppm-fk-wallet__hint {
    margin: 0;
    padding: 10px 16px 14px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Crypto sheet */
.ppm-crypto-sheet {
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, #f0b90b 30%, var(--border));
    background: #0f1419;
    color: #e8eaed;
    overflow: hidden;
}
.ppm-crypto-sheet__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid color-mix(in srgb, #fff 10%, transparent);
}
.ppm-crypto-sheet__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, #f0b90b 20%, transparent);
    color: #f0b90b;
}
.ppm-crypto-sheet__icon svg { width: 20px; height: 20px; }
.ppm-crypto-sheet__title {
    font-size: 15px;
    font-weight: 800;
}
.ppm-crypto-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px 0;
}
.ppm-crypto-field__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, #fff 55%, transparent);
}
.ppm-crypto-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, #fff 15%, transparent);
    background: color-mix(in srgb, #fff 6%, transparent);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
.ppm-crypto-input--addr {
    font-family: ui-monospace, monospace;
    font-size: 13px;
    word-break: break-all;
}
.ppm-crypto-input:focus {
    border-color: #f0b90b;
    box-shadow: 0 0 0 2px color-mix(in srgb, #f0b90b 25%, transparent);
}
.ppm-crypto-sheet__hint {
    margin: 0;
    padding: 10px 16px 14px;
    font-size: 12px;
    color: color-mix(in srgb, #fff 55%, transparent);
    line-height: 1.4;
}

/* Upload zones (step 3) */
.ppm-upload-zone {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.ppm-upload-zone__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}
.ppm-upload-zone__box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 12px;
    border-radius: 12px;
    border: 2px dashed var(--border);
    background: var(--surface);
    transition: border-color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out);
}
.ppm-upload-zone:hover .ppm-upload-zone__box,
.ppm-upload-zone--filled .ppm-upload-zone__box {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.ppm-upload-zone__hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    pointer-events: none;
}
.ppm-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#withdrawModalPayoutWrap.hidden { display: none; }
#withdrawModalPayoutEmpty { margin: 8px 0 0; font-size: 13px; color: var(--text-muted); }
#withdrawModalPayoutEmpty.hidden { display: none; }
#withdrawModalPayoutMethod {
    width: 100%;
    min-height: 44px;
}

.acc-history-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.acc-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.acc-history-table th {
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.acc-history-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.acc-history-table__amt { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.acc-history-table__amt--in { color: var(--accent); }
.acc-history-table__amt--out { color: var(--text); }
.acc-history-ids { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-history-ids button {
    min-height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    color: var(--text-muted);
}
.acc-history-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
}
.acc-history-legal a { color: var(--accent); }

@media (min-width: 1024px) {
    .acc-payout-wizard {
        align-items: center;
    }
    .acc-payout-wiz {
        border-radius: 16px;
        padding: 20px 22px;
    }
    #accountModal .acc-payout-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (min-width: 480px) {
    .acc-payout-wiz__types {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .acc-payout-wizard {
        padding: 0;
        background: var(--bg);
    }
    .acc-payout-wiz {
        width: 100%;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        border: 0;
        padding: 12px 14px calc(88px + env(safe-area-inset-bottom, 0px));
    }
    .acc-payout-wiz .btn-block,
    .acc-payout-wiz #accPayoutWizSave,
    .acc-payout-wiz #accPayoutWizSend {
        min-height: 48px;
    }
    #accountModal .acc-payout-list { grid-template-columns: 1fr; }
    .acc-history-table th:nth-child(3),
    .acc-history-table td:nth-child(3) { min-width: 140px; }
    .ppm-security-alert { padding: 12px 14px; }
    .ppm-security-alert__title { font-size: 14px; }
    .ppm-card-input { font-size: 16px; }
    .acc-payout-wiz .btn-block,
    .acc-payout-wiz #accPayoutWizSave,
    .acc-payout-wiz #accPayoutWizSend {
      position: sticky;
      bottom: env(safe-area-inset-bottom, 0);
      z-index: 2;
      margin-top: 8px;
      box-shadow: 0 -10px 28px color-mix(in srgb, var(--bg, #0f1218) 75%, transparent);
    }
  }

@media (prefers-reduced-motion: reduce) {
    .ppm-security-alert { animation: none; }
}
