:root {
  --bg: #050608;
  --bg2: #090d14;
  --card: rgba(12, 16, 24, .82);
  --card2: rgba(18, 24, 34, .92);
  --text: #f7f7fb;
  --muted: #a2a8b5;
  --line: rgba(255,255,255,.10);
  --red: #ff2525;
  --red2: #9d0000;
  --red3: #ff5959;
  --shadow: 0 26px 90px rgba(0,0,0,.58);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0 !important;
  color: var(--text) !important;
  font-family: Inter, Manrope, Arial, sans-serif !important;
  background:
    radial-gradient(circle at 12% 5%, rgba(255,37,37,.28), transparent 33%),
    radial-gradient(circle at 82% 0%, rgba(255,255,255,.08), transparent 28%),
    radial-gradient(circle at 60% 100%, rgba(255,37,37,.10), transparent 40%),
    linear-gradient(135deg, #050608 0%, #0b1018 52%, #160707 100%) !important;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), transparent 88%);
  z-index: -2;
}

body.rehub-ready > :not(.rehub-app) {
  display: none !important;
}

.rehub-app {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 34px;
}

.rehub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 10, 15, .78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.rehub-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.rehub-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: contain;
  padding: 6px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
}

.rehub-brand-text {
  min-width: 0;
}

.rehub-brand-text strong {
  display: block;
  font-size: 23px;
  line-height: 1;
  letter-spacing: .4px;
}

.rehub-brand-text span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.rehub-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rehub-links a {
  color: #fff !important;
  text-decoration: none !important;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 14px;
  opacity: .9;
}

.rehub-links a:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  opacity: 1;
}

.rehub-hero {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}

.rehub-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(14, 19, 29, .88), rgba(8, 11, 17, .84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.rehub-main {
  padding: 46px 42px;
}

.rehub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,37,37,.35);
  background: rgba(255,37,37,.10);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .25px;
}

.rehub-main h1 {
  margin: 20px 0 14px;
  max-width: 680px;
  color: #fff !important;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .93;
  letter-spacing: -2.2px;
}

.rehub-main h1 span {
  color: var(--red3);
  text-shadow: 0 0 34px rgba(255,37,37,.30);
}

.rehub-subtitle {
  max-width: 680px;
  margin: 0;
  color: #d8dce5;
  font-size: 17px;
  line-height: 1.65;
}

.rehub-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.rehub-steam-slot a,
.rehub-steam-slot button,
.rehub-steam-slot input[type="submit"],
.rehub-btn-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 16px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--red), var(--red2)) !important;
  box-shadow: 0 16px 36px rgba(255,37,37,.25) !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  cursor: pointer;
  transition: .18s ease !important;
}

.rehub-steam-slot a:hover,
.rehub-steam-slot button:hover,
.rehub-steam-slot input[type="submit"]:hover,
.rehub-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.rehub-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
}

.rehub-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 34px;
}

.rehub-mini div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.rehub-mini strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.rehub-mini span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.rehub-side {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rehub-preview {
  flex: 1;
  min-height: 310px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(160deg, rgba(255,37,37,.20), transparent 45%),
    url('/preview.png') center/contain no-repeat,
    rgba(0,0,0,.18);
}

.rehub-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
}

.rehub-card b {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 15px;
}

.rehub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.rehub-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.rehub-step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 14, 21, .70);
  box-shadow: 0 16px 48px rgba(0,0,0,.28);
}

.rehub-step span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red2));
  font-weight: 900;
}

.rehub-step h3 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: 21px;
}

.rehub-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.rehub-original {
  margin-top: 22px;
}

.rehub-original > * {
  max-width: 100% !important;
}

.rehub-original table,
.rehub-original form,
.rehub-original .card,
.rehub-original .panel,
.rehub-original > div {
  border-radius: 22px !important;
  border: 1px solid var(--line) !important;
  background: rgba(10, 14, 21, .72) !important;
  box-shadow: var(--shadow) !important;
}

.rehub-footer {
  margin-top: 22px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .rehub-nav,
  .rehub-hero {
    grid-template-columns: 1fr;
  }

  .rehub-hero {
    display: flex;
    flex-direction: column;
  }

  .rehub-links {
    justify-content: flex-start;
  }

  .rehub-main {
    padding: 34px 24px;
  }

  .rehub-mini,
  .rehub-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .rehub-app {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

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

  .rehub-links a {
    padding: 8px 9px;
  }

  .rehub-logo {
    width: 48px;
    height: 48px;
  }

  .rehub-main h1 {
    letter-spacing: -1.2px;
  }
}

.rehub-catalog-page {
  margin-top: 22px;
}

.rehub-catalog-head {
  padding: 26px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(10, 14, 21, .76);
  box-shadow: var(--shadow);
}

.rehub-catalog-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--red3);
  font-weight: 900;
  font-size: 13px;
}

.rehub-catalog-head h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 36px;
  letter-spacing: -1px;
}

.rehub-catalog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.rehub-original {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(10, 14, 21, .72);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.rehub-original * {
  max-width: 100%;
}

.rehub-original,
.rehub-original p,
.rehub-original div,
.rehub-original span,
.rehub-original label,
.rehub-original td,
.rehub-original th {
  color: #f7f7fb !important;
}

.rehub-original a {
  color: #fff !important;
}

.rehub-original input,
.rehub-original select,
.rehub-original textarea {
  color: #fff !important;
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 12px !important;
  padding: 9px 11px !important;
}

.rehub-original option {
  color: #111 !important;
}

.rehub-original button,
.rehub-original input[type="submit"],
.rehub-original .btn {
  color: #fff !important;
  background: linear-gradient(135deg, var(--red), var(--red2)) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 13px !important;
  padding: 10px 14px !important;
  font-weight: 800 !important;
}
