body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.72)),
        url("/img/app-logo-bg.png") center center / cover no-repeat fixed;
    color: #ffffff;
}

.page {
    padding: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card {
    background: rgba(10, 20, 35, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

h1 {
    margin: 0 0 16px 0;
    font-size: 28px;
}

a {
    color: #000000;
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.94);
    color: #111;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: #12345a;
    color: white;
    padding: 9px;
    text-align: left;
}

td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background: #fff3c4;
}

.login-box {
    width: 360px;
    margin: 110px auto;
    background: rgba(10, 20, 35, 0.88);
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.45);
}

input, button {
    width: 100%;
    box-sizing: border-box;
    padding: 9px;
    margin-top: 8px;
}

button {
    cursor: pointer;
    background: #ffd86b;
    border: 0;
    font-weight: bold;
}

.error {
    color: #ff8888;
    margin-top: 12px;
}

.app-layout {
    display: flex;
    min-height: 100vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.side-menu {
    width: 230px;
    background: rgba(5, 15, 30, 0.92);
    border-right: 1px solid rgba(255,255,255,0.16);
    padding: 18px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.side-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 24px;
    color: #ffd86b;
}

.side-tab {
    display: block;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.side-tab:hover,
.side-tab.active {
    background: #ffd86b;
    color: #111;
}

.side-spacer {
    flex: 1;
}

.side-tab.logout {
    background: rgba(180, 40, 40, 0.85);
}

.main-content {
    flex: 1;
    padding: 24px;
    box-sizing: border-box;
}

.subtitle {
    color: #ddd;
    margin-top: -8px;
}

.user-pill {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 8px 14px;
}

.user-pill .role {
    margin-left: 8px;
    color: #ffd86b;
    font-weight: bold;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.quick-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 18px;
    color: white;
}

.quick-card:hover {
    background: rgba(255,216,107,0.92);
    color: #111;
}

.quick-card span {
    font-size: 14px;
    opacity: 0.9;
}

.sub-tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0 18px 0;
}

.sub-tab {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.18);
}

.sub-tab:hover,
.sub-tab.active {
    background: #ffd86b;
    color: #111;
}

.sub-tab.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.selected-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,216,107,0.14);
    border: 1px solid rgba(255,216,107,0.45);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 12px 0 16px 0;
}

.quick-card-form {
    margin: 0;
}

.quick-card-form button.quick-card {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.quick-card.selected {
    background: rgba(255,216,107,0.92);
    color: #111;
}

.small-btn {
    width: auto;
    padding: 7px 12px;
    border-radius: 7px;
}

.small-btn.danger {
    background: rgba(180,40,40,0.9);
    color: white;
}

/* =========================================================
   FIXED APP LAYOUT
   vertical menu + topbar + tournament tabs stay fixed
   only page/tab body scrolls
   ========================================================= */

html,
body {
    height: 100%;
    overflow: hidden;
}

.app-layout {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;    
}

.side-menu {
    height: 100vh;
    flex: 0 0 230px;
    overflow: hidden;
}

.main-content {
    flex: 1;
    height: 100vh;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    flex: 0 0 auto;
    margin-bottom: 20px;
}

.main-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.main-body > div {
    height: 100%;
    min-height: 0;
}

.card.tournament-shell {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tournament-freeze {
    flex: 0 0 auto;
}

.tournament-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

.sub-tabs {
    flex: 0 0 auto;
}

.data-table thead th,
table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
}

/* =========================================================
   TOURNAMENT TABLES
   ========================================================= */

.groups-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(360px, 1fr));
    gap: 16px;
}

.group-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
}

.group-title {
    background: rgba(255, 216, 107, 0.92);
    color: #111;
    font-weight: bold;
    padding: 8px 12px;
}

.group-table {
    width: 100%;
    font-size: 13px;
}

.group-table th,
.group-table td {
    padding: 6px 7px;
    text-align: center;
}

.group-table .team-name {
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

.group-table .points {
    font-weight: bold;
}

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


/* =========================================================
   TOURNAMENT TEAMS
   ========================================================= */

.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
}

