:root{
  --bg:#0b0f19;
  --card:#0f172a;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --line:rgba(255,255,255,.10);
  --accent:#7c3aed;
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,Segoe UI,Arial;background:linear-gradient(180deg,#070a12,#0b0f19);color:var(--text)}
a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:18px}
.topbar{position:sticky;top:0;background:rgba(11,15,25,.75);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);z-index:50}
.topbar-row{display:flex;justify-content:space-between;align-items:center}
.logo{font-weight:900;letter-spacing:.3px}
.nav a{margin-left:14px;color:var(--muted)}
.nav a:hover{color:var(--text)}
.footer{border-top:1px solid var(--line);margin-top:30px;color:var(--muted)}

h1{margin:14px 0 16px}
h2{margin:18px 0 12px}

.card{background:rgba(15,23,42,.85);border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:1000px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:740px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.grid{grid-template-columns:1fr}}

.product .thumb{height:160px;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.03);display:flex;align-items:center;justify-content:center}
.product .thumb img{width:100%;height:100%;object-fit:cover}
.ph{color:var(--muted);font-size:14px}
.p-title{margin-top:10px;font-weight:700;line-height:1.2}
.p-price{margin-top:6px;color:#c7d2fe;font-weight:800}
.p-price.big{font-size:22px}
.small{color:var(--muted);font-size:13px}
.back{display:inline-block;color:var(--muted);margin-bottom:10px}

.btn{display:inline-block;background:var(--accent);padding:10px 14px;border-radius:14px;font-weight:800;border:none;cursor:pointer}
.btn:hover{filter:brightness(1.05)}
.btn.ghost{background:transparent;border:1px solid var(--line);color:var(--text)}
.btn.sm{padding:8px 10px;border-radius:12px;font-weight:700}
.btn.danger{background:#ef4444}

.row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.row-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.badge{display:inline-block;border:1px solid var(--line);padding:6px 10px;border-radius:999px;color:#fda4af;background:rgba(253,164,175,.06);font-weight:700}

.form{display:grid;gap:10px}
.input{width:100%;padding:12px 12px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--text)}
textarea.input{resize:vertical}
.check{display:flex;align-items:center;gap:10px;color:var(--muted)}
.error{background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.25);padding:10px;border-radius:14px}

.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:10px;border-bottom:1px solid var(--line);text-align:left}
.table .right{text-align:right}

/* Sale block (home) */
.sale{display:flex;gap:14px;align-items:stretch}
.sale-left{flex:1}
.sale-right{width:320px}
.sale-right img{width:100%;height:100%;object-fit:cover;border-radius:14px}
@media(max-width:800px){.sale{flex-direction:column}.sale-right{width:100%;height:220px}}

.prices{display:flex;gap:10px;align-items:baseline;margin:10px 0}
.prices .old{color:var(--muted);text-decoration:line-through}
.prices .new{font-size:26px;font-weight:950}
.prices .disc{color:#fda4af;font-weight:900}

/* Product page */
.product-page{display:grid;grid-template-columns:420px 1fr;gap:14px}
@media(max-width:900px){.product-page{grid-template-columns:1fr}}

.pp-img{
  background:rgba(255,255,255,.03);
  border-radius:14px;
  min-height:260px;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden
}
.pp-img img{width:100%;height:100%;object-fit:cover;border-radius:14px}
.pp-title{margin:0 0 10px}

.desc{color:var(--muted);line-height:1.5}
.stock{margin-top:8px;color:var(--muted)}

.pp-badges{display:flex;gap:8px;flex-wrap:wrap}

.pp-section .title{font-weight:900;margin-bottom:8px}

.pp-mini{display:grid;gap:8px;margin-top:10px}
.pp-mini-item{
  padding:10px 12px;border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  font-weight:700;color:var(--text)
}

/* Categories "pills" (scroll row) */
.cat-row{
  display:flex;
  gap:12px;
  flex-wrap:nowrap;
  overflow-x:auto;
  padding-bottom:6px;
  align-items:stretch
}
.cat-row::-webkit-scrollbar{height:8px}
.cat-row::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:999px}

.cat-pill{
  width:220px;
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120px 80px at 20% 50%, rgba(124,58,237,.25), transparent 60%),
    radial-gradient(180px 120px at 90% 30%, rgba(59,130,246,.20), transparent 55%),
    rgba(15,23,42,.75);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  transition:transform .15s ease, filter .15s ease;
}
.cat-pill:hover{transform:translateY(-1px);filter:brightness(1.05)}
.cat-pill-ico{
  width:44px;height:44px;
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
  display:flex;align-items:center;justify-content:center;
  flex:0 0 44px;
  border:1px solid rgba(255,255,255,.10);
}
.cat-pill-ico img{width:100%;height:100%;object-fit:cover}
.cat-pill-title{font-weight:900;font-size:15px;line-height:1.1}
.cat-pill-sub{margin-top:4px;color:var(--muted);font-size:13px}

