/* =========================================================
   H2H FACTS - Predictions tab like reference design
   Add this at the END of public/css/match-pro.css
========================================================= */

.h2h-predictions-pro {
    display: grid;
    gap: 14px;
    color: #eefaf0;
}

.h2h-fact-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.h2h-fact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(75, 255, 82, .24);
    background:
        radial-gradient(circle at left, rgba(73, 255, 75, .12), transparent 38%),
        linear-gradient(180deg, rgba(17, 39, 22, .95), rgba(6, 12, 8, .98));
}

.h2h-fact-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 50%;
    background: rgba(74, 255, 72, .14);
    border: 1px solid rgba(74, 255, 72, .28);
    color: #58ff4d;
    box-shadow: 0 0 18px rgba(76, 255, 70, .12);
}

.h2h-fact-body {
    min-width: 0;
}

.h2h-fact-card span {
    display: block;
    color: #91a596;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    line-height: 1.15;
}

.h2h-fact-card strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h2h-match-facts-strip {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(75, 255, 82, .24);
    background:
        radial-gradient(circle at left, rgba(76, 255, 70, .12), transparent 40%),
        linear-gradient(180deg, rgba(16, 45, 22, .88), rgba(6, 12, 8, .98));
}

.h2h-match-facts-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(75, 255, 82, .12);
    color: #5cff55;
    border: 1px solid rgba(75, 255, 82, .25);
}

.h2h-match-facts-text strong {
    display: block;
    color: #64ff59;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.h2h-match-facts-text span {
    display: block;
    margin-top: 3px;
    color: #d9eadc;
    font-size: 13px;
    line-height: 1.35;
}

.h2h-match-facts-odd {
    color: #dceade;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.h2h-match-facts-odd strong {
    color: #5cff55;
}

.h2h-main-pred-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.h2h-pred-card {
    min-height: 226px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(75, 255, 82, .22);
    background:
        radial-gradient(circle at top right, rgba(78, 255, 74, .12), transparent 38%),
        linear-gradient(180deg, rgba(13, 25, 16, .96), rgba(5, 10, 7, .99));
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.h2h-pred-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.h2h-pred-card-head h3 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.h2h-pred-card-head p {
    margin: 5px 0 0;
    color: #9caf9e;
    font-size: 12px;
    font-weight: 800;
}

.h2h-pred-card-head p strong,
.h2h-pred-card-head i {
    color: #5cff55;
}

.h2h-1x2-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.h2h-1x2-options div {
    min-width: 0;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.07);
    text-align: center;
}

.h2h-1x2-options div.is-highlight {
    background: linear-gradient(180deg, rgba(79, 255, 71, .26), rgba(32, 145, 36, .22));
    border-color: rgba(80, 255, 72, .35);
    box-shadow: inset 0 0 18px rgba(74, 255, 72, .08);
}

.h2h-1x2-options span,
.h2h-donut-row span {
    display: block;
    color: #9caf9e;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.h2h-1x2-options strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
}

.h2h-1x2-options em {
    display: block;
    margin-top: 6px;
    color: #5cff55;
    font-style: normal;
    font-size: 13px;
    font-weight: 950;
}

.h2h-donut-row {
    display: grid;
    grid-template-columns: 1fr 96px 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.h2h-donut-row strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}

.h2h-donut-row em {
    display: inline-flex;
    margin-top: 8px;
    min-width: 52px;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    color: #dceade;
    font-style: normal;
    font-weight: 900;
}

.h2h-donut {
    width: 88px;
    height: 88px;
    margin: auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    background:
        radial-gradient(circle closest-side, #071009 58%, transparent 59%),
        conic-gradient(#58ff4d calc(var(--p) * 1%), rgba(255,255,255,.09) 0);
    box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

.h2h-donut b {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
}

.h2h-donut small {
    position: absolute;
    top: 52px;
    color: #9caf9e;
    font-size: 8px;
    font-weight: 900;
}

.h2h-scale {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding-top: 13px;
    border-top: 6px solid rgba(255,255,255,.08);
}

.h2h-scale:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(90,255,80,.82));
}

.h2h-scale i {
    position: absolute;
    left: var(--indicator, 50%);
    top: -12px;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #5cff55;
    z-index: 4;
}

.h2h-scale span {
    color: #91a596;
    font-size: 10px;
    font-weight: 850;
}

.h2h-scale span:nth-child(n+4) {
    text-align: right;
}

.h2h-vote {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.h2h-vote .vote-buttons-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.h2h-vote .vote-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.07) !important;
    color: #dfeee1 !important;
    font-size: 11px;
    font-weight: 900;
}

