.card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
    background-color: #fff;
}

.score-page {
    max-width: 1180px;
}

.score-page .card-body {
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96)),
        #f7f7f7;
}

.other-person-prediction-page.score-page .card-body{
    background-color: #2d1010;
    color: white;
}

.card-body p{
    margin-bottom: 5px;
    font-size: 14px;
}

.card-body .flag-icon {
    font-size: 2rem;
}

.round-box{
    position: sticky;
    top: 55px;
    z-index: 1000;
    background-color: rgba(255,255,255,0.96);
    padding: 10px 8px;
    border-bottom: 1px solid rgba(26,58,107,0.08);
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    backdrop-filter: blur(10px);
    gap: 8px;
}

.round-box::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -4px;
    height: 4px;
    background: inherit;
    pointer-events: none;
}

#roundTabsContent{
    margin: 0px 2px;
}

.score-page .card-body div.team-container{
    width: clamp(78px, 26vw, 104px);
    min-width: 0;
}
.score-page .card-body div.team-container p{
    font-size: 12px;
    font-weight: bold;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

input[type="number"] {
    width: 60px;
    padding: 5px;
    font-size: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#statsTabs {
    border: none;
    background: #e9ecef;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

#statsTabs .nav-item {
    flex: 1;
}

#statsTabs .nav-link {
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 8px;
    border: none;
    border-radius: 9px;
    color: #495057;
    background: transparent;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    text-align: center;
    white-space: nowrap;
}

#statsTabs .nav-link:hover:not(.active) {
    background: rgba(255,255,255,0.6);
    color: #1a3a6b;
}

#statsTabs .nav-link.active {
    background: #1a3a6b;
    color: #fff;
    border: none;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(26,58,107,0.18);
}

p.top-box {
    font-size: 11px;
}

.score-card-meta {
    align-items: flex-start;
    gap: 10px;
}

.score-card-meta .top-box {
    color: #667085;
    font-weight: 700;
    line-height: 1.25;
}

.score-card-meta .top-box:first-child {
    flex: 0 0 auto;
    color: #1a3a6b;
    background: rgba(26,58,107,0.08);
    border-radius: 999px;
    padding: 3px 8px;
}

.score-card-meta .top-box:last-child {
    min-width: 0;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-page .match-local-date {
    display: table;
    width: auto;
    max-width: 100%;
    min-height: 26px;
    margin: 4px auto 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1a3a6b;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}

.score-page .match-scoreline {
    align-items: flex-start;
    gap: 8px;
    margin-top: 0;
}

.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#currentRound {
    width: min(54vw, 240px);
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
    padding: 9px 12px;
    background-color: #1a3a6b;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(26,58,107,0.18);
}

.statistics-page {
    max-width: 1180px;
}

.statistics-page .nav-tabs {
    border: 0;
}

.statistics-page #statsTabs {
    position: sticky;
    top: 55px;
    z-index: 900;
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
    background: rgba(233,236,239,0.96);
    box-shadow: 0 8px 22px rgba(15,23,42,0.07);
    backdrop-filter: blur(10px);
}

.statistics-page .statistics-group-select .group-select-wrapper,
.statistics-page #numPlayersContainer .form-control,
.statistics-page .form-group .form-control {
    max-width: 500px;
}

.statistics-page .group-select-wrapper .custom-select-trigger,
.statistics-page .form-control {
    min-height: 42px;
    border-color: #c8d3e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.statistics-page .card-match {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(26,58,107,0.10);
    box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

.statistics-page .card-match::before {
    content: none;
}

.statistics-page .card-header {
    border: 0;
    background: linear-gradient(90deg, #10284d, #1f5f9f);
    padding: 13px 16px 11px;
}

.statistics-page .card-header h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.statistics-page .card-header .text-muted {
    color: rgba(255,255,255,0.76) !important;
    line-height: 1.25;
}

.statistics-page .card-body {
    background: #ffffff;
}

.statistics-page .ranking-wrapper {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e8edf3;
}

.statistics-page .leaderboard-mini-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.statistics-page .leaderboard-mini-table tr {
    background: #ffffff;
}

.statistics-page .leaderboard-mini-table tr:nth-child(odd) {
    background: #fbfcfe;
}

.statistics-page .leaderboard-mini-table td {
    padding: 6px 7px;
    border-top: 1px solid #e8edf3;
    vertical-align: middle;
}

.statistics-page .leaderboard-mini-table tr:first-child td {
    border-top: 0;
}

.statistics-page .leaderboard-mini-table .flag-icon {
    font-size: 1.05rem;
    margin-left: 0;
    filter: drop-shadow(0 1px 1px rgba(15,23,42,0.14));
}

.statistics-page .leaderboard-mini-table td:last-child {
    color: #1a3a6b;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.statistics-page .ranking-table .medal {
    margin: 0;
}

.statistics-page .ranking-sep-row td {
    background: #ffffff;
}

.statistics-page .show-all-ranking {
    color: #1a3a6b;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.statistics-page .row {
    margin-left: -8px;
    margin-right: -8px;
}

.statistics-page .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.statistics-chart-section {
    margin: 0 -2px 24px;
}

.statistics-chart-header {
    margin-bottom: 10px;
    padding: 13px 16px 11px;
    border-radius: 8px;
    background: linear-gradient(90deg, #10284d, #1f5f9f);
    box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

.statistics-chart-header h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.statistics-chart-header .text-muted {
    color: rgba(255,255,255,0.76) !important;
}

.statistics-chart-controls {
    gap: 8px;
    margin-bottom: 8px;
}

.rank-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.rank-filter-bar .btn {
    white-space: nowrap;
    flex-shrink: 0;
}
.rank-filter-bar .badge {
    font-size: 0.78rem;
    padding: 4px 8px;
    align-self: center;
}

.statistics-player-count,
.statistics-chart-buttons {
    gap: 6px;
}

.statistics-player-count span,
.statistics-chart-counter {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
}

.statistics-player-count .form-control {
    width: auto;
    min-height: 36px;
    padding: 4px 28px 4px 10px;
}

.statistics-page .leaderboard-mini-table tr.text-ranking-user-connected td,
.statistics-page .leaderboard-mini-table td.text-ranking-user-connected {
    background-color: #1a3a6b !important;
    color: #ffffff !important;
}

.statistics-page .leaderboard-mini-table tr.text-ranking-user-connected td *,
.statistics-page .leaderboard-mini-table td.text-ranking-user-connected * {
    color: #ffffff !important;
}

.square-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 54px;
    height: 54px;
    border: none;
    background-color: #e9ecef;
    color: #1a3a6b;
    font-size: 1.5rem;
    padding: 0;
    border-radius: 8px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.square-btn:hover:not(:disabled),
.square-btn:focus:hover:not(:disabled) {
    background-color: #1a3a6b !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(26,58,107,0.18) !important;
    transform: translateY(-1px);
}

.square-btn:focus,
.square-btn:active,
.square-btn:focus:active,
.btn-primary.square-btn:active,
.btn-primary.square-btn:not(:disabled):active {
    background-color: #e9ecef !important;
    color: #1a3a6b !important;
    box-shadow: none !important;
    outline: none;
    border-color: transparent !important;
}

.square-btn:disabled {
    background-color: #e9ecef;
    border-color: transparent;
    color: #bbb;
    cursor: not-allowed;
}

.square-btn i {
    margin: 0;
}

.btn-outline-secondary {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.score-page .score-btn {
    width: 48px;
    height: 52px;
    align-self: flex-start;
    border-radius: 8px;
    border: 1px solid #c8d3e1;
    background: #ffffff;
    color: #1a3a6b;
    font-size: 1.45rem;
    font-weight: 800;
    box-shadow: inset 0 -2px 0 rgba(26,58,107,0.08), 0 2px 8px rgba(15,23,42,0.06);
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.score-page .score-btn svg {
    width: 22px;
    height: 22px;
}

.score-page .score-btn:hover:not(:disabled),
.score-page .score-btn:focus:not(:disabled) {
    background: #f4f8ff;
    border-color: #1a3a6b;
    color: #1a3a6b;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(26,58,107,0.13);
}

.score-page .score-btn:disabled {
    background: #f1f3f5;
    border-color: #e1e5ea;
    color: #6b7280;
    opacity: 1;
    box-shadow: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.score-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 300px;
    overflow-y: auto;
}

.score-item {
    padding: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    width: 100%;
}

.score-item:hover {
    background-color: #f0f0f0;
}

.score-modal-open .modal-backdrop.show {
    opacity: 0.82;
}

#scoreModal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    background: #080b10;
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(0,0,0,0.72);
}

#scoreModal .modal-body {
    padding: 8px;
    background: #080b10;
}

#scoreModal .score-carousel {
    max-height: min(360px, 72vh);
}

#scoreModal .score-item {
    border-radius: 7px;
    color: #ffffff;
    font-weight: 800;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

#scoreModal .score-item:hover,
#scoreModal .score-item:focus {
    background-color: #1a3a6b;
    transform: scale(1.02);
}

.score-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 17px;
    margin: 0 3px;
    cursor: pointer;
    border: 2px solid black;
    font-size: 9px;
    font-weight: bold;
    margin-top: 5px;
}

.score-total {
    width: 60px;
    height: 27px;
    background-color: red;
    color: white;
    text-align: center;
    line-height: 26px;
    margin: 2px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}
.score-details {
    border-radius: 5px;
    transition: max-height 0.3s ease-out;
    cursor: default;
    padding: 0px 10px 10px 10px;
}

.pronostic-success{
    border-color: #1c8c48;
    color: white;
    background-color: #1c8c48;
}

.pronostic-fail{
    border-color: red;
    color: white;
    background-color: red;
}

.result-box{
    background-color: #cecece;;
    padding: 3px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.other-person-prediction-page.score-page .result-box{
    background-color: #5e2a2a;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding-right: 10px;
    outline: none;
    position: absolute;
    right: 10px; /* Align to the right */
}

.toggle-btn:focus {
    outline: none; /* Remove focus outline */
}

.score-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.score-details-table td {
    padding: 2px 0;
}

.score-details-table td .score-circle{
    margin: 0;
}
.score-value {
    font-size: 13px;
    text-align: center;
    font-weight: bold;
}

.card-match {
    user-select: none;
}

.card,
.card-match {
    background: var(--clr-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform .2s, box-shadow .2s;
}

.card:hover,
.card-match:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover) !important;
}

.score-page .card-match {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(26,58,107,0.10);
    box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

.score-page .card-match:hover {
    box-shadow: 0 12px 28px rgba(15,23,42,0.12) !important;
}

.score-page .card-match::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #10284d, #1f5f9f, #7db7e8);
}

.score-page .team-container a {
    display: block;
}

.score-page .team-container .flag-icon {
    filter: drop-shadow(0 2px 2px rgba(15,23,42,0.18));
}

.score-page .team-container p {
    margin-top: 7px;
    color: #1f2937;
}

.score-page .final-score-box {
    display: table;
    width: auto;
    min-width: 118px;
    margin: 12px auto 8px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    color: #4b5563;
    font-size: 0.78rem;
    line-height: 1.25;
}

.score-page .final-score-box b {
    display: inline-block;
    margin-top: 2px;
    color: #111827;
    font-size: 1.2rem;
}

.score-page .score-circle {
    width: 23px;
    height: 23px;
    line-height: 19px;
    border-color: transparent;
    box-shadow: 0 2px 5px rgba(15,23,42,0.16);
}

.score-page .score-total {
    margin: 2px 16px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(15,23,42,0.12);
}

.score-page .result-box {
    background-color: #c7d1dc;
    padding: 4px;
    border-radius: 8px;
    border: 0;
}

.score-page .result-box .result-box-action {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 2px;
}

.prediction-box {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
}

.prediction-header {
    font-size: 14px;
    margin-bottom: 5px;
}

.prediction-body {
    display: flex;
    align-items: center;
}

.prediction-body .flag-icon {
    margin-right: 5px;
}

.prediction-body .score-total {
    margin-left: auto;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 12px;
}

p.text-center:has(.view-predictions-link){
    margin-top: 7px;
}

.score-page .view-predictions-link {
    display: inline;
    max-width: 100%;
    color: #1a3a6b;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.score-page .view-predictions-link:hover,
.score-page .view-predictions-link:focus {
    color: #142d55;
    text-decoration: underline;
}

.other-person-prediction-page.score-page .score-card-meta .top-box,
.other-person-prediction-page.score-page .team-container p {
    color: #ffffff;
}

.other-person-prediction-page.score-page .card-match {
    background: #2d1010;
    border-color: rgba(220,80,80,0.15);
    box-shadow: 0 10px 26px rgba(0,0,0,0.34);
}

.other-person-prediction-page.score-page .round-box {
    background-color: rgba(45,16,16,0.96);
    border-bottom-color: rgba(220,80,80,0.12);
    box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}

.other-person-prediction-page.score-page #currentRound {
    background-color: #6b1a1a;
}

.other-person-prediction-page.score-page .square-btn {
    background-color: rgba(220,80,80,0.12);
    color: #ffffff;
}

.other-person-prediction-page.score-page .square-btn:disabled {
    background-color: rgba(220,80,80,0.06);
    color: rgba(255,255,255,0.35);
}

.other-person-prediction-page.score-page .square-btn:focus,
.other-person-prediction-page.score-page .square-btn:active,
.other-person-prediction-page.score-page .btn-primary.square-btn:active,
.other-person-prediction-page.score-page .btn-primary.square-btn:not(:disabled):active {
    background-color: rgba(220,80,80,0.12) !important;
    color: #ffffff !important;
}

.other-person-prediction-page.score-page .card-match:hover {
    box-shadow: 0 14px 34px rgba(0,0,0,0.42) !important;
}

.other-person-prediction-page.score-page .card-match::before {
    background: linear-gradient(90deg, #1f0808, #7a1a1a, #f4a0a0);
}

.other-person-prediction-page.score-page .card-body {
    background:
        linear-gradient(180deg, rgba(55,16,16,0.97), rgba(45,14,14,0.98)),
        #2d1010;
}

.other-person-prediction-page.score-page .score-card-meta .top-box:first-child {
    background: rgba(220,80,80,0.12);
    color: #ffd4d4;
}

.other-person-prediction-page.score-page .score-card-meta .top-box:last-child {
    color: rgba(255,200,200,0.70);
}

.other-person-prediction-page.score-page .match-local-date,
.other-person-prediction-page.score-page .view-predictions-link {
    color: #ffffff;
}

.other-person-prediction-page.score-page .match-local-date {
    background: rgba(220,80,80,0.10);
}

.other-person-prediction-page.score-page .final-score-box {
    background: rgba(220,80,80,0.10);
    border-color: rgba(220,80,80,0.15);
    color: rgba(255,200,200,0.76);
}

.other-person-prediction-page.score-page .final-score-box b {
    color: #ffffff;
}

.other-person-prediction-page.score-page .score-btn:disabled {
    background: rgba(220,80,80,0.10);
    border-color: rgba(220,80,80,0.16);
    color: #ffffff;
}

.other-person-prediction-page.score-page .result-box {
    background-color: #5e2a2a;
}

.other-person-prediction-page.score-page {
    background: #180808;
    border-radius: 0;
    box-shadow: 0 0 0 100vmax #180808;
    clip-path: inset(0 -100vmax);
}

body:has(.other-person-prediction-page.score-page) {
    background: #180808;
}

div.team-container:not(:has(span.flag-icon)){
    margin-top: 15px;
}

.card-other-person-prediction{
    padding: 7px;
    cursor: pointer;
}

.card-other-person-prediction p.name-other-person-prediction{
    font-weight: bold;
}

.card-other-person-prediction p.score-other-person-prediction{
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-other-person-prediction p.score-other-person-prediction span{
    margin-left: 10px;
    margin-right: 10px;
}

.card-other-person-prediction .score-total {
    margin: 2px 13px 2px 20px;
}

.current-user-prediction .name-other-person-prediction {
    color: #2980b9;
}

#predictionsModal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(26,58,107,0.12);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(15,23,42,0.28);
}

#predictionsModal .modal-header {
    background: linear-gradient(90deg, #10284d, #1f5f9f);
    color: #ffffff;
    border-bottom: 0;
    padding: 12px 16px;
}

#predictionsModal .modal-title {
    font-weight: 800;
}

#predictionsModal .close {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: none;
}

