/* ==========================================================================
   OMNI LOCKSCREEN – Grundlayout
   ========================================================================== */

:root {
    --omni-bg: #0a0a0a;
    --omni-panel: #111;
    --omni-border: #222;
    --omni-text: #e0e0e0;
    --omni-danger: #ff3b3b;
    --omni-accent: #00ff88;
    --omni-accent-soft: #00cc66;
    --omni-debug-bg: #000;
    --omni-debug-border: #333;
}

/* ==========================================================================
   BODY
   ========================================================================== */

body {
    margin: 0;
    padding: 0;
    background: var(--omni-bg);
    color: var(--omni-text);
    font-family: Arial, sans-serif;
}

/* ==========================================================================
   SHELL – FRAME + SCANLINE (kombiniert, nicht blockierend!)
   ========================================================================== */

.locked-shell {
    max-width: 900px;
    margin: 40px auto;
    background: var(--omni-panel);
    border: 1px solid var(--omni-border);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* FRAME-LINIE oben/unten */
.locked-shell::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    top: 0;
    background: linear-gradient(90deg, transparent, var(--omni-accent), transparent);
    opacity: 0.4;
    animation: omniFrame 4s linear infinite;
}

.locked-shell::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    background: linear-gradient(90deg, transparent, var(--omni-accent), transparent);
    opacity: 0.4;
    animation: omniFrame 4s linear infinite;
}

@keyframes omniFrame {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* SCANLINE-OVERLAY (separates Element, NICHT blockierend) */
.locked-shell .scanline-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,255,136,0.03),
        rgba(0,255,136,0.03) 2px,
        transparent 3px
    );
    pointer-events: none;
    animation: omniScan 6s linear infinite;
    opacity: 0.15;
}

@keyframes omniScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.locked-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.locked-header-title {
    font-size: 28px;
    letter-spacing: 4px;
    color: var(--omni-accent);
    text-shadow: 0 0 10px rgba(0,255,136,0.4);
}

.locked-header-status {
    font-size: 16px;
}

/* ==========================================================================
   MAIN
   ========================================================================== */

.locked-main {
    text-align: center;
    margin-bottom: 30px;
}

.locked-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--omni-accent);
    text-shadow: 0 0 10px rgba(0,255,136,0.4);
    animation: holoGlow 2.5s infinite alternate;
}

@keyframes holoGlow {
    0% { text-shadow: 0 0 5px var(--omni-accent); opacity: 0.85; }
    100% { text-shadow: 0 0 20px var(--omni-accent); opacity: 1; }
}

.locked-status {
    font-size: 18px;
    color: var(--omni-danger);
    margin-bottom: 20px;
}

.locked-auth {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 25px;
}

.locked-info-panel {
    background: #0f0f0f;
    border-left: 4px solid var(--omni-accent);
    padding: 12px 15px;
    margin-bottom: 20px;
    text-align: left;
}

.locked-hint {
    margin-bottom: 20px;
    font-size: 15px;
}

/* ==========================================================================
   UNLOCK BUTTON – PULSE + GLOW
   ========================================================================== */

.desktop-unlock-btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--omni-accent);
    color: #000;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    text-shadow: 0 0 10px rgba(0,255,136,0.4);
    animation: omniPulse 2.4s ease-in-out infinite;
}

.desktop-unlock-btn:hover {
    background: var(--omni-accent-soft);
    text-shadow: 0 0 18px rgba(0,255,136,0.6);
}

@keyframes omniPulse {
    0% { box-shadow: 0 0 6px rgba(0,255,136,0.3); }
    50% { box-shadow: 0 0 14px rgba(0,255,136,0.5); }
    100% { box-shadow: 0 0 6px rgba(0,255,136,0.3); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.locked-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    font-size: 14px;
    opacity: 0.8;
}

/* ==========================================================================
   DEBUG TOGGLE BUTTON
   ========================================================================== */

.debug-toggle-btn {
    background: var(--omni-accent);
    color: #000;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    border: none;
    transition: 0.2s;
}

.debug-toggle-btn:hover {
    background: var(--omni-accent-soft);
}

/* ==========================================================================
   DEBUG PANEL – Kachel-Layout
   ========================================================================== */

.locked-debug-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    background: #0f0f0f;
    border: 1px solid var(--omni-debug-border);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 0 15px rgba(0,255,136,0.2);
}

.debug-block {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,255,136,0.1);
}

.debug-block strong {
    color: var(--omni-accent);
    display: block;
    margin-bottom: 6px;
}

.debug-block pre {
    background: #000;
    border: 1px solid var(--omni-debug-border);
    padding: 10px;
    border-radius: 6px;
    color: var(--omni-accent);
    font-size: 12px;
    overflow-x: auto;
}

#debugPanel.debug-hidden {
    display: none;
}

/* ==========================================================================
   OMNI BADGE – Debug HUD oben rechts
   ========================================================================== */

.omni-badge {
    position: fixed;
    top: 60px;
    right: 160px;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid var(--omni-accent);
    border-radius: 10px;
    padding: 12px 16px;
    width: 160px;
    color: var(--omni-accent);
    font-size: 13px;
    box-shadow: 0 0 12px rgba(0,255,136,0.3);
    cursor: pointer;
    z-index: 9999;
    backdrop-filter: blur(4px);
    transition: 0.25s ease;
}

.omni-badge:hover {
    box-shadow: 0 0 18px rgba(0,255,136,0.5);
    transform: translateY(-2px);
}

.omni-badge-title {
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 0 0 8px rgba(0,255,136,0.4);
}

.omni-badge-info {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.85;
    margin-top: 4px; /* neu */
}


.omni-badge-info strong {
    color: var(--omni-danger);
}



/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 600px) {

    .locked-shell {
        margin: 10px;
        padding: 20px;
    }

    .locked-header-title {
        font-size: 22px;
    }

    .locked-title {
        font-size: 26px;
    }

    .desktop-unlock-btn {
        width: 100%;
        text-align: center;
    }
}
