:root {
  --bg: #07050d;
  --panel: rgba(20, 14, 34, .84);
  --panel-hover: rgba(30, 18, 50, .95);

  --purple: #8b5cf6;
  --purple-bright: #a855f7;
  --magenta: #d946ef;
  --blue: #526bff;

  --text: #f6f1ff;
  --muted: #aaa1bd;

  --border: rgba(168,85,247,.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);

  background:
    radial-gradient(
      circle at 10% 5%,
      rgba(125, 55, 200, .20),
      transparent 34%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(70, 65, 180, .12),
      transparent 35%
    ),
    var(--bg);
}

body::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  background-image:
    radial-gradient(
      rgba(255,255,255,.12) 1px,
      transparent 1px
    );

  background-size: 60px 60px;

  opacity: .06;
}

main {
  width: min(1180px, calc(100% - 40px));

  margin: auto;

  position: relative;
  z-index: 2;
}

.topbar {
  min-height: 100px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  border-bottom:
    1px solid rgba(168,85,247,.12);
}

.brand {
  display: flex;
  align-items: center;

  gap: 14px;
}

.brand-icon {
  width: 47px;
  height: 47px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  font-size: 22px;
  font-weight: 800;

  background:
    linear-gradient(
      135deg,
      var(--purple),
      var(--magenta)
    );
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  letter-spacing: .14em;
}

.brand span {
  margin-top: 3px;

  font-size: 9px;

  color: var(--muted);

  letter-spacing: .17em;
}

nav {
  display: flex;
  align-items: center;

  gap: 24px;
}

nav a {
  color: #c7bed3;

  text-decoration: none;

  font-size: 13px;
}

nav .login {
  padding: 10px 15px;

  color: white;

  border:
    1px solid rgba(168,85,247,.32);

  border-radius: 11px;

  background:
    rgba(139,92,246,.10);
}

.hero {
  max-width: 900px;

  padding:
    105px 0 110px;
}

.eyebrow {
  color: #bb91ff;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: .19em;
}

.hero h1 {
  margin:
    14px 0 24px;

  font-size:
    clamp(48px, 7vw, 82px);

  line-height: .98;

  letter-spacing: -.055em;

  background:
    linear-gradient(
      100deg,
      #ffffff,
      #d5bdff 55%,
      #a56cff
    );

  color: transparent;

  background-clip: text;
  -webkit-background-clip: text;
}

.hero p {
  max-width: 690px;

  margin: 0;

  color: var(--muted);

  font-size: 19px;

  line-height: 1.65;
}

.hero-buttons,
.account-buttons {
  display: flex;

  gap: 12px;

  margin-top: 32px;
}

.primary,
.secondary {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 14px 20px;

  border-radius: 12px;

  text-decoration: none;

  font-weight: 600;
}

.primary {
  color: white;

  background:
    linear-gradient(
      120deg,
      #7547e9,
      #a33def
    );
}

.secondary {
  color: #ddd3ec;

  border:
    1px solid rgba(168,85,247,.28);

  background:
    rgba(255,255,255,.025);
}

.services-section {
  padding-bottom: 100px;
}

.services-section h2 {
  margin:
    8px 0 30px;

  font-size: 34px;
}

.service-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.service-card {
  min-height: 230px;

  padding: 30px;

  border:
    1px solid var(--border);

  border-radius: 23px;

  background: var(--panel);
}

.service-card .icon {
  width: 50px;
  height: 50px;

  display: grid;
  place-items: center;

  margin-bottom: 24px;

  border-radius: 14px;

  font-size: 23px;

  border:
    1px solid rgba(168,85,247,.28);

  background:
    linear-gradient(
      135deg,
      rgba(139,92,246,.28),
      rgba(217,70,239,.13)
    );
}

.service-card h3 {
  margin:
    0 0 10px;

  font-size: 24px;
}

.service-card p {
  color: var(--muted);

  line-height: 1.6;
}

.tag {
  display: inline-block;

  margin-top: 8px;

  padding: 7px 11px;

  color: #ceb7f2;

  border:
    1px solid rgba(168,85,247,.25);

  border-radius: 999px;

  font-size: 10px;
}

.account-section {
  margin-bottom: 80px;

  padding: 40px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 40px;

  border:
    1px solid var(--border);

  border-radius: 26px;

  background:
    linear-gradient(
      120deg,
      rgba(103,50,173,.24),
      rgba(13,10,23,.83)
    );
}

