.foyer-backdrop {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(1, 10, 20, 0.85); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px); z-index: 10000; display: none;
    align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif;
}

.foyer-glass {
    background: linear-gradient(160deg, rgba(8, 36, 68, 0.94) 0%, rgba(2, 16, 36, 0.98) 100%);
    border: 2px solid rgba(0, 255, 204, 0.4); border-radius: 8px;
    padding: 26px 28px; box-shadow: 0 0 50px rgba(0, 255, 204, 0.2);
    text-align: center; max-width: 400px; width: 92%; position: relative; color: #dceaf5;
}

.foyer-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: #00ffcc; font-size: 22px; cursor: pointer; }
.foyer-title { font-family: 'Cinzel', serif; font-size: 18px; color: #00ffcc; letter-spacing: 2px; margin-bottom: 4px; }
.foyer-subtitle { font-size: 11px; color: #8e9aaf; margin-bottom: 14px; }

/* 4-Stellen Raum PIN Slots */
.room-pin-container { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 12px 0; }
.room-pin-slot {
    width: 44px; height: 54px; background: rgba(0, 24, 48, 0.8);
    border: 2px solid rgba(0, 255, 204, 0.4); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cinzel', serif; font-size: 26px; font-weight: 700; color: #00ffcc;
}
.room-pin-slot.filled { border-color: #ffd32a; color: #ffd32a; background: rgba(0, 40, 80, 0.9); }

.foyer-keypad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 250px; margin: 10px auto; }
.foyer-key-btn {
    font-family: 'Cinzel', serif; font-size: 18px; font-weight: 600; padding: 11px;
    background: rgba(4, 30, 55, 0.6); border: 1px solid rgba(0, 255, 204, 0.3);
    color: #f7eed8; border-radius: 4px; cursor: pointer;
}
.foyer-key-btn:hover { background: rgba(0, 80, 130, 0.8); color: #fff; }

.foyer-status-msg { font-size: 11px; min-height: 16px; margin: 6px 0; color: #00ffcc; }

/* Connected Controls Box */
#foyer-connected-view { display: none; margin-top: 10px; }
.foyer-btn {
    width: 100%; padding: 11px; font-family: 'Cinzel', serif; font-size: 11px;
    font-weight: 600; letter-spacing: 2px; border-radius: 4px; cursor: pointer;
    text-transform: uppercase; border: none; margin-top: 6px;
}
.btn-cyan-solid { background: #00ffcc; color: #000; }
.btn-vr-gradient { background: linear-gradient(135deg, #06b6d4, #3b82f6); color: #fff; font-size: 13px; }
.btn-danger-outline { background: transparent; border: 1px solid #ff4757; color: #ff4757; }