/* ============================================
   PORTAL BINA KASIH — ENTERPRISE DESIGN SYSTEM
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --bg-base:       #0F172A;
  --bg-surface:    #111827;
  --bg-elevated:   #1E293B;
  --bg-overlay:    rgba(30,41,59,0.95);
  --accent-blue:   #3B82F6;
  --accent-indigo: #6366F1;
  --accent-violet: #8B5CF6;
  --accent-green:  #10B981;
  --accent-amber:  #F59E0B;
  --accent-red:    #EF4444;
  --glass-bg:      rgba(255,255,255,0.05);
  --glass-border:  rgba(255,255,255,0.08);
  --glass-hover:   rgba(255,255,255,0.08);
  --text-primary:  #F8FAFC;
  --text-secondary:#CBD5E1;
  --text-muted:    #94A3B8;
  --text-faint:    #475569;
  --sidebar-w:     260px;
  --topbar-h:      64px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 40px rgba(99,102,241,0.15);
  --transition:    all 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

html.light {
  --bg-base:       #F1F5F9;
  --bg-surface:    #FFFFFF;
  --bg-elevated:   #F8FAFC;
  --glass-bg:      rgba(255,255,255,0.7);
  --glass-border:  rgba(0,0,0,0.08);
  --glass-hover:   rgba(0,0,0,0.04);
  --text-primary:  #0F172A;
  --text-secondary:#334155;
  --text-muted:    #64748B;
  --text-faint:    #94A3B8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- AMBIENT BACKGROUND ---- */
.ambient-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.ambient-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #6366F1, transparent); top: -200px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #3B82F6, transparent); bottom: -150px; right: -100px; animation-delay: -7s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #8B5CF6, transparent); top: 40%; left: 40%; animation-delay: -14s; }
.noise-overlay {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ---- APP SHELL ---- */
.app-shell {
  position: relative; z-index: 1;
  display: flex; min-height: 100vh;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed; left: 0; top: 0;
  display: flex; flex-direction: column;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: 1px solid var(--glass-border);
  z-index: 100;
  transition: var(--transition-slow);
  overflow: hidden;
}
html.light .sidebar { background: rgba(255,255,255,0.85); }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}
.logo-mark { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-name { font-size: 14px; font-weight: 700; color: var(--text-primary); display: block; }
.logo-sub { font-size: 10px; color: var(--text-muted); display: block; letter-spacing: 0.05em; text-transform: uppercase; }
.sidebar-toggle {
  width: 28px; height: 28px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--glass-hover); color: var(--text-primary); }

/* ---- SIDEBAR SEARCH ---- */
.sidebar-search { padding: 12px 16px; flex-shrink: 0; }
.search-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 7px 10px;
  transition: var(--transition);
}
.search-input-wrap:focus-within {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.search-icon { color: var(--text-faint); flex-shrink: 0; }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 12px; font-family: inherit;
}
.search-input::placeholder { color: var(--text-faint); }
.search-kbd {
  font-size: 10px; color: var(--text-faint);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 4px; padding: 1px 5px; font-family: inherit;
}

/* ---- SIDEBAR NAV ---- */
.sidebar-nav {
  flex: 1; overflow-y: auto; padding: 8px 0;
  scrollbar-width: thin; scrollbar-color: var(--glass-border) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 2px; }

