:root {
  --bg: #090c12;
  --bg-alt: #121826;
  --panel: rgba(12, 16, 26, 0.82);
  --panel-strong: rgba(16, 22, 35, 0.96);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f5f7;
  --muted: #95a0b5;
  --accent: #b4ff39;
  --accent-deep: #7fbe17;
  --danger: #ff6f61;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(180, 255, 57, 0.13), transparent 32%),
    radial-gradient(circle at bottom right, rgba(72, 192, 255, 0.16), transparent 30%),
    linear-gradient(140deg, #080b10 0%, #0c1320 52%, #070910 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 90%);
}

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

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  color: #081106;
  background: linear-gradient(135deg, #d1ff73, #8cc615);
  box-shadow: 0 10px 26px rgba(180, 255, 57, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(180, 255, 57, 0.35);
}

.hero,
.legal-card,
.key-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 28px;
  padding: 36px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -35% auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 255, 57, 0.24), transparent 70%);
}

.hero-copy,
.status-panel,
.key-panel,
.legal-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: var(--accent);
}

h1,
h2 {
  margin: 0;
  line-height: 0.98;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(3rem, 9vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.hero-text,
.section-copy,
.legal-section p,
.key-meta,
.status-list,
.status-label {
  color: var(--muted);
}

.hero-text,
.section-copy,
.legal-section p {
  line-height: 1.7;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #091007;
  background: linear-gradient(135deg, #d7ff82, #95d11d);
  box-shadow: 0 12px 28px rgba(180, 255, 57, 0.2);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button-danger {
  color: #ffe7e4;
  border: 1px solid rgba(255, 111, 97, 0.35);
  background: rgba(255, 111, 97, 0.14);
}

.status-panel,
.key-panel {
  align-self: end;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
}

.status-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.status-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  line-height: 1.5;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 42px 0 20px;
}

.section-copy {
  max-width: 460px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
}

.shop-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.shop-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.shop-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.product-tag,
.product-price {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.product-tag {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.product-price {
  background: rgba(180, 255, 57, 0.14);
  color: var(--accent);
  font-weight: 700;
}

.product-price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
}

.product-stock {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.84rem;
  background: rgba(72, 192, 255, 0.12);
  color: #8fd7ff;
}

.product-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: #c6cede;
  line-height: 1.55;
  display: grid;
  gap: 8px;
}

.product-link {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(180, 255, 57, 0.22);
  background: rgba(180, 255, 57, 0.08);
  font-weight: 700;
}

.product-link:hover {
  background: rgba(180, 255, 57, 0.14);
}

.product-link.is-disabled,
.button.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.key-layout,
.tos-layout,
.purchase-layout {
  display: grid;
  gap: 24px;
}

.admin-layout {
  display: grid;
  gap: 24px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-tab {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.admin-tab:hover,
.admin-tab.is-active {
  color: var(--text);
  border-color: rgba(180, 255, 57, 0.35);
  background: rgba(180, 255, 57, 0.1);
}

.admin-panel[hidden] {
  display: none;
}

.inventory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.inventory-toolbar-label {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.inventory-toolbar-copy {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.inventory-filter-field {
  min-width: 260px;
}

.inventory-filter-field span {
  color: var(--muted);
  font-size: 0.9rem;
}

.purchase-copy {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.purchase-confirmation {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-top: 20px;
  color: #dbe2ec;
  line-height: 1.6;
}

.purchase-confirmation input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.purchase-confirmation a {
  color: var(--accent);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 680px);
  padding: 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.modal-header,
.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-product {
  margin: 8px 0 0;
  color: var(--text);
  font-weight: 700;
}

.modal-actions {
  margin-top: 24px;
}

.purchase-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.delivery-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.delivery-label {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.delivery-credential {
  display: block;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(180, 255, 57, 0.18);
  background: #05070b;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  word-break: break-word;
}

.delivery-instructions {
  margin: 0;
  color: #dbe2ec;
  line-height: 1.7;
  white-space: pre-wrap;
}

.purchase-summary {
  margin: 24px 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.summary-row + .summary-row {
  margin-top: 12px;
}

.summary-row strong {
  color: var(--text);
}

.purchase-form {
  display: grid;
  gap: 18px;
}

.purchase-form label {
  display: grid;
  gap: 10px;
  color: #dbe2ec;
}

.field-help {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.purchase-form input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.purchase-form select {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.purchase-form textarea {
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.purchase-form input::placeholder {
  color: var(--muted);
}

.purchase-form textarea::placeholder {
  color: var(--muted);
}

.purchase-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--danger);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.summary-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.summary-card h3 {
  margin: 10px 0 12px;
  font-size: 1.2rem;
}

.summary-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.summary-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
}

.summary-chip.is-active {
  background: rgba(180, 255, 57, 0.14);
  color: var(--accent);
}

.summary-stats {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.summary-stats strong {
  color: var(--text);
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.admin-item strong,
.admin-item code {
  color: var(--text);
}

.admin-item code {
  word-break: break-word;
}

.admin-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-item-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

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

.key-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.key-value {
  padding: 18px;
  border-radius: 16px;
  background: #05070b;
  border: 1px solid rgba(180, 255, 57, 0.2);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  word-break: break-word;
}

.copy-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(180, 255, 57, 0.24);
  border-radius: 999px;
  background: rgba(180, 255, 57, 0.08);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease,
    transform 180ms ease;
}

.copy-button:hover {
  transform: translateY(-1px);
  background: rgba(180, 255, 57, 0.16);
}

.copy-button.is-copied {
  border-color: rgba(180, 255, 57, 0.55);
  background: rgba(180, 255, 57, 0.2);
  color: var(--accent);
}

.legal-card {
  border-radius: var(--radius-xl);
  padding: 30px;
}

.legal-card > h1 {
  margin-bottom: 20px;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.7;
}

.tos-list {
  margin: 0 0 18px;
  padding-left: 20px;
  display: grid;
  gap: 14px;
}

.legal-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

.tos-end p + p {
  margin-top: 12px;
}

@media (max-width: 920px) {
  .hero,
  .shop-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .topbar {
    flex-direction: column;
    align-items: start;
  }

  .hero,
  .legal-card,
  .key-panel {
    padding: 22px;
  }

  .nav {
    width: 100%;
  }

  .inventory-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .inventory-filter-field {
    min-width: 0;
  }

  .nav-link {
    flex: 1 1 0;
    text-align: center;
  }
}
