﻿:root {
    --poc-bg: #0b1220;
    --poc-card: rgba(255,255,255,0.06);
    --poc-card-border: rgba(255,255,255,0.10);
    --poc-text: rgba(255,255,255,0.90);
    --poc-muted: #9aa3ad;
    --poc-accent: #7c3aed; /* purple */
    --poc-accent2: #06b6d4; /* cyan */
    --poc-success: #22c55e;
    --poc-warning: #f59e0b;
}

body {
    background: radial-gradient(1200px 600px at 15% 10%, rgba(124,58,237,0.25), transparent 60%), radial-gradient(1200px 600px at 85% 20%, rgba(6,182,212,0.20), transparent 60%), var(--poc-bg);
    color: var(--poc-text);
}

a {
    color: rgba(255,255,255,0.9);
}

    a:hover {
        color: white;
    }

.poc-shell {
    max-width: 1100px;
}

.poc-card {
    background: var(--poc-card);
    border: 1px solid var(--poc-card-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
}

.poc-title {
    letter-spacing: -0.02em;
}

.poc-muted {
    color: var(--poc-muted);
}

.poc-btn-gradient {
    border: 0;
    color: white !important;
    background: linear-gradient(135deg, var(--poc-accent), var(--poc-accent2));
    box-shadow: 0 12px 26px rgba(124,58,237,0.18);
}

    .poc-btn-gradient:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

.poc-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
}

.table.poc-table {
    color: rgba(255,255,255,0.92);
}

    .table.poc-table thead th {
        background: rgba(255,255,255,0.06);
        color: rgba(255,255,255,0.85);
        border-bottom: 1px solid rgba(255,255,255,0.12);
        position: sticky;
        top: 0;
        backdrop-filter: blur(10px);
    }

    .table.poc-table td, .table.poc-table th {
        border-color: rgba(255,255,255,0.10);
    }

.poc-kpi {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.poc-divider {
    height: 1px;
    background: rgba(255,255,255,0.10);
}

.poc-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #9aa3ad;
    font-size: .85rem;
}

.poc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(120,200,255,.35);
    font-weight: 600;
    letter-spacing: .2px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg,#3ba3ff,#6ee7c8);
    box-shadow: 0 10px 30px rgba(70,190,255,.25), inset 0 0 0 1px rgba(255,255,255,.15);
    transition: all .18s ease;
}

    .poc-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 40px rgba(70,190,255,.35), inset 0 0 0 1px rgba(255,255,255,.2);
        color: white;
    }

    .poc-btn-primary:active {
        transform: translateY(0) scale(.98);
        box-shadow: 0 6px 16px rgba(70,190,255,.25), inset 0 0 0 1px rgba(255,255,255,.15);
    }


.dropdown-item:hover {
    background: rgba(255,255,255,0.08);
}

.navbar .nav-link.active {
    color: #fff !important;
}

.sync-btn {
    position: relative;
}

.sync-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.is-syncing .sync-spinner {
    display: inline-block;
}

.is-syncing .sync-btn-text {
    display: none;
}

.is-syncing select {
    pointer-events: none;
    opacity: .7;
}

.bi {
    cursor: pointer;
    transition: opacity .15s ease;
}

    .bi:hover {
        opacity: 1;
        color: var(--bs-info);
    }

.poc-team-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
    border-radius: 6px;
}

/* Ultra-premium tile */
.team-tile {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    border: 1px solid rgba(255,255,255,.08);
}

    /* subtle glossy sweep */
    .team-tile::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: radial-gradient(900px 220px at 20% 0%, rgba(255,255,255,.10), transparent 55%), radial-gradient(900px 220px at 80% 110%, rgba(255,255,255,.06), transparent 55%);
        pointer-events: none;
    }

    /* accent glow line (feels premium on dark UI) */
    .team-tile::after {
        content: "";
        position: absolute;
        left: 18px;
        right: 18px;
        top: 0;
        height: 2px;
        background: linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.20), rgba(255,255,255,.0));
        opacity: .65;
        pointer-events: none;
    }

a:hover .team-tile {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    border-color: rgba(255,255,255,.14);
}

