/* Профиль — вкладки и карточки прогнозов */

.profile-panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.pred-filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.pred-filter-chip {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.pred-filter-chip span {
    opacity: 0.7;
    margin-left: 4px;
}
.pred-filter-chip.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}
.pred-filter-chip.won.active {
    background: var(--green-soft);
    border-color: var(--green);
    color: var(--green);
}
.pred-filter-chip.lost.active {
    background: var(--red-soft);
    border-color: var(--red);
    color: var(--red);
}

.profile-predictions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-pred-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.profile-pred-item .prediction-card {
    margin: 0;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px;
    position: relative;
    transition: all var(--transition-fast);
}
.profile-pred-item .prediction-card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-sm);
}
.profile-pred-item.won .prediction-card { border-left: 3px solid var(--green); }
.profile-pred-item.lost .prediction-card { border-left: 3px solid var(--red); }
.profile-pred-item.pending .prediction-card { border-left: 3px solid var(--amber); }
.profile-pred-analysis {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    padding: 0 14px 12px;
    margin-top: -6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.profile-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-tertiary);
}
.profile-empty-state h4 {
    margin: 12px 0 6px;
    color: var(--text-primary);
}
.profile-empty-state .profile-btn {
    margin-top: 14px;
    display: inline-block;
}

/* prediction-card (профиль) */
.profile-pred-item .status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}
.profile-pred-item .status-badge.won { background: var(--green-soft); color: var(--green); }
.profile-pred-item .status-badge.lost { background: var(--red-soft); color: var(--red); }
.profile-pred-item .status-badge.pending { background: var(--amber-soft); color: var(--amber); }
.profile-pred-item .match-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-bottom: 10px;
    padding-right: 80px;
}
.profile-pred-item .league-tag {
    color: var(--accent);
    font-weight: 600;
}
.profile-pred-item .match-date { color: var(--text-tertiary); }
.profile-pred-item .teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.profile-pred-item .team {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.profile-pred-item .team-name {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}
.profile-pred-item .team-score {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
}
.profile-pred-item .vs-divider {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 700;
}
.profile-pred-item .bet-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.profile-pred-item .bet-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.profile-pred-item .bet-tag.pick { border-color: var(--accent); color: var(--accent); }
.profile-pred-item .bet-tag.odds { font-family: var(--font-mono); font-weight: 600; }
.profile-pred-item .confidence-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    color: var(--text-tertiary);
}
.profile-pred-item .confidence-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.profile-pred-item .confidence-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--accent);
}
.profile-pred-item .confidence-fill.high { background: var(--green); }
.profile-pred-item .confidence-fill.medium { background: var(--amber); }
.profile-pred-item .confidence-fill.low { background: var(--red); }

/* Аналитика */
.analytics-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}
.analytics-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--green) calc(var(--pct) * 1%), var(--bg-elevated) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.analytics-ring-inner {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.analytics-ring-val {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}
.analytics-ring-lbl {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}
.analytics-hero-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.analytics-mini-stat .lbl {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    display: block;
}
.analytics-mini-stat .val {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
}
.analytics-mini-stat .val.green { color: var(--green); }
.analytics-mini-stat .val.red { color: var(--red); }
.analytics-mini-stat .val.amber { color: var(--amber); }

.analytics-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.analytics-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
}
.analytics-stat-card .as-icon {
    display: block;
    margin-bottom: 6px;
    opacity: 0.8;
}
.analytics-stat-card .as-val {
    display: block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
}
.analytics-stat-card .as-lbl {
    font-size: 0.62rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.analytics-summary-card .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
}
.analytics-summary-card .summary-row:last-child { border-bottom: none; }
.analytics-summary-card strong {
    font-family: var(--font-mono);
}

/* Достижения */
.badges-progress-bar {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 6px;
}
.badges-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--amber));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}
.badges-progress-text {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 14px;
}
.badges-grid-enhanced .badge-card {
    min-height: 110px;
}
.badges-grid-enhanced .badge-card.earned {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.badge-earned-mark {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.badge-desc {
    font-size: 0.58rem;
    color: var(--text-tertiary);
    margin-top: 4px;
    line-height: 1.3;
}
.badge-xp {
    font-size: 0.6rem;
    color: var(--amber);
    font-weight: 600;
    margin-top: 4px;
}

/* Подписчики */
.followers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.friend-card-enhanced {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.friend-card-enhanced .friend-stats {
    display: flex;
    gap: 10px;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}
.friend-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    margin-left: auto;
}

@media (max-width: 560px) {
    .analytics-hero {
        flex-direction: column;
        text-align: center;
    }
    .analytics-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
