/* ========================================================
   STATPLAY — Charte graphique partagée (pages app)
   ======================================================== */

@import url("./statplay_background.css?v=20260421-1");

:root {
    --bg: #ffffff;
    --bg-soft: #f3f3f3;
    --surface: rgba(255,255,255,0.92);
    --surface-border: rgba(0,0,0,0.08);
    --text: #111111;
    --muted: #5f5f5f;
    --field-bg: rgba(255,255,255,0.92);
    --field-border: rgba(0,0,0,0.14);
    --accent: #111111;
    --danger: #dc3545;
    --success: #28a745;
    --radius-card: 20px;
    --radius-pill: 30px;
    --header-h: 64px;
}

html[data-statplay-theme="dark"]:not(.admin-html) {
    --bg: #07111f;
    --bg-soft: #0b1728;
    --surface: rgba(10, 22, 38, 0.94);
    --surface-border: rgba(255,255,255,0.1);
    --text: #f4f8ff;
    --muted: #aebbd0;
    --field-bg: rgba(8, 19, 34, 0.92);
    --field-border: rgba(255,255,255,0.14);
    --accent: #f4f8ff;
    --soft-border: rgba(255,255,255,0.12);
    --panel: rgba(10,22,38,0.92);
    --share-muted: #aebbd0;
    --share-border: rgba(255,255,255,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] {
    display: none !important;
}

html,
body,
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    min-height: 100vh;
    position: relative;
}

html[data-statplay-theme="dark"]:not(.admin-html) body {
    background:
        radial-gradient(circle at 50% 50%, rgba(9, 20, 36, 0.96), rgba(5, 13, 25, 0.98) 58%, rgba(3, 8, 18, 1) 100%),
        linear-gradient(180deg, var(--bg), var(--bg-soft));
    color: var(--text);
}

html[data-statplay-theme="dark"]:not(.admin-html) body::before {
    opacity: 0.9;
    filter: invert(1) sepia(18%) saturate(520%) hue-rotate(176deg) brightness(1.82) opacity(.34);
}

html[data-statplay-theme="dark"]:not(.admin-html) body::after {
    background:
        radial-gradient(circle at left center, rgba(255,255,255,0.045), transparent 26%),
        radial-gradient(circle at right center, rgba(255,255,255,0.045), transparent 26%),
        radial-gradient(circle at center, rgba(6, 16, 30, 0.08) 0, rgba(6, 16, 30, 0.52) 35%, rgba(5, 13, 25, 0.18) 58%, transparent 72%);
}

html[data-statplay-theme="dark"]:not(.admin-html)::after {
    background:
        radial-gradient(ellipse 78% 58px at 50% 100%, rgba(7,17,31,0.96) 0%, rgba(7,17,31,0.7) 34%, rgba(7,17,31,0.22) 62%, rgba(7,17,31,0) 100%),
        linear-gradient(0deg, rgba(7,17,31,0.9) 0%, rgba(7,17,31,0.42) 34%, rgba(7,17,31,0.08) 62%, rgba(7,17,31,0) 100%);
    box-shadow: inset 0 -24px 34px rgba(7,17,31,0.72);
}

/* -------- APP HEADER -------- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    padding: 0 5%;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

html[data-statplay-theme="dark"]:not(.admin-html) .app-header,
html[data-statplay-theme="dark"]:not(.admin-html) .back-header,
html[data-statplay-theme="dark"]:not(.admin-html) .header {
    background: rgba(7, 17, 31, 0.9);
    border-bottom-color: rgba(255,255,255,0.09);
}

.app-header__logo {
    height: 28px;
    filter: brightness(0);
    cursor: pointer;
    flex-shrink: 0;
}

html[data-statplay-theme="dark"]:not(.admin-html) .app-header__logo,
html[data-statplay-theme="dark"]:not(.admin-html) .page-logo img,
html[data-statplay-theme="dark"]:not(.admin-html) .logo img,
html[data-statplay-theme="dark"]:not(.admin-html) .header-left img[src$="logo.png"] {
    filter: brightness(0) invert(1);
}

.app-header__nav {
    display: flex;
    gap: 4px;
}

.app-header__nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: background 140ms ease, color 140ms ease;
}

.app-header__nav a:hover,
.app-header__nav a.active {
    background: rgba(0,0,0,0.06);
    color: var(--text);
}

.app-header__right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

/* Solde chip */
.solde-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity 160ms ease;
    white-space: nowrap;
}

.solde-chip:hover { opacity: 0.85; }

.solde-chip i { font-size: 16px; }

.solde-chip .bi-lightning-charge-fill {
    color: #d4a10f !important;
    text-shadow: 0 0 10px rgba(212, 161, 15, 0.18);
}

/* Profile button */
.btn-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.78);
    color: #4f4f4f;
    font-size: 18px;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
    text-decoration: none;
}

html[data-statplay-theme="dark"]:not(.admin-html) .btn-profile,
html[data-statplay-theme="dark"]:not(.admin-html) .profil,
html[data-statplay-theme="dark"]:not(.admin-html) .btn-eye,
html[data-statplay-theme="dark"]:not(.admin-html) .slider-arrow,
html[data-statplay-theme="dark"]:not(.admin-html) nav.footer-dock > a,
html[data-statplay-theme="dark"]:not(.admin-html) nav.footer-dock > button {
    background: rgba(10, 22, 38, 0.92);
    border-color: rgba(255,255,255,0.12);
    color: var(--text);
}

.btn-profile:hover {
    background: rgba(255,255,255,0.96);
    border-color: rgba(0,0,0,0.16);
    color: var(--text);
}

