/* ── SHARED REUSABLE UI COMPONENTS ── */

/* ── AURORA GLASS AUTH STYLES ── */
#authLock {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #050508;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(120, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 200, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 128, 0.1) 0%, transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: aurora-shift 20s ease-in-out infinite alternate;
}

@keyframes aurora-shift {
    0% { background-position: 0% 0%; }
    50% { background-position: 50% 100%; }
    100% { background-position: 100% 0%; }
}

#authLock.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-node {
    width: 420px;
    background: rgba(15, 15, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 48px 40px;
    position: relative;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 0 40px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    overflow: hidden;
}

.auth-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.02) 50%, transparent);
    background-size: 100% 6px;
    pointer-events: none;
    z-index: 0;
}

.auth-bracket {
    display: none;
}

.auth-header-tech {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 36px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ffcc;
    box-shadow: 0 0 12px #00ffcc;
    animation: pulse-aurora 2s infinite alternate;
}

.auth-core {
    width: 72px;
    height: 72px;
    margin: 0 auto 32px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(120, 0, 255, 0.8), rgba(0, 255, 200, 0.8));
    border-radius: 22px;
    transform: rotate(45deg);
    box-shadow: 
        0 15px 30px rgba(120, 0, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: float-core 6s ease-in-out infinite;
}

.core-ring {
    display: none;
}

.core-center {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    transform: rotate(-45deg);
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.auth-brand-zero {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.auth-sub-zero {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.auth-prompt-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 18px;
    transition: all 0.3s ease;
}

.auth-prompt-row:focus-within {
    border-color: rgba(0, 255, 200, 0.4);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 255, 200, 0.2);
}

.auth-prompt-lbl {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.auth-input-zero {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    padding: 4px 0;
}

.auth-input-zero::placeholder {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
}

.auth-btn-zero {
    width: 100%;
    background: linear-gradient(135deg, #7800ff 0%, #00ffcc 100%);
    color: #fff;
    border: none;
    padding: 18px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 255, 200, 0.25);
}

.auth-btn-zero:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 255, 200, 0.4);
    filter: brightness(1.15);
}

.auth-btn-zero:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(0, 255, 200, 0.2);
}

.auth-error-zero {
    color: #ff3366;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    margin-top: 20px;
    display: none;
    letter-spacing: 0.5px;
    animation: shake 0.4s ease-in-out;
}

.auth-terminal-log {
    display: none;
}

@keyframes pulse-aurora {
    0% { transform: scale(0.8); opacity: 0.6; box-shadow: 0 0 8px #00ffcc; }
    100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 16px #00ffcc; }
}

@keyframes float-core {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-8px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ── LOGOUT BUTTON ── */
.logout-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 10001;
    background: var(--glass-base);
    backdrop-filter: var(--blur-soft);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, border-color 0.3s,
                box-shadow 0.3s, transform 0.3s,
                opacity 0.6s ease, translate 0.6s ease;
}

.logout-btn:hover {
    background: #ff4b2b;
    color: white;
    border-color: #ff4b2b;
    transform: scale(1.05);
}

.logout-btn.logout-idle {
    opacity: 0;
    translate: -10px 0;
    pointer-events: none;
}

/* SHORTCUT MODAL (dashboard version) */
.shortcut-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--glass-base);
    backdrop-filter: var(--blur-soft);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}
.shortcut-toggle:hover {
    background: var(--gym);
    color: #0a1018;
    border-color: var(--gym);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(61, 214, 140, 0.4);
}
#shortcutModal {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 18, 0.85);
    z-index: 25000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    animation: fadeIn 0.3s ease;
}
#shortcutModal.open { display: flex; }
.shortcut-content {
    background: rgba(22, 32, 48, 0.9);
    backdrop-filter: blur(32px);
    border: 1px solid var(--glass-border-light);
    padding: 32px;
    border-radius: 32px;
    width: 340px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}
.shortcut-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}
.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}
.shortcut-key {
    background: rgba(61, 214, 140, 0.12);
    border: 1px solid rgba(61, 214, 140, 0.3);
    padding: 4px 10px;
    border-radius: 8px;
    color: var(--gym);
    font-family: 'Space Grotesk', monospace;
    font-weight: 600;
    min-width: 36px;
    text-align: center;
}
.shortcut-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}
.shortcut-close:hover { color: var(--gym); }
