:root {
  --bg: #070a0d;
  --bg2: #08111d;
  --card: rgba(255, 255, 255, 0.04);
  --card2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eef5;
  --muted: rgba(232, 238, 245, 0.64);
  --muted2: rgba(232, 238, 245, 0.46);
  --accent: #2ea8ff;
  --accent2: #1968ff;
  --danger: #fb7185;
  --warning: #fbbf24;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --radius2: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% -10%, rgba(46, 168, 255, 0.14), transparent 55%),
    radial-gradient(1000px 600px at 90% 5%, rgba(25, 104, 255, 0.12), transparent 55%),
    radial-gradient(1100px 900px at 40% 120%, rgba(46, 168, 255, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid rgba(46, 168, 255, 0.55);
  outline-offset: 2px;
}

.shell {
  min-height: 100%;
  position: relative;
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 220px 220px, 260px 260px, 280px 280px;
  opacity: 0.65;
  pointer-events: none;
  mask-image: radial-gradient(900px 600px at 50% 20%, black, transparent 70%);
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.molecules-layer {
  position: fixed;
  top: 0;
  height: 100vh;
  width: clamp(210px, 24vw, 420px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.78;
  mix-blend-mode: screen;
}

.molecules-left {
  left: 0;
  mask-image: linear-gradient(90deg, black 0%, black 72%, transparent 100%);
}

.molecules-right {
  right: 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 28%, black 100%);
}

.molecules-layer.hidden {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(7, 10, 13, 0.75), rgba(7, 10, 13, 0.35));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 520px) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(46, 168, 255, 0.9), rgba(25, 104, 255, 0.25));
  box-shadow: 0 12px 30px rgba(46, 168, 255, 0.18);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(46, 168, 255, 0.18);
  border: 1px solid rgba(46, 168, 255, 0.35);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.badge svg {
  width: 11px;
  height: 11px;
  fill: var(--accent);
}

.search {
  position: relative;
}

.search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search input:focus {
  border-color: rgba(46, 168, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(46, 168, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.search input::placeholder {
  color: rgba(232, 238, 245, 0.45);
}

.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: rgba(232, 238, 245, 0.55);
}

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

.btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.9;
}

.btn-primary {
  background: linear-gradient(180deg, rgba(46, 168, 255, 0.95), rgba(25, 104, 255, 0.9));
  border: 1px solid rgba(46, 168, 255, 0.45);
  color: #eaf5ff;
  box-shadow: 0 14px 34px rgba(46, 168, 255, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary:hover {
  box-shadow: 0 18px 44px rgba(46, 168, 255, 0.28);
}

.main {
  padding: 26px 0 40px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 8px 0 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  isolation: isolate;
}

.grid::before,
.grid::after {
  content: "";
  position: absolute;
  inset: -16px;
  pointer-events: none;
  z-index: 0;
}

.grid::before {
  background:
    linear-gradient(120deg, transparent 30%, rgba(46, 168, 255, 0.18) 45%, transparent 60%),
    linear-gradient(300deg, transparent 35%, rgba(25, 104, 255, 0.14) 50%, transparent 65%);
  filter: blur(20px);
  animation: gridSweep 7.8s linear infinite;
}

.grid::after {
  background:
    radial-gradient(380px 90px at 18% 50%, rgba(46, 168, 255, 0.10), transparent 60%),
    radial-gradient(420px 100px at 85% 50%, rgba(25, 104, 255, 0.09), transparent 62%);
  animation: gridPulse 4.6s ease-in-out infinite alternate;
}

@keyframes gridSweep {
  0% {
    transform: translateX(-16px);
    opacity: 0.45;
  }
  100% {
    transform: translateX(16px);
    opacity: 0.8;
  }
}

@keyframes gridPulse {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.75;
  }
}

.card {
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  z-index: 1;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 168, 255, 0.26);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.52);
}

.thumb {
  aspect-ratio: 16 / 11;
  background-image: var(--thumb, none),
    radial-gradient(400px 220px at 30% 30%, rgba(46, 168, 255, 0.26), transparent 60%),
    radial-gradient(360px 240px at 70% 60%, rgba(25, 104, 255, 0.18), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  background-size: contain, auto, auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: center, center, center, center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  border-radius: 0;
}

.thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 45%);
  opacity: 0.35;
}

