:root {
  --gold: #FFB733;
  --ink: #17202a;
  --muted: #667085;
  --line: #d8dee7;
  --paper: #f6f8fb;
  --white: #ffffff;
  --green: #2f7d5b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, var(--paper) 340px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(23, 32, 42, .06);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 6vw;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.site-nav,
.card-actions,
.admin-hero,
.hero-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand {
  min-width: max-content;
}

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

.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  border-radius: 8px;
  color: #344054;
  font-weight: 800;
  min-height: 40px;
  padding: 10px 12px;
}

.nav-link:hover {
  background: #f1f4f8;
  color: var(--ink);
}

.cart-link {
  align-items: center;
  background: #17202a;
  color: var(--white);
  display: inline-flex;
  gap: 9px;
}

.cart-link:hover {
  background: #243847;
  color: var(--white);
}

.currency-form select {
  background: #f8fafc;
  border-color: #cfd7e3;
  min-height: 38px;
  padding: 7px 9px;
  width: auto;
}

.nav-count {
  background: var(--gold);
  border-radius: 999px;
  color: #111;
  display: inline-block;
  font-size: .78rem;
  font-weight: 900;
  min-width: 22px;
  padding: 2px 7px;
  text-align: center;
}

.brand-mark {
  align-items: center;
  background: var(--gold);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(255, 183, 51, .28);
  color: #111;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand small,
.eyebrow,
.pill,
.site-footer,
.product-card p,
.section-heading p,
.admin-card label,
.login-box p {
  color: var(--muted);
}

.brand small,
.eyebrow,
.pill {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 22px 60px;
}

.hero {
  align-items: stretch;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 183, 51, .32), transparent 28%),
    linear-gradient(120deg, #141d27, #243847 62%, #2f4d58);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(23, 32, 42, .18);
  color: var(--white);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 330px;
  overflow: hidden;
  padding: 48px;
  position: relative;
}

.hero h1,
.purchase-panel h1,
.admin-hero h1,
.login-box h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .95;
  margin: 8px 0 16px;
}

.hero p {
  color: #d6dee9;
  font-size: 1.16rem;
  line-height: 1.65;
  max-width: 620px;
}

.hero .eyebrow,
.admin-hero .eyebrow {
  color: var(--gold);
}