.nav-section { padding: 8px 0; }
.nav-label {
  display: block; font-size: 10px; font-weight: 600;
  color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 20px 6px;
}
.nav-list { list-style: none; }
.nav-item { margin: 1px 8px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: var(--transition); position: relative;
}
.nav-link:hover { background: var(--glass-hover); color: var(--text-primary); }
.nav-item.active .nav-link {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  color: var(--text-primary);
  border: 1px solid rgba(99,102,241,0.2);
}
.nav-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-text { flex: 1; }
.nav-badge.active-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-indigo);
}
.nav-badge.count {
  font-size: 10px; font-weight: 600;
  background: var(--accent-indigo); color: white;
  border-radius: 10px; padding: 1px 6px; min-width: 18px; text-align: center;
}
.app-status {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.app-status.online { background: var(--accent-green); box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.app-status.offline { background: var(--accent-red); }
.app-status.warning { background: var(--accent-amber); }

/* ---- SIDEBAR FOOTER ---- */
.sidebar-footer {
  padding: 12px 16px; border-top: 1px solid var(--glass-border); flex-shrink: 0;
}
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--radius-sm);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  cursor: pointer; transition: var(--transition);
}
.user-card:hover { background: var(--glass-hover); }
.user-avatar { position: relative; flex-shrink: 0; }
.user-avatar img { width: 32px; height: 32px; border-radius: 50%; display: block; }
.user-status-dot {
  position: absolute; bottom: 0; right: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-green); border: 2px solid var(--bg-base);
}
.user-info { flex: 1; min-width: 0; }
.user-name { display: block; font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { display: block; font-size: 10px; color: var(--text-muted); }
.user-menu-btn {
  background: none; border: none; color: var(--text-faint);
  cursor: pointer; padding: 4px; border-radius: 4px;
  display: flex; align-items: center; transition: var(--transition);
}
.user-menu-btn:hover { color: var(--text-primary); }

/* ---- MAIN CONTENT ---- */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column;
  min-height: 100vh; transition: var(--transition-slow);
}

/* ---- TOPBAR ---- */
.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 50;
}
html.light .topbar { background: rgba(255,255,255,0.7); }

.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-center { flex: 1; max-width: 480px; margin: 0 auto; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.mobile-menu-btn {
  display: none; background: none; border: none;
  color: var(--text-muted); cursor: pointer; padding: 6px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.mobile-menu-btn:hover { color: var(--text-primary); background: var(--glass-hover); }

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
}
.breadcrumb-root { color: var(--text-faint); }
.breadcrumb-current { color: var(--text-primary); font-weight: 500; }

.global-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 8px 14px;
  cursor: text; transition: var(--transition);
}
.global-search:focus-within {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.global-search svg { color: var(--text-faint); flex-shrink: 0; }
.global-search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 13px; font-family: inherit;
}
.global-search-input::placeholder { color: var(--text-faint); }

.topbar-btn {
  width: 36px; height: 36px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); position: relative;
}
.topbar-btn:hover { background: var(--glass-hover); color: var(--text-primary); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-indigo); color: white;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-base);
}
.topbar-avatar img {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--glass-border); cursor: pointer;
  transition: var(--transition);
}
.topbar-avatar img:hover { border-color: var(--accent-indigo); }
.hidden { display: none !important; }

/* ---- PAGE CONTENT ---- */
.page-content { flex: 1; padding: 28px 28px 40px; }
.page { display: none; }
.page.active { display: block; animation: fadeInUp 0.3s ease; }

