  /* APP */
  .app { display: grid; grid-template-columns: 260px 1fr; grid-template-rows: 56px 1fr; min-height: 100vh; position: relative; transition: grid-template-columns 0.2s ease; }
  .sidebar {
    background: rgba(8, 17, 13, 0.7);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-right: 1px solid rgba(59, 130, 246, 0.15);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    grid-column: 1;
    grid-row: 1 / 3;
    height: 100%;
    overflow-y: auto;
  }
  .sidebar::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 1px; height: 100%;
    background: linear-gradient(180deg,
      transparent 0%,
      rgba(59, 130, 246, 0.4) 30%,
      rgba(212, 160, 74, 0.3) 70%,
      transparent 100%);
  }
  .sidebar-header {
    display: flex; align-items: center; gap: 12px;
    padding: 0 8px 1.25rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    margin-bottom: 1rem;
    position: relative;
  }
  .sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 70%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.6;
  }
  .sidebar-logo {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(212, 160, 74, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: white;
    box-shadow:
      0 6px 20px rgba(59, 130, 246, 0.3),
      0 0 30px rgba(59, 130, 246, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }
  .sidebar-logo img {
    width: 26px !important;
    height: 26px !important;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
  }
  .sidebar-title { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
  .sidebar-sub { font-size: 11px; color: var(--text-3); }

  /* PRODUCT SWITCHER */
  .product-switcher {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(212, 160, 74, 0.04));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
  }
  .product-switcher::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
    border-radius: 12px 12px 0 0;
    pointer-events: none;
  }
  .product-switcher:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(212, 160, 74, 0.08));
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
  }
  .product-switcher-label {
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 4px;
  }
  .product-switcher-value {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600;
  }
  .product-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--product-color);
    box-shadow: 0 0 10px var(--product-color);
    flex-shrink: 0;
  }
  .product-switcher-value::after {
    content: '⌄';
    margin-left: auto;
    color: var(--text-3);
    font-size: 14px;
  }
  .product-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    z-index: 50;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    max-height: 280px;
    overflow-y: auto;
  }
  .product-dropdown.show { display: block; }
  .product-option {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.1s;
  }
  .product-option:hover { background: var(--bg-card-hover); }
  .product-option.active { background: var(--primary-soft); color: var(--primary-hover); font-weight: 600; }
  .product-option .opt-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  }
  .product-option-divider {
    height: 1px; background: var(--border); margin: 4px 0;
  }
  .product-option-action {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 10px;
    border-radius: 6px; cursor: pointer; font-size: 13px;
    color: var(--text-2);
  }
  .product-option-action:hover { background: var(--bg-card-hover); color: var(--text-1); }

  .nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border-radius: 10px; cursor: pointer;
    font-size: 14px; color: var(--text-2);
    transition: all 0.2s ease;
    border: none; background: transparent;
    text-align: left; width: 100%;
    font-family: inherit; font-weight: 500;
    position: relative;
    overflow: hidden;
  }
  .nav-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-1);
    transform: translateX(2px);
  }
  .nav-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.05));
    color: var(--primary-hover);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary);
  }
  .nav-item.active svg {
    filter: drop-shadow(0 0 6px var(--primary-glow));
  }
  .nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
  .nav-section-label {
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 12px 12px 6px;
  }

  /* SIDEBAR COLLAPSE TOGGLE */
  #sidebar-toggle {
    position: absolute;
    top: 80px;
    right: -13px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-2, #1a2236);
    border: 1px solid var(--border, #2a3a52);
    color: var(--text-1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
  }
  #sidebar-toggle:hover { background: var(--bg-card-hover, #22334d); }
  body.sidebar-collapsed .app { grid-template-columns: 64px 1fr; }
  .sidebar.collapsed { overflow: visible; }
  .sidebar.collapsed .sidebar-title,
  .sidebar.collapsed .sidebar-sub,
  .sidebar.collapsed .nav-section-label,
  .sidebar.collapsed .nav-item span,
  .sidebar.collapsed .product-switcher-label,
  .sidebar.collapsed .product-switcher-value { display: none !important; }
  .sidebar.collapsed .sidebar-header { justify-content: center; padding: 12px 8px; }
  .sidebar.collapsed .sidebar-logo { margin: 0; }
  .sidebar.collapsed .product-switcher { justify-content: center; padding: 10px 8px; }
  .sidebar.collapsed .nav-item { justify-content: center; padding: 12px 8px; }
  .sidebar.collapsed .nav-item:hover::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-2, #1a2236);
    color: var(--text-1);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    border: 1px solid var(--border, #2a3a52);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1000;
    pointer-events: none;
    font-weight: 500;
  }

  /* NOTIFICATION BELL */
  #notif-badge { position: absolute; top: -5px; right: -5px; background: var(--danger, #ef4444); color: #fff; border-radius: 50%; min-width: 16px; height: 16px; font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; padding: 0 3px; pointer-events: none; }
  #notif-panel { position: fixed; top: 56px; right: 8px; width: 340px; max-height: 360px; background: var(--bg-card, #1a1a2e); border: 1px solid var(--border, #333); border-radius: 12px; z-index: 500; box-shadow: 0 8px 32px rgba(0,0,0,0.55); display: none; flex-direction: column; overflow: hidden; }
  #notif-panel.show { display: flex; }
  .notif-panel-hdr { padding: 10px 14px; border-bottom: 1px solid var(--border, #333); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
  .notif-panel-hdr span { font-size: 12px; font-weight: 600; color: var(--text-1, #e2e8f0); }
  .notif-panel-hdr button { font-size: 10px; color: var(--text-3, #64748b); background: none; border: none; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
  .notif-panel-hdr button:hover { color: var(--text-1); background: var(--bg-input, #2a2a3e); }
  .notif-list { overflow-y: auto; flex: 1; }
  .notif-item { padding: 9px 14px; border-bottom: 1px solid var(--border, #2a2a3e); cursor: pointer; display: flex; gap: 8px; align-items: flex-start; }
  .notif-item:hover { background: var(--bg-input, #2a2a3e); }
  .notif-item.unread { background: rgba(99,102,241,0.06); }
  .notif-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary, #6366f1); margin-top: 4px; flex-shrink: 0; }
  .notif-dot.read { background: transparent; }
  .notif-content { flex: 1; min-width: 0; }
  .notif-msg { font-size: 11px; color: var(--text-2, #94a3b8); line-height: 1.4; }
  .notif-time { font-size: 10px; color: var(--text-3, #64748b); margin-top: 2px; }
  .notif-empty { padding: 28px 14px; text-align: center; color: var(--text-3, #64748b); font-size: 12px; }
  /* App topbar */
  .app-topbar {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
  }
  .app-topbar-user { display: flex; align-items: center; gap: 8px; }
  .app-topbar-user .user-info p:first-child { font-size: 13px; font-weight: 600; }
  .app-topbar-user .user-info p:last-child { font-size: 11px; color: var(--text-3); }
  .app-topbar-product { display: flex; flex-direction: column; }
  .app-topbar-product label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
  .app-topbar-product select { font-size: 12px; padding: 4px 8px; min-width: 130px; }

  .user-row { display: flex; align-items: center; gap: 10px; }
  .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 12px; color: white;
    flex-shrink: 0;
  }
  .user-info { flex: 1; min-width: 0; }
  .user-info p:first-child { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .user-info p:last-child { font-size: 11px; color: var(--text-3); }

  .main { grid-column: 2; grid-row: 2; padding: 2rem 2.5rem; overflow-y: auto; max-width: 100%; }
  .page-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
  }
  .page-title {
    font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px;
    background: linear-gradient(135deg, #f0f5f2 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .page-subtitle { color: var(--text-3); font-size: 14px; }
