:root {
  --bg: #f5f7f2;
  --surface: #ffffff;
  --surface-soft: #eef4f0;
  --ink: #202522;
  --muted: #66716c;
  --line: #d9dfd8;
  --accent: #0e8f79;
  --accent-dark: #0b6f60;
  --blue: #4059ad;
  --good: #16834b;
  --warn: #b87500;
  --danger: #c23f35;
  --shadow: 0 18px 42px rgba(32, 37, 34, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  letter-spacing: 0;
}

html,
body {
  overflow-x: hidden;
}

html {
  background: var(--bg);
}

html.login-active {
  background: #03050b;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar,
.admin-header,
.dashboard-header,
.section-heading,
.brand,
.button-row,
.copy-row,
.input-action,
.final-meta {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

h2 {
  margin-bottom: 12px;
  font-size: 2rem;
  line-height: 1.1;
}

h3 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.switch-button,
.ghost-button,
.primary-button,
.secondary-button,
.icon-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.switch-button {
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  min-width: 0;
  white-space: nowrap;
}

.switch-button.active {
  color: #ffffff;
  background: var(--ink);
}

main {
  padding-top: 24px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.login-active {
  color: #f8f7ff;
  background:
    radial-gradient(circle at 50% 9%, rgba(144, 42, 255, 0.34), transparent 24%),
    radial-gradient(circle at 15% 62%, rgba(122, 31, 255, 0.22), transparent 28%),
    radial-gradient(circle at 86% 70%, rgba(104, 16, 224, 0.2), transparent 30%),
    linear-gradient(180deg, #03050d 0%, #080712 56%, #03050b 100%);
}

body.login-active .app-shell {
  width: 100%;
  padding: 0;
}

body.login-active .topbar {
  display: none;
}

body.login-active main {
  padding-top: 0;
}

body.login-active #userView.active {
  min-height: 100vh;
}

html.dashboard-active {
  background: #050510;
}

body.dashboard-active {
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 0%, rgba(111, 69, 255, 0.38), transparent 28%),
    radial-gradient(circle at 50% 45%, rgba(171, 74, 255, 0.3), transparent 36%),
    linear-gradient(180deg, #1019bd 0%, #5131e6 38%, #8a3ef4 70%, #22103f 100%);
}

body.dashboard-active .app-shell {
  width: 100%;
  padding: 0;
}

body.dashboard-active .topbar {
  display: none;
}

body.dashboard-active main {
  padding-top: 0;
}

body.dashboard-active #userView.active {
  min-height: 100vh;
}

.dashboard-console {
  position: relative;
  width: min(520px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 52px 20px 58px;
  overflow: hidden;
}

.dashboard-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.08) 12.3%, transparent 12.6% 87.4%, rgba(255, 255, 255, 0.08) 87.7%, transparent 88%),
    repeating-linear-gradient(180deg, transparent 0 42px, rgba(255, 255, 255, 0.04) 43px, transparent 45px);
  opacity: 0.38;
  pointer-events: none;
}

.portal-hero,
.portal-details,
.portal-panel {
  position: relative;
  z-index: 1;
}

.portal-hero {
  padding: 54px 0 18px;
  text-align: center;
}

.portal-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 34px;
}

.portal-topline span {
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
}

.portal-logout {
  min-height: 34px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  font-weight: 800;
}

.portal-hero h2 {
  max-width: 430px;
  margin: 0 auto 26px;
  color: #ffffff;
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  line-height: 1.08;
  font-weight: 500;
  text-shadow: 0 12px 28px rgba(24, 12, 98, 0.28);
}

.portal-hero p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.portal-actions {
  display: grid;
  justify-items: center;
  gap: 11px;
}