#predictionsModal .modal-body {
    background: #f5f7fa;
    padding: 14px 12px;
}

#predictionsModal #predictionsList {
    margin-left: -8px;
    margin-right: -8px;
}

#predictionsModal #predictionsList > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 14px;
}

#predictionsModal #predictionsList.is-loading {
    opacity: 0.82;
    pointer-events: none;
}

#predictionsModal .predictions-loading-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    color: #1a3a6b;
}

#predictionsModal .prediction-user-card {
    height: 100%;
    margin-bottom: 0 !important;
    overflow: hidden;
    border: 1px solid #e0e7f0;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.08);
}

#predictionsModal .prediction-user-card.current-user-prediction {
    border-color: #1f5f9f;
    box-shadow: 0 8px 22px rgba(31,95,159,0.16);
}

#predictionsModal .card-other-person-prediction {
    min-height: 0;
    padding: 9px 8px;
    background: #ffffff;
    color: #1f2937;
}

#predictionsModal .name-other-person-prediction {
    margin-bottom: 5px;
    color: #1a3a6b;
    font-size: 0.84rem;
    line-height: 1.2;
}

#predictionsModal .current-user-prediction .name-other-person-prediction {
    color: #1f5f9f;
}

#predictionsModal .score-other-person-prediction {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    margin-bottom: 4px;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    gap: 7px;
}

#predictionsModal .prediction-points-row {
    align-items: center;
    margin-top: 3px;
}

#predictionsModal .prediction-side {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 34px;
}

#predictionsModal .prediction-side .flag-icon {
    font-size: 1.2rem;
    margin-left: 0;
    margin-right: 0;
}

#predictionsModal .prediction-score-text {
    min-width: 36px;
    text-align: center;
}

#predictionsModal .prediction-winner-icon {
    color: #f4b400;
    font-size: 0.78rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}

#predictionsModal .score-circle {
    width: 20px;
    height: 20px;
    line-height: 16px;
    margin: 0 2px;
    border-color: transparent;
    font-size: 8px;
}

#predictionsModal .score-total {
    width: 50px;
    height: 23px;
    line-height: 22px;
    margin: 0 8px;
    font-size: 11px;
}

#predictionsModal .no-prediction-text {
    color: #667085;
    font-size: 0.86rem;
    font-weight: 600;
}

#predictionsModal .group-select-wrapper .custom-select-trigger {
    min-height: 42px;
    border-color: #c8d3e1;
    border-radius: 8px;
    background: #ffffff;
    font-weight: 700;
}

#predictionsModal .group-select-wrapper .custom-select-trigger .flag-icon {
    flex: 0 0 auto;
}

#predictionsModal .group-select-wrapper .custom-select-trigger .selected-text {
    min-width: 0;
    overflow: hidden;
    color: #1f2937;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 57, 72, 0.8);
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 18px;
    z-index: 9999;
}

.user-banner button {
    margin-top: 5px;
    padding: 10px 20px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.user-banner button:hover {
    background-color: #0056b3;
}

.user-banner-space{
    height: 130px;
}

@media (max-width: 992px) {
    .score-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .statistics-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .statistics-page #statsTabs {
        margin-left: -2px;
        margin-right: -2px;
    }

    .score-page .card-body {
        padding: 14px 12px;
    }

    .round-box {
        margin-left: -10px;
        margin-right: -10px;
    }

    .user-banner {
        padding: 7px;
    }

    .user-banner p{
        margin-bottom: 8px;
    }

    .user-banner button {
        margin-top: 0px;
    }

    .user-banner-space{
        height: 90px;
    }
}

@media (max-width: 420px) {
    .score-page {
        padding-left: 7px;
        padding-right: 7px;
    }

    #roundTabsContent {
        margin: 0;
    }

    .round-box {
        top: 55px;
        margin-left: -7px;
        margin-right: -7px;
        padding: 8px 5px;
        gap: 5px;
    }

    #currentRound {
        width: calc(100vw - 126px);
        min-height: 50px;
        padding: 8px;
        font-size: 0.92rem;
    }

    .square-btn {
        width: 46px;
        height: 50px;
        font-size: 1.2rem;
    }

    .score-card-meta {
        gap: 6px;
    }

    .score-card-meta .top-box:last-child {
        font-size: 10px;
    }

    .score-page .match-local-date {
        margin-bottom: 12px;
        font-size: 0.7rem;
    }

    .score-page .match-scoreline {
        gap: 4px;
    }

    .score-page .card-body div.team-container {
        width: clamp(68px, 24vw, 88px);
    }

    .score-page .card-body div.team-container p {
        font-size: 11px;
    }

    .score-page .score-btn {
        width: 42px;
        height: 48px;
        font-size: 1.3rem;
        padding: 0;
    }

    .score-page .score-btn svg {
        width: 20px;
        height: 20px;
    }

    .score-page .score-total {
        width: 54px;
        margin: 2px 12px;
        font-size: 12px;
    }

    .statistics-page {
        padding-left: 7px;
        padding-right: 7px;
    }

    .statistics-page #statsTabs {
        top: 55px;
        margin-left: -2px;
        margin-right: -2px;
        padding: 3px;
    }

    .statistics-page #statsTabs .nav-link {
        padding: 8px 4px;
        font-size: 0.86rem;
    }

    .statistics-page .row > [class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
    }

    .statistics-page .card-header {
        padding: 10px 11px 8px;
    }

    .statistics-page .card-header h4 {
        font-size: 0.94rem;
    }

    .statistics-page .card-body {
        padding: 8px !important;
    }

    .statistics-page .leaderboard-mini-table td {
        padding: 5px 6px;
        font-size: 0.76rem;
    }

    .statistics-page .statistics-chart-controls {
        gap: 6px;
    }

    .statistics-chart-section {
        margin-left: -4px;
        margin-right: -4px;
    }

    .statistics-chart-header {
        padding: 10px 11px 8px;
    }

    .statistics-chart-header h4 {
        font-size: 0.94rem;
    }

    .statistics-page .chart-ctrl-btn {
        width: 40px;
        height: 40px;
    }
}