.btn-profile i {
    font-size: 1.15rem;
    color: currentColor;
    line-height: 1;
}

.btn-profile--notif i {
    font-size: 1.16rem;
}

.btn-profile--notif {
    position: relative;
}

.notif-counter {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid rgba(255,255,255,0.96);
}

html[data-statplay-theme="dark"]:not(.admin-html) .notif-counter {
    background: #e02020;
    border: none;
    box-shadow: 0 2px 8px rgba(224,32,32,0.5);
    color: #fff;
}

/* -------- BACK HEADER (compte / dépôt / retrait) -------- */
.back-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.back-btn i { font-size: 20px; color: var(--text); }

/* -------- MAIN CONTENT -------- */
.main-content {
    position: relative;
    z-index: 1;
    padding: 24px 5% 80px;
    min-height: calc(100vh - var(--header-h));
}

/* Pages avec back-header : décaler le contenu */
.main-content--offset {
    padding-top: calc(var(--header-h) + 24px);
}

/* Centered container (compte, dépôt, retrait) */
.page-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Logo centré (compte, dépôt, retrait) */
.page-logo {
    text-align: center;
    margin: 2rem 0 2.5rem;
}

.page-logo img {
    height: 36px;
    filter: brightness(0);
}

/* -------- SECTION LABEL -------- */
.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 1.5rem 0 0.75rem;
}

.section-label i { font-size: 1rem; color: var(--muted); }

.section-label--between {
    justify-content: space-between;
}

.section-label__right {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    cursor: pointer;
}

/* -------- SEARCH BAR -------- */
.search-bar {
    position: relative;
    margin: 1.5rem 0;
}

.search-bar input {
    width: 100%;
    background: var(--field-bg);
    border: 1px solid var(--field-border);
    border-radius: 999px;
    padding: 12px 20px 12px 46px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: border-color 160ms ease;
}

.search-bar input:focus { border-color: rgba(0,0,0,0.3); }

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--muted);
    pointer-events: none;
}

/* -------- TABLE -------- */
.table-wrapper { overflow-x: auto; width: 100%; }

.sp-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
}

.sp-table thead th {
    background: rgba(0,0,0,0.04);
    padding: 12px 16px;
    font-weight: 500;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.sp-table thead th:first-child { border-radius: 12px 0 0 12px; }
.sp-table thead th:last-child  { border-radius: 0 12px 12px 0; }

.sp-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 120ms ease;
}

.sp-table tbody tr:hover { background: rgba(0,0,0,0.02); }

.sp-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    white-space: nowrap;
    color: var(--text);
}

.logo-totem { width: 2rem; vertical-align: middle; border-radius: 4px; }
.vs { font-weight: 700; margin: 0 6px; color: var(--muted); }
.manche-cell { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }

/* -------- CARDS -------- */
.card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-card);
    padding: 16px 20px;
    margin-bottom: 0.75rem;
}

html[data-statplay-theme="dark"]:not(.admin-html) .card,
html[data-statplay-theme="dark"]:not(.admin-html) .option-row,
html[data-statplay-theme="dark"]:not(.admin-html) .player-card,
html[data-statplay-theme="dark"]:not(.admin-html) .skillstat-block,
html[data-statplay-theme="dark"]:not(.admin-html) .dropdown-selected,
html[data-statplay-theme="dark"]:not(.admin-html) .dropdown-list,
html[data-statplay-theme="dark"]:not(.admin-html) .search-suggest,
html[data-statplay-theme="dark"]:not(.admin-html) .notification-card,
html[data-statplay-theme="dark"]:not(.admin-html) .market-card,
html[data-statplay-theme="dark"]:not(.admin-html) .pack-card,
html[data-statplay-theme="dark"]:not(.admin-html) .prefs-card,
html[data-statplay-theme="dark"]:not(.admin-html) .theme-option {
    background: rgba(10, 22, 38, 0.94) !important;
    border-color: rgba(255,255,255,0.1) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.22) !important;
    color: var(--text) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) input,
html[data-statplay-theme="dark"]:not(.admin-html) select,
html[data-statplay-theme="dark"]:not(.admin-html) textarea,
html[data-statplay-theme="dark"]:not(.admin-html) .search-bar input,
html[data-statplay-theme="dark"]:not(.admin-html) .header-search input,
html[data-statplay-theme="dark"]:not(.admin-html) .field input,
html[data-statplay-theme="dark"]:not(.admin-html) .field select {
    background: rgba(8, 19, 34, 0.92) !important;
    border-color: rgba(255,255,255,0.14) !important;
    color: var(--text) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) input::placeholder,
html[data-statplay-theme="dark"]:not(.admin-html) textarea::placeholder {
    color: rgba(244,248,255,0.56) !important;
}

/* Clickable option row */
.option-row {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-pill);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 14px;
    transition: background 140ms ease;
}

.option-row:hover { background: rgba(0,0,0,0.03); }
.option-row i { color: var(--muted); font-size: 16px; }

/* Player / robot card */
.player-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-card);
    padding: 12px 16px;
    margin-bottom: 0.75rem;
    transition: background 140ms ease;
}

.player-card:hover { background: rgba(0,0,0,0.02); }

.player-card__info { display: flex; align-items: center; gap: 12px; }

.player-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--surface-border);
}

.player-card__name { font-size: 14px; font-weight: 500; }
.player-card__sub  { font-size: 12px; color: var(--muted); margin-top: 2px; }

.btn-eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--surface-border);
    border-radius: 50%;
    background: none;
    color: var(--muted);
    font-size: 17px;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
    flex-shrink: 0;
}

