/* Главная — дополнения */

.home-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(96, 165, 250, 0.08));
    border: 1px solid rgba(230, 57, 70, 0.25);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}
.home-banner:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.home-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.home-banner-text strong {
    font-size: 0.9rem;
}
.home-banner-text span {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}
.home-banner-cta {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

.home-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.home-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}
.home-stat-card:hover {
    border-color: var(--border-active);
    background: var(--bg-elevated);
}
.home-stat-val {
    display: block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
}
.home-stat-card.accent-green .home-stat-val { color: var(--green); }
.home-stat-card.accent-amber .home-stat-val { color: var(--amber); }
.home-stat-lbl {
    font-size: 0.62rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
    display: block;
}

.section-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chip-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-secondary);
}
.chip-link.live {
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--live-dot);
}

/* Топ месяца — карточки капперов */
.top-cappers-widget {
    margin-bottom: 16px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.top-cappers-widget__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.top-cappers-widget__title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.top-cappers-widget__title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.top-cappers-widget__sub {
    font-size: 0.68rem;
    color: var(--text-tertiary);
}

.top-cappers-widget__link {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid var(--border-accent, rgba(230, 57, 70, 0.25));
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: background var(--transition-fast);
}

.top-cappers-widget__link:hover {
    background: var(--accent-soft);
}

.top-cappers-widget__track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

@media (max-width: 900px) {
    .top-cappers-widget__track {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
        -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
    }

    .top-cappers-widget__track::-webkit-scrollbar {
        height: 4px;
    }

    .top-cappers-widget__track::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 4px;
    }
}

.capper-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px 8px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    background: var(--bg-elevated, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

@media (max-width: 900px) {
    .capper-card {
        flex: 0 0 148px;
        width: 148px;
    }
}

.capper-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.25));
}

.capper-card--lead {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-elevated, rgba(255, 255, 255, 0.03)) 55%);
}

.capper-card--gold {
    border-color: rgba(245, 158, 11, 0.35);
}

.capper-card--silver {
    border-color: rgba(192, 192, 192, 0.35);
}

.capper-card--bronze {
    border-color: rgba(205, 127, 50, 0.35);
}

.capper-card__rank {
    position: absolute;
    top: 6px;
    left: 6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--text-tertiary);
    border: 1px solid var(--border);
    line-height: 1;
}

.capper-card--gold .capper-card__rank {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--amber, #f59e0b);
}

.capper-card--silver .capper-card__rank {
    background: rgba(192, 192, 192, 0.12);
    border-color: rgba(192, 192, 192, 0.35);
    color: #c0c0c0;
}

.capper-card--bronze .capper-card__rank {
    background: rgba(205, 127, 50, 0.12);
    border-color: rgba(205, 127, 50, 0.35);
    color: #cd7f32;
}

.capper-card__crown {
    position: absolute;
    top: 6px;
    right: 6px;
    color: var(--amber, #f59e0b);
    opacity: 0.9;
}

.capper-card__avatar {
    --capper-avatar-size: 38px;
    width: var(--capper-avatar-size);
    height: var(--capper-avatar-size);
    min-width: var(--capper-avatar-size);
    min-height: var(--capper-avatar-size);
    margin-top: 4px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.capper-card--lead .capper-card__avatar {
    --capper-avatar-size: 44px;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.capper-card__avatar img,
.capper-card__avatar .user-avatar,
.capper-card__avatar .avatar-fallback {
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    max-width: none;
    object-fit: cover;
    border-radius: 0 !important;
    border: none !important;
    display: block;
}

.capper-card__avatar .avatar-fallback {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--capper-avatar-size) * 0.34);
    background: var(--bg-elevated);
}

.capper-card__identity {
    width: 100%;
    text-align: center;
    min-height: 2.2em;
}

.capper-card__name {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
}

.capper-card__title {
    display: block;
    font-size: 0.58rem;
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 1px;
}

.capper-card__profit {
    width: 100%;
    text-align: center;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.15);
}

.capper-card__profit-label {
    display: block;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    line-height: 1.2;
}

.capper-card__profit-val {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.capper-card__profit.is-positive .capper-card__profit-val {
    color: var(--green);
}

.capper-card__profit.is-negative .capper-card__profit-val {
    color: var(--red);
}

.capper-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 100%;
}

.capper-card__metric {
    text-align: center;
    min-width: 0;
}

.capper-card__metric-lbl {
    display: block;
    font-size: 0.52rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.capper-card__metric-val {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-mono);
    line-height: 1.3;
}

.capper-card__metric-val.is-positive {
    color: var(--green);
}