.account-section h2 {
  margin:
    8px 0 8px;

  font-size: 31px;
}

.account-section p {
  max-width: 620px;

  margin: 0;

  color: var(--muted);

  line-height: 1.6;
}

footer {
  padding-bottom: 40px;

  color: #716a7d;

  text-align: center;

  font-size: 10px;

  letter-spacing: .17em;
}


/* Request form */

.form-page {
  width:
    min(700px, calc(100% - 30px));

  padding:
    50px 0 80px;
}

.back-link {
  display: inline-block;

  margin-bottom: 30px;

  color: #bda8d9;

  text-decoration: none;
}

.request-panel {
  padding: 42px;

  border:
    1px solid var(--border);

  border-radius: 26px;

  background: var(--panel);
}

.request-panel h1 {
  margin:
    9px 0 12px;

  font-size: 42px;
}

.intro {
  margin-bottom: 35px;

  color: var(--muted);

  line-height: 1.6;
}

form {
  display: grid;

  gap: 23px;
}

label,
legend {
  font-size: 13px;

  color: #d8d0e5;
}

input,
textarea {
  width: 100%;

  margin-top: 8px;

  padding: 13px 14px;

  color: white;

  border:
    1px solid rgba(168,85,247,.24);

  border-radius: 10px;

  outline: none;

  background:
    rgba(0,0,0,.22);

  font: inherit;
}

input:focus,
textarea:focus {
  border-color:
    rgba(168,85,247,.65);
}

fieldset {
  padding: 20px;

  display: grid;

  gap: 15px;

  border:
    1px solid rgba(168,85,247,.20);

  border-radius: 14px;
}

.choice {
  display: flex;

  align-items: flex-start;

  gap: 12px;

  padding: 14px;

  border-radius: 11px;

  background:
    rgba(255,255,255,.025);
}

.choice input {
  width: auto;

  margin:
    4px 0 0;
}

.choice span {
  color: var(--muted);

  line-height: 1.45;
}

.choice strong {
  display: block;

  margin-bottom: 3px;

  color: white;
}

button {
  padding: 15px;

  cursor: pointer;

  border: 0;

  border-radius: 11px;

  color: white;

  font-size: 14px;

  font-weight: 700;

  background:
    linear-gradient(
      120deg,
      #7547e9,
      #a33def
    );
}

.honeypot {
  position: absolute;

  left: -10000px;
}

.error {
  margin-bottom: 25px;

  padding: 13px;

  color: #ffd7e0;

  border:
    1px solid rgba(255,100,140,.30);

  border-radius: 10px;

  background:
    rgba(190,40,85,.12);
}

.existing-user {
  margin-top: 28px;

  color: var(--muted);

  text-align: center;
}

.existing-user a {
  color: #bb91ff;
}

.success {
  text-align: center;
}

.success-icon {
  width: 60px;
  height: 60px;

  display: grid;
  place-items: center;

  margin:
    0 auto 25px;

  border-radius: 50%;

  font-size: 28px;

  color: white;

  background:
    linear-gradient(
      135deg,
      var(--purple),
      var(--magenta)
    );
}

.request-id {
  margin:
    25px 0 35px;

  color: var(--muted);
}

@media (max-width: 760px) {

  main {
    width:
      min(100% - 26px, 1180px);
  }

  .topbar {
    min-height: 85px;
  }

  nav > a:not(.login) {
    display: none;
  }

  .brand span {
    display: none;
  }

  .hero {
    padding:
      70px 0 80px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .account-section {
    flex-direction: column;

    align-items: flex-start;
  }

  .hero-buttons,
  .account-buttons {
    flex-wrap: wrap;
  }

  .request-panel {
    padding: 28px 22px;
  }
}


/* ======================================================
   Heplrox branding navigation
   ====================================================== */

.brand {
  position: relative;
}

.brand-home-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}


/* ======================================================
   Heplflix / Live TV
   ====================================================== */

.heplflix-feature {
  display: grid;
  grid-template-columns:
    minmax(0, .8fr)
    minmax(0, 1.5fr);
  gap: 36px;
  align-items: start;
  margin-top: 70px;
  padding: 34px;
  border-radius: 22px;
  border: 1px solid rgba(160, 110, 255, .20);
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(156, 72, 255, .16),
      transparent 40%
    ),
    rgba(18, 14, 31, .72);
}

