/* ══════════════════════════════════════════════════════════════
   ULTRA PROXY — стили для alert bar (salert)
   ══════════════════════════════════════════════════════════════ */

/* SAlert container */
.salert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    transform: translateY(-100%);
    transition: opacity 0.3s, transform 0.3s;
}

.salert-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.salert-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: inherit;
}

.salert-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.salert-close:hover {
    opacity: 1;
}

/* Alert types */
.salert.success {
    background: rgba(52, 211, 153, 0.1);
    border-bottom: 2px solid #34d399;
    color: #34d399;
}

.salert.error {
    background: rgba(239, 68, 68, 0.1);
    border-bottom: 2px solid #ef4444;
    color: #ef4444;
}

.salert.notice {
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 2px solid #3b82f6;
    color: #3b82f6;
}

.salert.warning {
    background: rgba(245, 158, 11, 0.1);
    border-bottom: 2px solid #f59e0b;
    color: #f59e0b;
}

/* In modal - positioned above modal header */
.modal-overlay.open .salert {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.open .salert.closing {
    transform: translateY(-100%);
    opacity: 0;
}

/* ══════════════════════════════════════════════════════════════
   ULTRA PROXY — стили дашборда (баланс в шапке, депозит)
   ══════════════════════════════════════════════════════════════ */

/* Баланс USDT в шапке */
.dash-balance-item {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 9999px;
    margin: 0 0.5rem;
}

.dash-balance-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-balance-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0ff;
    font-variant-numeric: tabular-nums;
}

/* Пополнить (кнопка в шапке) */
.btn-accent {
    background: #7c3aed;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}
.btn-accent:hover {
    background: #6d28d9;
}

/* Депозит-карточка */
.deposit-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.02));
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.deposit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.deposit-header h3 {
    font-size: 1.1rem;
    color: #e0e0ff;
    margin: 0;
}

.deposit-rate {
    font-size: 0.82rem;
    color: #888;
    background: rgba(255,255,255,0.05);
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
}

.deposit-body p {
    color: #999;
    font-size: 0.88rem;
    margin-bottom: 0.9rem;
}

.deposit-address-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    flex-wrap: wrap;
}

.deposit-address-label {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
}

.deposit-address {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: #a78bfa;
    word-break: break-all;
    flex: 1;
    min-width: 200px;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    border-radius: 6px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.07);
}

/* Скрытая панель */
.dash-panel.hidden { display: none; }

/* Ссылка "Забыли пароль?" в форме входа */
.forgot-link {
    display: block;
    text-align: center;
    color: #888;
    font-size: 0.82rem;
    margin-top: 0.6rem;
    cursor: pointer;
    transition: color 0.2s;
}
.forgot-link:hover {
    color: #a78bfa;
}

/* Адаптив дашборда */
@media (max-width: 768px) {
    .dash-balance-item {
        margin: 0.3rem 0;
        padding: 0.3rem 0.6rem;
    }
    .deposit-address-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .deposit-address {
        min-width: auto;
        width: 100%;
    }
}
