:root {
    --background: #07101f;
    --surface: #0d192b;
    --surface-light: #132238;
    --surface-hover: #182b45;
    --border: rgba(255, 255, 255, 0.09);
    --text: #f5f8ff;
    --muted: #91a2bb;
    --primary: #5c7cff;
    --primary-dark: #4563e6;
    --success: #2ed39b;
    --warning: #f5b942;
    --danger: #ff647c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --radius-small: 12px;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: var(--background);
    color: var(--text);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    padding: 32px 20px;
    background:
        radial-gradient(
            circle at top left,
            rgba(92, 124, 255, 0.22),
            transparent 42%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(46, 211, 155, 0.14),
            transparent 38%
        ),
        #07101f;
}

.login-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.4;
}

.login-decoration-one {
    width: 340px;
    height: 340px;
    top: -140px;
    right: -90px;
    background: rgba(92, 124, 255, 0.25);
}

.login-decoration-two {
    width: 280px;
    height: 280px;
    bottom: -120px;
    left: -70px;
    background: rgba(46, 211, 155, 0.2);
}

.login-card {
    width: min(100%, 440px);
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: rgba(13, 25, 43, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 1;
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background:
        linear-gradient(145deg, #6685ff, #405ce0);
    font-weight: 900;
    letter-spacing: -1px;
    box-shadow: 0 12px 30px rgba(72, 99, 231, 0.35);
}

.brand-mark-small {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 14px;
    flex-shrink: 0;
}

.login-heading {
    margin: 28px 0 26px;
}

.login-heading h1,
.modal-heading h2 {
    margin: 6px 0 9px;
    letter-spacing: -0.035em;
}

.login-heading h1 {
    font-size: 34px;
}

.login-heading p,
.modal-heading p {
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

.eyebrow {
    color: #8fa4ff !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin: 0;
}

.form-stack {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field-full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 8px;
}

label > span {
    font-size: 13px;
    font-weight: 700;
    color: #d7e0ef;
}

label small {
    color: var(--muted);
}

input,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #091525;
    color: var(--text);
    padding: 13px 14px;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(92, 124, 255, 0.15);
}

.password-control {
    position: relative;
}

.password-control input {
    padding-right: 64px;
}

.password-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    color: #aebeff;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    padding: 8px;
}

.button {
    border: 0;
    border-radius: 12px;
    padding: 11px 17px;
    font-weight: 800;
    transition:
        transform 0.15s,
        opacity 0.15s,
        background 0.15s;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: wait;
    opacity: 0.6;
    transform: none;
}

.button-primary {
    color: white;
    background: var(--primary);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    color: var(--text);
    background: var(--surface-light);
    border: 1px solid var(--border);
}

.button-danger {
    color: #ffdce2;
    background: rgba(255, 100, 124, 0.15);
    border: 1px solid rgba(255, 100, 124, 0.25);
}

.button-success {
    color: #caffee;
    background: rgba(46, 211, 155, 0.14);
    border: 1px solid rgba(46, 211, 155, 0.25);
}

.button-ghost {
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--border);
}

.button-small {
    padding: 8px 11px;
    font-size: 12px;
}

.button-large {
    min-height: 48px;
}

.form-error {
    border: 1px solid rgba(255, 100, 124, 0.28);
    border-radius: 11px;
    background: rgba(255, 100, 124, 0.1);
    color: #ffb5c1;
    padding: 11px 12px;
    font-size: 13px;
}

.login-footer {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    margin: 24px 0 0;
}

.app-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px 17px;
    background: #091525;
    border-right: 1px solid var(--border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 7px 26px;
}

.sidebar-brand strong,
.sidebar-brand span {
    display: block;
}

.sidebar-brand strong {
    font-size: 15px;
}

.sidebar-brand span {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.nav-item {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 13px;
    color: var(--muted);
    background: transparent;
    display: flex;
    gap: 11px;
    align-items: center;
    text-align: left;
    font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background: var(--surface-light);
}

.nav-item.active {
    box-shadow: inset 3px 0 0 var(--primary);
}

.nav-icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 15px;
}

.sidebar-user {
    display: flex;
    gap: 11px;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.sidebar-user > span {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--surface-light);
    color: #aab9ff;
    font-size: 12px;
    font-weight: 900;
}

