:root {
  --bg: #e7ecef;
  --dark: #111;
  --panel: rgba(17, 21, 23, 0.88);
  --text: #f8f8f8;
  --muted: #a8b0b5;
  --green: #22c062;
  --deep-green: #168a4c;
  --cyan: #1aa7d8;
  --teal: #33bc9a;
  --yellow: #ffd138;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: #333;
  background:
    linear-gradient(rgba(16, 19, 20, 0.88), rgba(16, 19, 20, 0.88)),
    repeating-linear-gradient(90deg, #252b2d 0 2px, #1b2022 2px 5px);
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 7vw;
  color: white;
  background: #0f0f0f;
  border-bottom: 1px solid #333;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #4ee37d;
  border: 2px solid #4ee37d;
  border-radius: 50%;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  color: #cfd4d6;
  font-size: 14px;
  text-decoration: none;
}

.nav a.active,
.nav a:hover {
  color: #21a8ff;
  font-weight: 700;
}

.portal {
  padding: 22px 7vw 52px;
  color: var(--text);
  background:
    linear-gradient(rgba(16, 19, 20, 0.88), rgba(16, 19, 20, 0.88)),
    repeating-linear-gradient(90deg, #252b2d 0 2px, #1b2022 2px 5px);
  border-bottom: 4px solid #2b2116;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  border: 1px solid #242424;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  background: #080808;
  border-bottom: 1px solid #1e1e1e;
}

.panel-title h1,
.panel-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.panel-title.accent {
  color: #44df73;
}

.status-title {
  color: #e5eef2;
}

.icon {
  color: currentColor;
}

.news-body {
  padding: 14px 16px 22px;
}

.meta {
  color: #899197;
  font-size: 12px;
}

.news-body h2 {
  margin: 8px 0;
  font-size: 30px;
  font-weight: 400;
}

.news-body p {
  max-width: 760px;
  line-height: 1.45;
}

.video-preview {
  position: relative;
  width: min(750px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top: 22px;
  color: white;
  text-align: center;
  background: #050505;
}

.video-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.status-body {
  display: grid;
  gap: 18px;
  padding: 18px 20px 22px;
}

.server-name {
  color: #44df73;
  font-size: 28px;
  font-weight: 800;
}

.server-address {
  color: #dce4e8;
  font-size: 15px;
  font-weight: 700;
}

.server-address a {
  color: #21a8ff;
  text-decoration: none;
}

.player-count {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}

.player-count span {
  color: #cfd4d6;
  font-size: 13px;
  text-transform: uppercase;
}

.player-count strong {
  color: #ff5f5f;
  font-size: 34px;
  line-height: 1;
}

.player-count small {
  color: #dfe6e9;
  font-size: 20px;
}

.chart {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #0b0d0e;
  border: 1px solid var(--line);
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  height: 150px;
  padding: 12px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  background:
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(255, 255, 255, 0.08) 35px 36px);
}

.chart-bars span {
  display: block;
  min-height: 8px;
  height: var(--value);
  background: linear-gradient(180deg, #4edb84, #1aa7d8);
  border-radius: 3px 3px 0 0;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  color: #899197;
  font-size: 12px;
  font-weight: 700;
}

.download-button {
  display: grid;
  width: 100%;
  place-items: center;
  text-decoration: none;
}

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

input {
  width: 100%;
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid #c6d0d6;
  border-radius: 4px;
  background: #fff;
}

.primary,
.ghost {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 5px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.primary {
  color: white;
  background: var(--deep-green);
}

.inline-action {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 2px;
  text-decoration: none;
}

.ghost {
  color: #2a3b44;
  background: #eef4f6;
  border: 1px solid #c6d5da;
}

.shop-hero {
  position: relative;
  overflow: hidden;
  min-height: 545px;
  color: white;
  background: linear-gradient(130deg, #34b98d 0%, #1ba6cf 52%, #159bec 100%);
}

.shop-hero::after {
  position: absolute;
  right: -5%;
  bottom: -90px;
  width: 110%;
  height: 190px;
  content: "";
  background: rgba(255, 255, 255, 0.92);
  transform: rotate(-7deg);
  transform-origin: right top;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 74px 7vw 150px;
}

.hero-copy {
  align-self: center;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.05;
}

.hero-copy p {
  max-width: 720px;
  font-size: 20px;
  font-weight: 800;
}

.faq-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid white;
  border-radius: 4px;
}

.hero-art svg {
  display: block;
  width: 100%;
  max-height: 380px;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.15));
}

.shop-shell {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 32px));
  margin: -105px auto 42px;
  padding: 38px 48px 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
  color: #93a0a6;
  text-transform: uppercase;
}

