.user-portal-body {
  --portal-width: 920px;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 0%, rgba(54, 171, 142, .10), transparent 32%),
    linear-gradient(180deg, #050a12 0%, #07111b 52%, #050a12 100%);
}

.particle-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .92;
}

.flow-wave {
  position: absolute;
  width: 72vw;
  height: 72vw;
  min-width: 620px;
  min-height: 620px;
  border-radius: 44% 56% 53% 47% / 45% 45% 55% 55%;
  filter: blur(76px);
  opacity: .09;
  will-change: transform;
}

.flow-wave-one {
  top: -34vw;
  left: -20vw;
  background: linear-gradient(135deg, #56e2be, #5e8eff 52%, transparent 75%);
  animation: flowOne 22s ease-in-out infinite alternate;
}

.flow-wave-two {
  right: -28vw;
  bottom: -42vw;
  background: linear-gradient(135deg, transparent 18%, #7c62ff 48%, #4fe0b9 88%);
  animation: flowTwo 28s ease-in-out infinite alternate-reverse;
}

@keyframes flowOne {
  from { transform: translate3d(-2%, -1%, 0) rotate(-8deg) scale(1); }
  to { transform: translate3d(13%, 9%, 0) rotate(12deg) scale(1.08); }
}

@keyframes flowTwo {
  from { transform: translate3d(0, 0, 0) rotate(4deg) scale(1); }
  to { transform: translate3d(-11%, -8%, 0) rotate(-14deg) scale(1.12); }
}

.hyper-sigil {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin-inline: auto;
  color: #06110f;
  background:
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(129, 241, 211, .95) 36%, rgba(67, 201, 169, .95));
  border: 1px solid rgba(191, 255, 238, .75);
  border-radius: 25px;
  box-shadow:
    0 18px 42px rgba(54, 209, 170, .22),
    0 0 0 7px rgba(101, 231, 198, .055),
    inset 0 1px 0 rgba(255,255,255,.72);
  overflow: hidden;
}

.hyper-sigil::before,
.hyper-sigil::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(3, 48, 37, .24);
  border-radius: 50%;
}

.hyper-sigil::before { inset: 10px; }
.hyper-sigil::after { inset: 18px; border-style: dashed; }

.hyper-sigil span {
  position: relative;
  z-index: 1;
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -.08em;
  transform: translateX(-1px);
}

.hyper-sigil-loader {
  width: 66px;
  height: 66px;
  border-radius: 21px;
}

.hyper-sigil-loader span { font-size: 27px; }

.hyper-sigil-small {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(54, 209, 170, .16);
}

.hyper-sigil-small::before { inset: 6px; }
.hyper-sigil-small::after { inset: 11px; }
.hyper-sigil-small span { font-size: 18px; }

.login-stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.login-card {
  position: relative;
  width: min(480px, 100%);
  padding: clamp(28px, 5vw, 44px);
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(16, 32, 45, .93), rgba(7, 18, 28, .90));
  border-color: rgba(141, 221, 202, .21);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(255,255,255,.025) inset,
    0 0 80px rgba(61, 212, 174, .055);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(116, 241, 208, .06) 48%, transparent 58%),
    radial-gradient(circle at 50% -18%, rgba(101, 230, 197, .15), transparent 42%);
  animation: cardLight 8s ease-in-out infinite alternate;
}

.login-card > * { position: relative; z-index: 1; }

@keyframes cardLight {
  from { transform: translateX(-4%); opacity: .72; }
  to { transform: translateX(4%); opacity: 1; }
}

.login-brand-block {
  text-align: center;
}

.login-kicker {
  margin: 22px 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .24em;
}

.login-brand-block h1 {
  margin: 0;
  text-align: center;
  letter-spacing: -.04em;
}

.login-brand-block h1 span,
.login-brand-block h1 strong {
  display: block;
}

.login-brand-block h1 span {
  color: #d9e4eb;
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 760;
  letter-spacing: .02em;
}