.portal-button {
  width: min(205px, 72%);
  min-height: 54px;
  color: #ffffff;
  background: rgba(77, 55, 207, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(28, 12, 110, 0.18);
  font-weight: 900;
}

.primary-portal-button {
  background: rgba(255, 255, 255, 0.08);
}

.portal-message {
  min-height: 22px;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

.portal-details {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.portal-card,
.portal-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow:
    0 18px 40px rgba(35, 16, 126, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(10px);
}

.portal-card {
  padding: 22px 24px;
  text-align: center;
}

.portal-card p {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
}

.portal-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.portal-card div {
  display: flex;
  justify-content: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.88);
}

.portal-card dt {
  font-weight: 900;
}

.portal-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.portal-card .warn {
  color: #ffe084;
}

.portal-card .danger {
  color: #ff9ca3;
}

.portal-panel {
  margin-top: 18px;
  padding: 20px;
}

.portal-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.portal-section-heading span {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-section-heading h3 {
  margin-top: 2px;
  color: #ffffff;
  font-size: 1.35rem;
}

.portal-section-heading strong {
  min-width: max-content;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 0.82rem;
}

body.dashboard-active .feature-grid {
  gap: 12px;
}

.dashboard:not(.install-mode) .install-panel {
  display: none;
}

.dashboard.install-mode .portal-hero,
.dashboard.install-mode .portal-details,
.dashboard.install-mode .feature-panel,
.dashboard.install-mode .game-inject-panel,
.dashboard.install-mode .subscription-panel {
  display: none;
}

.dashboard.install-mode .dashboard-console {
  display: grid;
  align-items: center;
}

.dashboard.install-mode .install-panel {
  display: block;
  min-height: calc(100vh - 110px);
}

.stage-enter {
  animation: stageRise 0.42s ease both;
}

#installState,
.step-track {
  display: none;
}

body.dashboard-active .feature-card {
  background: rgba(8, 10, 35, 0.48);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.console-feature-card {
  grid-template-columns: 52px minmax(0, 1fr);
}

.console-feature-card .feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(26, 17, 109, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.feature-icon.has-image {
  overflow: hidden;
  padding: 0;
}

.feature-icon.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feature-title-row h4 {
  color: #ffffff;
}

.feature-title-row span {
  padding: 5px 8px;
  color: #ffffff;
  background: rgba(43, 217, 134, 0.18);
  border: 1px solid rgba(74, 255, 171, 0.34);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.console-feature-card.is-disabled {
  opacity: 0.58;
}

.console-feature-card.is-switching {
  opacity: 1;
  animation: featurePulse 0.9s ease infinite;
}

.console-feature-card.is-disabled .feature-title-row span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.console-feature-card p {
  color: rgba(255, 255, 255, 0.72);
}

.console-feature-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 12px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-weight: 900;
}

.feature-action-message {
  min-height: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: max-height 0.28s ease, margin 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
  text-align: center;
  font-weight: 900;
}

.feature-action-message.show {
  max-height: 54px;
  margin-top: 14px;
  padding: 10px 12px;
  opacity: 1;
  transform: translateY(0) scale(1);
  background: rgba(43, 217, 134, 0.18);
  border: 1px solid rgba(74, 255, 171, 0.34);
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(74, 255, 171, 0.14);
}

.feature-action-message.neutral {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
}

.game-inject-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.game-inject-actions .portal-button {
  width: 100%;
  min-height: 48px;
  background:
    linear-gradient(135deg, rgba(122, 227, 255, 0.16), rgba(181, 108, 255, 0.18)),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 24px rgba(122, 227, 255, 0.12);
}

.game-inject-actions .portal-button:hover {
  border-color: rgba(122, 227, 255, 0.48);
  box-shadow: 0 0 30px rgba(122, 227, 255, 0.18);
}

.subscription-panel {
  text-align: center;
}

.subscription-countdown {
  margin-top: 12px;
  padding: 16px 14px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(26, 13, 84, 0.74), rgba(11, 18, 70, 0.56)),
    radial-gradient(circle at 50% 0%, rgba(122, 227, 255, 0.24), transparent 62%);
  border: 1px solid rgba(122, 227, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(122, 227, 255, 0.14);
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.35rem, 7vw, 2.15rem);
  font-weight: 900;
  letter-spacing: 0;
}

.subscription-countdown.is-expired {
  color: #ffb4bd;
  border-color: rgba(255, 156, 163, 0.36);
  box-shadow: 0 0 30px rgba(255, 156, 163, 0.14);
}

.subscription-panel p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

body.dashboard-active .install-panel label,
body.dashboard-active .install-panel h4 {
  color: #ffffff;
}

.generated-heading {
  max-width: 360px;
  margin: 18px auto 28px;
  color: #ffffff;
  font-size: clamp(2.1rem, 8vw, 3.45rem);
  line-height: 1.12;
  font-weight: 600;
  text-align: center;
}

.step-flow-card {
  width: min(320px, 100%);
  margin: 0 auto;
  padding: 28px 26px;
  color: #202136;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(31, 15, 118, 0.24);
  text-align: center;
}

.step-flow-card h3,
.step-flow-card h4 {
  margin: 0 0 14px;
  color: #222337 !important;
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 900;
}

.activation-key-box {
  margin: 0 auto 22px;
  padding: 16px 14px;
  border: 2px dashed #1e9be9;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
}

.activation-key-box input {
  min-height: auto;
  padding: 0;
  color: #222337 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 1.12rem;
  font-weight: 800;
  text-align: center;
}

.step-blue-button {
  min-height: 46px;
  padding: 0 24px;
  color: #ffffff;
  background: #0d87e9;
  border: 1px solid #0d87e9;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(12, 104, 220, 0.2);
  font-weight: 800;
}

.serial-flow-card form,
.certificate-flow-card form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  text-align: left;
}

.serial-flow-card form.hidden {
  display: none;
}

.certificate-flow-card form {
  margin-top: 18px;
}

.serial-flow-card label,
.certificate-flow-card label {
  color: #222337 !important;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 800;
}

.serial-flow-card input,
.certificate-flow-card input {
  color: #222337 !important;
  background: #ffffff !important;
  border: 1px solid rgba(32, 33, 54, 0.22) !important;
  box-shadow: none !important;
}

.serial-flow-card .form-message,
.certificate-flow-card .form-message {
  min-height: 20px;
  margin: 0;
  color: #c23f35;
  text-align: center;
}

.serial-verified-panel {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  color: #202136;
  text-align: center;
}

.serial-verified-panel.hidden {
  display: none;
}

.serial-verified-panel strong {
  color: #171829;
  font-size: 1.02rem;
  line-height: 1.28;
}

.serial-verified-panel p {
  margin: 0;
  color: #202136;
  font-size: 0.98rem;
}

.serial-verified-panel span {
  color: #149423;
  font-weight: 900;
}

.loading-flow-card {
  padding: 30px 28px;
}

.loading-flow-card .progress-shell,
.certificate-flow-card .static-progress {
  position: relative;
  height: 25px;
  margin: 4px 0 12px;
  overflow: hidden;
  background: #dbe2ed;
  border: 0;
  border-radius: 8px;
}

.loading-flow-card .progress-shell span,
.certificate-flow-card .static-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: #0d87e9;
}

.loading-flow-card #mainProgressPercent {
  position: relative;
  z-index: 1;
  display: block;
  margin: -31px 0 14px;
  color: #ffffff;
  font-weight: 900;
  text-align: center;
}

.certificate-flow-card .static-progress strong {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  margin: 0;
  color: #ffffff;
  font-weight: 900;
}

.loading-flow-card .progress-status {
  margin: 0;
  color: #33344a;
  font-size: 1rem;
  font-weight: 500;
}

.protection-note {
  margin: 10px 0 0;
  color: #202136;
  font-size: 0.98rem;
  font-weight: 900;
  text-align: center;
}

.certificate-flow-card .static-progress strong {
  font-size: 0.9rem;
}

body.dashboard-active .install-panel input {
  color: #ffffff;
  background: rgba(4, 7, 28, 0.42);
  border-color: rgba(255, 255, 255, 0.22);
}

body.dashboard-active .install-panel input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

body.dashboard-active .install-panel .primary-button,
body.dashboard-active .install-panel .secondary-button,
body.dashboard-active .install-panel .icon-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

body.dashboard-active .step-dot {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

body.dashboard-active .step-dot.active,
body.dashboard-active .step-dot.complete {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.46);
}

body.dashboard-active .progress-status,
body.dashboard-active .final-meta span {
  color: rgba(255, 255, 255, 0.78);
}

body.dashboard-active .progress-shell {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dashboard-active .progress-shell span {
  background: linear-gradient(90deg, #ffffff, #7ae3ff, #b56cff);
}

.final-install-stage {
  text-align: center;
}

.final-install-header {
  margin: 0 auto 22px;
}

.final-install-header span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.final-install-header h3 {
  margin-top: 8px;
  color: #ffffff;
  font-size: clamp(2.2rem, 9vw, 4.1rem);
  line-height: 1.02;
  text-shadow: 0 0 28px rgba(122, 227, 255, 0.34);
}

.final-loader-card {
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 28px 22px 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(122, 227, 255, 0.18), transparent 58%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(10, 12, 44, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow:
    0 24px 54px rgba(11, 11, 48, 0.26),
    0 0 44px rgba(122, 227, 255, 0.16);
}

.final-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ffffff, #7ae3ff, #b56cff, #ffffff);
  animation: spin 1.4s linear infinite;
}

.final-orbit::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: rgba(10, 12, 44, 0.92);
  border-radius: 50%;
}

.final-orbit span {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  background: radial-gradient(circle, #ffffff 0 22%, #7ae3ff 24% 42%, transparent 44%);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(122, 227, 255, 0.56);
}

.final-loader-card .progress-status {
  min-height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  line-height: 1.28;
  font-weight: 900;
}

.final-progress-shell {
  height: 24px;
  margin-bottom: 12px;
  background: rgba(4, 7, 28, 0.48) !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.24);
}

.final-progress-shell span {
  background: linear-gradient(90deg, #7ae3ff, #ffffff, #b56cff) !important;
  box-shadow: 0 0 20px rgba(122, 227, 255, 0.55);
}

#finalProgressPercent {
  display: inline-grid;
  place-items: center;
  min-width: 76px;
  min-height: 40px;
  margin-top: 2px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 900;
}

.final-phase-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 800;
}

.hyper-login {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  min-height: 100vh;
  padding: 76px 20px 46px;
  overflow: hidden;
}

.hyper-login::before,
.hyper-login::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hyper-login::before {
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(142, 45, 255, 0.38) 7.1%, transparent 7.4% 92.6%, rgba(142, 45, 255, 0.38) 92.9%, transparent 93.2%),
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(119, 38, 255, 0.11) 89px, transparent 91px),
    repeating-linear-gradient(180deg, transparent 0 28px, rgba(99, 20, 210, 0.05) 29px, transparent 31px);
  opacity: 0.55;
}

