:root {
  --bg: #0f1013;
  --bg-soft: #14171c;
  --surface: #1a1f25;
  --surface-2: #20262d;
  --ink: #eceef1;
  --muted: #8d94a0;
  --line: #2d323b;
  --brand: #0f70c8;
  --brand-strong: #0b5ca4;
  --accent: #15b39a;
  --shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  scrollbar-width: thin;
  scrollbar-color: #38516a #11161d;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #11161d;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #43647f 0%, #31485e 100%);
  border: 2px solid #11161d;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #53779a 0%, #3a5670 100%);
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 4%, rgba(15, 112, 200, 0.2), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(21, 179, 154, 0.16), transparent 25%),
    linear-gradient(180deg, #0f1013 0%, #11151a 45%, #0d0f12 100%);
  z-index: -1;
}

.site-header {
  width: min(1140px, calc(100% - 2rem));
  margin: 1rem auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: rgba(22, 26, 32, 0.84);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a:hover {
  color: var(--ink);
}

main {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
}

.section {
  margin-top: 2rem;
}

.eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9dc7ef;
  font-weight: 700;
}

.hero {
  padding: 2.3rem;
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(22, 28, 36, 0.95) 0%, rgba(17, 23, 31, 0.95) 52%, rgba(13, 25, 36, 0.93) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0.75rem 0;
  font-size: clamp(1.9rem, 3.8vw, 3.3rem);
  line-height: 1.06;
  max-width: 860px;
}

.hero-copy {
  margin-top: 1rem;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.52;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  border: 0;
  border-radius: 11px;
  padding: 0.7rem 1rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.hero-metrics {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.hero-metrics article {
  padding: 0.84rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(30, 36, 44, 0.72);
}

.hero-metrics strong {
  display: block;
  font-size: 1.08rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.84rem;
}

.section-head h2,
.crypto-panel h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.controls {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.tab-row {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  background: var(--bg-soft);
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.tab.is-active {
  background: var(--brand);
  color: #fff;
}

.filter-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 0.6rem;
}

.filter-row label,
.checkout-form label,
.checkout-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  color: var(--muted);
  font-size: 0.83rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.64rem 0.72rem;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 112, 200, 0.3);
  border-color: rgba(15, 112, 200, 0.62);
}

.product-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.bundle-builder {
  margin-top: 1rem;
  border: 1px solid #2e3b4e;
  border-radius: 16px;
  background: rgba(19, 27, 40, 0.94);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0.8rem;
}

.bundle-builder.is-hidden {
  display: none;
}

.bundle-builder h3,
.bundle-builder h4 {
  margin: 0.4rem 0;
}

.bundle-meta,
.bundle-lifetime {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #131a25;
  padding: 0.75rem;
}

.bundle-actions {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pill {
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.18rem 0.46rem;
  border: 1px solid #2d4458;
  color: #b8d7f1;
  background: #1b2734;
}

.product-card h3 {
  margin: 0.65rem 0 0.2rem;
  font-size: 1.04rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.bundle-pick {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #bcd4e9;
  font-size: 0.82rem;
}

.bundle-pick input {
  width: 16px;
  height: 16px;
}

.meta {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.price {
  font-size: 1.18rem;
  font-weight: 800;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--muted);
  background: var(--surface);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.card,
.crypto-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.05rem;
}

.card h3 {
  margin: 0.3rem 0 0.8rem;
}

.card p,
.crypto-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.card ol,
.card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.55;
}

.card pre {
  margin: 0.8rem 0 0;
  background: #13181f;
  border: 1px solid #283341;
  border-radius: 10px;
  padding: 0.7rem;
  font-size: 0.75rem;
  color: #c9d6e3;
  overflow-x: auto;
}

.card code {
  color: #c9d6e3;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 12, 0.72);
}

.modal-panel {
  position: relative;
  z-index: 1;
  margin: min(6vh, 2rem) auto;
  width: min(720px, calc(100% - 1rem));
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid #2d323b;
  background: #161b22;
  padding: 1rem;
}

.close-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #232a33;
  color: #b6c0cc;
  cursor: pointer;
}

.modal-panel h2 {
  margin: 0 0 0.4rem;
}

#checkoutProduct {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.wallet-box {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: #12171d;
}

.wallet-box p {
  margin: 0;
  color: var(--muted);
}

.wallet-box strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.2rem;
  color: #77b8f0;
}

.wallet-label {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wallet-box code {
  display: block;
  margin: 0.3rem 0 0.65rem;
  padding: 0.6rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: #d1dae5;
  overflow-wrap: anywhere;
  background: #11161c;
}

#paymentQrImage {
  display: block;
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0.4rem 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f141a;
  object-fit: cover;
}

.checkout-form {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.checkout-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tiny {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .filter-row,
  .product-grid,
  .bundle-builder,
  .split,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  .brand img {
    height: 30px;
  }
}
