:root {
    --bg: #0b0e14;
    --card: rgba(255, 255, 255, 0.07);
    --primary: #3b82f6;
    --success: #10b981;
    --danger: #ef4444;
    --text: #ffffff;
    --text-muted: #8e9aaf;
    --radius: 24px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { 
    margin: 0; font-family: -apple-system, system-ui, sans-serif; 
    background: var(--bg); color: var(--text); overflow: hidden;
}

.app-shell { display: flex; flex-direction: column; height: 100vh; }

/* Top Bar */
.top-bar { padding: 50px 20px 20px; display: flex; justify-content: space-between; align-items: center; }
.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin: 0; }
h1 { margin: 0; font-size: 24px; font-weight: 800; }

.status-dot { width: 8px; height: 8px; background: #555; border-radius: 50%; display: inline-block; margin-right: 5px; }
.status-dot.online { background: var(--success); box-shadow: 0 0 10px var(--success); }

/* Content Area */
.content-area { flex: 1; overflow-y: auto; padding: 0 20px 120px; }
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Cards */
.glass { background: var(--card); backdrop-filter: blur(20px); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); padding: 20px; }
.bridge-card { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* Quick Actions */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 25px; }
.btn-bubble { 
    border: none; border-radius: 20px; padding: 15px 5px; background: var(--card); 
    color: white; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.btn-bubble span { font-size: 24px; }
.btn-bubble.on { background: var(--primary); }

/* Rooms & Grid */
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.room-card { 
    background: var(--card); border-radius: 20px; padding: 20px; 
    display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(255,255,255,0.05);
}

/* Nav */
.bottom-nav { 
    position: fixed; bottom: 0; width: 100%; height: 85px; 
    background: rgba(15, 20, 30, 0.9); backdrop-filter: blur(25px);
    display: flex; justify-content: space-around; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px;
}
.nav-item { background: none; border: none; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; font-size: 10px; gap: 4px; }
.nav-item.active { color: var(--primary); }
.nav-item i { font-style: normal; font-size: 20px; }

/* Form Elements */
input[type="text"], input[type="password"], select { 
    width: 100%; background: rgba(255,255,255,0.05); border: none; padding: 15px; 
    border-radius: 12px; color: white; margin-top: 10px; margin-bottom: 15px;
}
.full-btn { 
    width: 100%; padding: 16px; border-radius: 16px; border: none; font-weight: 700; 
    background: rgba(255,255,255,0.1); color: white; transition: 0.2s;
}
.full-btn.primary { background: var(--primary); }
.full-btn:active { transform: scale(0.98); }

/* Modal Bottom Sheet */
.modal-overlay { 
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); 
    display: none; align-items: flex-end; z-index: 1000; 
}
.modal-overlay.active { display: flex; }
.bottom-sheet { 
    width: 100%; background: #1a1f29; border-radius: 30px 30px 0 0; 
    padding: 15px 25px 40px; transform: translateY(100%); transition: 0.3s;
}
.modal-overlay.active .bottom-sheet { transform: translateY(0); }
.handle { width: 40px; height: 5px; background: #333; border-radius: 10px; margin: 0 auto 20px; }

/* Toast */
.toast {
    position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
    background: white; color: black; padding: 10px 20px; border-radius: 20px;
    font-weight: 600; opacity: 0; transition: 0.3s; z-index: 2000;
}
.toast.show { opacity: 1; }