.sidebar-user strong,
.sidebar-user small {
    display: block;
}

.sidebar-user strong {
    font-size: 13px;
}

.sidebar-user small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
}

.main-content {
    min-width: 0;
    padding: 26px 30px 45px;
}

.topbar {
    min-height: 70px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.topbar h2 {
    font-size: 27px;
    margin: 5px 0 0;
    letter-spacing: -0.035em;
}

.topbar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px rgba(46, 211, 155, 0.65);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.summary-card,
.panel,
.module-card,
.prematch-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
}

.summary-card {
    padding: 18px;
}

.summary-card span {
    color: var(--muted);
    font-size: 12px;
}

.summary-card strong {
    display: block;
    font-size: 25px;
    margin-top: 8px;
    letter-spacing: -0.04em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 20px;
}

.panel {
    padding: 22px;
}

.panel-header,
.users-header,
.modal-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-header {
    margin-bottom: 17px;
}

.panel-header h3,
.users-header h3 {
    margin: 0;
    letter-spacing: -0.025em;
}

.panel-header p,
.users-header p {
    color: var(--muted);
    margin: 5px 0 0;
    font-size: 13px;
}

.module-card {
    padding: 21px;
    background:
        linear-gradient(
            135deg,
            rgba(92, 124, 255, 0.18),
            transparent 65%
        ),
        var(--surface-light);
}

.module-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.module-card h3 {
    margin: 12px 0 7px;
    font-size: 23px;
}

.module-card p {
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.badge-success {
    color: #b9fce5;
    background: rgba(46, 211, 155, 0.14);
}

.badge-warning {
    color: #ffe1a0;
    background: rgba(245, 185, 66, 0.14);
}

.badge-danger {
    color: #ffc1cb;
    background: rgba(255, 100, 124, 0.14);
}

.badge-neutral {
    color: #b9c4d6;
    background: rgba(145, 162, 187, 0.14);
}

.account-list {
    display: grid;
    gap: 13px;
}

.account-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border);
}

.account-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.account-row span {
    color: var(--muted);
    font-size: 12px;
}

.account-row strong {
    font-size: 12px;
    text-align: right;
}

.users-header {
    margin-bottom: 20px;
}

.users-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 960px;
    background: var(--surface);
}

.users-table th,
.users-table td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.users-table th {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #0a1728;
}

.users-table td {
    font-size: 13px;
}

.users-table tr:last-child td {
    border-bottom: 0;
}

.user-identity strong,
.user-identity span {
    display: block;
}

.user-identity span {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.action-select {
    width: auto;
    min-width: 115px;
    padding: 8px 10px;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 50px 25px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--surface-light);
    font-size: 28px;
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.55;
}

.prematch-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.filter-pill.active {
    background: rgba(92, 124, 255, 0.17);
    border-color: rgba(92, 124, 255, 0.35);
    color: #c7d0ff;
}

.prematch-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(310px, 1fr));
    gap: 18px;
}

.prematch-card {
    padding: 19px;
}

.prematch-card.placeholder {
    opacity: 0.62;
}

.prematch-card {
    --league-accent: #8290a8;
    --league-soft: rgba(130, 144, 168, 0.13);
    --league-text: #d2d9e5;

    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--league-accent);
    background:
        linear-gradient(
            145deg,
            var(--league-soft),
            transparent 42%
        ),
        var(--surface);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.prematch-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.24),
        0 0 0 1px var(--league-soft);
}

.prematch-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--league-accent);
    opacity: 0.9;
}

.prematch-card.league-battle {
    --league-accent: #ff875b;
    --league-soft: rgba(255, 135, 91, 0.15);
    --league-text: #ffd1c0;
}

.prematch-card.league-valhalla {
    --league-accent: #9d82ff;
    --league-soft: rgba(157, 130, 255, 0.16);
    --league-text: #d9d0ff;
}

.prematch-card.league-valkyrie {
    --league-accent: #ff75c8;
    --league-soft: rgba(255, 117, 200, 0.15);
    --league-text: #ffd0eb;
}

.prematch-card.league-h2h {
    --league-accent: #62d9a7;
    --league-soft: rgba(98, 217, 167, 0.15);
    --league-text: #c8f8e4;
}

