/* Tournament Quick Register modal — dark court shell (theme-isolated) */

.tqr-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(9, 9, 11, 0.82);
    backdrop-filter: blur(8px);
}

.tqr-overlay.is-open {
    display: flex;
}

.tqr-modal {
    width: min(600px, 100%);
    max-height: min(94vh, 920px);
    background:
        radial-gradient(ellipse 90% 50% at 50% -10%, rgba(42, 157, 143, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, #12151a 0%, #0c1418 55%, #101820 100%);
    color: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(217, 241, 20, 0.28);
    box-shadow:
        0 0 0 1px rgba(217, 241, 20, 0.08),
        0 24px 80px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    position: relative;
}

.tqr-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1.5px solid rgba(217, 241, 20, 0.55);
    background: rgba(9, 9, 11, 0.55);
    color: #d9f114;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease;
}

.tqr-close:hover,
.tqr-close:focus-visible {
    background: #d9f114;
    color: #09090b;
    outline: none;
}

.tqr-header {
    padding: 1.5rem 3rem 0.85rem 1.5rem;
}

.tqr-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d9f114;
}

.tqr-kicker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d9f114;
    box-shadow: 0 0 0 0 rgba(217, 241, 20, 0.5);
    animation: tqr-pulse 1.6s infinite;
}

@keyframes tqr-pulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 241, 20, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(217, 241, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 241, 20, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .tqr-kicker-dot { animation: none; }
}

.tqr-title {
    margin: 0;
    font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.15rem);
    letter-spacing: 0.02em;
    line-height: 1.05;
    text-transform: uppercase;
    color: #ffffff;
}

.tqr-subtitle {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
}

