/* Mobile Wallet Bottom Sheet - Mellstroy style */

html.wallet-scroll-locked,
body.wallet-scroll-locked {
    overflow: hidden;
    height: 100%;
}

body.wallet-scroll-locked {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
}

.wallet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 7, 20, 0.64);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 9998;
}

.wallet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.wallet-bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(env(safe-area-inset-top, 0px) + 60px);
    bottom: env(safe-area-inset-bottom, 0px);
    background: #1f1632;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - (env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 60px));
    max-width: 100vw;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(env(safe-area-inset-bottom, 16px) + 64px);
    visibility: hidden; /* Скрываем когда не активен, чтобы не показывался при прокрутке */
    pointer-events: none; /* Отключаем взаимодействие когда не активен */
}

.wallet-bottom-sheet.active {
    transform: translateY(0);
    visibility: visible; /* Показываем когда активен */
    pointer-events: auto; /* Включаем взаимодействие когда активен */
}

/* ============================================
   DESKTOP CENTERED MODAL (768px+)
   ============================================ */
@media (min-width: 768px) {
    .wallet-overlay.active {
        background: rgba(9, 7, 20, 0.75);
    }

    .wallet-bottom-sheet {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0;
        width: 480px;
        max-width: 90vw;
        max-height: 85vh;
        border-radius: 24px;
        padding-bottom: 0;
        box-shadow: 0 32px 64px rgba(9, 7, 20, 0.45);
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Скрываем scrollbar на десктопе */
    .wallet-bottom-sheet::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .wallet-bottom-sheet {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .wallet-deposit-content::-webkit-scrollbar,
    .wallet-withdraw-content::-webkit-scrollbar,
    .wallet-deposit-details-inner::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .wallet-deposit-content,
    .wallet-withdraw-content,
    .wallet-deposit-details-inner {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .wallet-bottom-sheet.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    .wallet-bottom-sheet.deposit-mode,
    .wallet-bottom-sheet.withdraw-mode {
        width: 520px;
        max-height: 90vh;
    }

    /* Компактный вид для десктопа */
    .wallet-sheet-inner {
        padding: 20px 20px 24px;
        gap: 16px;
    }

    .wallet-main-card {
        margin-top: 0;
    }

    .wallet-section {
        margin-top: 8px;
    }

    /* Deposit/Withdraw views на десктопе */
    .wallet-deposit-container,
    .wallet-withdraw-container {
        border-radius: 24px;
    }

    .wallet-deposit-content,
    .wallet-withdraw-content {
        padding: 20px 18px 24px;
        gap: 18px;
    }

    .wallet-deposit-topbar {
        padding: 16px 18px 0;
        margin-bottom: 18px;
    }
}

.wallet-sheet-inner {
    position: relative;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 16px));
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}

.wallet-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.wallet-sheet-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wallet-sheet-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.wallet-sheet-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.wallet-sheet-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wallet-sheet-close svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.wallet-sheet-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.wallet-sheet-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-bottom-sheet.deposit-mode,
.wallet-bottom-sheet.withdraw-mode {
    background: linear-gradient(180deg, #f7f5ff 0%, #efeaff 60%, #e7f2ff 100%);
}

.wallet-bottom-sheet.deposit-mode .wallet-sheet-inner,
.wallet-bottom-sheet.withdraw-mode .wallet-sheet-inner {
    padding: 0;
}

.wallet-bottom-sheet.deposit-mode .wallet-sheet-content,
.wallet-bottom-sheet.withdraw-mode .wallet-sheet-content {
    gap: 0;
}

.wallet-bottom-sheet.deposit-mode .wallet-sheet-header,
.wallet-bottom-sheet.withdraw-mode .wallet-sheet-header {
    display: none;
}

.wallet-view {
    width: 100%;
    display: none;
}

.wallet-view.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Wallet main view **************************************************/
.wallet-view-main {
    flex: 1;
}

.wallet-main-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px 14px;
    border-radius: 20px;
    background: radial-gradient(120% 140% at 0% 0%, rgba(80, 63, 154, 0.95) 0%, rgba(46, 29, 100, 0.94) 40%, rgba(28, 18, 74, 0.9) 100%);
    box-shadow: 0 16px 28px rgba(9, 6, 32, 0.36);
    margin-top: -6px;
}

.wallet-main-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.wallet-main-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
}