.prematch-card.league-other {
    --league-accent: #8290a8;
    --league-soft: rgba(130, 144, 168, 0.13);
    --league-text: #d2d9e5;
}

.prematch-league-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.league-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--league-accent);
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--league-text);
    background: var(--league-soft);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.075em;
    line-height: 1;
    white-space: nowrap;
}

.league-full-name {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1.35;
}

.prematch-card .prematch-time {
    color: var(--league-text);
    border: 1px solid var(--league-soft);
    border-radius: 8px;
    padding: 6px 8px;
    background: rgba(7, 12, 22, 0.35);
    white-space: nowrap;
}


.prematch-league {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.prematch-time {
    color: #ffd380;
}

.prematch-versus {
    padding: 21px 0 18px;
    text-align: center;
}

.prematch-versus strong {
    display: block;
    font-size: 17px;
}

.prematch-versus span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin: 8px 0;
}

.prematch-facts {
    display: grid;
    gap: 9px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.prematch-facts div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.prematch-facts strong {
    color: var(--text);
}

.prematch-strength {
    margin-top: 15px;
    border-radius: 10px;
    background: rgba(92, 124, 255, 0.12);
    color: #bdc8ff;
    text-align: center;
    padding: 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(3, 8, 16, 0.78);
    backdrop-filter: blur(8px);
}

.modal-card {
    width: min(100%, 660px);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 28px;
}

.modal-small {
    width: min(100%, 470px);
}

.modal-heading {
    margin-bottom: 24px;
}

.modal-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--muted);
    background: var(--surface-light);
    font-size: 23px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}

.toast {
    position: fixed;
    z-index: 200;
    right: 22px;
    bottom: 22px;
    max-width: min(400px, calc(100vw - 44px));
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #16243a;
    box-shadow: var(--shadow);
    padding: 13px 16px;
    font-size: 13px;
}

.toast.success {
    border-color: rgba(46, 211, 155, 0.35);
}

.toast.error {
    border-color: rgba(255, 100, 124, 0.38);
}

@media (max-width: 1050px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 14px;
    }

    .sidebar-brand {
        padding-bottom: 13px;
    }

    .sidebar-nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-item {
        justify-content: center;
        padding: 10px;
        font-size: 11px;
    }

    .nav-icon {
        display: none;
    }

    .sidebar-bottom {
        display: none;
    }

    .main-content {
        padding: 20px 15px 35px;
    }

    .topbar {
        align-items: center;
    }

    .topbar-status {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .login-card {
        padding: 27px 22px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        grid-template-columns: 1fr 1fr;
    }

    .topbar h2 {
        font-size: 23px;
    }

    .modal-card {
        padding: 22px 18px;
    }
}

/* ==========================================================
   FIJAS PREMATCH STATS V1
   ========================================================== */

.prematch-grid {
    grid-template-columns:
        repeat(auto-fit, minmax(390px, 1fr));
}

.prematch-bookmakers {
    margin-top: 12px;
}

.prematch-versus {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.prematch-side {
    min-width: 0;
}

.prematch-side strong {
    display: block;
    overflow-wrap: anywhere;
}

.prematch-side span {
    display: block;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.prematch-vs {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.prematch-analysis-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.prematch-analysis-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 11px;
}

.prematch-analysis-heading > span {
    color: var(--text);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.065em;
}

.prematch-analysis-heading small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-align: right;
}

.prematch-exact-block {
    border-top-color: var(--league-soft);
}

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

.prematch-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    padding: 6px 0;
    border-bottom: 1px solid rgba(145, 162, 187, 0.09);
}

