.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  position: relative;
}

.admin-sidebar {
  background: #0f172a;
  color: #e5e7eb;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 30;
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-sidebar__logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #14213d, #c9a34e);
  color: #fff;
  font-weight: 800;
}

.admin-sidebar__brand p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  padding: 28px 32px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-topbar__left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.admin-topbar h1 {
  margin: 0 0 6px;
  font-size: 30px;
}

.admin-topbar p {
  margin: 0;
  color: #64748b;
}

.admin-topbar__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-user {
  color: #475569;
  font-size: 14px;
}

.admin-content {
  padding: 28px 32px 40px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #f8fafc;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
}

.admin-overlay {
  display: none;
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 86vw;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 20px 0 50px rgba(15, 23, 42, 0.18);
  }

  .admin-shell.is-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 25;
  }

  .admin-shell.is-sidebar-open .admin-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-topbar,
  .admin-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-topbar__actions {
    justify-content: space-between;
    width: 100%;
  }
}