/* ---- HERO WELCOME ---- */
.hero-welcome {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; gap: 16px;
}
.hero-greeting { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.hero-title {
  font-size: 28px; font-weight: 800; color: var(--text-primary);
  background: linear-gradient(135deg, #F8FAFC 0%, #CBD5E1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 4px;
}
.hero-sub { font-size: 13px; color: var(--text-muted); }
.hero-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  color: white; box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
.btn-ghost {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--glass-hover); color: var(--text-primary); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ---- STATS GRID ---- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: var(--transition);
  animation: fadeInUp 0.4s ease both;
}
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:hover {
  background: var(--glass-hover);
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--icon-bg); color: var(--icon-color);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-content { flex: 1; min-width: 0; }
.stat-label { display: block; font-size: 11px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.stat-value { display: block; font-size: 26px; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 6px; }
.stat-change { font-size: 11px; font-weight: 500; }
.stat-change.positive { color: var(--accent-green); }
.stat-change.negative { color: var(--accent-red); }

/* ---- SECTION HEADER ---- */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.section-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.section-link { font-size: 12px; color: var(--accent-indigo); text-decoration: none; font-weight: 500; transition: var(--transition); }
.section-link:hover { color: var(--accent-violet); }

/* ---- APP GRID ---- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.app-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer; text-decoration: none;
  transition: var(--transition); position: relative; overflow: hidden;
  animation: fadeInUp 0.4s ease both;
}
.app-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--app-color-a, transparent), var(--app-color-b, transparent));
  opacity: 0; transition: var(--transition);
}
.app-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.app-card:hover::before { opacity: 0.06; }
.app-icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; position: relative; z-index: 1;
  transition: var(--transition);
}
.app-card:hover .app-icon-wrap { transform: scale(1.08); }
.app-name {
  font-size: 12px; font-weight: 600; color: var(--text-primary);
  text-align: center; position: relative; z-index: 1;
}
.app-desc {
  font-size: 10px; color: var(--text-muted);
  text-align: center; position: relative; z-index: 1;
}
.app-card-status {
  position: absolute; top: 10px; right: 10px;
  width: 7px; height: 7px; border-radius: 50%;
}
.app-card-status.online { background: var(--accent-green); box-shadow: 0 0 6px rgba(16,185,129,0.6); }

/* ---- BOTTOM GRID ---- */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 16px;
}
@media (max-width: 1280px) {
  .bottom-grid { grid-template-columns: 1fr 360px; }
}
@media (max-width: 1024px) {
  .bottom-grid { grid-template-columns: 1fr; }
}

/* ---- GLASS CARD ---- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.card-action {
  font-size: 11px; color: var(--accent-indigo); background: none;
  border: none; cursor: pointer; font-family: inherit; font-weight: 500;
  transition: var(--transition);
}
.card-action:hover { color: var(--accent-violet); }

/* ---- ACTIVITY LIST ---- */
.activity-list { display: flex; flex-direction: column; gap: 2px; }
.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 8px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.activity-item:hover { background: var(--glass-hover); }
.activity-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0; overflow: hidden;
}
.activity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.activity-content { flex: 1; min-width: 0; }
.activity-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.activity-text strong { color: var(--text-primary); font-weight: 600; }
.activity-time { font-size: 10px; color: var(--text-faint); margin-top: 2px; }
.activity-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px;
}

/* ---- SYSTEM STATUS ---- */
.status-all-good {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--accent-green); font-weight: 500;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}
.system-status-list { display: flex; flex-direction: column; gap: 8px; }
.status-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
}
.status-item-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.status-item-info { flex: 1; min-width: 0; }
.status-item-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.status-item-url { font-size: 10px; color: var(--text-faint); }
.status-indicator {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600; flex-shrink: 0;
}
.status-indicator.up { color: var(--accent-green); }
.status-indicator.down { color: var(--accent-red); }
.status-indicator.warn { color: var(--accent-amber); }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.status-indicator.up .status-dot { background: var(--accent-green); }
.status-indicator.down .status-dot { background: var(--accent-red); }
.status-indicator.warn .status-dot { background: var(--accent-amber); }

/* ---- PAGE HEADER ---- */
.page-header { margin-bottom: 24px; }
.page-title { font-size: 24px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.page-desc { font-size: 13px; color: var(--text-muted); }

/* ---- APPS FILTER ---- */
.apps-filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 500; font-family: inherit;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.filter-btn:hover { color: var(--text-primary); background: var(--glass-hover); }
.filter-btn.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.15));
  border-color: rgba(99,102,241,0.4); color: var(--text-primary);
}
.app-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ---- ANALYTICS PLACEHOLDER ---- */
.analytics-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 400px; gap: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl); color: var(--text-muted);
}
.placeholder-icon { font-size: 48px; }
.analytics-placeholder h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.analytics-placeholder p { font-size: 13px; }

