﻿.bt-app,
.bt-widget,
.bt-dialog {
    --bt-red: #df1024;
    --bt-ink: #121212;
    --bt-line: rgba(0, 0, 0, .12);
    color: var(--bt-ink);
    font-family: "Plus Jakarta Sans", sans-serif;
}

    .bt-app *,
    .bt-widget *,
    .bt-dialog * {
        box-sizing: border-box;
    }

    .bt-app [hidden],
    .bt-widget[hidden],
    .bt-widget [hidden],
    .bt-dialog [hidden],
    .bt-dialog:not([open]) {
        display: none !important;
    }

.bt-app {
    width: min(1180px, calc(100% - 32px));
    margin: 35px auto 60px;
}

.bt-hero,
.bt-panel-head,
.bt-deadline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.bt-hero {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--bt-line);
}

.bt-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #111;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.7;
}

.bt-hero h1 {
    margin: 0 0 12px;
    color: #111;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -.065em;
    line-height: 1.1;
}

.bt-hero p {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}

.bt-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bt-app .bt-btn,
.bt-widget .bt-btn,
.bt-dialog .bt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 42px;
    height: auto;
    margin: 0;
    padding: 10px 15px;
    border: 1px solid var(--bt-line);
    border-radius: 12px;
    background: #fff;
    color: #111 !important;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
}

    .bt-app .bt-btn:hover,
    .bt-widget .bt-btn:hover,
    .bt-dialog .bt-btn:hover {
        background: #f2f2f2;
    }

.bt-app .bt-primary,
.bt-widget .bt-primary,
.bt-dialog .bt-primary {
    border-color: var(--bt-red);
    background: var(--bt-red);
    color: #fff !important;
}

    .bt-app .bt-primary:hover,
    .bt-widget .bt-primary:hover,
    .bt-dialog .bt-primary:hover {
        background: #c60c20;
        color: #fff !important;
    }

.bt-btn:disabled {
    opacity: .5;
    cursor: default;
}

.bt-app .bt-btn:focus-visible,
.bt-widget .bt-btn:focus-visible,
.bt-dialog .bt-btn:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

.bt-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.bt-panel {
    min-width: 0;
    margin-bottom: 20px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--bt-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .045);
}

    .bt-panel h2,
    .bt-dialog h2 {
        margin: 0 0 12px;
        color: #111;
        font-size: 22px;
        font-weight: 800;
        letter-spacing: -.04em;
        line-height: 1.4;
    }

    .bt-panel p {
        color: #111;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.9;
    }

.bt-panel-head {
    margin-bottom: 15px;
}

    .bt-panel-head h2 {
        margin-bottom: 0;
    }

.bt-notice {
    margin: 12px 0 18px;
    padding: 13px 15px;
    border: 1px solid var(--bt-line);
    border-radius: 12px;
    background: #f7f7f7;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.85;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.bt-deadline {
    margin-bottom: 22px;
    padding: 17px 20px;
    border: 1px solid var(--bt-line);
    border-radius: 15px;
    background: #fafafa;
}

    .bt-deadline .bt-eyebrow {
        margin-bottom: 3px;
    }

    .bt-deadline strong {
        font-size: 15px;
        font-weight: 800;
    }

.bt-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--bt-line);
    border-radius: 9px;
    background: #f4f4f4;
    color: #111;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.6;
}

    .bt-tag.is-positive {
        border-color: #b7d7c2;
        background: #edf7f0;
    }

    .bt-tag.is-closed {
        border-color: #ddd;
        background: #ededed;
    }

    .bt-tag.is-negative {
        border-color: #efc3c8;
        background: #fff2f3;
    }

.bt-app fieldset,
.bt-dialog fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.bt-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 14px;
}

.bt-span {
    grid-column: 1 / -1;
}

.bt-field {
    min-width: 0;
    margin: 0 0 17px;
}

    .bt-field > label {
        display: block;
        margin-bottom: 7px;
        color: #111;
        font-size: 12px;
        font-weight: 800;
    }

.bt-app input:not([type="checkbox"]),
.bt-app select,
.bt-app textarea,
.bt-dialog input:not([type="checkbox"]),
.bt-dialog select,
.bt-dialog textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 11px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}