/* ── Registration countdown ── */
.tqr-countdown {
    margin-top: 1rem;
    padding: 0.9rem 1rem 0.85rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #163029 0%, rgba(31, 67, 57, 0.95) 100%);
    border: 1px solid rgba(217, 241, 20, 0.28);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.tqr-countdown[hidden] {
    display: none !important;
}

.tqr-countdown-label {
    margin: 0 0 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.tqr-countdown-label i {
    color: #d9f114;
}

.tqr-countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.55rem;
}

.tqr-countdown-unit {
    min-width: 3.15rem;
    padding: 0.45rem 0.3rem 0.4rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.tqr-countdown-value {
    display: block;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #d9f114;
    font-variant-numeric: tabular-nums;
}

.tqr-countdown-caption {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.tqr-countdown-sep {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.15rem;
    color: rgba(217, 241, 20, 0.7);
    padding-bottom: 0.85rem;
}

.tqr-countdown-deadline {
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.68);
}

.tqr-countdown.is-expired {
    background: linear-gradient(135deg, #3b2a2a 0%, #2a1a1a 100%);
    border-color: rgba(248, 113, 113, 0.35);
}

.tqr-countdown.is-opens-soon {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(22, 48, 41, 0.96) 100%);
    border-color: rgba(255, 235, 120, 0.38);
}

.tqr-countdown.is-expired .tqr-countdown-grid {
    display: none;
}

.tqr-countdown.is-expired .tqr-countdown-label {
    margin-bottom: 0.35rem;
    color: #fca5a5;
}

.tqr-countdown.is-expired .tqr-countdown-label i {
    color: #f87171;
}

.tqr-body {
    padding: 0 1.5rem 1.5rem;
}

.tqr-section {
    margin-bottom: 1.35rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tqr-section-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.tqr-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    flex-wrap: wrap;
}

.tqr-section-head .tqr-section-label {
    margin: 0;
}

.tqr-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.tqr-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tqr-toggle-ui {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tqr-toggle-ui::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.tqr-toggle input:checked + .tqr-toggle-ui {
    background: #d9f114;
    border-color: #d9f114;
}

.tqr-toggle input:checked + .tqr-toggle-ui::after {
    transform: translateX(18px);
    background: #09090b;
}

.tqr-toggle input:focus-visible + .tqr-toggle-ui {
    box-shadow: 0 0 0 3px rgba(217, 241, 20, 0.35);
}

.tqr-toggle-text {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.tqr-club-fields[hidden],
.tqr-id-fields[hidden] {
  display: none !important;
}

.tqr-id-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tqr-hint[hidden] {
    display: none !important;
}

.tqr-section-label i {
    color: #d9f114;
    font-size: 0.9rem;
}

.tqr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

@media (max-width: 520px) {
    .tqr-grid { grid-template-columns: 1fr; }
}

.tqr-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.tqr-field em {
    font-weight: 500;
    font-style: normal;
    color: rgba(255, 255, 255, 0.4);
    text-transform: none;
}

.tqr-field input,
.tqr-field select {
    font: inherit;
    font-weight: 600;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tqr-field input::placeholder {
    color: rgba(255, 255, 255, 0.38);
    font-weight: 500;
}

.tqr-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d9f114' d='M1.4.7 6 5.3 10.6.7 12 2.1 6 8.1 0 2.1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.2rem;
}

.tqr-field select option {
    background: #1a222b;
    color: #ffffff;
}

.tqr-field input:focus,
.tqr-field select:focus {
    outline: none;
    border-color: rgba(217, 241, 20, 0.65);
    box-shadow: 0 0 0 3px rgba(217, 241, 20, 0.16);
    background: rgba(0, 0, 0, 0.45);
}

/* ── Payment slip — fully dark ── */
.tqr-slip {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(217, 241, 20, 0.28);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    background: #141a20;
}

.tqr-slip-bank {
    padding: 1.1rem 1.25rem 1.15rem;
    background: linear-gradient(135deg, #1c232b 0%, #12181f 100%);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tqr-slip-bank-name {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.tqr-slip-acct-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

.tqr-slip-acct-num {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #d9f114;
}

.tqr-slip-tear {
    position: relative;
    height: 0;
    border-top: 2px dashed rgba(217, 241, 20, 0.22);
    background: transparent;
}

.tqr-slip-tear::before,
.tqr-slip-tear::after {
    content: '';
    position: absolute;
    top: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0c1418;
}

.tqr-slip-tear::before { left: -9px; }
.tqr-slip-tear::after { right: -9px; }

.tqr-slip-qr {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.18) 100%);
    padding: 1.25rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.tqr-qr-frame {
    width: 148px;
    height: 148px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(217, 241, 20, 0.25);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.tqr-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tqr-qr-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.66rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
}

.tqr-qr-fallback i {
    font-size: 1.5rem;
    color: #d9f114;
}

.tqr-qr-loading .tqr-qr-fallback,
.tqr-qr-missing .tqr-qr-fallback {
    display: flex;
    position: absolute;
    inset: 0;
    background: #1a222b;
}

.tqr-qr-loading .tqr-qr-img,
.tqr-qr-missing .tqr-qr-img {
    display: none;
}

.tqr-slip-acct-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: #ffffff;
}

.tqr-slip-note {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

/* ── Upload control ── */
.tqr-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1.5px dashed rgba(217, 241, 20, 0.38);
    background: rgba(217, 241, 20, 0.05);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tqr-upload:hover {
    border-color: rgba(217, 241, 20, 0.65);
    background: rgba(217, 241, 20, 0.09);
}

.tqr-upload.has-file {
    border-style: solid;
    border-color: #d9f114;
    background: rgba(217, 241, 20, 0.1);
}

.tqr-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.tqr-upload-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(217, 241, 20, 0.14);
    color: #d9f114;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.tqr-upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tqr-upload-text strong {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
}

.tqr-upload-text small {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.52);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tqr-upload-preview {
    flex-shrink: 0;
    margin-left: auto;
}

.tqr-upload-preview img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(217, 241, 20, 0.4);
}

.tqr-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.tqr-error[hidden] {
    display: none !important;
}

.tqr-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: none;
    background: #d9f114;
    color: #09090b;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(217, 241, 20, 0.28);
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.tqr-submit:hover:not(:disabled) {
    filter: brightness(1.06);
}

.tqr-submit:active:not(:disabled) {
    transform: scale(0.99);
}

.tqr-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.tqr-fee-banner {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #09090b 0%, #18181b 100%);
    border: 1px solid rgba(217, 241, 20, 0.25);
}

.tqr-fee-banner[hidden] {
    display: none !important;
}

.tqr-fee-banner__label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.tqr-fee-banner__amount {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.75rem;
    line-height: 1;
    color: #d9f114;
    letter-spacing: 0.02em;
}

.tqr-fee-banner__team-note {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
}

.tqr-fee-banner__hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.4;
}

.tqr-player-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(217, 241, 20, 0.2);
    background: rgba(0, 0, 0, 0.22);
}

.tqr-player-card.is-selected {
    border-color: rgba(217, 241, 20, 0.55);
    background: rgba(217, 241, 20, 0.08);
}

.tqr-player-card strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.tqr-player-card small {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.tqr-player-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #09090b;
    color: #d9f114;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid rgba(217, 241, 20, 0.25);
}

.tqr-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tqr-partner-results {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.65rem;
    max-height: 220px;
    overflow-y: auto;
}

.tqr-hint {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.tqr-hint--error {
    color: #fb7185;
}

.tqr-partner-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.tqr-partner-row:hover,
.tqr-partner-row:focus-visible {
    border-color: rgba(217, 241, 20, 0.45);
    background: rgba(217, 241, 20, 0.08);
    outline: none;
}

.tqr-partner-row__text {
    flex: 1;
    min-width: 0;
}

.tqr-partner-row__text strong {
    display: block;
    font-size: 0.9rem;
    color: #fff;
}

.tqr-partner-row__text small {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.tqr-partner-row.is-disabled {
    cursor: default;
    opacity: 0.72;
}

.tqr-partner-row.is-disabled:hover,
.tqr-partner-row.is-disabled:focus-visible {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
}

.tqr-partner-row__add {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d9f114;
}

.tqr-partner-selected {
    margin-top: 0.65rem;
}

.tqr-partner-clear {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 480px) {
    .tqr-overlay { padding: 1.25rem 0.6rem; }

    .tqr-modal {
        border-radius: 18px;
        max-height: 86vh;
    }

    .tqr-header {
        padding: 1.1rem 2.9rem 0.75rem 1.1rem;
    }

    .tqr-title {
        font-size: 1.35rem;
    }

    .tqr-close {
        width: 34px;
        height: 34px;
        top: 0.8rem;
        right: 0.8rem;
        font-size: 0.95rem;
    }

    .tqr-body {
        padding: 0 1rem 1.1rem;
    }

    .tqr-section {
        margin-bottom: 1rem;
        padding: 0.85rem 0.9rem;
    }

    .tqr-countdown-unit {
        min-width: 2.75rem;
        padding: 0.4rem 0.2rem;
    }

    .tqr-countdown-value {
        font-size: 1.25rem;
    }

    .tqr-field input,
    .tqr-field select {
        padding: 0.6rem 0.75rem;
        font-size: 16px;
    }

    .tqr-qr-frame {
        width: 118px;
        height: 118px;
    }

    .tqr-submit {
        padding: 0.85rem 1rem;
        font-size: 0.82rem;
    }
}
