/* HFAi Sovereign Security Gate & Inspector HUD Styles */

#hfai-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, rgba(14, 25, 45, 0.98), rgba(4, 7, 13, 0.99));
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

#hfai-gate.unlocked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hfai-gate-card {
    background: rgba(18, 24, 38, 0.75);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 210, 255, 0.15);
    position: relative;
    overflow: hidden;
    color: #fff;
    font-family: 'Outfit', 'Tajawal', sans-serif;
}

.hfai-gate-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hfai-gate-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hfai-gate-logo svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.5));
}

.hfai-badge {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    font-weight: 700;
}

.hfai-gate-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.4;
}

.hfai-gate-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 28px;
    line-height: 1.6;
}

.hfai-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

#hfai-pin {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 18px;
    letter-spacing: 6px;
    text-align: center;
    color: #fff;
    width: 160px;
    outline: none;
    transition: all 0.25s ease;
}

#hfai-pin:focus {
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    background: rgba(255, 255, 255, 0.09);
}

.hfai-btn {
    background: linear-gradient(135deg, #00d2ff, #0072ff);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.25s ease;
}

.hfai-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4);
}

.hfai-error-msg {
    min-height: 20px;
    color: #ff4d6d;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.hfai-gate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    margin-top: 10px;
}

.security-level {
    color: #fca311;
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes hfaiShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

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

/* Master HUD Modal */
.hfai-hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hfai-hud-card {
    background: #0d131f;
    border: 1px solid #00d2ff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.25);
    font-family: 'Outfit', monospace;
}

.hfai-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

#hfai-hud-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
