:root{
  --bg:#0b0f19;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --text:#e9eefc;
  --muted: rgba(233,238,252,.72);
  --border: rgba(255,255,255,.10);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(116,122,255,.22), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(62,224,192,.16), transparent 55%),
    radial-gradient(900px 700px at 60% 90%, rgba(255,178,85,.12), transparent 50%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1160px, 92vw); margin:0 auto; }

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(11,15,25,.55);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:18px;
}
.brand{ display:flex; align-items:center; gap:12px; min-width:210px; }
.logo{
  width:36px; height:36px; border-radius:12px;
  background:
    radial-gradient(14px 14px at 30% 30%, rgba(255,255,255,.75), transparent 55%),
    linear-gradient(135deg, rgba(116,122,255,.95), rgba(62,224,192,.85));
  box-shadow: 0 10px 26px rgba(116,122,255,.22);
  border:1px solid rgba(255,255,255,.18);
}
.brand-name{ font-weight:800; letter-spacing:.2px; }

.nav{
  display:flex; align-items:center; gap:10px;
  padding:6px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}
.nav-link{
  border:0; background:transparent; color:var(--text);
  padding:10px 14px;
  border-radius: 999px;
  font-weight:650;
  cursor:pointer;
  white-space:nowrap;
}
.nav-link:hover{ background: rgba(255,255,255,.08); }
.nav-link.active{ background: rgba(255,255,255,.10); }
.btn-link{ font:inherit; }

.auth{
  display:flex; align-items:center; gap:10px;
  min-width:240px; justify-content:flex-end;
}
.btn{
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
}
.btn:hover{ background: rgba(255,255,255,.08); }
.btn.primary{
  border:1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(116,122,255,.95), rgba(62,224,192,.85));
  color:#07111c;
  box-shadow: 0 16px 34px rgba(62,224,192,.14);
}
.btn.primary:hover{ filter: brightness(1.03); }

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-weight:650;
  max-width: 240px;
}
.pill .dot{
  width:8px;height:8px;border-radius:50%;
  background: rgba(62,224,192,.9);
  box-shadow: 0 0 0 6px rgba(62,224,192,.12);
  flex:0 0 auto;
}
.pill span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Hero */
.hero{ padding: 28px 0 10px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:22px;
  align-items:stretch;
}
.panel{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-left{ padding: 26px; min-height: 320px; }
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  color: var(--muted);
  font-weight:700;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
}
.kicker b{ color:var(--text); }
h1{
  margin:16px 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.4px;
}
.sub{
  margin:0 0 18px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
  max-width: 54ch;
}
.search{
  display:flex; gap:10px;
  padding: 10px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.20);
}
.search input{
  width:100%;
  border:0;
  outline:none;
  background: transparent;
  color: var(--text);
  padding: 12px 12px;
  font-size: 15px;
}
.search input::placeholder{ color: rgba(233,238,252,.45); }
.search .btn.primary{ padding: 12px 14px; border-radius: 14px; font-weight:800; }
.hint{ margin-top:10px; color: rgba(233,238,252,.55); font-size: 12.8px; }

