:root {
  --bg: #000000;
  --panel: #0d0d10;
  --panel-2: #14161c;
  --panel-3: #191d27;
  --line: #262a34;
  --line-soft: #1b1e26;
  --text: #f4f7ff;
  --muted: #9aa4b7;
  --dim: #626b7a;
  --green: #5b8dff;
  --blue: #5b8dff;
  --amber: #f0bc68;
  --red: #e06f6f;
  --discord: #5865f2;
  --mono: "JetBrains Mono", Consolas, monospace;
  --sans: "Inter", Arial, sans-serif;
  --radius: 6px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  background:
    linear-gradient(90deg, rgba(91, 141, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(91, 141, 255, 0.04) 1px, transparent 1px),
    #030303;
  background-size: 48px 48px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.96)),
    linear-gradient(120deg, transparent 0%, rgba(91, 141, 255, 0.055) 48%, transparent 66%);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 70px;
  padding: 0 max(18px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar.scrolled {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.36);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
}

.brand img,
.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.brand span,
.footer-brand span {
  font-family: var(--mono);
  font-size: 14px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(59, 115, 184, 0.14);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plain-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.plain-link:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle svg,
.button svg,
.strip svg {
  width: 17px;
  height: 17px;
}

.mobile-nav {
  display: none;
  position: fixed;
  z-index: 49;
  top: 78px;
  left: 12px;
  right: 12px;
  padding: 8px;
  background: #020509;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  padding: 13px 14px;
  color: var(--muted);
  border-radius: var(--radius);
  font-weight: 700;
}

.mobile-nav a:hover {
  color: var(--text);
  background: var(--panel);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--panel-2);
  border-color: #393d45;
}

.button-primary {
  color: #000000;
  background: var(--green);
  border-color: var(--green);
}

.button-primary:hover {
  background: #4f8bd6;
  border-color: #4f8bd6;
}

.button-quiet {
  color: var(--text);
  background: #05080d;
}

.button-gold {
  color: #171000;
  background: var(--amber);
  border-color: var(--amber);
}

.button-discord {
  color: white;
  background: var(--discord);
  border-color: var(--discord);
}

.button-large {
  min-height: 50px;
  padding: 0 20px;
}

main,
.footer {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  gap: 28px;
  align-items: center;
  padding: 54px 0 72px;
}

.hero-copy {
  padding: 32px 0;
}

.mono-kicker {
  margin: 0 0 16px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
}

.lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.ops-console {
  background: #020509;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.52);
}

.console-bar {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #05080d;
  font-family: var(--mono);
  font-size: 12px;
}

.console-title {
  color: var(--muted);
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.sync-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.console-preview {
  max-height: 440px;
  overflow: hidden;
}

.console-preview img {
  width: 100%;
  object-fit: cover;
  object-position: top left;
}

.strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 17, 19, 0.88);
  overflow: hidden;
}

.strip span {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-weight: 800;
}

.strip span:last-child {
  border-right: 0;
}

.strip svg {
  color: var(--green);
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-copy {
  max-width: 700px;
  margin-bottom: 34px;
}

.section-copy h2,
.support-section h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
}

.section-copy p:not(.mono-kicker),
.support-section p {
  max-width: 650px;
  margin: 15px 0 0;
  color: var(--muted);
}

.target-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #020509;
}

.target-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 18px;
  align-items: center;
  padding: 17px 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.target-row:first-child {
  border-top: 0;
}

.target-head {
  color: var(--dim);
  background: #05080d;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.target-row b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 28px;
  margin-right: 10px;
  color: var(--text);
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
}