.btn-eye:hover { background: rgba(0,0,0,0.05); color: var(--text); }

/* -------- BUTTONS -------- */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 24px;
    cursor: pointer;
    width: 100%;
    transition: opacity 160ms ease;
}

.btn-primary:hover { opacity: 0.88; }

.btn-nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    border-radius: var(--radius-pill);
    padding: 10px 14px 10px 18px;
    cursor: pointer;
    width: 100%;
    transition: background 140ms ease;
}

.btn-nav-pill:hover { background: rgba(0,0,0,0.04); }
.btn-nav-pill i { color: var(--muted); font-size: 18px; }

.btn-row {
    display: flex;
    gap: 10px;
    margin: 1.25rem 0;
    flex-wrap: wrap;
}

/* -------- FORM FIELDS -------- */
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }

.field label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 0.3rem;
    margin-left: 12px;
}

.field input, .field select {
    background: var(--field-bg);
    border: 1px solid var(--field-border);
    border-radius: var(--radius-pill);
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    outline: none;
    width: 100%;
    transition: border-color 160ms ease;
}

.field input:focus, .field select:focus { border-color: rgba(0,0,0,0.3); }

.field-suffix {
    position: relative;
}

.field-suffix input { padding-right: 60px; }

.field-suffix__label {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    color: var(--muted);
    pointer-events: none;
}

/* Dropdown custom */
.custom-dropdown { position: relative; }

.dropdown-selected {
    background: var(--field-bg);
    border: 1px solid var(--field-border);
    border-radius: var(--radius-pill);
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 160ms ease;
}

.dropdown-selected:hover { border-color: rgba(0,0,0,0.25); }
.dropdown-selected i { color: var(--muted); }

.dropdown-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    max-height: 220px;
    overflow-y: auto;
    list-style: none;
    padding: 6px 0;
}

.dropdown-list.is-open { display: block; }

.dropdown-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    transition: background 120ms ease;
}

.dropdown-list li:hover { background: rgba(0,0,0,0.04); }

.dropdown-img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }

/* -------- SOLDE INPUT (readonly) -------- */
.solde-input-wrap { position: relative; margin-bottom: 0.75rem; }

.solde-input {
    width: 100%;
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--field-border);
    border-radius: var(--radius-pill);
    padding: 14px 60px 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    font-family: inherit;
    outline: none;
}

.solde-input[readonly] { cursor: default; }

/* -------- SLIDER -------- */
.slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8px 0;
    margin: 0.5rem 0 1.5rem;
}

.slider-wrap::before,
.slider-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.slider-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95), transparent);
}

.slider-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.95), transparent);
}

.slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 4px;
    scrollbar-width: none;
}

.slider-track::-webkit-scrollbar { display: none; }

.slider-item {
    flex: 0 0 auto;
    width: 160px;
    text-align: center;
    cursor: pointer;
}

.slider-item img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.slider-item:hover img {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.slider-caption {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--text);
    transition: background 140ms ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-arrow:hover { background: rgba(0,0,0,0.06); }
.slider-arrow--left  { left: 4px; }
.slider-arrow--right { right: 4px; }

/* -------- SKILLSTAT BLOCK -------- */
.skillstat-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 140ms ease;
}

.skillstat-block:hover { background: rgba(0,0,0,0.02); }

.skillstat-block__info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.skillstat-block__img { width: 32px; height: 32px; object-fit: contain; }

.skillstat-block__val { font-weight: 600; color: var(--text); }

.skillstat-block__btns { display: flex; gap: 6px; }

.btn-stat {
    width: 36px;
    height: 36px;
    border: 1px solid var(--surface-border);
    background: #fff;
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 120ms ease;
    font-family: inherit;
}

.btn-stat:hover { background: rgba(0,0,0,0.06); }

/* -------- TROPHY / BADGE -------- */
.trophy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #b8860b;
}

.trophy-badge i { font-size: 18px; }

/* -------- EMPTY STATE -------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; max-width: 260px; line-height: 1.5; }

/* -------- STATUS DOT -------- */
.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
}