.step {
  display: grid;
  min-width: 120px;
  justify-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.step span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #b8c5ca;
  border-radius: 50%;
}

.step.active {
  color: #333;
}

.step.active span {
  color: white;
  background: #333;
  border-color: #333;
}

.line {
  width: 126px;
  height: 2px;
  background: #b8c5ca;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.form-card,
.integration-card {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 28px 30px;
  background: white;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.hint {
  display: flex;
  gap: 8px;
  margin: 10px 0 18px;
  padding: 16px;
  color: #22768d;
  background: #caf4ff;
  border: 1px solid #8bdced;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
}

.hint strong {
  display: grid;
  flex: 0 0 16px;
  height: 16px;
  place-items: center;
  color: white;
  background: #087c98;
  border-radius: 50%;
  font-size: 11px;
}

.choice-area {
  margin-top: 28px;
}

.choice-area h3,
.form-card h3,
.integration-card h3 {
  margin: 0 0 18px;
  color: #29343a;
  font-size: 20px;
}

.server-grid,
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 62px;
}

.choice-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  gap: 22px;
  min-height: 126px;
  padding: 22px 38px;
  background: white;
  border: 2px solid transparent;
  border-radius: 5px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.choice-card.selected {
  border-color: var(--green);
}

.choice-icon {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  color: white;
  font-size: 34px;
  font-weight: 800;
  background: #1b2227;
  border-radius: 50%;
}

.choice-content {
  display: grid;
  gap: 14px;
  border-left: 1px solid #dce5e8;
  padding-left: 22px;
}

.choice-content strong {
  font-size: 16px;
}

.select-bar {
  display: grid;
  min-height: 32px;
  place-items: center;
  color: white;
  background: var(--deep-green);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  padding-top: 34px;
}

.package-card {
  position: relative;
  overflow: visible;
  padding: 86px 30px 30px;
  text-align: center;
  background: white;
  border: 2px solid transparent;
  border-radius: 5px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.package-card.featured {
  color: white;
  background: linear-gradient(#1ea7d4 0 46%, #30ad7d 100%);
}

.package-card.selected {
  border-color: var(--green);
}

.package-medal {
  position: absolute;
  left: 50%;
  top: -50px;
  display: grid;
  width: 110px;
  height: 110px;
  place-items: center;
  color: white;
  font-size: 42px;
  background: #1b2227;
  border-radius: 50%;
  transform: translateX(-50%);
}

.package-title {
  margin: 0 -30px 24px;
  padding: 18px 12px;
  color: #151b1f;
  background: #adc0cc;
  font-size: 20px;
  font-weight: 800;
}

.featured .package-title {
  background: linear-gradient(120deg, #f4d70e, #eee9b4);
}

.emerald .package-title {
  background: #45df7d;
}

.diamond .package-title {
  background: #82d0df;
}

.points {
  color: var(--cyan);
  font-size: 26px;
  font-weight: 800;
}

.featured .points,
.featured .price {
  color: var(--yellow);
}

.price {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 800;
}

.gross {
  margin: 6px 0 22px;
  color: #888;
  font-size: 14px;
}

.featured .gross {
  color: rgba(255, 255, 255, 0.82);
}

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

.payment-grid .choice-card {
  grid-template-columns: 82px 1fr;
  padding: 20px 28px;
}

.payment-grid .choice-icon {
  width: 62px;
  height: 62px;
  color: #169dda;
  background: #edf2f3;
  font-size: 18px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid #bcd1d8;
  border-radius: 5px;
}

.segmented label {
  display: block;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 0 20px;
  font-weight: 800;
}

.segmented input:checked + span {
  color: white;
  background: var(--deep-green);
}

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

.wide {
  grid-column: 1 / -1;
}

.hidden {
  display: none;
}

.flow-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 28px;
}

.summary-layout .form-card,
.summary-layout .integration-card {
  width: 100%;
  margin: 0;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3ebee;
}

.summary-list dt {
  color: #6e7c83;
  font-weight: 700;
}

.summary-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.wide-button {
  width: 100%;
}

.api-note,
.integration-card p,
.integration-card li {
  color: #5e6b72;
  line-height: 1.5;
}

code {
  padding: 2px 5px;
  background: #edf4f6;
  border-radius: 4px;
}

.faq {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto 42px;
}

.faq h2 {
  margin-top: 0;
}

details {
  margin-bottom: 10px;
  padding: 16px 18px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.footer {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px;
  color: #919a9f;
  background: #0f0f0f;
  border-top: 1px solid #333;
  border-bottom: 4px solid #2b2116;
  font-size: 12px;
}

.payments {
  color: #0c9ed8;
  font-weight: 800;
}

.premium-page {
  color: #343d42;
  background: #e8eef0;
}

.premium-page .topbar {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1320px, calc(100% - 32px));
  min-height: 62px;
  padding: 0 12px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
}

.premium-page .brand {
  font-size: 20px;
}

.premium-page .brand-mark {
  width: auto;
  height: auto;
  color: rgba(255, 255, 255, 0.82);
  border: 0;
  border-radius: 0;
  font-size: 20px;
}

.premium-page .nav {
  gap: 8px;
}

.premium-page .nav a {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  padding: 0 10px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 4px;
}

.premium-page .nav a.active,
.premium-page .nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.premium-page .shop-hero {
  min-height: 655px;
  background: linear-gradient(130deg, #35b98d 0%, #21a9c3 45%, #159bec 100%);
}

.premium-page .shop-hero::after {
  bottom: -64px;
  height: 205px;
  background: #eef3f5;
}

.premium-page .hero-inner {
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.8fr);
  max-width: 1320px;
  padding: 150px 10px 170px;
}

.premium-page .hero-copy h2 {
  font-size: clamp(44px, 4.6vw, 64px);
}

.premium-page .hero-copy p {
  font-size: 20px;
}

.premium-page .hero-art {
  align-self: start;
}

.premium-page .hero-art svg {
  max-height: 460px;
}

.premium-page .shop-shell {
  width: min(1320px, calc(100% - 32px));
  min-height: 250px;
  margin: -130px auto 42px;
  padding: 44px 50px 54px;
  background: rgba(255, 255, 255, 0.84);
}

.premium-page .form-card,
.premium-page .integration-card,
.premium-page .choice-card,
.premium-page .package-card,
.premium-page details {
  background: rgba(255, 255, 255, 0.96);
}

.premium-page .faq {
  color: #343d42;
}

.premium-page .footer {
  color: #8c969b;
  background: #dfe7ea;
  border-top: 0;
  border-bottom: 4px solid #2b2116;
}

@media (max-width: 1050px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 24px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .portal-grid,
  .hero-inner,
  .summary-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 50px;
  }

  .hero-art {
    max-width: 560px;
  }

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

@media (max-width: 760px) {
  .portal,
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .portal-grid,
  .server-grid,
  .package-grid,
  .payment-grid,
  .invoice-grid {
    grid-template-columns: 1fr;
  }

  .shop-shell {
    width: calc(100% - 18px);
    margin-top: -70px;
    padding: 22px 14px 30px;
  }

  .shop-hero {
    min-height: 620px;
  }

  .hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stepper {
    gap: 8px;
  }

  .line {
    width: 32px;
  }

  .step {
    min-width: 74px;
    font-size: 10px;
  }

  .choice-card,
  .payment-grid .choice-card {
    grid-template-columns: 70px 1fr;
    padding: 18px;
  }

  .choice-icon,
  .payment-grid .choice-icon {
    width: 58px;
    height: 58px;
  }

  .package-card {
    margin-top: 38px;
  }

  .form-card,
  .integration-card {
    padding: 22px 18px;
  }

  .video-preview strong {
    font-size: 30px;
  }
}