.prematch-stat-row span {
    min-width: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.prematch-stat-row strong {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.prematch-no-exact {
    padding: 11px 12px;
    border: 1px dashed var(--league-soft);
    border-radius: 9px;
    background: rgba(7, 12, 22, 0.22);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.prematch-recent-scores {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid rgba(145, 162, 187, 0.1);
}

.prematch-subtitle {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.07em;
}

.prematch-score-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    color: var(--muted);
    font-size: 9px;
}

.prematch-score-row span:last-child {
    text-align: right;
}

.prematch-score-row strong {
    color: var(--text);
    font-size: 11px;
}

.prematch-player-stats {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.prematch-player-panel {
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(7, 12, 22, 0.22);
}

.prematch-player-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--league-soft);
}

.prematch-player-title strong {
    min-width: 0;
    color: var(--league-text);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.prematch-player-title span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
}

.prematch-player-panel .prematch-stat-row:last-child {
    border-bottom: 0;
}

.prematch-strength {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prematch-strength strong {
    font-size: 10px;
    letter-spacing: 0.075em;
}

.prematch-strength span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.45;
}

.prematch-strength.evidence-very_strong {
    background: rgba(46, 211, 155, 0.16);
    color: #b9fce5;
}

.prematch-strength.evidence-strong {
    background: rgba(98, 217, 167, 0.13);
    color: #c8f8e4;
}

.prematch-strength.evidence-moderate {
    background: rgba(245, 185, 66, 0.14);
    color: #ffe1a0;
}

.prematch-strength.evidence-weak {
    background: rgba(255, 135, 91, 0.12);
    color: #ffd1c0;
}

.prematch-strength.evidence-insufficient {
    background: rgba(145, 162, 187, 0.12);
    color: #b9c4d6;
}

@media (max-width: 760px) {
    .prematch-grid {
        grid-template-columns: 1fr;
    }

    .prematch-player-stats,
    .prematch-stat-grid {
        grid-template-columns: 1fr;
    }

    .prematch-analysis-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .prematch-analysis-heading small {
        text-align: left;
    }
}

/* ==========================================================
   FIJAS AWAITING LIVE V1
   ========================================================== */

.prematch-card.awaiting-live-card {
    border-left-color: #f5b942;
}

.prematch-time.awaiting-live {
    position: relative;
    min-width: 138px;
    padding: 8px 10px 23px;
    border-color: rgba(245, 185, 66, 0.42);
    background: rgba(245, 185, 66, 0.11);
    color: #ffe1a0;
    text-align: center;
    animation:
        fijas-live-wait-pulse
        1.8s ease-in-out
        infinite;
}

.prematch-time.awaiting-live::after {
    content: "ESPERANDO CONFIRMACIÓN LIVE";
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 6px;
    color: #d9bd7c;
    font-size: 6px;
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1;
    white-space: nowrap;
}

@keyframes fijas-live-wait-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0
            rgba(245, 185, 66, 0);
    }

    50% {
        box-shadow:
            0 0 17px
            rgba(245, 185, 66, 0.15);
    }
}


/* ==========================================================
   FIJAS RADAR CLOCK V1
   ========================================================== */

.prematch-system-clock {
    margin-left: auto;

    min-width: 190px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;

    padding: 7px 12px;

    border:
        1px solid
        rgba(92, 124, 255, 0.24);

    border-radius: 10px;

    background:
        rgba(7, 18, 34, 0.78);

    text-align: right;
}

.prematch-system-clock span {
    color: #7d8da8;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 0.12em;
}

.prematch-system-clock strong {
    color: #ffffff;

    font-size: 18px;
    font-weight: 900;

    font-variant-numeric:
        tabular-nums;

    letter-spacing: 0.055em;
}

.prematch-system-clock small {
    color: #38d39f;

    font-size: 6px;
    font-weight: 900;

    letter-spacing: 0.055em;
}


/* ==========================================================
   PROGRAMADO / EMPIEZA EN
   ========================================================== */

.prematch-card
.prematch-time[data-programmed] {
    position: relative;

    min-width: 158px;

    padding:
        22px
        9px
        7px;

    text-align: center;

    font-variant-numeric:
        tabular-nums;
}

.prematch-card
.prematch-time[data-programmed]::before {
    content:
        attr(data-programmed);

    position: absolute;

    top: 6px;
    left: 4px;
    right: 4px;

    color: #7f8da7;

    font-size: 6px;
    font-weight: 900;

    line-height: 1;

    letter-spacing: 0.055em;

    white-space: nowrap;
}


/* ==========================================================
   INICIO INMINENTE / TIEMPO ESPERANDO LIVE
   ========================================================== */

.prematch-card
.prematch-time.awaiting-live[data-programmed] {
    min-width: 164px;

    padding:
        22px
        9px
        23px;
}