.hero-panel {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.hero-panel strong {
  color: var(--gold);
  display: block;
  font-size: 3rem;
  line-height: 1;
  margin: 8px 0;
}

.hero-stat-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-stat-row span {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  color: #f8fafc;
  font-weight: 800;
  padding: 12px;
  text-align: center;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 24px;
}

.quick-picks {
  margin-top: 24px;
}

.home-band {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

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

.quick-card {
  background: #fbfcfe;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  padding: 18px;
}

.quick-card:hover,
.product-card:hover {
  border-color: #c5cfdc;
  box-shadow: 0 18px 38px rgba(23, 32, 42, .09);
  transform: translateY(-2px);
}

.quick-card h3 {
  font-size: 1.25rem;
  margin: 14px 0 10px;
}

.quick-card strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.section-tabs {
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  padding: 12px;
}

.section-tabs a,
.pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
}

.section-tabs span {
  background: var(--gold);
  border-radius: 999px;
  color: #111;
  margin-left: 6px;
  padding: 2px 7px;
}

.store-section,
.table-section {
  margin-top: 34px;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading h2,
.table-section h2,
.admin-card h2 {
  margin: 0;
}

.form-note {
  background: #f1f4f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  padding: 10px 12px;
}

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

.product-card,
.login-box,
.admin-card,
.stats-grid article,
.purchase-panel,
.table-wrap,
.cart-hero,
.cart-item,
.cart-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.product-card img,
.product-art {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.product-card > div {
  padding: 18px;
}

.product-card h3 {
  font-size: 1.35rem;
  margin: 12px 0 8px;
}

.card-actions {
  justify-content: space-between;
  margin-top: auto;
}

.card-actions form {
  margin-left: auto;
}

.button,
.ghost {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
}

.button {
  background: var(--gold);
  color: #111;
}

.ghost {
  background: #eef2f6;
  color: var(--ink);
}

.product-page {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 420px;
}

.product-art {
  border-radius: 8px;
  min-height: 360px;
}

.purchase-panel,
.login-box,
.admin-card {
  padding: 24px;
}

.price {
  display: block;
  font-size: 2.4rem;
  margin: 20px 0;
}

.checkout-form,
.admin-card,
.login-actions {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 95px;
  resize: vertical;
}

.centered {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
}

.login-box {
  max-width: 520px;
}

.notice {
  background: #fff7e3;
  border-left: 4px solid var(--gold);
  padding: 12px;
}

.admin-shell {
  max-width: 1280px;
}

.admin-hero {
  background: var(--ink);
  color: var(--white);
  justify-content: space-between;
  padding: 28px;
}

.admin-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.stats-grid,
.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.stats-grid article {
  padding: 18px;
}

.stats-grid span {
  color: var(--muted);
  display: block;
}

.stats-grid strong {
  display: block;
  font-size: 2rem;
  margin-top: 8px;
}

.stats-grid .stat-line {
  font-size: 1.35rem;
}

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

.charts-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  margin-top: 20px;
}

.chart-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.chart-card h2 {
  margin: 0 0 14px;
}

.check {
  align-items: center;
  display: flex;
  grid-template-columns: auto 1fr;
}

.check input {
  width: auto;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
}

th {
  background: #eef2f6;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
}

.empty {
  color: var(--muted);
}

.linked-status {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.linked-status div {
  background: #f1f4f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}

.linked-status div.ok {
  background: #edf8f2;
  border-color: #a9dec1;
}

.linked-status span,
dt {
  color: var(--muted);
  display: block;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.steam {
  background: #233447;
  color: var(--white);
}

.account-box {
  max-width: 680px;
}

.success-page {
  max-width: 1040px;
}

.success-hero {
  background: linear-gradient(120deg, #17202a, #31485a);
  color: var(--white);
  padding: 42px;
  text-align: center;
}

.success-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: .98;
  margin: 12px auto;
  max-width: 760px;
}

.success-hero p {
  color: #dbe4ee;
  margin-inline: auto;
  max-width: 650px;
}

.success-icon {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  color: #111;
  display: inline-flex;
  font-size: 2rem;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.success-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.success-card,
.success-next {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.success-card h2,
.success-next h2 {
  margin-top: 0;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

dd {
  font-weight: 800;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.success-next {
  margin-top: 16px;
}

.cart-page {
  max-width: 1180px;
}

.cart-hero {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px;
}

.cart-hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  margin: 8px 0;
}

.cart-hero strong {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.cart-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 330px;
  margin-top: 20px;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  gap: 18px;
  grid-template-columns: 170px minmax(0, 1fr) 160px;
  padding: 16px;
}

.cart-item form {
  display: grid;
  gap: 10px;
}

.cart-item img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.cart-item h2 {
  margin: 10px 0 6px;
}

.cart-item label {
  max-width: 140px;
}

.cart-price {
  align-items: end;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.cart-price strong {
  font-size: 1.4rem;
}

.cart-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-summary {
  display: grid;
  gap: 14px;
  padding: 20px;
  position: sticky;
  top: 96px;
}

.cart-summary h2 {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header,
  .section-heading,
  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .hero,
  .product-page,
  .admin-grid,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .quick-grid,
  .stats-grid,
  .charts-grid,
  .success-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  main {
    padding-inline: 14px;
  }

  .hero {
    padding: 28px 20px;
  }

  .product-grid,
  .quick-grid,
  .stats-grid,
  .charts-grid,
  .success-grid,
  .linked-status {
    grid-template-columns: 1fr;
  }

  .cart-hero,
  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-hero,
  .cart-price {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .nav-link,
  .currency-form,
  .currency-form select {
    width: 100%;
  }

  .cart-link {
    justify-content: space-between;
  }
}