.capper-card__metric-val.is-negative {
    color: var(--red);
}

.capper-card__bar {
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: var(--border);
    overflow: hidden;
}

.capper-card__bar-fill {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--green));
    transition: width 0.3s ease;
}

.capper-card__streak {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--amber, #f59e0b);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

@media (max-width: 500px) {
    .top-cappers-widget {
        padding: 12px 10px;
    }

    .capper-card {
        flex: 0 0 136px;
        width: 136px;
        padding: 8px 6px 6px;
    }

    .capper-card__metrics {
        gap: 0;
    }

    .capper-card__metric-lbl {
        font-size: 0.5rem;
    }

    .capper-card__metric-val {
        font-size: 0.64rem;
    }
}

.feed-toolbar {
    margin-bottom: 12px;
}
.feed-filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.feed-filter-chips .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}
.feed-filter-chips .filter-chip.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.composer-enhanced {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
}
.composer-input-field {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}
.composer-quick {
    color: var(--text-tertiary);
    padding: 6px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}
.composer-quick:hover {
    color: var(--accent);
    background: var(--accent-soft);
}
.composer-guest {
    text-align: center;
    padding: 16px;
    margin-bottom: 14px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.post-avatar-link {
    flex-shrink: 0;
    text-decoration: none;
}
.post-username-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.3;
}
.post-username-row .post-username {
    text-decoration: none;
    display: inline;
}
.post-username-row .post-username:hover {
    color: var(--accent);
}
.user-title-badge {
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
}

.feed-prediction-card,
.community-pred-post .prediction-card {
    margin-top: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    position: relative;
}
.feed-prediction-card .status-badge,
.community-pred-post .prediction-card .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;
}
.feed-prediction-card.won .status-badge,
.community-pred-post .prediction-card.won .status-badge { background: var(--green-soft); color: var(--green); }
.feed-prediction-card.lost .status-badge,
.community-pred-post .prediction-card.lost .status-badge { background: var(--red-soft); color: var(--red); }
.feed-prediction-card.pending .status-badge,
.community-pred-post .prediction-card.pending .status-badge { background: var(--amber-soft); color: var(--amber); }
.feed-prediction-card .match-header,
.community-pred-post .prediction-card .match-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-bottom: 10px;
    padding-right: 90px;
}
.feed-prediction-card .league-tag,
.community-pred-post .prediction-card .league-tag { color: var(--accent); font-weight: 600; }
.feed-prediction-card .match-date,
.community-pred-post .prediction-card .match-date { color: var(--text-tertiary); }
.feed-prediction-card .teams-row,
.community-pred-post .prediction-card .teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.feed-prediction-card .team,
.community-pred-post .prediction-card .team {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.feed-prediction-card .team-name,
.community-pred-post .prediction-card .team-name { font-size: 0.78rem; font-weight: 600; }
.feed-prediction-card .vs-divider,
.community-pred-post .prediction-card .vs-divider { font-size: 0.7rem; color: var(--text-tertiary); }
.feed-prediction-card .bet-info,
.community-pred-post .prediction-card .bet-info { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.feed-prediction-card .bet-tag,
.community-pred-post .prediction-card .bet-tag {
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.feed-prediction-card .bet-tag.pick,
.community-pred-post .prediction-card .bet-tag.pick { color: var(--accent); border-color: var(--accent); }
.feed-prediction-card .confidence-row,
.community-pred-post .prediction-card .confidence-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    color: var(--text-tertiary);
}
.feed-prediction-card .confidence-bar,
.community-pred-post .prediction-card .confidence-bar {
    flex: 1;
    height: 3px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.feed-prediction-card .confidence-fill,
.community-pred-post .prediction-card .confidence-fill { height: 100%; background: var(--accent); border-radius: var(--radius-full); }
.feed-prediction-card .confidence-fill.high,
.community-pred-post .prediction-card .confidence-fill.high { background: var(--green); }
.feed-prediction-card .confidence-fill.medium,
.community-pred-post .prediction-card .confidence-fill.medium { background: var(--amber); }
.feed-prediction-card .confidence-fill.low,
.community-pred-post .prediction-card .confidence-fill.low { background: var(--red); }

.feed-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-tertiary);
}
.feed-empty-state h4 {
    margin: 12px 0 6px;
    color: var(--text-primary);
}
.feed-empty-state a {
    color: var(--accent);
}

.community-pred-post {
    border-left: 3px solid var(--accent);
}

.post-action-cta {
    margin-left: auto;
    color: var(--accent) !important;
    text-decoration: none;
}

.story-card-empty {
    min-height: 120px;
    justify-content: center;
}

@media (max-width: 500px) {
    .home-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-comments {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}
.comment-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.comment-item .comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.comment-item .comment-body {
    flex: 1;
    font-size: 0.8rem;
}
.comment-item .comment-body strong {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.comment-item .comment-body p {
    margin: 2px 0 0;
    color: var(--text-primary);
}
.comment-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.comment-form input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 0.8rem;
}
.comment-form button {
    background: var(--accent);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
}
.post-avatar-link {
    text-decoration: none;
    flex-shrink: 0;
}
.header-avatar-img,
.forecaster-avatar-img {
    border-radius: 50%;
}

/* Приветствие для гостей */
.home-welcome-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(96, 165, 250, 0.06));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}
.home-welcome-text h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}
.home-welcome-text p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}
.home-welcome-actions {
    display: flex;
    gap: 8px;
}
.home-welcome-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.home-welcome-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.home-welcome-btn:hover { border-color: var(--accent); color: var(--accent); }
.home-welcome-btn.primary:hover { opacity: 0.9; color: #fff; }

/* Быстрые действия */
.home-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.home-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}
.home-quick-action:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}
.home-quick-action.live {
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--live-dot);
}
.home-quick-action.live:hover { border-color: var(--live-dot); }