.prematch-card
.prematch-time.awaiting-live::after {
    content:
        attr(data-waiting);

    position: absolute;

    left: 4px;
    right: 4px;
    bottom: 6px;

    color: #d9bd7c;

    font-size: 6px;
    font-weight: 900;

    letter-spacing: 0.045em;

    line-height: 1;

    white-space: nowrap;
}


@media (max-width: 900px) {
    .prematch-system-clock {
        width: 100%;
        margin-left: 0;

        text-align: left;
    }
}

/* =========================================================
   EVIDENCIA_COLORES_V1
   FUERTE       = VERDE FOSFORESCENTE
   MODERADA     = CONSERVA ESTILO ACTUAL
   INSUFICIENTE = ROJO
   ========================================================= */

/* EVIDENCIA FUERTE */
.evidence-strong {
    color: #39ff14 !important;
    border-color: #39ff14 !important;
    background:
        rgba(57, 255, 20, 0.16) !important;

    box-shadow:
        0 0 6px rgba(57, 255, 20, 0.80),
        0 0 14px rgba(57, 255, 20, 0.45),
        inset 0 0 8px rgba(57, 255, 20, 0.12) !important;

    text-shadow:
        0 0 4px rgba(57, 255, 20, 0.95),
        0 0 8px rgba(57, 255, 20, 0.55) !important;
}

/* EVIDENCIA INSUFICIENTE */
.evidence-insufficient {
    color: #ff4d4d !important;
    border-color: #ff3333 !important;
    background:
        rgba(255, 35, 35, 0.16) !important;

    box-shadow:
        0 0 5px rgba(255, 40, 40, 0.60),
        0 0 11px rgba(255, 40, 40, 0.30) !important;

    text-shadow:
        0 0 4px rgba(255, 50, 50, 0.60) !important;
}

/*
 * evidence-moderate NO se modifica.
 * Conserva exactamente el color actual.
 */


/* ==========================================================
   PREMATCH STATS V2 - ESTABILIDAD 30
   ========================================================== */

.prematch-stability-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 4px;
    padding-top: 9px;
    padding-bottom: 6px;
    border-top: 1px solid var(--league-soft);
}

.prematch-stability-divider span {
    color: var(--league-text);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.prematch-stability-divider small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
}

/* ==========================================================
   PREMATCH - MEJOR PERFIL ESTADISTICO V4
   ========================================================== */

.prematch-stat-favorite {
    margin-bottom: 12px;
    padding: 12px 13px;
    border: 1px solid var(--league-soft);
    border-radius: 10px;
    background: rgba(7, 12, 22, 0.28);
}

.prematch-stat-favorite-title {
    margin-bottom: 7px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.prematch-stat-favorite-player {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.prematch-stat-favorite-player strong {
    color: var(--league-text);
    font-size: 15px;
    font-weight: 900;
}

.prematch-stat-favorite-player span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.prematch-stat-favorite-reasons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.45;
}

.prematch-stat-favorite-note {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 8px;
}

.prematch-stat-favorite.favorite-a,
.prematch-stat-favorite.favorite-b {
    border-color: rgba(46, 211, 155, 0.38);
    background: rgba(46, 211, 155, 0.08);
}

.prematch-stat-favorite.favorite-a
.prematch-stat-favorite-title,
.prematch-stat-favorite.favorite-b
.prematch-stat-favorite-title {
    color: #b9fce5;
}

.prematch-stat-favorite.balanced {
    border-color: rgba(245, 185, 66, 0.34);
    background: rgba(245, 185, 66, 0.07);
}

.prematch-stat-favorite.balanced
.prematch-stat-favorite-title {
    color: #ffe1a0;
}

.prematch-stat-favorite.insufficient {
    border-color: rgba(145, 162, 187, 0.26);
    background: rgba(145, 162, 187, 0.06);
}

.prematch-stat-favorite.insufficient
.prematch-stat-favorite-title {
    color: #b9c4d6;
}

/* ==========================================================
   CRUCE EXACTO - PRIMER GOL V2
   ========================================================== */

.prematch-exact-first-goal {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    padding: 10px 11px;
    border: 1px solid var(--league-soft);
    border-radius: 9px;
    background: rgba(7, 12, 22, 0.25);
}

.prematch-exact-first-goal strong {
    color: var(--league-text);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.prematch-exact-first-goal span {
    font-size: 9px;
    font-weight: 650;
    line-height: 1.5;
}