.wallet-main-balance {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(24, 16, 60, 0.42) 0%, rgba(14, 9, 34, 0.55) 100%);
    box-shadow: 0 10px 20px rgba(9, 6, 32, 0.28);
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.wallet-main-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: radial-gradient(115% 115% at 30% 20%, rgba(64, 255, 144, 0.3) 0%, rgba(24, 24, 24, 0) 100%), rgba(16, 12, 38, 0.58);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 20px rgba(9, 6, 32, 0.32);
}

.wallet-main-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.wallet-main-amount {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
    padding-top: 0;
}

.wallet-main-value-line {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.wallet-main-value {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.012em;
}

.wallet-main-symbol {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.68);
    text-transform: uppercase;
}

.wallet-main-actions {
    display: flex;
    gap: 8px;
}

.wallet-action-btn {
    flex: 1;
    height: 38px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wallet-action-btn:active {
    transform: translateY(1px);
}

.wallet-action-btn--deposit {
    background: linear-gradient(180deg, #46ff8f 0%, #20dd73 100%);
    color: #04121d;
    box-shadow: 0 16px 26px rgba(30, 225, 121, 0.3);
}

.wallet-action-btn--deposit:hover {
    box-shadow: 0 18px 30px rgba(30, 225, 121, 0.32);
}

.wallet-action-btn--deposit .wallet-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(4, 18, 29, 0.12);
    font-size: 16px;
    font-weight: 700;
}

.wallet-action-btn--withdraw {
    background: rgba(14, 10, 36, 0.45);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.wallet-action-btn--withdraw:hover {
    background: rgba(14, 10, 36, 0.55);
}

.wallet-mell-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(83, 62, 153, 0.88) 0%, rgba(53, 35, 108, 0.92) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    width: 100%;
    box-sizing: border-box;
}

.wallet-mell-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.wallet-mell-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(11, 7, 32, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wallet-mell-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.wallet-mell-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wallet-mell-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.wallet-mell-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.56);
}

.wallet-mell-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.wallet-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.wallet-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.wallet-account-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(21, 16, 48, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.wallet-account-item:hover {
    transform: translateY(-1px);
    background: rgba(24, 18, 56, 0.85);
}

.wallet-account-item.active {
    border-color: rgba(84, 231, 158, 0.55);
    box-shadow: 0 10px 22px rgba(6, 214, 120, 0.18), inset 0 0 0 1px rgba(84, 231, 158, 0.45);
    background: rgba(24, 18, 56, 0.9);
}

.wallet-account-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-account-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(11, 7, 40, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wallet-account-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.wallet-account-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wallet-account-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.wallet-account-code {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
}

.wallet-account-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-weight: 700;
}

.wallet-account-symbol {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.wallet-account-value {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.wallet-account-item[data-type="crypto"] .wallet-account-icon {
    background: rgba(18, 25, 68, 0.55);
}

.wallet-bottom-sheet.details-mode .wallet-main-card,
.wallet-bottom-sheet.details-mode .wallet-mell-card,
.wallet-bottom-sheet.details-mode .wallet-account-list {
    filter: blur(6px);
    opacity: 0.4;
    pointer-events: none;
}

.wallet-view-deposit {
    flex: 1;
    display: none;
    padding: 0;
}

.wallet-view-deposit.active {
    display: block;
}

.wallet-view-withdraw {
    flex: 1;
    display: none;
    padding: 0;
}

.wallet-view-withdraw.active {
    display: block;
}

.wallet-deposit-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f4f6ff 100%);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    box-shadow: 0 28px 44px rgba(21, 15, 52, 0.2);
    transition: opacity 0.25s ease;
    position: relative;
}

.wallet-deposit-main {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.wallet-deposit-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(247, 248, 255, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(94, 120, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.wallet-deposit-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #0a1032;
}

.wallet-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: rgba(11, 16, 49, 0.52);
}

.wallet-toggle input {
    display: none;
}

.wallet-toggle-pill {
    width: 46px;
    height: 24px;
    border-radius: 16px;
    background: rgba(13, 18, 46, 0.14);
    position: relative;
    transition: background 0.2s ease;
}

.wallet-toggle-pill--active {
    background: #10b981; /* Зеленый цвет когда включен */
}

.wallet-toggle input:checked + .wallet-toggle-pill {
    background: #10b981; /* Зеленый цвет когда включен */
}

.wallet-toggle-indicator {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(9, 12, 34, 0.18);
    transition: transform 0.2s ease;
}

.wallet-toggle input:checked + .wallet-toggle-pill .wallet-toggle-indicator {
    transform: translateX(20px);
}

.wallet-toggle-text {
    font-size: 12px;
    color: rgba(11, 16, 49, 0.55);
}

.wallet-deposit-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px 2px;
    margin-bottom: 24px; /* Отступ между хедером и первым блоком */
}

.wallet-deposit-topbar-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 2px;
}