/* Logo */
.team-logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    flex-shrink: 0;
    transition: transform .2s ease;
}

.team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.55));
    transition: transform .2s ease;
}

.team-tile:hover .team-logo {
    transform: scale(1.05);
}

/* Fallback if logo missing */
.team-logo-fallback .team-logo-fallback-mark {
    opacity: 1;
}

.team-logo-fallback-mark {
    opacity: 0;
    position: absolute;
    font-weight: 800;
    letter-spacing: .6px;
    font-size: 12px;
    color: rgba(255,255,255,.85);
}

/* Title truncation */
.team-name {
    max-width: 260px;
}

/* Abbr pill tweak */
.team-abbr-pill {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
}

/* chips */
.team-chip {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}

/* CTA */
.team-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.78);
    flex: 0 0 auto;
}

.team-cta-text {
    font-size: 12px;
    letter-spacing: .3px;
}

.team-cta-arrow {
    transition: transform .18s ease;
}

a:hover .team-cta-arrow {
    transform: translateX(2px);
}

/* Footer hint */
.team-subhint {
    color: rgba(255,255,255,.60);
}

.team-logo {
    image-rendering: -webkit-optimize-contrast;
}

.team-header {
    margin-bottom: 1.5rem;
}

.team-hero-logo-wrap {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 60px rgba(0,0,0,.45);
    flex-shrink: 0;
    position: relative;
}

.team-hero-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,.55));
}

.poc-matchup-table tbody tr.poc-row-hover {
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

    .poc-matchup-table tbody tr.poc-row-hover:hover {
        background: rgba(255,255,255,.03);
    }

.matchup-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
    position: relative;
    overflow: hidden;
}

    .matchup-line::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 140px at 20% 0%, rgba(255,255,255,.06), transparent 60%);
        pointer-events: none;
    }

.team-side {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 0;
}

.team-side-away {
    justify-content: flex-start;
}

.team-side-home {
    justify-content: flex-end;
}

.team-logo-pill {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
    flex: 0 0 auto;
    position: relative;
}

.team-logo-sm {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.45));
}

.logo-fallback-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    padding: 0 8px;
    text-align: center;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: .4px;
    color: rgba(255,255,255,.85);
}

.team-logo-pill.logo-fallback .logo-fallback-mark {
    opacity: 1;
}

.team-name {
    min-width: 0;
}

.team-main {
    line-height: 1.1;
}

.team-sub {
    margin-top: 2px;
}

.vs-chip {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    font-size: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(255,255,255,.70);
}

/* premium matchup pill */
.mu-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
    position: relative;
    overflow: hidden;
}

    /* premium gloss */
    .mu-pill::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 180px at 12% 0%, rgba(255,255,255,.09), transparent 60%), radial-gradient(900px 180px at 88% 115%, rgba(255,255,255,.06), transparent 60%);
        pointer-events: none;
    }

/* team block */
.mu-team {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 0;
    position: relative;
    z-index: 1;
}

.mu-away {
    justify-content: flex-start;
}

.mu-home {
    justify-content: flex-end;
}

/* bigger logo, premium glass badge */
.mu-logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 35px rgba(0,0,0,.45);
    flex: 0 0 auto;
}

.mu-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}

/* text */
.mu-text {
    min-width: 0;
}

.mu-name {
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mu-sub {
    margin-top: 2px;
    font-size: 12px;
}

/* VS chip - EXPLICIT color so it NEVER disappears */
.mu-vs {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    position: relative;
    z-index: 1;
}

/* hover polish */
tr:hover .mu-pill {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.04);
}

.mh-shell {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    overflow: hidden;
}

.mh-row {
    display: grid;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    position: relative;
}

    .mh-row::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 180px at 18% 0%, rgba(255,255,255,.08), transparent 60%), radial-gradient(900px 180px at 82% 120%, rgba(255,255,255,.05), transparent 60%);
        pointer-events: none;
    }

.mh-team {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 0;
    position: relative;
    z-index: 1;
}

.mh-away {
    justify-content: flex-start;
}

.mh-home {
    justify-content: flex-end;
}

.mh-logo-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 32px rgba(0,0,0,.45);
    flex: 0 0 auto;
}

