/* ─── Team Code Gate ─── */
#wrc-tc-gate {
    max-width: 500px;
    margin: 30px auto;
    text-align: center;
}

#wrc-tc-gate-inner {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#wrc-tc-gate h3 {
    margin: 16px 0 8px;
    font-size: 22px;
    color: #1d2327;
}

#wrc-tc-gate p {
    color: #666;
    margin-bottom: 24px;
    font-size: 15px;
}

.wrc-tc-icon {
    display: inline-block;
}

.wrc-tc-input-wrap {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

#wrc-tc-code-input {
    padding: 12px 16px;
    font-size: 16px;
    font-family: monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid #ddd;
    border-radius: 6px;
    width: 220px;
    text-align: center;
    transition: border-color 0.2s;
}

#wrc-tc-code-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.15);
}

#wrc-tc-submit-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#wrc-tc-submit-btn:hover {
    background: #005a87;
}

#wrc-tc-submit-btn:disabled {
    background: #999;
    cursor: wait;
}

#wrc-tc-message {
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
}

#wrc-tc-message.wrc-tc-error {
    background: #fef0f0;
    color: #cc1818;
    border: 1px solid #f5c6c6;
}

#wrc-tc-message.wrc-tc-success {
    background: #edfaef;
    color: #0a7c1a;
    border: 1px solid #b8e6be;
}

/* ─── Team Banner ─── */
#wrc-tc-team-banner {
    margin-bottom: 20px;
}

.wrc-tc-banner-inner {
    background: linear-gradient(135deg, #edf7ff 0%, #f0f6fc 100%);
    border: 1px solid #b8d9f0;
    border-radius: 6px;
    padding: 14px 20px;
    font-size: 15px;
    color: #1d2327;
}

.wrc-tc-sep {
    margin: 0 12px;
    color: #bbb;
}

.wrc-tc-code-mono {
    font-family: monospace;
    font-weight: 700;
    color: #0073aa;
    letter-spacing: 1px;
}

/* ─── Make WP-Members team fields readonly ─── */
#wrc-tc-registration input[name="team_name"],
#wrc-tc-registration input[name="team_code"] {
    background: #f5f5f5 !important;
    color: #555 !important;
    border-color: #ddd !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* ─── Loading spinner ─── */
.wrc-tc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: wrc-spin 0.6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes wrc-spin {
    to { transform: rotate(360deg); }
}
