/* ==========================================================
   داشبورد — طراحی جدید
   ========================================================== */

.dash-screen {
    overflow-y: auto;
    background: var(--color-bg-dark);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.dash-screen, .dash-screen * {
    user-select: text;
}

/* ===== هدر ===== */
.db-header {
    background: linear-gradient(160deg, #1c1040 0%, #3b1f78 50%, #1c1040 100%);
    padding: 20px 20px 28px;
    position: relative;
    overflow: hidden;
}

.db-header::before {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, transparent 70%);
    pointer-events: none;
}

.db-header::after {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(236,72,153,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.db-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.db-back {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.15s;
}
.db-back:hover { background: rgba(255,255,255,0.18); }

.db-header-label {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

.db-admin-btn {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.15s;
}
.db-admin-btn:hover { background: rgba(255,255,255,0.18); }

/* موجودی */
.db-balance-wrap {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.db-balance-title {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.db-balance-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.db-balance-val {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
}

.db-balance-unit {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    padding-bottom: 8px;
}

.db-balance-usd {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin: 6px 0 0;
}

/* دکمه‌های سریع */
.db-quick {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.db-quick-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.db-quick-btn:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

.db-quick-icon { font-size: 22px; }

/* ===== بدنه ===== */
.db-body {
    padding: 20px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* آمار */
.db-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.db-stat-box {
    background: var(--color-bg-light);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.db-stat-icon { font-size: 20px; }

.db-stat-val {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.db-stat-lbl {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

/* سکشن */
.db-section {
    background: var(--color-bg-light);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 18px 16px;
}

.db-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.db-section-icon { font-size: 18px; }

.db-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

/* فرم */
.db-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

.db-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    padding: 12px 14px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.db-input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.db-input::placeholder { color: rgba(255,255,255,0.2); }

.db-submit-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

.db-submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.db-submit-btn:active { transform: translateY(1px); }

.wallet-settings-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 14px;
    line-height: 1.8;
}

.wallet-disabled-note {
    font-size: 13px;
    color: #fca5a5;
    background: rgba(239,68,68,0.1);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.wallet-withdraw-note {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
}

.wallet-withdraw-note.is-error {
    color: #fca5a5;
    background: rgba(239,68,68,0.12);
}

/* تاریخچه */
.withdraw-history-empty {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    padding: 12px 0;
}

.withdraw-history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.withdraw-history-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 14px;
}

.wh-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wh-sub { margin-top: 6px; }

.wh-amount {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.wh-address {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
}

.wh-date {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    flex-shrink: 0;
}

.wh-note {
    margin-top: 8px;
    color: #fca5a5;
    font-size: 12px;
    background: rgba(239,68,68,0.1);
    border-radius: 8px;
    padding: 6px 10px;
}

.wh-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.status-pending { color: #fcd34d; background: rgba(251,191,36,0.15); }
.status-paid    { color: #4ade80; background: rgba(34,197,94,0.15); }
.status-rejected{ color: #fca5a5; background: rgba(239,68,68,0.15); }

/* ===== پنهان/نمایان ===== */
.hidden { display: none !important; }