/* ---- NOTIFICATIONS ---- */
.notif-list-full { display: flex; flex-direction: column; gap: 8px; }
.notif-item-full {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; border-radius: var(--radius-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: var(--transition);
}
.notif-item-full:hover { background: var(--glass-hover); }
.notif-item-full.unread { border-left: 3px solid var(--accent-indigo); }
.notif-icon-wrap {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.notif-content { flex: 1; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.notif-body { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.notif-meta { font-size: 10px; color: var(--text-faint); margin-top: 6px; }

/* ---- SETTINGS ---- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-section-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.settings-avatar-row { display: flex; align-items: center; gap: 16px; }
.settings-avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--glass-border); }
.settings-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.settings-email { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--glass-border);
  font-size: 13px; color: var(--text-secondary);
}
.settings-row:last-child { border-bottom: none; }

/* ---- TOGGLE SWITCH ---- */
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--glass-border); border-radius: 22px;
  transition: var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: white; left: 3px; bottom: 3px;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent-indigo); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ---- NOTIFICATION PANEL ---- */
.notif-panel {
  position: fixed; top: var(--topbar-h); right: 0;
  width: 360px; max-height: calc(100vh - var(--topbar-h));
  background: var(--bg-overlay);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-left: 1px solid var(--glass-border);
  z-index: 200; overflow-y: auto;
  transform: translateX(100%); transition: var(--transition-slow);
  scrollbar-width: thin; scrollbar-color: var(--glass-border) transparent;
}
.notif-panel.open { transform: translateX(0); }
.notif-overlay {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.notif-overlay.open { opacity: 1; pointer-events: all; }
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; background: var(--bg-overlay);
}
.notif-panel-header h3 { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.notif-mark-all {
  font-size: 11px; color: var(--accent-indigo); background: none;
  border: none; cursor: pointer; font-family: inherit; font-weight: 500;
}
.notif-panel-list { padding: 8px; }
.notif-panel-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm);
  transition: var(--transition); cursor: pointer;
}
.notif-panel-item:hover { background: var(--glass-hover); }
.notif-panel-item.unread { background: rgba(99,102,241,0.05); }
.notif-panel-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.notif-panel-content { flex: 1; }
.notif-panel-title { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.notif-panel-body { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.notif-panel-time { font-size: 10px; color: var(--text-faint); margin-top: 4px; }

/* ---- COMMAND PALETTE ---- */
.cmd-palette-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh; opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.cmd-palette-overlay.open { opacity: 1; pointer-events: all; }
.cmd-palette {
  width: 100%; max-width: 560px;
  background: var(--bg-overlay);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  transform: scale(0.95) translateY(-10px);
  transition: var(--transition);
}
.cmd-palette-overlay.open .cmd-palette { transform: scale(1) translateY(0); }
.cmd-search-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--glass-border);
}
.cmd-search-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.cmd-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 15px; font-family: inherit;
}
.cmd-input::placeholder { color: var(--text-faint); }
.cmd-search-wrap kbd {
  font-size: 11px; color: var(--text-faint);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 4px; padding: 2px 6px; font-family: inherit;
}
.cmd-results { padding: 8px; max-height: 400px; overflow-y: auto; }
.cmd-group-label {
  font-size: 10px; font-weight: 600; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 8px 12px 4px;
}
.cmd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
}
.cmd-item:hover, .cmd-item.selected { background: var(--glass-hover); }
.cmd-item-icon { font-size: 18px; flex-shrink: 0; }
.cmd-item-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.cmd-item-desc { font-size: 11px; color: var(--text-muted); }

/* ---- TOAST ---- */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 400; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--bg-overlay); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg); min-width: 280px;
  animation: slideInRight 0.3s ease;
  font-size: 13px; color: var(--text-primary);
}
.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid var(--accent-red); }
.toast.info { border-left: 3px solid var(--accent-indigo); }
.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-msg { flex: 1; }
.toast-close {
  background: none; border: none; color: var(--text-faint);
  cursor: pointer; font-size: 16px; padding: 0; line-height: 1;
}

