.be2-app-shell {
  width: min(1380px, calc(100vw - 28px));
  margin: 14px auto;
}

.be2-suite-topbar {
  position: relative;
  z-index: 5000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 16px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(8,18,38,.92), rgba(7,15,31,.76));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.be2-suite-left,
.be2-suite-center,
.be2-suite-right {
  min-width: 0;
}

.be2-suite-center {
  display: flex;
  justify-content: center;
}

.be2-suite-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* App switcher */
.be2-app-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.be2-app-badge {
  width: 92px;
  min-height: 54px;
  padding: 8px 14px;
  border-radius: 20px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.02;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: .18s ease;
}

.be2-app-badge span {
  font-size: .8rem;
  opacity: .92;
}

.be2-app-badge strong {
  font-size: 1rem;
}

.be2-app-badge.is-hub {
  color: #f4f7ff;
  background: linear-gradient(180deg, rgba(19,30,62,.96), rgba(12,20,44,.96));
}

.be2-app-badge.is-leads {
  background: linear-gradient(135deg, #2f7cff, #2259d3);
}

.be2-app-badge.is-drive {
  background: linear-gradient(135deg, #33c06b, #1c8f4a);
}

.be2-app-badge.is-tour {
  background: linear-gradient(135deg, #9a66ff, #7445cf);
}

.be2-app-badge:not(.is-active) {
  opacity: .9;
  transform: scale(.985);
}

.be2-app-badge:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.be2-app-badge.is-active {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 0 2px rgba(255,255,255,.12),
    0 10px 24px rgba(0,0,0,.18);
}

/* Center menu */
.be2-app-menu {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Topbar icons */
.be2-topbar-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbe7ff;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(125,162,255,.16);
  cursor: pointer;
}

.be2-admin-topbar-icon {
  background: rgba(77,125,255,.08);
  border-color: rgba(125,162,255,.22);
}

.be2-admin-topbar-icon:hover {
  background: rgba(77,125,255,.16);
  border-color: rgba(125,162,255,.42);
}

/* Account menu */
.be2-avatar-menu {
  position: relative;
  z-index: 6000;
}

.be2-account-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 18px;
  border: 1px solid rgba(113,153,255,.16);
  background: rgba(255,255,255,.03);
  cursor: pointer;
}

.be2-account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(120,89,255,.82), rgba(74,42,182,.82));
}

.be2-account-meta {
  line-height: 1.1;
}

.be2-account-name {
  color: #7da2ff;
  font-weight: 900;
  font-size: .95rem;
}

.be2-account-sub {
  color: #c7d2ee;
  font-size: .82rem;
}

.be2-account-caret {
  color: var(--text-soft);
  font-size: 12px;
}

/* Dropdown */
.be2-avatar-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  z-index: 7000;
  display: none;
  width: 380px;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(12,26,58,.98), rgba(7,18,39,.98));
  border: 1px solid rgba(121,145,210,.22);
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
}

.be2-avatar-dropdown::before {
  content: "";
  position: absolute;
  right: 58px;
  top: -9px;
  width: 18px;
  height: 18px;
  rotate: 45deg;
  background: rgba(12,26,58,.98);
  border-left: 1px solid rgba(121,145,210,.22);
  border-top: 1px solid rgba(121,145,210,.22);
}

.be2-avatar-menu.open .be2-avatar-dropdown {
  display: grid;
}

.be2-avatar-link {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 12px 0;
  color: #fff;
  text-decoration: none;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: .18s ease;
}

.be2-avatar-link:last-child {
  border-bottom: 0;
}

.be2-avatar-link:hover {
  transform: translateX(2px);
}

.be2-avatar-link-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255,255,255,.07);
}

.be2-avatar-link-icon.is-blue { background: rgba(77,125,255,.18); }
.be2-avatar-link-icon.is-green { background: rgba(34,197,94,.18); }
.be2-avatar-link-icon.is-purple { background: rgba(168,85,247,.18); }
.be2-avatar-link-icon.is-red { background: rgba(239,68,68,.16); }

.be2-avatar-link strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.be2-avatar-link small {
  display: block;
  margin-top: 4px;
  color: #aebfe4;
  font-size: 13px;
}

/* Main */
.be2-app-main {
  margin-top: 18px;
}

.be2-page-head {
  padding: 4px 6px 0;
}

.shell-stack {
  display: grid;
  gap: 20px;
}

/* Responsive */
@media (max-width: 1180px) {
  .be2-app-shell {
    width: min(100%, calc(100vw - 20px));
    margin: 10px auto;
  }

  .be2-suite-topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .be2-suite-center {
    justify-content: flex-start;
  }

  .be2-suite-right {
    justify-content: space-between;
  }

  .be2-avatar-dropdown {
    right: auto;
    left: 0;
    width: min(380px, calc(100vw - 32px));
  }

  .be2-avatar-dropdown::before {
    right: auto;
    left: 46px;
  }
}