/* Лиги — горизонтальный скролл */
.home-leagues-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 14px;
    scrollbar-width: thin;
}
.home-league-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
.home-league-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.home-league-chip .league-logo,
.home-league-chip .team-logo-fallback {
    border-radius: 4px;
}

/* Последние результаты */
.finished-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.finished-match-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}
.finished-match-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.finished-match-league {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.finished-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.finished-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
}
.finished-team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.finished-team.is-winner { color: var(--green); }
.finished-team.is-winner .team-logo,
.finished-team.is-winner .team-logo-fallback {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
    border-radius: 6px;
}
.finished-score {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    flex-shrink: 0;
}
.finished-match-result {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green);
    padding: 4px 10px;
    background: var(--green-soft);
    border-radius: var(--radius-full);
}

@media (max-width: 600px) {
    .home-quick-actions { grid-template-columns: repeat(2, 1fr); }
    .finished-matches-grid { grid-template-columns: 1fr; }
}

/* —— Лента: карточки ставок (BK) —— */
.feed-post--bet {
    border-left: 3px solid var(--accent);
    padding-left: 2px;
}

.feed-bet-card {
    margin-top: 4px;
    padding: 14px;
    background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.feed-bet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.6;
}

.feed-bet-card--won::before { background: linear-gradient(90deg, var(--green), transparent); }
.feed-bet-card--lost::before { background: linear-gradient(90deg, var(--red), transparent); opacity: 0.5; }

.feed-bet-card__ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.feed-bet-card__type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent);
}

.feed-bet-card__type-badge.is-express {
    background: rgba(251, 191, 36, 0.12);
    color: var(--amber);
}

.feed-bet-card__status {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.feed-bet-card__status--pending { background: var(--amber-soft); color: var(--amber); }
.feed-bet-card__status--won { background: var(--green-soft); color: var(--green); }
.feed-bet-card__status--lost { background: var(--red-soft); color: var(--red); }
.feed-bet-card__status--void,
.feed-bet-card__status--cancelled { background: var(--bg-input); color: var(--text-tertiary); }

.feed-bet-card__match-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.feed-bet-card__league {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.feed-bet-card__live {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--accent);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(230, 57, 70, 0.35);
    animation: story-live-pulse 1.4s ease-in-out infinite;
}

.feed-bet-card__teams-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.feed-bet-card__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
}

.feed-bet-card__mid {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    padding: 0 4px;
}

.feed-bet-card__mid span {
    color: var(--text-tertiary);
    font-size: 0.72rem;
    font-weight: 600;
}

.feed-bet-card__pick-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-input);
    border-radius: 10px;
    margin-bottom: 8px;
}

.feed-bet-card__pick {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feed-bet-card__odd {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.feed-bet-card__express-legs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    padding-left: 4px;
}

.feed-bet-card__express-leg,
.feed-bet-card__express-more {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.feed-bet-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.feed-bet-card__amounts {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.feed-bet-card__stake {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}

.feed-bet-card__mult {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.feed-bet-card__potential {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--amber);
}

.feed-bet-card__pl {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 800;
}

.feed-bet-card__pl--plus { color: var(--green); }
.feed-bet-card__pl--minus { color: var(--red); }

.feed-bet-card__link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.feed-bet-card__link:hover {
    text-decoration: underline;
}

.filter-chip.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.home-analytics-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    background: var(--bg-card);
}
