* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%; height: 100%;
    background-color: #030008;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    display: flex; justify-content: center; align-items: center;
    color: #ffffff;
}

/* HIGH PERFORMANCE BACKGROUND - No SVG Grain, No Filters! */
.mesh-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background: #030008; }
.orb { position: absolute; border-radius: 50%; animation: drift 20s infinite alternate ease-in-out; }
.orb-1 { width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(59,7,100,0.5) 0%, rgba(59,7,100,0) 60%); top: -10%; left: -10%; }
.orb-2 { width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(46,16,101,0.5) 0%, rgba(46,16,101,0) 60%); bottom: -10%; right: -10%; animation-delay: -5s; animation-duration: 25s; }
.orb-3 { width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(76,29,149,0.4) 0%, rgba(76,29,149,0) 60%); top: 40%; left: 30%; animation-delay: -10s; animation-duration: 30s; }

@keyframes drift { 
    0% { transform: translate(0, 0); } 
    100% { transform: translate(5%, 5%); } 
}

/* View Control */
.view-container {
    position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; height: 100%; padding: 2vh 2vw; animation: fadeIn 0.4s ease-out;
}
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* MASSIVE FULL-SCREEN GLASS PANELS */
.glass-panel { 
    background: rgba(15, 7, 25, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(168, 85, 247, 0.25); border-radius: 24px; 
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); 
    width: 95vw; height: 90vh; 
    max-width: 1600px; padding: 3rem; 
    display: flex; flex-direction: column; overflow-y: auto;
}

/* Layout Utilities */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; height: 100%; flex: 1; }
.split-side { display: flex; flex-direction: column; height: 100%; }
.flex-center { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; }
.side-panel { background: rgba(0,0,0,0.3); border-radius: 16px; padding: 2rem; border: 1px solid rgba(168,85,247,0.1); }

/* Typography */
.brand-header { display: flex; align-items: center; gap: 20px; margin-bottom: 2rem; justify-content: center; flex-wrap: wrap; }
.brand-icon { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5)); }
.panel-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 1rem; }
.small-icon { width: 40px; height: 40px; object-fit: contain; }
.main-text { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 600; letter-spacing: -0.04em; text-align: center; text-shadow: 0 4px 24px rgba(168, 85, 247, 0.5); margin: 0; }
.mono-font { font-family: 'Space Mono', monospace; }

h2 { font-weight: 500; font-size: 1.8rem; }
h3 { font-weight: 500; color: #d8b4fe; margin-bottom: 0.5rem; font-size: 1.4rem; }
h4 { font-size: 1.1rem; color: #fff; margin-bottom: 0.3rem; font-weight: 500;}
.subtitle { color: #a78bfa; font-size: 1rem; margin-bottom: 2rem; }
.divider { height: 1px; background: rgba(168, 85, 247, 0.2); margin: 2rem 0; width: 100%; }

/* Inputs & Buttons */
.input-group { display: flex; flex-direction: column; margin-bottom: 1.5rem; text-align: left; }
.input-group label { font-size: 0.85rem; color: #a78bfa; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
input, select { background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(168, 85, 247, 0.3); color: #fff; padding: 14px; border-radius: 8px; outline: none; font-family: 'Inter', sans-serif; transition: 0.3s; font-size: 1rem; }
input:focus, select:focus { border-color: #a855f7; box-shadow: 0 0 15px rgba(168, 85, 247, 0.2); }
select { cursor: pointer; appearance: none; }

.primary-btn { background: #6b21a8; color: #fff; border: none; padding: 14px; width: 100%; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.3s; margin-top: 0.5rem; }
.primary-btn:hover { background: #9333ea; box-shadow: 0 0 25px rgba(147, 51, 234, 0.5); transform: translateY(-2px); }
.text-btn { background: none; border: none; color: #a78bfa; font-size: 1rem; cursor: pointer; margin-top: 1rem; width: 100%; transition: 0.3s; }
.text-btn:hover { color: #fff; }
.subtle-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); padding: 10px 20px; border-radius: 30px; cursor: pointer; transition: 0.3s; backdrop-filter: blur(10px); }
.subtle-btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; transform: translateY(-2px); }
.error-msg { color: #ef4444; font-size: 0.95rem; margin-bottom: 1rem; text-align: center; }

/* Lists (Dev & Public) */
.styled-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.styled-list li { background: rgba(255,255,255,0.03); padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; }
.tag-public { background: #10b98120; color: #10b981; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; border: 1px solid #10b98150;}
.tag-private { background: #ef444420; color: #ef4444; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; border: 1px solid #ef444450;}

/* Dashboard UI */
.dash-header { display: flex; justify-content: space-between; align-items: center; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.app-card { background: rgba(0,0,0,0.4); border: 1px solid rgba(168,85,247,0.2); border-radius: 16px; padding: 2.5rem 1.5rem; cursor: pointer; transition: 0.3s; text-align: center; }
.app-card:hover { border-color: #a855f7; background: rgba(168,85,247,0.15); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.app-card p { color: #a78bfa; font-size: 0.95rem; }

/* Admin Grid */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: end; margin-bottom: 1.5rem; }

/* N0S Setup UI */
.n0s-split { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 3rem; }
.n0s-box { display: flex; flex-direction: column; }
.vertical-divider { width: 1px; background: rgba(168, 85, 247, 0.2); height: 100%; }

/* Chat Room UI */
.chat-window { flex: 1; background: rgba(0,0,0,0.5); border: 1px solid rgba(168,85,247,0.2); border-radius: 12px; margin: 1rem 0; padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.chat-msg { background: rgba(168,85,247,0.15); padding: 12px 18px; border-radius: 12px; width: fit-content; max-width: 75%; font-size: 1rem; border-left: 3px solid #a855f7; }
.chat-msg.self { background: rgba(255,255,255,0.08); border-left: none; border-right: 3px solid #10b981; align-self: flex-end; }
.msg-user { font-size: 0.8rem; color: #a78bfa; margin-bottom: 6px; font-weight: 600; }
.chat-msg.self .msg-user { color: #10b981; text-align: right; }

@media (max-width: 900px) {
    .split-layout, .n0s-split, .admin-grid { grid-template-columns: 1fr; }
    .vertical-divider { width: 100%; height: 1px; }
    .glass-panel { padding: 1.5rem; height: 95vh; }
}