.league-creator-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 30%),
        linear-gradient(135deg, #0b1f4d 0%, #123d91 45%, #0d8bdc 100%);
    padding: 24px 0 64px;
}

.league-creator-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.league-creator-topbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.league-creator-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.league-creator-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.league-creator-step__label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.league-creator-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.league-creator-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2ea8ff 0%, #8ad7ff 100%);
    box-shadow: 0 0 24px rgba(46, 168, 255, 0.35);
}

.league-creator-grid {
    display: grid;
    gap: 20px;
}

.card-glass,
.league-creator-form-card {
    border-radius: 28px;
    padding: 22px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.card-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: 0 24px 80px rgba(5, 18, 48, 0.24);
}

.league-creator-form-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 80px rgba(4, 19, 48, 0.18);
}

.league-creator-eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.league-creator-intro h1 {
    margin: 0 0 14px;
    font-size: 32px;
    line-height: 1.05;
    color: #ffffff;
}

.league-creator-intro p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.league-creator-benefits {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.league-creator-benefits li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.94);
}

.league-creator-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #65c8ff;
    box-shadow: 0 0 12px rgba(101, 200, 255, 0.55);
}

.league-form__field {
    margin-bottom: 18px;
}

.league-form__field label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #0d1b3e;
}

.league-form__field input[type="text"] {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(15, 55, 120, 0.14);
    background: #f8fbff;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: #12213f;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.league-form__field input[type="text"]:focus {
    border-color: #2196f3;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.14);
}

.league-form__field small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.league-choice-grid {
    display: grid;
    gap: 12px;
}

.league-choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 132px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(15, 55, 120, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.league-choice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(33, 150, 243, 0.35);
    box-shadow: 0 16px 32px rgba(11, 55, 120, 0.08);
}

.league-choice-card.is-active {
    border-color: #2196f3;
    box-shadow: 0 18px 40px rgba(33, 150, 243, 0.16);
    background: linear-gradient(180deg, #eef8ff 0%, #ffffff 100%);
}

.league-choice-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.league-choice-card__icon {
    font-size: 24px;
    line-height: 1;
}

.league-choice-card__title {
    font-size: 18px;
    font-weight: 800;
    color: #10214a;
}

.league-choice-card__text {
    font-size: 13px;
    line-height: 1.6;
    color: #5b6b87;
}

.league-form__footer {
    margin-top: 24px;
}

.league-creator-submit {
    width: 100%;
    justify-content: center;
    min-height: 56px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .league-creator-page {
        padding: 40px 0 96px;
    }

    .league-creator-topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .league-creator-step {
        min-width: 280px;
    }

    .league-creator-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 24px;
        align-items: stretch;
    }

    .card-glass,
    .league-creator-form-card {
        padding: 32px;
    }

    .league-creator-intro h1 {
        font-size: 48px;
    }

    .league-choice-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.league-form__field input[type="number"] {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(15, 55, 120, 0.14);
    background: #f8fbff;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: #12213f;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.league-form__field input[type="number"]:focus {
    border-color: #2196f3;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.14);
}

.league-form__grid {
    display: grid;
    gap: 16px;
}

.league-summary-box {
    margin-top: 8px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f5fbff 0%, #edf6ff 100%);
    border: 1px solid rgba(33, 150, 243, 0.14);
}

.league-summary-box__label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3572b0;
}

.league-summary-box__value {
    font-size: 15px;
    line-height: 1.7;
    color: #10214a;
    font-weight: 600;
}

.league-form__actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
}

.league-creator-secondary {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
    justify-content: center;
    text-decoration: none;
}

@media (min-width: 768px) {
    .league-form__grid--two {
        grid-template-columns: repeat(2, 1fr);
    }

    .league-form__grid--three {
        grid-template-columns: repeat(3, 1fr);
    }

    .league-form__actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .league-creator-secondary {
        width: auto;
        min-width: 140px;
    }

    .league-creator-submit {
        width: auto;
        min-width: 240px;
    }
}
.league-form__field select {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(15, 55, 120, 0.14);
    background: #f8fbff;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: #12213f;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.league-form__field select:focus {
    border-color: #2196f3;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.14);
}

.league-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.league-tool-btn {
    width: 100%;
    min-height: 52px;
    border-radius: 18px;
    justify-content: center;
}

.league-player-builder {
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
    border: 1px solid rgba(15, 55, 120, 0.08);
    margin-bottom: 20px;
}

.league-switch {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid rgba(15, 55, 120, 0.14);
    font-size: 14px;
    font-weight: 600;
    color: #10214a;
}

.league-switch input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.league-form__field--button .league-add-player-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
    justify-content: center;
}

.league-players-list-wrap {
    margin-bottom: 24px;
}

.league-players-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.league-players-list-header h3 {
    margin: 0;
    font-size: 18px;
    color: #10214a;
}

.league-players-list-header span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef7ff;
    color: #1d5ea8;
    font-size: 12px;
    font-weight: 800;
}

.league-players-list {
    display: grid;
    gap: 12px;
}

.league-player-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(15, 55, 120, 0.08);
    box-shadow: 0 10px 30px rgba(4, 19, 48, 0.05);
}

.league-player-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.league-player-card__name {
    font-size: 16px;
    font-weight: 800;
    color: #10214a;
}

.league-player-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.league-player-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.league-player-badge--group {
    background: #eef7ff;
    color: #1d5ea8;
}

.league-player-badge--bucket {
    background: #effcf3;
    color: #25824b;
}

.league-player-badge--seeded {
    background: #fff3dc;
    color: #ba7b00;
}

.league-player-card__actions {
    display: flex;
    gap: 10px;
}

