/**
 * components/badges.css — вынесено 1:1 из style.css (этап C.2).
 * Порядок правил сохранён. Overrides в voltark-2026 / pages-* не трогались.
 */

.badge-discount {
    background: #4c6b22;
    color: #beee11;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 2px;
}

.badge-item {
    position: relative;
    background: var(--surface-2, #1b1e28);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.badge-item:hover { transform: translateY(-2px); border-color: #2a2e3d; }

.badge-item.equipped { border-color: #f5c542; }

.badge-item.locked { opacity: 0.55; }

.badge-progress {
    height: 4px;
    margin-top: 6px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.badge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #66c0f4, #4b8bbd);
}

.badge-progress-text {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    color: var(--text-muted, #8f98a0);
}

.profile-ach-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.profile-ach-progress-card {
    background: var(--surface-2, #1b1e28);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 10px;
    padding: 10px 12px;
}

.profile-ach-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.profile-ach-compare {
    margin-top: 8px;
}

.profile-achievements-section + .profile-achievements-section {
    margin-top: 18px;
}

.steam-ach-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.steam-ach-item.is-refunded {
    opacity: 0.45;
    filter: grayscale(0.85);
}

.steam-ach-item.is-refunded .steam-ach-title {
    text-decoration: line-through;
    text-decoration-color: rgba(148, 163, 184, 0.5);
}

.steam-ach-refunded-tag {
    font-size: 0.72rem;
    color: var(--va-text-muted, #94a3b8);
    letter-spacing: 0.02em;
}

.profile-ach-refunded-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
    font-size: 0.85rem;
    color: var(--va-text-muted, #94a3b8);
    cursor: pointer;
    -webkit-user-select: none;
            user-select: none;
}

.custom-status-emoji-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.custom-status-emoji-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--va-border, #2a475e);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.custom-status-emoji-btn:hover {
    border-color: var(--accent, #66c0f4);
    background: rgba(102, 192, 244, 0.12);
}

/* --- Gamification hub --- */
.gami-hub { max-width: 1100px; margin: 0 auto; padding: 8px 16px 32px; }
.gami-hub--embedded { padding: 0 0 24px; }
.gami-hub-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.gami-hub-head--compact {
    justify-content: flex-start;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--va-border, #2a475e);
}
.gami-hub-head--compact .gami-hub-tabs { gap: 8px; }
.gami-hub-head--compact .gami-tab { border-radius: 999px; padding: 7px 14px; font-size: 0.85rem; }
.gami-panel-card {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--va-border, #2a475e);
    background: rgba(0, 0, 0, 0.15);
}
.gami-panel-card h4 { margin: 0 0 12px; font-size: 0.95rem; }
.gami-reward-cards { display: flex; flex-direction: column; gap: 8px; }
.gami-reward-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--va-border, #2a475e);
    background: rgba(255, 255, 255, 0.03);
}
.gami-reward-card.done { opacity: 0.72; border-color: color-mix(in srgb, var(--va-accent) 40%, var(--va-border)); }
.gami-reward-lv {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--va-accent) 15%, transparent);
}
.gami-reward-body { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; }
.gami-action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}
.gami-action-label { font-size: 0.88rem; }
.gami-action-xp {
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    color: var(--va-accent, #66c0f4);
    white-space: nowrap;
}
.gami-quests--dense { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gami-leaderboard--dense .gami-lb-row { padding: 6px 10px; }
.gami-hub-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.gami-tab {
    border: 1px solid var(--va-border, #2a475e);
    background: transparent;
    color: inherit;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
}
.gami-tab.active { border-color: var(--va-accent, #66c0f4); background: rgba(102, 192, 244, 0.12); }
.gami-level-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.gami-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gami-reward-list, .gami-action-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gami-reward-list li.done { opacity: 0.7; }
.gami-quests { display: grid; gap: 10px; }
.gami-quest-card {
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 10px;
    padding: 12px;
    background: var(--surface-2, #1b1e28);
}
.gami-quest-card.claimed { opacity: 0.65; }
.gami-quest-head { display: flex; justify-content: space-between; gap: 8px; }
.gami-quest-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.gami-pill { font-size: 0.75rem; color: #90ba3c; }
.gami-leaderboard { display: flex; flex-direction: column; gap: 6px; }
.gami-lb-row {
    display: grid;
    grid-template-columns: 48px 36px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
}
.gami-lb-row.is-me { outline: 1px solid var(--va-accent, #66c0f4); }
.gami-lb-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.gami-lb-xp { font-variant-numeric: tabular-nums; color: var(--text-muted, #8f98a0); }
.gami-hub-links { margin-top: 18px; display: flex; gap: 8px; }
.gami-me-rank { margin-bottom: 8px; }