.target-row strong {
  color: var(--green);
  font-size: 13px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.workflow article {
  min-height: 245px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.workflow article span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.workflow h3 {
  margin: auto 0 10px;
  font-size: 24px;
}

.workflow p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.media-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.media-item {
  margin: 0;
  padding: 8px;
  background: #0b0c0e;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-large {
  grid-row: span 2;
}

.media-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
}

.license-rack {
  display: grid;
  gap: 10px;
}

.license {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.65fr 1.25fr auto;
  gap: 20px;
  align-items: center;
  min-height: 118px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.license-focus {
  border-color: rgba(105, 213, 139, 0.52);
  background: #06101b;
}

.license-lifetime {
  border-color: rgba(216, 180, 95, 0.5);
  background: #0b0a04;
}

.license-tag {
  position: absolute;
  top: -11px;
  left: 22px;
  padding: 4px 9px;
  color: #000000;
  background: var(--green);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.license-lifetime .license-tag {
  color: #1b1300;
  background: var(--amber);
}

.license-name,
.license-note {
  margin: 0;
}

.license-name {
  font-size: 20px;
  font-weight: 900;
}

.license-note {
  color: var(--muted);
  font-size: 13px;
}

.license-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.license-price span {
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
}

.license-price del {
  color: var(--dim);
}

.license ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}

.license li::before {
  content: "/ ";
  color: var(--green);
  font-family: var(--mono);
}

.session-badge {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #05080d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.session-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(59, 115, 184, 0.14);
}

.panel-shell {
  padding: 42px 0 82px;
}

.portal-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: end;
  padding: 46px 0 30px;
}

.portal-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: 60px;
  line-height: 1;
  font-weight: 900;
}

.portal-lead {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.portal-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-meta span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: #05080d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.portal-meta svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.portal-status-card {
  background: rgba(8, 16, 26, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.portal-status-card div {
  display: grid;
  gap: 7px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.portal-status-card div:first-child {
  border-top: 0;
}

.portal-status-card span,
.portal-facts span,
.license-key-box span,
.billing-row span,
.invoice-list span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.portal-status-card strong {
  color: var(--text);
  font-size: 25px;
  line-height: 1;
}

.portal-auth {
  padding: 0 0 20px;
}

.lookup-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(190px, 0.8fr) minmax(220px, 0.9fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  background: rgba(8, 16, 26, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lookup-panel h2,
.lookup-panel p {
  margin: 0;
}

.lookup-panel h2 {
  font-size: 24px;
  line-height: 1.1;
}

.lookup-panel p:not(.mono-kicker) {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.lookup-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lookup-panel input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  color: var(--text);
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.lookup-panel input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 115, 184, 0.16);
}

.lookup-actions {
  display: flex;
  gap: 8px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
}

.portal-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: rgba(8, 16, 26, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portal-card-wide {
  grid-column: span 2;
}

.portal-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.portal-card-heading > svg,
.portal-card-heading > i {
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--blue);
  background: rgba(59, 115, 184, 0.12);
  border: 1px solid rgba(59, 115, 184, 0.28);
  border-radius: var(--radius);
  flex: none;
}

.portal-card-heading .mono-kicker {
  margin-bottom: 6px;
}

.portal-card h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
}

.portal-muted {
  margin: 0;
  color: var(--muted);
}

.portal-card > .button,
.portal-card > a.button {
  width: fit-content;
  margin-top: auto;
}

.license-key-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.license-key-box span {
  grid-column: 1 / -1;
}

.license-key-box code {
  color: var(--text);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  word-break: break-word;
}

.portal-facts {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.portal-facts div {
  display: grid;
  gap: 6px;
  padding: 15px;
  border-left: 1px solid var(--line);
  background: #05080d;
}

.portal-facts div:first-child {
  border-left: 0;
}

.portal-facts strong {
  color: var(--text);
  font-size: 18px;
}

.billing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.billing-row div {
  display: grid;
  gap: 5px;
}

.billing-row strong {
  font-size: 20px;
}

.billing-row small,
.invoice-list small {
  color: var(--muted);
  font-weight: 700;
}

.invoice-list,
.release-feed {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.invoice-list div,
.release-feed div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr auto;
  gap: 14px;
  align-items: center;
  min-height: 52px;
  padding: 0 15px;
  background: #05080d;
  border-top: 1px solid var(--line);
}

.invoice-list div:first-child,
.release-feed div:first-child {
  border-top: 0;
}

.release-feed strong,
.release-feed span {
  color: var(--text);
  font-weight: 800;
}

.release-feed span {
  color: var(--muted);
  text-align: right;
}

.customer-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12px;
}

.panel-card {
  background: rgba(20, 35, 58, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-login {
  padding: 24px;
}

.panel-card-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
}

.panel-card-head > svg,
.panel-card-head > i {
  width: 40px;
  height: 40px;
  padding: 10px;
  color: var(--blue);
  background: rgba(59, 115, 184, 0.14);
  border: 1px solid rgba(59, 115, 184, 0.3);
  border-radius: var(--radius);
  flex: none;
}

.panel-card h3 {
  margin: 0;
  font-size: 20px;
}

.panel-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.panel-form {
  display: grid;
  gap: 14px;
}

.panel-form label,
.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel-form input,
.checkout-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  color: var(--text);
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.panel-form input:focus,
.checkout-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 115, 184, 0.16);
}

.panel-note {
  margin-top: 14px !important;
  color: var(--dim) !important;
  font-size: 12px !important;
}

.panel-signed-in {
  display: none;
  gap: 14px;
  padding: 16px;
  background: rgba(59, 115, 184, 0.1);
  border: 1px solid rgba(59, 115, 184, 0.34);
  border-radius: var(--radius);
}

.panel-section.is-signed-in .panel-form,
.panel-section.is-signed-in .panel-note {
  display: none;
}

.panel-section.is-signed-in .panel-signed-in {
  display: grid;
}

.signed-in-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.signed-in-line span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 115, 184, 0.14);
}