.leaderboard-table table{
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.leaderboard-table table tbody tr{
    font-size: 14px;
}

.leaderboard-page {
    max-width: 920px;
}

.leaderboard-group-select {
    margin-bottom: 1rem;
}

.leaderboard-page .group-select-wrapper .custom-select-trigger {
    min-height: 46px;
    border-color: #c8d3e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(15,23,42,0.07);
    font-weight: 800;
}

.leaderboard-page .leaderboard-table {
    border-radius: 8px;
}

.leaderboard-page .table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.leaderboard-page .table thead th {
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    vertical-align: middle;
}

.leaderboard-page .table thead tr {
    background: linear-gradient(90deg, #10284d, #1f5f9f);
}

.leaderboard-page .table tbody td {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid #e8edf3;
    vertical-align: middle;
}

.leaderboard-page .table-striped tbody tr:nth-of-type(odd) {
    background-color: #fbfcfe;
}

.leaderboard-page .table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff;
}

.leaderboard-page .clickable-row {
    transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.leaderboard-page .clickable-row:hover {
    background-color: #eef4ff !important;
}

.leaderboard-page .ranking-cell {
    width: 68px;
    padding: 0.5rem 0.7rem;
    color: #1a3a6b;
    font-weight: 800;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.leaderboard-page .leaderboard-name-cell {
    font-weight: 800;
    color: #1f2937;
    min-width: 0;
    max-width: 1px;
    white-space: nowrap;
}

.leaderboard-page .leaderboard-name-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.leaderboard-page .leaderboard-name-cell .flag-icon {
    flex: 0 0 auto;
    font-size: 1.25rem;
    margin-left: 0;
    margin-right: 0;
    vertical-align: -0.12em;
    filter: drop-shadow(0 1px 1px rgba(15,23,42,0.14));
}

.leaderboard-name-mobile {
    display: none;
}

.leaderboard-name-full,
.leaderboard-name-mobile {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.leaderboard-name-full {
    display: inline-block;
    max-width: calc(100% - 30px);
}

.leaderboard-page .leaderboard-points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 28px;
    border-radius: 8px;
    background: #1a3a6b;
    color: #ffffff;
    font-size: 0.92rem;
    box-shadow: 0 4px 12px rgba(26,58,107,0.16);
}

.leaderboard-page .text-ranking-user-connected .leaderboard-points {
    background: rgba(255,255,255,0.16);
    box-shadow: none;
}

.leaderboard-page .trend-column {
    min-width: 128px;
}

.leaderboard-table table .text-ranking-user-connected{
    color: white !important;
    font-weight: bold;
    background-color: #1a3a6b !important;
}
.leaderboard-mini-table .text-ranking-user-connected{
    color: white;
    font-weight: bold;
    background-color: #004a99;
}

.leaderboard-table table th{
    padding-bottom: 5px;
    padding-top: 5px;
}

.leaderboard-table .new-in-ranking{
    background-color: #007bff;
    color: white;
    padding: 3px 5px 4px 5px;
    border-radius: 5px;
    font-size: 10.5px;
}
.trend-circle {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ddd;
    text-align: center;
    line-height: 20px;
    font-size: 11px;
    margin: 0 1px;
    color: #ffffff;
    font-weight: 800 !important;
    box-shadow: 0 2px 5px rgba(15,23,42,0.14);
}

.score-total-0 {
    background-color: #e53935;
    color: white;
}

.score-total-1 {
    background-color: #e8881a;
    color: white;
}

.score-total-2 {
    background-color: #9b27c0;
    color: white;
}

.score-total-3 {
    background-color: #1a78c8;
    color: white;
}

.score-total-5 {
    background-color: #1c8c48;
    color: white;
}

.medal {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 17px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    border: 1px solid #717171;
}
.medal.gold {
    background-color: #ffd700; /* Or */
}
.medal.silver {
    background-color: #c0c0c0; /* Argent */
}
.medal.bronze {
    background-color: #cd7f32; /* Bronze */
}

.ranking-table .medal{
    margin-left: -2px;
    color: #000;
    border: none;
    line-height: 19px;
}

.medal-emoji {
    font-size: 1.3rem;
    line-height: 1;
    display: inline-block;
}

@media (max-width: 576px) {
    .leaderboard-page {
        padding-left: 7px;
        padding-right: 7px;
    }

    .leaderboard-page .leaderboard-table {
        margin-left: -2px;
        margin-right: -2px;
    }

    .leaderboard-page .table thead th {
        padding: 7px 6px;
        font-size: 0.68rem;
    }

    .leaderboard-page .table tbody td {
        padding: 6px 6px;
        font-size: 0.82rem;
    }

    .leaderboard-page .ranking-cell {
        width: 52px;
        padding-left: 7px;
        padding-right: 4px;
    }

    .leaderboard-page .leaderboard-name-cell {
        font-size: 0.82rem;
        line-height: 1.15;
    }

    .leaderboard-name-full {
        display: inline-block;
        max-width: calc(100% - 24px);
    }

    .leaderboard-name-mobile {
        display: none;
    }

    .leaderboard-page .leaderboard-name-cell .flag-icon {
        font-size: 1.05rem;
        margin-right: 4px;
    }

    .leaderboard-page .leaderboard-points {
        min-width: 48px;
        height: 28px;
        border-radius: 7px;
        font-size: 0.82rem;
    }

    .leaderboard-table .new-in-ranking {
        display: block;
        width: fit-content;
        margin-top: 2px;
        padding: 2px 4px 3px;
        font-size: 9px;
    }

    .ranking-table .medal {
        width: 20px;
        height: 20px;
        line-height: 19px;
        margin-left: 0;
        margin-bottom: 1px;
    }
}

/* Pour centrer les drapeaux et les médailles */
.medal-element {
    margin: 0 3px;
    border-radius: 7px;
    padding: 5px 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.medal-element-bronze {
    background-color: #cd7f32;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.medal-element-gold{
    margin-left: 0px;
    background: #ffd700;
}

.medal-element-silver{
    background: #c0c0c0;
}

/* Empêche les drapeaux de se mettre sous forme de colonne sur petit écran */
.flag-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Garde les drapeaux sur une ligne */
}

.flag-icon {
    margin-left: 5px;
    margin-right: 5px;
}

.flag-group span:nth-child(1) {
    margin-left: 5px;
}
.flag-group span:nth-child(3) {
    margin-right: 5px;
}

@media (max-width: 550px) {
    .medal-element{
        margin: 0 1px;
    }
}

.team-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 300px;
    overflow-y: auto;
}

.team-item {
    padding: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    width: 100%;
}

.team-item:hover {
    background-color: #f0f0f0;
}

.scores-global-page .score-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 6px;
    -webkit-overflow-scrolling: touch; /* 👈 pour iOS */
}
.scores-global-page .score-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: max-content; /* 👈 ESSENTIEL pour que ça scroll sur iPhone 15 */
}
.scores-global-page .score-table th,
.scores-global-page .score-table td { font-size:0.74rem; padding:2px 4px; white-space:normal; border: 1px solid #dee2e6; }
.scores-global-page .sticky-col   { position:sticky; z-index:3; background:#fff; white-space:nowrap; }
.scores-global-page .match-col { left:0; min-width: 130px; max-width: 130px; }
.scores-global-page .score-col { left:130px; min-width: 55px; max-width: 65px; }
.scores-global-page .team-display { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.scores-global-page .team-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100px; }
.scores-global-page .points-text { font-size:0.65rem; color: white; display: block; }
.scores-global-page .table-header th { background: #004080 !important; color: white; height: 40px}
.scores-global-page .flag-icon { font-size: 14px; }

.scores-global-page .sticky-col {
    position: sticky;
    background: #fff;
    white-space: nowrap;
}

/* Match column : 1ère à gauche */
.scores-global-page .match-col {
    left: 0;
    z-index: 4;
    min-width: 150px;
}

/* Score column : 2e à gauche */
.scores-global-page .score-col {
    left: 150px; /* doit correspondre à la largeur de match-col */
    z-index: 3;
    min-width: 65px;
}
@media(max-width: 768px) {
    .scores-global-page .score-table th,
    .scores-global-page .score-table td { font-size: 0.65rem; padding: 1px 2px; }
    .scores-global-page .container-fluid { padding-left: 0.2rem; padding-right: 0.2rem; }
    .scores-global-page .team-cell { width: 80px; }
    .scores-global-page .match-col { min-width: 110px; max-width: 110px; }
    .scores-global-page .score-col { left: 110px; min-width: 35px; max-width: 55px; }
}
@media (min-width: 1000px) {
    .scores-global-page .match-col {
        min-width: 200px;
    }
    .scores-global-page .score-col {
        left: 200px; /* doit correspondre à la largeur de match-col */
        z-index: 3;
        min-width: 65px;
    }
}

.button-home a{
    height: 80px;
    font-size: 22px;
}
@media(max-width: 768px) {
    .button-home a{
        height: 50px;
        font-size: 18px;
    }

    .home-page-actions a.btn {
        height: 56px;
    }
}

.button-home a i{
    margin-right: 10px;
}

.home-page,
.home-page-actions {
    max-width: 1180px;
}

.home-page-actions .row,
.home-page .row {
    margin-left: -8px;
    margin-right: -8px;
}

.home-page-actions .row > [class*="col-"],
.home-page .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.home-page-actions a.btn {
    height: 72px;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(15,23,42,0.09);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.home-page-actions a.btn-primary {
    background: #1a3a6b;
    border: 2px solid #1a3a6b;
    color: #ffffff;
}

.home-page-actions a.btn-secondary {
    background: #23262B;
}

.home-page-actions a.btn-primary:hover,
.home-page-actions a.btn-primary:focus {
    background: #10284d;
    border-color: #10284d;
    color: #ffffff;
}

.home-page-actions a.btn:hover,
.home-page-actions a.btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15,23,42,0.14);
}

.home-page .card,
.home-page .card-match,
.home-page .card-home-next-match {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(26,58,107,0.10);
    box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

.home-page .card-header {
    border: 0;
    background: linear-gradient(90deg, #10284d, #1f5f9f);
    padding: 13px 16px 11px;
}

.home-page .card-header h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.home-page .card-body {
    background: #ffffff;
}

.home-page .group-select-wrapper .custom-select-trigger {
    min-height: 40px;
    border-color: #c8d3e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.home-page .home-match-table {
    margin-bottom: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

.home-page .home-match-table tr {
    background: #ffffff;
}

.home-page .home-match-table tr:nth-child(odd) {
    background: #fbfcfe;
}

.home-page .home-match-table td,
.home-page .home-match-table th {
    border-top: 1px solid #e8edf3;
    vertical-align: middle;
}

.home-page .home-match-table tr:first-child td {
    border-top: 0;
}

.home-page .leaderboard-mini-table tr.text-ranking-user-connected td,
.home-page .leaderboard-mini-table td.text-ranking-user-connected {
    background-color: #1a3a6b !important;
    color: #ffffff !important;
}

.home-page .leaderboard-mini-table tr.text-ranking-user-connected td *,
.home-page .leaderboard-mini-table td.text-ranking-user-connected * {
    color: #ffffff !important;
}

.home-page .leaderboard-mini-table td:last-child {
    white-space: nowrap;
}

.home-page .leaderboard-mini-table td:first-child {
    width: 44px;
    text-align: center;
    color: #1a3a6b;
    font-weight: 800;
}

.home-page .home-leaderboard-name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    max-width: 170px;
    min-width: 0;
    font-weight: 800;
    color: #1f2937;
}

.home-page .home-leaderboard-name .flag-icon {
    flex: 0 0 auto;
    margin: 0;
}

.home-page .home-leaderboard-name span:last-child {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-page .home-leaderboard-points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: #1a3a6b;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(26,58,107,0.16);
}

.home-page .leaderboard-mini-table tr.text-ranking-user-connected .home-leaderboard-points {
    background: rgba(255,255,255,0.16);
    box-shadow: none;
}

.home-page .home-ranking-sep-row td {
    padding: 5px 8px !important;
    background: #ffffff !important;
    border-top: 0 !important;
}

.home-page .home-ranking-sep-row td::before {
    content: "";
    display: block;
    border-top: 2px dashed #d6dee8;
}

.home-card-footer-link {
    padding: 9px 4px 3px;
    text-align: center;
}

.home-card-footer-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 4px 12px;
    color: #1a3a6b;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-card-footer-link a:hover,
.home-card-footer-link a:focus {
    color: #10284d;
}

.home-page .home-match-table .match-date {
    display: inline-block;
    max-width: 100%;
    margin: 0 auto 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1a3a6b;
    font-size: 0.68rem;
    font-weight: 800;
}

.home-page .home-match-table .match-teams {
    color: #1f2937;
    font-weight: 800;
    line-height: 1.2;
}

.home-page .home-match-table .flag-icon {
    filter: drop-shadow(0 1px 1px rgba(15,23,42,0.14));
}

.home-page .home-match-table .score-total {
    border-radius: 7px;
    box-shadow: 0 3px 8px rgba(15,23,42,0.12);
}

.home-page .home-match-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #d97706;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
}

.information-page {
    max-width: 1180px;
}

.information-page .guide-row {
    padding: 10px;
}

.information-page .card {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(26,58,107,0.10);
    box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

.information-page .card-header {
    border: 0;
    background: linear-gradient(90deg, #10284d, #1f5f9f) !important;
    padding: 14px 16px 12px;
}

.information-page .card-header h2 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.information-page .card-body {
    background: #ffffff;
}

.information-page .card-body h4 {
    margin-top: 18px;
    margin-bottom: 8px;
    color: #1a3a6b !important;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.information-page .card-body h4:first-child {
    margin-top: 0;
}

.information-page .card-body p,
.information-page .card-body li,
.information-page .card-body td {
    color: #1f2937;
    line-height: 1.48;
}

.information-page .card-body strong {
    color: #10284d;
}

.information-page .table-points {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e8edf3;
    border-collapse: separate !important;
    border-spacing: 0;
}

.information-page .table-points tr:nth-child(odd) {
    background: #fbfcfe;
}

.information-page .table-points tr:nth-child(even) {
    background: #ffffff;
}

.information-page .table-points td {
    border-top: 1px solid #e8edf3;
}

.information-page .table-points tr:first-child td {
    border-top: 0;
}

.information-page .table-points td:first-child {
    width: 52px;
    text-align: center;
}

.information-page .score-circle {
    border: 0;
    background: #1a3a6b;
    box-shadow: 0 2px 6px rgba(15,23,42,0.16);
    font-weight: 800;
}

.information-page .pronostic-success {
    background-color: #2f9e44;
}

@media (max-width: 576px) {
    .information-page {
        padding-left: 7px;
        padding-right: 7px;
    }

    .information-page .guide-row {
        padding: 0 !important;
    }

    .information-page .card-header {
        padding: 11px 12px 10px;
    }

    .information-page .card-header h2 {
        font-size: 1.05rem;
    }

    .information-page .card-body {
        padding: 14px !important;
    }

    .information-page .card-body h4 {
        font-size: 0.95rem;
    }

    .information-page .table-points td {
        padding: 8px 6px;
    }
}

.home-match-table td, .home-match-table th{
    padding:2px 4px;
    font-size:0.8rem;
    white-space:nowrap;
}
.home-match-table .score-total{
    display:inline-block;
    min-width:22px;
    border-radius:4px;
    font-size:0.75rem;
    line-height:1.2;
    padding:2px 4px;
}
.home-match-table .match-date{
    font-size:0.7rem;
    text-align:center;
}
.card-home-next-match .home-match-table .match-date{
    font-size:11px;
    margin-top: 5px;
}
.home-match-table .match-teams{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:2px;
}
.home-match-table .home-matchup{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);
    align-items:center;
    gap:6px;
    width:100%;
    white-space:normal;
}
.home-match-table .home-matchup-team{
    display:flex;
    align-items:center;
    min-width:0;
    gap:4px;
    overflow:hidden;
}
.home-match-table .home-matchup-team-left{
    justify-content:flex-start;
}
.home-match-table .home-matchup-team-right{
    justify-content:flex-end;
    text-align:right;
}
.home-match-table .home-matchup .team-name{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.home-match-table .home-matchup-score,
.home-match-table .home-matchup-separator{
    min-width:34px;
    text-align:center;
    color:#1a3a6b;
    font-weight:800;
}
.home-match-table .home-matchup-separator{
    font-size:0.7rem;
    text-transform:uppercase;
    color:#6b7280;
}
.home-match-table .match-teams .flag-icon{
    font-size:1rem;
    margin:0 2px;
}
.home-match-table .team-name{
    font-size:0.75rem;
}
.card-home-next-match .home-match-table .team-name{
    font-size:15px;
    margin-bottom: 2px;
}
.card-home-previous-match .home-match-table .score-total{
    margin:5px 0;
    height: 36px;
    width: 50px;
}
.leaderboard-mini-table .flag-icon{
    font-size:1rem;
}
.leaderboard-mini-table td{
    padding:2px 4px;
    font-size:0.8rem;}

#progressChart, #groupProgressChart {
    height:400px;
}

@media (max-width: 576px){
    #progressChart, #groupProgressChart {height:300px;}
}

@media (max-width: 576px){
    .home-page,
    .home-page-actions {
        padding-left: 7px;
        padding-right: 7px;
    }

    .home-page-actions .row,
    .home-page .row {
        margin-left: -6px;
        margin-right: -6px;
    }

    .home-page-actions .row > [class*="col-"],
    .home-page .row > [class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
    }

    .home-page .card-header {
        padding: 10px 11px 8px;
    }

    .home-page .card-header h4 {
        font-size: 0.94rem;
    }

    .home-page .card-body {
        padding: 8px !important;
    }

    .home-page .home-match-table td,
    .home-page .home-match-table th {
        padding: 5px 6px;
        font-size: 0.76rem;
    }

    .home-page .card-home-next-match .home-match-table .team-name {
        font-size: 0.86rem;
    }

    .home-page .home-match-table .home-matchup {
        gap: 4px;
    }

    .home-page .home-match-table .home-matchup-score,
    .home-page .home-match-table .home-matchup-separator {
        min-width: 30px;
    }

    .home-page .home-leaderboard-name {
        max-width: 145px;
    }
}

.chart-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #e9ecef;
    color: #1a3a6b;
    border: none;
    border-radius: 9px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.chart-ctrl-btn:hover:not(:disabled) {
    background-color: rgba(26,58,107,0.15);
}
.chart-ctrl-btn:disabled {
    color: #bbb;
    cursor: not-allowed;
}
.chart-ctrl-active {
    background-color: #1a3a6b;
    color: #fff;
}
.chart-ctrl-active:hover:not(:disabled) {
    background-color: #142d55 !important;
    color: #fff;
}

.profile-table td{
    font-size:0.9rem;
}

@media (max-width: 576px){
    .profile-table td{font-size:0.75rem;}
}

.profile-page {
    max-width: 760px;
}

.profile-page .profile-card {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(26,58,107,0.10);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

.profile-page .profile-header {
    margin-bottom: 0 !important;
    padding: 14px 16px 12px;
    background: linear-gradient(90deg, #10284d, #1f5f9f);
}

.profile-page .profile-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.profile-page .profile-edit-btn {
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    font-weight: 800;
    box-shadow: none;
}

.profile-page .profile-edit-btn:hover,
.profile-page .profile-edit-btn:focus {
    background: rgba(255,255,255,0.22);
    color: #ffffff;
}

.profile-page .profile-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.profile-page .profile-table tr:nth-child(odd) {
    background: #fbfcfe;
}

.profile-page .profile-table tr:nth-child(even) {
    background: #ffffff;
}

.profile-page .profile-table td {
    padding: 12px 14px;
    border-top: 1px solid #e8edf3;
    vertical-align: middle;
    color: #1f2937;
}

.profile-page .profile-table tr:first-child td {
    border-top: 0;
}

.profile-page .profile-table td:first-child {
    width: 34%;
    color: #1a3a6b;
    font-weight: 800;
}

.profile-page .profile-table .flag-icon {
    font-size: 1.2rem;
    margin-left: 0;
    filter: drop-shadow(0 1px 1px rgba(15,23,42,0.14));
}

.profile-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(26,58,107,0.12);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(15,23,42,0.28);
}

.profile-modal .modal-header {
    border-bottom: 0;
    background: linear-gradient(90deg, #10284d, #1f5f9f);
    color: #ffffff;
}

.profile-modal .modal-title {
    font-weight: 800;
}

.profile-modal .close {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: none;
}

.profile-modal .modal-body {
    background: #f8fafc;
}

.profile-modal .form-group label {
    color: #1a3a6b;
    font-weight: 800;
}

.profile-modal .form-control,
.profile-modal .custom-select-trigger {
    min-height: 42px;
    border-color: #c8d3e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.profile-modal .modal-footer {
    border-top: 1px solid #e8edf3;
    background: #ffffff;
    padding: 10px 12px;
}

.profile-modal .modal-footer .btn {
    border-radius: 8px;
    font-weight: 800;
    pointer-events: auto;
    transform: none;
}

@media (max-width: 576px){
    .profile-page {
        padding-left: 7px;
        padding-right: 7px;
    }

    .profile-page .profile-header {
        padding: 11px 12px 10px;
        gap: 10px;
    }

    .profile-page .profile-header h3 {
        font-size: 1.05rem;
    }

    .profile-page .profile-edit-btn {
        padding: 6px 9px;
        font-size: 0.86rem;
    }

    .profile-page .profile-table td {
        padding: 10px 9px;
        font-size: 0.82rem;
    }

    .profile-page .profile-table td:first-child {
        width: 38%;
    }
}

.change-password-page {
    max-width: 760px;
}

.change-password-titlebar {
    margin-bottom: 14px;
    padding: 14px 16px 12px;
    background: linear-gradient(90deg, #10284d, #1f5f9f);
    border-radius: 5px;
}

.change-password-titlebar h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
}

.change-password-page .change-password-card {
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    box-shadow: none;
    padding: 20px;
}

.change-password-page .change-password-form {
    max-width: 520px;
}

.change-password-page .form-group {
    margin-bottom: 14px;
}

.change-password-page label {
    color: #1a3a6b;
    font-weight: 800;
    font-size: 0.92rem;
}

.change-password-page .form-control {
    min-height: 42px;
    border-color: #c8d3e1;
    border-radius: 5px;
    color: #1d2939;
    background: #ffffff;
    font-weight: 700;
    box-shadow: none;
}

.change-password-page .form-control:focus {
    border-color: #1f5f9f;
    box-shadow: 0 0 0 3px rgba(31,95,159,0.14);
}

.change-password-page .form-text {
    color: #667085 !important;
    font-size: 0.82rem;
    line-height: 1.35;
    margin-top: 7px;
}

.change-password-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.change-password-actions .btn {
    border: 0;
    border-radius: 5px;
    background: #1f5f9f;
    font-weight: 800;
    padding: 9px 15px;
    box-shadow: none;
}

.change-password-actions .btn:hover,
.change-password-actions .btn:focus {
    background: #1a3a6b;
}

@media (max-width: 576px) {
    .change-password-page .change-password-form {
        max-width: none;
    }

    .change-password-actions .btn {
        width: 100%;
    }
}

/* Custom group select */
.group-select-wrapper {
    max-width: 500px;
    width: 100%;
}
.group-select-wrapper .custom-select-container {
    position: relative;
    width: 100%;
}
.group-select-wrapper .custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ced4da;
    transition: border-color 0.2s;
}
.group-select-wrapper .custom-select-trigger:hover {
    border-color: #aaa;
}
.group-select-wrapper .custom-select-trigger .flag-icon {
    font-size: 1.2em;
    margin-right: 0;
}
.group-select-wrapper .custom-select-trigger .selected-text {
    flex: 1;
    color: #333;
}
.group-select-wrapper .custom-select-trigger i.fa-chevron-down {
    color: #666;
    transition: transform 0.2s;
}
.group-select-wrapper .custom-select-container.open .custom-select-trigger i.fa-chevron-down {
    transform: rotate(180deg);
}
.group-select-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.group-select-overlay.open {
    display: flex;
}
.group-select-overlay .custom-options {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.group-select-overlay .custom-options-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.group-select-overlay .custom-options-header span {
    color: #333;
    font-weight: 600;
    font-size: 1.1em;
}
.group-select-overlay .custom-options-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.group-select-overlay .custom-options-close:hover {
    color: #333;
}
.group-select-overlay .custom-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #333;
    border-bottom: 1px solid #eee;
}
.group-select-overlay .custom-option:last-child {
    border-bottom: none;
}
.group-select-overlay .custom-option:hover,
.group-select-overlay .custom-option:active {
    background-color: #f5f5f5;
}
.group-select-overlay .custom-option.selected {
    background-color: #e8f4fc;
}
.group-select-overlay .custom-option .flag-icon {
    font-size: 1.4em;
    margin-right: 0;
}
.group-select-overlay .custom-option span:last-child {
    font-size: 1.05em;
}

/* ===================================================
   DARK MODE — PAGES UTILISATEUR
   Les pages "other-person" utilisent leur propre thème
   rouge indépendamment du dark mode.
   =================================================== */

/* Fond page et cartes */
body.dark-mode .card {
    background-color: #1a1e26;
    border-color: rgba(255,255,255,0.09);
}
body.dark-mode .card-body {
    background: linear-gradient(180deg, rgba(36,40,54,0.97), rgba(26,30,38,0.98)), #1a1e26;
    color: #d8dce8;
}

/* Global : texte des tables en dark mode */
body.dark-mode .table td,
body.dark-mode .table th,
body.dark-mode .table tbody tr td,
body.dark-mode .table thead tr th {
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .table tbody tr {
    border-color: rgba(255,255,255,0.08) !important;
}
/* Global : labels, paragraphes, listes dans cartes sombres */
body.dark-mode .card-body p,
body.dark-mode .card-body li,
body.dark-mode .card-body label,
body.dark-mode .card-body span:not(.badge):not(.btn) {
    color: inherit;
}
/* Global : liens dans cartes sombres */
body.dark-mode .card-body a:not(.btn) {
    color: #7eb3ff;
}

/* Score page */
body.dark-mode .score-page .card-body {
    background: linear-gradient(180deg, rgba(36,40,54,0.97), rgba(26,30,38,0.98)), #1a1e26;
    color: #d8dce8;
}
body.dark-mode .round-box {
    background-color: rgba(26,30,38,0.96);
    border-bottom-color: rgba(255,255,255,0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}
body.dark-mode .score-page .card-match {
    background: #1a1e26;
    border-color: rgba(255,255,255,0.10);
}
body.dark-mode .score-page .card-match:hover {
    box-shadow: 0 14px 34px rgba(0,0,0,0.35) !important;
}
body.dark-mode .score-page .card-match::before {
    background: linear-gradient(90deg, #0d1b2f, #1f5f9f, #8fc7f0);
}
body.dark-mode .score-page .card-body {
    background: linear-gradient(180deg, rgba(36,40,54,0.97), rgba(26,30,38,0.98)), #1a1e26;
}
body.dark-mode .score-card-meta .top-box {
    color: #d8dce8;
}
body.dark-mode .score-card-meta .top-box:first-child {
    background: rgba(255,255,255,0.10);
    color: #eaf3ff;
}
body.dark-mode .score-card-meta .top-box:last-child {
    color: rgba(255,255,255,0.65);
}
body.dark-mode .score-page .team-container p {
    color: #d8dce8;
}
body.dark-mode .match-local-date {
    background: rgba(255,255,255,0.10);
    color: #d8dce8;
}
body.dark-mode .view-predictions-link {
    color: #8fc7f0;
}
body.dark-mode .final-score-box {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
}
body.dark-mode .final-score-box b {
    color: #ffffff;
}
body.dark-mode .result-box {
    background-color: #464F5E;
}
body.dark-mode .score-details {
    background: transparent;
}
body.dark-mode .score-details-table tr,
body.dark-mode .score-details-table tr:nth-of-type(odd) {
    background-color: transparent !important;
}
body.dark-mode .score-details-table td {
    color: #d8dce8;
    border-color: transparent;
}
body.dark-mode .score-value {
    color: #d8dce8;
}
body.dark-mode .toggle-btn {
    color: #d8dce8;
}
body.dark-mode .score-btn {
    background-color: #242836 !important;
    border-color: #4a5568 !important;
    color: #e0e0e0 !important;
}
body.dark-mode .score-btn:disabled {
    background: rgba(255,255,255,0.10) !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
}
body.dark-mode .square-btn {
    background-color: rgba(255,255,255,0.08);
    color: #ffffff;
}
body.dark-mode .square-btn:disabled {
    background-color: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.35);
}
body.dark-mode .square-btn:focus,
body.dark-mode .square-btn:active,
body.dark-mode .btn-primary.square-btn:active,
body.dark-mode .btn-primary.square-btn:not(:disabled):active {
    background-color: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
}
body.dark-mode input[type="number"] {
    background-color: #242836;
    color: #d8dce8;
    border-color: rgba(255,255,255,0.15);
}

/* Round selector */
body.dark-mode #statsTabs {
    background: rgba(30,35,50,0.96);
}
body.dark-mode #statsTabs .nav-link {
    color: rgba(200,210,230,0.7);
}
body.dark-mode #statsTabs .nav-link:hover:not(.active) {
    background: rgba(255,255,255,0.06);
    color: #d8dce8;
}
body.dark-mode #statsTabs .nav-link.active {
    background: #1f5f9f;
    color: #fff;
}

/* Statistiques page */
body.dark-mode .statistics-page .group-select-wrapper .custom-select-trigger,
body.dark-mode .statistics-page .form-control {
    background: #242836;
    color: #d8dce8;
    border-color: rgba(255,255,255,0.12);
}
body.dark-mode .statistics-page .card-match {
    background: #1a1e26;
    border-color: rgba(255,255,255,0.10);
}
body.dark-mode .statistics-page .ranking-wrapper {
    border-color: rgba(255,255,255,0.08);
}
body.dark-mode .statistics-page .leaderboard-mini-table tr {
    background: #1a1e26;
}
body.dark-mode .statistics-page .leaderboard-mini-table tr:nth-child(odd) {
    background: #1e2330;
}

/* Leaderboard */
body.dark-mode .score-page .round-box {
    background-color: rgba(26,30,38,0.96);
}

/* Bannière "vue de quelqu'un d'autre" */
body.dark-mode .user-banner {
    background: #1a1e26;
    color: #d8dce8;
    border-top-color: rgba(255,255,255,0.10);
}

/* Bloc de sélection de groupe custom-select */
body.dark-mode .custom-select-trigger {
    background: #242836;
    color: #d8dce8;
    border-color: rgba(255,255,255,0.12);
}
body.dark-mode .custom-select-trigger .selected-text {
    color: #d8dce8;
}
body.dark-mode .custom-options {
    background: #1e2330;
}
body.dark-mode .custom-option {
    color: #d8dce8;
    border-bottom-color: rgba(255,255,255,0.07);
}
body.dark-mode .custom-option:hover,
body.dark-mode .custom-option.selected {
    background: rgba(31,95,159,0.25);
}
body.dark-mode .custom-options-header {
    background: #1e2330;
    border-bottom-color: rgba(255,255,255,0.08);
}
body.dark-mode .custom-options-header span {
    color: #d8dce8;
}
body.dark-mode .custom-options-close {
    color: rgba(200,210,230,0.7);
}
body.dark-mode .custom-options-search {
    background: #242836;
    color: #d8dce8;
    border-color: rgba(255,255,255,0.15);
}

/* Bracket phase finale — éléments light que l'on adapte */
body.dark-mode .bkp-nav-bar {
    background: #1a1e26;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
body.dark-mode .bkp-nav-btn {
    background: #242836;
    border-color: rgba(255,255,255,0.12);
    color: #d8dce8;
}
body.dark-mode .bkp-nav-btn:hover:not(:disabled) {
    background: #2a3040;
    color: #7ec8f0;
    border-color: rgba(126,200,240,0.4);
}
body.dark-mode .bkp-nav-dot {
    background: #242836;
    color: rgba(200,210,230,0.6);
}
body.dark-mode .bkp-nav-dot.active {
    background: #1a3a6b;
    color: #fff;
}
body.dark-mode .bkp-wrapper {
    background: #131720;
}
body.dark-mode .bkp-card {
    background: #1a1e26;
}
body.dark-mode .bkp-match {
    background: #1e2330;
    border-color: rgba(255,255,255,0.10);
}
body.dark-mode .bkp-match.pending {
    border-color: rgba(245,158,11,0.4);
}
body.dark-mode .bkp-match.locked {
    background: #191d28;
    opacity: 0.8;
}
body.dark-mode .bkp-match-header {
    background: rgba(255,255,255,0.03);
}
body.dark-mode .bkp-match-num,
body.dark-mode .bkp-match-date {
    color: rgba(180,190,210,0.55);
}
body.dark-mode .bkp-pick-row,
body.dark-mode .bkp-pick-row:disabled {
    background: #242836;
    color: #d8dce8;
    opacity: 1;
}
body.dark-mode .bkp-pick-row:not(:disabled):hover,
body.dark-mode .bkp-pick-row:not(:disabled):focus-visible {
    background: #2a3040;
    box-shadow: inset 3px 0 0 #60a5fa;
}
body.dark-mode .bkp-pick-row.selected {
    background: #1f5f9f;
    color: #fff;
}
body.dark-mode .bkp-pick-row.invalid {
    background: #1a1e26;
    color: rgba(200,210,230,0.4);
}
body.dark-mode .bkp-pick-row.invalid:disabled {
    background: #1a1e26;
    color: rgba(200,210,230,0.4);
}
body.dark-mode .bkp-vs,
body.dark-mode .bkp-vs span {
    background: #242836;
    color: rgba(200,210,230,0.45);
}
body.dark-mode .bkp-vs::before,
body.dark-mode .bkp-vs::after {
    background: rgba(255,255,255,0.08);
}
body.dark-mode .bkp-empty {
    background: #1e2330;
    border-color: rgba(255,255,255,0.10);
}
body.dark-mode .bkp-card-badge {
    background: #0d1b2f;
    color: #fff;
}
body.dark-mode .bkp-match-final .bkp-card-badge {
    background: #1a3a6b;
    color: #fff;
}
body.dark-mode .bkp-match-third .bkp-card-badge {
    background: #fd7e14;
    color: #fff;
}
body.dark-mode .bkp-match-third {
    background: #1e2330;
    border-color: rgba(255,255,255,0.10);
}
body.dark-mode .bkp-readonly-banner {
    background: #1e2330;
    border-color: rgba(255,255,255,0.10);
    color: #d8dce8;
}
body.dark-mode .bkp-readonly-banner strong {
    color: #7ec8f0;
}
body.dark-mode #bkp-svg path {
    stroke: rgba(143,199,240,0.40);
}
body.dark-mode .bkp-other-card {
    background: #1e2330;
    border-color: rgba(255,255,255,0.10);
    color: #d8dce8;
}
body.dark-mode .bkp-other-card:hover {
    border-color: rgba(126,200,240,0.35);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
body.dark-mode .bkp-other-card.current {
    background: #1a2a44;
    border-color: rgba(126,200,240,0.4);
}
body.dark-mode .bkp-other-name {
    color: #7ec8f0;
}
body.dark-mode .bkp-other-champion {
    color: #d8dce8;
}
body.dark-mode .bkp-status {
    background: #1e2330;
    color: #d8dce8;
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
body.dark-mode .bkp-status.saved {
    color: #4ade80;
}
body.dark-mode .bkp-status.error {
    color: #f87171;
}

/* Leaderboard / classement */
body.dark-mode .leaderboard-tab-bar,
body.dark-mode .nav-tabs {
    border-bottom-color: rgba(255,255,255,0.08);
}
body.dark-mode .nav-tabs .nav-link {
    color: rgba(200,210,230,0.65);
    border-color: transparent;
}
body.dark-mode .nav-tabs .nav-link.active {
    background-color: #1a1e26;
    border-color: rgba(255,255,255,0.10) rgba(255,255,255,0.10) #1a1e26;
    color: #fff;
}
body.dark-mode .nav-tabs .nav-link:hover:not(.active) {
    border-color: rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.04);
    color: #d8dce8;
}

/* Score-all / vue ensemble */
body.dark-mode .score-all-page,
body.dark-mode .awards-page,
body.dark-mode .leaderboard-page,
body.dark-mode .home-page {
    color: #d8dce8;
}

/* Informations / règles */
body.dark-mode .info-section,
body.dark-mode .information-page {
    color: #d8dce8;
}

/* Groupes */
body.dark-mode .group-select-overlay .custom-options {
    background: #1e2330;
}
body.dark-mode .group-select-overlay .custom-options-header span {
    color: #d8dce8;
}
body.dark-mode .group-select-overlay .custom-options-close {
    color: rgba(200,210,230,0.6);
}
body.dark-mode .group-select-overlay .custom-option {
    color: #d8dce8;
    border-bottom-color: rgba(255,255,255,0.07);
}
body.dark-mode .group-select-overlay .custom-option:hover,
body.dark-mode .group-select-overlay .custom-option:active,
body.dark-mode .group-select-overlay .custom-option.selected {
    background-color: rgba(31,95,159,0.25);
}

/* Modal prédictions d'autres joueurs */
body.dark-mode #predictionsModal .modal-body {
    background: #131720;
}
body.dark-mode #predictionsModal .card-other-person-prediction {
    background: #1e2330;
    color: #d8dce8;
}
body.dark-mode #predictionsModal .name-other-person-prediction {
    color: #7ec8f0;
}
body.dark-mode #predictionsModal .score-other-person-prediction {
    color: #e8eaf0;
}
body.dark-mode #predictionsModal .predictions-loading-indicator {
    color: #7eb3ff;
}
body.dark-mode #predictionsModal .prediction-user-card {
    border-color: rgba(255,255,255,0.10);
    box-shadow: none;
}
body.dark-mode #predictionsModal .prediction-user-card.current-user-prediction {
    border-color: #1f5f9f;
}
body.dark-mode #predictionsModal .group-select-wrapper .custom-select-trigger {
    background: #242836;
    border-color: rgba(255,255,255,0.12);
    color: #d8dce8;
}
body.dark-mode #predictionsModal .group-select-wrapper .custom-select-trigger .selected-text {
    color: #d8dce8;
}