/* ---- SIDEBAR COLLAPSED ---- */
.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .app-status,
.sidebar.collapsed .sidebar-search,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .user-info,
.sidebar.collapsed .user-menu-btn { display: none; }
.sidebar.collapsed .logo-mark { justify-content: center; }
.sidebar.collapsed .nav-link { justify-content: center; padding: 10px; }
.sidebar.collapsed .user-card { justify-content: center; }
.sidebar.collapsed + .main-content { margin-left: 64px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1280px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; }
  .mobile-menu-btn { display: flex; }
  .topbar-center { display: none; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .hero-welcome { flex-direction: column; }
  .hero-actions { width: 100%; }
  .page-content { padding: 16px; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ---- SELECTION ---- */
::selection { background: rgba(99,102,241,0.3); color: var(--text-primary); }

/* ---- APP CARD EXTRAS ---- */
.app-users {
  font-size: 10px; color: var(--text-faint);
  margin-top: 2px; text-align: center;
}
.app-card-footer {
  margin-top: 4px; width: 100%;
  display: flex; justify-content: center;
}
.app-open-btn {
  font-size: 11px; color: var(--accent-indigo);
  font-weight: 600; opacity: 0;
  transition: var(--transition);
}
.app-card:hover .app-open-btn { opacity: 1; }

/* ---- NOTIF UNREAD DOT ---- */
.notif-unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-indigo); flex-shrink: 0;
  align-self: flex-start; margin-top: 4px;
}

/* ---- LIGHT MODE OVERRIDES ---- */
html.light .ambient-orb { opacity: 0.06; }
html.light .stat-card { background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.06); }
html.light .app-card  { background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.06); }
html.light .glass-card { background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.06); }
html.light .status-item { background: rgba(255,255,255,0.6); border-color: rgba(0,0,0,0.06); }
html.light .topbar { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.08); }
html.light .hero-title { background: linear-gradient(135deg,#0F172A,#334155); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
html.light .notif-panel { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.08); }
html.light .cmd-palette { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.08); }
html.light .toast { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.08); }
html.light .login-card { background: rgba(255,255,255,0.92); }
html.light body { background: #F1F5F9; }

/* ============================================
   USER DROPDOWN MENU
   ============================================ */
.sidebar-footer { position: relative; }

.user-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 8px; right: 8px;
  background: var(--bg-overlay, rgba(15,23,42,0.98));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.user-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Topbar avatar dropdown */
.topbar-avatar { position: relative; }
.topbar-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: var(--bg-overlay, rgba(15,23,42,0.98));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.topbar-user-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* Shared dropdown parts */
.user-dropdown-header {
  padding: 14px 16px 10px;
}
.user-dropdown-name {
  font-size: 13px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 2px;
}
.user-dropdown-email {
  font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-dropdown-divider {
  height: 1px; background: var(--glass-border); margin: 2px 0;
}
.user-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 16px;
  background: none; border: none;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary); font-family: inherit;
  cursor: pointer; text-align: left;
  transition: var(--transition);
}
.user-dropdown-item:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}
.user-dropdown-item.danger { color: var(--accent-red); }
.user-dropdown-item.danger:hover {
  background: rgba(239,68,68,0.1);
  color: var(--accent-red);
}

/* Logout confirm overlay */
.logout-confirm-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.logout-confirm-overlay.open {
  opacity: 1; pointer-events: all;
}
.logout-confirm-box {
  background: var(--bg-elevated, #1E293B);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  width: 100%; max-width: 360px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.logout-confirm-overlay.open .logout-confirm-box {
  transform: scale(1);
}
.logout-confirm-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--accent-red);
}
.logout-confirm-title {
  font-size: 17px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}