.login-brand-block h1 strong {
  margin-top: 2px;
  color: #f8fffd;
  font-size: clamp(39px, 10vw, 58px);
  font-weight: 950;
  line-height: .98;
  text-shadow: 0 0 32px rgba(105, 230, 197, .12);
}

.login-subtitle {
  margin: 16px auto 0;
  max-width: 340px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.login-form .field > span:first-child {
  color: #d6e2e9;
  font-size: 12px;
  letter-spacing: .08em;
}

.login-form .input-wrap {
  min-height: 54px;
  border-radius: 15px;
  background: rgba(2, 11, 18, .72);
  border-color: rgba(155, 196, 216, .16);
}

.login-form input {
  min-height: 54px;
}

.login-button {
  min-height: 54px;
  margin-top: 4px;
  border-radius: 15px;
  font-size: 15px;
  letter-spacing: .08em;
}

.login-security-line {
  display: flex;
  justify-content: center;
  gap: 14px 20px;
  flex-wrap: wrap;
  margin-top: 21px;
  color: #7f98a7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.login-security-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.login-security-line i,
.online-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(95, 224, 164, .75);
}

.login-powered {
  margin: 24px 0 0;
  padding-top: 20px;
  color: #6f8493;
  border-top: 1px solid rgba(168, 202, 221, .11);
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.login-powered strong { color: #b8c9d3; }

.maintenance-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 0;
  padding: 14px 15px;
  color: #ffd8dc;
  background: rgba(255, 80, 105, .08);
  border: 1px solid rgba(255, 123, 136, .25);
  border-radius: 14px;
}

.maintenance-banner .ui-icon { margin-top: 2px; color: var(--danger); }
.maintenance-banner strong { display: block; margin-bottom: 2px; }
.maintenance-banner p { margin: 0; color: #c7aeb4; font-size: 13px; }

.portal-shell {
  min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) 14px max(36px, env(safe-area-inset-bottom));
}

.portal-topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  width: min(var(--portal-width), 100%);
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 10px 12px 10px 14px;
  border-radius: 19px;
  background: rgba(8, 20, 30, .82);
  border-color: rgba(138, 211, 194, .17);
}

.portal-brand,
.portal-top-actions,
.portal-section-heading,
.portal-actions,
.game-actions,
.activation-key-box,
.static-progress {
  display: flex;
  align-items: center;
}

.portal-brand { gap: 12px; min-width: 0; }
.portal-brand > div:last-child { display: grid; min-width: 0; }
.portal-brand strong { font-size: 13px; letter-spacing: .08em; }
.portal-brand span { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.portal-top-actions { gap: 9px; }

.online-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: #a8e8d4;
  background: rgba(62, 207, 166, .08);
  border: 1px solid rgba(86, 224, 184, .17);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.portal-container {
  width: min(var(--portal-width), 100%);
  margin: 22px auto 0;
}

.portal-container > .maintenance-banner { margin: 0 0 18px; }

.portal-loading {
  display: grid;
  gap: 16px;
}

.skeleton-block {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(100deg, rgba(255,255,255,.025) 20%, rgba(255,255,255,.07) 35%, rgba(255,255,255,.025) 50%) rgba(13, 28, 40, .72);
  background-size: 240% 100%;
  animation: shimmer 1.4s linear infinite;
}

.portal-detail-grid .skeleton-block { min-height: 190px; }

@keyframes shimmer { to { background-position-x: -240%; } }

.portal-hero {
  position: relative;
  padding: clamp(34px, 7vw, 64px) clamp(20px, 5vw, 50px);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% -30%, rgba(105, 230, 197, .22), transparent 48%),
    linear-gradient(145deg, rgba(19, 42, 57, .88), rgba(7, 18, 29, .88));
  border: 1px solid rgba(139, 214, 196, .17);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
  backdrop-filter: blur(18px);
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  pointer-events: none;
}

.portal-hero > * { position: relative; z-index: 1; }
.portal-eyebrow { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .18em; }

.portal-hero h1 {
  max-width: 720px;
  margin: 12px auto 12px;
  color: #f6fbfe;
  font-size: clamp(30px, 7vw, 52px);
  font-weight: 850;
}

.portal-hero > p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.portal-actions {
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.portal-button,
.copy-key-button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: #e8f2f7;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(179, 210, 227, .17);
  border-radius: 12px;
  font-weight: 800;
  transition: transform .16s var(--ease), background .18s, border-color .18s, box-shadow .18s;
}

.portal-button:hover:not(:disabled),
.copy-key-button:hover:not(:disabled) {
  background: rgba(255,255,255,.09);
  border-color: rgba(179, 225, 214, .3);
}

.portal-button:active:not(:disabled),
.copy-key-button:active:not(:disabled) { transform: scale(.98); }

.portal-button-primary {
  color: #061510;
  background: linear-gradient(135deg, #8cf0d5, #4ed3af);
  border-color: rgba(126, 244, 213, .68);
  box-shadow: 0 12px 28px rgba(58, 205, 168, .16);
}

.portal-button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #9af4dd, #5cdfba);
}

.portal-message {
  min-height: 20px;
  margin: 13px 0 0;
  color: var(--accent);
  text-align: center;
  font-size: 13px;
}

.portal-message.error,
.form-message.error { color: var(--danger); }

.contact-options {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-option {
  min-height: 36px;
  padding: 0 12px;
  color: var(--text-soft);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
}

.portal-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.portal-card,
.portal-panel {
  background: linear-gradient(180deg, rgba(17, 35, 49, .84), rgba(8, 20, 30, .82));
  border: 1px solid rgba(159, 203, 224, .13);
  box-shadow: 0 16px 46px rgba(0,0,0,.19), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(16px);
}

.portal-card {
  min-width: 0;
  padding: 22px;
  border-radius: 20px;
}

.portal-card-icon,
.stage-icon,
.empty-portal-icon,
.verified-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 17px;
  color: var(--accent);
  background: rgba(105, 230, 197, .09);
  border: 1px solid rgba(105, 230, 197, .16);
  border-radius: 13px;
}

.portal-card h2 {
  margin-bottom: 17px;
  font-size: 17px;
}

.portal-card dl { display: grid; gap: 13px; margin: 0; }
.portal-card dl div { display: grid; gap: 3px; min-width: 0; }
.portal-card dt { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.portal-card dd { margin: 0; overflow-wrap: anywhere; color: var(--text-soft); font-size: 13px; font-weight: 650; }

.portal-panel {
  margin-top: 14px;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 22px;
}

.portal-section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.portal-section-heading span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.portal-section-heading h2 { margin: 4px 0 0; font-size: clamp(20px, 4vw, 25px); }
.portal-section-heading > strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #9be8d3;
  background: rgba(76, 208, 172, .075);
  border: 1px solid rgba(91, 225, 189, .14);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .06em;
}

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

.feature-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 15px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(172, 205, 222, .10);
  border-radius: 16px;
  transition: background .18s, border-color .18s, transform .18s;
}

