
  :root {
    --bg-deep: #F5F5F5;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --bg-input: #FFFFFF;
    --accent: #4ade80;
    --accent-dim: rgba(74,222,128,.15);
    --accent2: #60a5fa;
    --text-primary: #f0f2f5;
    --text-secondary: #7a8694;
    --text-muted: #4a5568;
    --border: rgba(255,255,255,.06);
    --radius-sm: 10px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ── Ambient ── */
  .ambient {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(ellipse 600px 600px at 10% 20%, rgba(74,222,128,.06) 0%, transparent 70%),
      radial-gradient(ellipse 500px 500px at 85% 70%, rgba(96,165,250,.07) 0%, transparent 70%),
      radial-gradient(ellipse 400px 400px at 50% 90%, rgba(244,114,182,.04) 0%, transparent 70%);
  }

  /* ── Overlay (mobile) ── */
  .overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 99;
  }
  .overlay.show { display: block; }

  /* ── Sidebar ── */
  .sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0; left: 0;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 100;
  }
  .sidebar.collapsed { transform: translateX(-240px); }

  .logo-area {
    padding: 24px 20px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .logo-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #0a0c0f;
    box-shadow: 0 0 18px rgba(74,222,128,.25);
  }
  .logo-text {
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;;
    font-size: 13px; font-weight: 700;
    letter-spacing: -.3px; line-height: 1.3;
    color: var(--text-primary);
  }

  .nav { flex: 1; padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
  .nav-section-label {
    font-size: 10px; text-transform: uppercase;
    letter-spacing: 1.4px; color: var(--text-muted);
    padding: 14px 12px 6px;
  }

  .nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 10px;
    color: var(--text-secondary); cursor: pointer;
    transition: all .2s ease; text-decoration: none;
    font-size: 14px; font-weight: 450; position: relative;
  }
  .nav-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
  .nav-item.active { background: var(--accent-dim); color: var(--accent); }
  .nav-item.active::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 24px; border-radius: 0 3px 3px 0;
    background: var(--accent);
  }
  .nav-icon { width: 18px; text-align: center; font-size: 15px; }
  .nav-badge {
    margin-left: auto; background: var(--accent); color: #0a0c0f;
    font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 20px;
  }

  .sidebar-bottom { padding: 16px 14px; border-top: 1px solid var(--border); flex-shrink: 0; }
  .user-card {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px; cursor: pointer;
    transition: background .2s;
  }
  .user-card:hover { background: var(--bg-card-hover); }
  .avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 13px; color: #0a0c0f;
  }
  .user-info { min-width: 0; }
  .user-name { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .user-role { font-size: 11px; color: var(--text-muted); }

  /* ── Main ── */
  .main {
    margin-left: 240px;
    min-height: 100vh;
    position: relative; z-index: 1;
    transition: margin-left .3s cubic-bezier(.4,0,.2,1);
  }

  /* ── Topbar ── */
  .topbar {
    position: sticky; top: 0; z-index: 50;
    background: #F5F5F5;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    gap: 16px;
  }

  .topbar-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }

  .toggle-btn {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-primary); width: 36px; height: 36px;
    border-radius: var(--radius-sm); cursor: pointer;
    display: none; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
    transition: background .2s, border-color .2s;
  }
  .toggle-btn:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,.12); }

  .topbar-greet { min-width: 0; }
  .topbar-greet h1 {
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px; font-weight: 700;
    letter-spacing: -.4px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .topbar-greet p { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

  .topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

  .search-box {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 8px 14px;
    transition: border-color .2s;
  }
  .search-box:focus-within { border-color: rgba(74,222,128,.3); }
  .search-box input {
    background: none; border: none; outline: none;
    color: var(--text-primary); font-size: 13px;
    width: 140px; font-family: inherit;
  }
  .search-box input::placeholder { color: var(--text-muted); }
  .search-icon { color: var(--text-muted); font-size: 14px; display: flex; }

  .notif-btn {
    position: relative;
    background: var(--bg-input); border: 1px solid var(--border);
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-secondary); font-size: 16px;
    transition: all .2s;
  }
  .notif-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
  .notif-dot {
    position: absolute; top: 7px; right: 8px;
    width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
    border: 2px solid var(--bg-input);
    animation: pulse 2s infinite;
  }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

  .topbar-user {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 5px 12px 5px 5px;
    cursor: pointer; transition: background .2s, border-color .2s;
  }
  .topbar-user:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,.12); }
  .topbar-user .avatar { width: 26px; height: 26px; font-size: 11px; }
  .topbar-user-name { font-size: 13px; font-weight: 500; }
  .topbar-user-chevron { color: var(--text-muted); font-size: 10px; margin-left: 2px; }

  /* ── Empty State ── */
  .empty-area {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: calc(100vh - 64px);
    gap: 16px; padding: 40px;
  }
  .empty-icon {
    width: 72px; height: 72px; border-radius: 20px;
    background: var(--accent-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
  }
  .empty-title {
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px; font-weight: 700;
  }
  .empty-desc { font-size: 14px; color: var(--text-secondary); text-align: center; max-width: 340px; line-height: 1.6; }

  /* ── Responsive ── */
  @media (max-width: 640px) {
    .sidebar { transform: translateX(-240px); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0 !important; }
    .toggle-btn { display: flex; }
    .topbar { padding: 0 16px; height: 58px; }
    .topbar-greet h1 { font-size: 16px; }
    .search-box { display: none; }
    .topbar-user-name, .topbar-user-chevron { display: none; }
    .topbar-user { padding: 5px; }
    .empty-area { height: calc(100vh - 58px); }
  }