/* ===================================================
   DARK MODE — CORRECTIONS SPÉCIFIQUES PAR PAGE
   =================================================== */

/* Contact */
body.dark-mode .contact-card {
    background-color: #1a1e26 !important;
    color: #d8dce8;
    border-color: rgba(255,255,255,0.09);
}
body.dark-mode .contact-card label {
    color: #9ba3b8;
}

/* Awards / Palmarès */
body.dark-mode .palmares-card,
body.dark-mode .stats-card {
    background-color: #1a1e26 !important;
    color: #d8dce8;
    border-color: rgba(255,255,255,0.09) !important;
}
body.dark-mode .palmares-card:hover {
    border-color: rgba(255,255,255,0.18) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35) !important;
}

/* Leaderboard — onglets */
body.dark-mode .leaderboard-tabs,
body.dark-mode ul.leaderboard-tabs {
    background: rgba(26,30,38,0.96) !important;
    border-color: rgba(255,255,255,0.07) !important;
}
body.dark-mode .leaderboard-tabs .nav-link {
    color: rgba(200,210,230,0.65) !important;
}
body.dark-mode .leaderboard-tabs .nav-link.active {
    background: #1a1e26 !important;
    border-color: rgba(255,255,255,0.10) rgba(255,255,255,0.10) #1a1e26 !important;
    color: #fff !important;
}