.feature-card:hover { transform: translateY(-1px); background: rgba(255,255,255,.045); }
.feature-card.is-enabled { border-color: rgba(102, 231, 196, .23); background: rgba(62, 193, 158, .055); }

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  color: #baf5e5;
  background: rgba(99, 225, 191, .09);
  border-radius: 13px;
  font-weight: 900;
}

.feature-icon img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { min-width: 0; }
.feature-copy h3 { margin: 0 0 3px; font-size: 14px; }
.feature-copy p { margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.feature-toggle {
  min-width: 78px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 850;
}

.feature-card.is-enabled .feature-toggle {
  color: #9cebd6;
  background: rgba(64, 207, 169, .08);
  border-color: rgba(91, 225, 189, .18);
}

.game-actions { gap: 9px; flex-wrap: wrap; }
.game-actions .portal-button { flex: 1 1 180px; }

.subscription-panel { text-align: center; }
.subscription-panel .portal-section-heading { text-align: left; }
.subscription-countdown {
  color: #eafff9;
  font-size: clamp(28px, 7vw, 52px);
  font-weight: 900;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(105, 230, 197, .12);
}
.subscription-panel > p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.subscription-countdown.is-expired { color: var(--danger); }

.install-panel { overflow: hidden; }
.step-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: 620px;
  margin: 0 auto 26px;
}

