/* Модальное окно баланса - минималистичное */
.balance-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    z-index: 1000;
    display: none;
}

.balance-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--background);
}

/* Заголовок */
.balance-header {
    padding: 80px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.balance-title {
    font-size: 1.2em;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

/* Основное содержимое */
.balance-body {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Валюта */
.balance-currency {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.currency-icon {
    font-size: 1.5em;
}

.currency-name {
    font-size: 1em;
    color: var(--text-secondary);
}

/* Отображение суммы */
.balance-amount-display {
    text-align: center;
    margin-bottom: 60px;
}

.balance-number {
    font-size: 3.2em;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.balance-text {
    font-size: 0.9em;
    color: var(--text-tertiary);
    opacity: 0.7;
}

/* Кнопки действий - минималистичные */
.balance-actions-minimal {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 280px;
}

.action-btn.minimal-btn {
    flex: 1;
    padding: 16px 0;
    border: none;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.95em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.deposit-btn {
    background: var(--primary) !important;
    color: white !important;
}

.withdraw-btn {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.btn-icon {
    font-size: 1.2em;
    font-weight: 300;
}

.btn-text {
    font-weight: 500;
}

/* Футер с кнопкой назад */
.balance-footer {
    padding: 20px;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.back-btn-bottom {
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.back-arrow {
    font-size: 1.1em;
    opacity: 0.8;
}

/* Модальное окно пополнения */
.deposit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.deposit-modal.active {
    display: flex;
}

.deposit-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.deposit-modal-content {
    position: relative;
    background: var(--surface);
    border-radius: 20px;
    width: 100%;
    max-width: 320px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: depositSlideUp 0.3s ease;
}

@keyframes depositSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок */
.deposit-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.deposit-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-primary);
}

.deposit-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.deposit-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Селектор валюты для пополнения */
.currency-selector-deposit {
    display: flex;
    background: var(--surface-dark);
    border-radius: 14px;
    margin: 20px;
    padding: 4px;
}

.currency-option-deposit {
    flex: 1;
    padding: 14px 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.currency-option-deposit.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.currency-icon-deposit {
    font-size: 1.2em;
}

.currency-name-deposit {
    font-weight: 500;
}

/* Информация о пополнении */
.deposit-info {
    padding: 0 20px 20px;
}

.deposit-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.5;
    opacity: 0.8;
}

/* Кнопка действия */
.deposit-action {
    padding: 20px;
    padding-top: 0;
}

.deposit-action-btn {
    width: 100%;
    padding: 16px 0;
    background: var(--primary);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.deposit-action-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}
/* Поле ввода суммы для пополнения */
.deposit-amount-section {
    padding: 0 20px 20px;
}

.amount-input-container {
    position: relative;
    margin-bottom: 10px;
}

.deposit-amount-input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    background: var(--surface-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1.8em;
    font-weight: 500;
    text-align: right;
    transition: all 0.2s;
}

.deposit-amount-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 136, 204, 0.05);
}

.deposit-amount-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.5;
}

/* Скрыть стрелки у input[type="number"] */
.deposit-amount-input::-webkit-outer-spin-button,
.deposit-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: var(--text-primary);
    font-weight: 500;
}

.amount-hint {
    font-size: 0.85em;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.7;
    margin-top: 5px;
    transition: color 0.2s;
}

/* Кнопка с суммой */
.deposit-action-btn {
    width: 100%;
    padding: 18px 0;
    background: var(--primary);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.deposit-action-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.deposit-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.action-amount {
    font-size: 0.9em;
    font-weight: 400;
    opacity: 0.9;
}

.ton-display {
    text-align: center;
    font-size: 0.9em;
    color: var(--primary);
    margin-top: 5px;
    font-weight: 500;
}

.balance-update-animation {
    animation: balancePulse 0.5s ease;
}

@keyframes balancePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-vibration {
    animation: successVibe 0.3s ease;
}

@keyframes successVibe {
    0% { background-color: var(--surface); }
    50% { background-color: rgba(0, 255, 0, 0.1); }
    100% { background-color: var(--surface); }
}