/* Custom select trigger (leaderboard, awards, statistics…) */
body.dark-mode .custom-select-trigger {
    background: #242836 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.12) !important;
}
body.dark-mode .custom-select-trigger .selected-text {
    color: #d8dce8 !important;
}

/* Tableaux — lignes blanches */
body.dark-mode tr,
body.dark-mode tr.clickable-row {
    background-color: #1a1e26 !important;
    color: #d8dce8 !important;
}
body.dark-mode tr:nth-of-type(odd) {
    background-color: #1e2330 !important;
}
body.dark-mode tr:hover,
body.dark-mode tr.clickable-row:hover {
    background-color: rgba(255,255,255,0.05) !important;
}
body.dark-mode td, body.dark-mode th {
    border-color: rgba(255,255,255,0.07) !important;
    color: #d8dce8;
}

/* Stadiums */
body.dark-mode .stadium-card {
    background-color: #1a1e26 !important;
    color: #d8dce8;
    border-color: rgba(255,255,255,0.09) !important;
}
body.dark-mode .stadium-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}
body.dark-mode .dist-table {
    background-color: transparent !important;
}
body.dark-mode .dist-table td {
    background-color: #1a1e26 !important;
    color: #d8dce8 !important;
}

/* All standings */
body.dark-mode .group-card {
    background-color: #1a1e26 !important;
    color: #d8dce8;
    border-color: rgba(255,255,255,0.09) !important;
}
body.dark-mode .partial-table-wrapper {
    background-color: #1a1e26 !important;
}
body.dark-mode .partial-table-wrapper table {
    background-color: transparent !important;
}

/* Bracket (tableau lecture seule) — classes bku-* */
body.dark-mode .bku-nav-bar {
    background: #1a1e26 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35) !important;
}
body.dark-mode .bku-nav-btn {
    background: #242836 !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: #d8dce8 !important;
}
body.dark-mode .bku-nav-btn:hover:not(:disabled) {
    background: #2a3040 !important;
    color: #7ec8f0 !important;
}
body.dark-mode .bku-card {
    background: #1a1e26 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
}
body.dark-mode .bku-wrapper {
    background: #131720 !important;
}
body.dark-mode .bku-match {
    background: #1e2330 !important;
    border-color: rgba(255,255,255,0.10) !important;
}
body.dark-mode .bku-match.bku-match-final {
    background: #1e2330 !important;
}
body.dark-mode .bku-pick-row {
    background: #242836 !important;
    color: #d8dce8 !important;
}
body.dark-mode .bku-pick-row.selected {
    background: #1f5f9f !important;
    color: #fff !important;
}
body.dark-mode .bku-vs {
    background: #242836 !important;
}
body.dark-mode .bku-vs::before,
body.dark-mode .bku-vs::after {
    background: rgba(255,255,255,0.08) !important;
}
body.dark-mode .bku-empty {
    background: #1e2330 !important;
    border-color: rgba(255,255,255,0.10) !important;
}
body.dark-mode .bku-nav-dot {
    background: #242836 !important;
    color: rgba(200,210,230,0.6) !important;
}
body.dark-mode .bku-nav-dot.active {
    background: #1a3a6b !important;
    color: #fff !important;
}