.mh-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.55));
}

.mh-text {
    min-width: 0;
}

.mh-name {
    font-weight: 850;
    font-size: 18px;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255,255,255,.92);
    line-height: 1.1;
}

.mh-sub {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255,255,255,.60);
}

/* VS: explicitly styled so it never disappears */
.mh-vs {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.20);
    color: rgba(255,255,255,.90) !important;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
    position: relative;
    z-index: 1;
}

/* meta row */
.mh-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 14px 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.mh-meta-left {
    display: flex;
    gap: 10px;
    align-items: baseline;
    min-width: 0;
}

.mh-meta-label {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    letter-spacing: .35px;
    text-transform: uppercase;
}

.mh-meta-value {
    font-size: 13px;
    color: rgba(255,255,255,.80);
    white-space: nowrap;
}

.mh-meta-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mh-chip {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.82);
    font-size: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.hw-card {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    box-shadow: 0 20px 55px rgba(0,0,0,.40);
    position: relative;
    overflow: hidden;
}

    .hw-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 200px at 20% 0%, rgba(255,255,255,.07), transparent 60%);
        pointer-events: none;
    }

.hw-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.hw-logo-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 32px rgba(0,0,0,.45);
}

.hw-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.55));
}

.hw-title-group {
    display: flex;
    flex-direction: column;
}

.hw-team {
    font-weight: 700;
    font-size: 15px;
    color: rgba(255,255,255,.90);
    margin-top: 2px;
}

.hw-prob {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
    margin: 8px 0 16px 0;
    color: rgba(255,255,255,.95);
}

.hw-odds {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.hw-odds-item {
    text-align: center;
}

.hw-odds-label {
    font-size: 12px;
    color: rgba(255,255,255,.60);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hw-odds-value {
    font-weight: 700;
    margin-top: 2px;
    color: rgba(255,255,255,.90);
}

.hw-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,.15);
}

.hw-result {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.75);
}

.kpi-card {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    box-shadow: 0 20px 55px rgba(0,0,0,.40);
    position: relative;
    overflow: hidden;
}

    .kpi-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 200px at 20% 0%, rgba(255,255,255,.07), transparent 60%);
        pointer-events: none;
    }

.kpi-big {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 1px;
    color: rgba(255,255,255,.95);
    line-height: 1.05;
    margin-top: 6px;
}

.kpi-badge {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.82);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1.2px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.kpi-divider {
    height: 1px;
    background: rgba(255,255,255,.10);
}

.kpi-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.kpi-stat {
    flex: 1 1 0;
}

.kpi-label {
    font-size: 12px;
    color: rgba(255,255,255,.60);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.kpi-value {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 800;
    color: rgba(255,255,255,.90);
}

.kpi-vrule {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.14);
}

.kpi-foot {
    color: rgba(255,255,255,.55);
}

/* Desktop polish: optional consistent widths */
@media (min-width: 768px) {
    .poc-table .col-matchup {
        width: 56%;
    }

    .poc-table .col-status {
        width: 16%;
    }

    .poc-table .col-game {
        width: 16%;
    }

    .poc-table .col-action {
        width: 12%;
    }
}

