/* 
 * Access Control & Loading Screens Style
 * Policing+ Branding
 */

#policing-access-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #080808;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #fff;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background Glow */
.policing-bg-glow {
    position: absolute;
    width: 2000px;
    height: 2000px;
    background: radial-gradient(circle, rgba(0, 117, 255, 0.1) 0%, transparent 70%);
    filter: blur(137.5px);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

/* --- LOADING SCREEN --- */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.spinning-logo {
    width: 64px;
    height: 64px;
    animation: variable-spin 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes variable-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.fade-out {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- VERIFICATION SCREEN --- */
.verification-card {
    background: #101828;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    backdrop-filter: blur(30px);
}

.verification-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 4px;
}

.verification-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.verification-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: #fff;
    letter-spacing: -0.2px;
}

.verification-title p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    margin: 0;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    width: 100%;
    margin: 1.25rem 0 1.5rem 0;
}

.verification-inputs-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verification-inputs-label span {
    color: #ef4444;
}

.verification-inputs-label .help-circle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.08);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: help;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    transition: all 0.2s;
    line-height: 1;
}

.verification-inputs-label .help-circle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.otp-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 0;
}

.otp-input {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.2s;
}

.otp-input:focus {
    outline: none;
    border-color: #1a75ff;
    background: rgba(26, 117, 255, 0.05);
    box-shadow: 0 0 15px rgba(26, 117, 255, 0.2);
}

.verification-footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #1a75ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #0066ff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.otp-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

/* --- SETUP / NICKNAME SCREEN --- */
#hud-setup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: #080808;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #fff;
    animation: fadeIn 0.4s ease;
}

.setup-modal {
    background: #101828;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
    backdrop-filter: blur(30px);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.setup-header {
    width: 100%;
    text-align: left;
}

.setup-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: -0.2px;
}

/* Specific styling for the setup nickname input */
.setup-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 2.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.setup-input-wrapper:focus-within {
    border-color: #1a75ff;
    background: rgba(26, 117, 255, 0.05);
    box-shadow: 0 0 20px rgba(26, 117, 255, 0.1);
}

.setup-prefix {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.01);
}

.setup-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 18px;
    height: 52px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
}

.setup-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.12);
}

.error-shake {
    animation: shake 0.4s ease-in-out;
    border-color: #ef4444 !important;
}

.discord-btn {
    width: 100%;
    padding: 1rem;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.ghost-btn {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}