.status-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-dot--orange { color: #e07b00; }
.status-dot--green  { color: #28a745; }

/* -------- MOBILE BOTTOM NAV -------- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--surface-border);
    z-index: 9998;
    padding: 8px 0 12px;
    justify-content: space-around;
}

.mobile-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 12px;
    transition: color 140ms ease, background 140ms ease;
    border: none;
    background: none;
    font-family: inherit;
    text-decoration: none;
}

.mobile-nav__item i { font-size: 22px; }
.mobile-nav__item.active { color: var(--text); }
.mobile-nav__item:hover { color: var(--text); }

/* -------- DESKTOP FOOTER -------- */
.desktop-footer {
    text-align: center;
    padding: 2rem 0 1rem;
    font-size: 12px;
    color: var(--muted);
    position: relative;
    z-index: 1;
}

/* -------- LOGOUT BUTTON -------- */
.btn-logout {
    display: block;
    width: 100%;
    margin-top: 2rem;
    background: rgba(220,53,69,0.08);
    color: var(--danger);
    border: 1px solid rgba(220,53,69,0.2);
    border-radius: var(--radius-pill);
    padding: 14px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 140ms ease;
    text-align: center;
}

.btn-logout:hover { background: rgba(220,53,69,0.14); }

/* -------- FLASH MODAL -------- */
.flash-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.flash-overlay.is-visible { display: flex; }

.flash-card {
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
    position: relative;
    animation: flashIn 0.28s ease;
}

@keyframes flashIn {
    from { opacity: 0; transform: scale(0.93) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.flash-card__icon { font-size: 2.8rem; display: block; margin-bottom: 0.75rem; }
.flash-card__title { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.flash-card__message { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.flash-card__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.05);
    color: var(--muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 120ms ease;
}
.flash-card__close:hover { background: rgba(0,0,0,0.1); }

.flash-card--success .flash-card__icon { color: #28a745; }
.flash-card--error   .flash-card__icon { color: #dc3545; }
.flash-card--info    .flash-card__icon { color: #0d6efd; }
.flash-card--warning .flash-card__icon { color: #e07b00; }

/* -------- CONNECTED FOOTER DOCK -------- */
nav.footer-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 18px;
    margin: 0 auto;
    width: max-content;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(250,250,250,0.97) 52%, rgba(243,243,243,0.95) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow:
        0 16px 30px rgba(0,0,0,0.08),
        0 5px 12px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.98),
        inset 0 -8px 18px rgba(0,0,0,0.022);
    overflow: visible;
    isolation: isolate;
}

html[data-statplay-theme="dark"]:not(.admin-html) nav.footer-dock,
html[data-statplay-theme="dark"]:not(.admin-html) .mobile-nav,
html[data-statplay-theme="dark"]:not(.admin-html) .mobile-footer {
    background: rgba(7, 17, 31, 0.94);
    border-color: rgba(255,255,255,0.1);
}

html[data-statplay-theme="dark"]:not(.admin-html) nav.footer-dock::before,
html[data-statplay-theme="dark"]:not(.admin-html) nav.footer-dock::after {
    background: transparent;
}

html[data-statplay-theme="dark"]:not(.admin-html) .btn-primary,
html[data-statplay-theme="dark"]:not(.admin-html) .pack-button,
html[data-statplay-theme="dark"]:not(.admin-html) .account-pack-btn,
html[data-statplay-theme="dark"]:not(.admin-html) .join-button,
html[data-statplay-theme="dark"]:not(.admin-html) .reward-button,
html[data-statplay-theme="dark"]:not(.admin-html) .cta-home button,
html[data-statplay-theme="dark"]:not(.admin-html) .accept-btn,
html[data-statplay-theme="dark"]:not(.admin-html) .cancel-btn,
html[data-statplay-theme="dark"]:not(.admin-html) #stepActionBtn,
html[data-statplay-theme="dark"]:not(.admin-html) button[type="submit"] {
    background: #f4f8ff;
    color: #07111f;
}

nav.footer-dock::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -42px;
    transform: translateX(-50%);
    width: min(1200px, 96vw);
    height: 118px;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(
            ellipse at center bottom,
            rgba(255,255,255,0.9) 0%,
            rgba(255,255,255,0.7) 18%,
            rgba(255,255,255,0.42) 38%,
            rgba(255,255,255,0.18) 58%,
            rgba(255,255,255,0.06) 76%,
            rgba(255,255,255,0) 100%
        );
    filter: blur(12px);
}

nav.footer-dock::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.28) 38%, rgba(255,255,255,0) 100%);
    opacity: 0.9;
}

nav.footer-dock > a,
nav.footer-dock > button {
    border: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(248,248,248,0.84) 100%);
    text-decoration: none;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    gap: 0;
    padding: 0;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.78),
        inset 0 -6px 12px rgba(0,0,0,0.018);
    transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

nav.footer-dock > a.active,
nav.footer-dock > a:hover,
nav.footer-dock > button:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,244,244,0.94) 100%);
    color: var(--text);
    box-shadow:
        0 5px 10px rgba(0,0,0,0.045),
        inset 0 1px 0 rgba(255,255,255,0.96),
        inset 0 -8px 14px rgba(0,0,0,0.02);
    transform: translateY(-1px);
}

nav.footer-dock i {
    font-size: 1.12rem;
    color: #4f4f4f;
}

nav.footer-dock span {
    display: none;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
    .app-header { padding: 0 4%; }
    .app-header__nav { display: none; }
    .mobile-nav { display: flex; }
    .main-content { padding-bottom: 90px; }
    .desktop-footer { display: none; }
    .btn-row { flex-direction: column; }
    .btn-row .btn-nav-pill { max-width: 100%; }
    nav.footer-dock {
        gap: 10px;
        padding: 10px 12px;
    }
    nav.footer-dock > a,
    nav.footer-dock > button {
        width: 46px;
        height: 46px;
        padding: 0;
        justify-content: center;
        border-radius: 999px;
    }
    nav.footer-dock i {
        font-size: 1.12rem;
        color: #4f4f4f;
    }
}

@media (max-width: 480px) {
    .back-header { padding: 0 4%; }
    .main-content { padding: calc(var(--header-h) + 16px) 4% 80px; }
    nav.footer-dock::before {
        width: 110vw;
        height: 96px;
        bottom: -34px;
        filter: blur(10px);
    }
}

/* -------- MOBILE SAFETY (≤ 760px) -------- */
/*
 * Plafond de taille pour les composants récurrents de l'app.
 * Texte principal : 13px, sous-texte/date : 12px,
 * avatars/images : 28px, boutons d'action : 34×34px, icônes : 13px.
 * NE PAS toucher : inputs/search (garde 16px pour éviter le zoom iOS Safari).
 * NE PAS utiliser html body * — ciblage sélectif uniquement.
 */
