:root{
  --bg:#0b0c0f; --panel:rgba(255,255,255,.06); --stroke:rgba(255,255,255,.12);
  --text:rgba(255,255,255,.92); --muted:rgba(255,255,255,.70);
  --brand:#7c5cff; --brand2:#2dd4bf; --shadow:0 18px 55px rgba(0,0,0,.42);
  --r:18px; --r2:26px; --max:1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
html[data-theme="light"]{
  --bg:#f7f7fb; --panel:rgba(15,23,42,.06); --stroke:rgba(15,23,42,.14);
  --text:rgba(15,23,42,.92); --muted:rgba(15,23,42,.70);
  --shadow:0 16px 44px rgba(2,6,23,.10);
}
*{box-sizing:border-box}
body{
  margin:0; font-family:var(--font); color:var(--text); line-height:1.55; overflow-x:hidden;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(124,92,255,.20), transparent 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(45,212,191,.16), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(255,255,255,.08), transparent 60%),
    var(--bg);
}
a{color:inherit; text-decoration:none}
.wrap{width:min(var(--max), calc(100% - 40px)); margin:0 auto}
.topbar{position:sticky; top:0; z-index:40; backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(11,12,15,.78), rgba(11,12,15,.35));
  border-bottom:1px solid rgba(255,255,255,.08);}
html[data-theme="light"] .topbar{
  background: linear-gradient(to bottom, rgba(247,247,251,.85), rgba(247,247,251,.55));
  border-bottom:1px solid rgba(15,23,42,.10);
}
.topbar .row{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0}
.brand{display:flex; align-items:center; gap:10px; font-weight:900}
.logo{width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 12px 30px rgba(124,92,255,.25); border:1px solid rgba(255,255,255,.18);}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:12px 14px;
  border-radius:999px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06);
  font-weight:900; cursor:pointer;}
html[data-theme="light"] .btn{border:1px solid rgba(15,23,42,.14); background:rgba(15,23,42,.06)}
.btn.primary{background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(45,212,191,.80));
  border-color: rgba(255,255,255,.22); box-shadow: 0 18px 45px rgba(124,92,255,.25);}
.card{background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12); border-radius:var(--r2); box-shadow:var(--shadow); overflow:hidden;}
html[data-theme="light"] .card{background:linear-gradient(180deg, rgba(15,23,42,.06), rgba(15,23,42,.04));
  border:1px solid rgba(15,23,42,.12);}
section{padding:34px 0}
h1{margin:14px 0 10px; font-size:clamp(30px, 3.6vw, 48px); line-height:1.1}
.sub{margin:0 0 18px; color:var(--muted); font-size:16px; max-width:68ch}
.products{display:grid; grid-template-columns:repeat(3, 1fr); gap:12px}
.p-card{border-radius:var(--r2); border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04)); overflow:hidden;
  box-shadow:0 14px 38px rgba(0,0,0,.35); display:flex; flex-direction:column; min-height:320px;}
html[data-theme="light"] .p-card{border:1px solid rgba(15,23,42,.12);
  background:linear-gradient(180deg, rgba(15,23,42,.06), rgba(15,23,42,.04));}
.p-img{height:170px; border-bottom:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.04)}
.p-img img{width:100%; height:100%; object-fit:cover; display:block}
.p-body{padding:14px; display:flex; flex-direction:column; gap:10px; flex:1}
.p-title{font-weight:950}
.p-desc{color:var(--muted); font-size:14px; margin-top:-4px}
.p-row{display:flex; align-items:center; justify-content:space-between; gap:10px}
.price{font-weight:950; font-size:18px}
.small{color:rgba(255,255,255,.62); font-size:12px; font-weight:900}
html[data-theme="light"] .small{color:rgba(15,23,42,.62)}
.grid-2{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
label{display:block; font-size:12px; color:rgba(255,255,255,.68); font-weight:950; margin:12px 0 6px}
html[data-theme="light"] label{color:rgba(15,23,42,.68)}
input, select, textarea{width:100%; padding:12px; border-radius:14px; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05); color:var(--text); outline:none; font-weight:800;}
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea{
  border:1px solid rgba(15,23,42,.12); background:rgba(15,23,42,.05);}
textarea{min-height:92px; resize:vertical}
.sumline{display:flex; justify-content:space-between; align-items:center; padding:12px; border-radius:16px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10);}
html[data-theme="light"] .sumline{background:rgba(15,23,42,.05); border:1px solid rgba(15,23,42,.10)}
.divider{height:1px; background:rgba(255,255,255,.10); margin:10px 0}
html[data-theme="light"] .divider{background:rgba(15,23,42,.10)}
footer{padding:30px 0 70px; color:rgba(255,255,255,.65); font-size:13px; border-top:1px solid rgba(255,255,255,.08); margin-top:20px}
html[data-theme="light"] footer{color:rgba(15,23,42,.65); border-top:1px solid rgba(15,23,42,.10)}
@media (max-width:980px){
  .products{grid-template-columns:repeat(2, 1fr)}
  .grid-2{grid-template-columns:1fr}
  .topbar .row{flex-wrap:wrap}
  .nav-actions{width:100%; justify-content:flex-end}
}
@media (max-width:640px){
  .products{grid-template-columns:1fr}
  .nav-toggle{display:inline-flex}
  .nav-actions{display:none}
  .nav-actions.is-open{display:flex; width:100%; flex-direction:column; align-items:stretch}
  .nav-actions .btn{width:100%}
}
/* --- UI polish (v2) --- */
.topbar .row{position:relative}
.nav-toggle{display:none; width:44px; height:44px; padding:0; border-radius:14px}
.icon{width:18px; height:18px; display:inline-block}
.nav-actions{display:flex; gap:10px; align-items:center}
.p-card{transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease}
.p-card:hover{transform: translateY(-3px); box-shadow:0 20px 55px rgba(0,0,0,.45); border-color:rgba(124,92,255,.35)}
.btn{transition: transform .12s ease, filter .12s ease, background .12s ease, border-color .12s ease}
.btn:hover{transform: translateY(-1px); filter:brightness(1.06)}
.btn:active{transform: translateY(0px); filter:brightness(.98)}
.hero-card{padding:26px; position:relative; overflow:hidden}
.hero-card:before{
  content:""; position:absolute; inset:-2px;
  background: radial-gradient(800px 260px at 16% 18%, rgba(124,92,255,.28), transparent 60%),
              radial-gradient(700px 260px at 85% 35%, rgba(45,212,191,.20), transparent 60%);
  pointer-events:none;
}
.hero-card > *{position:relative}
.badge{display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06); font-weight:950; font-size:12px; color:var(--muted)}
html[data-theme="light"] .badge{border:1px solid rgba(15,23,42,.14); background:rgba(15,23,42,.06)}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap}
.hero-note{margin-top:12px; color:var(--muted); font-size:13px; font-weight:900}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:0 0 12px}
.section-head h2{margin:0}
.section-head .hint{color:var(--muted); font-weight:900; font-size:13px}
