:root {
  --bg: #070708;
  --panel: #121214;
  --panel-2: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6f3ec;
  --muted: #9a958c;
  --gold: #e6c15a;
  --gold-2: #f6de86;
  --btn: #f3d56a;
  --btn-text: #1c1608;
  --login-top: #3a221c;
  --login-bot: #241412;
  --login-line: #a56b32;
  --active: #4a2030;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --sans: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100%;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

.top {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 28px 10px;
  position: relative;
}

.logo {
  font-weight: 750;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 140px;
}

.logo img { height: 46px; width: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  max-width: 980px;
  margin: 0 auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f3f0ea;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 2px;
}

.nav a svg { width: 13px; height: 13px; flex: none; }
.nav a.is-active,
.nav a:hover { color: var(--gold); }

.actions { display: flex; align-items: center; gap: 10px; }

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--login-line);
  background: linear-gradient(180deg, var(--login-top), var(--login-bot));
  color: var(--gold-2);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.login-btn:hover { filter: brightness(1.08); }

.cart-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #141416;
  color: var(--text);
  display: grid;
  place-items: center;
  position: relative;
}

.cart-btn span {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--btn-text);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #141416;
  color: white;
}

.donor-bar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 28px 16px;
  flex-wrap: wrap;
}

.donor, .payers { display: flex; align-items: center; gap: 12px; }
.payers { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }

.crown {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.donor img, .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a2a2e;
}

.avatar {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: white;
}

.donor strong, .payer { font-size: 13px; font-weight: 650; }
.donor small, .payer small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.payer { display: inline-flex; align-items: center; gap: 8px; color: #ddd9d1; }

.stack-module { flex: 1 0 100%; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 560px) 1fr;
  align-items: center;
  gap: 20px;
  min-height: 620px;
  padding: 28px 7vw 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.92) 0%, rgba(7, 7, 8, 0.72) 28%, rgba(7, 7, 8, 0.18) 58%, rgba(7, 7, 8, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 7, 8, 0.2) 0%, rgba(7, 7, 8, 0) 18%, rgba(7, 7, 8, 0.55) 100%),
    url("hero.jpg") center 42% / cover no-repeat;
}

.hero-copy { position: relative; z-index: 2; max-width: 520px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker .dash {
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--gold);
}

.hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(52px, 6vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero p, .lede {
  color: #c9c4ba;
  font-size: 14px;
  line-height: 1.55;
  max-width: 460px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
}

.btn-ghost {
  background: #161618;
  border-color: #3c3c40;
  color: white;
}

.btn-ghost:hover { border-color: #6a6a70; }
.btn-gold { background: var(--btn); color: var(--btn-text); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-block { width: 100%; }

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bdb8ae;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.15);
}

.hero-art {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  justify-items: end;
}

.hero-art img {
  width: min(640px, 100%);
  height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}

.crest { width: min(620px, 100%); height: auto; }

.discord {
  padding: 10px 28px 28px;
}

.discord-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 118px;
  padding: 28px 150px 28px 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(90deg, #141416, #101012 70%);
  overflow: hidden;
}

.discord-card h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.discord-url { color: #d9d4cb; font-size: 16px; word-break: break-all; }

.discord-mark {
  position: absolute;
  right: -8px;
  bottom: -28px;
  width: 150px;
  height: 150px;
  border-radius: 36px;
  background: #5865f2;
  display: grid;
  place-items: center;
  transform: rotate(8deg);
  box-shadow: var(--shadow);
}

.wrap { padding: 10px 28px 40px; }

.shop {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.side, .panel, .cat-head, .product, .checkout-card, .cms, .form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.side { padding: 18px 12px 14px; }

.side-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 4px 12px 10px;
}

.side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #ddd8d0;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.side a svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.side a:hover { background: rgba(255, 255, 255, 0.03); }
.side a.is-active {
  background: linear-gradient(90deg, rgba(74, 32, 48, 0.95), rgba(74, 32, 48, 0.2));
  box-shadow: inset 3px 0 0 var(--gold);
  color: var(--gold);
}

.server-box {
  margin: 14px 8px 4px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.server-box strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.server-box .count { font-size: 28px; font-weight: 800; }
.server-box .sub { color: #7eb6ff; font-size: 11px; letter-spacing: 0.08em; font-weight: 800; }
.server-box .ip { color: var(--muted); font-size: 13px; margin-top: 8px; }

.cat-head { padding: 22px 26px; margin-bottom: 16px; }
.cat-head h1 {
  margin: 8px 0 10px;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.cat-head .desc { color: #c9c4ba; line-height: 1.5; }
.cat-head .desc p { margin: 0 0 8px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.product-grid.list { grid-template-columns: 1fr; }

.product { overflow: hidden; display: flex; flex-direction: column; }
.product-grid.list .product { flex-direction: row; }
.product-grid.list .product img { width: 220px; height: 180px; }

.product img { width: 100%; aspect-ratio: 1 / 0.92; object-fit: cover; background: #0c0c0e; }
.product .meta { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.product p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.price { color: var(--gold-2); font-weight: 800; }
.price s { color: var(--muted); font-weight: 600; margin-right: 6px; }
.product .btn { margin-top: auto; }

.empty { color: var(--muted); padding: 24px; }

.site-footer { padding: 10px 28px 28px; }

.footer-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px 18px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
  color: #bdb8ae;
}

.footer-panel h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.footer-panel p { margin: 0 0 16px; max-width: 280px; line-height: 1.5; font-size: 14px; }
.footer-panel a { display: block; padding: 4px 0; color: #cfcabe; }
.footer-panel a:hover { color: white; }

.socials { display: flex; gap: 8px; }
.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
}

.legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 16px;
  text-align: center;
  color: #6f6b64;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.page-head { padding: 12px 4px 18px; }
.page-head h1 { margin: 8px 0; font-size: 42px; letter-spacing: -0.04em; text-transform: uppercase; }

.checkout-card, .form-card, .cms { padding: 22px; }
.basket-row, .option-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; margin: 16px 0; }
.muted { color: var(--muted); }
.remove { color: #e7b4ae; font-size: 13px; }

label { display: block; font-size: 13px; margin: 14px 0 6px; color: #ddd8d0; }
input, select, textarea {
  width: 100%;
  background: #0e0e10;
  color: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}
textarea { min-height: 120px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: #1c1c1f;
  border: 1px solid var(--gold);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 20;
}

.goal-bar { height: 8px; background: #2a2a2e; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.goal-bar span { display: block; height: 100%; background: var(--gold); }

.package-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 18px;
}
.package-layout img { width: 100%; border-radius: 18px; background: #0c0c0e; }
.prose { color: #d4cfc6; line-height: 1.6; }
.prose p { margin-top: 0; }

@media (max-width: 980px) {
  .top { grid-template-columns: 1fr auto; }
  .menu-btn { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 12px;
    right: 12px;
    background: #141416;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    z-index: 15;
  }
  body.nav-open .nav { display: flex; }
  .hero, .shop, .footer-panel, .package-layout, .discord-card { grid-template-columns: 1fr; display: grid; }
  .discord-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 24px 120px; }
  .hero { min-height: 0; padding-top: 12px; }
  .hero-art { min-height: 280px; }
  .product-grid.list .product { flex-direction: column; }
  .product-grid.list .product img { width: 100%; height: auto; }
  .payers { margin-left: 0; }
}
