:root {
    --primary: #00d2ff;
    --royal: #3a7bd5;
    --accent: #fbc531;
    --bg: #020617;
    --card: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --text-dim: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background: #020617; color: var(--text); min-height: 100vh; overflow-x: hidden; }

/* Stars Effect */
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px; opacity: 0.1; z-index: -1;
}

/* TOP NAV & DROPDOWN */
.top-nav { position: fixed; top: 20px; right: 40px; z-index: 2000; }
.profile-chip {
    display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.02);
    padding: 6px 15px; border-radius: 25px; border: 1px solid var(--border);
    cursor: pointer; transition: 0.3s; backdrop-filter: blur(20px);
}
.profile-chip:hover { border-color: var(--primary); background: rgba(255,255,255,0.05); }
.profile-dropdown {
    position: absolute; top: 110%; right: 0; width: 220px;
    background: rgba(10, 15, 45, 0.98); border: 1px solid var(--border);
    border-radius: 18px; display: none; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.profile-dropdown.active { display: flex; }
.profile-dropdown a { padding: 12px 20px; color: var(--text-dim); text-decoration: none; font-size: 0.85rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.03); }
.profile-dropdown a:hover { background: var(--primary); color: #000; }

/* LAYOUT */
.dashboard-body { display: flex; height: 100vh; }
.sidebar {
    width: 250px; background: rgba(0,0,0,0.6); backdrop-filter: blur(40px);
    border-right: 1px solid var(--border); padding: 2rem 1rem; display: flex; flex-direction: column;
}
.sidebar-logo .logo { font-size: 1.6rem; margin-bottom: 3rem; text-align: center; }
.sidebar-logo .logo span { color: var(--primary); }

.sidebar-nav { display: flex; flex-direction: column; gap: 8px; }
.sidebar-nav .nav-btn {
    padding: 0.9rem 1.2rem; color: var(--text-dim); text-decoration: none;
    border-radius: 14px; font-weight: 800; font-size: 0.8rem; transition: 0.3s;
    display: flex; align-items: center; gap: 12px;
}
.sidebar-nav .nav-btn:hover, .sidebar-nav .nav-btn.active {
    background: rgba(0, 210, 255, 0.1); color: var(--primary); transform: translateX(5px);
}

.dashboard-content { flex: 1; padding: 2.5rem 4rem; overflow-y: auto; background: radial-gradient(circle at center, #0a0f2d, #020617); }

/* COMPACT LUXURY CARDS */
.stat-card {
    background: var(--card); border: 1px solid var(--border); padding: 2rem;
    border-radius: 25px; transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center; backdrop-filter: blur(20px);
}
.stat-card:hover {
    transform: translateY(-4px); border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
}
.stat-card i { font-size: 1.8rem; color: var(--primary); margin-bottom: 1rem; }

/* PREMIUM BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 1.6rem; border-radius: 12px; font-weight: 800;
    text-decoration: none !important; text-transform: uppercase; font-size: 0.75rem;
    transition: 0.3s; border: none; cursor: pointer; letter-spacing: 0.5px; gap: 10px;
}
.btn-primary { background: linear-gradient(45deg, var(--royal), var(--primary)); color: white; box-shadow: 0 8px 20px rgba(0, 210, 255, 0.2); }
.btn-gold { background: linear-gradient(45deg, #fbc531, #f1c40f); color: #000; }
.btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--border); }
.btn:hover { transform: translateY(-3px); filter: brightness(1.2); }

/* NOTIFICATIONS (TOASTS) */
#notification-container { position: fixed; top: 25px; left: 50%; transform: translateX(-50%); z-index: 3000; }
.notification { background: rgba(0, 210, 255, 0.15); border: 1px solid var(--primary); padding: 12px 30px; border-radius: 40px; backdrop-filter: blur(20px); color: white; font-weight: 800; font-size: 0.8rem; animation: popUp 0.3s ease; }
@keyframes popUp { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* CHAT FIXES */
.messages { padding: 1.5rem; display: flex; flex-direction: column; gap: 10px; }
.user-msg { background: rgba(255,255,255,0.03); padding: 12px 18px; border-radius: 18px; border: 1px solid var(--border); max-width: 85%; }
.user-msg.me { align-self: flex-end; border-color: var(--primary); background: rgba(0, 210, 255, 0.05); }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .top-nav { right: 20px; }
}