.wallet-deposit-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(28, 20, 76, 0.35);
}

.wallet-deposit-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #090f2f;
}

.wallet-deposit-action {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 42, 114, 0.08);
    color: rgba(32, 42, 114, 0.72);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wallet-deposit-action:hover {
    background: rgba(32, 42, 114, 0.16);
    transform: translateY(-1px);
}

.wallet-deposit-action svg {
    width: 16px;
    height: 16px;
}

.wallet-deposit-banner {
    position: relative;
    border-radius: 14px;
    margin: 0;
    padding: 12px 80px 12px 16px;
    background: linear-gradient(140deg, rgba(42, 62, 255, 1) 0%, rgba(86, 52, 255, 0.9) 55%, rgba(162, 54, 255, 0.86) 100%);
    color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    width: 100%;
    border: 1px solid rgba(78, 255, 143, 0.55);
    box-shadow: 0 12px 22px rgba(58, 40, 188, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    min-height: 56px;
}

.wallet-deposit-banner::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -24px;
    bottom: -8px;
    width: 150px;
    background: url('/images/deposit-banner.png') center right/contain no-repeat;
    pointer-events: none;
    opacity: 0.85;
}

.wallet-deposit-banner.hidden {
    display: none !important;
}

.wallet-deposit-banner-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    position: relative;
    z-index: 1;
}
.wallet-banner-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.wallet-banner-subtitle {
    font-size: 11px;
    line-height: 1.3;
    opacity: 0.9;
}
.wallet-banner-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.wallet-banner-timer {
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(7, 15, 60, 0.35);
    border-radius: 12px;
    padding: 4px 12px;
    width: fit-content;
}
.wallet-banner-info {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    border: none;
    background: rgba(13, 24, 74, 0.42);
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.wallet-banner-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(140deg, #42ff97 0%, #2ed071 100%);
    color: #0a2918;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(46, 208, 113, 0.25);
}

.wallet-deposit-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-deposit-section + .wallet-deposit-section {
    margin-top: 10px;
}

.wallet-deposit-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #0b1032;
    letter-spacing: -0.005em;
}

.wallet-deposit-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-deposit-methods--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 6px;
}

.wallet-payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    background: rgba(243, 245, 255, 0.94);
    border-radius: 14px;
    border: 1px solid rgba(105, 118, 255, 0.16);
    color: #0a1032;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, background 0.2s ease;
    text-align: center;
    position: relative;
}

.wallet-payment-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(38, 52, 156, 0.18);
}

.wallet-payment-card.active,
.wallet-payment-card.wallet-payment-card--primary {
    background: #ffffff;
    border-color: rgba(82, 247, 158, 0.8);
    box-shadow: 0 18px 28px rgba(82, 247, 158, 0.22);
}

.wallet-payment-card.active::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(140deg, #42ff97 0%, #2ed071 100%);
    box-shadow: 0 10px 18px rgba(46, 208, 113, 0.25);
}

.wallet-payment-card.active::before {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 10px;
    height: 8px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\"><path fill=\"%230a2918\" d=\"M20 6L9 17l-5-5\"/></svg>') center / contain no-repeat;
}

.wallet-payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(90, 112, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-payment-icon--card {
    background: rgba(38, 53, 158, 0.1);
}

.wallet-payment-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.wallet-payment-name {
    font-size: 12px;
    font-weight: 600;
    color: #0a1032;
    text-align: center;
}

.wallet-payment-subname {
    font-size: 10px;
    color: rgba(10, 16, 50, 0.5);
    text-align: center;
}

.wallet-deposit-content {
    display: flex;
    flex-direction: column;
    gap: 24px; /* Увеличенный отступ между всеми блоками */
    padding: 24px 14px 18px; /* Добавлен padding-top для отступа от хедера */
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.wallet-withdraw-content {
    gap: 14px;
}

.wallet-withdraw-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(244, 246, 255, 0.85) 0%, rgba(231, 234, 255, 0.82) 100%);
    border: 1px solid rgba(124, 136, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    color: rgba(11, 16, 50, 0.84);
    line-height: 1.46;
}

#walletWithdrawAmountHint,
#walletWithdrawAvailableBalance {
    color: #0b1032;
}

