:root{
  --bg:#0b0f14;
  --card:#111826;
  --muted:#8ea0b5;
  --text:#eef3fb;
  --accent:#7a1530;
  --line:rgba(255,255,255,.08);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(122,21,48,.45), transparent 60%),
    radial-gradient(800px 400px at 90% 10%, rgba(255,255,255,.06), transparent 60%),
    var(--bg);
  color:var(--text);
}

.container{max-width:1100px;margin:0 auto;padding:28px}

.header{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-radius:16px;
  padding:20px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
}
.header h1{margin:0;font-size:28px;letter-spacing:.3px}
.header p{margin:6px 0 0;color:var(--muted)}

.search{display:flex;gap:10px;align-items:center;min-width:280px}
.search input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  color:var(--text);
}

.topbar{
  margin-top:14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.tabs{display:flex;gap:10px}

.tabbtn{
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
}
.tabbtn.active{
  outline:2px solid rgba(122,21,48,.6);
  border-color: rgba(122,21,48,.6);
}

.btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(122,21,48,.6);
  background: linear-gradient(180deg, rgba(122,21,48,.95), rgba(122,21,48,.7));
  color:#fff;
  cursor:pointer;
}
.btn.secondary{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.panel{margin-top:14px}

.card{
  border:1px solid var(--line);
  background: rgba(17,24,38,.55);
  border-radius:16px;
  padding:16px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.field label{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin:2px 0 6px;
}
.field input,
.field textarea,
.field select{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  color:var(--text);
}
.field textarea{min-height:110px;resize:vertical}

.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.notice{color:var(--muted);font-size:13px;margin-top:8px}

.products{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}

.prod{
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.prod .img{
  width:100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,.05);
  display:flex;
  align-items:center;
  justify-content:center;
}
.prod img{width:100%;height:100%;object-fit:cover;display:block}
.prod .body{padding:12px;display:flex;flex-direction:column;gap:6px}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
}
.price{font-weight:700}
.small{font-size:12px;color:var(--muted)}

@media (max-width: 980px){
  .products{grid-template-columns: repeat(2, 1fr);}
  .grid{grid-template-columns:1fr}
  .search{min-width:0;width:100%}
  .header{flex-direction:column;align-items:stretch}
}
@media (max-width: 560px){
  .products{grid-template-columns: 1fr;}
}

.loginwrap{max-width:520px;margin:10vh auto;padding:0 18px}