.h2h-vote .vote-btn.up:hover,
.h2h-vote .vote-btn.up.voted {
    background: #18b82b !important;
    color: #041006 !important;
}

.h2h-vote .vote-btn.down:hover,
.h2h-vote .vote-btn.down.voted {
    background: #de384b !important;
    color: #fff !important;
}

.h2h-vote .vote-stats {
    margin-top: 6px;
    color: #9caf9e !important;
    font-size: 11px;
    font-weight: 850;
}

.h2h-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5cff55;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.h2h-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.h2h-form-card,
.h2h-season-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(13, 25, 16, .96), rgba(5, 10, 7, .99));
}

.h2h-form-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h2h-form-head img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.h2h-form-head strong {
    min-width: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    margin-right: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h2h-form-badges {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
}

.h2h-form-badges span,
.h2h-result-badge {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: #d2a224;
    color: #fff;
    font-size: 10px;
    font-weight: 950;
}

.h2h-form-badges span:nth-child(2),
.h2h-form-badges span:nth-child(3),
.h2h-form-badges span:nth-child(4) {
    background: #d7444d;
}

.h2h-form-badges span:last-child,
.h2h-result-badge.win {
    background: #1aae2d;
}

.h2h-result-badge.draw {
    background: #d2a224;
}

.h2h-form-card p {
    color: #cfe0d2;
    font-size: 12px;
    line-height: 1.5;
}

.h2h-mini-table {
    width: 100%;
    border-collapse: collapse;
    color: #dceade;
    font-size: 11px;
}

.h2h-mini-table th,
.h2h-mini-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    text-align: left;
}

.h2h-mini-table th {
    color: #91a596;
    font-size: 10px;
    text-transform: uppercase;
}

.h2h-season-teams {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.h2h-season-teams div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px;
    border-radius: 13px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.07);
}

.h2h-season-teams img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.h2h-season-teams strong {
    color: #fff;
    font-weight: 950;
}

.h2h-season-teams span {
    color: #91a596;
    font-size: 12px;
    font-weight: 850;
}

.h2h-season-table-wrap {
    overflow-x: auto;
}

.h2h-season-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.h2h-season-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.h2h-season-table td:nth-child(2) {
    text-align: center;
    color: #dceade;
    font-size: 12px;
    font-weight: 950;
}

.h2h-season-table td:first-child,
.h2h-season-table td:last-child {
    width: 36%;
}

.h2h-season-table strong {
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.h2h-season-table span {
    display: block;
    height: 7px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

.h2h-season-table i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #58ff4d;
}

.h2h-season-table td:last-child {
    text-align: right;
}

.h2h-season-table td:last-child i {
    margin-left: auto;
    background: #8b5cf6;
}

/* keep existing modal/toast green */
.pp-toast {
    border: 1px solid rgba(72,255,79,.28) !important;
    background: #071009 !important;
}

.prediction-modal-card {
    background: linear-gradient(180deg, #101d14, #061009) !important;
    border: 1px solid rgba(72,255,79,.2) !important;
}

.prediction-modal-head span {
    color: #5cff55 !important;
}

.prediction-submit-btn {
    background: linear-gradient(135deg, #57f542, #18b82b) !important;
    color: #041006 !important;
}

@media (max-width: 1180px) {
    .h2h-fact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .h2h-main-pred-grid,
    .h2h-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .h2h-fact-grid {
        grid-template-columns: 1fr;
    }

    .h2h-match-facts-strip {
        grid-template-columns: 40px 1fr;
    }

    .h2h-match-facts-odd {
        grid-column: 1 / -1;
    }

    .h2h-donut-row {
        grid-template-columns: 1fr;
    }

    .h2h-season-teams {
        grid-template-columns: 1fr;
    }

    .h2h-season-table {
        min-width: 560px;
    }
}