.wallet-withdraw-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 28px 16px;
    border-radius: 20px;
    background: rgba(244, 246, 255, 0.68);
    border: 1px dashed rgba(124, 136, 255, 0.22);
    color: rgba(11, 16, 50, 0.72);
}

.wallet-withdraw-empty svg {
    color: rgba(94, 109, 255, 0.45);
}

.wallet-withdraw-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: #0b1032;
}

.wallet-withdraw-empty-subtitle {
    font-size: 13px;
    color: rgba(11, 16, 50, 0.6);
    line-height: 1.4;
}

.wallet-withdraw-methods-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248, 249, 255, 0.92) 0%, rgba(233, 238, 255, 0.9) 100%);
    border: 1px solid rgba(120, 134, 255, 0.14);
    box-shadow: 0 18px 32px rgba(17, 28, 74, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.wallet-withdraw-methods-block.is-empty {
    background: linear-gradient(180deg, rgba(246, 249, 255, 0.95) 0%, rgba(233, 238, 255, 0.92) 100%);
}

.wallet-withdraw-methods-block.is-hidden {
    display: none;
}

.wallet-withdraw-methods-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-withdraw-methods-title {
    font-size: 15px;
    font-weight: 700;
    color: #0b1032;
}

.wallet-withdraw-methods-subtitle {
    font-size: 13px;
    color: rgba(11, 16, 50, 0.58);
}

.wallet-withdraw-methods-layout {
    display: grid;
    gap: 12px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wallet-withdraw-amount-summary {
    --withdraw-accent: #5a68ff;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--withdraw-accent) 28%, transparent);
    box-shadow: 0 18px 28px rgba(17, 33, 90, 0.08);
}

.wallet-withdraw-amount-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wallet-withdraw-amount-summary-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-withdraw-amount-summary-label {
    font-size: 14px;
    font-weight: 600;
    color: #0b1032;
}

.wallet-withdraw-amount-summary-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--withdraw-accent);
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.wallet-withdraw-amount-summary-note {
    font-size: 13px;
    color: rgba(12, 18, 60, 0.74);
    line-height: 1.44;
}

.wallet-withdraw-details {
    --withdraw-accent: #5a68ff;
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 18px 16px 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--withdraw-accent) 24%, transparent);
    box-shadow: 0 20px 34px rgba(15, 21, 60, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wallet-withdraw-method {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-withdraw-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--withdraw-accent) 18%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wallet-withdraw-method-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallet-withdraw-method-placeholder {
    font-size: 16px;
    font-weight: 700;
    color: #4451ff;
}

.wallet-withdraw-method-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wallet-withdraw-method-name {
    font-size: 16px;
    font-weight: 600;
    color: #0b1032;
}

.wallet-withdraw-method-subtitle {
    font-size: 12px;
    color: rgba(12, 18, 60, 0.56);
}

.wallet-withdraw-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--withdraw-accent) 10%, #ffffff 90%);
    border: 1px solid color-mix(in srgb, var(--withdraw-accent) 26%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.wallet-withdraw-summary-label {
    font-size: 13px;
    font-weight: 600;
    color: #0b1032;
}

.wallet-withdraw-summary-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--withdraw-accent);
    display: flex;
    gap: 6px;
}

.wallet-withdraw-summary-note {
    font-size: 12px;
    color: rgba(12, 18, 60, 0.7);
    line-height: 1.42;
}

.wallet-withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.wallet-withdraw-form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-withdraw-form-title {
    font-size: 14px;
    font-weight: 600;
    color: #0b1032;
}

.wallet-withdraw-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-withdraw-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #0b1032;
}

.wallet-withdraw-field-label span {
    font-size: 12px;
    font-weight: 500;
    color: rgba(12, 18, 60, 0.5);
    margin-left: 6px;
}

.wallet-withdraw-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 14px;
    border: 1px solid rgba(122, 139, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
    padding: 10px 12px;
    min-height: 42px;
}

.wallet-withdraw-input input,
.wallet-withdraw-input textarea {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    font-weight: 600;
    color: #090f2f;
    outline: none;
}

.wallet-withdraw-input input::placeholder,
.wallet-withdraw-input textarea::placeholder {
    color: rgba(9, 15, 47, 0.35);
    font-weight: 400;
    opacity: 1;
}