@media (max-width: 760px) {

    /* ── Toolbars & labels ── */
    .section-label span,
    .toolbar-link {
        font-size: 12px;
    }

    /* ── État vide ── */
    .empty-state p {
        font-size: 13px;
    }
    .empty-state i {
        font-size: 2rem;
    }

    /* ── Boutons d'action ronds partagés (status, œil, voir) ── */
    .status-line,
    .view-btn,
    .voir-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 13px;
    }
    .status-line i,
    .view-btn i,
    .voir-btn i {
        font-size: 13px;
    }

    /* ── Cartes notifications ── */
    .notif-row__title,
    .notif-row__body {
        font-size: 13px;
        line-height: 1.35;
    }
    .notif-row__time,
    .notif-row__meta {
        font-size: 12px;
    }
    .notif-row__icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 14px;
    }

    /* ── Cartes mouvements PSD / ledger ── */
    .ledger-row__label,
    .ledger-row__amount {
        font-size: 13px;
    }
    .ledger-row__date,
    .ledger-row__ref {
        font-size: 12px;
    }

    /* ── Images totems & skillstats dans les vues app ── */
    .match-line img,
    .watch-player img,
    .totem-pick img,
    .totem-img,
    .skillstat-icon img,
    .skillstat-img {
        max-width: 28px;
        max-height: 28px;
        width: 28px;
        height: 28px;
    }

    /* ── Footer dock ── */
    nav.footer-dock > a,
    nav.footer-dock > button {
        width: 42px;
        height: 42px;
    }
    nav.footer-dock i {
        font-size: 1rem;
    }
}

/* -------- LEGACY TOURNAMENT COMPAT -------- */
.header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    padding: 0 5%;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left img[src$="logo.png"] {
    height: 28px;
    width: auto;
    filter: brightness(0);
}

.header-left .nav-links {
    display: flex;
    gap: 4px;
}

.header-left .nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: background 140ms ease, color 140ms ease;
}

.header-left .nav-links a:hover,
.header-left .nav-links a.active {
    background: rgba(0,0,0,0.06);
    color: var(--text);
}

.solde {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity 160ms ease;
    white-space: nowrap;
}

.solde:hover { opacity: 0.85; }

.solde i,
.profil i,
.footer-icon i,
.voir-btn i,
.search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.solde i { font-size: 16px; }

.profil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--surface-border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: background 140ms ease;
}

.profil:hover { background: rgba(0,0,0,0.05); }

.profil i { font-size: 20px; }

.mobile-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--surface-border);
    justify-content: space-around;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    z-index: 999;
}

.footer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
}

.footer-icon i {
    font-size: 20px;
    color: var(--text);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--muted);
    pointer-events: none;
}

.voir-btn i { font-size: 18px; }

@media screen and (max-width: 768px) {
    .header { padding: 10px 14px; }
    .header-left .nav-links { display: none; }
    .mobile-footer { display: flex; }
}

