/* Homepage/store components — ported from references/stream-swag-store-v2.html,
   split into our token system. The reference's SVG Lab modal isn't here yet;
   it becomes editor.html's own page, reusing the same reference for its styling. */

.shell {
  max-width: 1500px;
  margin: auto;
  padding: 18px 24px 45px;
}

/* ---- Nav ---- */

.nav {
  border: 1px solid var(--line);
  background: var(--panel-gradient);
  box-shadow: var(--shadow-panel), var(--sheen);
  height: 70px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  padding: 0 14px 0 18px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 160px;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.navlinks {
  display: flex;
  gap: 4px;
  flex: 1;
}

.navlinks a {
  padding: 11px 13px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.navlinks a.active {
  color: #fff;
  box-shadow: inset 0 -2px var(--pink);
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wallet, .login {
  height: 42px;
  border: 1px solid #29292c;
  border-radius: 13px;
  background: var(--surface-1);
  color: #fff;
}

.wallet {
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 850;
}

.coin {
  height: 26px;
  width: auto;
}

.login {
  padding: 0 16px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
}

/* ---- Layout ---- */

.layout {
  display: grid;
  grid-template-columns: 185px 1fr 250px;
  gap: 18px;
  margin-top: 18px;
}

.sidebar, .rightbar {
  border: 1px solid var(--line-soft);
  border-radius: 21px;
  background: linear-gradient(180deg, #0d0d0e, #080809);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), var(--sheen);
  height: max-content;
}

.sidebar {
  padding: 14px;
  min-height: 690px;
}

.section-title {
  padding: 8px 7px 10px;
  color: var(--muted-2);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 900;
}

.side {
  display: block;
  width: 100%;
  height: 47px;
  border: 0;
  background: transparent;
  color: #8d8d92;
  border-radius: 12px;
  text-align: left;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 47px;
}

.side.active {
  background: rgba(255, 47, 145, 0.05);
  color: #fff;
  box-shadow: inset 2px 0 var(--pink);
}

.status {
  margin-top: 250px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-1);
  font-size: 9px;
  color: #777;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  margin-right: 7px;
}

.status b {
  display: block;
  color: #ddd;
  margin-top: 8px;
}

/* ---- Hero ---- */

.hero {
  height: 270px;
  border: 1px solid #29292c;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 80% 55%, rgba(255, 47, 145, 0.09), transparent 28%),
    linear-gradient(90deg, #09090a, #0b080a);
  box-shadow: var(--sheen), var(--shadow-panel);
}

.hero::after {
  content: "";
  position: absolute;
  right: 7%;
  top: 25px;
  width: 43%;
  height: 220px;
  border: 1px solid rgba(255, 47, 145, 0.21);
  border-radius: 40px 40px 80px 80px;
  box-shadow: inset 0 0 50px rgba(255, 47, 145, 0.03), 0 0 60px rgba(255, 47, 145, 0.06);
  transform: perspective(500px) rotateY(-12deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 42px 46px;
}

.eyebrow {
  font-size: 10px;
  color: var(--pink-2);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 44px;
  line-height: 0.98;
  letter-spacing: -2.5px;
  margin: 13px 0 14px;
  font-weight: 900;
}

.hero p {
  margin: 0;
  color: #85858a;
  line-height: 1.55;
  font-size: 13px;
  max-width: 490px;
}

.cta, .pinkbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 109, 180, 0.27);
  border-radius: 10px;
  background: var(--pink-gradient-btn);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(255, 47, 145, 0.13);
}

.cta {
  height: 40px;
  padding: 0 17px;
  margin-top: 22px;
}

/* ---- Main / product toolbar ---- */

.panel {
  border: 1px solid var(--line);
  background: var(--panel-gradient);
  box-shadow: var(--shadow-panel), var(--sheen);
}

.main {
  padding: 13px;
  border-radius: var(--radius-lg);
  margin-top: 18px;
}

.toolbar {
  display: flex;
  gap: 7px;
  margin-bottom: 13px;
}

.search {
  flex: 1;
  height: 40px;
  border: 1px solid #29292c;
  border-radius: 11px;
  background: var(--surface-1);
  color: #ddd;
  padding: 0 13px;
  outline: 0;
  font-size: 11px;
}

.filter {
  height: 40px;
  border: 1px solid #28282b;
  background: #0b0b0c;
  color: #85858b;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 10px;
  font-weight: 850;
}

.filter.active {
  border-color: rgba(255, 47, 145, 0.33);
  color: #fff;
  background: rgba(255, 47, 145, 0.05);
}

/* ---- Product cards ---- */

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.card {
  border: 1px solid #242427;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #111112, #09090a);
  overflow: hidden;
  box-shadow: var(--sheen);
}

.art {
  height: 180px;
  background: radial-gradient(circle, #1c1c20, #09090a 70%);
  display: grid;
  place-items: center;
  position: relative;
}

.asset {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  border: 1px solid rgba(255, 127, 192, 0.33);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.8), inset 0 1px rgba(255, 255, 255, 0.2);
}

.a1 { background: var(--pink-gradient); transform: rotate(-5deg); }
.a2 { background: radial-gradient(circle at 35% 30%, #ffb5dc, #ff2f91 38%, #68103b); border-radius: 50%; }
.a3 { background: linear-gradient(145deg, #29292e, #09090a); border-color: rgba(255, 255, 255, 0.13); }
.a4 { background: linear-gradient(145deg, #ffb5d9, #e51e83); transform: rotate(4deg); }

.tag {
  position: absolute;
  left: 9px;
  top: 9px;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(5, 5, 5, 0.8);
  border: 1px solid rgba(255, 47, 145, 0.38);
  color: #ff7fbd;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.info {
  padding: 11px;
}

.top {
  display: flex;
  justify-content: space-between;
}

.title {
  font-size: 12px;
  font-weight: 850;
}

.type {
  font-size: 8px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 900;
}

.desc {
  font-size: 9px;
  color: #777;
  line-height: 1.45;
  margin: 6px 0 10px;
  height: 27px;
}

.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 11px;
  font-weight: 900;
}

.price i {
  font-style: normal;
  color: var(--pink);
}

.buy {
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 85, 159, 0.27);
  background: rgba(255, 47, 145, 0.07);
  color: #ff7cbd;
  padding: 0 9px;
  font-size: 9px;
  font-weight: 900;
}

.buy:hover {
  background: var(--pink-gradient-btn);
  color: #fff;
}

/* ---- Right sidebar ---- */

.rightbar {
  padding: 14px;
}

.rtitle {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted-2);
  font-weight: 900;
  margin: 7px 4px 11px;
}

.swag {
  border: 1px solid #2a2a2d;
  border-radius: var(--radius-md);
  padding: 15px;
  background: var(--surface-1);
  margin-bottom: 11px;
}

.balance {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bigcoin {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(255, 47, 145, 0.35));
}

.balance strong {
  font-size: 25px;
}

.balance small {
  display: block;
  color: var(--pink-2);
  font-size: 8px;
  text-transform: uppercase;
}

.pinkbtn {
  width: 100%;
  height: 36px;
  margin-top: 13px;
  border: 1px solid rgba(255, 109, 180, 0.27);
}

.lab {
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.lab-eyebrow {
  color: var(--pink);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

.lab h3 {
  font-size: 20px;
  line-height: 1;
  margin: 8px 0;
  font-weight: 900;
}

.lab p {
  font-size: 9px;
  color: #777;
  line-height: 1.5;
  max-width: 145px;
  margin: 0;
}

.lab-art {
  position: absolute;
  right: -25px;
  top: 25px;
  width: 105px;
  height: 130px;
  border: 1px solid rgba(255, 47, 145, 0.25);
  border-radius: 50%;
  transform: rotate(20deg);
  box-shadow: 0 0 50px rgba(255, 47, 145, 0.13);
}

.seller {
  display: grid;
  grid-template-columns: 20px 32px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 9px;
}

.seller:last-child {
  border-bottom: 0;
}

.thumb {
  width: 32px;
  height: 27px;
  border-radius: 5px;
  background: linear-gradient(145deg, #ff5cae, #151518);
  border: 1px solid rgba(255, 47, 145, 0.25);
}

/* ---- Features / footer ---- */

.features {
  margin-top: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: #0b0b0c;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

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

.fi {
  font-size: 20px;
  color: var(--pink);
}

.feature b {
  font-size: 10px;
}

.feature span {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
  margin-top: 3px;
}

.footer {
  margin-top: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 18px 25px;
  background: #0b0b0c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer h2 {
  font-size: 18px;
  margin: 0 0 3px;
  font-weight: 900;
}

.footer p {
  font-size: 9px;
  color: #737378;
  margin: 0;
}

/* ---- Toast ---- */

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #151516;
  border: 1px solid #2c2c30;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  transition: 0.2s;
  z-index: 30;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- Responsive ---- */

@media (max-width: 1100px) {
  .layout { grid-template-columns: 160px 1fr; }
  .rightbar { display: none; }
  .products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .navlinks { display: none; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .shell { padding: 10px; }
  .products, .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}