.wallet-withdraw-input input::-webkit-input-placeholder,
.wallet-withdraw-input textarea::-webkit-input-placeholder {
    color: rgba(9, 15, 47, 0.35);
    font-weight: 400;
}

.wallet-withdraw-input input::-moz-placeholder,
.wallet-withdraw-input textarea::-moz-placeholder {
    color: rgba(9, 15, 47, 0.35);
    font-weight: 400;
    opacity: 1;
}

.wallet-withdraw-input input:-ms-input-placeholder,
.wallet-withdraw-input textarea:-ms-input-placeholder {
    color: rgba(9, 15, 47, 0.35);
    font-weight: 400;
}

.wallet-withdraw-input textarea {
    resize: none;
    min-height: 68px;
}

.wallet-withdraw-input input:-webkit-autofill,
.wallet-withdraw-input textarea:-webkit-autofill,
.wallet-deposit-amount-input input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.94) inset;
    -webkit-text-fill-color: #090f2f;
    transition: background-color 600000s 0s, color 600000s 0s;
}

.wallet-withdraw-input input:-webkit-autofill:focus,
.wallet-withdraw-input textarea:-webkit-autofill:focus,
.wallet-deposit-amount-input input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.94) inset;
    -webkit-text-fill-color: #090f2f;
}

.wallet-withdraw-input.has-error {
    border-color: rgba(220, 78, 78, 0.55);
    box-shadow: inset 0 0 0 1px rgba(220, 78, 78, 0.28);
}

.wallet-withdraw-input input.has-error,
.wallet-withdraw-input textarea.has-error {
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(220, 78, 78, 0.6);
}

.wallet-withdraw-disclaimer {
    font-size: 12px;
    color: rgba(11, 16, 50, 0.7);
    line-height: 1.46;
    background: rgba(94, 109, 255, 0.08);
    border: 1px solid rgba(94, 109, 255, 0.16);
    border-radius: 14px;
    padding: 10px 12px;
}

.wallet-withdraw-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1fc878 0%, #18b36b 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    box-shadow: 0 14px 26px rgba(24, 179, 107, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.wallet-withdraw-submit:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(31, 200, 120, 0.85) 0%, rgba(24, 179, 107, 0.85) 100%);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 24px rgba(24, 179, 107, 0.22);
}

.wallet-withdraw-submit.is-success {
    background: linear-gradient(135deg, #1fc878 0%, #18b36b 100%);
    box-shadow: 0 16px 32px rgba(24, 179, 107, 0.45);
}

.wallet-withdraw-success {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border-radius: 24px;
    z-index: 5;
}

.wallet-withdraw-success.is-visible {
    display: flex;
}

.wallet-withdraw-success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 22px 20px 20px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 244, 255, 0.94) 100%);
    border-radius: 22px;
    border: 1px solid rgba(94, 109, 255, 0.18);
    box-shadow: 0 18px 38px rgba(15, 21, 60, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    max-width: 320px;
    color: #0b1032;
}

.wallet-withdraw-success svg {
    color: #5a68ff;
}

.wallet-withdraw-success p {
    font-size: 14px;
    line-height: 1.5;
}

.wallet-withdraw-success button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #5a68ff 0%, #7a88ff 100%);
    box-shadow: 0 12px 22px rgba(94, 109, 255, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.wallet-withdraw-success button:active {
    transform: translateY(1px);
    box-shadow: 0 8px 18px rgba(94, 109, 255, 0.22);
}

.wallet-deposit-amount-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 16px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(244, 246, 255, 0.96) 0%, rgba(231, 234, 255, 0.92) 100%);
    border: 1px solid rgba(124, 136, 255, 0.14);
    box-shadow: 0 14px 26px rgba(17, 33, 90, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.wallet-deposit-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #0b1032;
}

.wallet-deposit-amount-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.wallet-deposit-amount-input {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    min-height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(122, 139, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.wallet-deposit-amount-symbol {
    font-size: 13px;
    font-weight: 600;
    color: rgba(9, 15, 47, 0.7);
}

#walletDetailsAmount {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    font-weight: 600;
    color: #090f2f;
    outline: none;
}

#walletDetailsAmount:disabled {
    opacity: 0.65;
}

.wallet-deposit-amount-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5235ff 0%, #814dff 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 0 18px;
    min-width: 130px;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 42px;
}

.wallet-deposit-amount-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(83, 53, 255, 0.18);
}

