body.merchant-body {
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.16), transparent 34rem),
    linear-gradient(135deg, #f8faff 0%, #f3f6fb 100%);
}
body.merchant-body .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem clamp(1rem, 3vw, 2.4rem);
  background: linear-gradient(135deg, #101828 0%, #172554 100%);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.24);
}
body.merchant-body main {
  width: min(1480px, calc(100% - 2rem));
  padding-top: 1.3rem;
}
#appPanel, #adminPanel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}
#merchantNav, #adminPanel .tabs {
  position: sticky;
  top: 6.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(40, 52, 90, 0.1);
  backdrop-filter: blur(14px);
}
#merchantNav .tab-button, #adminPanel .tab-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.75rem 0.9rem 0.75rem 1rem;
  border-radius: 14px;
  background: transparent;
  color: #475569;
  font-weight: 750;
  text-align: left;
  transition: 160ms ease;
}
#merchantNav .tab-button::before, #adminPanel .tab-button::before {
  content: '';
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.65rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: 160ms ease;
}
#merchantNav .tab-button:hover, #adminPanel .tab-button:hover {
  background: #eef2ff;
  color: #3730a3;
}
#merchantNav .tab-button.active, #adminPanel .tab-button.active {
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.24);
}
#merchantNav .tab-button.active::before, #adminPanel .tab-button.active::before { background: #a7f3d0; }
#appPanel > section, #adminPanel > section { min-width: 0; }
body.merchant-body .card {
  border-color: rgba(203, 213, 225, 0.68);
  border-radius: 22px;
  box-shadow: 0 20px 54px rgba(40, 52, 90, 0.1);
}
body.merchant-body .metric-card {
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}
body.merchant-body .metric-card strong { color: #312e81; }
@media (max-width: 980px) {
  #appPanel, #adminPanel { grid-template-columns: 1fr; }
  #merchantNav, #adminPanel .tabs {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }
  #merchantNav .tab-button, #adminPanel .tab-button { width: auto; white-space: nowrap; }
}

#adminPanel .tabs a.tab-button{text-decoration:none;display:flex;align-items:center}