.step-track::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(158, 195, 214, .14);
}

.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  justify-self: center;
  color: #718897;
  background: #0c1b28;
  border: 1px solid rgba(166, 203, 222, .16);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}

.step-dot.active,
.step-dot.complete {
  color: #061510;
  background: var(--accent);
  border-color: rgba(165,255,231,.7);
  box-shadow: 0 0 22px rgba(105, 230, 197, .22);
}
.step-dot.complete::after { content: "✓"; font-size: 13px; }
.step-dot.complete { font-size: 0; }

.install-stage { animation: stageIn .34s var(--ease) both; }
@keyframes stageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.step-flow-card {
  width: min(610px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 5vw, 32px);
  text-align: center;
  background: rgba(2, 12, 20, .46);
  border: 1px solid rgba(161, 205, 224, .12);
  border-radius: 20px;
}

.step-flow-card h3 { margin: 0 0 10px; font-size: clamp(20px, 4vw, 26px); }
.step-flow-card > p { color: var(--muted); }
.waiting-flow-card .stage-icon,
.loading-flow-card .stage-icon { margin-inline: auto; }
.stage-icon-spin { animation: iconPulse 1.8s ease-in-out infinite; }
@keyframes iconPulse { 50% { transform: scale(1.08); box-shadow: 0 0 24px rgba(105,230,197,.17); } }

.activation-key-box {
  gap: 8px;
  margin-top: 20px;
  padding: 8px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(166, 205, 223, .13);
  border-radius: 15px;
}
.activation-key-box input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 0 13px;
  color: #bff7e7;
  background: transparent;
  border: 0;
  outline: 0;
  font-weight: 850;
  letter-spacing: .05em;
}
.copy-key-button { flex: 0 0 auto; min-height: 42px; }

.serial-form,
.access-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  text-align: left;
}

.serial-form .portal-button,
.access-form .portal-button { width: 100%; }
.form-message { min-height: 20px; margin: 0; color: var(--danger); text-align: center; font-size: 13px; }

.serial-verified-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 21px;
  color: var(--text-soft);
  background: rgba(81, 213, 177, .055);
  border: 1px solid rgba(105, 230, 197, .17);
  border-radius: 16px;
}
.serial-verified-panel .verified-icon { margin: 0; }
.serial-verified-panel strong { max-width: 420px; }
.serial-verified-panel p { margin: 0; color: var(--muted); }
.serial-verified-panel p span { color: var(--accent); font-weight: 850; }

.generated-heading {
  margin: 0 0 15px;
  color: var(--text-soft);
  text-align: center;
  font-size: 14px;
  letter-spacing: .05em;
}