.signed-in-line strong {
  color: var(--text);
  font-size: 17px;
}

.panel-signed-in p {
  margin: 0 !important;
}

.panel-dashboard {
  overflow: hidden;
  opacity: 0.76;
  transition: opacity 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.panel-section.is-signed-in .panel-dashboard {
  opacity: 1;
  border-color: rgba(59, 115, 184, 0.46);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.panel-toolbar {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: var(--muted);
  background: #05080d;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.panel-toolbar strong {
  color: var(--blue);
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.panel-stats div {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.panel-stats div:last-child {
  border-right: 0;
}

.panel-stats span {
  display: block;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.panel-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.panel-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px;
}

.panel-actions-grid button {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--text);
  background: #101d31;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}

.panel-actions-grid button:hover {
  border-color: var(--blue);
  background: #142945;
}

.panel-actions-grid svg {
  width: 19px;
  height: 19px;
  color: var(--blue);
  flex: none;
}

.support-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 46px 0;
}

.faq-list {
  max-width: 820px;
  display: grid;
  gap: 8px;
}

.faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 850;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--green);
  font-family: var(--mono);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

.footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--text);
}

.footer p {
  margin: 0;
  color: var(--dim);
  text-align: right;
  font-size: 13px;
}

.checkout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 10, 18, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.checkout-backdrop[hidden],
.site-toast[hidden] {
  display: none;
}

.checkout-modal {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: #101d31;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.checkout-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: #05080d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.checkout-close svg {
  width: 18px;
  height: 18px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.checkout-summary {
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(59, 115, 184, 0.12), transparent),
    #05080d;
  border-right: 1px solid var(--line);
}

.checkout-summary h2 {
  margin: 0 0 22px;
  font-size: 34px;
  line-height: 1.05;
}

.checkout-plan {
  display: grid;
  gap: 8px;
  padding: 18px;
  margin-bottom: 22px;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checkout-plan span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.checkout-plan strong {
  font-size: 46px;
  line-height: 1;
}

.checkout-plan small {
  color: var(--blue);
  font-weight: 800;
}

.checkout-summary ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}

.checkout-summary li::before {
  content: "/ ";
  color: var(--blue);
  font-family: var(--mono);
}

