/* Tournament Quick Register modal — bank-slip styled "Register Now" form,
   launched from Upcoming Events tournament cards. Shares the dark/lime
   sports-ops language used across the rest of the app (ue-modal, homepage). */

.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.8);
    backdrop-filter: blur(6px);
}

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

.tqr-modal {
    width: min(600px, 100%);
    max-height: min(94vh, 920px);
    background: linear-gradient(180deg, #101012 0%, #09090B 60%);
    color: #fff;
    border-radius: 22px;
    border: 1px solid rgba(217, 241, 20, 0.22);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    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.5);
    color: var(--accent, #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: var(--accent, #D9F114);
    color: #09090B;
    outline: none;
}

.tqr-header {
    padding: 1.5rem 3rem 1.1rem 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: var(--accent, #D9F114);
}

.tqr-kicker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent, #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); }
}

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

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

.tqr-section {
    margin-bottom: 1.5rem;
}

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

.tqr-section-label i {
    color: var(--accent, #D9F114);
    font-size: 0.85rem;
}

.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.85);
}

.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.12);
    background: #18181B;
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.tqr-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D9F114' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.2rem;
}

.tqr-field select option {
    background: #18181B;
    color: #fff;
}

.tqr-field input:focus,
.tqr-field select:focus {
    outline: none;
    border-color: var(--accent, #D9F114);
    box-shadow: 0 0 0 3px rgba(217, 241, 20, 0.15);
}

/* ── Payment slip — mirrors a real bank-transfer receipt: dark bank header,
   a torn/perforated divider, then a light QR panel. ── */
.tqr-slip {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(217, 241, 20, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

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

.tqr-slip-bank-name {
    font-family: var(--font-display, "Bebas Neue", sans-serif);
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    color: #fff;
    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: var(--accent, #D9F114);
}

.tqr-slip-tear {
    position: relative;
    height: 0;
    border-top: 2px dashed rgba(9, 9, 11, 0.22);
    background: #f4f4f2;
}

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

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

.tqr-slip-qr {
    background: linear-gradient(180deg, #f8f8f5, #efefe9);
    padding: 1.4rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.tqr-qr-frame {
    width: 148px;
    height: 148px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    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: #a1a1aa;
    font-size: 0.66rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
}

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

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

.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: #18181b;
}

.tqr-slip-note {
    font-size: 0.72rem;
    font-weight: 600;
    color: #71717a;
}

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

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

.tqr-upload.has-file {
    border-style: solid;
    border-color: var(--accent, #D9F114);
    background: rgba(217, 241, 20, 0.09);
}

.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.12);
    color: var(--accent, #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: #fff;
}

.tqr-upload-text small {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    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.3);
    color: #fca5a5;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.tqr-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: none;
    background: var(--accent, #D9F114);
    color: #09090B;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

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

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

.tqr-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