/* -------- DARK THEME HARDENING (client only) -------- */
html[data-statplay-theme="dark"]:not(.admin-html) .history-head,
html[data-statplay-theme="dark"]:not(.admin-html) .history-row,
html[data-statplay-theme="dark"]:not(.admin-html) .history-meta-chip,
html[data-statplay-theme="dark"]:not(.admin-html) .watch-row,
html[data-statplay-theme="dark"]:not(.admin-html) .watch-load-more-btn,
html[data-statplay-theme="dark"]:not(.admin-html) .watch-center,
html[data-statplay-theme="dark"]:not(.admin-html) .watch-score,
html[data-statplay-theme="dark"]:not(.admin-html) .join-chip,
html[data-statplay-theme="dark"]:not(.admin-html) .builder-card,
html[data-statplay-theme="dark"]:not(.admin-html) .summary-mode,
html[data-statplay-theme="dark"]:not(.admin-html) .summary-chip,
html[data-statplay-theme="dark"]:not(.admin-html) .summary-field,
html[data-statplay-theme="dark"]:not(.admin-html) .summary-field__icon,
html[data-statplay-theme="dark"]:not(.admin-html) .summary-readonly,
html[data-statplay-theme="dark"]:not(.admin-html) .content-card,
html[data-statplay-theme="dark"]:not(.admin-html) .choice-card,
html[data-statplay-theme="dark"]:not(.admin-html) .choice-card__badge,
html[data-statplay-theme="dark"]:not(.admin-html) .play-card,
html[data-statplay-theme="dark"]:not(.admin-html) .mode-card,
html[data-statplay-theme="dark"]:not(.admin-html) .marketplace-card,
html[data-statplay-theme="dark"]:not(.admin-html) .marketplace-item,
html[data-statplay-theme="dark"]:not(.admin-html) .transfer-card,
html[data-statplay-theme="dark"]:not(.admin-html) .transfer-panel,
html[data-statplay-theme="dark"]:not(.admin-html) .transfer-option,
html[data-statplay-theme="dark"]:not(.admin-html) .amount-card,
html[data-statplay-theme="dark"]:not(.admin-html) .wallet-card,
html[data-statplay-theme="dark"]:not(.admin-html) .profile-form,
html[data-statplay-theme="dark"]:not(.admin-html) .public-profile-card,
html[data-statplay-theme="dark"]:not(.admin-html) .public-avatar,
html[data-statplay-theme="dark"]:not(.admin-html) .public-stat,
html[data-statplay-theme="dark"]:not(.admin-html) .stat-tile,
html[data-statplay-theme="dark"]:not(.admin-html) .password-eye,
html[data-statplay-theme="dark"]:not(.admin-html) .summary-card,
html[data-statplay-theme="dark"]:not(.admin-html) .summary-pill,
html[data-statplay-theme="dark"]:not(.admin-html) .score-chip,
html[data-statplay-theme="dark"]:not(.admin-html) .stat-card,
html[data-statplay-theme="dark"]:not(.admin-html) .duel-panel,
html[data-statplay-theme="dark"]:not(.admin-html) .duel-card,
html[data-statplay-theme="dark"]:not(.admin-html) .round-card,
html[data-statplay-theme="dark"]:not(.admin-html) .winner-card,
html[data-statplay-theme="dark"]:not(.admin-html) .match-winner-card,
html[data-statplay-theme="dark"]:not(.admin-html) .next-round-card,
html[data-statplay-theme="dark"]:not(.admin-html) .allocation-row,
html[data-statplay-theme="dark"]:not(.admin-html) .allocation-card,
html[data-statplay-theme="dark"]:not(.admin-html) .alloc-row,
html[data-statplay-theme="dark"]:not(.admin-html) .alloc-input,
html[data-statplay-theme="dark"]:not(.admin-html) .skill-card,
html[data-statplay-theme="dark"]:not(.admin-html) .share-panel,
html[data-statplay-theme="dark"]:not(.admin-html) .share-card,
html[data-statplay-theme="dark"]:not(.admin-html) .share-link,
html[data-statplay-theme="dark"]:not(.admin-html) .copy-field,
html[data-statplay-theme="dark"]:not(.admin-html) .share-panel__socials a,
html[data-statplay-theme="dark"]:not(.admin-html) .share-panel__socials button,
html[data-statplay-theme="dark"]:not(.admin-html) .share-panel__copy,
html[data-statplay-theme="dark"]:not(.admin-html) .fighter-card__pending,
html[data-statplay-theme="dark"]:not(.admin-html) .fighter-card__score,
html[data-statplay-theme="dark"]:not(.admin-html) .winner-card__meta,
html[data-statplay-theme="dark"]:not(.admin-html) .winner-chip,
html[data-statplay-theme="dark"]:not(.admin-html) .reward-card,
html[data-statplay-theme="dark"]:not(.admin-html) .reward-field input,
html[data-statplay-theme="dark"]:not(.admin-html) .reward-field textarea,
html[data-statplay-theme="dark"]:not(.admin-html) .converter-sheet__panel,
html[data-statplay-theme="dark"]:not(.admin-html) .converter-input,
html[data-statplay-theme="dark"]:not(.admin-html) .purchase-modal,
html[data-statplay-theme="dark"]:not(.admin-html) .spotlight-row,
html[data-statplay-theme="dark"]:not(.admin-html) .board-row,
html[data-statplay-theme="dark"]:not(.admin-html) .duel-stage,
html[data-statplay-theme="dark"]:not(.admin-html) .round-panel,
html[data-statplay-theme="dark"]:not(.admin-html) .board-panel,
html[data-statplay-theme="dark"]:not(.admin-html) .profile-avatar,
html[data-statplay-theme="dark"]:not(.admin-html) .balance-field,
html[data-statplay-theme="dark"]:not(.admin-html) .balance-field input,
html[data-statplay-theme="dark"]:not(.admin-html) .btn-profile,
html[data-statplay-theme="dark"]:not(.admin-html) .mobile-search-toggle,
html[data-statplay-theme="dark"]:not(.admin-html) .search-close,
html[data-statplay-theme="dark"]:not(.admin-html) .market-card__map,
html[data-statplay-theme="dark"]:not(.admin-html) .converter-sheet__close,
html[data-statplay-theme="dark"]:not(.admin-html) .view-btn,
html[data-statplay-theme="dark"]:not(.admin-html) .voir-btn,
html[data-statplay-theme="dark"]:not(.admin-html) .alloc-btn,
html[data-statplay-theme="dark"]:not(.admin-html) .btn-ghost,
html[data-statplay-theme="dark"]:not(.admin-html) .load-more-btn,
html[data-statplay-theme="dark"]:not(.admin-html) .history-load-more-btn {
    background: rgba(10, 22, 38, 0.9) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: var(--text) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.22) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .history-row {
    border-bottom-color: rgba(255,255,255,0.08) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .history-row:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .watch-row:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .option-row:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .player-card:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .skillstat-block:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .btn-profile:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .profil:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .btn-eye:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .password-eye:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .view-btn:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .voir-btn:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .btn-nav-pill:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .choice-card:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .choice-card:has(input:checked),
html[data-statplay-theme="dark"]:not(.admin-html) .play-card:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .mode-card:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .marketplace-card:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .marketplace-item:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .transfer-option:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .fighter-card__pending:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .slider-arrow:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .dropdown-list li:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .search-suggest__item:hover,
html[data-statplay-theme="dark"]:not(.admin-html) .search-suggest__item.is-active {
    background: rgba(15, 31, 52, 0.98) !important;
    border-color: rgba(255,255,255,0.16) !important;
    color: #fff !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .notification-item.is-swiping .notification-card {
    background: linear-gradient(90deg, rgba(10,22,38,0.94) 20%, rgba(54,25,34,0.98) 100%) !important;
    border-color: rgba(220,53,69,0.34) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .notification-card.is-neutral .notification-card__icon,
html[data-statplay-theme="dark"]:not(.admin-html) .spotlight-row__status.is-tie,
html[data-statplay-theme="dark"]:not(.admin-html) .status-line.warning {
    background: rgba(255,255,255,0.1) !important;
    color: var(--muted) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .round-separator,
html[data-statplay-theme="dark"]:not(.admin-html) .sp-table tbody tr,
html[data-statplay-theme="dark"]:not(.admin-html) .history-row[data-deletable="1"]::before {
    border-color: rgba(255,255,255,0.08) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .round-separator {
    background: rgba(255,255,255,0.08) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .history-row[data-deletable="1"]::before {
    background: linear-gradient(90deg, rgba(220,53,69,0) 0%, rgba(220,53,69,0.13) 52%, rgba(220,53,69,0.24) 100%) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .search-suggest__empty,
html[data-statplay-theme="dark"]:not(.admin-html) .search-suggest__item-sub,
html[data-statplay-theme="dark"]:not(.admin-html) .notification-card__message,
html[data-statplay-theme="dark"]:not(.admin-html) .notification-card__time,
html[data-statplay-theme="dark"]:not(.admin-html) .load-more-btn,
html[data-statplay-theme="dark"]:not(.admin-html) .history-load-more-btn,
html[data-statplay-theme="dark"]:not(.admin-html) .section-label,
html[data-statplay-theme="dark"]:not(.admin-html) .section-label i,
html[data-statplay-theme="dark"]:not(.admin-html) .toolbar-link,
html[data-statplay-theme="dark"]:not(.admin-html) .timestamp-tag,
html[data-statplay-theme="dark"]:not(.admin-html) .history-kicker,
html[data-statplay-theme="dark"]:not(.admin-html) .spotlight-head,
html[data-statplay-theme="dark"]:not(.admin-html) .board-head,
html[data-statplay-theme="dark"]:not(.admin-html) .result-header__score,
html[data-statplay-theme="dark"]:not(.admin-html) .result-header__eyebrow,
html[data-statplay-theme="dark"]:not(.admin-html) .fighter-card__line,
html[data-statplay-theme="dark"]:not(.admin-html) .versus-badge,
html[data-statplay-theme="dark"]:not(.admin-html) .join-vs,
html[data-statplay-theme="dark"]:not(.admin-html) .match-line small,
html[data-statplay-theme="dark"]:not(.admin-html) .match-line .vs,
html[data-statplay-theme="dark"]:not(.admin-html) .watch-date,
html[data-statplay-theme="dark"]:not(.admin-html) .watch-score,
html[data-statplay-theme="dark"]:not(.admin-html) .watch-load-more-btn,
html[data-statplay-theme="dark"]:not(.admin-html) .join-fighter small,
html[data-statplay-theme="dark"]:not(.admin-html) .step-subtitle,
html[data-statplay-theme="dark"]:not(.admin-html) .choice-card small,
html[data-statplay-theme="dark"]:not(.admin-html) .summary-field__text span,
html[data-statplay-theme="dark"]:not(.admin-html) .summary-readonly__hint,
html[data-statplay-theme="dark"]:not(.admin-html) .transition-copy,
html[data-statplay-theme="dark"]:not(.admin-html) .footer-status,
html[data-statplay-theme="dark"]:not(.admin-html) .fighter-card__title,
html[data-statplay-theme="dark"]:not(.admin-html) .reward-field i,
html[data-statplay-theme="dark"]:not(.admin-html) .public-stat small,
html[data-statplay-theme="dark"]:not(.admin-html) .stat-tile small,
html[data-statplay-theme="dark"]:not(.admin-html) .content-card p,
html[data-statplay-theme="dark"]:not(.admin-html) .content-card li {
    color: var(--muted) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .search-suggest__item-main,
html[data-statplay-theme="dark"]:not(.admin-html) .search-suggest__item-main i,
html[data-statplay-theme="dark"]:not(.admin-html) .mobile-search-toggle,
html[data-statplay-theme="dark"]:not(.admin-html) .search-close,
html[data-statplay-theme="dark"]:not(.admin-html) .search-icon,
html[data-statplay-theme="dark"]:not(.admin-html) .btn-profile i,
html[data-statplay-theme="dark"]:not(.admin-html) .profil i,
html[data-statplay-theme="dark"]:not(.admin-html) .btn-eye i,
html[data-statplay-theme="dark"]:not(.admin-html) .view-btn i,
html[data-statplay-theme="dark"]:not(.admin-html) .voir-btn i,
html[data-statplay-theme="dark"]:not(.admin-html) .market-card__map i,
html[data-statplay-theme="dark"]:not(.admin-html) .market-card__icon i,
html[data-statplay-theme="dark"]:not(.admin-html) .converter-sheet__close i,
html[data-statplay-theme="dark"]:not(.admin-html) .alloc-btn i,
html[data-statplay-theme="dark"]:not(.admin-html) .btn-ghost i,
html[data-statplay-theme="dark"]:not(.admin-html) .watch-toolbar i,
html[data-statplay-theme="dark"]:not(.admin-html) .join-chip i,
html[data-statplay-theme="dark"]:not(.admin-html) .btn-nav-pill i,
html[data-statplay-theme="dark"]:not(.admin-html) .password-eye i,
html[data-statplay-theme="dark"]:not(.admin-html) .mobile-footer .footer-icon i,
html[data-statplay-theme="dark"]:not(.admin-html) .footer-icon i,
html[data-statplay-theme="dark"]:not(.admin-html) nav.footer-dock i {
    color: #f4f8ff !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .flash-card {
    background: rgba(10, 22, 38, 0.98) !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: var(--text) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,0.42) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .flash-card__close {
    background: rgba(255,255,255,0.08) !important;
    color: #f4f8ff !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .flash-overlay {
    background: rgba(3, 8, 18, 0.72) !important;
    backdrop-filter: blur(10px) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) #flashCancelBtn {
    background: rgba(255,255,255,0.1) !important;
    color: #f4f8ff !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) #flashConfirmBtn {
    background: #f4f8ff !important;
    color: #07111f !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .market-card__icon {
    background: rgba(15, 31, 52, 0.98) !important;
    color: #f4f8ff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .market-card__meta i {
    color: #aebbd0 !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .market-card__map {
    background: rgba(10, 22, 38, 0.96) !important;
    border-color: rgba(255,255,255,0.14) !important;
    color: #f4f8ff !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .market-card__map:hover {
    background: rgba(18, 37, 61, 0.98) !important;
    color: #fff !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .account-pack-btn {
    background: #f4f8ff !important;
    color: #07111f !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .account-pack-btn i {
    color: #07111f !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .converter-sheet {
    background: rgba(3, 8, 18, 0.72) !important;
    backdrop-filter: blur(8px) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .converter-sheet__panel {
    background: rgba(7, 17, 31, 0.98) !important;
    border-top-color: rgba(255,255,255,0.12) !important;
    box-shadow: 0 -28px 80px rgba(0,0,0,0.54) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .converter-sheet__grabber {
    background: rgba(244,248,255,0.22) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .converter-input {
    background: rgba(10, 22, 38, 0.94) !important;
    border-color: rgba(255,255,255,0.12) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .converter-sheet__close {
    background: rgba(255,255,255,0.08) !important;
    color: #f4f8ff !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .purchase-modal__row {
    border-bottom-color: rgba(255,255,255,0.08) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .btn-primary,
html[data-statplay-theme="dark"]:not(.admin-html) .pack-button,
html[data-statplay-theme="dark"]:not(.admin-html) .join-button,
html[data-statplay-theme="dark"]:not(.admin-html) .reward-button,
html[data-statplay-theme="dark"]:not(.admin-html) .cta-home button,
html[data-statplay-theme="dark"]:not(.admin-html) .accept-btn,
html[data-statplay-theme="dark"]:not(.admin-html) .cancel-btn,
html[data-statplay-theme="dark"]:not(.admin-html) #stepActionBtn,
html[data-statplay-theme="dark"]:not(.admin-html) button[type="submit"] {
    background: #f4f8ff !important;
    border-color: #f4f8ff !important;
    color: #07111f !important;
    box-shadow: 0 14px 34px rgba(244,248,255,0.12) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .btn-primary i,
html[data-statplay-theme="dark"]:not(.admin-html) .join-button i,
html[data-statplay-theme="dark"]:not(.admin-html) .reward-button i,
html[data-statplay-theme="dark"]:not(.admin-html) .cta-home button i,
html[data-statplay-theme="dark"]:not(.admin-html) .accept-btn i,
html[data-statplay-theme="dark"]:not(.admin-html) .cancel-btn i,
html[data-statplay-theme="dark"]:not(.admin-html) button[type="submit"] i {
    color: #07111f !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .btn-disabled-look,
html[data-statplay-theme="dark"]:not(.admin-html) button:disabled {
    opacity: 0.46 !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .step-progress__dot,
html[data-statplay-theme="dark"]:not(.admin-html) .progress-dot,
html[data-statplay-theme="dark"]:not(.admin-html) .progress-bar__track,
html[data-statplay-theme="dark"]:not(.admin-html) .loader-track {
    background: rgba(244,248,255,0.16) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .step-progress__dot.is-active,
html[data-statplay-theme="dark"]:not(.admin-html) .step-progress__dot.is-done,
html[data-statplay-theme="dark"]:not(.admin-html) .progress-dot.is-active,
html[data-statplay-theme="dark"]:not(.admin-html) .progress-dot.is-done,
html[data-statplay-theme="dark"]:not(.admin-html) .progress-bar__fill,
html[data-statplay-theme="dark"]:not(.admin-html) .loader-fill {
    background: #f4f8ff !important;
    color: #07111f !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .choice-card:has(input:checked) {
    border-color: rgba(244,248,255,0.82) !important;
    box-shadow: 0 16px 34px rgba(244,248,255,0.08), 0 18px 50px rgba(0,0,0,0.24) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .choice-card:has(input:checked) .choice-card__badge,
html[data-statplay-theme="dark"]:not(.admin-html) .is-selected .choice-card__badge,
html[data-statplay-theme="dark"]:not(.admin-html) .selected .choice-card__badge,
html[data-statplay-theme="dark"]:not(.admin-html) input:checked + .choice-card__badge {
    background: #f4f8ff !important;
    border-color: #f4f8ff !important;
    color: #07111f !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .waiting-spinner,
html[data-statplay-theme="dark"]:not(.admin-html) .refined-spinner,
html[data-statplay-theme="dark"]:not(.admin-html) .loader,
html[data-statplay-theme="dark"]:not(.admin-html) .spinner {
    border-color: rgba(244,248,255,0.18) !important;
    border-top-color: #f4f8ff !important;
    border-right-color: rgba(244,248,255,0.58) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) .mark img,
html[data-statplay-theme="dark"]:not(.admin-html) .logo-stage img[src$="logo.png"] {
    filter: brightness(0) invert(1) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) nav.footer-dock,
html[data-statplay-theme="dark"]:not(.admin-html) .mobile-footer {
    background: rgba(7, 17, 31, 0.94) !important;
    border-color: rgba(255,255,255,0.12) !important;
    box-shadow: 0 18px 44px rgba(0,0,0,0.5) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) nav.footer-dock > a,
html[data-statplay-theme="dark"]:not(.admin-html) nav.footer-dock > button {
    background: rgba(10, 22, 38, 0.88) !important;
    color: #f4f8ff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

html[data-statplay-theme="dark"]:not(.admin-html) nav.footer-dock > a.active,
html[data-statplay-theme="dark"]:not(.admin-html) nav.footer-dock > a:hover,
html[data-statplay-theme="dark"]:not(.admin-html) nav.footer-dock > button:hover {
    background: rgba(18, 37, 61, 0.96) !important;
    color: #fff !important;
}