.wallet-deposit-amount-submit.is-secondary {
    background: rgba(32, 42, 114, 0.08);
    color: rgba(32, 42, 114, 0.9);
    box-shadow: none;
}

.wallet-deposit-amount-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 18px;
}

.wallet-deposit-amount-hint {
    font-size: 12px;
    font-weight: 600;
    color: rgba(11, 16, 50, 0.56);
}

.wallet-deposit-amount-error {
    font-size: 12px;
    font-weight: 600;
    color: #f2455c;
    margin-left: auto;
}

.wallet-deposit-amount-summary {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 18px 16px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.98) 0%, rgba(235, 238, 255, 0.95) 100%);
    border: 1px solid rgba(112, 117, 255, 0.16);
    box-shadow: 0 16px 28px rgba(23, 32, 74, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
}

.wallet-deposit-amount-summary-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.wallet-deposit-amount-summary-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(11, 16, 50, 0.58);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.wallet-deposit-amount-summary-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    font-size: 24px;
    font-weight: 800;
    color: #0b0f32;
}

.wallet-deposit-amount-summary-value span:last-child {
    font-size: 16px;
    font-weight: 700;
    color: rgba(11, 16, 50, 0.6);
    text-transform: uppercase;
}

.wallet-deposit-amount-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(118, 88, 255, 0.12);
    border: 1px solid rgba(118, 88, 255, 0.18);
    color: #563bff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wallet-deposit-amount-copy svg {
    stroke: currentColor;
}

.wallet-deposit-amount-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(86, 59, 255, 0.16);
}

.wallet-deposit-amount-summary-note {
    font-size: 12px;
    font-weight: 600;
    color: #0b1032;
    line-height: 1.4;
    max-width: 260px;
}

.wallet-deposit-change-amount {
    display: none;
    align-self: center;
    border: none;
    background: none;
    color: rgba(86, 59, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin: -4px 0 0;
}

.wallet-deposit-countdown {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(94, 109, 255, 0.12);
    border: 1px solid rgba(94, 109, 255, 0.28);
    width: fit-content;
    margin: 0 auto;
}

.wallet-deposit-countdown-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(20, 26, 82, 0.78);
}

.wallet-deposit-countdown-label svg {
    stroke: currentColor;
}

.wallet-deposit-countdown-timer {
    font-size: 18px;
    font-weight: 700;
    color: #3f2fff;
}

#walletDetailsAmountHint {
    color: #0b1032;
}

.wallet-deposit-details-label {
    color: rgba(8, 11, 29, 0.78);
}

.wallet-deposit-waiting {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(94, 109, 255, 0.08);
    border: 1px solid rgba(94, 109, 255, 0.18);
    margin: 6px 0 0;
}

.wallet-deposit-waiting-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(94, 109, 255, 0.15);
    border-top-color: rgba(94, 109, 255, 0.8);
    animation: wallet-spin 1s linear infinite;
}

.wallet-deposit-waiting-text {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: rgba(16, 24, 74, 0.78);
}

@keyframes wallet-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wallet-deposit-deadline {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: rgba(82, 53, 255, 0.9);
    background: rgba(82, 53, 255, 0.08);
    border: 1px solid rgba(82, 53, 255, 0.18);
    border-radius: 14px;
    padding: 12px 14px;
    text-align: center;
}

.wallet-deposit-deadline #walletDepositCountdown {
    font-weight: 700;
    color: #5235ff;
}

.wallet-deposit-details-main {
    display: none;
    flex-direction: column;
    gap: 12px;
    min-height: 0; /* КРИТИЧНО: позволяет flexbox правильно вычислять высоту */
}

.wallet-deposit-paid-btn {
    display: none;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #00d084 0%, #00b26f 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    margin: 8px 0 0 0; /* Небольшой верхний отступ внутри блока карты */
    width: 100%;
    max-width: 100%; /* Занимает всю ширину блока карты */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(0, 180, 110, 0.35), 0 0 16px rgba(0, 255, 165, 0.4);
}

.wallet-deposit-paid-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0, 180, 110, 0.35), 0 0 22px rgba(0, 255, 165, 0.5);
}

.wallet-deposit-paid-btn.loading {
    cursor: progress;
}