/* Hero art */
.hero-right{ min-height: 320px; }
.art{
  position:absolute; inset:0;
  background:
    radial-gradient(120px 120px at 24% 30%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(220px 180px at 72% 22%, rgba(116,122,255,.55), transparent 60%),
    radial-gradient(240px 210px at 70% 70%, rgba(62,224,192,.45), transparent 60%),
    radial-gradient(220px 190px at 22% 72%, rgba(255,178,85,.40), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.art::after{
  content:"";
  position:absolute; inset:-40px;
  background:
    conic-gradient(from 210deg at 55% 45%,
      rgba(116,122,255,.0) 0deg,
      rgba(116,122,255,.24) 80deg,
      rgba(62,224,192,.18) 160deg,
      rgba(255,178,85,.16) 240deg,
      rgba(116,122,255,.0) 360deg);
  filter: blur(28px);
  opacity:.9;
  z-index:-1;
}
.art-badge{
  position:absolute;
  left:18px; top:18px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(11,15,25,.55);
  backdrop-filter: blur(12px);
  font-weight:800;
  display:flex; align-items:center; gap:10px;
}
.art-title{ font-weight:900; }
.art-badge small{ display:block; font-weight:700; color:var(--muted); }

.float-stack{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
}
.float{
  position:absolute;
  width:min(320px, 75%);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  overflow:hidden;
  animation: floaty 5.6s ease-in-out infinite;
}
.float.one{ transform: translate(-60px, 6px) rotate(-6deg); animation-delay:.0s; }
.float.two{ transform: translate(36px, -44px) rotate(7deg); animation-delay:.7s; }
.float.three{ transform: translate(30px, 58px) rotate(-2deg); animation-delay:1.2s; }

.float-bar{
  height: 42px;
  display:flex; align-items:center; gap:8px;
  padding: 10px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.float-label{ font-weight:900; opacity:.9; margin-left:6px; }
.chip{ width:10px;height:10px;border-radius:50%; background: rgba(255,255,255,.22); }
.chip.c1{ background: rgba(116,122,255,.8); }
.chip.c2{ background: rgba(62,224,192,.8); }
.chip.c3{ background: rgba(255,178,85,.8); }

.float-body{ padding: 12px; }
.line{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  margin: 10px 0;
}
.line.w1{ width: 78%; }
.line.w2{ width: 62%; }
.line.w3{ width: 86%; }

@keyframes floaty{
  0%,100%{ filter: none; }
  50%{ filter: drop-shadow(0 24px 40px rgba(0,0,0,.25)); }
}

/* Main content */
.main{ padding: 18px 0 40px; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px; margin: 16px 0 14px;
}
.section-head h2{
  margin:0;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.section-head p{
  margin:0;
  color: var(--muted);
  font-size: 13.5px;
}
.section-head .meta{
  color: var(--muted);
  font-size: 13px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding:8px 12px;
  border-radius: 999px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}
.thumb{
  height: 120px;
  background:
    radial-gradient(220px 160px at 30% 20%, rgba(116,122,255,.45), transparent 60%),
    radial-gradient(260px 160px at 80% 40%, rgba(62,224,192,.35), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-bottom:1px solid rgba(255,255,255,.10);
  position:relative;
}
.badge{
  position:absolute;
  left:12px; top:12px;
  padding:7px 10px;
  font-size: 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(11,15,25,.45);
  backdrop-filter: blur(10px);
  color: rgba(233,238,252,.9);
  font-weight:900;
}
.card-body{ padding: 14px; }
.title{
  margin: 2px 0 8px;
  font-weight: 900;
  letter-spacing: -0.2px;
}
.meta-row{
  display:flex; gap:10px; flex-wrap:wrap;
  color: var(--muted);
  font-size: 12.8px;
  margin-bottom: 12px;
}
.meta-row span{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.card-actions{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.smallbtn{
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-weight:900;
  cursor:pointer;
}
.smallbtn:hover{ background: rgba(255,255,255,.07); }
.price{ font-weight:900; color: rgba(233,238,252,.95); }

.empty{
  border:1px dashed rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  text-align:center;
  background: rgba(255,255,255,.03);
  margin-top: 14px;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .brand{ min-width:auto; }
  .auth{ min-width:auto; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .nav{ display:none; }
  .grid{ grid-template-columns: 1fr; }
  .hero-left{ padding:18px; }
  .search{ flex-direction:column; }
  .search .btn.primary{ width:100%; }
  .float.one{ transform: translate(-20px, 20px) rotate(-6deg); }
  .float.two{ transform: translate(20px, -30px) rotate(7deg); }
  .float.three{ transform: translate(18px, 56px) rotate(-2deg); }
}


/* Cart link in header */
.cart-link{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  text-decoration:none;
  color:inherit;
  font-weight:600;
}
.cart-link:hover{ background:#fafafa; }
.cart-badge{
  min-width:22px;
  height:22px;
  padding:0 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:12px;
  line-height:1;
}
