body {
  background: radial-gradient(
    circle at top left,
    var(--bg-grad-a),
    var(--bg-grad-b) 55%,
    var(--bg-grad-c)
  );
}

.customer-layout .content {
  padding: 32px 36px 48px;
}

.customer-sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-ink);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.customer-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--chip-stroke);
}

.customer-sidebar .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--brand-grad-a), var(--brand-grad-b));
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}

.customer-sidebar .brand-title {
  font-weight: 600;
  font-size: 15px;
}

.customer-sidebar .brand-sub {
  color: var(--sidebar-sub);
  font-size: 12px;
}

.customer-sidebar .sidebar-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: var(--ghost-bg);
  color: var(--ink);
  cursor: pointer;
  display: none;
  font-size: 18px;
}

.customer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.customer-menu a {
  text-decoration: none;
  color: var(--nav-ink);
  padding: 12px 14px 12px 42px;
  border-radius: 14px;
  position: relative;
  transition: all 0.2s ease;
  font-weight: 500;
}

.customer-menu a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--pill-bg);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.customer-menu a:hover,
.customer-menu a.active {
  background: var(--nav-hover-bg);
  color: var(--nav-hover-ink);
  box-shadow: inset 0 0 0 1px var(--chip-stroke);
}

.customer-menu a:hover::before,
.customer-menu a.active::before {
  background: var(--accent);
}

.customer-menu a:last-child {
  margin-top: 8px;
  color: var(--sidebar-sub);
}

.customer-menu a:last-child::before {
  background: var(--chip-stroke);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: var(--panel);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 24, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 15;
}


body.sidebar-collapsed .customer-layout {
  grid-template-columns: 0 1fr;
}

body.sidebar-collapsed .customer-sidebar {
  width: 0;
  min-width: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .customer-layout .content {
    padding: 24px 20px 36px;
  }

  .customer-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 20;
    transition: left 0.25s ease;
  }

  .customer-sidebar .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  body.sidebar-open .customer-sidebar {
    left: 0;
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

:root[data-theme-scheme="dark"] .customer-sidebar {
  background: #091323;
  border-right: 1px solid rgba(100, 116, 139, 0.35);
}

:root[data-theme-scheme="dark"] .customer-sidebar .sidebar-close {
  border: 1px solid var(--stroke);
}

:root[data-theme-scheme="dark"] .customer-menu a {
  border: 1px solid transparent;
  background: rgba(30, 41, 59, 0.42);
}

:root[data-theme-scheme="dark"] .customer-menu a:hover,
:root[data-theme-scheme="dark"] .customer-menu a.active {
  border-color: rgba(148, 163, 184, 0.4);
}