.team-group-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
}

.team-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-pill {
    display: flex;
    align-items: center;
    gap: 9px;

    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;

    padding: 7px 10px;
    font-weight: bold;
    white-space: nowrap;
}

.team-flag {
    font-size: 20px;
    line-height: 1;
}

.team-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1200px) {
    .teams-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

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

/* =========================================================
   TOURNAMENT TABLES - FLAGS + QUALIFICATION COLORS
   ========================================================= */

.group-table .team-cell {
    display: flex;
    align-items: center;
    gap: 7px;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

.team-flag-small {
    font-size: 18px;
    line-height: 1;
}

.team-name-table {
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-table .pos-cell {
    font-weight: bold;
}

.group-table .qualified-row {
    background: rgba(50, 180, 90, 0.22);
}

.group-table .qualified-row:hover {
    background: rgba(80, 220, 120, 0.36);
}

.group-table .normal-row {
    background: rgba(255, 255, 255, 0.94);
}

.group-table .normal-row:hover {
    background: #fff3c4;
}

.group-table .points {
    font-weight: bold;
    color: #0b3d1b;
}

/* =========================================================
   TOURNAMENT MATCHES - MANUAL SCORE CRUD
   ========================================================= */

.matches-table {
    font-size: 13px;
}

.matches-table th,
.matches-table td {
    padding: 6px 7px;
    vertical-align: middle;
}

.score-cell {
    text-align: center;
    font-weight: bold;
}

.score-form {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.score-input {
    width: 46px;
    min-width: 46px;
    padding: 4px 5px;
    margin: 0;
    text-align: center;
}

.score-separator {
    color: #111;
    font-weight: bold;
}

.score-btn {
    width: auto;
    padding: 5px 8px;
    margin: 0;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
}

.score-btn.validate {
    background: #44c767;
    color: #111;
}

.score-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.inline-action-form {
    margin: 0;
}

/* =========================================================
   TOURNAMENT KNOCK-OUT BRACKET
   ========================================================= */

.ko-bracket {
    display: grid;
    grid-template-columns: 1fr 260px 1fr;
    gap: 24px;
    align-items: center;
    min-width: 1280px;
    padding: 12px;
}

.ko-side {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
    align-items: center;
}

.ko-right {
    direction: initial;
}

.ko-right .ko-column,
.ko-right .ko-card {
    direction: initial;
}

.ko-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ko-column-spaced {
    gap: 34px;
}

.ko-column-spaced-more {
    gap: 76px;
}

.ko-column-semi {
    gap: 150px;
}

.ko-round-title {
    text-align: center;
    color: #ffd86b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ko-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 520px;
}

.ko-trophy {
    font-size: 108px;
    filter: drop-shadow(0 0 18px rgba(255, 216, 107, 0.55));
}

.ko-final-title {
    color: #ffd86b;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ko-card {
    position: relative;
    background: linear-gradient(135deg, rgba(5, 15, 30, 0.92), rgba(10, 35, 65, 0.86));
    border: 1px solid rgba(255, 216, 107, 0.34);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
    min-height: 104px;
}

.ko-card::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -18px;
    width: 18px;
    height: 1px;
    background: rgba(255, 216, 107, 0.45);
}

.ko-right .ko-card::after {
    right: auto;
    left: -18px;
}

.ko-center .ko-card::after {
    display: none;
}

.ko-card-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    margin-bottom: 8px;
}

.ko-team-row {
    display: grid;
    grid-template-columns: 1fr 28px;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    padding: 7px 8px;
    margin-top: 6px;
    font-weight: 800;
    color: #fff;
}

.ko-team-row strong {
    text-align: center;
    color: #ffd86b;
    font-size: 16px;
}

.ko-card-meta {
    margin-top: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
}

@media (max-width: 1400px) {
    .ko-bracket {
        min-width: 1100px;
        grid-template-columns: 1fr 220px 1fr;
    }

    .ko-side {
        grid-template-columns: repeat(4, minmax(155px, 1fr));
        gap: 14px;
    }
}

.ko-bracket {
    transform: scale(0.64);
    transform-origin: top left;
    width: 156%;
}

.tournament-body {
    overflow: auto;
}

.ko-bracket-slots .ko-slot-column {
    display: grid;
    grid-template-rows: repeat(16, 58px);
    gap: 0;
    align-items: center;
}

.ko-bracket-slots .ko-card {
    min-height: 88px;
    padding: 7px;
}

.ko-bracket {
    transform: scale(0.68);
    transform-origin: top left;
    width: 147%;
}

.tournament-body {
    overflow: auto;
}

/* =========================================================
   TOURNAMENT KNOCK-OUT CONNECTORS FIX
   ========================================================= */

.ko-bracket {
    transform: scale(0.62);
    transform-origin: top left;
    width: 162%;
}

.ko-bracket-slots .ko-slot-column {
    display: grid;
    grid-template-rows: repeat(16, 66px);
    gap: 0;
    align-items: center;
}

.ko-bracket-slots .ko-card {
    min-height: 82px;
    padding: 7px;
}

/* remove old simple unfinished lines */
.ko-card::after {
    display: none;
}

/* connector geometry */
.ko-col-r32 {
    --ko-pair-h: 132px;
}

.ko-col-r16 {
    --ko-pair-h: 264px;
}

.ko-col-qf {
    --ko-pair-h: 528px;
}

/* LEFT SIDE: pair bracket connectors */
.ko-left .ko-col-r32 .ko-card:nth-child(even)::before,
.ko-left .ko-col-r16 .ko-card:nth-child(even)::before,
.ko-left .ko-col-qf .ko-card:nth-child(even)::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -42px;
    width: 42px;
    height: var(--ko-pair-h);
    pointer-events: none;

    background:
        linear-gradient(#ffd86b, #ffd86b) 0 0 / 22px 2px no-repeat,
        linear-gradient(#ffd86b, #ffd86b) 0 100% / 22px 2px no-repeat,
        linear-gradient(#ffd86b, #ffd86b) 22px 0 / 2px 100% no-repeat,
        linear-gradient(#ffd86b, #ffd86b) 22px 50% / 20px 2px no-repeat;
}

/* RIGHT SIDE: mirrored pair bracket connectors */
.ko-right .ko-col-r32 .ko-card:nth-child(even)::before,
.ko-right .ko-col-r16 .ko-card:nth-child(even)::before,
.ko-right .ko-col-qf .ko-card:nth-child(even)::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -42px;
    width: 42px;
    height: var(--ko-pair-h);
    pointer-events: none;

    background:
        linear-gradient(#ffd86b, #ffd86b) 20px 0 / 22px 2px no-repeat,
        linear-gradient(#ffd86b, #ffd86b) 20px 100% / 22px 2px no-repeat,
        linear-gradient(#ffd86b, #ffd86b) 20px 0 / 2px 100% no-repeat,
        linear-gradient(#ffd86b, #ffd86b) 0 50% / 22px 2px no-repeat;
}

/* SF to Final */
.ko-left .ko-col-sf .ko-card::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -42px;
    width: 42px;
    height: 2px;
    background: #ffd86b;
}

.ko-right .ko-col-sf .ko-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -42px;
    width: 42px;
    height: 2px;
    background: #ffd86b;
}

/* stronger trophy */
.ko-trophy {
    font-size: 200px;
    filter: drop-shadow(0 0 24px rgba(255, 216, 107, 0.85));
}

.tournament-body {
    overflow: auto;
}

/* =========================================================
   TOURNAMENT KNOCK-OUT R32 SPACING FIX
   ========================================================= */

.ko-bracket {
    transform: scale(0.68);
    transform-origin: top left;
    width: 172%;
}

.ko-bracket-slots .ko-slot-column {
    display: grid;
    gap: 0;
    align-items: center;
}

/* R32 are carduri dese si text lung */
.ko-bracket-slots .ko-col-r32 {
    grid-template-rows: repeat(16, 98px);
}

/* Rundele urmatoare stau pe aceeasi geometrie, dar cu sloturi mai largi */
.ko-bracket-slots .ko-col-r16,
.ko-bracket-slots .ko-col-qf,
.ko-bracket-slots .ko-col-sf {
    grid-template-rows: repeat(16, 100px);
    margin-left: 30px;
}

.ko-bracket-slots .ko-card {
    min-height: 88px;
    padding: 6px;
}

.ko-bracket-slots .ko-col-r32 .ko-card {
    min-height: 104px;
}

/* text mai compact in carduri */
.ko-team-row {
    min-height: 30px;
    padding: 5px 7px;
}

.ko-team-row span {
    font-size: 12px;
    line-height: 1.12;
    display: block;
    max-height: 28px;
    overflow: hidden;
}

.ko-card-head {
    font-size: 10px;
    margin-bottom: 5px;
}

.ko-card-meta {
    font-size: 10px;
    margin-top: 5px;
}

/* recalibrare linii dupa noua inaltime R32 */
.ko-col-r32 {
    --ko-pair-h: 236px;
}

.ko-col-r16 {
    --ko-pair-h: 236px;
}

.ko-col-qf {
    --ko-pair-h: 472px;
}

.tournament-body {
    overflow: auto;
}

.score-input {
    width: 52px;
    text-align: center;
}

/* =========================================================
   LEAGUE RANKINGS - PREDICTION MATRIX
   ========================================================= */
.rankings-scroll {
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 12px;
}

.matrix-scroll {
    width: 100%;
    max-height: 430px;
    overflow-x: auto;
    overflow-y: auto;
    border-radius: 12px;
}

.prediction-matrix-table {
    min-width: 1200px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.76rem;
}

.prediction-matrix-table th,
.prediction-matrix-table td {
    white-space: nowrap;
    text-align: center;
    padding: 5px 7px;
    line-height: 1.15;
}

.prediction-matrix-table thead th {
    position: sticky;
    top: 0;
    z-index: 20;
}

.mx-sticky {
    position: sticky;
    z-index: 15;
}

thead .mx-sticky {
    z-index: 30;
}

.mx-col-no {
    left: 0;
    min-width: 42px;
    width: 42px;
}

.mx-col-stage {
    left: 42px;
    min-width: 58px;
    width: 58px;
}

.mx-col-match {
    left: 100px;
    min-width: 210px;
    width: 210px;
    text-align: left !important;
}

.mx-col-kickoff {
    left: 310px;
    min-width: 88px;
    width: 88px;
}

.mx-col-official {
    left: 398px;
    min-width: 70px;
    width: 70px;
}

.prediction-matrix-table .mx-sticky {
    background: rgba(15, 23, 42, 0.98);
    color: #ffffff;
}

.pred-3 {
    background: rgba(168, 85, 247, 0.85);
    color: #111827;
    font-weight: 800;
}

.pred-1 {
    background: rgba(34, 197, 94, 0.82);
    color: #111827;
    font-weight: 700;
}

.pred-0 {
    background: rgba(248, 113, 113, 0.78);
    color: #111827;
    font-weight: 650;
}

.pred-hidden {
    background: rgba(250, 204, 21, 0.78);
    color: #111827;
    font-weight: 750;
}

.pred-missing {
    background: rgba(203, 213, 225, 0.75);
    color: #111827;
    font-weight: 600;
}

.mx-player-cell {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
}

.mx-points {
    margin-left: 10px;
    font-size: 0.68rem;
    font-weight: 800;
}

.league-inline-card {
    overflow: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
}

.rankings-scroll,
.matrix-scroll {
    overflow: auto !important;
}

.mx-player-cell,
.mx-player-head {
    width: 76px;
    min-width: 76px;
    max-width: 76px;
}

.rankings-compact-table {
    width: 100%;
    min-width: 0;
    font-size: 0.72rem;
}

.rankings-compact-table th,
.rankings-compact-table td {
    padding: 4px 5px;
    white-space: nowrap;
    line-height: 1.1;
}

.rankings-compact-table th:nth-child(1),
.rankings-compact-table td:nth-child(1) {
    width: 28px;
    text-align: center;
}

.rankings-compact-table th:nth-child(2),
.rankings-compact-table td:nth-child(2) {
    min-width: 90px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rankings-compact-table th:nth-child(n+3),
.rankings-compact-table td:nth-child(n+3) {
    width: 44px;
    text-align: center;
}

/* =========================================================
   MATRIX STICKY COLUMNS - STABLE VERSION
   ========================================================= */

.prediction-matrix-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.prediction-matrix-table thead th {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(30, 41, 59, 1) !important;
    color: #ffffff !important;
}

.prediction-matrix-table .mx-col-no,
.prediction-matrix-table .mx-col-stage,
.prediction-matrix-table .mx-col-match {
    position: sticky;
    background: rgba(15, 23, 42, 1) !important;
    color: #ffffff !important;
}

.prediction-matrix-table thead .mx-col-no,
.prediction-matrix-table thead .mx-col-stage,
.prediction-matrix-table thead .mx-col-match {
    background: rgba(51, 65, 85, 1) !important;
    z-index: 50;
}

.prediction-matrix-table tbody .mx-col-no,
.prediction-matrix-table tbody .mx-col-stage,
.prediction-matrix-table tbody .mx-col-match {
    z-index: 20;
}

.prediction-matrix-table .mx-col-no {
    left: 0;
    min-width: 42px;
    width: 42px;
}

.prediction-matrix-table .mx-col-stage {
    left: 42px;
    min-width: 58px;
    width: 58px;
}

.prediction-matrix-table .mx-col-match {
    left: 100px;
    min-width: 210px;
    width: 210px;
    text-align: left !important;
    box-shadow: 4px 0 6px rgba(0, 0, 0, 0.35);
}

/* Official si Kickoff nu mai sunt frozen */
.prediction-matrix-table .mx-col-kickoff,
.prediction-matrix-table .mx-col-official {
    position: static !important;
    left: auto !important;
    background: inherit;
    color: inherit;
}

/* =========================================================
   SIDEBAR LEAGUE RANKING
   ========================================================= */

.side-ranking {
    margin: 12px 10px 10px 10px;
    padding: 10px 9px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.24);
    font-size: 0.74rem;
}

.side-ranking-title {
    margin-bottom: 7px;
    font-weight: 800;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #facc15;
}

.side-ranking-row {
    display: grid;
    grid-template-columns: 18px 1fr 32px;
    gap: 5px;
    align-items: center;
    padding: 3px 0;
    color: #e5e7eb;
}

.side-rank-pos {
    color: #94a3b8;
    font-weight: 700;
    text-align: right;
}

.side-rank-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-rank-points {
    font-weight: 900;
    text-align: right;
    color: #bbf7d0;
}


/* =========================================================
   CULORI POINTS
   ========================================================= */
.rank-exact4 {
    color: #c77dff;
    font-weight: 700;
}

.rank-exact3 {
    color: #4caf50;
    font-weight: 700;
}

.rank-result {
    color: #a97142;
    font-weight: 700;
}

.rank-total {
    color: #0f8a3a;
    font-weight: 700;
}

.prediction-matrix-table .mx-sticky {
    background: rgba(15, 23, 42, 0.98);
    color: #ffffff;
}

.pred-score-4 {
    background: rgba(168, 85, 247, 0.85);
    color: #111827;
    font-weight: 800;
}

.pred-score-3 {
    background: rgba(34, 197, 94, 0.82);
    color: #111827;
    font-weight: 800;
}

.pred-score-1 {
    background: rgba(180, 120, 60, 0.82);
    color: #111827;
    font-weight: 700;
}

.pred-score-0 {
    background: rgba(248, 113, 113, 0.78);
    color: #111827;
    font-weight: 650;
}

.pred-hidden {
    background: rgba(250, 204, 21, 0.78);
    color: #111827;
    font-weight: 750;
}

.pred-missing {
    background: rgba(203, 213, 225, 0.75);
    color: #111827;
    font-weight: 600;
}