/* Mobile: rows become "cards" */
@media (max-width: 767.98px) {

    .poc-table thead {
        display: none;
    }

    .poc-table,
    .poc-table tbody,
    .poc-table tr,
    .poc-table td {
        display: block;
        width: 100%;
    }

        .poc-table tr {
            background: rgba(255,255,255,.03);
            border: 1px solid rgba(255,255,255,.10);
            border-radius: 18px;
            box-shadow: 0 18px 45px rgba(0,0,0,.35);
            padding: 12px;
            margin-bottom: 12px;
        }

        .poc-table td {
            border: 0 !important;
            padding: 10px 0 !important;
        }

            /* Matchup stays on top */
            .poc-table td.col-matchup {
                padding-top: 0 !important;
            }

            /* 3-column grid for Status/Game/Action under matchup */
            .poc-table td.col-status,
            .poc-table td.col-game,
            .poc-table td.col-action {
                display: grid;
                grid-template-columns: 90px 1fr;
                align-items: center;
                gap: 10px;
            }

    .cell-label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: rgba(255,255,255,.55);
    }

    .cell-value {
        display: flex;
        justify-content: flex-end;
    }

    /* Make the pills fit mobile width better */
    .mu-pill {
        padding: 12px 12px;
        gap: 12px;
    }

    .mu-logo {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .mu-logo-img {
        width: 34px;
        height: 34px;
    }

    .mu-name {
        font-size: 14px;
    }

    .mu-sub {
        font-size: 11px;
    }

    .mu-vs {
        padding: 7px 10px;
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    /* Action button full width on mobile */
    .poc-table td.col-action .btn {
        width: 100%;
    }

    /* stop right-aligning everything on mobile */
    .poc-table td.col-action,
    .poc-table td.col-game,
    .poc-table td.col-status {
        text-align: left !important;
    }

    .cell-value {
        justify-content: flex-start;
    }
}

/* helper for md+ */
@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

/* Table shell */
.poc-adv-table {
    border-collapse: separate;
    border-spacing: 0 10px; /* creates the premium "row cards" feel */
}

    .poc-adv-table thead th {
        color: rgba(255,255,255,.70);
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .6px;
        border-bottom: 0 !important;
        padding-bottom: 6px;
    }

    .poc-adv-table tbody td {
        border-top: 0 !important;
        border-bottom: 0 !important;
    }

    /* Row as a premium card */
    .poc-adv-table tbody tr.adv-row {
        background: rgba(255,255,255,.03);
        border: 1px solid rgba(255,255,255,.10);
        box-shadow: 0 18px 45px rgba(0,0,0,.28);
    }

        .poc-adv-table tbody tr.adv-row td {
            background: transparent;
            padding: 14px 14px;
        }

            .poc-adv-table tbody tr.adv-row td:first-child {
                border-top-left-radius: 16px;
                border-bottom-left-radius: 16px;
            }

            .poc-adv-table tbody tr.adv-row td:last-child {
                border-top-right-radius: 16px;
                border-bottom-right-radius: 16px;
            }

        /* Hover polish */
        .poc-adv-table tbody tr.adv-row:hover {
            background: rgba(255,255,255,.04);
            border-color: rgba(255,255,255,.16);
            transform: translateY(-1px);
            transition: transform .15s ease, background .15s ease, border-color .15s ease;
        }

/* Team cell */
.adv-team {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.adv-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 32px rgba(0,0,0,.40);
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

.adv-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}

.adv-logo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .6px;
    color: rgba(255,255,255,.75);
    opacity: .0;
}

.adv-logo-wrap img + .adv-logo-fallback {
    display: none;
}

/* If no logo rendered, fallback shows */
.adv-logo-wrap:has(.adv-logo:not([src])),
.adv-logo-wrap:has(img[style*="display: none"]) {
    /* (safe no-op; the onerror fallback image covers most cases) */
}

.adv-team-text {
    min-width: 0;
}

.adv-team-name {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255,255,255,.92);
}

.adv-team-meta {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255,255,255,.55);
}

/* Numbers */
.adv-num {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: white!important;
}

/* Net badge */
.adv-net {
    padding: 8px 12px;
    font-weight: 900;
    letter-spacing: .3px;
}

/* Mobile: tighten logo + keep readable */
@media (max-width: 767.98px) {
    .adv-logo-wrap {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .adv-logo {
        width: 38px;
        height: 38px;
    }

    .adv-team-name {
        font-size: 15px;
    }

    .poc-adv-table {
        border-spacing: 0 8px;
    }
}

.adv-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.adv-head-left {
    min-width: 0;
}

.adv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.adv-head-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.adv-sync {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    flex-wrap: wrap;
}

.adv-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adv-select-label {
    font-size: 12px;
    color: rgba(255,255,255,.60);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.adv-select {
    min-width: 160px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.88);
}

    .adv-select:focus {
        box-shadow: 0 0 0 .2rem rgba(255,255,255,.10);
        border-color: rgba(255,255,255,.18);
    }

.adv-btn {
    height: 44px;
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: .2px;
}

/* Mobile: stack nicely, full-width actions */
@media (max-width: 767.98px) {
    .adv-head {
        flex-direction: column;
        align-items: stretch;
    }

    .adv-head-right {
        justify-content: stretch;
    }

    .adv-sync {
        width: 100%;
    }

    .adv-select {
        width: 100%;
        min-width: 0;
    }

    .adv-btn {
        width: 100%;
    }
}

.team-hero-logo-wrap {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.team-hero-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-hero-fallback {
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-hero-fallback-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    opacity: .25;
    letter-spacing: .08em;
}

#teamTrendChart {
    width: 100%;
}

/* ===== Live pipeline (premium) ===== */
.poc-livebar {
    position: relative;
    padding: 18px 14px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
}

/* subtle animated sheen */
.poc-livebar::before {
    content: "";
    position: absolute;
    inset: -60% -40%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.08), transparent 50%);
    transform: rotate(12deg);
    opacity: .7;
    pointer-events: none;
    filter: blur(10px);
}

