:root {
  --bg: #070a0d;
  --bg2: #0a0f14;
  --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: #22e3c3;
  --accent2: #14b8a6;
  --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(34, 227, 195, 0.14), transparent 55%),
    radial-gradient(1000px 600px at 90% 5%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(1100px 900px at 40% 120%, rgba(34, 227, 195, 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(34, 227, 195, 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: 1;
}

.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(34, 227, 195, 0.9), rgba(20, 184, 166, 0.25));
  box-shadow: 0 12px 30px rgba(34, 227, 195, 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(34, 227, 195, 0.18);
  border: 1px solid rgba(34, 227, 195, 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(34, 227, 195, 0.4);
  box-shadow: 0 0 0 4px rgba(34, 227, 195, 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(34, 227, 195, 0.95), rgba(20, 184, 166, 0.88));
  border: 1px solid rgba(34, 227, 195, 0.4);
  color: #001914;
  box-shadow: 0 14px 34px rgba(34, 227, 195, 0.18);
}

.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(34, 227, 195, 0.22);
}

.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;
}

.card {
  border-radius: var(--radius);
  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;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 227, 195, 0.18);
  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(34, 227, 195, 0.26), transparent 60%),
    radial-gradient(360px 240px at 70% 60%, rgba(20, 184, 166, 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;
}

.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;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  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(34, 227, 195, 0.18);
  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(34, 227, 195, 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(34, 227, 195, 0.26), rgba(20, 184, 166, 0.10));
  border: 1px solid rgba(34, 227, 195, 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(34, 227, 195, 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(34, 227, 195, 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(34, 227, 195, 0.18);
}

.mini.active {
  border-color: rgba(34, 227, 195, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 227, 195, 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(34, 227, 195, 0.28);
  background: rgba(34, 227, 195, 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(34, 227, 195, 0.4);
  box-shadow: 0 0 0 4px rgba(34, 227, 195, 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(34, 227, 195, 0.28);
  background: rgba(34, 227, 195, 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(34, 227, 195, 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(34, 227, 195, 0.95), rgba(20, 184, 166, 0.88));
  color: #001914;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(34, 227, 195, 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;
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    mask-image: none;
  }

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

  .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;
  }

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

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

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