:root {
  --bg: #07060f;
  --ink: #f6f2ff;
  --muted: #b7a9d4;
  --line: rgba(180, 90, 255, 0.35);
  --purple: #b44dff;
  --pink: #ff3dcf;
  --cyan: #3ee0ff;
  --card: rgba(16, 12, 32, 0.78);
  --danger: #ff5d7a;
  --ok: #3dffb0;
  --shadow: 0 20px 60px rgba(80, 0, 160, 0.28);
  font-family: Manrope, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body { overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cyan); }
#bg, #vapes, #sparks { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#bg { background:
  radial-gradient(900px 500px at 10% -10%, rgba(180, 77, 255, 0.35), transparent 60%),
  radial-gradient(700px 480px at 110% 10%, rgba(62, 224, 255, 0.18), transparent 55%),
  linear-gradient(180deg, #12091f 0%, #07060f 40%, #090714 100%);
}
#vapes span {
  position: absolute; width: 46px; height: 92px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,16,32,.2), rgba(20,16,32,.55));
  border: 1px solid rgba(180, 77, 255, 0.45);
  box-shadow: 0 0 24px rgba(180, 77, 255, 0.35), inset 0 0 18px rgba(62, 224, 255, 0.25);
  animation: float 14s linear infinite;
  opacity: .55;
}
#vapes span:before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 34px; border-radius: 8px;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  filter: blur(.2px); opacity: .8;
}
@keyframes float {
  0% { transform: translateY(110vh) rotate(-8deg); }
  100% { transform: translateY(-20vh) rotate(12deg); }
}
.shell, .gate, .admin-app { position: relative; z-index: 1; }
.gate {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 22px;
  background: rgba(5, 4, 12, 0.72); backdrop-filter: blur(8px);
}
.panel {
  width: min(460px, 100%);
  background: linear-gradient(180deg, rgba(28, 16, 48, 0.92), rgba(10, 8, 20, 0.92));
  border: 1px solid var(--line); border-radius: 28px; padding: 22px;
  box-shadow: var(--shadow);
}
.brand-lockup { display: flex; gap: 14px; align-items: center; }
.brand-lockup img { width: 92px; height: 92px; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); }
h1, h2, h3 { font-family: Unbounded, sans-serif; margin: 0; letter-spacing: -0.04em; }
.sub { color: var(--muted); margin: 6px 0 0; }
label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  padding: 12px 14px; outline: none;
}
textarea { min-height: 90px; resize: vertical; }
.btn, .ghost, .danger {
  border: 0; border-radius: 16px; padding: 13px 16px; font-weight: 700;
}
.btn {
  background: linear-gradient(90deg, #7a2bff, #d13cff 55%, #3ee0ff);
  color: white; box-shadow: 0 10px 30px rgba(160, 60, 255, 0.35);
}
.ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.danger { background: rgba(255, 93, 122, .15); color: #ffd0d8; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.shell { max-width: 860px; margin: 0 auto; padding: 16px 14px 108px; }
.hero {
  display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: center;
  padding: 10px; border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(122, 43, 255, .25), rgba(62, 224, 255, .08));
  box-shadow: var(--shadow);
}
.hero img { width: 100%; height: 148px; object-fit: cover; border-radius: 22px; }
.kicker { color: var(--cyan); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.tabs { display: flex; gap: 8px; overflow: auto; margin: 16px 0; padding-bottom: 4px; }
.tabs button, .chip {
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink);
  border-radius: 999px; padding: 8px 12px; white-space: nowrap;
}
.tabs button.active, .chip.active { background: linear-gradient(90deg, #7a2bff, #d13cff); border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.card .photo, .ph {
  height: 150px; background:
    radial-gradient(circle at 30% 20%, rgba(62,224,255,.45), transparent 40%),
    linear-gradient(160deg, #2a1450, #12091f 60%, #091824);
  display: grid; place-items: center; font-size: 42px;
}
.card .photo { width: 100%; object-fit: cover; display: block; }
.card .body, .pad { padding: 14px; }
.price { font-family: Unbounded, sans-serif; color: white; }
.muted { color: var(--muted); }
.stock-ok { color: var(--ok); }
.stock-no { color: var(--danger); }
.nav {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: min(640px, calc(100% - 18px));
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  padding: 8px; border-radius: 22px; border: 1px solid var(--line);
  background: rgba(10, 8, 20, 0.88); backdrop-filter: blur(16px); z-index: 5;
}
.nav button { border: 0; background: transparent; color: var(--muted); border-radius: 14px; padding: 8px 4px; font-size: 11px; }
.nav button.active { color: white; background: linear-gradient(180deg, rgba(180,77,255,.45), rgba(62,224,255,.12)); }
.hidden { display: none !important; }
.list { display: flex; flex-direction: column; gap: 10px; }
.line { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.05); }
.check { display: flex; gap: 8px; align-items: center; margin: 10px 0; color: var(--muted); }
.toast {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  background: #1a102c; border: 1px solid var(--line); padding: 12px 16px; border-radius: 14px; z-index: 9;
}
.admin-app { max-width: 1180px; margin: 0 auto; padding: 18px; display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.side { position: sticky; top: 12px; align-self: start; }
.side button { width: 100%; text-align: left; margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.stat b { display: block; font-family: Unbounded, sans-serif; font-size: 22px; margin-top: 6px; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { height: 180px; }
  .admin-app { grid-template-columns: 1fr; }
  .side { position: static; }
}
