/* ═══════════════════════════════════════
   ТАБ: ПРОФИЛЬ — имя, баланс,
   приглашение друга, совместный сон
   ═══════════════════════════════════════ */

.profile-name {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-primary);
    margin: 0 0 3px;
    font-weight: 600;
}
.profile-username {
    color: var(--text-dim);
    font-size: 13px;
}

/* ─── Карточка баланса ─── */
.balance-card {
    background: linear-gradient(135deg, rgba(232,130,14,0.1), rgba(232,130,14,0.03));
    border-radius: var(--radius-xl);
    padding: 22px 18px;
    margin-bottom: 16px;
    border: 1px solid var(--accent-border);
}

/* Верхний блок: доступно + расшифровано */
.balance-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.balance-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.balance-col:last-child {
    text-align: right;
}
.balance-label {
    color: var(--text-muted);
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 400;
}
.balance-num {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
}
.balance-num-big {
    color: var(--accent);
    font-size: 34px;
}
.balance-num-small {
    color: var(--text-secondary);
    font-size: 22px;
}

/* ─── Разбивка баланса ─── */
.balance-breakdown {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    margin-bottom: 18px;
}
.balance-breakdown-item {
    flex: 1;
    padding: 12px 0;
    text-align: center;
}
.balance-breakdown-item:not(:last-child) {
    border-right: 1px solid rgba(232,130,14,0.08);
}
.balance-breakdown-num {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-display);
    line-height: 1;
}
.balance-breakdown-label {
    color: var(--text-dim);
    font-size: 10px;
    margin-top: 4px;
    font-family: var(--font-body);
}

/* ─── Бейдж "Копировать" ─── */
.invite-badge {
    color: var(--accent);
    font-size: 11px;
    background: rgba(232,130,14,0.1);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
}

/* ─── Friends list ─── */
.friend-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid rgba(232,130,14,0.08);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    animation: fadeIn 0.3s ease-out;
}
.friend-item:active { transform: scale(0.99); }
.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232,130,14,0.2), rgba(232,130,14,0.05));
    border: 1.5px solid rgba(232,130,14,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.friend-name {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}
.friend-username {
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 2px;
}
.friend-arrow {
    color: var(--text-dark);
    font-size: 18px;
    margin-left: auto;
    flex-shrink: 0;
}