.bt-app textarea,
.bt-dialog textarea {
    resize: vertical;
}

    .bt-app input:focus,
    .bt-app select:focus,
    .bt-app textarea:focus,
    .bt-dialog input:focus,
    .bt-dialog select:focus,
    .bt-dialog textarea:focus {
        outline: 2px solid #111;
        outline-offset: 2px;
    }

.bt-field small {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    font-weight: 650;
}

.bt-identity {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--bt-line);
    border-radius: 12px;
    background: #fafafa;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.9;
    white-space: pre-line;
}

.bt-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 13px;
    border: 1px solid var(--bt-line);
    border-radius: 12px;
    background: #fafafa;
    color: #111;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.9;
    cursor: pointer;
}

    .bt-consent input {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin: 3px 0 0;
        accent-color: var(--bt-red);
    }

.bt-request-list {
    display: grid;
    gap: 12px;
}

.bt-request {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--bt-line);
    border-radius: 14px;
    background: #fff;
}

.bt-request-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-request strong {
    color: #111;
    font-size: 14px;
    font-weight: 800;
}

.bt-request p {
    margin: 8px 0;
    font-size: 12px;
    line-height: 1.8;
}

.bt-request .bt-actions {
    margin-top: 12px;
}

.bt-request details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--bt-line);
    font-size: 11px;
    line-height: 1.9;
}

.bt-request summary {
    cursor: pointer;
    font-weight: 800;
}

.bt-request details p {
    margin: 5px 0;
    white-space: pre-line;
}

.bt-request .bt-btn {
    min-height: 35px;
    padding: 7px 10px;
    font-size: 10px;
}

.bt-settings-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

    .bt-settings-row small {
        font-size: 11px;
        font-weight: 650;
    }

.bt-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

    .bt-toggle input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

    .bt-toggle > span {
        position: relative;
        display: block;
        width: 43px;
        height: 25px;
        border: 1px solid #ccc;
        border-radius: 30px;
        background: #ddd;
    }

        .bt-toggle > span::after {
            content: "";
            position: absolute;
            top: 3px;
            left: 3px;
            width: 17px;
            height: 17px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
            transition: transform .2s;
        }

    .bt-toggle input:checked + span {
        border-color: var(--bt-red);
        background: var(--bt-red);
    }

        .bt-toggle input:checked + span::after {
            transform: translateX(18px);
        }

    .bt-toggle input:focus-visible + span {
        outline: 3px solid #111;
        outline-offset: 3px;
    }

.bt-section-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-section-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--bt-line);
    border-radius: 11px;
    background: #fafafa;
    color: #111;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

    .bt-section-choice input {
        width: 17px;
        height: 17px;
        margin: 0;
        accent-color: var(--bt-red);
    }

    .bt-section-choice:has(input:checked) {
        border-color: #111;
        background: #f0f0f0;
    }

.bt-distribution {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 18px;
}

.bt-filter {
    max-width: 300px;
}

.bt-page-info {
    font-size: 12px;
    font-weight: 750;
}

.bt-busy {
    position: sticky;
    top: 90px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 14px 18px;
    border: 1px solid var(--bt-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.bt-spinner {
    display: inline-block;
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    border: 3px solid #ddd;
    border-top-color: #111;
    border-radius: 50%;
    animation: btSpin .8s linear infinite;
}

.bt-dialog {
    position: fixed;
    inset: 0;
    width: min(580px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--bt-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .22);
}

    .bt-dialog[open] {
        display: flex;
        flex-direction: column;
    }

    .bt-dialog::backdrop {
        background: rgba(0, 0, 0, .4);
        backdrop-filter: blur(5px);
    }

.bt-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    padding: 15px 20px;
    border-bottom: 1px solid var(--bt-line);
}

    .bt-dialog-head h2 {
        margin: 0;
        font-size: 18px;
    }

    .bt-dialog-head .bt-btn {
        min-height: 37px;
        width: 37px;
        padding: 0;
        font-size: 22px;
    }

.bt-dialog-body {
    min-height: 0;
    overflow: auto;
    padding: 20px;
}

.bt-widget {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

    .bt-widget .bt-tag {
        max-width: 100%;
    }

@keyframes btSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 760px) {
    .bt-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .bt-app {
        width: calc(100% - 24px);
        margin-top: 23px;
    }

    .bt-hero {
        align-items: flex-start;
    }
}

@media (max-width: 440px) {
    .bt-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bt-span {
        grid-column: auto;
    }

    .bt-panel {
        padding: 17px;
    }

    .bt-panel-head {
        align-items: flex-start;
    }

    .bt-deadline {
        padding: 15px;
    }
}
/* Bilet sayfalarında gerçek select alanlarını kullan. */
#btApp select,
.bt-dialog select {
    display: block !important;
    width: 100%;
}

/* Önceden oluşturulmuş Nice Select kopyalarını gizle. */
#btApp .nice-select,
.bt-dialog .nice-select {
    display: none !important;
}
/* Alan altında doğrulama mesajı */

.bt-app .bt-field-error {
    display: block;
    margin-top: 8px;
    padding: 9px 11px;
    border-left: 3px solid #df1024;
    border-radius: 0 8px 8px 0;
    background: #fff3f4;
    color: #a30b1a;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.7;
}

.bt-app input[aria-invalid="true"] {
    border-color: #df1024;
    background: #fffafa;
}

/* Talep edilen maç */

.bt-match-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid var(--bt-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .055);
}

