/* AIMCODE portal header polish: calmer density, stronger hierarchy, cleaner type. */
.app-shell .topbar {
  min-height: 78px !important;
  padding: 0 30px !important;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(20, 18, 31, .94), rgba(10, 11, 17, .94)) !important;
  border-bottom: 1px solid rgba(198, 177, 245, .16) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16), inset 0 1px rgba(255,255,255,.045) !important;
  backdrop-filter: blur(22px) saturate(1.18);
}

.app-shell .topbar-trail {
  gap: 10px !important;
  color: #7e8493 !important;
  font: 500 11px/1.1 "Inter", "Instrument Sans", ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: .08em;
}

.app-shell .topbar-trail > span {
  color: #b6a4e8 !important;
  font-weight: 700 !important;
  letter-spacing: .16em;
}

.app-shell .topbar-trail > svg {
  color: #5d6170;
}

.app-shell .topbar-trail b {
  color: #eff0f7 !important;
  font-weight: 650 !important;
  letter-spacing: 0;
}

.app-shell .topbar-actions {
  gap: 10px !important;
}

.app-shell .topbar-actions > .aim-currency-switch {
  height: 42px !important;
  min-width: 112px !important;
  padding: 3px !important;
  border: 1px solid rgba(193, 171, 241, .23) !important;
  border-radius: 999px !important;
  background: rgba(7, 8, 13, .58) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 8px 22px rgba(0,0,0,.12) !important;
  transform: none !important;
}

.app-shell .topbar-actions > .aim-currency-switch button {
  min-width: 48px !important;
  height: 34px !important;
  border-radius: 999px !important;
  color: #9490a3 !important;
  font: 700 11px/1 "Inter", "Instrument Sans", ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: .02em !important;
}

.app-shell .topbar-actions > .aim-currency-switch button.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #9b6eff, #6749db) !important;
  box-shadow: 0 5px 14px rgba(111, 77, 230, .36), inset 0 1px rgba(255,255,255,.22) !important;
}

.app-shell .topbar-actions > .live-online-badge {
  position: relative;
  width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 1px solid rgba(194, 171, 241, .24) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.025) !important;
  color: #a99be4 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 8px 22px rgba(0,0,0,.12) !important;
}

.app-shell .topbar-actions > .live-online-badge i {
  display: none;
}

.app-shell .topbar-actions > .live-online-badge:before {
  content: "◈";
  color: #bca8ff;
  font: 700 19px/1 "Inter", ui-sans-serif, system-ui, sans-serif;
  text-shadow: 0 0 14px rgba(145, 112, 255, .55);
}

.app-shell .topbar-actions > .live-online-badge.offline:before {
  content: "!";
  color: #ff9aa9;
}

.app-shell .topbar-actions > .topbar-balance {
  min-width: 146px !important;
  min-height: 58px;
  justify-content: center;
  gap: 5px !important;
  padding: 9px 18px !important;
  border: 1px solid rgba(193, 171, 241, .24) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(38, 30, 55, .78), rgba(12, 13, 21, .9)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 8px 22px rgba(0,0,0,.14) !important;
}

.app-shell .topbar-balance small {
  color: #908c9e !important;
  font: 600 10px/1 "Inter", "Instrument Sans", ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: .08em;
}

.app-shell .topbar-balance b {
  color: #faf9ff !important;
  font: 750 16px/1 "Inter", "Instrument Sans", ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: -.025em;
}

.app-shell .topbar-actions > .admin-entry {
  width: 44px !important;
  height: 44px !important;
  flex-basis: 44px !important;
  border: 1px solid rgba(193, 171, 241, .26) !important;
  border-radius: 13px !important;
  color: #bca8ff !important;
  background: rgba(255,255,255,.025) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 8px 22px rgba(0,0,0,.12) !important;
}

.app-shell .topbar-actions > .admin-entry:hover {
  border-color: rgba(192, 165, 255, .58) !important;
  background: rgba(134, 98, 224, .14) !important;
}

.app-shell .topbar-actions > .user-menu {
  min-height: 58px !important;
  padding: 5px 12px 5px 7px !important;
  gap: 11px !important;
  border: 1px solid rgba(193, 171, 241, .22) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(33, 28, 47, .84), rgba(12, 13, 21, .9)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 8px 22px rgba(0,0,0,.13) !important;
}

.app-shell .topbar-actions > .user-menu:hover {
  border-color: rgba(192, 165, 255, .46) !important;
  background: linear-gradient(145deg, rgba(56, 39, 86, .9), rgba(16, 15, 27, .94)) !important;
}

.app-shell .topbar-actions > .user-menu .user-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border-color: rgba(190, 168, 255, .44) !important;
  background: linear-gradient(145deg, #6244c5, #262b69) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.22), 0 6px 15px rgba(75, 49, 167, .3) !important;
  font: 700 11px/1 "Inter", ui-sans-serif, system-ui, sans-serif !important;
}

.app-shell .topbar-actions > .user-menu > span:last-child {
  gap: 4px !important;
}

.app-shell .topbar-actions > .user-menu b {
  max-width: 148px !important;
  color: #f5f3fa !important;
  font: 700 14px/1.1 "Inter", "Instrument Sans", ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: -.01em;
}

.app-shell .topbar-actions > .user-menu small {
  color: #9691a6 !important;
  font: 500 11px/1.1 "Inter", "Instrument Sans", ui-sans-serif, system-ui, sans-serif !important;
}

@media (max-width: 980px) {
  .app-shell .topbar { padding: 0 18px !important; gap: 12px; }
  .app-shell .topbar-trail { display: none; }
  .app-shell .topbar-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 620px) {
  .app-shell .topbar { min-height: 68px !important; padding: 0 12px !important; }
  .app-shell .topbar-actions { gap: 7px !important; }
  .app-shell .topbar-actions > .aim-currency-switch { min-width: 92px !important; height: 36px !important; }
  .app-shell .topbar-actions > .aim-currency-switch button { min-width: 39px !important; height: 29px !important; font-size: 10px !important; }
  .app-shell .topbar-actions > .live-online-badge,
  .app-shell .topbar-actions > .admin-entry { width: 36px !important; height: 36px !important; min-height: 36px !important; flex-basis: 36px !important; border-radius: 11px !important; }
  .app-shell .topbar-actions > .topbar-balance { min-width: 98px !important; min-height: 46px; padding: 6px 10px !important; border-radius: 11px !important; }
  .app-shell .topbar-balance small { font-size: 8px !important; }
  .app-shell .topbar-balance b { font-size: 12px !important; }
  .app-shell .topbar-actions > .user-menu { min-height: 46px !important; padding-right: 8px !important; border-radius: 12px !important; }
  .app-shell .topbar-actions > .user-menu .user-avatar { width: 32px !important; height: 32px !important; border-radius: 9px !important; }
  .app-shell .topbar-actions > .user-menu b { max-width: 92px !important; font-size: 11px !important; }
  .app-shell .topbar-actions > .user-menu small { font-size: 9px !important; }
}

@media (max-width: 480px) {
  .app-shell .topbar-actions > .admin-entry { display: none !important; }
  .app-shell .topbar-actions > .user-menu small { display: none !important; }
  .app-shell .topbar-actions > .user-menu b { max-width: 82px !important; }
}