.card-body {
  padding: 12px 12px 12px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.title {
  font-weight: 700;
  font-size: 14px;
}

.price {
  font-size: 18px;
  font-weight: 800;
}

.sub {
  color: var(--muted2);
  font-size: 12px;
  margin-top: -8px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.pill svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: auto;
}

.btn-buy {
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 0;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 168, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: rgba(232, 238, 245, 0.82);
}

.panel {
  margin-top: 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.panel-head {
  padding: 16px 16px 0;
}

.panel-body {
  padding: 14px 16px 16px;
}

.marquee {
  overflow: hidden;
  padding-bottom: 8px;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee var(--marquee-duration, 24s) linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--marquee-distance, 600px)), 0, 0);
  }
}

.marquee::-webkit-scrollbar {
  height: 10px;
}

.marquee::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
}

.feedback {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px;
  display: grid;
  gap: 10px;
  min-height: 150px;
  min-width: 280px;
  max-width: 360px;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.feedback:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 168, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.stars {
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.quote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.who .dot {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(46, 168, 255, 0.26), rgba(25, 104, 255, 0.10));
  border: 1px solid rgba(46, 168, 255, 0.20);
  display: grid;
  place-items: center;
  color: rgba(232, 238, 245, 0.92);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(46, 168, 255, 0.10);
}

.who small {
  color: var(--muted2);
}

.footer {
  padding: 22px 0 40px;
  color: var(--muted2);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.kbd {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(232, 238, 245, 0.7);
  font-size: 11px;
}

.page {
  padding: 22px 0 46px;
}

.crumbs {
  color: var(--muted2);
  font-size: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.hero-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background-image: var(--hero, none),
    radial-gradient(500px 260px at 30% 30%, rgba(46, 168, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, center;
  background-size: contain, auto, auto;
  padding: 12px;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}


.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 12px;
}

.mini {
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-image: var(--mini, none);
  background-color: rgba(255, 255, 255, 0.03);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  padding: 0;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.mini:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 168, 255, 0.18);
}

.mini.active {
  border-color: rgba(46, 168, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(46, 168, 255, 0.10);
}

.buy-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.big {
  font-size: 22px;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(46, 168, 255, 0.28);
  background: rgba(46, 168, 255, 0.08);
  color: rgba(214, 255, 247, 0.92);
  font-weight: 700;
  font-size: 12px;
  width: fit-content;
}

.row {
  display: grid;
  gap: 8px;
}

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.input {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input:focus {
  border-color: rgba(46, 168, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(46, 168, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

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

.qty button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.qty input {
  width: 56px;
  text-align: center;
  padding: 10px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.pay {
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(46, 168, 255, 0.28);
  background: rgba(46, 168, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(232, 238, 245, 0.78);
}

.pay strong {
  color: rgba(232, 238, 245, 0.92);
}

.auth-shell {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 22px 0 46px;
}

.auth-card {
  width: min(520px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.14);
}

.tab {
  padding: 16px 16px;
  background: transparent;
  border: none;
  color: rgba(232, 238, 245, 0.75);
  font-weight: 800;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(232, 238, 245, 0.9);
}

.tab.active {
  color: var(--accent);
  position: relative;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.auth-body {
  padding: 18px 18px 22px;
  display: grid;
  gap: 14px;
}

.auth-body form {
  display: grid;
  gap: 14px;
}

.auth-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.2px;
  margin: 6px 0 0;
}

.auth-sub {
  margin: 0;
  color: var(--muted);
}

.hint {
  margin-top: 6px;
  color: rgba(232, 238, 245, 0.46);
  font-size: 12px;
}

.field-wrap {
  display: grid;
  gap: 8px;
}

.input-wrap {
  position: relative;
}

.input-wrap .input {
  padding-left: 44px;
}

.input-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: rgba(232, 238, 245, 0.62);
  pointer-events: none;
}

.input-act {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 238, 245, 0.86);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.input-act svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.input-wrap.has-action .input {
  padding-right: 52px;
}

.strength {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(232, 238, 245, 0.64);
  font-size: 12px;
}

.strength b {
  color: rgba(232, 238, 245, 0.86);
}

.strength .pill {
  padding: 5px 10px;
  font-size: 11px;
}

.strength .pill.weak {
  border-color: rgba(251, 113, 133, 0.35);
  color: rgba(255, 210, 219, 0.9);
}

.strength .pill.mid {
  border-color: rgba(251, 191, 36, 0.35);
  color: rgba(255, 238, 190, 0.9);
}

.strength .pill.strong {
  border-color: rgba(46, 168, 255, 0.35);
  color: rgba(214, 255, 247, 0.92);
}

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-top: 8px;
}

.label svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.link {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.auth-footer {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active {
  -webkit-text-fill-color: rgba(232, 238, 245, 0.92);
  caret-color: rgba(232, 238, 245, 0.92);
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.04) inset;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.hidden {
  display: none !important;
}

.mini-pop {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 60;
}

.mini-trigger {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(46, 168, 255, 0.95), rgba(25, 104, 255, 0.88));
  color: #eaf5ff;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(46, 168, 255, 0.18);
}

.mini-box {
  position: absolute;
  right: 0;
  bottom: 46px;
  width: min(92vw, 320px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 16, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 900;
}

.mini-close {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
}

.mini-body {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  max-height: 220px;
  overflow: auto;
}

.mini-body ul {
  margin: 6px 0 0;
  padding-left: 16px;
}

.mini-body li {
  margin: 4px 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal.hidden {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(920px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(8, 12, 18, 0.92);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 1;
  max-height: calc(100vh - 40px);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-title {
  font-weight: 900;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(232, 238, 245, 0.9);
  cursor: pointer;
}

.modal-body {
  padding: 14px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  overflow: auto;
}

.modal-product {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.modal-prod-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.modal-price {
  font-weight: 900;
  color: rgba(232, 245, 255, 0.95);
}

.modal-desc {
  color: rgba(232, 238, 245, 0.70);
  font-size: 13px;
  line-height: 1.6;
  max-height: 260px;
  overflow: auto;
  padding-right: 6px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.modal-form {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.pay-opts {
  display: grid;
  gap: 8px;
}

.pay-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  cursor: pointer;
}

.pay-opt strong {
  font-weight: 900;
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.modal-note {
  color: rgba(232, 238, 245, 0.52);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .modal {
    padding: 12px;
  }

  .modal-backdrop {
    backdrop-filter: none;
  }

  .modal-card {
    border-radius: 14px;
    max-height: calc(100vh - 24px);
  }

  .modal-head {
    padding: 10px 10px;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }

  .modal-product,
  .modal-form {
    padding: 10px;
  }

  .modal-prod-top {
    gap: 10px;
  }

  .modal-title {
    font-size: 14px;
  }

  .modal-desc {
    font-size: 12px;
    line-height: 1.45;
    max-height: 140px;
  }

  .pay-opt {
    padding: 8px 10px;
  }

  .modal-form .input {
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .molecules-layer {
    display: none !important;
  }

  .marquee {
    overflow-x: auto;
    mask-image: none;
  }

  .marquee-track {
    animation: none;
    will-change: auto;
  }

  .grid::before,
  .grid::after {
    display: none;
  }

  .btn,
  .card,
  .icon-btn {
    transition: none;
  }
}

@media (max-width: 1120px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .topbar {
    backdrop-filter: none;
  }

  .actions {
    justify-content: space-between;
  }

  .grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .grid::before,
  .grid::after {
    display: none;
  }

  .molecules-layer {
    display: none !important;
  }

  .hero-media {
    aspect-ratio: auto;
    min-height: 520px;
  }

  .layout {
    grid-template-columns: 1fr;
  }
}

@supports not (aspect-ratio: 1 / 1) {
  .thumb {
    height: 190px;
  }
}