.hyper-login::after {
  background:
    radial-gradient(circle at 50% 5%, rgba(179, 107, 255, 0.65), transparent 4%),
    radial-gradient(circle at 10% 38%, rgba(138, 40, 255, 0.36), transparent 6%),
    radial-gradient(circle at 90% 39%, rgba(138, 40, 255, 0.36), transparent 6%);
  filter: blur(20px);
  opacity: 0.75;
}

.cyber-frame {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 58px 32px 30px;
  background: rgba(4, 5, 15, 0.78);
  border: 1px solid rgba(147, 54, 255, 0.62);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(111, 36, 255, 0.16) inset,
    0 0 54px rgba(105, 33, 255, 0.28),
    0 20px 80px rgba(0, 0, 0, 0.64);
}

.cyber-frame::before,
.cyber-frame::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, transparent, #8c34ff 20%, #c99cff 50%, #7c22ff 80%, transparent);
  box-shadow: 0 0 18px rgba(142, 55, 255, 0.95);
}

.cyber-frame::before {
  left: 42px;
}

.cyber-frame::after {
  right: 42px;
}

.circuit-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(25%, 260px);
  opacity: 0.48;
  pointer-events: none;
}

.rail-left {
  left: 0;
  background:
    linear-gradient(135deg, transparent 14%, rgba(125, 35, 255, 0.62) 14.3%, transparent 14.8% 34%, rgba(125, 35, 255, 0.45) 34.3%, transparent 35%),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(139, 45, 255, 0.38) 45px, transparent 47px);
}

.rail-right {
  right: 0;
  transform: scaleX(-1);
  background:
    linear-gradient(135deg, transparent 14%, rgba(125, 35, 255, 0.62) 14.3%, transparent 14.8% 34%, rgba(125, 35, 255, 0.45) 34.3%, transparent 35%),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(139, 45, 255, 0.38) 45px, transparent 47px);
}

