* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #08090d;
  color: #fff;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.12), transparent 35%),
    linear-gradient(180deg, #111218, #07080b);
  pointer-events: none;
}

/* Login */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
}

.login-card {
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(20,21,28,.82);
  box-shadow: 0 20px 80px rgba(0,0,0,.45);
  text-align: center;
}

.logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.4));
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.login-card p {
  color: #a6a8b3;
  margin: 0 0 24px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 800;
}

.alert {
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(255,80,80,.35);
  background: rgba(255,80,80,.12);
  border-radius: 12px;
  color: #ffb2b2;
}

/* Layout */
.dash-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar {
  width: 270px;
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(12,13,18,.85);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.sidebar-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.brand strong {
  font-size: 16px;
}

nav {
  display: grid;
  gap: 10px;
}

nav a,
.logout {
  padding: 13px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #aeb0bb;
  border: 1px solid transparent;
}

.active,
nav a:hover,
.logout:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: #fff;
}

.logout {
  margin-top: auto;
}

.content {
  flex: 1;
  padding: 34px;
}

.content header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.content h1 {
  font-size: 34px;
  margin: 0 0 8px;
}

.content p {
  color: #a6a8b3;
  margin: 0;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card,
.panel {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(22,23,30,.78);
  border-radius: 18px;
  padding: 20px;
}

.stat-card span {
  color: #9ea1ad;
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
}

.panel h2 {
  margin: 0 0 8px;
}

.good {
  color: #a7ffb7;
}

.bad {
  color: #ffb2b2;
}

.small {
  font-size: 13px;
  color: #a6a8b3;
  margin-top: 10px;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* Forms */
input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
}

form {
  margin-top: 15px;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.product-card {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(22,23,30,.78);
  border-radius: 18px;
  padding: 22px;
  transition: .2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
}

.product-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(80,255,150,.12);
  color: #8dffb1;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.category-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(80,150,255,.12);
  color: #8db8ff;
  font-size: 12px;
  font-weight: 800;
}

.product-card h2 {
  margin: 0 0 8px;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.product-meta div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

.product-meta span {
  display: block;
  color: #9ea1ad;
  font-size: 12px;
  margin-bottom: 8px;
}

.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-actions form {
  margin: 0;
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn-mini.dark {
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* Mobile */
@media (max-width: 800px) {
  .dash-shell {
    display: block;
  }

  .sidebar {
    width: auto;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 22px;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }

  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.sidebar,
.sidebar nav,
.sidebar nav a,
.logout {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.sidebar nav a {
  display: block;
}

body::before{
  z-index:-1 !important;
}

.dash-shell{
  z-index:1;
}

.sidebar{
  z-index:999 !important;
}

.sidebar nav a{
  cursor:pointer;
}