.checkout-form {
  display: grid;
  gap: 16px;
  padding: 34px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pay-option {
  position: relative;
  padding: 14px;
  display: grid !important;
  gap: 6px !important;
  color: var(--text) !important;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-option:has(input:checked) {
  border-color: var(--blue);
  background: rgba(59, 115, 184, 0.12);
}

.pay-option span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.pay-option svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.pay-option small {
  color: var(--muted);
  font-weight: 600;
}

.discord-connect-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.discord-connect-panel strong,
.discord-connect-panel span {
  display: block;
}

.discord-connect-panel strong {
  color: var(--text);
  font-size: 14px;
}

.discord-connect-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.discord-connect-panel .button {
  flex: none;
}

.checkout-alert {
  padding: 13px 14px;
  color: #d2e8ff;
  background: rgba(59, 115, 184, 0.12);
  border: 1px solid rgba(59, 115, 184, 0.3);
  border-radius: var(--radius);
  font-size: 13px;
}

.checkout-alert code {
  color: var(--text);
  font-family: var(--mono);
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  transform: translateX(-50%);
  max-width: min(520px, calc(100% - 28px));
  padding: 13px 16px;
  color: var(--text);
  background: #05080d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  font-size: 14px;
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .customer-panel,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .license {
    grid-template-columns: 1fr 0.5fr;
  }

  .license ul,
  .license .button {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .topbar {
    height: 64px;
    grid-template-columns: 1fr auto;
  }

  .nav,
  .plain-link,
  .topbar-actions > .button {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  h1 {
    font-size: 46px;
  }

  .section-copy h2,
  .support-section h2 {
    font-size: 32px;
  }

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

  .strip span {
    min-height: 54px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .strip span:first-child {
    border-top: 0;
  }

  .target-row,
  .target-head {
    grid-template-columns: 1fr;
    gap: 7px;
  }

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

  .media-large {
    grid-row: auto;
  }

  .support-section,
  .footer {
    grid-template-columns: 1fr;
    display: grid;
    text-align: left;
  }

  .panel-stats {
    grid-template-columns: 1fr;
  }

  .panel-stats div {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .panel-stats div:first-child {
    border-top: 0;
  }

  .footer p {
    text-align: left;
  }
}

@media (max-width: 620px) {
  main,
  .footer {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 40px 0 58px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

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

  .workflow article {
    min-height: 190px;
  }

  .license {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .license ul,
  .license .button {
    grid-column: auto;
  }

  .license .button,
  .support-section .button {
    width: 100%;
  }

  .panel-actions-grid,
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .checkout-backdrop {
    align-items: start;
    padding: 12px;
  }

  .checkout-summary,
  .checkout-form {
    padding: 24px;
  }

  .checkout-summary h2 {
    font-size: 28px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 1040px) {
  .portal-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .lookup-panel {
    grid-template-columns: 1fr 1fr;
  }

  .lookup-panel > div:first-child,
  .lookup-actions {
    grid-column: 1 / -1;
  }

  .portal-status-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .portal-status-card div {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .portal-status-card div:first-child {
    border-left: 0;
  }

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

@media (max-width: 860px) {
  .portal-copy h1 {
    font-size: 44px;
  }

  .portal-status-card,
  .portal-facts {
    grid-template-columns: 1fr;
  }

  .portal-status-card div,
  .portal-facts div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .portal-status-card div:first-child,
  .portal-facts div:first-child {
    border-top: 0;
  }

  .portal-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .session-badge {
    display: none;
  }

  .panel-shell {
    padding: 28px 0 64px;
  }

  .portal-hero {
    padding-top: 34px;
  }

  .portal-copy h1 {
    font-size: 36px;
  }

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

  .lookup-panel {
    grid-template-columns: 1fr;
  }

  .lookup-panel > div:first-child,
  .lookup-actions {
    grid-column: auto;
  }

  .lookup-actions {
    flex-direction: column;
  }

  .lookup-actions .button {
    width: 100%;
  }

  .portal-card,
  .portal-card-wide {
    grid-column: auto;
  }

  .license-key-box,
  .billing-row,
  .invoice-list div,
  .release-feed div {
    grid-template-columns: 1fr;
  }

  .billing-row {
    align-items: stretch;
  }

  .license-key-box .button,
  .billing-row .button,
  .portal-card > .button,
  .portal-card > a.button {
    width: 100%;
  }

  .release-feed span {
    text-align: left;
  }
}

/* Refined storefront and customer panel layout */
.topbar {
  height: 76px;
  background: rgba(4, 4, 5, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.brand img,
.footer-brand img {
  background: #101115;
  border-color: rgba(255, 255, 255, 0.1);
}

.brand span,
.footer-brand span,
.license-name,
.dashboard-action-card h3 {
  color: #ffffff;
}

.nav a,
.plain-link,
.mobile-nav a {
  color: #a3a9b8;
}

.nav a:hover,
.nav a.active,
.plain-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.button {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111216;
  color: #f7f8fb;
}

.button:hover {
  background: #171922;
  border-color: rgba(255, 255, 255, 0.2);
}

.button-primary {
  color: #07111f;
  background: #ffffff;
  border-color: #ffffff;
}

.button-primary:hover {
  background: #dbe7ff;
  border-color: #dbe7ff;
}

.button-quiet {
  background: rgba(255, 255, 255, 0.035);
}

.hero {
  min-height: 720px;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 40px;
  padding: 78px 0 86px;
}

.hero-copy {
  padding: 0;
}

.mono-kicker {
  color: #7ea5ff;
}

h1 {
  color: #ffffff;
  font-size: clamp(54px, 7vw, 92px);
  letter-spacing: 0;
}

.lead {
  color: #a7afbf;
  font-size: 18px;
}

.ops-console,
.target-table,
.media-item,
.workflow article,
.license,
.faq-list details,
.checkout-modal {
  background: #101114;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.ops-console {
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.console-bar,
.target-head,
.portal-toolbar,
.checkout-summary,
.checkout-plan,
.pay-option,
.billing-row,
.portal-facts div {
  background: #08090b;
}

.console-preview {
  max-height: 520px;
}

.console-preview img,
.media-item img {
  filter: saturate(0.92) contrast(1.04);
}

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #0b0c0f;
  border-color: rgba(255, 255, 255, 0.08);
}

.strip span {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: #111216;
}

.section {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.section-copy h2,
.support-section h2,
.checkout-summary h2 {
  color: #ffffff;
}

.section-copy p:not(.mono-kicker),
.support-section p,
.workflow p,
.license-note,
.license ul,
.faq-list p {
  color: #9aa4b7;
}

.target-row {
  color: #a3adbf;
  border-color: rgba(255, 255, 255, 0.07);
}

.target-row b {
  color: #ffffff;
  background: #171922;
  border-color: rgba(255, 255, 255, 0.1);
}

.target-row strong,
.sync-pill,
.strip svg,
.faq-list summary::after {
  color: #7ea5ff;
}

.sync-pill span {
  background: #7ea5ff;
}

.workflow {
  gap: 12px;
}

.workflow article {
  min-height: 230px;
}

.media-item {
  padding: 10px;
}

.license-rack {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.license {
  min-height: 360px;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

.license .button {
  width: 100%;
  margin-top: auto;
}

.license-price span {
  color: #ffffff;
  font-size: 46px;
}

.license-focus {
  background: #111827;
  border-color: rgba(126, 165, 255, 0.38);
}

.license-lifetime {
  background: #15120a;
  border-color: rgba(240, 188, 104, 0.34);
}

.license-tag {
  color: #06101f;
  background: #7ea5ff;
  border-radius: 999px;
}

.checkout-backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.checkout-modal {
  background: #101114;
}

.checkout-alert {
  color: #cfddff;
  background: rgba(91, 141, 255, 0.08);
  border-color: rgba(91, 141, 255, 0.22);
}

.footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-links,
.footer p {
  color: #8f98a8;
}

.panel-page {
  min-height: 100vh;
  background: #030303;
}

.panel-page::before {
  display: none;
}

.panel-page .topbar,
.panel-page .mobile-nav,
.panel-page .footer {
  display: none;
}

.panel-access-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 22px;
  padding: 44px 18px;
}

.panel-page.has-panel-license .panel-access-shell {
  display: none;
}

.access-card {
  width: min(430px, 100%);
  padding: 34px 30px;
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.access-brand,
.panel-rail-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 900;
}

.access-brand img,
.panel-rail-brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: var(--radius);
}

.access-copy h1 {
  margin: 28px 0 10px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.12;
}

.access-copy p,
.access-note,
.access-back {
  color: #a4acba;
}

.access-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.access-form label,
.checkout-form label {
  display: grid;
  gap: 8px;
  color: #c4cad6;
  font-size: 13px;
  font-weight: 800;
}

.access-form label span {
  color: #6f7683;
  font-weight: 700;
}

.access-form input,
.checkout-form input {
  height: 46px;
  padding: 0 14px;
  color: #ffffff;
  background: #171719;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.access-form input:focus,
.checkout-form input:focus {
  border-color: rgba(126, 165, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(126, 165, 255, 0.14);
}

.access-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: #606673;
  font-family: var(--mono);
  font-size: 11px;
}

.access-divider::before,
.access-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
}

.access-discord {
  width: 100%;
}

.access-note {
  display: flex;
  gap: 10px;
  margin: 24px 0 0;
  font-size: 13px;
}

.access-note svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.access-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}

.access-back svg {
  width: 16px;
  height: 16px;
}

.panel-dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  background: #030303;
}

.panel-page:not(.has-panel-license) .panel-dashboard-layout {
  display: none;
}

.panel-rail {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 14px 20px;
  background: #070707;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-rail-nav {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}

.panel-rail-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  color: #a5adbc;
  border-radius: var(--radius);
  font-weight: 750;
}

.panel-rail-nav a:hover,
.panel-rail-nav a.active {
  color: #ffffff;
  background: #171719;
}

.panel-rail-nav a.active {
  box-shadow: inset 3px 0 0 #4f86d8;
}

.panel-rail-nav svg,
.dashboard-identity svg,
.dashboard-action-card svg {
  width: 17px;
  height: 17px;
}

.panel-rail-user {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #ffffff;
  background: #171719;
  font-weight: 900;
}

.panel-avatar {
  width: 32px;
  height: 32px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.panel-rail-user strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

.panel-rail-user span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8e97a7;
  font-size: 12px;
}

.panel-rail-user i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58d27a;
  box-shadow: 0 0 0 4px rgba(88, 210, 122, 0.12);
}

.panel-signout {
  width: 100%;
  margin-top: 18px;
}

.panel-main {
  width: min(100%, 1680px);
  padding: 44px 38px 70px;
}

.panel-main-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-main-top h1 {
  margin: 0;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.dashboard-license-card,
.dashboard-action-card,
.dashboard-bottom-grid article {
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  scroll-margin-top: 28px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dashboard-target-highlight {
  border-color: rgba(87, 139, 222, 0.72);
  box-shadow: 0 0 0 4px rgba(79, 134, 216, 0.16), 0 20px 48px rgba(79, 134, 216, 0.14);
  transform: translateY(-1px);
}

.dashboard-license-card {
  padding: 28px;
}

.dashboard-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-identity h2 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.dashboard-identity p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 5px 0 0;
  color: #8791a1;
}

.status-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: #81f0a3;
  background: rgba(88, 210, 122, 0.08);
  border: 1px solid rgba(88, 210, 122, 0.16);
  border-radius: 999px;
  font-size: 13px;
}

.status-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58d27a;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-stats div {
  padding: 0 22px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.dashboard-stats span,
.dashboard-key-wrap > span {
  display: block;
  margin-bottom: 8px;
  color: #606a79;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-stats strong {
  color: #ffffff;
}

.dashboard-key {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px 0 22px;
  background: #030303;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.dashboard-key code {
  color: #ffffff;
  font-family: var(--mono);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 800;
  word-break: break-word;
}

.key-copy-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8f98a8;
  background: transparent;
  border: 0;
  cursor: pointer;
}

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

.dashboard-action-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.dashboard-action-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
}

.dashboard-action-card p {
  margin: 2px 0 0;
  color: #697383;
  font-size: 13px;
}

.dashboard-action-card button,
.dashboard-action-card a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #697383;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.dashboard-card-actions {
  display: flex;
  gap: 6px;
}

.action-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #18191d;
  border-radius: var(--radius);
}

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

.dashboard-bottom-grid article {
  padding: 22px;
}

.dashboard-bottom-grid h2 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.dashboard-bottom-grid p:not(.mono-kicker) {
  margin: 8px 0 0;
  color: #8791a1;
}

.panel-page.has-panel-license[data-panel-view="license"] .dashboard-action-grid,
.panel-page.has-panel-license[data-panel-view="license"] .dashboard-bottom-grid {
  display: none;
}

.panel-page.has-panel-license[data-panel-view="downloads"] .dashboard-license-card,
.panel-page.has-panel-license[data-panel-view="downloads"] .dashboard-bottom-grid,
.panel-page.has-panel-license[data-panel-view="device"] .dashboard-license-card,
.panel-page.has-panel-license[data-panel-view="device"] .dashboard-bottom-grid,
.panel-page.has-panel-license[data-panel-view="support"] .dashboard-license-card,
.panel-page.has-panel-license[data-panel-view="support"] .dashboard-bottom-grid {
  display: none;
}

.panel-page.has-panel-license[data-panel-view="downloads"] .dashboard-action-card:not(#downloads),
.panel-page.has-panel-license[data-panel-view="device"] .dashboard-action-card:not(#device),
.panel-page.has-panel-license[data-panel-view="support"] .dashboard-action-card:not(#support) {
  display: none;
}

.panel-page.has-panel-license[data-panel-view="downloads"] .dashboard-action-grid,
.panel-page.has-panel-license[data-panel-view="device"] .dashboard-action-grid,
.panel-page.has-panel-license[data-panel-view="support"] .dashboard-action-grid {
  grid-template-columns: minmax(0, 720px);
}

.panel-page.has-panel-license[data-panel-view="downloads"] .dashboard-action-card,
.panel-page.has-panel-license[data-panel-view="device"] .dashboard-action-card,
.panel-page.has-panel-license[data-panel-view="support"] .dashboard-action-card {
  min-height: 112px;
}

.panel-page.has-panel-license:has(#license:target) .panel-rail-nav a,
.panel-page.has-panel-license:has(#downloads:target) .panel-rail-nav a,
.panel-page.has-panel-license:has(#device:target) .panel-rail-nav a,
.panel-page.has-panel-license:has(#support:target) .panel-rail-nav a {
  color: #a5adbc;
  background: transparent;
  box-shadow: none;
}

.panel-page.has-panel-license:has(#license:target) .panel-rail-nav a[href="#license"],
.panel-page.has-panel-license:has(#downloads:target) .panel-rail-nav a[href="#downloads"],
.panel-page.has-panel-license:has(#device:target) .panel-rail-nav a[href="#device"],
.panel-page.has-panel-license:has(#support:target) .panel-rail-nav a[href="#support"] {
  color: #ffffff;
  background: #171719;
  box-shadow: inset 3px 0 0 #4f86d8;
}

.panel-page.has-panel-license:has(#license:target) .dashboard-action-grid,
.panel-page.has-panel-license:has(#license:target) .dashboard-bottom-grid {
  display: none;
}

.panel-page.has-panel-license:has(#downloads:target) .dashboard-license-card,
.panel-page.has-panel-license:has(#downloads:target) .dashboard-bottom-grid,
.panel-page.has-panel-license:has(#device:target) .dashboard-license-card,
.panel-page.has-panel-license:has(#device:target) .dashboard-bottom-grid,
.panel-page.has-panel-license:has(#support:target) .dashboard-license-card,
.panel-page.has-panel-license:has(#support:target) .dashboard-bottom-grid {
  display: none;
}

.panel-page.has-panel-license:has(#downloads:target) .dashboard-action-card:not(#downloads),
.panel-page.has-panel-license:has(#device:target) .dashboard-action-card:not(#device),
.panel-page.has-panel-license:has(#support:target) .dashboard-action-card:not(#support) {
  display: none;
}

.panel-page.has-panel-license:has(#downloads:target) .dashboard-action-grid,
.panel-page.has-panel-license:has(#device:target) .dashboard-action-grid,
.panel-page.has-panel-license:has(#support:target) .dashboard-action-grid {
  grid-template-columns: minmax(0, 720px);
}

@media (max-width: 1120px) {
  .license-rack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .panel-rail {
    position: static;
    min-height: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
  }

  .panel-rail-nav {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0;
  }

  .panel-rail-user {
    display: none;
  }

  .panel-signout {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 50px 0 58px;
  }

  .license-rack,
  .dashboard-action-grid,
  .dashboard-bottom-grid,
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-stats div {
    padding: 14px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dashboard-stats div:first-child {
    border-top: 0;
  }

  .panel-main {
    padding: 26px 14px 48px;
  }

  .panel-main-top,
  .dashboard-profile-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-key {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .panel-rail {
    grid-template-columns: 1fr;
  }

  .panel-rail-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .panel-rail-nav a {
    white-space: nowrap;
  }

  .discord-connect-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .discord-connect-panel .button {
    width: 100%;
  }
}

/* Purchase success and policy pages */
.success-page,
.legal-page {
  min-height: 100vh;
  background: #030303;
}

.success-page::before,
.legal-page::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.96)),
    linear-gradient(135deg, rgba(91, 141, 255, 0.075), transparent 42%);
}

.success-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 48px 18px;
}

.success-card {
  width: min(100%, 760px);
  padding: 34px;
  background: #101114;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.success-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 900;
}

.success-brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: var(--radius);
}

.success-state {
  margin-top: 32px;
}

.success-check {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #07111f;
  background: #7ea5ff;
  border-radius: 50%;
}

.success-check svg {
  width: 22px;
  height: 22px;
}

.success-state h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 8vw, 72px);
}

.success-state p:not(.mono-kicker),
.success-note {
  color: #a4acba;
}

.success-key-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
  padding: 18px;
  background: #030303;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.success-key-box span {
  grid-column: 1 / -1;
  color: #606a79;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.success-key-box code {
  color: #ffffff;
  font-family: var(--mono);
  font-size: clamp(20px, 4vw, 31px);
  font-weight: 900;
  word-break: break-word;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.success-grid div {
  min-height: 86px;
  padding: 16px;
  background: #0b0c0f;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.success-grid div:first-child {
  border-left: 0;
}

.success-grid span,
.legal-card small {
  color: #606a79;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.success-grid strong {
  display: block;
  margin-top: 7px;
  color: #ffffff;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.success-note {
  margin: 20px 0 0;
  font-size: 13px;
}

.legal-shell {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  padding: 70px 0 92px;
}

.legal-hero {
  max-width: 760px;
  padding: 54px 0 38px;
}

.legal-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(52px, 8vw, 86px);
}

.legal-hero p:not(.mono-kicker) {
  max-width: 640px;
  color: #a4acba;
  font-size: 18px;
}

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

.terms-stack {
  display: grid;
  gap: 12px;
}

.legal-card {
  padding: 24px;
  background: #101114;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.legal-card h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 24px;
}

.legal-card p {
  margin: 0;
  color: #a4acba;
}

.faq-list-page details {
  background: #08090b;
}

@media (max-width: 760px) {
  .success-card {
    padding: 24px;
  }

  .success-key-box,
  .success-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .success-key-box .button,
  .success-actions .button {
    width: 100%;
  }

  .success-grid div,
  .success-grid div:first-child {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .success-grid div:first-child {
    border-top: 0;
  }

  .legal-shell {
    padding-top: 36px;
  }
}