.logout-confirm-desc {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 24px;
}
.logout-confirm-actions {
  display: flex; gap: 10px;
}
.logout-confirm-actions .btn { flex: 1; justify-content: center; }

/* ============================================
   ANALYTICS CHARTS (pure CSS/SVG)
   ============================================ */
.analytics-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px;
}
.analytics-stat-card { padding: 18px 20px; }

.analytics-charts-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px;
}
.analytics-chart-card { padding: 20px; }

/* Bar chart */
.bar-chart {
  display: flex; align-items: flex-end; gap: 10px;
  height: 160px; padding-top: 24px;
}
.bar-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px; height: 100%;
}
.bar-wrap {
  flex: 1; width: 100%; display: flex;
  align-items: flex-end; justify-content: center;
}
.bar-fill {
  width: 70%; border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer; min-height: 4px;
}
.bar-fill:hover { opacity: 0.8; }
.bar-label { font-size: 11px; color: var(--text-faint); }
.bar-value  { font-size: 10px; color: var(--text-muted); }

/* Horizontal bar chart */
.hbar-chart { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.hbar-row   { display: flex; align-items: center; gap: 10px; }
.hbar-label { font-size: 11px; color: var(--text-secondary); width: 90px; flex-shrink: 0; text-align: right; }
.hbar-track { flex: 1; height: 8px; background: var(--glass-bg); border-radius: 4px; overflow: hidden; }
.hbar-fill  { height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.hbar-value { font-size: 11px; color: var(--text-muted); width: 40px; flex-shrink: 0; }

/* Line chart */
.line-chart-wrap { overflow: hidden; border-radius: 8px; }

@media (max-width: 900px) {
  .analytics-stats-row  { grid-template-columns: repeat(2,1fr); }
  .analytics-charts-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .analytics-stats-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   REALTIME UI ELEMENTS
   ============================================ */

/* Live clock */
.live-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 600; color: var(--text-primary);
  letter-spacing: 0.02em;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent-green);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 20px; padding: 1px 8px;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

/* Stat card update flash */
@keyframes statFlash {
  0%   { color: var(--accent-green); transform: scale(1.04); }
  100% { color: var(--text-primary); transform: scale(1); }
}
.stat-flash { animation: statFlash 0.4s ease; }

@keyframes statUpdating {
  0%   { opacity: 1; transform: translateY(0); }
  50%  { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.stat-updating { animation: statUpdating 0.3s ease; }

/* Activity new item */
@keyframes slideInActivity {
  from { opacity: 0; transform: translateX(-16px); background: rgba(99,102,241,0.08); }
  to   { opacity: 1; transform: translateX(0);     background: transparent; }
}
.activity-item-new {
  animation: slideInActivity 0.4s ease;
  border-radius: var(--radius-sm);
}
.activity-new-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent-indigo);
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 20px; padding: 1px 7px;
  flex-shrink: 0; align-self: flex-start; margin-top: 2px;
  animation: livePulse 1.5s ease-in-out 3;
}

/* Ping flash */
@keyframes pingFlash {
  0%   { color: var(--accent-green); }
  100% { color: inherit; }
}
.ping-flash { animation: pingFlash 0.5s ease; }

/* Topbar live indicator */
.topbar-live-indicator {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  font-size: 11px; font-weight: 600; color: var(--accent-green);
  transition: var(--transition);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}
.live-text { letter-spacing: 0.04em; }

@keyframes liveBlink {
  0%,100% { background: rgba(16,185,129,0.08); }
  50%      { background: rgba(16,185,129,0.2); }
}
.live-blink { animation: liveBlink 0.6s ease; }

/* Realtime chart bar animation */
.bar-fill { transition: height 0.6s cubic-bezier(0.4,0,0.2,1) !important; }

/* ---- SERVER RESOURCE BARS ---- */
.resource-row {
  display: flex; align-items: center; gap: 10px;
}
.resource-label {
  font-size: 11px; color: var(--text-muted);
  width: 32px; flex-shrink: 0; font-weight: 500;
}
.resource-track {
  flex: 1; height: 6px; background: var(--glass-bg);
  border-radius: 3px; overflow: hidden;
}
.resource-bar {
  height: 100%; border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  min-width: 2px;
}
.resource-value {
  font-size: 11px; color: var(--text-muted);
  width: 80px; flex-shrink: 0; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   NOTIFIKASI PAGE — IMPROVED
   ============================================ */
.notif-item-full {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-radius: var(--radius-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: var(--transition); cursor: pointer;
  margin-bottom: 8px;
}
.notif-item-full:hover { background: var(--glass-hover); transform: translateX(2px); }
.notif-item-full.unread {
  border-left: 3px solid var(--accent-indigo);
  background: rgba(99,102,241,0.04);
}
.notif-icon-wrap {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-title  { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.notif-body   { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.notif-meta   { font-size: 11px; color: var(--text-faint); margin-top: 6px; }
.notif-content { flex: 1; min-width: 0; }
.notif-unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-indigo); flex-shrink: 0;
  align-self: flex-start; margin-top: 6px;
  box-shadow: 0 0 8px rgba(99,102,241,0.5);
}

/* Notif panel items */
.notif-panel-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
}
.notif-panel-item:hover { background: var(--glass-hover); }
.notif-panel-item.unread { background: rgba(99,102,241,0.06); }
.notif-panel-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: var(--glass-bg);
}
.notif-panel-title { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.notif-panel-body  { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.notif-panel-time  { font-size: 10px; color: var(--text-faint); margin-top: 3px; }
.notif-panel-content { flex: 1; min-width: 0; }

/* ============================================
   SETTINGS PAGE — FULL REDESIGN
   ============================================ */
.settings-layout {
  display: grid; grid-template-columns: 200px 1fr; gap: 16px;
  align-items: start;
}
@media (max-width: 768px) { .settings-layout { grid-template-columns: 1fr; } }

.settings-nav {
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: calc(var(--topbar-h) + 16px);
}
.settings-nav-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  background: none; border: none; font-size: 13px; font-weight: 500;
  color: var(--text-muted); cursor: pointer; font-family: inherit;
  text-align: left; transition: var(--transition);
}
.settings-nav-item:hover { background: var(--glass-hover); color: var(--text-primary); }
.settings-nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  border: 1px solid rgba(99,102,241,0.2); color: var(--text-primary);
}
.settings-nav-item.active svg { color: var(--accent-indigo); }

.settings-panel { display: none; }
.settings-panel.active { display: block; animation: fadeInUp 0.25s ease; }

.settings-section { padding: 24px; }
.settings-section-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; }

.settings-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.settings-avatar-wrap { position: relative; flex-shrink: 0; }
.settings-avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--glass-border); display: block; }
.settings-avatar-edit {
  position: absolute; bottom: 0; right: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-indigo); border: 2px solid var(--bg-base);
  color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.settings-name  { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.settings-email { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.settings-role-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.25);
  color: var(--accent-indigo); border-radius: 20px; padding: 2px 10px;
}

.settings-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
@media (max-width: 600px) { .settings-form-grid { grid-template-columns: 1fr; } }
.settings-form-group { display: flex; flex-direction: column; gap: 6px; }
.settings-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.settings-input {
  padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-primary); font-size: 13px; font-family: inherit;
  outline: none; transition: var(--transition);
}
.settings-input:focus { border-color: rgba(99,102,241,0.5); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--glass-border);
  gap: 16px;
}
.settings-row:last-of-type { border-bottom: none; margin-bottom: 16px; }
.settings-row-label { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.settings-row-desc  { font-size: 11px; color: var(--text-muted); }

.subdomain-tag {
  font-size: 11px; color: var(--text-muted);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 3px 10px;
}