/* track + fill */
.poc-livebar-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
    position: relative;
    overflow: hidden;
}

/* ✅ FIXED fill */
.poc-livebar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(120,200,255,.0), rgba(120,200,255,.9), rgba(140,255,206,.9));
    box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 10px 30px rgba(70,190,255,.18);
    transition: width 420ms cubic-bezier(.2,.9,.2,1);
    pointer-events: none;
}

    /* a moving highlight inside the fill */
    .poc-livebar-fill::after {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent );
        transform: translateX(-30%);
        opacity: .75;
        animation: poc-livebar-shimmer 1.8s linear infinite;
        mix-blend-mode: screen;
    }

@keyframes poc-livebar-shimmer {
    0% {
        transform: translateX(-35%);
    }

    100% {
        transform: translateX(35%);
    }
}

/* steps row */
.poc-livebar-steps {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* step node */
.poc-stepnode {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.15);
    color: rgba(255,255,255,.86);
    cursor: pointer;
    user-select: none;
    transition: transform 120ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

    .poc-stepnode:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,.18);
        background: rgba(255,255,255,.05);
        box-shadow: 0 10px 24px rgba(0,0,0,.22);
    }

    .poc-stepnode:active {
        transform: translateY(0px) scale(.99);
    }

.poc-stepnode-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.35);
    box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

.poc-stepnode-label {
    font-size: .85rem;
    letter-spacing: .2px;
    white-space: nowrap;
}

/* ===== States ===== */
.poc-stepnode-pending {
    opacity: .85;
}

.poc-stepnode-running {
    border-color: rgba(120,200,255,.55);
    background: rgba(120,200,255,.10);
    box-shadow: 0 0 0 1px rgba(120,200,255,.15), 0 16px 38px rgba(70,190,255,.20);
}

    .poc-stepnode-running .poc-stepnode-dot {
        background: rgba(120,200,255,.95);
        box-shadow: 0 0 0 4px rgba(120,200,255,.18), 0 0 18px rgba(120,200,255,.55);
        animation: poc-pulse 1.15s ease-in-out infinite;
    }

@keyframes poc-pulse {
    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}

.poc-stepnode-ok {
    border-color: rgba(140,255,206,.55);
    background: rgba(140,255,206,.08);
}

    .poc-stepnode-ok .poc-stepnode-dot {
        background: rgba(140,255,206,.95);
        box-shadow: 0 0 0 4px rgba(140,255,206,.16), 0 0 18px rgba(140,255,206,.35);
    }

.poc-stepnode-fail {
    border-color: rgba(255,120,120,.55);
    background: rgba(255,120,120,.10);
}

    .poc-stepnode-fail .poc-stepnode-dot {
        background: rgba(255,120,120,.95);
        box-shadow: 0 0 0 4px rgba(255,120,120,.16), 0 0 18px rgba(255,120,120,.35);
    }

.poc-stepnode-skip {
    opacity: .7;
    border-style: dashed;
}

/* Reduce shimmer if user prefers */
@media (prefers-reduced-motion: reduce) {
    .poc-livebar-fill,
    .poc-stepnode,
    .poc-stepnode-running .poc-stepnode-dot {
        transition: none !important;
        animation: none !important;
    }

        .poc-livebar-fill::after {
            display: none;
        }
}