.hyper-hero {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 50px;
}

.hyper-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 104px;
  margin-bottom: 22px;
  color: #ffffff;
  filter: drop-shadow(0 0 18px rgba(142, 51, 255, 0.9));
}

.hyper-logo::before,
.hyper-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 5px solid #8e35ff;
  clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%);
  background: linear-gradient(145deg, rgba(122, 37, 255, 0.18), rgba(10, 8, 24, 0.95));
}

.hyper-logo::after {
  inset: 16px;
  border-width: 3px;
  border-color: rgba(197, 168, 255, 0.66);
  background: rgba(10, 9, 25, 0.82);
}

.hyper-logo span {
  position: relative;
  z-index: 1;
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, #ffffff 0%, #a85eff 46%, #651cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hyper-hero h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 5.7vw, 4.25rem);
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}

.hyper-hero h2 span,
.hyper-copyright span,
.powered-line em,
.login-admin-link {
  color: #a53dff;
}

.hyper-hero p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.9rem, 2.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hyper-hero p span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #9b32ff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(155, 50, 255, 0.9);
}

.hyper-card.login-panel {
  position: relative;
  z-index: 2;
  display: block;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 104px 40px 36px;
  background: rgba(8, 8, 22, 0.78);
  border: 1px solid rgba(162, 86, 255, 0.43);
  border-radius: 8px;
  box-shadow:
    0 0 34px rgba(112, 31, 255, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  text-align: center;
}

.lock-orb {
  position: absolute;
  top: -49px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 42%, #30254f 0%, #110c23 58%, #090613 100%);
  border: 4px solid #9e4cff;
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(152, 62, 255, 0.85);
}

.lock-orb span,
.input-lock {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 24px;
  border: 4px solid currentColor;
  border-radius: 5px;
  color: #ffffff;
}

.lock-orb span::before,
.input-lock::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 24px;
  height: 24px;
  border: 4px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  transform: translateX(-50%);
}

.lock-orb span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 5px;
  height: 9px;
  background: currentColor;
  border-radius: 5px;
  transform: translateX(-50%);
}

.login-intro h3 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(1.45rem, 4.2vw, 2rem);
  font-weight: 900;
}

.login-intro p {
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2.7vw, 1.25rem);
}

.password-shell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  margin-bottom: 22px;
  padding: 0 18px;
  background: rgba(5, 6, 17, 0.76);
  border: 1px solid rgba(159, 103, 255, 0.32);
  border-radius: 8px;
}