.progress-track,
.static-progress {
  position: relative;
  width: 100%;
  height: 10px;
  margin: 20px 0 12px;
  overflow: hidden;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(174, 208, 225, .09);
  border-radius: 999px;
}
.progress-track > span,
.static-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #42cfa9, #89efd4);
  box-shadow: 0 0 18px rgba(105, 230, 197, .28);
  transition: width .28s linear;
}
.static-progress { height: 34px; justify-content: flex-end; padding-right: 10px; }
.static-progress > span { position: absolute; inset: 0; width: 100%; opacity: .72; }
.static-progress strong { position: relative; z-index: 1; color: #062018; font-size: 11px; }
.progress-percent { display: block; color: #c9f8eb; font-size: 28px; font-variant-numeric: tabular-nums; }
.progress-status { margin: 8px 0 0; color: var(--text-soft); }
.protection-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.final-install-header { margin-bottom: 16px; text-align: center; }
.final-install-header span { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.final-install-header h3 { margin: 6px 0 0; font-size: 24px; }
.final-orbit {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border: 2px solid rgba(105, 230, 197, .12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}
.final-orbit span { position: absolute; inset: 19px; border-radius: 50%; background: rgba(105,230,197,.12); box-shadow: 0 0 30px rgba(105,230,197,.16); }

.success-stage {
  padding: 26px 12px;
  text-align: center;
}
.success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 auto 12px;
  color: #150707;
  background: linear-gradient(145deg, #ff9aa4, #ff6878);
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(255, 100, 117, .18);
  font-size: 34px;
  font-weight: 950;
}
.success-warning-label { margin: 0; color: var(--danger); font-size: 11px; font-weight: 900; letter-spacing: .2em; }
.success-stage h3 { margin: 8px 0 20px; font-size: clamp(26px, 6vw, 38px); }

.empty-portal {
  display: grid;
  justify-items: center;
  text-align: center;
}
.empty-portal-icon { margin-bottom: 5px; }
.empty-portal h2 { margin-bottom: 7px; }
.empty-portal p { color: var(--muted); }

@media (max-width: 780px) {
  .portal-detail-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .portal-topbar { top: 8px; }
}

@media (max-width: 560px) {
  .login-stage { place-items: center; padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)); }
  .login-card { padding: 24px 18px; border-radius: 24px; }
  .hyper-sigil { width: 68px; height: 68px; border-radius: 21px; }
  .hyper-sigil span { font-size: 28px; }
  .login-kicker { margin-top: 18px; font-size: 9px; }
  .login-brand-block h1 span { font-size: 23px; }
  .login-brand-block h1 strong { font-size: clamp(37px, 12vw, 48px); }
  .login-form { margin-top: 24px; }
  .login-security-line { gap: 8px 14px; }

  .portal-shell { padding-inline: 8px; }
  .portal-topbar { min-height: 62px; border-radius: 16px; }
  .portal-brand > div:last-child span { display: none; }
  .portal-brand strong { font-size: 11px; }
  .online-pill { padding-inline: 9px; }
  #logoutButton > span:last-child { display: none; }
  #logoutButton { width: 38px; min-height: 38px; padding: 0; }
  .portal-container { margin-top: 14px; }
  .portal-hero { padding: 34px 17px; border-radius: 22px; }
  .portal-actions .portal-button { flex: 1 1 130px; }
  .portal-panel { padding: 18px 14px; border-radius: 19px; }
  .portal-card { padding: 18px; }
  .portal-section-heading { align-items: flex-start; }
  .portal-section-heading > strong { margin-top: 2px; }
  .feature-card { grid-template-columns: 42px minmax(0, 1fr); }
  .feature-icon { width: 42px; height: 42px; }
  .feature-toggle { grid-column: 1 / -1; width: 100%; }
  .step-track { margin-inline: -4px; }
  .step-dot { width: 30px; height: 30px; }
  .step-track::before { top: 15px; }
  .activation-key-box { display: grid; }
  .copy-key-button { width: 100%; }
  .subscription-countdown { font-size: 30px; }
}

@media (max-height: 720px) and (min-width: 561px) {
  .login-stage { padding-block: 14px; }
  .login-card { padding-block: 24px; }
  .hyper-sigil { width: 62px; height: 62px; border-radius: 19px; }
  .hyper-sigil span { font-size: 25px; }
  .login-kicker { margin-top: 15px; }
  .login-form { margin-top: 20px; gap: 14px; }
  .login-powered { margin-top: 17px; padding-top: 15px; }
}

html.low-power .flow-wave,
html.low-power .login-card::before { animation-duration: 38s; opacity: .05; }

html.low-power .ambient-grid { opacity: .07; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* v2.3 UI refinements */
.hyper-sigil-login {
  box-shadow:
    0 0 0 1px rgba(163,255,228,.25),
    0 0 30px rgba(84,233,191,.32),
    0 0 72px rgba(84,233,191,.14),
    0 18px 42px rgba(54, 209, 170, .28),
    inset 0 1px 0 rgba(255,255,255,.72);
}

.portal-screen {
  display: grid;
  gap: 18px;
}

.centered-portal-panel {
  max-width: 820px;
  margin-inline: auto;
}

.portal-title-panel {
  padding-block: 26px;
}

.contact-stack,
.compact-contact-stack {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.portal-contact-title,
.install-launch-copy {
  margin: 0;
  color: var(--muted);
}

.portal-detail-grid-centered {
  max-width: 980px;
  margin-inline: auto;
}

.centered-card,
.countdown-panel-center,
.install-launch-panel,
.install-screen-header {
  text-align: center;
}

.centered-card dl div {
  display: grid;
  gap: 6px;
}

.centered-card dd,
.centered-card dt {
  text-align: center;
}

.centered-section-heading,
.compact-heading {
  justify-content: center;
  text-align: center;
}

.install-launch-button {
  min-width: 220px;
  margin-inline: auto;
}

.install-screen-header {
  display: grid;
  gap: 16px;
}

.install-screen-actions {
  display: flex;
  justify-content: center;
}

.success-stage.is-success .success-icon {
  color: #67e2bc;
}

.success-stage.is-success .success-warning-label {
  color: #67e2bc;
}

.success-stage.is-danger .success-icon,
.success-stage.is-danger .success-warning-label {
  color: var(--danger);
}

@media (max-width: 560px) {
  .portal-detail-grid-centered {
    max-width: none;
  }

  .install-launch-button {
    width: 100%;
  }
}

/* Running-project v2.3 alignment fixes */
.portal-topbar {
  position: relative;
  top: auto;
}

.portal-screen[hidden] {
  display: none !important;
}

.centered-card .portal-card-icon {
  margin-inline: auto;
}

.centered-card h2,
.centered-card dl {
  text-align: center;
}

.portal-detail-grid-centered {
  align-items: stretch;
}

.install-screen-header .contact-options,
.portal-title-panel .contact-options {
  min-height: 0;
}

@media (max-width: 560px) {
  .portal-topbar {
    position: relative;
    top: auto;
  }

  .portal-brand strong {
    letter-spacing: .055em;
  }

  .login-brand-block h1 strong {
    font-size: clamp(34px, 10.8vw, 46px);
    letter-spacing: -.045em;
  }

  .centered-card {
    padding-inline: 18px;
  }
}


/* v2.3.1 video-flow placement corrections */
.portal-command-hero { padding-block: clamp(34px, 6vw, 54px); }
.portal-command-hero h1 { max-width: 680px; font-size: clamp(28px, 6vw, 46px); line-height: 1.08; }
.portal-command-hero > p { max-width: 520px; }
.portal-primary-actions { display: grid; width: min(250px, 100%); margin: 24px auto 0; }
.portal-primary-actions .portal-button { width: 100%; min-height: 48px; }
.hero-contact-options { max-width: 520px; min-height: 0; margin-inline: auto; }
.install-page-header { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 22px; }
.install-page-title { min-width: 0; text-align: left; }
.install-page-title > span { display: block; margin-bottom: 4px; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.install-page-title h1 { margin: 0; font-size: clamp(24px, 5vw, 34px); line-height: 1.1; }
.install-page-title p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.install-back-button { min-width: 78px; }
.install-status-pill { align-self: start; padding: 9px 13px; color: var(--accent); background: rgba(105,230,197,.075); border: 1px solid rgba(105,230,197,.18); border-radius: 999px; font-size: 11px; letter-spacing: .08em; }
.installation-workspace { padding: clamp(18px,4vw,30px); background: radial-gradient(circle at 50% 0%, rgba(105,230,197,.12), transparent 40%), linear-gradient(180deg, rgba(17,35,49,.9), rgba(7,17,27,.9)); }
.installation-workspace .step-track { margin-top: 2px; }
.installation-workspace .step-flow-card { min-height: 300px; display: grid; align-content: center; }
.installation-workspace .serial-form, .installation-workspace .access-form { align-content: initial; }
@media (max-width: 560px) {
  .portal-command-hero { padding: 30px 18px; }
  .portal-command-hero h1 { font-size: clamp(28px,9vw,38px); }
  .portal-primary-actions { width: min(230px,100%); }
  .portal-detail-grid { margin-top: 0; }
  .install-page-header { grid-template-columns: 1fr auto; gap: 13px; padding: 17px 15px; }
  .install-page-title { grid-column: 1 / -1; grid-row: 1; text-align: left; }
  .install-back-button { grid-column: 1; grid-row: 2; justify-self: start; }
  .install-status-pill { grid-column: 2; grid-row: 2; align-self: center; }
  .installation-workspace { padding: 16px 12px 20px; }
  .installation-workspace .step-track { margin-bottom: 20px; }
  .installation-workspace .step-flow-card { min-height: 330px; padding: 24px 16px; }
}


/* v2.3.2 automatic final result presentation */
.final-result-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(560px, 68vh);
  place-content: center;
  justify-items: center;
  gap: 0;
  overflow: hidden;
  padding: clamp(42px, 8vw, 78px) clamp(18px, 6vw, 52px);
  border: 1px solid rgba(133, 170, 194, .16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 28%, rgba(96, 227, 191, .10), transparent 31%),
    linear-gradient(160deg, rgba(16, 39, 55, .96), rgba(6, 18, 29, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 28px 70px rgba(0,0,0,.22);
}

.final-result-stage::before,
.final-result-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.final-result-stage::before {
  width: 270px;
  height: 270px;
  top: 5%;
  left: calc(50% - 135px);
  opacity: .16;
}

.final-result-stage::after {
  width: 190px;
  height: 190px;
  right: -75px;
  bottom: -70px;
  opacity: .08;
}

.final-result-aura {
  position: absolute;
  z-index: -1;
  width: 250px;
  height: 250px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -76%);
  filter: blur(34px);
  opacity: .22;
  animation: finalAuraPulse 2.8s ease-in-out infinite;
}

.final-result-icon {
  position: relative;
  display: grid;
  width: clamp(112px, 25vw, 154px);
  height: clamp(112px, 25vw, 154px);
  place-items: center;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  font-size: 0;
}

.final-result-icon::before,
.final-result-icon::after,
.final-result-icon span::before,
.final-result-icon span::after {
  content: "";
  position: absolute;
}

.final-result-stage.is-success .final-result-icon {
  border: 3px solid rgba(92, 244, 193, .86);
  background: radial-gradient(circle at 35% 30%, rgba(196,255,235,.98), rgba(65,218,164,.96) 42%, rgba(18,129,93,.98) 100%);
  box-shadow:
    0 0 0 12px rgba(84, 230, 184, .07),
    0 0 42px rgba(72, 235, 184, .38),
    0 22px 58px rgba(10, 118, 87, .34),
    inset 0 2px 2px rgba(255,255,255,.75);
  animation: successIconGlow 2.1s ease-in-out infinite;
}

.final-result-stage.is-success .final-result-icon::before {
  width: 28%;
  height: 53%;
  border-right: clamp(9px, 2vw, 14px) solid #042419;
  border-bottom: clamp(9px, 2vw, 14px) solid #042419;
  transform: translate(-2%, -8%) rotate(45deg);
  border-radius: 3px;
}

.final-result-stage.is-danger .final-result-icon {
  width: clamp(142px, 31vw, 190px);
  height: clamp(124px, 27vw, 166px);
  border-radius: 0;
  filter: drop-shadow(0 0 22px rgba(255, 151, 52, .40)) drop-shadow(0 18px 28px rgba(224, 71, 59, .23));
  animation: warningFloat 2.5s ease-in-out infinite;
}

.final-result-stage.is-danger .final-result-icon::before {
  inset: 0;
  background: linear-gradient(155deg, #ffe17d 0%, #ffad38 52%, #ff743f 100%);
  clip-path: polygon(50% 0, 100% 92%, 0 92%);
}

.final-result-stage.is-danger .final-result-icon::after {
  inset: 12px 15px 23px;
  background: linear-gradient(160deg, rgba(255,247,195,.92), rgba(255,185,57,.92));
  clip-path: polygon(50% 0, 100% 92%, 0 92%);
}

.final-result-stage.is-danger .final-result-icon span::before {
  z-index: 2;
  width: clamp(9px, 2vw, 13px);
  height: 43%;
  top: 34%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #4d3428;
}

.final-result-stage.is-danger .final-result-icon span::after {
  z-index: 2;
  width: clamp(12px, 2.5vw, 17px);
  height: clamp(12px, 2.5vw, 17px);
  left: 50%;
  bottom: 25%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #4d3428;
}

.final-result-label {
  margin: 0 0 14px;
  font-size: clamp(16px, 3.8vw, 23px);
  font-weight: 950;
  letter-spacing: .24em;
  text-indent: .24em;
}

.final-result-message {
  max-width: 720px;
  margin: 0 0 34px !important;
  font-size: clamp(31px, 7vw, 58px) !important;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-align: center;
  overflow-wrap: anywhere;
}

.final-result-button {
  min-width: min(280px, 100%);
  font-size: 17px;
  font-weight: 900;
}

.final-result-stage.is-success::before,
.final-result-stage.is-success .final-result-aura {
  background: #50e6b5;
}

.final-result-stage.is-success::after {
  background: #3cb88e;
}

.final-result-stage.is-success .final-result-label {
  color: #6df0c6;
  text-shadow: 0 0 20px rgba(84, 237, 189, .28);
}

.final-result-stage.is-danger {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 133, 61, .13), transparent 32%),
    linear-gradient(160deg, rgba(35, 26, 40, .97), rgba(11, 16, 29, .99));
}

.final-result-stage.is-danger::before,
.final-result-stage.is-danger .final-result-aura {
  background: #ff703f;
}

.final-result-stage.is-danger::after {
  background: #ff315d;
}

.final-result-stage.is-danger .final-result-label {
  color: #ffb34e;
  text-shadow: 0 0 22px rgba(255, 131, 45, .30);
}

@keyframes successIconGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(84,230,184,.07), 0 0 42px rgba(72,235,184,.34), 0 22px 58px rgba(10,118,87,.31), inset 0 2px 2px rgba(255,255,255,.75); }
  50% { transform: scale(1.035); box-shadow: 0 0 0 17px rgba(84,230,184,.05), 0 0 58px rgba(72,235,184,.48), 0 25px 66px rgba(10,118,87,.38), inset 0 2px 2px rgba(255,255,255,.82); }
}

@keyframes warningFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.025); }
}

@keyframes finalAuraPulse {
  0%, 100% { transform: translate(-50%, -76%) scale(.9); opacity: .15; }
  50% { transform: translate(-50%, -76%) scale(1.12); opacity: .29; }
}

@media (max-width: 560px) {
  .final-result-stage {
    min-height: 500px;
    padding-inline: 18px;
    border-radius: 22px;
  }
  .final-result-message {
    font-size: clamp(30px, 9vw, 45px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .final-result-aura,
  .final-result-icon {
    animation: none !important;
  }
}
