:root {
  --bg: #0b0b10;
  --card: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --line: rgba(255, 255, 255, 0.12);

  --g1: #ff7a00;
  --g2: #ff2d55;
  --g3: #6a00ff;

  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family:
    Poppins,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
}
body {
  color: var(--text);
  background:
    radial-gradient(
      1100px 600px at 18% 12%,
      rgba(255, 45, 85, 0.26),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 80% 18%,
      rgba(106, 0, 255, 0.22),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 40% 85%,
      rgba(255, 122, 0, 0.2),
      transparent 60%
    ),
    linear-gradient(180deg, #07070b 0%, #0b0b10 70%, #07070b 100%);
  overflow-x: hidden;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  box-shadow: 0 8px 20px rgba(255, 45, 85, 0.25);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 16, 0.55);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  height: auto;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}
@media (max-width: 480px) {
  .brand-logo {
    height: 30px;
  }
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
}
.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  box-shadow: 0 0 0 5px rgba(255, 45, 85, 0.15);
}

.hero {
  padding: 34px 0 10px;
}
.hero-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.12);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.2;
  }
  50% {
    transform: scale(1);
    opacity: 0.45;
  }
  100% {
    transform: scale(0.6);
    opacity: 0.2;
  }
}

.hero-title {
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.08;
  margin: 14px 0 10px;
}
.grad {
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 58ch;
}

.hero-search {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}
.searchbox input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 14px;
}
.iconbtn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.iconbtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.sort-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.select {
  appearance: none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.mini-stats {
  color: var(--muted);
  font-size: 13px;
}

.hero-cta {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease;
  user-select: none;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  border: 0;
  color: white;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  box-shadow: 0 22px 80px rgba(255, 45, 85, 0.22);
}
.btn.primary .btn-glow {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  filter: blur(16px);
  opacity: 0.35;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  z-index: -1;
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.hero-right {
  position: relative;
  min-height: 240px;
}
.hero-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-card-top {
  padding: 18px 18px 12px;
  position: relative;
}
.shine {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.35),
    transparent 60%
  );
  transform: rotate(20deg);
}
.kicker {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.big {
  font-size: 28px;
  font-weight: 800;
  margin-top: 6px;
}
.hero-card-body {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 18px 18px;
}
.pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.floating-orb {
  position: absolute;
  border-radius: 999px;
  opacity: 0.9;
  animation: floaty 5s ease-in-out infinite;
}
.orb1 {
  width: 110px;
  height: 110px;
  left: -22px;
  bottom: -24px;
  background: rgba(255, 122, 0, 0.22);
}
.orb2 {
  width: 160px;
  height: 160px;
  right: -42px;
  top: 18px;
  background: rgba(106, 0, 255, 0.18);
  animation-duration: 6.2s;
}
.orb3 {
  width: 80px;
  height: 80px;
  right: 42px;
  bottom: -22px;
  background: rgba(255, 45, 85, 0.18);
  animation-duration: 4.4s;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.chips-wrap {
  padding: 12px 0 4px;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip2 {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.chip2:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
}
.chip2.active {
  border: 0;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  color: white;
}

.grid-section {
  padding: 14px 0 26px;
}
.grid-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  margin: 0;
  font-size: 22px;
}
.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1060px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 780px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 440px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.22);
  transform: translateZ(0);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}
.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}
.card:hover .card-media img {
  transform: scale(1.08);
}

.badges {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  box-shadow: 0 18px 50px rgba(255, 45, 85, 0.18);
}
.badge.alt {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-body {
  padding: 12px 12px 14px;
}
.card-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  min-height: 36px;
}
.card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.price {
  font-size: 16px;
  font-weight: 900;
}
.old-price {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  font-size: 12px;
}
.discount {
  color: #ffd166;
  font-weight: 900;
  font-size: 12px;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.buy {
  flex: 1;
  border: 0;
  color: white;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}
.buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.empty-state {
  margin-top: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}
.empty-emoji {
  font-size: 28px;
}
.empty-title {
  font-weight: 900;
  margin-top: 6px;
}
.empty-sub {
  color: var(--muted);
  margin-top: 6px;
}

.how {
  padding: 6px 0 24px;
}
.how-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
}
.how-card h3 {
  margin: 0 0 10px;
}
.how-card ol {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--muted);
}
.disclosure {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  margin: 0;
}

.footer {
  padding: 20px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-brand {
  font-weight: 900;
}
.footer-sub {
  color: var(--muted);
  font-size: 12px;
}
.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.footer-link:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1200;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100%;
  background: rgba(12, 12, 18, 0.92);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--line);
  z-index: 1300;
  transform: translateX(110%);
  transition: transform 0.28s ease;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
}
.drawer-title {
  font-weight: 900;
}
.drawer-body {
  padding: 14px;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}
.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.range-sep {
  color: var(--muted);
}
.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
}
.tag-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.toggle {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
}
.toggle.active {
  border: 0;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  color: white;
}
.drawer-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
