:root{
  --bg:#07101f;
  --dark:#080f1d;
  --panel:#0f172a;
  --panel2:#111c30;
  --text:#ffffff;
  --muted:#94a3b8;
  --primary:#7c3aed;
  --primary2:#2563eb;
  --border:rgba(255,255,255,.10);
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:Inter,Arial,sans-serif;
}

body{
  background:var(--bg);
  color:var(--text);
}

a{
  color:inherit;
  text-decoration:none;
}

/* TOPBAR */
.topbar{
  height:74px;
  display:grid;
  grid-template-columns:220px 1fr 220px;
  gap:20px;
  align-items:center;
  padding:0 22px;
  background:#080f1d;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:50;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:24px;
  font-weight:900;
}

.searchbar{
  height:46px;
  background:white;
  color:#475569;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  max-width:740px;
}

.searchbar input{
  flex:1;
  border:0;
  outline:0;
  background:white;
  color:#111827;
  margin:0;
  padding:0;
}

.searchbar select{
  border:0;
  border-left:1px solid #e5e7eb;
  padding-left:12px;
  background:white;
  color:#111827;
}

.searchbar button{
  border:0;
  background:white;
  cursor:pointer;
}

.top-actions{
  display:flex;
  justify-content:flex-end;
  gap:16px;
  font-weight:800;
  color:#dbeafe;
}

/* LAYOUT */
.app-layout{
  display:grid;
  grid-template-columns:220px 1fr;
  min-height:calc(100vh - 74px);
}

.sidebar{
  background:#0b1423;
  border-right:1px solid var(--border);
  padding:18px 14px;
  position:sticky;
  top:74px;
  height:calc(100vh - 74px);
  overflow:auto;
}

.sidebar h4{
  font-size:12px;
  margin-bottom:12px;
  color:#fff;
}

.sidebar a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 8px;
  border-radius:10px;
  color:#e2e8f0;
  font-size:13px;
  font-weight:700;
}

.sidebar a:hover{
  background:rgba(124,58,237,.18);
}

.sidebar small{
  margin-left:auto;
  background:#334155;
  padding:2px 5px;
  border-radius:5px;
  font-size:9px;
}

.main-content{
  min-width:0;
  background:linear-gradient(180deg,#090f1e,#080f1d);
}

/* HERO */
.hero{
  margin:18px;
  border-radius:18px;
  min-height:300px;
  padding:58px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:
    radial-gradient(circle at 75% 45%,rgba(124,58,237,.85),transparent 20%),
    radial-gradient(circle at 55% 30%,rgba(236,72,153,.25),transparent 18%),
    linear-gradient(135deg,#10162c,#160b45 50%,#08111f);
  overflow:hidden;
}

.hero h1{
  font-size:clamp(36px,5vw,58px);
  line-height:1.08;
  max-width:620px;
  margin:16px 0;
}

.hero p{
  color:#cbd5e1;
  font-size:18px;
  max-width:560px;
}

.tag{
  color:#c4b5fd;
  font-weight:900;
}

.actions{
  display:flex;
  gap:14px;
  margin-top:28px;
  flex-wrap:wrap;
}

.hero-icons{
  display:flex;
  gap:16px;
  font-size:54px;
  filter:drop-shadow(0 20px 30px rgba(0,0,0,.45));
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:13px 22px;
  border-radius:12px;
  font-weight:900;
  border:1px solid var(--border);
}

.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:white;
}

.secondary{
  background:#1f2937;
  color:white;
}

/* FEATURES */
.features{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin:0 18px;
  background:white;
  color:#0f172a;
  border-radius:14px;
  overflow:hidden;
}

.feature-card{
  padding:18px 20px;
  border-right:1px solid #e5e7eb;
  display:flex;
  gap:12px;
  align-items:center;
}

.feature-card:last-child{
  border-right:0;
}

.feature-card span{
  font-size:26px;
}

.feature-card p{
  color:#64748b;
  font-size:13px;
}

/* SECTIONS */
.section{
  padding:32px 18px;
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}

.section-title h2{
  font-size:24px;
}

.section-title a{
  color:#a78bfa;
  font-weight:800;
}

/* CATEGORIES */
.category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:10px;
}

.category-card{
  background:white;
  color:#0f172a;
  border-radius:12px;
  padding:20px 12px;
  min-height:98px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  font-weight:900;
}

.category-icon{
  font-size:28px;
  margin-bottom:8px;
}

/* PRODUCTS */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
}

.product-card{
  background:white;
  color:#0f172a;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #e5e7eb;
}

.product-image{
  height:145px;
  background:linear-gradient(135deg,#111827,#312e81);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:58px;
}

.product-info{
  padding:16px;
}

.product-info h3{
  margin:8px 0 4px;
}

.product-info p{
  color:#64748b;
}

.product-info h2{
  color:#6d28d9;
  margin:10px 0;
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#ede9fe;
  color:#6d28d9;
  font-size:11px;
  font-weight:900;
}

/* RESPONSIVE */
@media(max-width:960px){
  .topbar{
    height:auto;
    grid-template-columns:1fr;
    padding:14px;
  }

  .searchbar{
    max-width:none;
    width:100%;
  }

  .top-actions{
    justify-content:flex-start;
  }

  .app-layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    display:none;
  }

  .hero{
    padding:34px;
    flex-direction:column;
    align-items:flex-start;
  }

  .hero-icons{
    margin-top:25px;
    font-size:38px;
  }

  .features{
    grid-template-columns:1fr;
  }

  .feature-card{
    border-right:0;
    border-bottom:1px solid #e5e7eb;
  }
}