.league-player-card__actions button {
    flex: 1;
    min-height: 44px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.league-player-edit {
    background: #eef7ff;
    color: #1d5ea8;
}

.league-player-remove {
    background: #fff1f1;
    color: #c23636;
}

.league-empty-state {
    padding: 24px;
    border-radius: 22px;
    background: #f8fbff;
    border: 1px dashed rgba(15, 55, 120, 0.16);
    text-align: center;
    color: #64748b;
    font-weight: 600;
}

@media (min-width: 768px) {
    .league-toolbar {
        flex-direction: row;
    }

    .league-tool-btn {
        width: auto;
    }
}
/* === STEP 3 FIXES === */

.league-player-builder {
    padding: 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.league-toolbar {
    margin-bottom: 14px;
}

.league-tool-btn {
    min-height: 46px;
    font-size: 14px;
    font-weight: 700;
    color: #16325c !important;
    background: #eef6ff !important;
    border: 1px solid rgba(15, 55, 120, 0.12) !important;
}

.league-tool-btn:hover {
    background: #e3f0ff !important;
    color: #0f2547 !important;
}

.league-players-list {
    gap: 10px;
}

.league-players-list-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #10214a;
}

.league-player-card {
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
}

.league-player-card__top {
    align-items: center;
    gap: 10px;
}

.league-player-card__name {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    color: #0d1b3e;
    letter-spacing: -0.01em;
    flex: 1;
    word-break: break-word;
}

.league-player-card__badges {
    gap: 6px;
}

.league-player-badge {
    padding: 6px 8px;
    font-size: 10px;
    font-weight: 800;
}

.league-player-card__actions {
    gap: 8px;
}

.league-player-card__actions button {
    min-height: 38px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.league-player-edit {
    background: #edf4fb;
    color: #185a9d;
}

.league-player-remove {
    background: #fdf0f0;
    color: #c43d3d;
}

.league-summary-box__value {
    font-size: 14px;
    line-height: 1.5;
    color: #10214a;
    font-weight: 700;
}

@media (max-width: 767px) {
    .league-player-card__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .league-player-card__badges {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .league-player-card {
        padding: 12px 14px;
    }

    .league-player-card__name {
        font-size: 13px;
    }

    .league-player-card__actions button {
        min-height: 34px;
        font-size: 11px;
    }
}
.league-player-card {
    gap: 8px;
    padding: 10px 12px;
    border-radius: 16px;
}
.league-draw-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.league-draw-tab {
    min-height: 52px;
    border: 1px solid rgba(15, 55, 120, 0.12);
    background: #f7fbff;
    color: #15345f;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.league-draw-tab.is-active {
    background: linear-gradient(135deg, #0d8bdc 0%, #123d91 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(18, 61, 145, 0.22);
}

.league-draw-controls {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.league-draw-buttons {
    display: grid;
    gap: 12px;
}

.league-draw-stage {
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f2c63 0%, #0d8bdc 100%);
    color: #fff;
    box-shadow: 0 24px 48px rgba(12, 45, 105, 0.24);
}

.league-draw-stage__label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: .9;
    margin-bottom: 10px;
}

.league-draw-stage__name {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.league-draw-stage__meta {
    font-size: 14px;
    opacity: .92;
}

.league-groups-board {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.league-group-column {
    background: #ffffff;
    border: 1px solid rgba(15, 55, 120, 0.08);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(4, 19, 48, 0.05);
}

.league-group-column__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.league-group-column__header h3 {
    margin: 0;
    font-size: 18px;
    color: #10214a;
}

.league-group-column__header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef7ff;
    color: #1d5ea8;
    font-size: 12px;
    font-weight: 800;
}

.league-group-column__list {
    display: grid;
    gap: 10px;
}

.league-group-player {
    padding: 12px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid rgba(15, 55, 120, 0.08);
}

.league-group-player__name {
    font-size: 14px;
    font-weight: 800;
    color: #0d1b3e;
    margin-bottom: 8px;
}

.league-group-player__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (min-width: 768px) {
    .league-draw-controls {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .league-draw-buttons {
        grid-template-columns: repeat(2, auto);
    }

    .league-groups-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .league-groups-board {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* =========================
   STEP 4 — COMPACT PREMIUM
   ========================= */

.league-creator-form-card {
    padding: 20px;
}

.league-draw-tabs {
    gap: 8px;
    margin-bottom: 14px;
}

.league-draw-tab {
    min-height: 42px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    padding: 0 12px;
}

.league-draw-controls {
    gap: 12px;
    margin-bottom: 14px;
}

.league-draw-buttons {
    gap: 10px;
}

.league-draw-buttons .league-creator-submit,
.league-draw-buttons .league-tool-btn {
    min-height: 44px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    padding: 0 16px;
}

.league-switch {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
}

.league-switch span {
    line-height: 1.3;
}

.league-summary-box {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 18px;
}

.league-summary-box__label {
    margin-bottom: 6px;
    font-size: 11px;
}

.league-summary-box__value {
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.league-draw-stage {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 20px;
}

.league-draw-stage__label {
    margin-bottom: 6px;
    font-size: 11px;
}

.league-draw-stage__name {
    font-size: 18px;
    line-height: 1.05;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.league-draw-stage__meta {
    font-size: 12px;
}

.league-groups-board {
    gap: 12px;
    margin-bottom: 18px;
}

.league-group-column {
    padding: 12px;
    border-radius: 18px;
}

.league-group-column__header {
    margin-bottom: 10px;
}

.league-group-column__header h3 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.league-group-column__header span {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
}

.league-group-column__list {
    gap: 8px;
}

.league-group-player {
    padding: 9px 10px;
    border-radius: 12px;
}

.league-group-player__name {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #0d1b3e;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.league-group-player__meta {
    gap: 6px;
}

.league-player-badge {
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.league-form__actions {
    gap: 10px;
    margin-top: 6px;
}

.league-creator-secondary,
.league-form__actions .league-creator-submit {
    min-height: 44px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
}

/* desktop: chcemy maksymalnie dużo widzieć bez scrolla */
@media (min-width: 768px) {
    .league-creator-grid {
        grid-template-columns: 0.72fr 1.28fr;
        gap: 18px;
        align-items: start;
    }

    .card-glass,
    .league-creator-form-card {
        padding: 20px;
        border-radius: 22px;
    }

    .league-creator-intro h1 {
        font-size: 28px;
        line-height: 1.05;
        margin-bottom: 10px;
    }

    .league-creator-intro p {
        font-size: 13px;
        line-height: 1.55;
    }

    .league-creator-benefits {
        margin-top: 16px;
        gap: 10px;
    }

    .league-creator-benefits li {
        font-size: 13px;
        padding-left: 16px;
    }

    .league-draw-controls {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
    }

    .league-draw-buttons {
        grid-template-columns: repeat(2, auto);
        align-items: center;
    }

    .league-groups-board {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .league-group-column {
        padding: 10px;
    }

    .league-group-column__header h3 {
        font-size: 14px;
    }

    .league-group-player {
        padding: 8px 9px;
    }

    .league-group-player__name {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .league-player-badge {
        font-size: 8px;
        padding: 4px 6px;
    }
}

/* duże monitory — jeszcze ciaśniej i bardziej dashboardowo */
@media (min-width: 1200px) {
    .league-creator-form-card {
        padding: 18px;
    }

    .league-draw-tab {
        min-height: 40px;
        font-size: 12px;
    }

    .league-draw-buttons .league-creator-submit,
    .league-draw-buttons .league-tool-btn,
    .league-creator-secondary,
    .league-form__actions .league-creator-submit {
        min-height: 40px;
        font-size: 12px;
    }

    .league-switch {
        min-height: 40px;
        font-size: 12px;
    }

    .league-draw-stage {
        padding: 12px 14px;
    }

    .league-draw-stage__name {
        font-size: 16px;
    }

    .league-summary-box__value {
        font-size: 12px;
    }

    .league-groups-board {
        gap: 8px;
    }

    .league-group-column {
        padding: 8px;
        border-radius: 16px;
    }

    .league-group-column__header {
        margin-bottom: 8px;
    }

    .league-group-column__header h3 {
        font-size: 13px;
    }

    .league-group-column__header span {
        min-width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .league-group-column__list {
        gap: 6px;
    }

    .league-group-player {
        padding: 7px 8px;
        border-radius: 10px;
    }

    .league-group-player__name {
        font-size: 10.5px;
        line-height: 1.25;
        margin-bottom: 4px;
    }

    .league-player-badge {
        font-size: 7.5px;
        padding: 3px 5px;
    }
}
/* FIX: widoczny przycisk Wstecz */
.league-creator-secondary {
    background: #eef4fb !important;
    color: #16325c !important;
    border: 1px solid rgba(15, 55, 120, 0.14) !important;
    box-shadow: none !important;
}

.league-creator-secondary:hover {
    background: #e4eef9 !important;
    color: #0f2547 !important;
}

.league-form__actions .league-creator-secondary {
    opacity: 1 !important;
    visibility: visible !important;
}

.league-settings-section {
    margin-bottom: 22px;
}

.league-settings-section__header {
    margin-bottom: 14px;
}

.league-settings-section__header h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #10214a;
}

.league-settings-section__header p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.league-choice-grid--two {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .league-choice-grid--two {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ===================================
   GLOBAL COMPACT PREMIUM - LEAGUE CREATOR
   =================================== */

.league-creator-page {
    padding: 18px 0 48px;
}

.card-glass,
.league-creator-form-card {
    padding: 16px !important;
    border-radius: 20px !important;
}

.league-creator-topbar {
    margin-bottom: 16px;
}

.league-creator-step__label {
    font-size: 11px;
}

.league-creator-progress {
    height: 8px;
}

.league-creator-eyebrow {
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 10px;
}

.league-creator-intro h1 {
    font-size: 24px !important;
    line-height: 1.02 !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.02em;
}

.league-creator-intro p {
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.league-creator-benefits {
    margin-top: 14px !important;
    gap: 8px !important;
}

.league-creator-benefits li {
    font-size: 12px !important;
    line-height: 1.4;
    padding-left: 14px;
}

.league-form__field {
    margin-bottom: 14px;
}

.league-form__field label {
    margin-bottom: 8px;
    font-size: 13px;
}

.league-form__field small {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.4;
}

.league-form__field input[type="text"],
.league-form__field input[type="number"],
.league-form__field select {
    min-height: 46px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    padding: 0 14px !important;
}

.league-choice-grid {
    gap: 10px;
}

.league-choice-card {
    min-height: 104px !important;
    padding: 14px !important;
    border-radius: 16px !important;
    gap: 6px !important;
}

.league-choice-card__icon {
    font-size: 20px !important;
}

.league-choice-card__title {
    font-size: 15px !important;
    line-height: 1.15;
}

.league-choice-card__text {
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.league-summary-box {
    padding: 14px !important;
    border-radius: 16px !important;
}

.league-summary-box__label {
    font-size: 10px !important;
    margin-bottom: 6px !important;
}

.league-summary-box__value {
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.league-form__actions {
    gap: 10px !important;
}

.league-creator-secondary,
.league-creator-submit,
.league-tool-btn,
.league-add-player-btn {
    min-height: 44px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.league-switch {
    min-height: 46px !important;
    border-radius: 14px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
}

.league-player-builder {
    padding: 14px !important;
    border-radius: 18px !important;
}

.league-players-list-header h3 {
    font-size: 15px !important;
}

.league-players-list-header span {
    font-size: 10px !important;
    padding: 6px 10px !important;
}

.league-player-card {
    padding: 12px !important;
    border-radius: 16px !important;
    gap: 8px !important;
}

.league-player-card__name {
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.league-player-badge {
    font-size: 9px !important;
    padding: 4px 6px !important;
}

.league-player-card__actions button {
    min-height: 34px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
}

.league-draw-tab {
    min-height: 40px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

.league-draw-stage {
    padding: 12px 14px !important;
    border-radius: 16px !important;
}

.league-draw-stage__label {
    font-size: 10px !important;
    margin-bottom: 5px !important;
}

.league-draw-stage__name {
    font-size: 16px !important;
    margin-bottom: 4px !important;
}

.league-draw-stage__meta {
    font-size: 11px !important;
}

.league-group-column {
    padding: 10px !important;
    border-radius: 16px !important;
}

.league-group-column__header h3 {
    font-size: 14px !important;
}

.league-group-column__header span {
    min-width: 24px !important;
    height: 24px !important;
    font-size: 10px !important;
}

.league-group-column__list {
    gap: 6px !important;
}

.league-group-player {
    padding: 8px !important;
    border-radius: 10px !important;
}

.league-group-player__name {
    font-size: 11px !important;
    margin-bottom: 4px !important;
    line-height: 1.25 !important;
}

.league-group-player__meta {
    gap: 5px !important;
}

.league-settings-section {
    margin-bottom: 16px !important;
}

.league-settings-section__header {
    margin-bottom: 10px !important;
}

.league-settings-section__header h3 {
    font-size: 15px !important;
    margin-bottom: 4px !important;
}

.league-settings-section__header p {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

@media (min-width: 768px) {
    .league-creator-page {
        padding: 24px 0 56px;
    }

    .league-creator-grid {
        grid-template-columns: 0.78fr 1.22fr !important;
        gap: 16px !important;
        align-items: start !important;
    }

    .card-glass,
    .league-creator-form-card {
        padding: 18px !important;
    }

    .league-creator-intro h1 {
        font-size: 30px !important;
    }

    .league-form__grid {
        gap: 12px !important;
    }

    .league-choice-card {
        min-height: 96px !important;
    }

    .league-player-card__name {
        font-size: 12px !important;
    }

    .league-group-player__name {
        font-size: 10.5px !important;
    }
}

@media (min-width: 1200px) {
    .league-creator-grid {
        grid-template-columns: 0.72fr 1.28fr !important;
    }

    .card-glass,
    .league-creator-form-card {
        padding: 16px !important;
    }

    .league-creator-intro h1 {
        font-size: 26px !important;
    }

    .league-creator-intro p,
    .league-creator-benefits li {
        font-size: 12px !important;
    }

    .league-choice-card__title {
        font-size: 14px !important;
    }

    .league-choice-card__text {
        font-size: 11px !important;
    }

    .league-form__field input[type="text"],
    .league-form__field input[type="number"],
    .league-form__field select {
        min-height: 42px !important;
        font-size: 13px !important;
    }

    .league-creator-secondary,
    .league-creator-submit,
    .league-tool-btn,
    .league-add-player-btn {
        min-height: 40px !important;
        font-size: 12px !important;
    }
}
#customPointsSection.is-disabled {
    pointer-events: none;
}

#customPointsSection:not(.is-disabled) {
    pointer-events: auto;
}

#customPointsSection.is-disabled {
    pointer-events: none;
}

#customPointsSection:not(.is-disabled) {
    pointer-events: auto;
}

.league-rules-list {
    display: grid;
    gap: 12px;
}

.league-rule-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid rgba(15, 55, 120, 0.08);
}

.league-rule-row__number {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf3ff;
    color: #184d91;
    font-size: 13px;
    font-weight: 800;
}

.league-rule-row__field {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .league-rule-row {
        grid-template-columns: 44px 1fr;
    }

    .league-rule-row__number {
        width: 44px;
        height: 44px;
    }
}

/* STEP 7 — minimalistyczna lista kryteriów */
.league-criteria-stack {
    display: grid;
    gap: 10px;
}

.league-criteria-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid rgba(15, 55, 120, 0.08);
}

.league-criteria-item__top {
    margin-bottom: 6px;
}

.league-criteria-item__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5c7291;
}

.league-criteria-item__field {
    margin-bottom: 0;
}

.league-criteria-item__field select {
    background: #ffffff;
}

.league-rules-list,
.league-rule-row,
.league-rule-row__number,
.league-rule-row__field {
    all: unset;
}

@media (min-width: 768px) {
    .league-criteria-stack {
        gap: 8px;
    }

    .league-criteria-item {
        padding: 9px 10px;
        border-radius: 12px;
    }

    .league-criteria-item__label {
        font-size: 10px;
    }
}
#customPointsSection.is-disabled {
    pointer-events: none;
}

#customPointsSection:not(.is-disabled) {
    pointer-events: auto;
}

.league-criteria-stack {
    display: grid;
    gap: 10px;
}

.league-criteria-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid rgba(15, 55, 120, 0.08);
}

.league-criteria-item__top {
    margin-bottom: 6px;
}

.league-criteria-item__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5c7291;
}

.league-criteria-item__field {
    margin-bottom: 0;
}

.league-criteria-item__field select {
    background: #ffffff;
}

.league-overview-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.league-overview-card {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid rgba(15, 55, 120, 0.08);
}

.league-overview-card__label {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5c7291;
}

.league-overview-list {
    display: grid;
    gap: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: #13284b;
}

.league-success-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 80px rgba(4, 19, 48, 0.18);
    text-align: center;
}

.league-success-card h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.05;
    color: #10214a;
}

.league-success-card p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #5c6f8d;
}

.league-form__actions--center {
    justify-content: center !important;
}

@media (min-width: 768px) {
    .league-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Tournament creator: registered player autocomplete */
.tfp-player-search-field {
    position: relative;
}

.tfp-player-search-help {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.tfp-player-suggestions {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 8px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .16);
    max-height: 280px;
    overflow: auto;
}

.tfp-player-suggestion {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tfp-player-suggestion:hover {
    background: #eff6ff;
}

.tfp-player-suggestion strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.tfp-player-suggestion span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
}

.league-player-card__meta {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}

.league-player-badge--linked {
    background: #dcfce7 !important;
    color: #166534 !important;
}

@media (max-width: 640px) {
    .tfp-player-suggestion {
        display: block;
    }

    .tfp-player-suggestion span {
        display: block;
        margin-top: 2px;
        text-align: left;
    }
}

/* =========================================================
   Tournament creator step 3 — compact premium player list
   Keeps huge tournament lists readable (100+ players)
   ========================================================= */
body[data-page="tournament-creator-step-3"] .league-creator-hero {
    padding-top: 32px !important;
    padding-bottom: 48px !important;
}

body[data-page="tournament-creator-step-3"] .league-creator-grid {
    align-items: start !important;
    gap: 18px !important;
}

body[data-page="tournament-creator-step-3"] .league-creator-intro {
    padding: 18px !important;
    border-radius: 20px !important;
}

body[data-page="tournament-creator-step-3"] .league-creator-intro h1 {
    font-size: clamp(24px, 2.4vw, 34px) !important;
    line-height: 1.02 !important;
    margin-bottom: 10px !important;
}

body[data-page="tournament-creator-step-3"] .league-creator-intro p {
    font-size: 13px !important;
    line-height: 1.55 !important;
}

body[data-page="tournament-creator-step-3"] .league-creator-benefits {
    gap: 8px !important;
    margin-top: 14px !important;
}

body[data-page="tournament-creator-step-3"] .league-creator-benefits li {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

body[data-page="tournament-creator-step-3"] .league-creator-form-card {
    padding: 14px !important;
    border-radius: 22px !important;
}

body[data-page="tournament-creator-step-3"] .league-toolbar {
    gap: 8px !important;
    margin-bottom: 12px !important;
}

body[data-page="tournament-creator-step-3"] .league-tool-btn {
    min-height: 38px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    letter-spacing: -0.01em !important;
}

body[data-page="tournament-creator-step-3"] .league-player-builder {
    padding: 12px !important;
    border-radius: 18px !important;
    margin-bottom: 12px !important;
    background: rgba(248, 251, 255, .84) !important;
}

body[data-page="tournament-creator-step-3"] .league-form__grid {
    gap: 10px !important;
}

body[data-page="tournament-creator-step-3"] .league-form__field label,
body[data-page="tournament-creator-step-3"] .league-form__field > label:not(.league-switch) {
    font-size: 10px !important;
    letter-spacing: .055em !important;
    margin-bottom: 6px !important;
}

body[data-page="tournament-creator-step-3"] .league-form__field input,
body[data-page="tournament-creator-step-3"] .league-form__field select {
    min-height: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

body[data-page="tournament-creator-step-3"] .tfp-player-search-help {
    display: block !important;
    margin-top: 5px !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    color: #71839e !important;
}

body[data-page="tournament-creator-step-3"] .league-switch {
    min-height: 42px !important;
    border-radius: 12px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    gap: 8px !important;
}

body[data-page="tournament-creator-step-3"] .league-switch input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
}

body[data-page="tournament-creator-step-3"] .league-add-player-btn {
    min-height: 42px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

body[data-page="tournament-creator-step-3"] .league-summary-box {
    padding: 10px 12px !important;
    border-radius: 16px !important;
    margin: 10px 0 12px !important;
}

body[data-page="tournament-creator-step-3"] .league-summary-box__label {
    font-size: 9.5px !important;
    margin-bottom: 4px !important;
}

body[data-page="tournament-creator-step-3"] .league-summary-box__value {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    font-weight: 650 !important;
}

body[data-page="tournament-creator-step-3"] .league-players-list-wrap {
    margin-bottom: 14px !important;
    padding: 10px !important;
    border: 1px solid rgba(15, 55, 120, .08) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .74) !important;
    box-shadow: 0 14px 36px rgba(10, 28, 70, .05) !important;
}

body[data-page="tournament-creator-step-3"] .league-players-list-header {
    margin-bottom: 8px !important;
    padding: 0 2px !important;
}

body[data-page="tournament-creator-step-3"] .league-players-list-header h3 {
    font-size: 14px !important;
    letter-spacing: -0.02em !important;
}

body[data-page="tournament-creator-step-3"] .league-players-list-header span {
    padding: 5px 8px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

body[data-page="tournament-creator-step-3"] .league-players-list {
    counter-reset: tournamentPlayers;
    display: grid !important;
    gap: 6px !important;
    max-height: min(52vh, 520px) !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(31, 102, 210, .45) transparent !important;
}

body[data-page="tournament-creator-step-3"] .league-players-list::-webkit-scrollbar {
    width: 7px;
}

body[data-page="tournament-creator-step-3"] .league-players-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(31, 102, 210, .36);
}

body[data-page="tournament-creator-step-3"] .league-player-card {
    counter-increment: tournamentPlayers;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) 136px !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 42px !important;
    padding: 7px 8px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .92) !important;
    border: 1px solid rgba(15, 55, 120, .075) !important;
    box-shadow: none !important;
}

body[data-page="tournament-creator-step-3"] .league-player-card::before {
    content: counter(tournamentPlayers);
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2466d6;
    font-size: 10px;
    font-weight: 850;
}

body[data-page="tournament-creator-step-3"] .league-player-card:hover {
    border-color: rgba(33, 150, 243, .2) !important;
    background: #fff !important;
}

body[data-page="tournament-creator-step-3"] .league-player-card__top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

body[data-page="tournament-creator-step-3"] .league-player-card__top > div:first-child {
    min-width: 0 !important;
}

body[data-page="tournament-creator-step-3"] .league-player-card__name {
    font-size: 12px !important;
    line-height: 1.15 !important;
    font-weight: 760 !important;
    color: #0f2447 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body[data-page="tournament-creator-step-3"] .league-player-card__meta {
    margin-top: 2px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: #6d7e98 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body[data-page="tournament-creator-step-3"] .league-player-card__badges {
    display: flex !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    max-width: 220px !important;
    overflow: hidden !important;
}

body[data-page="tournament-creator-step-3"] .league-player-badge {
    flex: 0 0 auto !important;
    padding: 3px 5px !important;
    border-radius: 7px !important;
    font-size: 8.5px !important;
    line-height: 1 !important;
    letter-spacing: .025em !important;
}

body[data-page="tournament-creator-step-3"] .league-player-card__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
}

body[data-page="tournament-creator-step-3"] .league-player-card__actions button {
    min-height: 28px !important;
    padding: 0 8px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 760 !important;
}

body[data-page="tournament-creator-step-3"] .league-empty-state {
    padding: 18px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
}

body[data-page="tournament-creator-step-3"] .league-form__actions {
    gap: 8px !important;
    margin-top: 8px !important;
}

body[data-page="tournament-creator-step-3"] .league-creator-secondary,
body[data-page="tournament-creator-step-3"] .league-creator-submit {
    min-height: 42px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

@media (min-width: 1024px) {
    body[data-page="tournament-creator-step-3"] .league-creator-grid {
        grid-template-columns: 0.58fr 1.42fr !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-builder .league-form__grid--two {
        grid-template-columns: minmax(260px, 1.2fr) minmax(190px, .8fr) !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-builder .league-form__grid--three {
        grid-template-columns: minmax(160px, .8fr) minmax(160px, .8fr) minmax(190px, .9fr) !important;
    }
}

@media (max-width: 767px) {
    body[data-page="tournament-creator-step-3"] .league-creator-hero {
        padding-top: 18px !important;
        padding-bottom: 28px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-creator-shell {
        gap: 12px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-creator-intro {
        padding: 14px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-creator-intro h1 {
        font-size: 22px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-creator-intro p,
    body[data-page="tournament-creator-step-3"] .league-creator-benefits li {
        font-size: 11.5px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-creator-form-card {
        padding: 10px !important;
        border-radius: 18px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-toolbar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    body[data-page="tournament-creator-step-3"] .league-tool-btn {
        width: 100% !important;
        min-height: 36px !important;
        padding: 0 8px !important;
        font-size: 10.5px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-builder {
        padding: 10px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-form__field input,
    body[data-page="tournament-creator-step-3"] .league-form__field select,
    body[data-page="tournament-creator-step-3"] .league-switch,
    body[data-page="tournament-creator-step-3"] .league-add-player-btn {
        min-height: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-players-list-wrap {
        padding: 8px !important;
        border-radius: 16px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-players-list {
        max-height: 46vh !important;
        gap: 5px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card {
        grid-template-columns: 24px minmax(0, 1fr) 76px !important;
        gap: 6px !important;
        min-height: 38px !important;
        padding: 6px !important;
        border-radius: 11px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card::before {
        width: 21px;
        height: 21px;
        border-radius: 7px;
        font-size: 9px;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__top {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 3px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__name {
        font-size: 11.2px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__meta {
        display: none !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__badges {
        max-width: none !important;
        justify-content: flex-start !important;
        gap: 3px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-badge {
        padding: 2px 4px !important;
        font-size: 7.5px !important;
        max-width: 54px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__actions {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__actions button {
        min-height: 22px !important;
        padding: 0 5px !important;
        border-radius: 7px !important;
        font-size: 9px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-form__actions {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   TOURNAMENT CREATOR STEP 4 — DRAW BOARD PREMIUM COMPACT
   Duże listy / mobile / dużo grup bez rozbijania strony
   ========================================================= */

body[data-page="tournament-creator-step-4"] .league-creator-page {
    padding: 18px 0 34px !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-shell {
    max-width: 1120px !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-topbar {
    margin-bottom: 14px !important;
    gap: 10px !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-back {
    font-size: 12px !important;
    font-weight: 680 !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-step__label {
    font-size: 10px !important;
    letter-spacing: .09em !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-progress {
    height: 7px !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-grid {
    gap: 14px !important;
    align-items: start !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-intro,
body[data-page="tournament-creator-step-4"] .league-creator-form-card {
    border-radius: 20px !important;
    padding: 14px !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-eyebrow {
    margin-bottom: 10px !important;
    padding: 6px 9px !important;
    border-radius: 10px !important;
    font-size: 9.5px !important;
    letter-spacing: .075em !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-intro h1 {
    margin-bottom: 8px !important;
    font-size: clamp(20px, 2.2vw, 27px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.035em !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-intro p {
    font-size: 12px !important;
    line-height: 1.45 !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-benefits {
    margin-top: 14px !important;
    gap: 7px !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-benefits li {
    font-size: 11px !important;
    line-height: 1.35 !important;
    padding-left: 14px !important;
}

body[data-page="tournament-creator-step-4"] .league-creator-benefits li::before {
    top: 5px !important;
    width: 6px !important;
    height: 6px !important;
}

body[data-page="tournament-creator-step-4"] .league-draw-tabs {
    gap: 7px !important;
    margin-bottom: 10px !important;
}

body[data-page="tournament-creator-step-4"] .league-draw-tab {
    min-height: 34px !important;
    padding: 0 9px !important;
    border-radius: 10px !important;
    font-size: 10.5px !important;
    font-weight: 730 !important;
}

body[data-page="tournament-creator-step-4"] .league-draw-controls {
    gap: 9px !important;
    margin-bottom: 10px !important;
}

body[data-page="tournament-creator-step-4"] .league-switch {
    min-height: 34px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
}

body[data-page="tournament-creator-step-4"] .league-switch input {
    width: 15px !important;
    height: 15px !important;
}

body[data-page="tournament-creator-step-4"] .league-draw-buttons {
    gap: 8px !important;
}

body[data-page="tournament-creator-step-4"] .league-draw-buttons .league-creator-submit,
body[data-page="tournament-creator-step-4"] .league-draw-buttons .league-tool-btn,
body[data-page="tournament-creator-step-4"] .league-form__actions .league-creator-submit,
body[data-page="tournament-creator-step-4"] .league-form__actions .league-creator-secondary {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 10.5px !important;
    font-weight: 760 !important;
}

body[data-page="tournament-creator-step-4"] .league-summary-box {
    margin-bottom: 10px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
}

body[data-page="tournament-creator-step-4"] .league-summary-box__label {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    letter-spacing: .065em !important;
}

body[data-page="tournament-creator-step-4"] .league-summary-box__value {
    font-size: 11px !important;
    line-height: 1.35 !important;
}

body[data-page="tournament-creator-step-4"] .league-draw-stage {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px 14px !important;
    margin-bottom: 10px !important;
    padding: 11px 14px !important;
    border-radius: 15px !important;
    box-shadow: 0 14px 26px rgba(12, 45, 105, 0.18) !important;
}

body[data-page="tournament-creator-step-4"] .league-draw-stage__label {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
}

body[data-page="tournament-creator-step-4"] .league-draw-stage__name {
    margin: 0 !important;
    min-width: 0 !important;
    font-size: 17px !important;
    line-height: 1.08 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body[data-page="tournament-creator-step-4"] .league-draw-stage__meta {
    margin: 0 !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.16) !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body[data-page="tournament-creator-step-4"] .league-groups-board {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)) !important;
    gap: 9px !important;
    margin-bottom: 12px !important;
    max-height: min(52vh, 520px) !important;
    overflow: auto !important;
    padding: 2px 4px 6px 2px !important;
    scrollbar-width: thin !important;
}

body[data-page="tournament-creator-step-4"] .league-group-column {
    min-width: 0 !important;
    padding: 9px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 8px 18px rgba(6, 23, 56, 0.055) !important;
}

body[data-page="tournament-creator-step-4"] .league-group-column__header {
    margin-bottom: 7px !important;
    gap: 6px !important;
}

body[data-page="tournament-creator-step-4"] .league-group-column__header h3 {
    font-size: 12.5px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
}

body[data-page="tournament-creator-step-4"] .league-group-column__header span {
    min-width: 21px !important;
    height: 21px !important;
    padding: 0 6px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
}

body[data-page="tournament-creator-step-4"] .league-group-column__list {
    display: grid !important;
    gap: 5px !important;
    max-height: 210px !important;
    overflow: auto !important;
    padding-right: 2px !important;
    scrollbar-width: thin !important;
}

body[data-page="tournament-creator-step-4"] .league-group-player {
    min-height: 27px !important;
    padding: 6px 8px !important;
    border-radius: 9px !important;
    background: #f8fbff !important;
}

body[data-page="tournament-creator-step-4"] .league-group-player__name {
    margin: 0 !important;
    font-size: 10.2px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    color: #102041 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body[data-page="tournament-creator-step-4"] .league-group-player__meta {
    display: none !important;
}

body[data-page="tournament-creator-step-4"] .league-empty-state {
    padding: 8px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
}

body[data-page="tournament-creator-step-4"] .league-form__actions {
    gap: 8px !important;
    margin-top: 8px !important;
}

@media (min-width: 1024px) {
    body[data-page="tournament-creator-step-4"] .league-creator-grid {
        grid-template-columns: minmax(230px, .55fr) minmax(0, 1.45fr) !important;
    }
}

@media (min-width: 1280px) {
    body[data-page="tournament-creator-step-4"] .league-creator-grid {
        grid-template-columns: minmax(250px, .48fr) minmax(0, 1.52fr) !important;
    }

    body[data-page="tournament-creator-step-4"] .league-groups-board {
        grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body[data-page="tournament-creator-step-4"] .league-creator-page {
        padding: 12px 0 22px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-creator-shell {
        gap: 10px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-creator-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-creator-intro {
        padding: 11px !important;
        border-radius: 16px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-creator-intro h1 {
        font-size: 21px !important;
        margin-bottom: 7px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-creator-intro p {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    body[data-page="tournament-creator-step-4"] .league-creator-benefits {
        display: none !important;
    }

    body[data-page="tournament-creator-step-4"] .league-creator-form-card {
        padding: 9px !important;
        border-radius: 17px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-draw-tabs {
        display: flex !important;
        overflow-x: auto !important;
        gap: 6px !important;
        padding-bottom: 2px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-draw-tab {
        flex: 1 0 auto !important;
        min-width: 86px !important;
        min-height: 31px !important;
        font-size: 9.8px !important;
        border-radius: 9px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-switch {
        min-height: 32px !important;
        padding: 7px 9px !important;
        font-size: 10px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-draw-buttons {
        grid-template-columns: 1fr 1fr !important;
    }

    body[data-page="tournament-creator-step-4"] .league-draw-buttons .league-creator-submit,
    body[data-page="tournament-creator-step-4"] .league-draw-buttons .league-tool-btn {
        min-height: 33px !important;
        height: 33px !important;
        padding: 0 8px !important;
        font-size: 9.5px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-summary-box {
        padding: 8px 9px !important;
        border-radius: 11px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-summary-box__label {
        font-size: 8.8px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-summary-box__value {
        font-size: 10px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-draw-stage {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 4px !important;
        padding: 9px 10px !important;
        border-radius: 13px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-draw-stage__name {
        font-size: 15px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-draw-stage__meta {
        width: fit-content !important;
        font-size: 9px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-groups-board {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: minmax(136px, 64vw) !important;
        grid-template-columns: none !important;
        gap: 8px !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        margin: 0 0 10px !important;
        padding: 1px 2px 8px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body[data-page="tournament-creator-step-4"] .league-group-column {
        scroll-snap-align: start !important;
        padding: 8px !important;
        border-radius: 13px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-group-column__header h3 {
        font-size: 11.2px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-group-column__header span {
        min-width: 19px !important;
        height: 19px !important;
        border-radius: 7px !important;
        font-size: 8px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-group-column__list {
        max-height: 184px !important;
        gap: 4px !important;
        overflow-y: auto !important;
    }

    body[data-page="tournament-creator-step-4"] .league-group-player {
        min-height: 24px !important;
        padding: 5px 6px !important;
        border-radius: 8px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-group-player__name {
        font-size: 9.4px !important;
    }

    body[data-page="tournament-creator-step-4"] .league-form__actions {
        grid-template-columns: 1fr !important;
    }
}

/* Tournament quick / open registration polish */
.tournament-create-mode-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}
.tournament-create-mode {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.tournament-create-mode span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
  margin-bottom: 5px;
}
.tournament-create-mode strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
  margin-bottom: 4px;
}
.tournament-create-mode small {
  display: block;
  color: rgba(255,255,255,.74);
  font-size: 12px;
  line-height: 1.35;
}
.tournament-create-mode--quick,
.tournament-create-mode.is-active {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(237,246,255,.9));
  color: #10213f;
  border-color: rgba(255,255,255,.7);
}
.tournament-create-mode--quick small,
.tournament-create-mode.is-active small { color: #60708f; }
.tournament-registration-box {
  border: 1px solid rgba(30, 115, 230, .14);
  background: linear-gradient(180deg, #f8fbff, #fff);
  border-radius: 18px;
  padding: 14px;
}
.tournament-registration-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.tournament-registration-fields label { display: grid; gap: 6px; }
.tournament-registration-fields span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tournament-quick-shell { max-width: 1040px; margin-inline: auto; }
.tournament-quick-grid {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}
.tournament-quick-intro h1 { font-size: clamp(28px, 4vw, 44px); }
.tournament-quick-card { padding: 18px; }
.tournament-quick-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tournament-quick-full { grid-column: 1 / -1; }
.tournament-quick-fields textarea,
.league-form__field select {
  width: 100%;
  border: 1px solid rgba(15,55,120,.14);
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px 13px;
  color: #14213d;
  font-weight: 650;
  outline: none;
}
.tournament-quick-open-note {
  display: grid;
  gap: 2px;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #eef7ff;
  color: #19355f;
  border: 1px solid #dbeafe;
}
.tournament-quick-open-note strong { font-size: 13px; }
.tournament-quick-open-note span { font-size: 12px; color: #64748b; }
.tournament-quick-alert {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #ffe4e6;
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 768px) {
  .tournament-create-mode-panel,
  .tournament-quick-grid,
  .tournament-quick-fields,
  .tournament-registration-fields {
    grid-template-columns: 1fr;
  }
  .tournament-create-mode { padding: 12px 13px; border-radius: 15px; }
  .tournament-create-mode strong { font-size: 14px; }
  .tournament-create-mode small { font-size: 11px; }
  .tournament-quick-card { padding: 14px; }
  .tournament-quick-intro { display: none; }
}

/* =========================================================
   TOURNAMENT CREATOR STEP 3 — SZYBKIE PRZYPISANIE DO GRUP
   ========================================================= */
body[data-page="tournament-creator-step-3"] .tfp-quick-groups-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 9px;
    padding: 9px 10px;
    border: 1px solid rgba(26, 111, 232, .13);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(239, 247, 255, .96), rgba(247, 252, 255, .96));
}

body[data-page="tournament-creator-step-3"] .tfp-quick-groups-bar__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

body[data-page="tournament-creator-step-3"] .tfp-quick-groups-bar__copy strong {
    color: #12366f;
    font-size: 10.5px;
    font-weight: 850;
}

body[data-page="tournament-creator-step-3"] .tfp-quick-groups-bar__copy span {
    color: #71819b;
    font-size: 9.5px;
    font-weight: 650;
}

body[data-page="tournament-creator-step-3"] .tfp-quick-groups-bar__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

body[data-page="tournament-creator-step-3"] .tfp-quick-groups-bar__actions button {
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid rgba(30, 103, 211, .14);
    border-radius: 9px;
    background: #fff;
    color: #1c5baa;
    font: inherit;
    font-size: 9.5px;
    font-weight: 800;
    cursor: pointer;
}

body[data-page="tournament-creator-step-3"] .tfp-quick-groups-bar__actions button:first-child {
    border-color: transparent;
    background: linear-gradient(135deg, #2a71ea, #13a8e7);
    color: #fff;
    box-shadow: 0 7px 16px rgba(28, 111, 226, .18);
}

body[data-page="tournament-creator-step-3"] .tfp-quick-groups-bar__actions button:hover {
    transform: translateY(-1px);
}

body[data-page="tournament-creator-step-3"] .league-player-card {
    grid-template-columns: 28px minmax(0, 1fr) 142px 112px !important;
}

body[data-page="tournament-creator-step-3"] .league-player-card__quick-group {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-width: 0;
}

body[data-page="tournament-creator-step-3"] .league-player-card__quick-group label {
    color: #73829b;
    font-size: 8.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body[data-page="tournament-creator-step-3"] .league-player-card__quick-group select {
    width: 100%;
    min-width: 0;
    height: 29px;
    padding: 0 25px 0 8px;
    border: 1px solid rgba(28, 101, 209, .15);
    border-radius: 8px;
    outline: 0;
    background-color: #f3f8ff;
    color: #174d94;
    font: inherit;
    font-size: 9.5px;
    font-weight: 800;
    cursor: pointer;
}

body[data-page="tournament-creator-step-3"] .league-player-card__quick-group select:focus {
    border-color: rgba(31, 119, 239, .52);
    box-shadow: 0 0 0 3px rgba(31, 119, 239, .09);
}

@media (max-width: 900px) {
    body[data-page="tournament-creator-step-3"] .league-player-card {
        grid-template-columns: 24px minmax(0, 1fr) 116px 78px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__quick-group label {
        display: none;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__quick-group {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    body[data-page="tournament-creator-step-3"] .tfp-quick-groups-bar {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
        padding: 8px;
    }

    body[data-page="tournament-creator-step-3"] .tfp-quick-groups-bar__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    body[data-page="tournament-creator-step-3"] .tfp-quick-groups-bar__actions button {
        width: 100%;
        padding: 0 6px;
        font-size: 9px;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card {
        grid-template-columns: 22px minmax(0, 1fr) 96px !important;
        grid-template-areas:
            "number player group"
            "number player actions";
        row-gap: 4px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card::before {
        grid-area: number;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__top {
        grid-area: player;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__quick-group {
        grid-area: group;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__actions {
        grid-area: actions;
        grid-template-columns: 1fr 1fr !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__quick-group select {
        height: 25px;
        padding-left: 6px;
        font-size: 8.5px;
    }
}

/* =========================================================
   TOURNAMENT CREATOR 2026 — COMPACT CONTROL PANEL
   Global visual refresh for steps 1–8.
   ========================================================= */

body[data-page^="tournament-creator-step-"] {
    --creator-navy: #11244c;
    --creator-blue: #2478f3;
    --creator-cyan: #1cb9ed;
    --creator-line: rgba(30, 72, 130, 0.13);
    --creator-soft: #f6f9fd;
    --creator-muted: #667792;
    --creator-shadow: 0 16px 42px rgba(6, 27, 66, 0.14);
    background: #edf4fb;
    overflow-x: hidden;
}

body[data-page^="tournament-creator-step-"] .league-creator-page {
    min-height: calc(100vh - 76px);
    padding: 18px 0 40px !important;
    background:
        radial-gradient(circle at 94% 8%, rgba(29, 183, 237, 0.26), transparent 24%),
        radial-gradient(circle at 8% 92%, rgba(76, 74, 211, 0.20), transparent 28%),
        linear-gradient(135deg, #10285a 0%, #15499d 52%, #198fd9 100%) !important;
}

body[data-page^="tournament-creator-step-"] .league-creator-hero > .container {
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

body[data-page^="tournament-creator-step-"] .league-creator-shell {
    max-width: 1180px;
    margin: 0 auto;
}

body[data-page^="tournament-creator-step-"] .league-creator-topbar {
    display: grid !important;
    grid-template-columns: auto minmax(190px, 260px);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 14px !important;
}

body[data-page^="tournament-creator-step-"] .league-creator-back {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    transition: background .18s ease, transform .18s ease;
}

body[data-page^="tournament-creator-step-"] .league-creator-back:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-2px);
}

body[data-page^="tournament-creator-step-"] .league-creator-step {
    min-width: 0 !important;
    gap: 6px !important;
}

body[data-page^="tournament-creator-step-"] .league-creator-step__label {
    font-size: 10px !important;
    font-weight: 900;
    letter-spacing: .09em;
    text-align: left;
}

body[data-page^="tournament-creator-step-"] .league-creator-progress {
    height: 6px !important;
    background: rgba(255, 255, 255, 0.17);
}

body[data-page^="tournament-creator-step-"] .league-creator-progress span {
    background: linear-gradient(90deg, #24bdf2 0%, #80dcff 100%);
    box-shadow: 0 0 12px rgba(36, 189, 242, 0.45);
}

body[data-page^="tournament-creator-step-"] .league-creator-grid {
    display: grid !important;
    grid-template-columns: minmax(230px, 285px) minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
}

body[data-page^="tournament-creator-step-"] .league-creator-intro,
body[data-page^="tournament-creator-step-"] .league-creator-form-card {
    border-radius: 20px !important;
}

body[data-page^="tournament-creator-step-"] .league-creator-intro {
    position: sticky;
    top: 88px;
    padding: 18px !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.065)) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 18px 50px rgba(3, 20, 56, 0.20) !important;
}

body[data-page^="tournament-creator-step-"] .league-creator-eyebrow {
    margin-bottom: 10px !important;
    padding: 5px 9px !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,.13);
    font-size: 9px !important;
    font-weight: 900;
    letter-spacing: .09em;
}

body[data-page^="tournament-creator-step-"] .league-creator-intro h1 {
    max-width: 260px;
    margin: 0 0 9px !important;
    font-size: clamp(24px, 2.3vw, 31px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.045em !important;
}

body[data-page^="tournament-creator-step-"] .league-creator-intro p {
    font-size: 12px !important;
    line-height: 1.52 !important;
    color: rgba(255,255,255,.82) !important;
}

body[data-page^="tournament-creator-step-"] .league-creator-benefits {
    margin-top: 13px !important;
    gap: 7px !important;
}

body[data-page^="tournament-creator-step-"] .league-creator-benefits li {
    padding-left: 14px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: rgba(255,255,255,.90) !important;
}

body[data-page^="tournament-creator-step-"] .league-creator-benefits li::before {
    top: 5px;
    width: 6px;
    height: 6px;
}

body[data-page^="tournament-creator-step-"] .league-creator-form-card {
    min-width: 0;
    padding: 18px 20px !important;
    background: rgba(250, 252, 255, 0.975) !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    box-shadow: var(--creator-shadow) !important;
}

body[data-page^="tournament-creator-step-"] .league-settings-section {
    margin-bottom: 15px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--creator-line);
}

body[data-page^="tournament-creator-step-"] .league-settings-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

body[data-page^="tournament-creator-step-"] .league-settings-section__header {
    margin-bottom: 9px !important;
}

body[data-page^="tournament-creator-step-"] .league-settings-section__header h3 {
    margin: 0 0 3px !important;
    color: var(--creator-navy) !important;
    font-size: 14px !important;
    line-height: 1.25;
    letter-spacing: -.02em;
}

body[data-page^="tournament-creator-step-"] .league-settings-section__header p {
    margin: 0 !important;
    max-width: 720px;
    color: var(--creator-muted) !important;
    font-size: 10.5px !important;
    line-height: 1.4 !important;
}

body[data-page^="tournament-creator-step-"] .league-form__field {
    min-width: 0;
    margin-bottom: 11px !important;
}

body[data-page^="tournament-creator-step-"] .league-form__field label {
    margin-bottom: 5px !important;
    color: #14284c !important;
    font-size: 11px !important;
    line-height: 1.25;
    font-weight: 850 !important;
}

body[data-page^="tournament-creator-step-"] .league-form__field small,
body[data-page^="tournament-creator-step-"] .tfp-player-search-help {
    margin-top: 4px !important;
    color: #75839a !important;
    font-size: 9.5px !important;
    line-height: 1.35 !important;
}

body[data-page^="tournament-creator-step-"] .league-form__grid {
    gap: 10px 12px !important;
}

body[data-page^="tournament-creator-step-"] .league-form__field input[type="text"],
body[data-page^="tournament-creator-step-"] .league-form__field input[type="email"],
body[data-page^="tournament-creator-step-"] .league-form__field input[type="date"],
body[data-page^="tournament-creator-step-"] .league-form__field input[type="datetime-local"],
body[data-page^="tournament-creator-step-"] .league-form__field input[type="time"],
body[data-page^="tournament-creator-step-"] .league-form__field select,
body[data-page^="tournament-creator-step-"] .manual-pair-select {
    width: 100% !important;
    min-height: 38px !important;
    height: 38px;
    padding: 0 11px !important;
    border: 1px solid rgba(31, 76, 137, .14) !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #15294b !important;
    box-shadow: 0 2px 7px rgba(10, 31, 75, .025);
    font-size: 11.5px !important;
    font-weight: 650 !important;
}

body[data-page^="tournament-creator-step-"] .league-form__field input[type="number"] {
    width: min(100%, 128px) !important;
    min-height: 38px !important;
    height: 38px;
    padding: 0 10px !important;
    border: 1px solid rgba(31, 76, 137, .14) !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #15294b !important;
    box-shadow: 0 2px 7px rgba(10, 31, 75, .025);
    font-size: 12px !important;
    font-weight: 750 !important;
}

body[data-page^="tournament-creator-step-"] .league-form__field input:focus,
body[data-page^="tournament-creator-step-"] .league-form__field select:focus,
body[data-page^="tournament-creator-step-"] .league-form__field textarea:focus,
body[data-page^="tournament-creator-step-"] .manual-pair-select:focus {
    border-color: rgba(36, 120, 243, .55) !important;
    box-shadow: 0 0 0 3px rgba(36, 120, 243, .11) !important;
}

body[data-page^="tournament-creator-step-"] .league-form__field textarea {
    width: 100% !important;
    min-height: 82px !important;
    padding: 10px 11px !important;
    border: 1px solid rgba(31, 76, 137, .14) !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #15294b !important;
    font-size: 11.5px !important;
    line-height: 1.45;
    resize: vertical;
    outline: none;
}

body[data-page^="tournament-creator-step-"] .league-choice-grid {
    gap: 8px !important;
}

body[data-page^="tournament-creator-step-"] .league-choice-card {
    min-width: 0;
    min-height: 76px !important;
    gap: 3px !important;
    padding: 10px 11px !important;
    border: 1px solid rgba(31, 76, 137, .11) !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(10,31,75,.035) !important;
    transform: none;
}

body[data-page^="tournament-creator-step-"] .league-choice-card:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(36,120,243,.34) !important;
    box-shadow: 0 8px 18px rgba(10,31,75,.07) !important;
}

body[data-page^="tournament-creator-step-"] .league-choice-card.is-active,
body[data-page^="tournament-creator-step-"] .league-choice-card:has(input:checked) {
    border-color: rgba(36, 120, 243, .72) !important;
    background: linear-gradient(145deg, #f0f8ff 0%, #ffffff 75%) !important;
    box-shadow: inset 0 0 0 1px rgba(36,120,243,.08), 0 7px 18px rgba(36,120,243,.10) !important;
}

body[data-page^="tournament-creator-step-"] .league-choice-card__icon {
    font-size: 16px !important;
    line-height: 1 !important;
}

body[data-page^="tournament-creator-step-"] .league-choice-card__title {
    color: #13284d !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 850 !important;
}

body[data-page^="tournament-creator-step-"] .league-choice-card__text {
    color: #6a7890 !important;
    font-size: 9.5px !important;
    line-height: 1.35 !important;
}

body[data-page^="tournament-creator-step-"] .league-summary-box {
    margin: 6px 0 11px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(36, 120, 243, .12) !important;
    border-radius: 12px !important;
    background: #eef7ff !important;
    box-shadow: none !important;
}

body[data-page^="tournament-creator-step-"] .league-summary-box__label {
    margin-bottom: 3px !important;
    color: #2d6bb4 !important;
    font-size: 8.5px !important;
    font-weight: 900 !important;
    letter-spacing: .07em !important;
}

body[data-page^="tournament-creator-step-"] .league-summary-box__value {
    color: #1a3157 !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

body[data-page^="tournament-creator-step-"] .league-switch,
body[data-page^="tournament-creator-step-"] .league-private-toggle,
body[data-page^="tournament-creator-step-"] .league-admin-check {
    min-height: 38px !important;
    padding: 8px 11px !important;
    border: 1px solid rgba(31, 76, 137, .12) !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #193153 !important;
    box-shadow: none !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
}

body[data-page^="tournament-creator-step-"] input[type="checkbox"],
body[data-page^="tournament-creator-step-"] input[type="radio"] {
    accent-color: var(--creator-blue);
}

body[data-page^="tournament-creator-step-"] .league-form__actions,
body[data-page^="tournament-creator-step-"] .league-form__footer {
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid var(--creator-line);
    gap: 8px !important;
}

body[data-page^="tournament-creator-step-"] .league-creator-secondary,
body[data-page^="tournament-creator-step-"] .league-creator-submit,
body[data-page^="tournament-creator-step-"] .league-tool-btn,
body[data-page^="tournament-creator-step-"] .league-add-player-btn {
    min-height: 38px !important;
    height: 38px;
    padding: 0 14px !important;
    border-radius: 11px !important;
    font-size: 10.5px !important;
    font-weight: 850 !important;
}

body[data-page^="tournament-creator-step-"] .league-creator-submit {
    min-width: 190px !important;
    box-shadow: 0 8px 18px rgba(28, 108, 228, .18);
}

body[data-page^="tournament-creator-step-"] .league-creator-secondary {
    min-width: 104px !important;
}

body[data-page^="tournament-creator-step-"] .league-overview-grid {
    gap: 8px !important;
    margin-bottom: 12px !important;
}

body[data-page^="tournament-creator-step-"] .league-overview-card {
    padding: 10px 11px !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(10,31,75,.035);
}

body[data-page^="tournament-creator-step-"] .league-overview-card__label {
    margin-bottom: 5px !important;
    font-size: 8.5px !important;
}

body[data-page^="tournament-creator-step-"] .league-overview-list {
    gap: 4px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
}

body[data-page^="tournament-creator-step-"] .league-player-builder,
body[data-page^="tournament-creator-step-"] .tournament-pairing-box,
body[data-page^="tournament-creator-step-"] .tournament-manual-pair-card {
    padding: 11px !important;
    border-radius: 13px !important;
    background: #f7faff !important;
}

body[data-page^="tournament-creator-step-"] .league-toolbar {
    gap: 7px !important;
    margin-bottom: 9px !important;
}

body[data-page^="tournament-creator-step-"] .league-players-list-wrap {
    margin-bottom: 13px !important;
}

body[data-page^="tournament-creator-step-"] .league-players-list-header {
    margin-bottom: 8px !important;
}

body[data-page^="tournament-creator-step-"] .league-player-card {
    padding: 8px 10px !important;
    border-radius: 11px !important;
    box-shadow: 0 3px 9px rgba(10,31,75,.03) !important;
}

body[data-page^="tournament-creator-step-"] .league-player-card__name {
    font-size: 10.5px !important;
}

body[data-page^="tournament-creator-step-"] .league-empty-state {
    padding: 14px !important;
    border-radius: 12px !important;
    font-size: 10.5px;
}

@media (min-width: 768px) {
    body[data-page^="tournament-creator-step-"] .league-form__grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body[data-page^="tournament-creator-step-"] .league-form__grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body[data-page^="tournament-creator-step-"] .league-choice-grid:not(.league-choice-grid--two) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body[data-page^="tournament-creator-step-"] .league-choice-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    body[data-page^="tournament-creator-step-"] .league-creator-grid {
        grid-template-columns: 1fr !important;
    }

    body[data-page^="tournament-creator-step-"] .league-creator-intro {
        position: relative;
        top: auto;
        padding: 15px !important;
    }

    body[data-page^="tournament-creator-step-"] .league-creator-intro h1 {
        max-width: none;
        font-size: 24px !important;
    }

    body[data-page^="tournament-creator-step-"] .league-creator-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body[data-page^="tournament-creator-step-"] .league-creator-page {
        padding: 10px 0 28px !important;
    }

    body[data-page^="tournament-creator-step-"] .league-creator-hero > .container {
        width: min(100% - 16px, 1180px);
    }

    body[data-page^="tournament-creator-step-"] .league-creator-topbar {
        grid-template-columns: auto minmax(120px, 1fr);
        gap: 10px;
        margin-bottom: 9px !important;
    }

    body[data-page^="tournament-creator-step-"] .league-creator-grid {
        gap: 9px !important;
    }

    body[data-page^="tournament-creator-step-"] .league-creator-intro,
    body[data-page^="tournament-creator-step-"] .league-creator-form-card {
        border-radius: 15px !important;
    }

    body[data-page^="tournament-creator-step-"] .league-creator-intro {
        padding: 13px !important;
    }

    body[data-page^="tournament-creator-step-"] .league-creator-intro h1 {
        font-size: 21px !important;
    }

    body[data-page^="tournament-creator-step-"] .league-creator-intro p {
        font-size: 11px !important;
    }

    body[data-page^="tournament-creator-step-"] .league-creator-benefits {
        display: none;
    }

    body[data-page^="tournament-creator-step-"] .league-creator-form-card {
        padding: 13px !important;
    }

    body[data-page^="tournament-creator-step-"] .league-form__grid--two,
    body[data-page^="tournament-creator-step-"] .league-form__grid--three,
    body[data-page^="tournament-creator-step-"] .league-choice-grid,
    body[data-page^="tournament-creator-step-"] .league-choice-grid--two {
        grid-template-columns: 1fr !important;
    }

    body[data-page^="tournament-creator-step-"] .league-choice-card {
        min-height: 68px !important;
    }

    body[data-page^="tournament-creator-step-"] .league-form__field input[type="number"] {
        width: 100% !important;
    }

    body[data-page^="tournament-creator-step-"] .league-form__actions {
        flex-direction: column-reverse !important;
    }

    body[data-page^="tournament-creator-step-"] .league-creator-secondary,
    body[data-page^="tournament-creator-step-"] .league-creator-submit {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* =========================================================
   TOURNAMENT CREATOR STEP 3 — DEBEL / MIKST 2026
   Premium pair builder. Presentation only — no logic changes.
   ========================================================= */
body[data-page="tournament-creator-step-3"] .tfp-pair-builder {
    position: relative;
    overflow: visible;
    margin-bottom: 14px !important;
    padding: 14px !important;
    border: 1px solid rgba(36, 120, 243, .14) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 0 0, rgba(36, 120, 243, .08), transparent 260px),
        radial-gradient(circle at 100% 0, rgba(28, 185, 237, .07), transparent 260px),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
    box-shadow: 0 14px 34px rgba(14, 45, 99, .07) !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-builder__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 12px;
    padding: 0 2px 11px;
    border-bottom: 1px solid rgba(31, 76, 137, .10);
}

body[data-page="tournament-creator-step-3"] .tfp-pair-builder__head > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-builder__eyebrow {
    color: #2478f3;
    font-size: 8.5px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .11em;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-builder__head strong {
    color: #10264b;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -.015em;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-builder__hint {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(36, 120, 243, .13);
    border-radius: 999px;
    background: #eef7ff;
    color: #316db7;
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

/* Dwa zawodnicy — idealnie równe pola */
body[data-page="tournament-creator-step-3"] .tfp-pair-builder .tfp-pair-players-row {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: start !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-player-field {
    position: relative;
    min-width: 0;
    margin-bottom: 10px !important;
    padding: 11px !important;
    border: 1px solid rgba(30, 81, 151, .10);
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 5px 16px rgba(12, 40, 87, .035);
}

body[data-page="tournament-creator-step-3"] .tfp-pair-player-field::before {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 950;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-player-field--one::before {
    content: "1";
    background: #eaf3ff;
    color: #1f6ee7;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-player-field--two::before {
    content: "2";
    background: #eefcf8;
    color: #0aa37d;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-player-field > label {
    padding-right: 30px;
    color: #17345f !important;
    font-size: 10.5px !important;
    letter-spacing: .025em !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-player-field input[type="text"] {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(36, 96, 178, .16) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #10264b !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 2px 8px rgba(18, 56, 111, .035) !important;
    font-size: 12.5px !important;
    font-weight: 720 !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-player-field input[type="text"]::placeholder {
    color: #8a98ae !important;
    font-weight: 580 !important;
    opacity: 1;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-player-field input[type="text"]:focus {
    border-color: rgba(36, 120, 243, .62) !important;
    box-shadow: 0 0 0 3px rgba(36, 120, 243, .10), 0 5px 14px rgba(36,120,243,.06) !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-player-field--two input[type="text"]:focus {
    border-color: rgba(15, 168, 129, .55) !important;
    box-shadow: 0 0 0 3px rgba(15, 168, 129, .09), 0 5px 14px rgba(15,168,129,.05) !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-player-field .tfp-player-search-help {
    min-height: 28px;
    margin-top: 6px !important;
    color: #75839a !important;
    font-size: 9.5px !important;
    line-height: 1.42 !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-player-field .tfp-player-suggestions {
    top: calc(100% - 38px);
    z-index: 70;
    overflow: auto;
    max-height: 230px;
    border: 1px solid rgba(36, 120, 243, .14);
    border-radius: 12px;
    background: rgba(255,255,255,.99);
    box-shadow: 0 18px 36px rgba(10, 33, 76, .14);
}

/* Grupa + czytelny podgląd pary */
body[data-page="tournament-creator-step-3"] .tfp-pair-builder .tfp-pair-settings-row {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) !important;
    gap: 12px !important;
    align-items: end;
    margin-top: 1px;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-group-field select {
    min-height: 43px !important;
    height: 43px !important;
    background-color: #fff !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-preview-field {
    margin-bottom: 11px !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-preview {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 0 42px 0 13px;
    overflow: hidden;
    border: 1px solid rgba(87, 70, 220, .13);
    border-radius: 12px;
    background: linear-gradient(135deg, #f5f3ff 0%, #f2f8ff 52%, #eefcff 100%);
    color: #3c4d73;
    font-size: 11.5px;
    line-height: 1.3;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-preview::after {
    content: "↔";
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(83, 83, 222, .09);
    color: #5655c9;
    font-size: 11px;
    font-weight: 950;
}

/* Koszyk / seed / rozstawienie */
body[data-page="tournament-creator-step-3"] .tfp-pair-builder .tfp-pair-options-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, .72fr) minmax(190px, .95fr) !important;
    gap: 12px !important;
    align-items: end;
    margin-top: 1px;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-options-row .league-form__field input[type="number"] {
    width: 100% !important;
    min-height: 43px !important;
    height: 43px !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-options-row .league-form__field select,
body[data-page="tournament-creator-step-3"] .tfp-pair-options-row .league-switch {
    min-height: 43px !important;
    height: 43px !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-options-row .league-switch {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    border-color: rgba(112, 80, 205, .14) !important;
    background: #faf8ff !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-options-row .league-switch input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    accent-color: #6847d9;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-add-action {
    margin-top: 1px !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-add-action .league-add-player-btn {
    position: relative;
    min-height: 46px !important;
    height: 46px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(100deg, #2169eb 0%, #168de9 55%, #18b8dc 100%) !important;
    box-shadow: 0 10px 22px rgba(32, 112, 224, .20) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .01em !important;
}

body[data-page="tournament-creator-step-3"] .tfp-pair-add-action .league-add-player-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 27px rgba(32, 112, 224, .25) !important;
}

/* Lista par — nazwiska czytelne jak duet, nie jak pojedynczy zawodnik */
body[data-page="tournament-creator-step-3"] .league-player-card--pair {
    min-height: 58px !important;
    border-color: rgba(55, 96, 165, .10) !important;
    background: linear-gradient(90deg, #ffffff 0%, #fbfdff 100%) !important;
}

body[data-page="tournament-creator-step-3"] .league-player-card--pair::before {
    background: linear-gradient(135deg, #eaf3ff, #eefcf9);
    color: #2466d6;
}

body[data-page="tournament-creator-step-3"] .league-player-card--pair .league-player-card__name {
    margin-bottom: 3px !important;
    color: #10264b !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
}

body[data-page="tournament-creator-step-3"] .league-player-card__pair-members {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

body[data-page="tournament-creator-step-3"] .league-player-card__pair-members > span {
    position: relative;
    min-width: 0;
    padding: 4px 7px 4px 24px;
    overflow: hidden;
    border: 1px solid rgba(31, 92, 170, .08);
    border-radius: 8px;
    background: #f7faff;
    color: #27405f;
    font-size: 9.5px;
    line-height: 1.15;
    font-weight: 780;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body[data-page="tournament-creator-step-3"] .league-player-card__pair-members > span b {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border-radius: 5px;
    background: #eaf3ff;
    color: #2470dc;
    font-size: 7.5px;
    font-weight: 950;
}

body[data-page="tournament-creator-step-3"] .league-player-card__pair-members > span:nth-child(2) b {
    background: #e9fbf6;
    color: #079c77;
}

body[data-page="tournament-creator-step-3"] .league-player-card__pair-members small {
    display: none;
}

/* Nadpisanie starej asymetrii 1.2fr / .8fr tylko w trybie par */
@media (min-width: 1024px) {
    body[data-page="tournament-creator-step-3"] .league-player-builder.tfp-pair-builder .tfp-pair-players-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    body[data-page="tournament-creator-step-3"] .tfp-pair-builder {
        padding: 12px !important;
        border-radius: 16px !important;
    }

    body[data-page="tournament-creator-step-3"] .tfp-pair-builder .tfp-pair-players-row,
    body[data-page="tournament-creator-step-3"] .tfp-pair-builder .tfp-pair-settings-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body[data-page="tournament-creator-step-3"] .tfp-pair-builder .tfp-pair-options-row {
        grid-template-columns: 1fr .75fr 1fr !important;
    }
}

@media (max-width: 767px) {
    body[data-page="tournament-creator-step-3"] .tfp-pair-builder__head {
        align-items: flex-start;
        margin-bottom: 10px;
        padding-bottom: 9px;
    }

    body[data-page="tournament-creator-step-3"] .tfp-pair-builder__head strong {
        font-size: 12px;
    }

    body[data-page="tournament-creator-step-3"] .tfp-pair-builder__hint {
        min-height: 24px;
        padding: 0 8px;
        font-size: 8px;
    }

    body[data-page="tournament-creator-step-3"] .tfp-pair-builder .tfp-pair-players-row,
    body[data-page="tournament-creator-step-3"] .tfp-pair-builder .tfp-pair-settings-row,
    body[data-page="tournament-creator-step-3"] .tfp-pair-builder .tfp-pair-options-row {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    body[data-page="tournament-creator-step-3"] .tfp-pair-player-field {
        margin-bottom: 0 !important;
        padding: 9px !important;
        border-radius: 12px;
    }

    body[data-page="tournament-creator-step-3"] .tfp-pair-player-field input[type="text"] {
        min-height: 42px !important;
        height: 42px !important;
        font-size: 12px !important;
    }

    body[data-page="tournament-creator-step-3"] .tfp-pair-player-field .tfp-player-search-help {
        min-height: 0;
        font-size: 9px !important;
    }

    body[data-page="tournament-creator-step-3"] .tfp-pair-preview-field,
    body[data-page="tournament-creator-step-3"] .tfp-pair-group-field {
        margin-bottom: 0 !important;
    }

    body[data-page="tournament-creator-step-3"] .tfp-pair-preview,
    body[data-page="tournament-creator-step-3"] .tfp-pair-group-field select,
    body[data-page="tournament-creator-step-3"] .tfp-pair-options-row .league-form__field input[type="number"],
    body[data-page="tournament-creator-step-3"] .tfp-pair-options-row .league-form__field select,
    body[data-page="tournament-creator-step-3"] .tfp-pair-options-row .league-switch {
        min-height: 40px !important;
        height: 40px !important;
    }

    body[data-page="tournament-creator-step-3"] .tfp-pair-add-action .league-add-player-btn {
        min-height: 42px !important;
        height: 42px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card--pair {
        min-height: 68px !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card--pair .league-player-card__name {
        display: none !important;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__pair-members {
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    body[data-page="tournament-creator-step-3"] .league-player-card__pair-members > span {
        width: 100%;
        padding-top: 3px;
        padding-bottom: 3px;
        font-size: 9px;
    }
}