.heplflix-feature-intro h2 {
  margin-top: 8px;
}

.heplflix-feature-intro p {
  margin-bottom: 25px;
  line-height: 1.65;
  opacity: .76;
}

.live-tv-content > .eyebrow {
  display: block;
  margin-bottom: 14px;
}

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

.channel-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .025);
}

.channel-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 165px;
  padding: 20px;
  background:
    radial-gradient(
      circle at center,
      rgba(150, 80, 255, .18),
      transparent 65%
    ),
    rgba(0, 0, 0, .22);
}

.channel-art img {
  width: 100%;
  max-width: 230px;
  max-height: 135px;
  object-fit: contain;
}

.channel-copy {
  padding: 20px;
}

.channel-number {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  opacity: .58;
}

.channel-copy h3 {
  margin: 3px 0 10px;
}

.channel-copy p {
  margin: 0;
  line-height: 1.55;
  opacity: .7;
}


/* ======================================================
   Heplflix downloads
   ====================================================== */

.download-hero {
  max-width: 760px;
}

.download-platform-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.download-platform {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(160, 110, 255, .20);
  background:
    linear-gradient(
      145deg,
      rgba(120, 70, 200, .08),
      rgba(15, 12, 26, .72)
    );
}

.download-platform-icon {
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  opacity: .16;
}

.download-platform h2 {
  margin: 8px 0 12px;
}

.download-platform > p {
  max-width: 520px;
  min-height: 58px;
  line-height: 1.55;
  opacity: .7;
}

.download-button {
  display: inline-block;
  margin-top: 10px;
}

.download-size {
  margin-left: 10px;
  opacity: .5;
  font-size: 11px;
}

.download-unavailable {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .10);
  opacity: .55;
  font-size: 12px;
}

.install-guide {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.install-guide h3 {
  margin-top: 0;
}

.install-guide ol {
  display: grid;
  gap: 12px;
  padding-left: 21px;
  line-height: 1.55;
  opacity: .78;
}

.download-note {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(232, 189, 88, .25);
  background: rgba(232, 189, 88, .07);
  font-size: 12px;
  line-height: 1.5;
  color: #f1ca6c;
}

.download-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 35px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(160, 110, 255, .16);
  background: rgba(255, 255, 255, .025);
}

.download-help h2 {
  margin: 5px 0 8px;
}

.download-help p {
  margin: 0;
  opacity: .7;
}


@media (max-width: 800px) {

  .heplflix-feature,
  .download-platform-grid {
    grid-template-columns: 1fr;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .download-help {
    align-items: stretch;
    flex-direction: column;
  }

}


/* ======================================================
   Heplrox artwork branding
   ====================================================== */

.brand-logo {
  width: 62px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  background: transparent !important;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-art {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 82px;
  margin-bottom: 14px;
}

.service-art img {
  display: block;
  max-width: 180px;
  max-height: 76px;
  object-fit: contain;
}

.heplflix-feature-banner {
  margin-bottom: 25px;
}

.heplflix-feature-banner img {
  display: block;
  width: 100%;
  max-width: 430px;
  max-height: 190px;
  object-fit: contain;
  object-position: left center;
}

.download-heplflix-logo {
  display: block;
  width: min(340px, 80%);
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 28px;
}

.heplflix-service-card,
.gaming-service-card {
  overflow: hidden;
}

/* === HEPLROX CARD/BRAND IMAGE OVERRIDES === */
.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-card .icon,
.card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-card .icon img,
.card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card .icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Fix portal card alignment */
.service-grid .card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
}

.service-grid .card.disabled {
  grid-template-columns: 72px minmax(0, 1fr);
}

.service-grid .card .icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  border-radius: 14px;
}

.service-grid .card .card-body {
  min-width: 0;
}

.service-grid .card .card-body h3,
.service-grid .card .card-body p {
  margin-left: 0;
}

.service-grid .card .arrow {
  align-self: center;
  justify-self: end;
}

/* Public site service card image consistency */
.service-card .icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

/* Slightly better support/427 logo presentation if artwork is tall */
.service-card .icon img,
.card .icon img {
  padding: 4px;
  box-sizing: border-box;
}