.password-shell:focus-within {
  border-color: rgba(176, 91, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(147, 52, 255, 0.17), 0 0 22px rgba(147, 52, 255, 0.2);
}

.input-lock {
  width: 25px;
  height: 23px;
  border-width: 3px;
  color: rgba(218, 210, 255, 0.58);
}

.input-lock::before {
  width: 21px;
  height: 21px;
  border-width: 3px;
  bottom: 15px;
}

.password-shell input {
  min-height: 68px;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
}

.password-shell input::placeholder {
  color: rgba(218, 210, 255, 0.52);
}

.password-shell input:focus {
  box-shadow: none;
}

.password-toggle {
  min-height: 38px;
  color: #b45aff;
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  font-weight: 900;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.remember-line {
  display: inline-flex;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.remember-line input {
  width: 26px;
  min-height: 26px;
  accent-color: #7b24ff;
}

.login-options p {
  margin: 0;
}

.login-admin-link {
  padding: 0;
  background: transparent;
  border: 0;
  font-weight: 800;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 72px;
  color: #ffffff;
  background: linear-gradient(100deg, #7b22ff 0%, #8d2bff 42%, #3d00c8 100%);
  border: 1px solid rgba(196, 137, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 0 26px rgba(117, 32, 255, 0.4);
  font-size: clamp(1.25rem, 3.4vw, 1.65rem);
  font-weight: 900;
}

.login-submit:hover {
  background: linear-gradient(100deg, #8d35ff 0%, #9f43ff 42%, #4c09db 100%);
}

.login-submit span {
  font-size: 2rem;
  line-height: 1;
}

.hyper-card .form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: #ff6b8a;
  text-shadow: 0 0 14px rgba(255, 54, 105, 0.45);
}

.secure-note {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 30px;
  padding: 24px;
  text-align: left;
  background: rgba(8, 9, 22, 0.82);
  border: 1px solid rgba(149, 88, 255, 0.3);
  border-radius: 8px;
}

.secure-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.secure-note strong {
  color: #ffffff;
}

.shield-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 58px;
  color: #b75cff;
  filter: drop-shadow(0 0 12px rgba(166, 80, 255, 0.8));
}

.shield-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid currentColor;
  clip-path: polygon(50% 0, 92% 16%, 88% 66%, 50% 100%, 12% 66%, 8% 16%);
}

.shield-mark::after {
  content: "";
  width: 23px;
  height: 12px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(-45deg);
}

.hyper-copyright {
  position: relative;
  z-index: 2;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.56);
  text-align: center;
  font-size: 1rem;
}

.login-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(900px, 100%);
  margin: 0 auto;
  color: #ffffff;
  text-align: center;
}

.login-benefits article {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 152px;
  padding: 0 30px;
  border-right: 1px solid rgba(168, 112, 255, 0.22);
}

.login-benefits article:last-child {
  border-right: 0;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(160, 73, 255, 0.55);
  border-radius: 50%;
  background: rgba(54, 14, 104, 0.3);
  color: #b65aff;
  box-shadow: 0 0 22px rgba(122, 38, 255, 0.3);
}

.benefit-icon.shield-mark {
  border-radius: 50%;
}

.benefit-icon.shield-mark::before {
  inset: 18px 20px 14px;
  border-width: 3px;
}

.benefit-icon.shield-mark::after {
  width: 15px;
  height: 8px;
  border-left-width: 3px;
  border-bottom-width: 3px;
}

.bolt-mark,
.support-mark {
  font-weight: 900;
}

.login-benefits h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.login-benefits p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.powered-line {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(40px, 160px) auto minmax(40px, 160px);
  gap: 28px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: clamp(1rem, 3vw, 1.45rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.12em;
}

.powered-line span {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b27ff);
  box-shadow: 0 0 14px rgba(139, 39, 255, 0.95);
}

.powered-line span:last-child {
  background: linear-gradient(90deg, #8b27ff, transparent);
}

.powered-line em {
  font-style: normal;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: 20px;
  align-items: stretch;
}

body.login-active .hyper-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.login-copy,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-copy {
  min-height: 360px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-copy h2 {
  max-width: 620px;
}

.flow-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.flow-line span {
  padding: 8px 10px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.panel {
  padding: 20px;
}

.login-panel {
  display: flex;
  align-items: center;
}

.login-panel form {
  width: 100%;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 143, 121, 0.16);
}

.input-action {
  gap: 8px;
}

.input-action input {
  flex: 1 1 auto;
}

.primary-button {
  padding: 0 16px;
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button,
.ghost-button,
.icon-button {
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  background: var(--surface-soft);
}

.ghost-button.compact {
  min-height: 34px;
  padding: 0 10px;
}

.form-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-message.neutral {
  color: var(--muted);
}

.form-message.ok {
  color: var(--good);
}

.dashboard,
.admin-header,
.package-list-panel {
  margin-top: 0;
}

.dashboard-header,
.admin-header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

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

.summary-tile {
  min-height: 96px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-tile span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.summary-tile strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.status-pill,
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  color: #ffffff;
  background: var(--good);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.muted,
.count-pill {
  color: var(--ink);
  background: var(--surface-soft);
}

.status-pill.warn {
  background: var(--warn);
}

.status-pill.danger {
  background: var(--danger);
}

.feature-grid {
  display: grid;
  gap: 10px;
}

.feature-card,
.list-item,
.access-row {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 900;
}

.feature-card h4,
.list-item h4,
.access-row h4 {
  margin: 0 0 6px;
}

.feature-card p,
.list-item p,
.access-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.install-panel {
  min-height: 430px;
}

.step-track {
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.step-dot {
  display: grid;
  place-items: center;
  height: 32px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.step-dot.active {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.step-dot.complete {
  color: #ffffff;
  background: var(--good);
  border-color: var(--good);
}

.install-stage {
  padding-top: 4px;
}

button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

button.is-loading::before {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.78s linear infinite;
}

.button-row {
  flex-wrap: wrap;
  gap: 10px;
}

.copy-row {
  gap: 8px;
  margin-bottom: 16px;
}

.copy-row input {
  flex: 1 1 auto;
  font-weight: 900;
}

.progress-status {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}

.progress-shell {
  width: 100%;
  height: 14px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.progress-shell span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

#mainProgressPercent,
#finalProgressPercent {
  display: block;
  margin-top: 10px;
}

.final-meta {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.final-meta span {
  color: var(--muted);
  font-weight: 800;
}

.success-stage {
  text-align: center;
}

.success-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  color: #ffffff;
  background: var(--good);
  border-radius: 8px;
  font-weight: 900;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-settings-panel {
  margin-bottom: 16px;
}

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

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

.feature-picker {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-picker legend {
  padding: 0 6px;
  font-weight: 900;
}

#featurePicker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
}

.checkbox-line input {
  width: 16px;
  min-height: 16px;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.list-item-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.list-item-heading .feature-icon {
  flex: 0 0 auto;
}

.list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.list-actions button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-weight: 800;
}

.list-actions button:hover {
  background: var(--surface-soft);
}

.list-actions .danger-action {
  color: #ffffff;
  background: var(--danger);
  border-color: var(--danger);
}

.package-list-panel {
  margin-top: 16px;
}

.access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

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

.access-meta span {
  padding: 5px 8px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 920px) {
  .topbar,
  .login-layout,
  .dashboard-grid,
  .admin-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .dashboard-header,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .switch-button {
    flex: 1 1 0;
  }

  .summary-grid {
    display: grid;
  }

  body.login-active .hyper-login {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dashboard-active .app-shell {
    width: 100%;
    padding: 0;
  }

  .cyber-frame {
    padding: 46px 20px 26px;
  }

  .cyber-frame::before,
  .cyber-frame::after,
  .circuit-rail {
    opacity: 0.28;
  }

  .hyper-card.login-panel {
    padding: 88px 24px 28px;
  }

  .login-benefits {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .login-benefits article {
    min-height: auto;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(168, 112, 255, 0.22);
  }

  .login-benefits article:last-child {
    border-bottom: 0;
  }
}

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

  .login-copy,
  .panel {
    padding: 16px;
  }

  .login-copy {
    min-height: auto;
  }

  h2 {
    font-size: 1.6rem;
  }

  .two-column,
  #featurePicker,
  .input-action,
  .copy-row,
  .access-row {
    grid-template-columns: 1fr;
  }

  .input-action,
  .copy-row,
  .access-row {
    display: grid;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .icon-button {
    width: 100%;
  }

  .switch-button {
    padding: 0 8px;
  }

  .flow-line span {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  body.login-active .app-shell {
    width: 100%;
  }

  body.dashboard-active .app-shell {
    width: 100%;
    padding: 0;
  }

  .dashboard-console {
    padding: 22px 12px 42px;
  }

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

  .portal-card div {
    flex-direction: column;
    gap: 3px;
  }

  .game-inject-actions {
    grid-template-columns: 1fr;
  }

  body.login-active .hyper-login {
    gap: 24px;
    padding: 28px 10px 34px;
  }

  .cyber-frame {
    padding: 32px 12px 22px;
  }

  .cyber-frame::before,
  .cyber-frame::after,
  .circuit-rail {
    display: none;
  }

  .hyper-logo {
    width: 92px;
    height: 82px;
    margin-bottom: 18px;
  }

  .hyper-logo span {
    font-size: 2.9rem;
  }

  .hyper-hero {
    margin-bottom: 42px;
  }

  .hyper-hero p {
    flex-wrap: wrap;
    gap: 10px;
    letter-spacing: 0.08em;
  }

  .hyper-card.login-panel {
    padding: 74px 14px 22px;
  }

  .lock-orb {
    top: -42px;
    width: 84px;
    height: 84px;
  }

  .password-shell {
    grid-template-columns: 32px minmax(0, 1fr) 56px;
    gap: 8px;
    min-height: 62px;
    padding: 0 12px;
  }

  .password-shell input {
    min-height: 60px;
  }

  .password-toggle {
    font-size: 0.72rem;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .secure-note {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 18px;
  }

  .powered-line {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .powered-line span {
    width: min(180px, 70%);
    margin: 0 auto;
  }
}

/* Fixed no-scroll login viewport */
html.login-active,
body.login-active {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.login-active .app-shell,
body.login-active main,
body.login-active #userView.active,
body.login-active #loginView {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

body.login-active .hyper-login {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-content: center;
  gap: clamp(6px, 1.2dvh, 14px);
  padding: clamp(10px, 2dvh, 22px) clamp(12px, 2vw, 24px);
}

body.login-active .cyber-frame {
  display: grid;
  align-content: center;
  width: min(860px, 88vw);
  max-height: calc(100dvh - 156px);
  padding: clamp(18px, 2.2dvh, 30px) clamp(22px, 3vw, 32px) clamp(14px, 1.8dvh, 22px);
  overflow: hidden;
}

body.login-active .cyber-frame::before,
body.login-active .cyber-frame::after {
  top: 12px;
  bottom: 12px;
}

body.login-active .hyper-hero {
  margin-bottom: clamp(20px, 3.4dvh, 34px);
}

body.login-active .hyper-logo {
  width: clamp(58px, 8dvh, 88px);
  height: clamp(52px, 7dvh, 78px);
  margin-bottom: clamp(10px, 1.5dvh, 16px);
}

body.login-active .hyper-logo span {
  font-size: clamp(2rem, 5.4dvh, 3rem);
}

body.login-active .hyper-logo::after {
  inset: 11px;
}

body.login-active .hyper-hero h2 {
  font-size: clamp(1.55rem, 4.6dvh, 3rem);
}

body.login-active .hyper-hero p {
  gap: clamp(8px, 1.2vw, 16px);
  margin-top: clamp(10px, 1.6dvh, 16px);
  font-size: clamp(0.76rem, 1.65dvh, 1.05rem);
}

body.login-active .hyper-card.login-panel {
  width: min(590px, 100%);
  padding: clamp(52px, 7dvh, 76px) clamp(18px, 3vw, 34px) clamp(14px, 2dvh, 24px);
}

body.login-active .lock-orb {
  top: calc(clamp(58px, 7.8dvh, 76px) / -2);
  width: clamp(58px, 7.8dvh, 76px);
  height: clamp(58px, 7.8dvh, 76px);
}

body.login-active .lock-orb span {
  width: 22px;
  height: 20px;
  border-width: 3px;
}

body.login-active .lock-orb span::before {
  width: 20px;
  height: 20px;
  border-width: 3px;
  bottom: 13px;
}

body.login-active .login-intro h3 {
  margin-bottom: clamp(8px, 1.3dvh, 14px);
  font-size: clamp(1.15rem, 2.8dvh, 1.55rem);
}

body.login-active .login-intro p {
  margin-bottom: clamp(16px, 2.2dvh, 24px);
  font-size: clamp(0.86rem, 1.8dvh, 1.05rem);
}

body.login-active .password-shell {
  min-height: clamp(50px, 6.6dvh, 62px);
  margin-bottom: clamp(12px, 1.8dvh, 18px);
}

body.login-active .password-shell input {
  min-height: clamp(48px, 6.2dvh, 60px);
}

body.login-active .login-options {
  margin-bottom: clamp(14px, 2dvh, 22px);
  font-size: clamp(0.86rem, 1.7dvh, 1rem);
}

body.login-active .remember-line {
  font-size: inherit;
}

body.login-active .remember-line input {
  width: 22px;
  min-height: 22px;
}

body.login-active .login-submit {
  min-height: clamp(50px, 6.5dvh, 62px);
  font-size: clamp(1rem, 2.35dvh, 1.35rem);
}

body.login-active .secure-note {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  margin-top: clamp(14px, 2dvh, 22px);
  padding: clamp(12px, 1.8dvh, 18px);
  font-size: clamp(0.78rem, 1.65dvh, 0.96rem);
}

body.login-active .shield-mark {
  width: 40px;
  height: 45px;
}

body.login-active .hyper-copyright {
  margin-top: clamp(10px, 1.5dvh, 16px);
  font-size: clamp(0.78rem, 1.55dvh, 0.95rem);
}

body.login-active .login-benefits {
  width: min(760px, 86vw);
  min-height: 72px;
}

body.login-active .login-benefits article {
  min-height: 72px;
  gap: 5px;
  padding: 0 clamp(8px, 2vw, 22px);
}

body.login-active .benefit-icon {
  width: clamp(42px, 5.8dvh, 58px);
  height: clamp(42px, 5.8dvh, 58px);
}

body.login-active .login-benefits h3 {
  font-size: clamp(0.75rem, 1.55dvh, 0.92rem);
}

body.login-active .login-benefits p {
  font-size: clamp(0.72rem, 1.45dvh, 0.88rem);
}

body.login-active .powered-line {
  grid-template-columns: minmax(40px, 130px) auto minmax(40px, 130px);
  gap: clamp(10px, 2vw, 24px);
  font-size: clamp(0.82rem, 1.8dvh, 1.12rem);
}

@media (max-width: 640px) {
  body.login-active .hyper-login {
    gap: 8px;
    padding: 8px;
  }

  body.login-active .cyber-frame {
    width: min(100%, 430px);
    max-height: calc(100dvh - 112px);
    padding: 12px 10px 10px;
  }

  body.login-active .hyper-hero {
    margin-bottom: 22px;
  }

  body.login-active .hyper-logo {
    width: clamp(46px, 8dvh, 64px);
    height: clamp(42px, 7dvh, 56px);
  }

  body.login-active .hyper-logo span {
    font-size: clamp(1.55rem, 5dvh, 2.1rem);
  }

  body.login-active .hyper-hero h2 {
    font-size: clamp(1.35rem, 4.8dvh, 2rem);
  }

  body.login-active .hyper-card.login-panel {
    padding: 46px 14px 14px;
  }

  body.login-active .secure-note {
    grid-template-columns: 36px minmax(0, 1fr);
    text-align: left;
  }

  body.login-active .login-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 430px);
    gap: 0;
  }

  body.login-active .login-benefits article {
    min-height: 62px;
    padding: 0 5px;
    border-right: 1px solid rgba(168, 112, 255, 0.22);
    border-bottom: 0;
  }

  body.login-active .login-benefits article:last-child {
    border-right: 0;
  }

  body.login-active .powered-line {
    grid-template-columns: 52px auto 52px;
    gap: 8px;
    white-space: nowrap;
  }
}

@media (max-height: 760px) {
  body.login-active .secure-note {
    display: none;
  }

  body.login-active .cyber-frame {
    max-height: calc(100dvh - 118px);
  }
}

/* Hyper Regedit white/gold login theme */
html.login-active {
  background: #f7f3ea;
}

body.login-active {
  color: #15110b;
  background:
    radial-gradient(circle at 50% 9%, rgba(219, 175, 91, 0.18), transparent 18%),
    radial-gradient(circle at 16% 20%, rgba(197, 138, 49, 0.1), transparent 22%),
    radial-gradient(circle at 84% 24%, rgba(197, 138, 49, 0.08), transparent 20%),
    linear-gradient(180deg, #fffdf7 0%, #f8f3ea 48%, #fffaf1 100%);
}

body.login-active .hyper-login {
  background: rgba(255, 255, 255, 0.18);
}

body.login-active .hyper-login::before,
body.login-active .hyper-login::after,
body.login-active .circuit-rail,
body.login-active .cyber-frame::before,
body.login-active .cyber-frame::after {
  display: none;
}

body.login-active .cyber-frame {
  width: min(790px, 90vw);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body.login-active .hyper-logo {
  width: clamp(64px, 9dvh, 96px);
  height: clamp(58px, 8dvh, 86px);
  filter: drop-shadow(0 10px 20px rgba(184, 126, 35, 0.26));
}

body.login-active .hyper-logo::before {
  border-color: #c58a31;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 28px rgba(197, 138, 49, 0.26);
}

body.login-active .hyper-logo::after {
  inset: 12px;
  border-color: rgba(197, 138, 49, 0.46);
  background: rgba(255, 255, 255, 0.68);
}

body.login-active .hyper-logo span {
  color: #b77a24;
  background: linear-gradient(180deg, #6f4718, #d3a14f 56%, #8f5f20);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  text-shadow: none;
}

body.login-active .hyper-hero h2 {
  color: #11100d;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-shadow: 0 4px 16px rgba(255, 255, 255, 0.84);
}

body.login-active .hyper-hero h2 span,
body.login-active .hyper-copyright span,
body.login-active .powered-line em,
body.login-active .login-admin-link {
  color: #b97d25;
}

body.login-active .hyper-hero h2 span {
  display: block;
  margin-top: 0.25em;
  background: linear-gradient(180deg, #8f5f20, #d4a75b, #9c661f);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.28em;
}

body.login-active .hyper-hero p {
  color: #15110b;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.9);
}

body.login-active .hyper-hero p span {
  background: #c58a31;
  box-shadow: 0 0 12px rgba(197, 138, 49, 0.5);
}

body.login-active .hyper-card.login-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(197, 138, 49, 0.18);
  box-shadow:
    0 22px 48px rgba(90, 64, 27, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.84) inset;
  backdrop-filter: blur(10px);
}

body.login-active .lock-orb {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(197, 138, 49, 0.18);
  box-shadow:
    0 12px 26px rgba(90, 64, 27, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.86) inset;
}

body.login-active .lock-orb span,
body.login-active .lock-orb span::before,
body.login-active .input-lock,
body.login-active .input-lock::before {
  border-color: #c58a31;
}

body.login-active .lock-orb span::after,
body.login-active .input-lock::after {
  background: #c58a31;
}

body.login-active .login-intro h3,
body.login-active .login-submit {
  color: #11100d;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
}

body.login-active .login-intro p,
body.login-active .login-options,
body.login-active .login-options p,
body.login-active .hyper-copyright,
body.login-active .login-benefits h3,
body.login-active .powered-line {
  color: #15110b;
}

body.login-active .password-shell {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(197, 138, 49, 0.14);
  box-shadow:
    0 12px 24px rgba(90, 64, 27, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

body.login-active .password-shell input {
  color: #15110b;
}

body.login-active .password-shell input::placeholder {
  color: rgba(21, 17, 11, 0.72);
}

body.login-active .password-toggle {
  color: #9c661f;
}

body.login-active .remember-line input {
  accent-color: #c58a31;
}

body.login-active .login-submit {
  color: #11100d;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(197, 138, 49, 0.24);
  box-shadow:
    0 12px 24px rgba(90, 64, 27, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.82) inset;
}

body.login-active .login-submit span {
  color: #c58a31;
}

body.login-active .secure-note {
  display: none;
}

body.login-active .hyper-card .form-message {
  color: #b03932;
  text-shadow: none;
}

body.login-active .hyper-card .form-message.ok,
body.login-active .hyper-card .form-message.neutral {
  color: #176b36;
}

body.login-active .login-benefits article {
  border-right-color: rgba(197, 138, 49, 0.36);
}

body.login-active .benefit-icon {
  color: #b97d25;
  border-color: rgba(197, 138, 49, 0.24);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 26px rgba(90, 64, 27, 0.09);
}

body.login-active .login-benefits p {
  color: rgba(21, 17, 11, 0.66);
}

body.login-active .powered-line span {
  background: linear-gradient(90deg, transparent, #c58a31);
  box-shadow: 0 0 14px rgba(197, 138, 49, 0.5);
}

body.login-active .powered-line span:last-child {
  background: linear-gradient(90deg, #c58a31, transparent);
}

@keyframes stageRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes featurePulse {
  0%,
  100% {
    box-shadow: 0 12px 30px rgba(74, 255, 171, 0.08);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 16px 40px rgba(74, 255, 171, 0.18);
    transform: scale(1.01);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile login icon alignment */
@media (max-width: 640px) {
  body.login-active .hyper-logo {
    width: 54px;
    height: 48px;
    margin-bottom: 10px;
  }

  body.login-active .hyper-logo::before {
    border-width: 3px;
  }

  body.login-active .hyper-logo::after {
    inset: 8px;
    border-width: 2px;
  }

  body.login-active .hyper-logo span {
    font-size: 1.9rem;
    line-height: 1;
  }

  body.login-active .lock-orb {
    top: -31px;
    width: 62px;
    height: 62px;
    border-width: 1px;
  }

  body.login-active .lock-orb span {
    width: 19px;
    height: 17px;
    border-width: 3px;
    border-radius: 4px;
  }

  body.login-active .lock-orb span::before {
    width: 17px;
    height: 17px;
    bottom: 11px;
    border-width: 3px;
  }

  body.login-active .lock-orb span::after {
    top: 6px;
    width: 4px;
    height: 8px;
  }

  body.login-active .input-lock {
    width: 23px;
    height: 21px;
    border-width: 3px;
    border-radius: 4px;
  }

  body.login-active .input-lock::before {
    width: 19px;
    height: 19px;
    bottom: 13px;
    border-width: 3px;
  }

  body.login-active .hyper-copyright {
    display: block;
    width: min(100%, 430px);
    margin: 8px auto 8px;
    padding: 0 12px;
    font-size: 0.78rem;
    line-height: 1.3;
    text-align: center;
  }

  body.login-active .login-benefits {
    align-items: start;
    width: min(100%, 430px);
    min-height: 86px;
    margin: 0 auto;
  }

  body.login-active .login-benefits article {
    grid-template-rows: 44px auto auto;
    align-items: start;
    justify-items: center;
    min-height: 86px;
    gap: 4px;
    padding: 0 4px;
  }

  body.login-active .login-benefits .benefit-icon {
    display: grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0 auto;
    border-width: 1px;
    border-radius: 50%;
    font-size: 0.95rem;
    line-height: 1;
  }

  body.login-active .login-benefits .benefit-icon.shield-mark::before {
    inset: 10px 12px 8px;
    border-width: 2px;
  }

  body.login-active .login-benefits .benefit-icon.shield-mark::after {
    width: 10px;
    height: 6px;
    border-left-width: 2px;
    border-bottom-width: 2px;
    transform: rotate(-45deg) translate(-1px, -1px);
  }

  body.login-active .login-benefits .bolt-mark,
  body.login-active .login-benefits .support-mark {
    font-size: 0.9rem;
    font-weight: 900;
  }

  body.login-active .login-benefits h3 {
    font-size: 0.72rem;
    line-height: 1.15;
    min-height: 1.7em;
  }

  body.login-active .login-benefits p {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  body.login-active .powered-line {
    margin-top: 4px;
    font-size: 0.78rem;
  }
}