/* Order details progress */
.order-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media(max-width:900px){.order-grid{grid-template-columns:1fr}}
.card.inner{padding:14px;border-radius:16px;background:rgba(255,255,255,.02)}

.progress-wrap{position:relative}
.progress-line{
  height:8px;border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
}
.progress-fill{
  height:100%;
  background:rgba(124,58,237,.9);
  border-radius:999px;
}
.progress-steps{
  display:flex;
  justify-content:space-between;
  margin-top:10px;
}
.step{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:60px}
.step .dot{
  width:14px;height:14px;border-radius:999px;
  border:2px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.06);
}
.step.done .dot{
  border-color:rgba(124,58,237,.9);
  background:rgba(124,58,237,.9);
  box-shadow:0 0 16px rgba(124,58,237,.45);
}
.step .lbl{font-size:12px;color:var(--muted);text-align:center}
.step.done .lbl{color:var(--text);font-weight:800}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:stretch;
  margin-bottom:18px;
}
@media(max-width:900px){.hero{grid-template-columns:1fr}}

.hero-left{
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(420px 220px at 25% 25%, rgba(124,58,237,.25), transparent 60%),
    radial-gradient(420px 260px at 90% 30%, rgba(59,130,246,.18), transparent 60%),
    rgba(15,23,42,.65);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.hero-badge{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  font-weight:800;
  color:var(--text);
}
.hero-title{
  margin:14px 0 8px;
  font-size:42px;
  line-height:1.05;
  font-weight:950;
}
.hero-title span{color:#c7d2fe}
@media(max-width:520px){.hero-title{font-size:34px}}

.hero-sub{color:var(--muted);line-height:1.5;margin-bottom:14px;max-width:620px}

.hero-search{
  display:flex;
  gap:10px;
  align-items:center;
  margin:12px 0 12px;
}
@media(max-width:520px){.hero-search{flex-direction:column;align-items:stretch}}
.hero-input{
  flex:1;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
.hero-input:focus{border-color:rgba(124,58,237,.55)}
.hero-btn{padding:12px 16px;border-radius:16px}

.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.hero-features{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}

.hero-right{
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(15,23,42,.55);
  overflow:hidden;
  position:relative;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.hero-art{
  height:100%;
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.hero-glow{
  position:absolute; inset:-40px;
  background:
    radial-gradient(260px 200px at 30% 50%, rgba(59,130,246,.35), transparent 60%),
    radial-gradient(320px 220px at 70% 40%, rgba(124,58,237,.40), transparent 60%),
    radial-gradient(280px 220px at 50% 80%, rgba(236,72,153,.25), transparent 60%);
  filter:blur(6px);
}
.hero-art-text{
  position:relative;
  font-weight:950;
  font-size:54px;
  letter-spacing:2px;
  color:rgba(255,255,255,.92);
  text-shadow:0 0 22px rgba(124,58,237,.35);
}
.hero-art-sub{
  position:absolute;
  bottom:14px;
  right:14px;
  font-weight:900;
  color:rgba(255,255,255,.65);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
  padding:8px 10px;
  border-radius:999px;
}

/* Floating Support Button (full styles) */
.support-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
}

.support-btn{
  width:56px;
  height:56px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(124,58,237,.95);
  color:#fff;
  font-size:22px;
  cursor:pointer;
  box-shadow:0 14px 40px rgba(0,0,0,.35);
}
.support-btn:hover{filter:brightness(1.05)}

.support-panel{
  position:absolute;
  right:0;
  bottom:68px;
  width:280px;

  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(15,23,42,.92);
  backdrop-filter:blur(10px);
  box-shadow:0 18px 50px rgba(0,0,0,.45);
  overflow:hidden;

  transform:translateY(10px);
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
}

.support-panel.open{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}

.support-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.support-title{
  font-weight:900;
  font-size:14px;
  margin:0;
}

.support-close{
  width:30px;
  height:30px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.85);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.support-close:hover{filter:brightness(1.05)}

.support-body{padding:12px}
.support-text{margin:0 0 10px 0;color:var(--muted)}
.support-link{display:block;width:100%;text-align:center;margin-top:8px}