/* Bracket-predictions — bandeau verrouillé */
body.dark-mode .bkp-locked-banner {
    background: #1e2330 !important;
    border-color: rgba(255,255,255,0.10) !important;
    color: #9ba3b8 !important;
}
body.dark-mode .bkp-locked-banner i {
    color: #6b7280 !important;
}
body.dark-mode .bkp-deadline {
    background: #2a1d00 !important;
    border-color: rgba(251,191,36,0.2) !important;
    color: #fbbf24 !important;
}
body.dark-mode .bkp-deadline i {
    color: #f97316 !important;
}

/* Bandeau verrouillé pour la vue "autre personne" */
.other-person-bracket-page .bkp-locked-banner {
    background: #2d1010 !important;
    border-color: rgba(220,80,80,0.15) !important;
    color: rgba(255,200,200,0.7) !important;
}
.other-person-bracket-page .bkp-locked-banner i {
    color: rgba(220,80,80,0.6) !important;
}

/* Groups page — items de la liste */
body.dark-mode .group-list-item,
body.dark-mode .team-list-item {
    background-color: #1e2330 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.07) !important;
}
body.dark-mode .group-list-item:hover,
body.dark-mode .team-list-item:hover {
    background-color: #242836 !important;
}

/* Score-all page dark mode */
body.dark-mode .sga-tabs {
    background: #1e2330 !important;
}
body.dark-mode .sga-tab {
    color: #a0aec0 !important;
}
body.dark-mode .sga-tab:hover {
    color: #e0e0e0 !important;
}
body.dark-mode .sga-tab.active {
    background: #2d3348 !important;
    color: #e0e0e0 !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4) !important;
}
body.dark-mode .sga-filters {
    background: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .sga-filters .form-control {
    background-color: #242836 !important;
    border-color: #4a5568 !important;
    color: #e0e0e0 !important;
}
body.dark-mode .sga-filters .custom-select-trigger {
    background-color: #242836 !important;
    border-color: #4a5568 !important;
    color: #e0e0e0 !important;
}
body.dark-mode .score-wrapper {
    background: transparent !important;
}

/* Home admin cards dark mode */
body.dark-mode .home-admin-user-name {
    color: #d8dce8 !important;
}
body.dark-mode .home-admin-match-date {
    color: #a0aec0 !important;
}
body.dark-mode .home-admin-user-list li,
body.dark-mode .home-missing-list li {
    border-color: rgba(255,255,255,0.07) !important;
    color: #d8dce8 !important;
}
body.dark-mode .home-admin-empty {
    color: #a0aec0 !important;
}
body.dark-mode .home-admin-card {
    background: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .home-admin-accordion .card {
    border-color: rgba(255,255,255,0.07) !important;
    background: #1a1e26 !important;
}
body.dark-mode .home-admin-accordion .card-header {
    background: #1a1e26 !important;
}
body.dark-mode .home-admin-acc-btn {
    background: #1a1e26 !important;
    color: #d8dce8 !important;
}
body.dark-mode .home-admin-acc-btn:hover {
    background: #242836 !important;
}
body.dark-mode .leaderboard-mini-table td,
body.dark-mode .ranking-table td {
    background-color: #1a1e26 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.07) !important;
}
body.dark-mode .group-team-row {
    background-color: #242836 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.07) !important;
}
body.dark-mode .team-mini-card {
    background-color: #242836 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .group-map-block {
    background-color: #1a1e26 !important;
}
body.dark-mode .match-card {
    background-color: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #d8dce8 !important;
}
body.dark-mode .match-round-badge {
    background-color: #2d3348 !important;
    color: #a0aec0 !important;
}
body.dark-mode .standings-wrapper {
    background-color: #1a1e26 !important;
}
body.dark-mode .match-team,
body.dark-mode .team-name {
    color: #d8dce8 !important;
}
body.dark-mode .match-score {
    color: #7eb3ff !important;
}
body.dark-mode .team-detail-page .match-score.win,
body.dark-mode .team-detail-page .ts-item.win .ts-val {
    color: #198754 !important;
}
body.dark-mode .team-detail-page .match-score.draw,
body.dark-mode .team-detail-page .ts-item.draw .ts-val {
    color: #fd7e14 !important;
}
body.dark-mode .team-detail-page .match-score.loss,
body.dark-mode .team-detail-page .ts-item.loss .ts-val {
    color: #dc3545 !important;
}
body.dark-mode .team-hero {
    background-color: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #d8dce8 !important;
}
body.dark-mode .ts-item {
    background-color: #242836 !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #d8dce8 !important;
}
body.dark-mode .team-map-block {
    background-color: #1a1e26 !important;
}
body.dark-mode .team-km-badge {
    background-color: #2d3348 !important;
    color: #a0aec0 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .stadium-info-block {
    background-color: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #d8dce8 !important;
}

/* Les pages "other-person" NE doivent PAS hériter du dark mode standard
   car elles ont leur propre thème rouge. On réinitialise ici si dark-mode
   est aussi actif pour éviter les conflits. */
body.dark-mode .other-person-prediction-page.score-page {
    background: #180808;
    box-shadow: 0 0 0 100vmax #180808;
}
body.dark-mode:has(.other-person-prediction-page.score-page) {
    background: #180808;
}
body.dark-mode .other-person-prediction-page.score-page .card {
    background-color: #2d1010;
    border-color: rgba(220,80,80,0.15);
}
body.dark-mode .other-person-prediction-page.score-page .card-body {
    background: linear-gradient(180deg, rgba(55,16,16,0.97), rgba(45,14,14,0.98)), #2d1010;
}
body.dark-mode .other-person-prediction-page.score-page .round-box {
    background-color: rgba(45,16,16,0.96);
}

/* ============================================================
   DARK MODE — CORRECTIONS GLOBALES RESTANTES
   ============================================================ */

/* --- Dropdown menus (TOUTES PAGES : texte noir sur fond sombre) --- */
body.dark-mode .dropdown-menu {
    background-color: #1e2330 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #d8dce8 !important;
}
body.dark-mode .dropdown-menu .dropdown-item {
    color: #d8dce8 !important;
}
body.dark-mode .dropdown-menu .dropdown-item:hover,
body.dark-mode .dropdown-menu .dropdown-item:focus {
    background-color: #2d3348 !important;
    color: #ffffff !important;
}
body.dark-mode .dropdown-menu .dropdown-divider {
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .dropdown-menu .dropdown-header {
    color: #a0aec0 !important;
}

/* --- nav.nav-tabs (Home, Statistics) --- */
body.dark-mode .nav.nav-tabs,
body.dark-mode .nav-tabs {
    border-color: rgba(255,255,255,0.1) !important;
    background-color: transparent !important;
}
body.dark-mode .nav-tabs .nav-link {
    color: #a0aec0 !important;
    background-color: #1e2330 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .nav-tabs .nav-link.active {
    background-color: #2d3348 !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.15) !important;
}
body.dark-mode .nav-tabs .nav-link:hover {
    background-color: #242836 !important;
    color: #d8dce8 !important;
}

/* --- Home page : match-date, bracket-team, badges --- */
body.dark-mode .match-date {
    background-color: #2d3348 !important;
    color: #a0aec0 !important;
}
body.dark-mode .home-bracket-team {
    background-color: #1e2330 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.07) !important;
}
body.dark-mode .home-bracket-rank-icon {
    background-color: #2d3348 !important;
    color: #a0aec0 !important;
}
body.dark-mode .home-admin-count {
    background-color: #2d3348 !important;
    color: #d8dce8 !important;
}
body.dark-mode .home-missing-badge,
body.dark-mode .home-bracket-missing-count {
    background-color: #4a1a1a !important;
    color: #f87171 !important;
}

/* --- Leaderboard : explain block, table stripes, rank change --- */
body.dark-mode .leaderboard-explain {
    background-color: #1e2330 !important;
    color: #a0aec0 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.04) !important;
}
body.dark-mode .table-striped tbody tr:nth-of-type(even) {
    background-color: transparent !important;
}
body.dark-mode .leaderboard-table table {
    background: #1a1e26 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}
body.dark-mode .ranking-table td.text-ranking-user-connected {
    background-color: #1e4fa3 !important;
    color: #ffffff !important;
}
body.dark-mode .leaderboard-rank-change {
    background: rgba(255,255,255,0.1) !important;
}
body.dark-mode .leaderboard-rank-change.text-success {
    color: #4ade80 !important;
}
body.dark-mode .leaderboard-rank-change.text-danger {
    color: #f87171 !important;
}

/* --- Score-all text --- */
body.dark-mode .user-name {
    color: #d8dce8 !important;
}
body.dark-mode .team-name-label {
    color: #d8dce8 !important;
}

/* --- All standings text --- */
body.dark-mode .section-title {
    color: #7eb3ff !important;
}
body.dark-mode .section-title i,
body.dark-mode .all-standings-page .page-hero-title i,
body.dark-mode .all-standings-page .fa-info-circle,
body.dark-mode .group-detail-page .fa-info-circle,
body.dark-mode .team-detail-page .fa-info-circle,
body.dark-mode .stadiums-page .fa-info-circle,
body.dark-mode .stadium-detail-page .fa-info-circle {
    color: #6f9bd8 !important;
    opacity: 1 !important;
}
body.dark-mode .team-link {
    color: #d8dce8 !important;
}
body.dark-mode .team-link span,
body.dark-mode .team-link a {
    color: #d8dce8 !important;
}
body.dark-mode .all-standings-page a {
    color: #7eb3ff !important;
}

/* --- Stadium detail text --- */
body.dark-mode .stadium-card-name {
    color: #7eb3ff !important;
}
body.dark-mode .stadium-detail-name,
body.dark-mode .matches-title,
body.dark-mode .stadium-detail-page > a {
    color: #7eb3ff !important;
}
body.dark-mode .stadium-card-row {
    color: #d8dce8 !important;
}
body.dark-mode .stadium-card-row i,
body.dark-mode .stadium-info-row i,
body.dark-mode .match-stadium i,
body.dark-mode .team-km-badge i,
body.dark-mode .map-no-coords i,
body.dark-mode .no-matches i,
body.dark-mode .distances-section-header i {
    color: #6f9bd8 !important;
    opacity: 1 !important;
}
body.dark-mode .stadium-info-block th {
    color: #a0aec0 !important;
}
body.dark-mode .match-winner-note {
    background: rgba(251,191,36,0.14) !important;
    color: #fbbf24 !important;
}

/* --- Settings page text --- */
body.dark-mode .settings-title {
    color: #7eb3ff !important;
}
body.dark-mode .settings-tab {
    color: #d8dce8 !important;
}

/* --- Awards / palmares page --- */
body.dark-mode .palmares-title {
    color: #7eb3ff !important;
}
body.dark-mode .palmares-ranking-count,
body.dark-mode .palmares-chevron {
    color: #a0aec0 !important;
}
body.dark-mode .name-cell {
    color: #d8dce8 !important;
}
body.dark-mode .name-cell.me {
    color: #7eb3ff !important;
}
body.dark-mode .pts-cell,
body.dark-mode .pts-cell strong {
    color: #93c5fd !important;
}
body.dark-mode .pos-cell {
    color: #d8dce8 !important;
}

/* --- Statistics text colors --- */
body.dark-mode .show-all-ranking,
body.dark-mode .btn.btn-link.show-all-ranking {
    color: #7eb3ff !important;
}
body.dark-mode .statistics-final-toggle {
    color: #d8dce8 !important;
}

/* --- Statistics : chart-ctrl-btn, subtabs --- */
body.dark-mode .chart-ctrl-btn {
    background-color: #2d3348 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .chart-ctrl-btn.active,
body.dark-mode .chart-ctrl-btn:hover {
    background-color: #3d4668 !important;
    color: #ffffff !important;
}

/* --- Information page content --- */
body.dark-mode .information-page .card-body {
    background: #1a1e26 !important;
}
body.dark-mode .information-page .card-body h4 {
    color: #7eb3ff !important;
}
body.dark-mode .information-page .card-body h5,
body.dark-mode .information-page .card-body h6 {
    color: #93c5fd !important;
}
body.dark-mode .information-page .card-body p,
body.dark-mode .information-page .card-body li,
body.dark-mode .information-page .card-body td,
body.dark-mode .information-page .card-body th {
    color: #d8dce8 !important;
}
body.dark-mode .information-page .card-body strong {
    color: #bfdbfe !important;
}
body.dark-mode .information-page .card-body a {
    color: #7eb3ff !important;
}
body.dark-mode .information-page .card-body table {
    background-color: #1a1e26 !important;
}
body.dark-mode .information-page .card-body tr {
    border-color: rgba(255,255,255,0.08) !important;
}

/* --- Information : podium-rule --- */
body.dark-mode .podium-rule {
    background-color: #1e2330 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.08) !important;
}

/* --- Settings : tous les éléments clairs --- */
body.dark-mode .settings-tabs {
    background-color: #1e2330 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .password-requirements {
    background-color: #1e2330 !important;
    color: #a0aec0 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .notif-block {
    background-color: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #d8dce8 !important;
}
body.dark-mode .settings-btn-secondary {
    background-color: #2d3348 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.15) !important;
}
body.dark-mode .notif-alert {
    background-color: #1e2330 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #d8dce8 !important;
}
body.dark-mode .notif-alert-err {
    background-color: #2d1010 !important;
    border-color: rgba(220,80,80,0.2) !important;
    color: #f87171 !important;
}
body.dark-mode code, body.dark-mode CODE {
    background-color: #2d3348 !important;
    color: #93c5fd !important;
}
body.dark-mode .notif-channel-strip {
    background-color: #1e2330 !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #d8dce8 !important;
}
body.dark-mode .notif-preview-card {
    background-color: #1e2330 !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #d8dce8 !important;
}
body.dark-mode .custom-options-header {
    background-color: #1a1e26 !important;
    color: #d8dce8 !important;
}

/* --- Score-all : colonnes sticky TH/TD --- */
body.dark-mode .sticky-col,
body.dark-mode th.sticky-col,
body.dark-mode td.sticky-col {
    background-color: #1a1e26 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.07) !important;
}
body.dark-mode th.user-col,
body.dark-mode td.user-col {
    background-color: #15191f !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.05) !important;
}
body.dark-mode th.current-user-col,
body.dark-mode td.current-user-col {
    background-color: #1e2d1e !important;
    color: #86efac !important;
}

/* --- Admin tournament text --- */
body.dark-mode .test-mode-title,
body.dark-mode .test-mode-title span {
    color: #d8dce8 !important;
}
body.dark-mode .test-mode-desc {
    color: #a0aec0 !important;
}
body.dark-mode .admin-tournament-table td,
body.dark-mode .admin-tournament-table tr {
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .admin-tournament-table strong {
    color: #d8dce8 !important;
}

/* --- Admin generic section/tournament cards --- */
body.dark-mode .admin-section-card,
body.dark-mode .box.admin-section-card,
body.dark-mode .admin-tournament-card,
body.dark-mode .box.admin-tournament-card {
    background-color: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .admin-tournament-card th,
body.dark-mode .admin-section-card th {
    background-color: #2d3348 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .test-mode-note {
    background-color: #2a1a08 !important;
    color: #fb923c !important;
    border-color: rgba(251,146,60,0.2) !important;
}
body.dark-mode .test-banner-today {
    background-color: #1a2540 !important;
    color: #93c5fd !important;
}
body.dark-mode .test-banner-today strong {
    background-color: transparent !important;
    color: #93c5fd !important;
}
body.dark-mode .badge-secondary {
    background-color: #2d3348 !important;
    color: #d8dce8 !important;
}
body.dark-mode .btn.btn-secondary,
body.dark-mode .btn.btn-secondary.dropdown-toggle {
    background-color: #2d3348 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .btn.btn-secondary:hover {
    background-color: #3d4668 !important;
}

/* --- Admin palmares --- */
body.dark-mode .pal-table {
    background-color: #1a1e26 !important;
}
body.dark-mode .pal-table td,
body.dark-mode .pal-table th {
    background-color: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #d8dce8 !important;
}
body.dark-mode .btn-act.move {
    background-color: #2d3348 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .btn-act.edit {
    background-color: #1a2540 !important;
    color: #93c5fd !important;
    border-color: rgba(147,197,253,0.2) !important;
}

/* --- Admin bracket page --- */
body.dark-mode .bk-wrapper,
body.dark-mode .bk-slots {
    background-color: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .bk-card {
    background-color: #242836 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .bk-card.done {
    background-color: #1a2d1a !important;
    border-color: rgba(74,222,128,0.2) !important;
}

/* --- Admin page-stats --- */
body.dark-mode .period-bar,
body.dark-mode .pstats-filters,
body.dark-mode .pstats-kpi,
body.dark-mode .pstats-chart-card,
body.dark-mode .pstats-table-wrap {
    background-color: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .period-tabs {
    background-color: #242836 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .period-tab {
    color: #a0aec0 !important;
}
body.dark-mode .period-tab.active {
    background-color: #1a1e26 !important;
    color: #ffffff !important;
}
body.dark-mode .period-arrow {
    background-color: #1e2330 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .period-arrow.disabled {
    background-color: #242836 !important;
    color: #6b7280 !important;
}
body.dark-mode .pstats-filter-input {
    background-color: #242836 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .page-pill-icon {
    background-color: #1a2540 !important;
}

/* --- Admin logs text --- */
body.dark-mode .log-message {
    color: #d8dce8 !important;
}
body.dark-mode .log-detail-key {
    color: #a0aec0 !important;
}
body.dark-mode .log-detail-val {
    color: #d8dce8 !important;
}
body.dark-mode .log-detail-section-title {
    color: #93c5fd !important;
}
body.dark-mode .btn.btn-outline-danger {
    color: #f87171 !important;
    border-color: #f87171 !important;
}

/* --- Admin logs page --- */
body.dark-mode .logs-header {
    background-color: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .logs-count-badge {
    background-color: rgba(255,255,255,0.1) !important;
    color: #d8dce8 !important;
}
body.dark-mode .logs-count {
    background-color: #2d3348 !important;
    color: #d8dce8 !important;
}
body.dark-mode .log-card {
    background-color: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .log-details-grid {
    background-color: #242836 !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body.dark-mode .log-badge-no {
    background-color: #3d0f1a !important;
    color: #f87171 !important;
}
body.dark-mode .log-list-item {
    background-color: #1a2540 !important;
    color: #93c5fd !important;
    border-color: rgba(147,197,253,0.15) !important;
}

/* --- Admin matches text --- */
body.dark-mode .mc-group-sep {
    color: #7eb3ff !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .mc-teams {
    color: #d8dce8 !important;
}
body.dark-mode .mc-meta {
    color: #a0aec0 !important;
}

/* --- Admin matches cards --- */
body.dark-mode .admin-match-round-card,
body.dark-mode .box.admin-match-round-card {
    background-color: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .mc {
    background-color: #242836 !important;
    border-color: rgba(255,255,255,0.06) !important;
}

/* --- Admin overview text --- */
body.dark-mode .stats-card-val {
    color: #7eb3ff !important;
}
body.dark-mode .sort-icon {
    color: #a0aec0 !important;
}

/* --- Admin overview table --- */
body.dark-mode .stats-table-wrap {
    background-color: #1a1e26 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode th.sortable {
    background-color: #2d3348 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode th.sortable:hover {
    background-color: #3d4668 !important;
}

/* --- Bracket winner highlight --- */
body.dark-mode .bku-team-row.winner {
    background-color: #1a2d4a !important;
}

/* --- Bracket predictions help box --- */
body.dark-mode .bkp-help {
    background-color: #1a2540 !important;
    color: #93c5fd !important;
    border-color: rgba(147,197,253,0.2) !important;
}

/* --- Leaflet map controls (stadiums) --- */
body.dark-mode .leaflet-control-zoom a {
    background-color: #1e2330 !important;
    color: #d8dce8 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .leaflet-control-zoom a:hover {
    background-color: #2d3348 !important;
}
body.dark-mode .leaflet-control-attribution {
    background-color: rgba(26, 30, 38, 0.85) !important;
    color: #a0aec0 !important;
}
body.dark-mode .leaflet-control-attribution a {
    color: #7eb3ff !important;
}

/* --- Admin page-stats text --- */
body.dark-mode .period-label-text { color: #7eb3ff !important; }
body.dark-mode .pstats-filter-label { color: #a0aec0 !important; }
body.dark-mode .pstats-kpi-label { color: #a0aec0 !important; }
body.dark-mode .pstats-kpi-value { color: #d8dce8 !important; }
body.dark-mode .pstats-kpi-sub-name { color: #a0aec0 !important; }
body.dark-mode .pstats-chart-title { color: #7eb3ff !important; }
body.dark-mode .pstats-section-title { color: #7eb3ff !important; }
body.dark-mode .page-pill-name { color: #d8dce8 !important; }
body.dark-mode .sort-link { color: #7eb3ff !important; }
body.dark-mode .pstats-table-wrap td.num,
body.dark-mode .pstats-table-wrap td { color: #d8dce8 !important; }

/* --- Admin page-stats user pill text --- */
body.dark-mode .user-pill span,
body.dark-mode .user-pill { color: #d8dce8 !important; }
body.dark-mode .page-pill-slug { color: #a0aec0 !important; }

/* --- Admin bracket --- */
body.dark-mode .bk-team { color: #d8dce8 !important; }
body.dark-mode .bk-col-head { background-color: #1e2330 !important; }
body.dark-mode .alert.alert-primary {
    background-color: #1a2d4a !important;
    border-color: rgba(126,179,255,0.2) !important;
    color: #93c5fd !important;
}
body.dark-mode .alert.alert-primary strong { color: #bfdbfe !important; }
body.dark-mode .alert.alert-info {
    background-color: #1a2d3a !important;
    border-color: rgba(126,209,255,0.2) !important;
    color: #7dd3fc !important;
}
body.dark-mode .alert.alert-warning {
    background-color: #2a2010 !important;
    border-color: rgba(251,191,36,0.2) !important;
    color: #fcd34d !important;
}
body.dark-mode .alert.alert-success {
    background-color: #0f2a1a !important;
    border-color: rgba(74,222,128,0.2) !important;
    color: #86efac !important;
}
body.dark-mode .alert.alert-danger {
    background-color: #2a0f0f !important;
    border-color: rgba(248,113,113,0.2) !important;
    color: #fca5a5 !important;
}

/* --- Admin palmares --- */
body.dark-mode .pal-table {
    background: #1a1e26 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4) !important;
}
body.dark-mode .pal-table tbody td { color: #d8dce8 !important; border-color: rgba(255,255,255,0.07) !important; }
body.dark-mode .pal-table tbody tr:hover { background: #242836 !important; }
body.dark-mode .badge-pub { color: #4ade80 !important; background: rgba(74,222,128,0.12) !important; }
body.dark-mode .badge-draft { color: #9ca3af !important; }
body.dark-mode .btn-act.manage { color: #c084fc !important; background: rgba(192,132,252,0.12) !important; }
body.dark-mode .btn-act.manage:hover { background: rgba(192,132,252,0.2) !important; }
body.dark-mode .btn-act.toggle-pub { color: #fb923c !important; background: rgba(251,146,60,0.12) !important; }
body.dark-mode .btn-act.toggle-pub:hover { background: rgba(251,146,60,0.2) !important; }
body.dark-mode .btn-act.danger { color: #f87171 !important; background: rgba(248,113,113,0.12) !important; }
body.dark-mode .btn-act.danger:hover { background: rgba(248,113,113,0.2) !important; }
body.dark-mode .btn-act.edit { color: #93c5fd !important; background: rgba(147,197,253,0.12) !important; }
body.dark-mode .btn-act.edit:hover { background: rgba(147,197,253,0.2) !important; }
body.dark-mode .text-danger { color: #f87171 !important; }

/* --- Bracket predictions selected team name + match state --- */
body.dark-mode .bkp-pick-row.selected .bkp-team-name { color: #fff !important; }
body.dark-mode .bkp-match.deadline-locked { background: #1a1e26 !important; border-color: rgba(255,255,255,0.08) !important; }
body.dark-mode .bkp-match.deadline-locked .bkp-pick-row:disabled { opacity: 0.78; }
body.dark-mode .bkp-match-state.pending-state,
body.dark-mode .bkp-match-state.locked-state { color: #fbbf24 !important; }
body.dark-mode .bkp-match.pending .bkp-pick-row:not(.selected):not(:disabled) { background: #23201a !important; }

/* --- Bootstrap outline buttons dark mode --- */
body.dark-mode .btn-outline-primary { color: #60a5fa !important; border-color: #60a5fa !important; }
body.dark-mode .btn-outline-primary:hover { background-color: rgba(96,165,250,0.15) !important; color: #93c5fd !important; }
body.dark-mode .btn-outline-secondary { color: #9ca3af !important; border-color: #9ca3af !important; }
body.dark-mode .btn-outline-secondary:hover { background-color: rgba(156,163,175,0.15) !important; }
body.dark-mode .btn-outline-danger { color: #f87171 !important; border-color: #f87171 !important; }
body.dark-mode .btn-outline-success { color: #4ade80 !important; border-color: #4ade80 !important; }
body.dark-mode .btn-outline-warning { color: #fbbf24 !important; border-color: #fbbf24 !important; }

/* --- Bracket read-only (bku) text colors --- */
body.dark-mode .bku-team-name { color: #d8dce8 !important; }
body.dark-mode .bku-team-row.winner .bku-team-name,
body.dark-mode .bku-team-name.bku-team-name-winner { color: #93c5fd !important; }
body.dark-mode .bku-score { color: #a0aec0 !important; }
body.dark-mode .bku-score.win { color: #93c5fd !important; }
body.dark-mode .bku-team-row { border-color: rgba(255,255,255,0.06) !important; }

/* --- Admin fill-scores --- */
body.dark-mode .penalty-subtitle { color: #b0b8cc !important; }

/* --- Leaderboard --- */
body.dark-mode .leaderboard-mobile-breakdown,
body.dark-mode .leaderboard-mobile-breakdown span { color: #a0aec0 !important; }
body.dark-mode .leaderboard-explain-link { color: #7eb3ff !important; }
body.dark-mode .leaderboard-explain-link:hover { color: #93c5fd !important; }

/* --- Global text-muted dark mode --- */
body.dark-mode .text-muted { color: #a0aec0 !important; }
body.dark-mode .statistics-chart-counter { color: #a0aec0 !important; }

/* --- Settings page --- */
body.dark-mode .settings-value { color: #d8dce8 !important; }
body.dark-mode .settings-tab.active { background: #2a4a8a !important; color: #fff !important; }
body.dark-mode label { color: #a0aec0 !important; }

/* Notification block */
body.dark-mode .notif-block-title { color: #7eb3ff !important; }
body.dark-mode .notif-block-sub { color: #a0aec0 !important; }
body.dark-mode .notif-unblock-title { color: #d8dce8 !important; }
body.dark-mode .notif-block li { color: #d8dce8 !important; }
body.dark-mode .notif-block p { color: #d8dce8 !important; }

/* Notification channel strips */
body.dark-mode .notif-channel-strip { background: #1e2330 !important; border-color: rgba(255,255,255,0.08) !important; }
body.dark-mode .notif-channel-strip-title { color: #d8dce8 !important; }
body.dark-mode .notif-channel-strip-sub { color: #a0aec0 !important; }
body.dark-mode .notif-channel-strip-badge.ok { background: rgba(74,222,128,0.15) !important; color: #4ade80 !important; }
body.dark-mode .notif-channel-strip-badge.warn { background: rgba(251,191,36,0.15) !important; color: #fbbf24 !important; }
body.dark-mode .notif-channel-strip-badge.err { background: rgba(248,113,113,0.15) !important; color: #f87171 !important; }

/* Notification preview card */
body.dark-mode .notif-preview-card { background: #1e2330 !important; border-color: rgba(255,255,255,0.08) !important; }
body.dark-mode .notif-preview-card h5 { color: #d8dce8 !important; }
body.dark-mode .notif-preview-card p { color: #a0aec0 !important; }

/* --- Home page match-teams and bracket text --- */
body.dark-mode .home-page .home-match-table .match-teams,
body.dark-mode .home-match-table .match-teams { color: #d8dce8 !important; }
body.dark-mode .home-page .home-match-alert,
body.dark-mode .home-match-alert {
    background: rgba(251,191,36,0.14) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251,191,36,0.28) !important;
}
body.dark-mode .home-bracket-teams-title { color: #a0aec0 !important; }
body.dark-mode .home-bracket-progress strong { color: #7eb3ff !important; }
body.dark-mode .home-bracket-progress span { color: #a0aec0 !important; }

/* --- Team detail page --- */
body.dark-mode .team-hero-name { color: #7eb3ff !important; }
body.dark-mode .team-hero a { color: #7eb3ff !important; }
body.dark-mode .ts-val { color: #d8dce8 !important; }
body.dark-mode .ts-label { color: #a0aec0 !important; }
body.dark-mode .ts-item { background: #1e2330 !important; border-color: rgba(255,255,255,0.07) !important; }
/* Colored stat values — brighten for dark bg */
body.dark-mode .ts-val[style*="color:#198754"],
body.dark-mode .ts-val.text-success { color: #4ade80 !important; }
body.dark-mode .ts-val[style*="color:#dc3545"],
body.dark-mode .ts-val.text-danger { color: #f87171 !important; }
body.dark-mode .ts-val[style*="color:#fd7e14"],
body.dark-mode .ts-val.text-warning { color: #fb923c !important; }

/* --- Bootstrap modals global dark mode --- */
body.dark-mode .modal-content {
    background-color: #1e2330 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #d8dce8 !important;
}
body.dark-mode .modal-header {
    background-color: #242836 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .modal-header .modal-title { color: #d8dce8 !important; }
body.dark-mode .modal-header .close,
body.dark-mode .modal-header .btn-close { color: #fff !important; filter: none !important; opacity: 1 !important; text-shadow: none !important; }
body.dark-mode .modal-body {
    background-color: #1e2330 !important;
    color: #d8dce8 !important;
}
body.dark-mode .modal-footer {
    background-color: #242836 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .modal-body label { color: #a0aec0 !important; }
body.dark-mode .modal-body .form-control {
    background-color: #2d3348 !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #d8dce8 !important;
}
body.dark-mode .modal-body .form-control::placeholder { color: #6b7280 !important; }
body.dark-mode .modal-body select.form-control option { background-color: #2d3348; color: #d8dce8; }
body.dark-mode .modal-body small,
body.dark-mode .modal-body .form-text { color: #a0aec0 !important; }

/* --- Admin tournament loader card --- */
body.dark-mode .test-script-loader-card { background: #1e2330 !important; border-color: rgba(255,255,255,0.08) !important; }
body.dark-mode .test-script-loader-text { color: #d8dce8 !important; }

/* --- Bootstrap form inputs global dark mode --- */
body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #2d3348 !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #d8dce8 !important;
}
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    background-color: #333a54 !important;
    border-color: #60a5fa !important;
    color: #d8dce8 !important;
    box-shadow: 0 0 0 0.2rem rgba(96,165,250,0.25) !important;
}
body.dark-mode .form-control::placeholder { color: #6b7280 !important; }
body.dark-mode select.form-control option,
body.dark-mode .form-select option { background-color: #2d3348; color: #d8dce8; }

/* --- Stadiums page distance table --- */
body.dark-mode .dist-table th,
body.dark-mode .dist-table td { color: #d8dce8 !important; border-color: rgba(255,255,255,0.07) !important; }
body.dark-mode .dist-table thead th { color: #a0aec0 !important; }

/* --- Global link colors in dark mode --- */
body.dark-mode a:not([class]):not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #7eb3ff !important;
}
body.dark-mode a:not([class]):not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #93c5fd !important;
}

/* --- Admin logs targeted fixes --- */
body.dark-mode .log-details-toggle { color: #60a5fa !important; }
body.dark-mode .notification-log-help { color: #a0aec0 !important; }
body.dark-mode .logs-count-badge { color: #fff !important; }

/* --- Admin box cards (accounts, send-notification) --- */
body.dark-mode .box {
    background-color: #1e2330 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #d8dce8 !important;
}
body.dark-mode .box h5,
body.dark-mode .box h4,
body.dark-mode .box p { color: #d8dce8 !important; }

/* --- Send notification user picker --- */
body.dark-mode .notif-user-picker {
    background: #1a1e26 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .notif-user-picker-toolbar {
    background: #242836 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode .notif-user-search {
    background: #2d3348 !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: #a0aec0 !important;
}
body.dark-mode .notif-user-search input {
    background: transparent !important;
    color: #d8dce8 !important;
}
body.dark-mode .notif-user-item { border-color: rgba(255,255,255,0.06) !important; color: #d8dce8 !important; }
body.dark-mode .notif-user-item:hover { background: #242836 !important; }
body.dark-mode .notif-user-avatar { background: #2d3348 !important; color: #7eb3ff !important; }
body.dark-mode .notif-user-meta { color: #d8dce8 !important; }

/* --- Sortable header text on medium-dark bg --- */
body.dark-mode th.sortable .sort-icon { color: #7eb3ff !important; }

/* =====================================================
   CHART FULLSCREEN SYSTEM
   ===================================================== */
.chart-fs-wrap { position: relative; }

/* Expand button inside the chart header */
.chart-header-actions {
    position: absolute;
    top: 50%; right: 10px;
    transform: translateY(-50%);
    display: flex; gap: 6px; align-items: center;
    z-index: 3;
}
.chart-expand-btn {
    width: 30px; height: 30px;
    background: rgba(255,255,255,.18);
    border: none; border-radius: 8px;
    color: #fff; font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s, transform .13s;
    flex-shrink: 0;
}
.chart-expand-btn:hover { background: rgba(255,255,255,.34); transform: scale(1.12); }

/* udp-evolution-head variant */
.udp-evolution-head { position: relative; }
.udp-evolution-head .chart-header-actions {
    top: 50%; right: 0;
    transform: translateY(-50%);
}
.udp-evolution-head .chart-expand-btn {
    background: rgba(26,58,107,.13);
    color: #1a3a6b;
}
body.dark-mode .udp-evolution-head .chart-expand-btn {
    background: rgba(126,179,255,.12);
    color: #7eb3ff;
}
.udp-evolution-head .chart-expand-btn:hover {
    background: rgba(26,58,107,.25);
}
body.dark-mode .udp-evolution-head .chart-expand-btn:hover {
    background: rgba(126,179,255,.22);
}

/* Fullscreen wrapper */
.chart-fs-wrap.chart-is-fs {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9990 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #eef3fb !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    padding: 0 !important;
}
body.dark-mode .chart-fs-wrap.chart-is-fs { background: #08111f !important; }
.chart-fs-wrap:fullscreen,
.chart-fs-wrap:-webkit-full-screen,
.chart-fs-wrap:-moz-full-screen { background: #eef3fb !important; }
body.dark-mode .chart-fs-wrap:fullscreen,
body.dark-mode .chart-fs-wrap:-webkit-full-screen,
body.dark-mode .chart-fs-wrap:-moz-full-screen { background: #08111f !important; }
.chart-fs-wrap::backdrop { background: #eef3fb; }
body.chart-fs-open { overflow: hidden; }

/* Header hidden in fullscreen */
.chart-is-fs .statistics-chart-header,
.chart-is-fs .udp-evolution-head {
    display: none !important;
}

/* Controls: collapsible in fullscreen */
.chart-fs-controls { flex-shrink: 0; }
.chart-is-fs .chart-fs-controls {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    padding-top: 0 !important; padding-bottom: 0 !important;
    border-bottom: 1px solid transparent;
}
.chart-is-fs.controls-open .chart-fs-controls {
    max-height: 250px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    border-bottom-color: rgba(0,0,80,.1);
}
body.dark-mode .chart-is-fs.controls-open .chart-fs-controls {
    border-bottom-color: rgba(255,255,255,.07);
}

/* Legend always visible */
.chart-is-fs .rank-chart-legend { flex-shrink: 0; }

/* Chart area fills remaining space */
.chart-is-fs .chart-fs-area {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.chart-is-fs .chart-fs-area > div {
    flex: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
}

/* Floating toolbar (only visible in fullscreen) */
.chart-fs-toolbar {
    position: absolute;
    bottom: 16px; right: 16px;
    top: auto;
    transform: none;
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.chart-is-fs .chart-fs-toolbar { display: flex; }

.chart-fs-btn {
    width: 44px; height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(120,170,255,.35);
    background: rgba(18,38,90,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #c8daff; font-size: 17px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.13);
    transition: background .18s, transform .13s, box-shadow .18s;
    position: relative;
}
.chart-fs-btn:hover {
    background: rgba(36,78,160,.92);
    transform: scale(1.07);
    box-shadow: 0 6px 26px rgba(26,58,107,.65);
}
.chart-fs-btn.active { background: rgba(36,78,160,.90); }
.chart-fs-btn.chart-fs-exit-btn:hover { background: rgba(160,36,36,.88); }

/* Tooltip */
.chart-fs-btn[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    right: 52px; top: 50%;
    transform: translateY(-50%);
    background: rgba(10,20,42,.92);
    color: #c8daff;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px; white-space: nowrap;
    border: 1px solid rgba(255,255,255,.1);
    opacity: 0; pointer-events: none;
    transition: opacity .15s;
}
.chart-fs-btn[data-tip]:hover::after { opacity: 1; }

/* Rotate button: visibility controlled by JS (isMobile detection) */
.chart-fs-rotate-btn { display: none; }

/* Expand button hidden in fullscreen */
.chart-is-fs .chart-header-actions .chart-expand-btn { opacity: 0; pointer-events: none; }

/* Toast notification */
.chart-fs-toast {
    position: fixed;
    bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(10,20,42,.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #c8daff; padding: 11px 22px;
    border-radius: 14px; font-size: 13px;
    z-index: 99999; pointer-events: none;
    box-shadow: 0 6px 28px rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.1);
    animation: fsToastIn .22s ease;
}
@keyframes fsToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Fullscreen controls background */
.chart-is-fs .chart-fs-controls { background: rgba(220,232,248,.95); }
body.dark-mode .chart-is-fs .chart-fs-controls { background: rgba(8,17,32,.85); }

/* Section title in fullscreen */
.chart-is-fs .udp-section-title { color: #1a3a6b !important; }
body.dark-mode .chart-is-fs .udp-section-title { color: #7eb3ff !important; }

/* udp-evolution-card padding override in fullscreen */
.udp-evolution-card.chart-is-fs { padding: 0 !important; overflow: hidden !important; }
/* ===================================================== */
body.dark-mode .stats-card-label { color: #a0aec0 !important; }