.wallet-deposit-paid-btn.is-success {
    background: linear-gradient(135deg, #38d271 0%, #22b95f 100%);
    box-shadow: 0 14px 26px rgba(34, 185, 95, 0.32), 0 0 18px rgba(0, 255, 165, 0.4);
}

.wallet-deposit-paid-btn.is-success:disabled {
    opacity: 1;
    cursor: default;
}

.wallet-deposit-paid-btn:disabled {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
}

.wallet-deposit-paid-error {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #f2455c;
    text-align: center;
}

.wallet-deposit-success {
    display: none;
    margin-top: 18px;
    padding: 18px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fffb 0%, #e9fff4 100%);
    border: 1px solid rgba(50, 210, 140, 0.32);
    box-shadow: 0 16px 30px rgba(34, 185, 95, 0.18);
    text-align: center;
    color: #0e2f1c;
}

.wallet-deposit-success-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 210, 130, 0.14);
    color: #22b95f;
}

.wallet-deposit-success-icon svg {
    stroke: currentColor;
}

.wallet-deposit-success-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.wallet-deposit-success-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(14, 47, 28, 0.78);
    line-height: 1.5;
}

.wallet-deposit-details {
    position: absolute;
    inset: 0;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f5f6ff 100%);
    padding: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s ease;
}

.wallet-deposit-details.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.wallet-bottom-sheet.details-mode .wallet-deposit-main {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
}

.wallet-bottom-sheet.details-mode {
    overflow-y: auto;
}

.wallet-deposit-details-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px calc(140px + env(safe-area-inset-bottom, 16px));
    flex: 1;
    min-height: 0; /* КРИТИЧНО: позволяет flexbox правильно вычислять высоту с overflow */
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.wallet-deposit-details-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0; /* КРИТИЧНО: позволяет flexbox правильно вычислять высоту */
}

.wallet-deposit-amount-block,
.wallet-deposit-amount-summary,
.wallet-deposit-details-main,
.wallet-deposit-countdown {
    touch-action: pan-y;
}

.wallet-deposit-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 4px;
}

.wallet-deposit-details-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
    color: #5b3fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 0;
}

.wallet-deposit-details-back svg {
    width: 18px;
    height: 18px;
}

.wallet-deposit-details-close {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: none;
    background: rgba(8, 11, 29, 0.05);
    color: rgba(8, 11, 29, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wallet-deposit-details-close svg {
    width: 20px;
    height: 20px;
}

.wallet-deposit-details-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-deposit-details-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(8, 11, 29, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-deposit-details-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.wallet-deposit-details-name {
    font-size: 18px;
    font-weight: 700;
    color: #080b1d;
}

.wallet-deposit-details-network {
    font-size: 13px;
    color: rgba(8, 11, 29, 0.6);
    margin-top: 2px;
}

.wallet-deposit-details-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 14px;
    padding: 12px;
}

.wallet-deposit-details-row {
    gap: 2px;
}

.wallet-deposit-details-label {
    font-size: 13px;
    color: rgba(8, 11, 29, 0.6);
    font-weight: 600;
}

.wallet-deposit-details-value {
    font-size: 16px;
    font-weight: 600;
    color: #080b1d;
    word-break: break-all;
}

.wallet-deposit-details-value--address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wallet-copy-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: rgba(8, 11, 29, 0.08);
    color: rgba(8, 11, 29, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wallet-copy-btn:hover {
    background: rgba(8, 11, 29, 0.16);
}

.wallet-deposit-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(8, 11, 29, 0.04);
}

.wallet-deposit-qr img {
    width: 180px;
    height: 180px;
}

.wallet-deposit-qr-placeholder {
    font-size: 14px;
    color: rgba(8, 11, 29, 0.6);
}

.wallet-deposit-copy-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c2cff 0%, #5527ff 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 16px 26px rgba(95, 48, 255, 0.22);
}

.wallet-deposit-copy-btn svg {
    width: 18px;
    height: 18px;
}

.wallet-deposit-card-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wallet-deposit-card-details .wallet-deposit-details-value {
    font-size: 15px;
}

.wallet-deposit-paid-btn + .wallet-deposit-deadline {
    margin-top: 8px;
}

.wallet-deposit-paid-error {
    display: none;
    margin: 10px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(242, 69, 92, 0.1);
    border: 1px solid rgba(242, 69, 92, 0.28);
    font-size: 12px;
    font-weight: 600;
    color: #c5223c;
    text-align: center;
}

@media (max-width: 380px) {
    .wallet-deposit-amount-row {
        flex-direction: column;
        align-items: stretch;
    }

    .wallet-deposit-amount-submit {
        width: 100%;
        flex: none;
        height: 46px;
    }
}

.wallet-payment-card--withdraw {
    --wallet-method-accent: #5a68ff;
}

.wallet-view-withdraw .wallet-deposit-amount-block {
    padding: 14px 14px 16px;
    gap: 10px;
    border-radius: 18px;
}

.wallet-view-withdraw .wallet-deposit-amount-row {
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.wallet-view-withdraw .wallet-deposit-amount-input {
    flex: 1 1 auto;
    min-height: 44px;
    gap: 4px;
    padding: 10px 10px;
    border-radius: 16px;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 243, 255, 0.9) 100%);
    border: 1px solid rgba(88, 110, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.wallet-view-withdraw .wallet-deposit-amount-symbol {
    font-size: 12px;
    font-weight: 600;
    color: rgba(9, 15, 47, 0.6);
}

.wallet-view-withdraw #walletWithdrawAmount {
    font-size: 19px;
    font-weight: 700;
    width: 100%;
    text-align: center;
    border: none;
    background: transparent;
    outline: none;
    color: #10163a;
}

.wallet-view-withdraw #walletWithdrawAmount:disabled {
    opacity: 0.7;
}