.bt-match-cover {
    display: grid;
    place-items: center;
    min-height: 230px;
    overflow: hidden;
    border-right: 1px solid var(--bt-line);
    background: #f5f5f5;
}

    .bt-match-cover img {
        display: block;
        width: 100%;
        height: 100%;
        max-height: 320px;
        object-fit: cover;
    }

        .bt-match-cover img.is-logo {
            width: 125px;
            height: 125px;
            object-fit: contain;
        }

.bt-match-content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 11px;
    padding: 24px 28px;
}

    .bt-match-content .bt-eyebrow {
        margin: 0;
    }

.bt-match-competition {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid var(--bt-line);
    border-radius: 7px;
    background: #fafafa;
    color: #111;
    font-size: 10px;
    font-weight: 800;
}

.bt-match-teams {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

    .bt-match-teams strong {
        color: #111;
        font-size: clamp(20px, 3vw, 32px);
        font-weight: 800;
        letter-spacing: -.04em;
    }

    .bt-match-teams > span {
        padding: 5px 7px;
        border-radius: 6px;
        background: #f0f0f0;
        color: #111;
        font-size: 10px;
        font-weight: 800;
    }

.bt-match-content h2 {
    margin: 0;
    color: #111;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.7;
}

.bt-match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

    .bt-match-meta > span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

.bt-match-content > .bt-btn {
    margin-top: 3px;
    min-height: 35px;
    padding: 7px 11px;
    font-size: 11px;
}

@media (max-width: 640px) {
    .bt-match-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .bt-match-cover {
        min-height: 155px;
        height: 180px;
        border-right: 0;
        border-bottom: 1px solid var(--bt-line);
    }

        .bt-match-cover img {
            max-height: none;
        }

            .bt-match-cover img.is-logo {
                width: 100px;
                height: 100px;
            }

    .bt-match-content {
        padding: 20px;
    }
}
.swal2-popup.bt-alert {
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 22px;
    font-family: "Plus Jakarta Sans", sans-serif;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .2);
}

.bt-alert .swal2-image {
    margin: 6px auto 18px;
    object-fit: contain;
}

.bt-alert .bt-alert-title {
    padding: 0;
    color: #111;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.4;
}

.bt-alert .bt-alert-text {
    margin: 14px 0 0;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.9;
}

.bt-alert .bt-alert-actions {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 24px 0 0;
    padding: 0;
}

.bt-alert .bt-alert-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 140px;
    min-height: 46px;
    margin: 0 !important;
    padding: 12px 18px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.5;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
}

.bt-alert .bt-alert-danger {
    border-color: #df1024 !important;
    background: #df1024 !important;
    color: #fff !important;
}

    .bt-alert .bt-alert-danger:hover {
        background: #c60c20 !important;
    }

.bt-alert .bt-alert-cancel {
    border-color: #d7d7d7 !important;
    background: #fff !important;
    color: #111 !important;
}

    .bt-alert .bt-alert-cancel:hover {
        background: #f2f2f2 !important;
    }

.bt-alert .bt-alert-button:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}