:root {
    --slavia-red: #c8102e;
    --slavia-red-dark: #9c0c24;
    --slavia-navy: #0d1b2a;
    --op-line: #dee2e6;
    --op-line2: #e9ecef;
    --op-card2: #f8f9fa;
    --op-mut: #6c757d;
    --op-gold: #a9720b;
    --op-gold-bg: #fff3cd;
    --op-gold-line: #ffe69c;
    --op-green: #146c43;
    --op-green-bg: #d1e7dd;
    --op-green-line: #a3cfbb;
    --op-blue: #1a56db;
    --op-blue-bg: #cfe2ff;
    --op-blue-line: #9ec5fe;
    --op-purple: #6f42c1;
    --op-purple-bg: #e6d9f8;
    --op-purple-line: #d3b8f0;
}

body {
    background: #f4f5f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main { flex: 1 0 auto; }
.onboarding-panel { padding: .8rem 1rem; background: #fff; border: 1px solid #e2e6ea; border-left: 4px solid var(--slavia-red); border-radius: .8rem; box-shadow: 0 .25rem 1rem rgba(10, 29, 48, .07); }
.onboarding-summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.onboarding-summary h2 { display: inline; margin: 0 .45rem 0 0; color: var(--slavia-navy); font-size: .88rem; font-weight: 850; }
.onboarding-summary span { color: var(--op-mut); font-size: .72rem; white-space: nowrap; }
.onboarding-controls { display: flex; flex: none; align-items: center; gap: .45rem; }
.onboarding-controls > a { color: var(--slavia-red); font-size: .7rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.onboarding-controls > a:hover { text-decoration: underline; }
.onboarding-toggle { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .35rem; color: var(--op-mut); background: transparent; border: 0; font-size: .7rem; font-weight: 700; }
.onboarding-toggle:hover { color: var(--slavia-red); }
.onboarding-track { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .25rem; margin: .65rem .25rem .7rem; padding: 0; list-style: none; }
.onboarding-track::before { position: absolute; top: .65rem; right: 5%; left: 5%; height: 2px; background: #e2e6ea; content: ''; }
.onboarding-step { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; align-items: center; gap: .2rem; color: #87919a; }
.onboarding-dot { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; color: #6f7b86; background: #edf0f3; border-radius: 50%; box-shadow: 0 0 0 3px #fff; font-size: .62rem; font-weight: 850; }
.onboarding-label { overflow: hidden; width: 100%; font-size: .58rem; font-weight: 650; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.onboarding-step.is-done .onboarding-dot { color: #fff; background: #198754; }
.onboarding-step.is-current { color: var(--slavia-navy); }
.onboarding-step.is-current .onboarding-dot { color: #fff; background: var(--slavia-red); }
.onboarding-step.is-unavailable { opacity: .45; }
.onboarding-action { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .65rem; background: #f7f9fb; border-radius: .55rem; }
.onboarding-action-copy { min-width: 0; }
.onboarding-action-copy strong { display: block; color: var(--slavia-navy); font-size: .78rem; }
.onboarding-action-copy strong i { color: var(--slavia-red); }
.onboarding-action-copy span { display: block; overflow: hidden; color: var(--op-mut); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.onboarding-action.is-complete { color: var(--op-green); background: var(--op-green-bg); }
.onboarding-panel.is-collapsed { padding-block: .55rem; }
.onboarding-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.onboarding-detail-progress { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; min-width: 5rem; padding: .65rem 1rem; background: #fff; border: 1px solid var(--op-line); border-radius: .8rem; }
.onboarding-detail-progress strong { color: var(--slavia-red); font-size: 1.35rem; line-height: 1; }
.onboarding-detail-progress span { margin-top: .2rem; color: var(--op-mut); font-size: .68rem; }
.onboarding-detail-list { position: relative; display: grid; gap: .75rem; max-width: 60rem; margin: 0 auto; }
.onboarding-detail-list::before { position: absolute; top: 2rem; bottom: 2rem; left: 1.45rem; width: 2px; background: #dfe4e8; content: ''; }
.onboarding-detail-step { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: 1rem; background: #fff; border: 1px solid var(--op-line); border-radius: .85rem; box-shadow: 0 .2rem .8rem rgba(10, 29, 48, .05); }
.onboarding-detail-step.is-current { border-color: rgba(200, 16, 46, .45); box-shadow: 0 .25rem 1rem rgba(200, 16, 46, .09); }
.onboarding-detail-step.is-unavailable { opacity: .62; }
.onboarding-detail-icon { z-index: 1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: #687581; background: #edf0f3; border: 4px solid #fff; border-radius: 50%; font-size: 1rem; }
.onboarding-detail-step.is-done .onboarding-detail-icon { color: #fff; background: #198754; }
.onboarding-detail-step.is-current .onboarding-detail-icon { color: #fff; background: var(--slavia-red); }
.onboarding-detail-copy { min-width: 0; }
.onboarding-detail-copy h2 { margin: 0 0 .2rem; color: var(--slavia-navy); font-size: 1rem; font-weight: 800; }
.onboarding-detail-copy p { margin: 0; color: var(--op-mut); font-size: .8rem; }
.onboarding-detail-number { color: var(--op-mut); font-size: .62rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 575.98px) {
    .onboarding-panel { padding: .7rem .8rem; }
    .onboarding-summary h2 { display: block; }
    .onboarding-track { margin-bottom: .55rem; }
    .onboarding-label { display: none; }
    .onboarding-action-copy span { display: none; }
    .onboarding-toggle span { display: none; }
    .onboarding-detail-header { align-items: flex-start; }
    .onboarding-detail-progress { min-width: 4.2rem; padding: .55rem .7rem; }
    .onboarding-detail-step { grid-template-columns: 2.6rem minmax(0, 1fr); padding: .85rem; }
    .onboarding-detail-step > .btn { grid-column: 2; justify-self: start; }
    .onboarding-detail-list::before { left: 1.27rem; }
    .onboarding-detail-icon { width: 2.4rem; height: 2.4rem; }
}
.home-hub-card { display: block; padding: 1.25rem; background: #fff; border: 1px solid #e4e7eb; border-radius: 1rem; box-shadow: 0 .35rem 1.2rem rgba(10, 29, 48, .08); text-decoration: none; overflow: hidden; }
.home-hub-heading { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.home-hub-heading > div > span { display: block; color: #7a8490; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.home-hub-heading h2 { margin: 0; color: var(--slavia-navy); font-size: 1.25rem; font-weight: 850; }
.home-hub-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; color: #fff; background: var(--slavia-red); border-radius: .8rem; font-size: 1.25rem; }
.home-hub-community .home-hub-icon { background: var(--slavia-navy); }
.home-hub-other .home-hub-icon { color: #382700; background: linear-gradient(145deg, #ffe391, #d9a72e); }
.home-hub-links { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.home-hub-links a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; min-height: 4.25rem; padding: .65rem .75rem; color: var(--slavia-navy); background: #f5f7f9; border: 1px solid #e8ebee; border-radius: .7rem; font-size: .85rem; text-decoration: none; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.home-hub-links a:hover { background: #fff; border-color: rgba(207, 15, 46, .4); transform: translateY(-2px); }
.home-hub-links a > i:first-child { color: var(--slavia-red); font-size: 1.05rem; }
.home-hub-links a > i:last-child { color: #a1a8b0; font-size: .7rem; }
.home-hub-link-copy { min-width: 0; }
.home-hub-link-copy strong { display: block; font-size: .88rem; font-weight: 800; line-height: 1.2; }
.home-hub-link-copy small { display: block; margin-top: .22rem; overflow: hidden; color: #66717d; font-size: .7rem; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.news-box.news-box-authenticated { width: 100%; max-width: none; }
.news-box.news-box-authenticated > .card-body { width: 100%; max-width: none; }
.newsletter-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .45rem; background: #f4f6f8; border: 1px solid var(--op-line); border-bottom: 0; border-radius: .6rem .6rem 0 0; }
.newsletter-toolbar button { min-width: 2.2rem; padding: .32rem .5rem; color: var(--slavia-navy); background: #fff; border: 1px solid #d9dee3; border-radius: .35rem; font-size: .75rem; font-weight: 700; }
.newsletter-toolbar button:hover { color: var(--slavia-red); border-color: #d9aab2; }
.newsletter-color { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .4rem; background: #fff; border: 1px solid #d9dee3; border-radius: .35rem; cursor: pointer; }
.newsletter-color input { width: 1.4rem; height: 1.25rem; padding: 0; border: 0; background: transparent; cursor: pointer; }
.newsletter-editor { min-height: 22rem; padding: 1.25rem; overflow: auto; background: #fff; border: 1px solid var(--op-line); border-radius: 0 0 .6rem .6rem; outline: none; }
.newsletter-editor:focus { border-color: rgba(200,16,46,.5); box-shadow: 0 0 0 .2rem rgba(200,16,46,.1); }
.newsletter-editor img { max-width: 100%; height: auto; }
.newsletter-preview { display: block; width: 100%; min-height: 70vh; border: 0; background: #f3f5f7; }
.newsletter-webhook-summary { cursor: pointer; list-style: none; }
.newsletter-webhook-summary::-webkit-details-marker { display: none; }
.newsletter-stats-table th, .newsletter-stats-table td { min-width: 6rem; }
.newsletter-stats-table th:first-child, .newsletter-stats-table td:first-child { min-width: 15rem; }

.auth-mode-nav {
  gap: .25rem;
  padding: .25rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  background: var(--bs-tertiary-bg);
}
.auth-mode-nav .nav-link {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .5rem .35rem;
  color: var(--slavia-navy);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}
.auth-mode-nav .nav-link.active { background: var(--slavia-red); }

/* Barevné pilulky (kurz/koeficient/stav) — vzhled podle designového návrhu (slavia-tiket.html) */
.pill {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .22rem .6rem;
    border-radius: 20px;
    line-height: 1.4;
}
.pill-red { background: #fdecef; color: var(--slavia-red); }
.pill-gold { background: var(--op-gold-bg); color: var(--op-gold); }
.pill-green { background: var(--op-green-bg); color: var(--op-green); }
.pill-blue { background: var(--op-blue-bg); color: var(--op-blue); }
.pill-purple { background: var(--op-purple-bg); color: var(--op-purple); }
.pill-grey { background: var(--op-card2); color: var(--op-mut); border: 1px solid var(--op-line); }

.navbar-slavia {
    background: var(--slavia-navy);
    border-bottom: 4px solid var(--slavia-red);
    box-shadow: 0 3px 10px rgba(13, 27, 42, .12);
}

.navbar-slavia .navbar-brand,
.navbar-slavia .nav-link {
    color: #fff !important;
}

.navbar-slavia .nav-link.active {
    color: var(--slavia-red) !important;
    font-weight: 600;
}

.op-app-switcher { position: fixed; top: 14px; right: 18px; z-index: 999999; }
.op-app-switcher-button { display: flex; min-height: 46px; align-items: center; gap: .6rem; padding: .3rem .55rem; color: var(--slavia-navy); background: #fff; border: 1px solid rgba(13,27,42,.12); border-radius: .65rem; box-shadow: 0 2px 8px rgba(24,37,69,.08); text-align: left; }
.op-app-switcher-button:hover, .op-app-switcher-button.show { color: var(--slavia-navy); background: #f6f7fb; }
.op-app-switcher-mark { display: inline-grid; width: 1.7rem; height: 1.7rem; place-items: center; color: var(--slavia-navy); background: #fff; border-radius: .45rem; font-size: .58rem; font-weight: 900; letter-spacing: -.03em; }
.op-app-switcher-label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.op-app-switcher-label small { color: #687386; font-size: .62rem; font-weight: 400; }
.op-app-switcher-menu { width: 17.5rem; padding: .45rem; border: 1px solid rgba(13,27,42,.1); border-radius: .75rem; box-shadow: 0 .9rem 2.2rem rgba(13,27,42,.18); }
.op-app-switcher-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .65rem; min-height: 3.3rem; padding: .55rem .65rem; border-radius: .5rem; }
.op-app-switcher-item > i:first-child { display: none; }
.op-app-switcher-item > span { display: flex; min-width: 0; flex-direction: column; }
.op-app-switcher-item strong { color: var(--slavia-navy); font-size: .78rem; line-height: 1.2; }
.op-app-switcher-item small { margin-top: .15rem; color: var(--op-mut); font-size: .65rem; }
.op-app-switcher-item.active { color: inherit; background: #f3f5f7; }
.op-app-switcher-item.active:hover, .op-app-switcher-item.active:focus { color: inherit; background: #edf0f3; }
.op-app-switcher-check { color: #198754; font-size: .85rem; }

@media (min-width: 992px) and (max-width: 1199.98px) {
    .op-app-switcher-label { display: none; }
}

@media (max-width: 480px) {
    .op-app-switcher { top: 10px; right: 10px; }
    .op-app-switcher-label { display: none; }
    .op-app-switcher-menu { position: fixed !important; top: 66px !important; right: 10px !important; left: 10px !important; width: auto; transform: none !important; }
}

.nav-menu-icon {
    display: inline-block;
    width: 1.35rem;
    margin-right: .35rem;
    text-align: center;
}

.dropdown-item .nav-menu-icon { color: var(--slavia-red); }
.dropdown-item.active .nav-menu-icon { color: inherit; }

.nav-chat-unread {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-left: .2rem;
    padding: 0 .25rem;
    color: #fff;
    background: var(--slavia-red);
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: super;
}

.competition-menu-logos {
    display: inline-flex;
    flex: 0 0 1.35rem;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 1.25rem;
}

.competition-menu-logos img {
    position: absolute;
    width: .85rem;
    height: .85rem;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(13, 27, 42, .12);
}

.competition-menu-logos img:nth-child(1) { transform: translate(-.35rem, -.2rem); }
.competition-menu-logos img:nth-child(2) { transform: translate(.35rem, -.2rem); }
.competition-menu-logos img:nth-child(3) { transform: translate(0, .35rem); }
.match-club-logo { width: 1.45em; height: 1.45em; margin-right: .35rem; object-fit: contain; vertical-align: -.35em; }
.match-club-separator { margin: 0 .15rem; color: var(--bs-secondary-color); }
.chat-club-picker { width: min(20rem, 85vw); max-height: 20rem; overflow-y: auto; }
.chat-club-choice { display: flex; align-items: center; width: 100%; gap: .65rem; padding: .45rem .6rem; color: inherit; background: transparent; border: 0; border-radius: .4rem; text-align: left; }
.chat-club-choice:hover { background: var(--bs-tertiary-bg); }
.chat-club-choice img { width: 2rem; height: 2rem; object-fit: contain; }
.chat-club-logo { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; margin: 0 .15rem; vertical-align: middle; }
.chat-club-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.btn-slavia {
    background: var(--slavia-red);
    border-color: var(--slavia-red);
    color: #fff;
}

.text-slavia {
    color: var(--slavia-red);
}

.border-slavia {
    border-color: var(--slavia-red) !important;
}

.btn-slavia:hover {
    background: var(--slavia-red-dark);
    border-color: var(--slavia-red-dark);
    color: #fff;
}

/* Jednotné zakončení formulářů s hlavní ukládací akcí. */
.form-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-save {
    min-width: 10.5rem;
    font-weight: 600;
}

/* Přehledný formulář zápasového tipu. */
.match-tip-section {
    padding: 1rem;
    background: #f8f9fb;
    border: 1px solid var(--op-line2);
    border-radius: .85rem;
}
.match-tip-section-heading {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .9rem;
}
.match-tip-section-heading h3 { margin: 0; color: var(--slavia-navy); font-size: .95rem; font-weight: 800; }
.match-tip-section-heading small { display: block; color: var(--op-mut); font-size: .72rem; }
.match-tip-section-icon {
    display: grid;
    flex: 0 0 2rem;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: var(--slavia-red);
    background: #fdecef;
    border-radius: .6rem;
    font-size: 1rem;
}
.match-result-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.match-result-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-height: 4.25rem;
    padding: .5rem .25rem;
    color: var(--slavia-navy);
    background: #fff;
    border: 1px solid var(--op-line);
    border-radius: .65rem;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}
.match-result-option i { font-size: 1.15rem; }
.match-result-option:hover { border-color: #d6aeb5; background: #fff9fa; transform: translateY(-1px); }
.btn-check:focus-visible + .match-result-option,
.btn-check:focus-visible + .match-joker-toggle { outline: 3px solid rgba(207, 15, 45, .22); outline-offset: 2px; }
.btn-check:checked + .match-result-option { color: #fff; background: var(--slavia-red); border-color: var(--slavia-red); }
.match-score-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: .75rem; }
.match-score-inputs label { min-width: 0; margin: 0; color: var(--slavia-navy); font-size: .78rem; font-weight: 700; text-align: center; }
.match-score-inputs label > span { display: block; overflow: hidden; margin-bottom: .35rem; text-overflow: ellipsis; white-space: nowrap; }
.match-score-inputs input { height: 3.25rem; font-size: 1.35rem; font-weight: 800; text-align: center; }
.match-score-divider { padding-bottom: .75rem; color: var(--op-mut); font-size: 1.35rem; font-weight: 800; }
.match-tip-note { margin-top: .65rem; color: var(--op-mut); font-size: .72rem; }
.match-joker-section { background: #fffaf0; border-color: var(--op-gold-line); }
.match-joker-section .match-tip-section-icon { color: var(--op-gold); background: var(--op-gold-bg); }
.match-joker-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 3rem;
    padding: .65rem;
    color: var(--op-gold);
    background: #fff;
    border: 1px solid var(--op-gold-line);
    border-radius: .65rem;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 800;
    text-align: center;
}
.btn-check:checked + .match-joker-toggle { color: #fff; background: var(--op-gold); border-color: var(--op-gold); }
.btn-check:disabled + .match-joker-toggle { cursor: default; opacity: .75; }

.credit-bar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.credit-bar.over-limit .credit-value {
    color: var(--slavia-red);
    font-weight: 700;
}

.question-card {
    background: #fff;
    border: 1px solid var(--op-line2);
    border-radius: .5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.question-card .scope-badge {
    font-size: .72rem;
    letter-spacing: .02em;
}

.branch-vote-tabs {
    border-radius: .8rem;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .08);
}

.branch-tabs-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    background: #eef0f3;
    border-radius: .8rem .8rem 0 0;
}

.branch-vote-tabs .nav-tabs {
    width: max-content;
    min-width: 100%;
    border-bottom: 0;
    padding: .45rem .45rem 0;
    gap: .2rem;
}

.branch-vote-tabs .nav-link {
    flex: 0 0 auto;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--slavia-navy);
    font-weight: 600;
    border: 0;
    border-radius: .55rem .55rem 0 0;
    padding: .65rem .85rem;
}

.branch-vote-tabs .nav-link:hover {
    color: var(--slavia-red);
    background: rgba(255, 255, 255, .55);
}

.branch-vote-tabs .nav-link.active {
    color: var(--slavia-red);
    background: #fff;
    box-shadow: inset 0 3px 0 var(--slavia-red);
}

.branch-tab-number {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: .4rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, .08);
    font-size: .72rem;
}

.branch-vote-tabs .nav-link.active .branch-tab-number {
    color: #fff;
    background: var(--slavia-red);
}

.branch-vote-panel {
    min-height: 16rem;
    background: #fff;
    border-radius: 0 0 .8rem .8rem;
}

.branch-vote-form .form-select {
    min-width: 0;
}

.branch-vote-results {
    max-height: 18rem;
    overflow-y: auto;
    border-top: 1px solid var(--op-line2);
}

/* Odbočka: stejné povrchy, ikony a klikací karty jako v tipovacích částech. */
.branch-join-card,
.branch-share-card,
.branch-hero-card {
    padding: 1rem;
    background: #f8f9fb;
    border: 1px solid var(--op-line2);
    border-radius: .85rem;
    box-shadow: 0 3px 12px rgba(13, 27, 42, .05);
}
.branch-join-card { background: #fff8f9; border-color: #f2c7ce; }
.branch-share-card { background: #f6f9fc; border-color: #dce5ed; }
.branch-directory-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--op-line2);
    border-radius: .85rem;
    box-shadow: 0 3px 12px rgba(13, 27, 42, .05);
}
.branch-directory-card.is-highlighted { border-color: var(--slavia-red); box-shadow: inset 3px 0 0 var(--slavia-red), 0 3px 12px rgba(13, 27, 42, .05); }
.branch-directory-card form { flex-basis: 100%; }
.branch-directory-icon {
    display: grid;
    flex: 0 0 2.5rem;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--slavia-red);
    background: #fdecef;
    border-radius: .7rem;
}
.branch-hero-card { border-top: 4px solid var(--slavia-red); }
.branch-share-card .input-group { max-width: 52rem; }
.branch-share-card input[readonly] { color: var(--slavia-navy); background: #fff; font-size: .82rem; }

/* Soukromá časová osa postupného zisku bodů. */
.points-progress-summary > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.points-progress-summary span { color: var(--op-mut); font-size: .78rem; }
.points-progress-summary strong { color: var(--slavia-red); font-size: 1.35rem; }
.points-progress-summary small { display: block; margin-top: .55rem; color: var(--op-mut); }
.points-progress-track { height: .65rem; margin-top: .75rem; overflow: hidden; background: #e4e8ec; border-radius: 999px; }
.points-progress-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--slavia-red), #e64861); border-radius: inherit; }
.points-timeline { position: relative; max-width: 54rem; margin-inline: auto; }
.points-timeline::before { content: ''; position: absolute; top: 1.2rem; bottom: 1.2rem; left: 1.2rem; width: 2px; background: #dfe3e7; }
.points-timeline-item { position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .85rem; margin-bottom: 1rem; }
.points-timeline-icon { display: grid; z-index: 1; place-items: center; width: 2.5rem; height: 2.5rem; color: #fff; background: var(--slavia-red); border: 4px solid #f4f5f7; border-radius: 50%; font-size: .8rem; }
.points-timeline-card { padding: .85rem 1rem; background: #fff; border: 1px solid var(--op-line2); border-radius: .8rem; box-shadow: 0 3px 12px rgba(13, 27, 42, .05); }
.points-timeline-card h2 { margin: .4rem 0 0; color: var(--slavia-navy); font-size: .95rem; font-weight: 800; }
.points-timeline-card time { color: var(--op-mut); font-size: .7rem; }
.points-gain { display: block; color: var(--op-green); font-size: 1.05rem; }
.points-gain + small { display: block; color: var(--op-mut); font-size: .7rem; }

.lineup-player-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    margin: 0 0 .25rem;
    padding: .5rem .55rem;
    background: #fff;
    border: 1px solid var(--op-line2);
    border-radius: .55rem;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.lineup-player-row:last-child { margin-bottom: 0; }
.lineup-player-row:hover { border-color: #d6aeb5; background: #fff9fa; transform: translateY(-1px); }
.lineup-player-row:focus-within { outline: 3px solid rgba(207, 15, 45, .2); outline-offset: 1px; }
.lineup-player-row.is-selected { border-color: var(--slavia-red); background: #fff1f3; box-shadow: inset 3px 0 0 var(--slavia-red); }
.lineup-player-row:has(.lineup-checkbox:disabled):not(.is-selected) { cursor: not-allowed; opacity: .48; transform: none; }
.lineup-selection-indicator {
    display: grid;
    flex: 0 0 1.4rem;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    color: transparent;
    background: #fff;
    border: 1px solid #b8c0c8;
    border-radius: 50%;
    font-size: .85rem;
}
.lineup-player-row.is-selected .lineup-selection-indicator { color: #fff; background: var(--slavia-red); border-color: var(--slavia-red); }
.lineup-player-points { font-size: .72rem; }

.odds-pill {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--op-gold);
    background: var(--op-gold-bg);
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 20px;
}

.credit-track {
    height: 8px;
    background: var(--op-line2);
    border-radius: 5px;
    margin-top: .55rem;
    overflow: hidden;
}

.credit-track i {
    display: block;
    height: 100%;
    background: var(--slavia-red);
    border-radius: 5px;
    transition: width .25s;
}

.credit-bar.over-limit .credit-track i {
    background: var(--op-gold);
}

.credit-input-group input[type=number] {
    max-width: 5.5rem;
    text-align: center;
}

.credit-slider {
    width: 100%;
}

.value-range-group input[type=range] {
    width: 100%;
}

.value-range-group input[type=number] {
    max-width: 5.5rem;
    text-align: center;
}

/* Sezónní tiket používá stejný vizuální jazyk jako zápasová tipovačka. */
.ticket-question-card {
    padding: 1rem;
    background: #f8f9fb;
    border: 1px solid var(--op-line2);
    border-radius: .85rem;
    box-shadow: 0 3px 12px rgba(13, 27, 42, .05);
}
.ticket-question-heading { display: flex; align-items: center; gap: .7rem; }
.ticket-question-heading h2 { display: inline; margin: 0 .4rem 0 0; color: var(--slavia-navy); font-size: 1rem; font-weight: 800; }
.ticket-question-description { margin: .65rem 0 0 2.7rem; color: var(--op-mut); font-size: .78rem; }
.ticket-question-body { margin-top: 1rem; padding: .85rem; background: #fff; border: 1px solid var(--op-line2); border-radius: .7rem; }
.ticket-answer-control { margin-bottom: .85rem; }
.ticket-credit-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .45rem; color: var(--slavia-navy); font-size: .75rem; }
.ticket-credit-heading span { color: var(--op-mut); font-weight: 500; }
.ticket-question-card .payout-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .4rem .75rem;
    margin-top: .75rem;
    padding: .55rem .7rem;
    color: var(--op-mut);
    background: #fff8e6;
    border-radius: .5rem;
    font-size: .75rem;
}
.ticket-question-card .payout-pts { color: var(--op-gold); font-size: .9rem; }
.ticket-status-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.ticket-status-item { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--op-line2); border-radius: .75rem; }
.ticket-status-item > i { display: grid; flex: 0 0 2rem; place-items: center; width: 2rem; height: 2rem; color: var(--slavia-red); background: #fdecef; border-radius: .55rem; }
.ticket-status-item span { color: var(--op-mut); font-size: .72rem; }
.ticket-status-item strong { display: block; color: var(--slavia-navy); font-size: 1rem; }
.ticket-saved-card { padding: 1rem; background: #f8f9fb; border: 1px solid var(--op-line2); border-radius: .85rem; box-shadow: 0 3px 12px rgba(13, 27, 42, .05); }
.ticket-saved-description { margin: .8rem 0 0; padding-left: .8rem; color: var(--op-mut); border-left: 3px solid rgba(207, 15, 46, .3); font-size: .84rem; line-height: 1.5; }
.ticket-saved-answer { margin-top: 1rem; padding: .8rem; background: #fff; border: 1px solid var(--op-line2); border-radius: .65rem; }
.ticket-saved-answer span { display: block; margin-bottom: .2rem; color: var(--op-mut); font-size: .7rem; text-transform: uppercase; }
.ticket-saved-answer strong { color: var(--slavia-navy); font-size: 1rem; }
.ticket-saved-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: .7rem; overflow: hidden; background: #fff; border: 1px solid var(--op-line2); border-radius: .65rem; }
.ticket-saved-stats > div { padding: .65rem; text-align: center; border-right: 1px solid var(--op-line2); }
.ticket-saved-stats > div:last-child { border-right: 0; }
.ticket-saved-stats span { display: block; color: var(--op-mut); font-size: .68rem; }
.ticket-saved-stats strong { display: block; margin-top: .15rem; color: var(--slavia-navy); font-size: .9rem; }
.ticket-change-form { padding: .85rem; background: #fff; border: 1px solid var(--op-line2); border-radius: .65rem; }

/* Los LM: celá dlaždice týmu je klikací stejně jako hráč v sestavě. */
.los-basket-section { box-shadow: 0 3px 12px rgba(13, 27, 42, .05); }
.los-team-option {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    min-height: 3rem;
    padding: .65rem .7rem;
    color: var(--slavia-navy);
    background: #fff;
    border: 1px solid var(--op-line);
    border-radius: .6rem;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.los-team-option:hover { border-color: #d6aeb5; background: #fff9fa; transform: translateY(-1px); }
.los-team-option:focus-within { outline: 3px solid rgba(207, 15, 45, .2); outline-offset: 1px; }
.los-team-option.is-selected { border-color: var(--slavia-red); background: #fff1f3; box-shadow: inset 3px 0 0 var(--slavia-red); }
.los-team-option.is-selected .lineup-selection-indicator { color: #fff; background: var(--slavia-red); border-color: var(--slavia-red); }
.los-team-option:has(.basket-checkbox:disabled):not(.is-selected) { cursor: not-allowed; opacity: .48; transform: none; }
.los-share-preview { display: block; width: 100%; height: 100%; min-height: 18rem; object-fit: cover; background: var(--slavia-navy); }
.match-bonus-section { background: #fffaf0; }

.match-round-badge { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 4.5rem; padding: .38rem .58rem; color: #fff; background: var(--slavia-navy); border-radius: .55rem; font-size: .7rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.match-date-label { color: var(--op-mut); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.match-schedule-times { display: grid; justify-items: end; gap: .28rem; }
.match-window-label { color: #176c49; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.match-schedule-list { display: grid; gap: .55rem; }
.match-schedule-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--op-line2); border-radius: .8rem; box-shadow: 0 3px 12px rgba(13, 27, 42, .05); }
.match-schedule-main { display: flex; min-width: 0; align-items: center; gap: .65rem; }
.match-schedule-main > strong { min-width: 0; }
.match-competition-label { display: inline-flex; flex: 0 0 auto; align-items: center; padding: .28rem .5rem; color: var(--op-mut); background: #f7f8fa; border: 1px solid var(--op-line); border-radius: .45rem; font-size: .7rem; font-weight: 700; }
.match-history-wrap { overflow: hidden; background: #fff; border: 1px solid var(--op-line2); border-radius: .85rem; box-shadow: 0 4px 16px rgba(13, 27, 42, .06); }
.match-history-table thead th { padding: .7rem .85rem; color: var(--op-mut); background: #f7f8fa; border-bottom-color: var(--op-line); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.match-history-table tbody td { padding: .85rem; border-bottom-color: var(--op-line2); }
.match-history-table tbody tr:last-child td { border-bottom: 0; }
.match-history-table tbody tr:hover td { background: #fffafb; }
.match-row-meta { margin-top: .25rem; color: var(--op-mut); font-size: .72rem; white-space: nowrap; }
.match-final-score { display: inline-block; min-width: 3.2rem; padding: .3rem .5rem; color: #fff; background: var(--slavia-navy); border-radius: .45rem; font-size: 1rem; font-weight: 900; text-align: center; }
.match-points-pill { display: inline-block; padding: .3rem .5rem; color: #176c49; background: #eaf7f1; border-radius: .45rem; font-size: .78rem; font-weight: 800; white-space: nowrap; }

/* Administrace zápasu: pracovní postup sestava → góly → výsledek. */
.admin-match-workflow { display: flex; flex-direction: column; gap: .75rem; }
.admin-match-step { padding: 1rem; border: 1px solid var(--op-line2); border-radius: .75rem; background: #fafbfc; }
.admin-match-step-lineup { order: 1; }
.admin-match-step-goals { order: 2; }
.admin-match-step-result { order: 3; }
.admin-match-step-heading { display: flex; align-items: center; gap: .7rem; margin-bottom: .75rem; }
.admin-match-step-heading > span { display: grid; flex: 0 0 1.8rem; width: 1.8rem; height: 1.8rem; place-items: center; color: #fff; background: var(--op-red); border-radius: 50%; font-size: .8rem; font-weight: 800; }
.admin-match-step-heading strong, .admin-match-step-heading small { display: block; }
.admin-match-step-heading small { margin-top: .1rem; color: var(--op-mut); }
.admin-match-step details > summary { cursor: pointer; color: var(--op-mut); font-size: .85rem; font-weight: 700; }
.admin-match-step details[open] > summary { margin-bottom: .75rem; }
@media (max-width: 767.98px) {
  .admin-match-step { padding: .8rem; }
  .admin-match-step-heading { align-items: flex-start; }
}

.opliga-banner-link {
    width: 100%;
}

.opliga-banner-carousel {
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
    border-radius: .5rem;
    box-shadow: 0 4px 14px rgba(13, 27, 42, .1);
    overflow: hidden;
}

.opliga-banner-media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 1;
    background: #e9ecef;
}

.opliga-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.opliga-banner-target {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-width: 0;
    padding: .45rem .75rem;
    color: var(--slavia-navy);
    background: #fff;
    border-top: 1px solid var(--op-line);
    font-size: .78rem;
    text-decoration: none;
}

.opliga-banner-target span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.opliga-banner-target:hover,
.opliga-banner-target:focus-visible {
    color: var(--slavia-red);
    text-decoration: underline;
}

.opliga-banner-carousel .carousel-control-prev,
.opliga-banner-carousel .carousel-control-next {
    width: 9%;
    opacity: 0;
    transition: opacity .2s ease;
}

.opliga-banner-carousel:hover .carousel-control-prev,
.opliga-banner-carousel:hover .carousel-control-next,
.opliga-banner-carousel:focus-within .carousel-control-prev,
.opliga-banner-carousel:focus-within .carousel-control-next {
    opacity: .85;
}

@media (max-width: 767.98px) {
    .ticket-status-panel { grid-template-columns: 1fr; }
    .opliga-banner-carousel .carousel-control-prev,
    .opliga-banner-carousel .carousel-control-next { opacity: .7; }
    .match-schedule-row { grid-template-columns: auto minmax(0, 1fr); }
    .match-schedule-row .match-schedule-times { grid-column: 2; justify-items: start; }
    .match-schedule-main { align-items: flex-start; flex-direction: column; gap: .35rem; }
}

.banner-thumb {
    max-height: 90px;
    max-width: 100%;
}

.welcome-crown {
    height: 70px;
    width: auto;
}

.news-box {
    max-width: 40rem;
}

.news-item {
    padding: 1rem;
    background: #f8f9fb;
    border: 1px solid #e7eaee;
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(13, 27, 42, .035);
}

.news-item > div {
    flex: 1 1 auto;
    min-width: 0;
}

.news-item-title {
    position: relative;
    padding-bottom: .3rem;
    font-size: 1.075rem;
    font-weight: 650;
    line-height: 1.3;
}

.news-item-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--slavia-red) 0%, rgba(206, 17, 38, .55) 55%, transparent 100%);
}

.news-item + .news-item {
    margin-top: .75rem;
}

.welcome-box {
    max-width: 40rem;
    border-top: 4px solid var(--slavia-red) !important;
    border-radius: .75rem;
}

.dev-mail-box {
    border: 2px dashed var(--slavia-red);
    background: #fff8f8;
}

/* Patička */
.site-footer {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, .72);
    background: var(--slavia-navy);
    border-top: 4px solid var(--slavia-red);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -9rem;
    right: -6rem;
    width: 22rem;
    height: 22rem;
    border: 4rem solid rgba(255, 255, 255, .025);
    border-radius: 50%;
    pointer-events: none;
}

.footer-brand {
    color: #fff;
    text-decoration: none;
}

.footer-brand:hover { color: #fff; }

.footer-logo-wrap {
    display: grid;
    flex: 0 0 3.5rem;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background: #fff;
    border-radius: .9rem;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
}

.footer-logo-wrap img {
    width: 2.8rem;
    height: 2.8rem;
    object-fit: contain;
}

.footer-brand strong {
    display: block;
    font-size: 1.05rem;
}

.footer-brand small {
    display: block;
    color: rgba(255, 255, 255, .55);
    font-size: .75rem;
}

.footer-description {
    max-width: 31rem;
    line-height: 1.65;
}

.footer-title {
    margin-bottom: .8rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    width: fit-content;
    color: rgba(255, 255, 255, .68);
    font-size: .88rem;
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-links i {
    width: 1rem;
    color: #e15269;
    text-align: center;
}

.footer-bottom {
    position: relative;
    color: rgba(255, 255, 255, .5);
    background: rgba(0, 0, 0, .18);
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .75rem;
}

.footer-test-note { color: rgba(255, 255, 255, .58); }
.footer-version-link {
    color: rgba(255, 255, 255, .68);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .3);
    text-underline-offset: .18em;
}
.footer-version-link:hover { color: #fff; }

/* Historie aktualizací */
.updates-hero { max-width: 44rem; margin-right: auto; margin-left: auto; }
.updates-current-version {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .75rem;
    color: var(--slavia-red);
    background: #fff0f3;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}
.updates-list { max-width: 48rem; margin-right: auto; margin-left: auto; }
.update-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: .8rem;
    box-shadow: 0 .2rem .7rem rgba(13, 27, 42, .05);
}
.update-item + .update-item { margin-top: .75rem; }
.update-icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    color: #fff;
    background: var(--slavia-red);
    border-radius: .65rem;
}
.update-title { margin: 0; color: var(--slavia-navy); font-size: 1rem; font-weight: 800; }
.update-meta { display: flex; flex-wrap: wrap; gap: .35rem .75rem; margin-top: .3rem; color: #737d87; font-size: .75rem; }
.update-hash { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.wallet-add-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 750; }
.wallet-add-button i { font-size: 1.05rem; }

.wallet-add-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 750; }
.wallet-add-button i { font-size: 1.05rem; }

/* Žebříček */
.ranking-kicker {
    display: block;
    margin-bottom: .15rem;
    color: var(--slavia-red);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ranking-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--op-line2);
    border-radius: 1rem;
    box-shadow: 0 5px 18px rgba(13, 27, 42, .08);
}

.ranking-card .min-w-0 { min-width: 0; }

.ranking-card::after {
    content: '';
    position: absolute;
    right: -2rem;
    bottom: -2.5rem;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: currentColor;
    opacity: .06;
}

.ranking-medal {
    display: grid;
    flex: 0 0 3rem;
    place-items: center;
    width: 3rem;
    height: 3rem;
    color: #fff;
    border-radius: .85rem;
    font-size: 1.35rem;
}

.ranking-card-gold { color: #a9720b; border-top: 4px solid #d6a325; }
.ranking-card-gold .ranking-medal { background: linear-gradient(135deg, #e8bd4b, #a9720b); }
.ranking-card-silver { color: #65717e; border-top: 4px solid #aeb7c0; }
.ranking-card-silver .ranking-medal { background: linear-gradient(135deg, #bdc5cc, #65717e); }
.ranking-card-bronze { color: #965b32; border-top: 4px solid #bb7545; }
.ranking-card-bronze .ranking-medal { background: linear-gradient(135deg, #cb8c60, #884d28); }
.ranking-place { color: var(--op-mut); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.ranking-name { color: var(--slavia-navy); font-size: 1.05rem; font-weight: 800; }
.ranking-score { color: currentColor; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ranking-score small { color: var(--op-mut); font-size: .72rem; font-weight: 600; }

.ranking-table-card,
.division-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--op-line2);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(13, 27, 42, .07);
}

.ranking-table thead th {
    padding: .85rem 1rem;
    background: #f0f2f5;
    border-bottom: 1px solid var(--op-line);
    color: #59636e !important;
    font-size: .72rem !important;
    font-weight: 800;
    letter-spacing: .025em;
    white-space: nowrap;
    text-transform: uppercase;
}

.ranking-table tbody td { padding: .85rem 1rem; border-color: #eef0f2; }
.ranking-table tbody tr:last-child td { border-bottom: 0; }
.ranking-table tbody tr:hover td { background: #fffafb; }
.ranking-top-row td { background: #fffdf7; }
.ranking-position {
    display: inline-grid;
    place-items: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 .35rem;
    background: #f0f2f5;
    border-radius: 50%;
    color: var(--slavia-navy);
    font-size: .78rem;
    font-weight: 800;
}
.ranking-top-row .ranking-position { background: #fdecef; color: var(--slavia-red); }
.ranking-player-name { color: var(--slavia-navy); white-space: nowrap; }
.ranking-avatar {
    display: grid;
    flex: 0 0 2.5rem;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--slavia-navy), #29445d);
    border: 2px solid #fff;
    border-radius: .75rem;
    box-shadow: 0 2px 7px rgba(13, 27, 42, .16);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-decoration: none;
}
.ranking-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ranking-avatar-podium { flex-basis: 3rem; width: 3rem; height: 3rem; border-radius: .85rem; font-size: .85rem; }
.ranking-avatar:hover { color: #fff; transform: translateY(-1px); }

.division-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--op-line2);
}

.division-podium {
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border-bottom: 1px solid var(--op-line2);
}

.division-ranking-card {
    min-height: 7.5rem;
    box-shadow: 0 3px 12px rgba(13, 27, 42, .06);
}

.division-badge {
    display: inline-block;
    padding: .35rem .75rem;
    color: #fff;
    background: var(--slavia-navy);
    border-radius: .55rem;
    font-size: .8rem;
    font-weight: 800;
}

/* Duely */
.duel-hero { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.5rem; color: #fff; background: linear-gradient(135deg, var(--slavia-navy), #1f3d57); border-radius: 1rem; box-shadow: 0 6px 20px rgba(13,27,42,.14); }
.duel-hero-icon { display: grid; flex: 0 0 3.4rem; place-items: center; width: 3.4rem; height: 3.4rem; color: #fff; background: var(--slavia-red); border-radius: .9rem; font-size: 1.5rem; }
.duel-section-card, .duel-match-card { overflow: hidden; border: 1px solid var(--op-line2); border-radius: 1rem; box-shadow: 0 4px 16px rgba(13,27,42,.07); }
.duel-suggestion { display: flex; align-items: center; gap: .85rem; padding: .8rem 0; border-top: 1px solid var(--op-line2); }
.duel-player-avatar { display: grid; flex: 0 0 3rem; place-items: center; width: 3rem; height: 3rem; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--slavia-navy), #29445d); border-radius: .8rem; font-size: .78rem; font-weight: 900; text-decoration: none; }
.duel-player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.duel-match-header { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) minmax(10rem,auto); align-items: center; gap: 1rem; }
.duel-player { display: flex; align-items: center; gap: .75rem; min-width: 0; color: var(--slavia-navy); text-decoration: none; }
.duel-player:hover { color: var(--slavia-red); }
.duel-versus { color: var(--op-mut); font-size: .75rem; font-weight: 900; }
.duel-status { display: flex; align-items: flex-end; flex-direction: column; gap: .4rem; justify-self: end; text-align: right; }
@media (max-width: 767.98px) {
    .duel-suggestion { align-items: flex-start; flex-wrap: wrap; }
    .duel-suggestion > .d-flex { width: 100%; padding-left: 3.85rem; }
    .duel-match-header { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
    .duel-status { grid-column: 1 / -1; align-items: flex-start; justify-self: stretch; padding-top: .75rem; border-top: 1px solid var(--op-line2); text-align: left; }
    .duel-player { flex-direction: column; align-items: flex-start; font-size: .82rem; }
}

/* Komunitní chat */
.chat-sidebar,
.chat-panel { border-radius: 1rem; overflow: hidden; }
.chat-room-members { background: #f8f9fb; }
.chat-sidebar { position: sticky; top: 1rem; }
.chat-sidebar .list-group-item.active {
    color: #fff;
    background: var(--slavia-red);
    border-color: var(--slavia-red);
}
.chat-room-link {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .45rem;
    padding: .45rem .55rem;
    color: var(--slavia-navy);
    border-radius: .5rem;
    font-size: .85rem;
    text-decoration: none;
}
.chat-room-link:hover { color: var(--slavia-red); background: #f8f9fa; }
.chat-room-link.active { color: #fff; background: var(--slavia-navy); }
.chat-room-link small { opacity: .65; }
.chat-member-picker { max-height: 12rem; overflow-y: auto; }
.chat-messages {
    height: min(55vh, 34rem);
    min-height: 22rem;
    overflow-y: auto;
    padding: 1.25rem;
    background: #f5f6f8;
}
.chat-message { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.chat-message:target .chat-bubble { outline: 2px solid rgba(207,15,46,.28); outline-offset: 2px; }
.chat-message-mine { flex-direction: row-reverse; }
.chat-avatar {
    display: grid;
    flex: 0 0 2.35rem;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    color: #fff;
    background: var(--slavia-navy);
    border-radius: .7rem;
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
}
.chat-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.chat-message-mine .chat-avatar { background: var(--slavia-red); }
.chat-avatar-virtual { background: linear-gradient(135deg, #6f42c1, #311b6b); cursor: default; }
.chat-message-virtual .chat-bubble { border-color: rgba(111,66,193,.3); background: #faf8ff; }
.chat-virtual-label { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .1rem .42rem; background: #eee8ff; color: #5c35a5; font-size: .66rem; font-weight: 800; }
.prizes-hero { padding: 1rem 0 1.5rem; }
.prizes-hero-icon { display: inline-grid; place-items: center; width: 5rem; height: 5rem; border-radius: 1.5rem; background: linear-gradient(135deg, #f7d774, #b8860b); color: #fff; font-size: 2.3rem; box-shadow: 0 .75rem 2rem rgba(184,134,11,.22); transform: rotate(-3deg); }
.prize-card { overflow: hidden; border-top: .3rem solid #d5ae36 !important; transition: transform .18s ease, box-shadow .18s ease; }
.prize-card:hover { transform: translateY(-3px); box-shadow: 0 .8rem 2rem rgba(20,30,55,.12) !important; }
.prize-number { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .55rem; border-radius: 999px; background: var(--slavia-navy); color: #fff; font-size: .78rem; font-weight: 800; }
.prize-recipient { display: flex; align-items: flex-start; gap: .65rem; padding: .75rem; border-radius: .75rem; background: #fff8df; color: #765b00; font-weight: 700; }
.share-page-icon { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; color: #fff; background: var(--slavia-red); font-size: 1.5rem; box-shadow: 0 .65rem 1.5rem rgba(207,15,46,.22); }
.share-promo-visual { position: relative; aspect-ratio: 1; overflow: hidden; background-position: center; background-size: cover; }
.share-promo-visual::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, rgba(5,18,31,.9) 0%, rgba(5,18,31,.05) 48%, rgba(5,18,31,.9) 100%); }
.share-promo-copy { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 8%; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.share-promo-brand { padding-left: .65rem; border-left: .35rem solid var(--slavia-red); color: #f1ca62; font-size: clamp(.75rem, 2vw, 1rem); font-weight: 900; letter-spacing: .08em; }
.share-promo-copy h2 { max-width: 92%; margin-top: 1rem; font-size: clamp(1.65rem, 4.2vw, 3.1rem); font-weight: 950; line-height: .98; }
.share-promo-copy p { max-width: 90%; margin: auto 0 .5rem; font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 700; }
.share-promo-copy strong { color: #f1ca62; }
.share-admin-thumb { aspect-ratio: 2 / 1; object-fit: cover; object-position: center; }
.chat-bubble {
    max-width: min(78%, 42rem);
    padding: .7rem .85rem;
    background: #fff;
    border: 1px solid var(--op-line2);
    border-radius: .25rem .85rem .85rem .85rem;
    box-shadow: 0 2px 8px rgba(13, 27, 42, .05);
}
.chat-message-mine .chat-bubble {
    background: #fff7f8;
    border-color: #f4cbd2;
    border-radius: .85rem .25rem .85rem .85rem;
}
.chat-author { color: var(--slavia-navy); font-size: .82rem; font-weight: 800; text-decoration: none; }
.chat-verified { color: #198754; font-size: .82rem; }
.chat-karma-badge { display: inline-flex; align-items: center; gap: .18rem; padding: .08rem .35rem; border-radius: 999px; background: #eef1f4; color: #5e6872; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.chat-karma-badge.is-stormy { background: #fcebec; color: #a52834; }
.chat-karma-badge.is-talker { background: #e8f2ff; color: #175ca8; }
.chat-karma-badge.is-voice { background: #e8f7ef; color: #146c43; }
.chat-karma-badge.is-pillar { background: #fff3cd; color: #806000; }
.chat-karma-badge.is-legend { background: linear-gradient(135deg, #fff3c4, #f1cf68); color: #684d00; }
.chat-karma-score::before { content: '·'; margin-right: .18rem; opacity: .55; }
.chat-bubble time { font-size: .68rem; }
.chat-body { color: #28313b; font-size: .92rem; overflow-wrap: anywhere; }
.chat-reactions { display: flex; align-items: center; gap: .35rem; margin-top: .45rem; }
.chat-reaction-button, .chat-reactions-readonly > span {
    display: inline-flex; align-items: center; gap: .18rem; min-width: 2.2rem; padding: .14rem .42rem;
    border: 1px solid #dce1e6; border-radius: 999px; background: #fff; color: #6c757d;
    font-size: .7rem; font-weight: 800; line-height: 1.2;
}
.chat-reaction-button:hover { border-color: #adb5bd; color: var(--slavia-navy); }
.chat-reaction-button:disabled { opacity: .6; }
.chat-reaction-positive.is-active { border-color: #75b798; background: #e9f7ef; color: #146c43; }
.chat-reaction-negative.is-active { border-color: #ea868f; background: #fcebec; color: #b02a37; }
.chat-reactions-readonly > span { border-color: transparent; background: transparent; }
.chat-duel-link { color: var(--bs-secondary-color); font-size: .72rem; text-decoration: none; }
.chat-duel-link:hover { color: var(--slavia-red); }
.chat-duel-link span { margin-left: .2rem; }
.chat-reply-button { display: inline-flex; align-items: center; gap: .2rem; padding: 0; color: #7b8490; background: none; border: 0; font-size: .68rem; }
.chat-reply-button:hover { color: var(--slavia-red); }
.chat-reply-quote { display: flex; flex-direction: column; margin: .15rem 0 .45rem; padding: .45rem .6rem; overflow: hidden; color: inherit; background: rgba(10,29,48,.055); border-left: 3px solid var(--slavia-red); border-radius: .3rem; text-decoration: none; }
.chat-reply-quote strong { color: var(--slavia-red); font-size: .7rem; }
.chat-reply-quote span { overflow: hidden; color: #626b75; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-reply-preview { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; padding: .55rem .7rem; color: var(--slavia-navy); background: #f5f7f9; border-left: 3px solid var(--slavia-red); border-radius: .4rem; }
.chat-reply-preview > span { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.chat-reply-preview strong, .chat-reply-preview small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-reply-preview small { color: #69737e; }
.chat-reply-preview button { color: #69737e; background: none; border: 0; }
.chat-external-link { overflow-wrap: anywhere; font-weight: 650; }
.chat-external-link .bi { font-size: .7em; }
.chat-read-receipt { display: flex; justify-content: flex-end; align-items: center; gap: .2rem; margin-top: .3rem; color: rgba(255,255,255,.78); font-size: .66rem; font-weight: 700; }
.chat-read-receipt.is-read { color: #b9f3ff; }
.chat-emoji-picker { grid-template-columns: repeat(4, 2.8rem); gap: .3rem; min-width: auto; }
.chat-emoji-picker.show { display: grid; }
.chat-emoji-choice {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: .55rem;
}
.chat-emoji-choice:hover, .chat-emoji-choice:focus-visible { background: #f0f2f5; outline: 2px solid rgba(196, 18, 48, .2); }
.chat-animated-emoji { display: inline-block; font-size: 1.65rem; line-height: 1; transform-origin: center; }
.chat-body .chat-animated-emoji { margin: 0 .08rem; vertical-align: -.22em; }
.chat-emoji-bounce { animation: chatEmojiBounce 1.15s ease-in-out infinite; }
.chat-emoji-shake { animation: chatEmojiShake .8s ease-in-out infinite; }
.chat-emoji-pulse { animation: chatEmojiPulse 1.1s ease-in-out infinite; }
.chat-emoji-tilt { animation: chatEmojiTilt 1.2s ease-in-out infinite; }
.chat-emoji-pop { animation: chatEmojiPop 1.25s ease-in-out infinite; }
.chat-emoji-sway { animation: chatEmojiSway 1.4s ease-in-out infinite; }
.chat-emoji-rumble { animation: chatEmojiRumble .55s linear infinite; }
.chat-emoji-spin { animation: chatEmojiSpin 2.2s linear infinite; }
@keyframes chatEmojiBounce { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-.25em) scale(1.08); } }
@keyframes chatEmojiShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes chatEmojiPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes chatEmojiTilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(16deg); } }
@keyframes chatEmojiPop { 0%, 100% { transform: scale(.92); } 40% { transform: scale(1.22); } 60% { transform: scale(1); } }
@keyframes chatEmojiSway { 0%, 100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(.12em) rotate(7deg); } }
@keyframes chatEmojiRumble { 0%, 100% { transform: translate(0); } 25% { transform: translate(-.06em, .02em); } 75% { transform: translate(.06em, -.02em); } }
@keyframes chatEmojiSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .chat-animated-emoji { animation: none !important; } }
.chat-mention { color: var(--slavia-red); font-weight: 700; text-decoration: none; }
.chat-match-mention {
    display: inline-block;
    padding: .1rem .4rem;
    color: var(--op-blue);
    background: var(--op-blue-bg);
    border-radius: .35rem;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}
.chat-empty {
    display: grid;
    place-items: center;
    align-content: center;
    height: 100%;
    color: var(--op-mut);
    text-align: center;
}
.chat-empty i { margin-bottom: .5rem; font-size: 2rem; }
.chat-compose-text { resize: vertical; min-height: 5rem; }
.chat-tag-control { width: min(18rem, 100%); }
.chat-mention-search { position: relative; }
.chat-mention-suggestions { position: absolute; z-index: 1080; right: 0; bottom: calc(100% + .3rem); left: 0; max-height: 15rem; overflow-y: auto; padding: .3rem; background: #fff; border: 1px solid var(--op-line2); border-radius: .5rem; box-shadow: 0 .6rem 1.5rem rgba(13,27,42,.16); }
.chat-mention-suggestion { display: block; width: 100%; padding: .45rem .6rem; color: var(--slavia-navy); background: transparent; border: 0; border-radius: .35rem; font-size: .82rem; font-weight: 700; text-align: left; }
.chat-mention-suggestion:hover, .chat-mention-suggestion:focus { color: var(--slavia-red); background: #fff3f5; outline: none; }
.chat-recent-list { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.chat-recent-item {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .6rem;
    color: var(--slavia-navy);
    border: 1px solid var(--op-line2);
    border-radius: .75rem;
    text-decoration: none;
}
.chat-recent-item:hover { color: var(--slavia-red); background: #fafbfc; border-color: #e3b2ba; }
.chat-recent-icon { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; overflow: hidden; color: #fff; background: var(--slavia-navy); border-radius: .65rem; }
.chat-recent-icon img { width: 100%; height: 100%; object-fit: cover; }
.chat-recent-preview, .chat-recent-time { color: var(--op-mut); font-size: .68rem; }
.chat-recent-time { display: block; margin-top: .1rem; }
.chat-los-card { display: block; max-width: 28rem; margin-top: .5rem; overflow: hidden; color: var(--slavia-navy); background: #fff; border: 1px solid var(--op-line); border-radius: .7rem; text-decoration: none; }
.chat-los-card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.chat-los-card span { display: block; padding: .55rem .7rem; font-size: .78rem; font-weight: 700; }
.chat-los-card:hover { color: var(--slavia-red); border-color: #d6aeb5; }

/* Veřejná hráčská karta */
.player-card-page { max-width: 58rem; }
.player-share-card {
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0d1b2a 0%, #172f48 70%, #243f58 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1.15rem;
    box-shadow: 0 12px 35px rgba(13, 27, 42, .2);
}
.player-card-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.player-card-top .min-w-0 { min-width: 0; }
.player-card-avatar {
    display: grid;
    flex: 0 0 4.4rem;
    place-items: center;
    width: 4.4rem;
    height: 4.4rem;
    color: #fff;
    background: linear-gradient(135deg, #df3652, var(--slavia-red-dark));
    border: 3px solid rgba(255, 255, 255, .2);
    border-radius: 1.2rem;
    font-size: 1.8rem;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.player-card-avatar-image { object-fit: cover; }
.navbar-user-avatar { width: 1.55rem; height: 1.55rem; margin-right: .2rem; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; object-fit: cover; }
.admin-user-avatar-cell { width: 3.2rem; }
.admin-user-avatar { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--slavia-navy), #29445d); border-radius: 50%; font-size: .85rem; font-weight: 900; text-decoration: none; }
.admin-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Admin: season settings */
.settings-page { max-width: 82rem; margin: 0 auto; }
.settings-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; padding: .2rem .15rem .8rem; color: var(--slavia-navy); border-bottom: 1px solid var(--op-line2); }
.settings-hero h1 { margin: .08rem 0 .15rem; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 900; }
.settings-hero p { max-width: 48rem; margin: 0; color: var(--op-mut); font-size: .78rem; }
.settings-eyebrow { color: var(--slavia-red); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.settings-role-badge { flex: none; padding: .35rem .6rem; color: #476071; background: #eef3f7; border-radius: 2rem; font-size: .68rem; font-weight: 700; }
.settings-role-badge i { margin-right: .25rem; color: #198754; }
.settings-saved { display: flex; align-items: center; gap: .75rem; border: 0; box-shadow: 0 .25rem .8rem rgba(25,135,84,.1); }
.settings-saved > i { font-size: 1.4rem; }
.settings-form { display: grid; gap: .65rem; }
.settings-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; padding: .25rem; background: #edf1f5; border: 1px solid var(--op-line2); border-radius: .65rem; }
.settings-tab { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.4rem; padding: .4rem .6rem; color: #526779; border-radius: .45rem; font-size: .73rem; font-weight: 800; text-align: center; text-decoration: none; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.settings-tab:hover { color: var(--slavia-navy); background: rgba(255,255,255,.65); }
.settings-tab.is-active { color: var(--slavia-red); background: #fff; box-shadow: 0 .2rem .65rem rgba(13,27,42,.09); }
.settings-tab i { font-size: 1rem; }
.settings-section { padding: 1rem; background: #fff; border: 1px solid var(--op-line2); border-radius: .65rem; }
.settings-section-head { display: flex; gap: .65rem; align-items: center; margin-bottom: .8rem; }
.settings-section-head h2 { margin: .05rem 0 .2rem; color: var(--slavia-navy); font-size: 1.05rem; font-weight: 850; }
.settings-section-head p { margin: 0; color: var(--op-mut); font-size: .72rem; line-height: 1.35; }
.settings-section-icon { display: grid; flex: 0 0 2rem; place-items: center; width: 2rem; height: 2rem; color: var(--slavia-red); background: #fff0f3; border-radius: .5rem; font-size: .9rem; }
.settings-competition-card { height: 100%; padding: .8rem; background: #f8fafc; border: 1px solid var(--op-line2); border-radius: .55rem; }
.settings-competition-card h3 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .65rem; color: var(--slavia-navy); font-size: .84rem; font-weight: 850; }
.settings-competition-mark { width: .55rem; height: .55rem; background: var(--slavia-red); border-radius: 50%; box-shadow: 0 0 0 .25rem rgba(207,15,46,.1); }
.settings-competition-mark.is-blue { background: #376fc3; box-shadow: 0 0 0 .25rem rgba(55,111,195,.1); }
.settings-field + .settings-field { margin-top: .6rem; }
.settings-form .form-label { margin-bottom: .35rem; color: #32485b; font-size: .78rem; font-weight: 750; }
.settings-form .form-control, .settings-form .input-group-text { min-height: 2.3rem; padding-top: .4rem; padding-bottom: .4rem; border-color: #dce2e8; font-size: .82rem; }
.settings-form .form-control:focus { border-color: #d98694; box-shadow: 0 0 0 .2rem rgba(207,15,46,.1); }
.settings-form .input-group-text { color: var(--op-mut); background: #fff; font-size: .75rem; }
.settings-form .form-text { font-size: .7rem; line-height: 1.45; }
.settings-note { display: flex; gap: .45rem; align-items: flex-start; margin-top: .65rem; padding: .5rem .65rem; color: #526779; background: #f2f6fa; border-radius: .45rem; font-size: .69rem; line-height: 1.35; }
.settings-note i { color: #3976a8; }
.settings-danger-check { padding: .6rem .75rem .6rem 2.15rem; background: #fff8f1; border: 1px solid #f0dbc5; border-radius: .5rem; }
.settings-danger-check .form-check-input { margin-left: -1.45rem; }
.settings-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.settings-service-card { display: grid; grid-template-columns: 2.2rem minmax(0,1fr); gap: .6rem; padding: .75rem; border: 1px solid var(--op-line2); border-radius: .55rem; }
.settings-service-logo { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--slavia-navy); background: #eef3f7; border-radius: .65rem; }
.settings-savebar { position: sticky; z-index: 20; bottom: .75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .9rem .8rem 1rem; background: rgba(255,255,255,.96); border: 1px solid var(--op-line2); border-radius: .9rem; box-shadow: 0 .65rem 1.8rem rgba(13,27,42,.14); backdrop-filter: blur(10px); }
.settings-savebar span { color: var(--op-mut); font-size: .72rem; }
.settings-savebar .btn { min-width: 10.5rem; }
.settings-savebar .btn i { margin-right: .3rem; }
@media (max-width: 767.98px) {
    .settings-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-hero { padding: 1.2rem; }
    .settings-role-badge { display: none; }
    .settings-section { padding: 1rem; }
    .settings-service-grid { grid-template-columns: 1fr; }
    .settings-savebar span { display: none; }
    .settings-savebar .btn { width: 100%; }
}
.profile-avatar-preview { display: grid; flex: 0 0 5rem; place-items: center; width: 5rem; height: 5rem; border: 2px solid #e2e5e9; border-radius: 1rem; object-fit: cover; }
.profile-avatar-fallback { color: #fff; background: var(--slavia-navy); font-size: 1.8rem; font-weight: 900; }
.profile-contact-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; padding: .8rem; background: #f8fafc; border: 1px solid var(--op-line2); border-radius: .65rem; }
.profile-contact-summary > div.is-wide { grid-column: 1 / -1; }
.profile-contact-summary dt { margin-bottom: .15rem; color: var(--op-mut); font-size: .7rem; font-weight: 700; }
.profile-contact-summary dd { margin: 0; color: var(--slavia-navy); font-size: .85rem; font-weight: 650; line-height: 1.4; }
.profile-empty-state { padding: .7rem .8rem; color: var(--op-mut); background: #f8fafc; border: 1px dashed #d5dce3; border-radius: .6rem; font-size: .8rem; }
.profile-editor > summary { width: fit-content; list-style: none; cursor: pointer; }
.profile-editor > summary::-webkit-details-marker { display: none; }
.profile-editor[open] > summary { margin-bottom: 1rem; }
.profile-editor[open] > summary .btn { color: #fff; background: #586b7b; border-color: #586b7b; }
@media (max-width: 575.98px) { .profile-contact-summary { grid-template-columns: 1fr; } .profile-contact-summary > div.is-wide { grid-column: auto; } }
.player-card-label { color: #e76a7f; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.player-card-name { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; }
.player-card-logo { width: 4rem; height: 4rem; margin-left: auto; object-fit: contain; filter: drop-shadow(0 4px 7px rgba(0,0,0,.25)); }
.player-card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(0, 0, 0, .14);
}
.player-stat { padding: 1.25rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.player-stat:last-child { border-right: 0; }
.player-stat strong { display: block; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.player-stat span { display: block; margin-top: .35rem; color: rgba(255,255,255,.58); font-size: .72rem; }
.player-stat-primary strong { color: #f5c75e; }
.player-score-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    padding: 1px;
    background: rgba(255,255,255,.08);
}
.player-score-breakdown > div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: #15283c; font-size: .82rem; }
.player-score-breakdown span { color: rgba(255,255,255,.6); }
.player-score-breakdown strong { font-variant-numeric: tabular-nums; }
.player-card-badges { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.player-card-badges span { padding: .3rem .55rem; color: rgba(255,255,255,.82); background: rgba(255,255,255,.08); border-radius: .45rem; font-size: .75rem; }
.player-card-badges .player-card-badge-newcomer { color: #ffe39a; background: rgba(232,185,69,.16); border: 1px solid rgba(232,185,69,.35); }
.los-public-baskets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 1px; background: rgba(255,255,255,.08); }
.los-public-baskets > div { display: grid; gap: .35rem; padding: 1.1rem 1.25rem; background: #15283c; }
.los-public-baskets span { color: #f5c75e; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.los-public-baskets strong { font-size: 1rem; }

@media (max-width: 767.98px) {
    .ranking-card { padding: 1rem; }
    .ranking-table thead th,
    .ranking-table tbody td { padding: .7rem .75rem; }
    .chat-sidebar { position: static; }
    .chat-messages { height: 28rem; min-height: 20rem; padding: .85rem; }
    .chat-bubble { max-width: 88%; }
    .player-card-top { padding: 1.15rem; }
    .player-card-logo { width: 3rem; height: 3rem; }
    .player-card-stats { grid-template-columns: repeat(2, 1fr); }
    .player-stat:nth-child(2) { border-right: 0; }
    .player-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
    .player-score-breakdown { grid-template-columns: 1fr 1fr; }
    .los-public-baskets { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .form-action-row .btn-save { width: 100%; }

    .credit-input-group input[type=number],
    .value-range-group input[type=number] {
        max-width: 4.2rem;
    }
    .chat-tag-control { width: 100%; }
    .player-card-logo { display: none; }
    .player-card-avatar { flex-basis: 3.6rem; width: 3.6rem; height: 3.6rem; }
}