.wallet-view-withdraw #walletWithdrawAmount:focus {
    outline: none;
}

.wallet-view-withdraw #walletWithdrawAmount::placeholder {
    color: rgba(16, 22, 58, 0.4);
}

.wallet-view-withdraw #walletWithdrawAmountBlock .wallet-deposit-amount-submit {
    padding: 0 18px;
    min-width: 120px;
    height: 42px;
    font-size: 13px;
    border-radius: 14px;
}

.wallet-view-withdraw #walletWithdrawAmountBlock .wallet-deposit-amount-submit.is-secondary {
    background: rgba(32, 42, 114, 0.1);
    color: rgba(32, 42, 114, 0.8);
}

.wallet-view-withdraw #walletWithdrawAmountHint {
    font-size: 12px;
}






























/* First Deposit Required Modal - Compact Version */
.first-deposit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.first-deposit-modal-overlay.active {
    opacity: 1;
}

.first-deposit-modal-overlay.closing {
    opacity: 0;
}

.first-deposit-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.first-deposit-modal-overlay.active .first-deposit-modal {
    transform: scale(1) translateY(0);
}

.first-deposit-modal-overlay.closing .first-deposit-modal {
    transform: scale(0.9) translateY(20px);
}

.first-deposit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.first-deposit-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #090f2f;
    margin: 0;
}

.first-deposit-modal-close {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: rgba(9, 15, 47, 0.5);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.first-deposit-modal-close:hover {
    color: #090f2f;
}

.first-deposit-modal-content {
    padding: 20px;
    text-align: left;
}

.first-deposit-modal-text {
    font-size: 15px;
    font-weight: 500;
    color: #090f2f;
    line-height: 1.5;
    margin: 0 0 12px;
}

.first-deposit-modal-note {
    font-size: 13px;
    font-weight: 400;
    color: rgba(9, 15, 47, 0.7);
    line-height: 1.5;
    margin: 0;
    padding: 12px;
    background: rgba(82, 53, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid #5235ff;
}

.first-deposit-modal-actions {
    padding: 12px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.first-deposit-modal-btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
}

.first-deposit-modal-btn-primary {
    background: linear-gradient(135deg, #5235ff 0%, #814dff 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(82, 53, 255, 0.25);
}

.first-deposit-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(82, 53, 255, 0.35);
}

.first-deposit-modal-btn-secondary {
    background: rgba(9, 15, 47, 0.06);
    color: rgba(9, 15, 47, 0.8);
}

.first-deposit-modal-btn-secondary:hover {
    background: rgba(9, 15, 47, 0.1);
}

@media (max-width: 768px) {
    .first-deposit-modal {
        max-width: 100%;
        margin: 0 16px;
    }
    
    .first-deposit-modal-header {
        padding: 16px 18px 10px;
    }
    
    .first-deposit-modal-header h3 {
        font-size: 17px;
    }
    
    .first-deposit-modal-content {
        padding: 18px;
    }
    
    .first-deposit-modal-text {
        font-size: 14px;
    }
    
    .first-deposit-modal-note {
        font-size: 12px;
        padding: 10px;
    }
    
    .first-deposit-modal-actions {
        padding: 10px 18px 18px;
    }
}
