:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(8, 8, 8, 0.86);
  --panel-strong: rgba(5, 5, 5, 0.96);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: #9b9b9b;
  --cyan: #f4f4f4;
  --mint: #d8d8d8;
  --violet: #b8b8b8;
  --deep: #050505;
  --lime: #ededed;
  --starlight: #ffffff;
  --rose: #cfcfcf;
  --nebula-blue: rgba(255, 255, 255, 0.08);
  --nebula-violet: rgba(255, 255, 255, 0.06);
  --nebula-pink: rgba(255, 255, 255, 0.05);
  --shadow: 0 34px 120px rgba(0, 0, 0, 0.64);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Rajdhani", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(760px circle at 50% 34%, rgba(255, 255, 255, 0.085), transparent 64%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(4, 4, 4, 0.99) 54%, rgba(0, 0, 0, 1)),
    var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(780px circle at 50% 36%, rgba(255, 255, 255, 0.09), transparent 68%),
    radial-gradient(620px circle at 9% 52%, rgba(255, 255, 255, 0.055), transparent 70%),
    linear-gradient(180deg, rgba(16, 16, 16, 0.88), rgba(5, 5, 5, 0.98) 64%, rgba(0, 0, 0, 1));
  background-size: 88px 88px, 88px 88px, auto, auto, auto;
  opacity: 1;
  filter: saturate(0) contrast(1.02);
  animation: galaxy-drift 28s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(420px circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(255, 255, 255, 0.075), transparent 58%),
    radial-gradient(260px circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(255, 255, 255, 0.045), transparent 72%);
  opacity: 0;
  transition: opacity 220ms ease;
}

body.mouse-active::after {
  opacity: 1;
}

#warp-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.08;
  mix-blend-mode: screen;
}

.cursor-halo,
.cursor-dot {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: transform, opacity;
}

.cursor-halo {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.055), transparent 58%),
    rgba(255, 255, 255, 0.018);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.05);
  transform: translate3d(-80px, -80px, 0);
  transition: opacity 180ms ease, width 160ms ease, height 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dff8ff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.38);
  transform: translate3d(-80px, -80px, 0);
}

body.mouse-active .cursor-halo,
body.mouse-active .cursor-dot {
  opacity: 1;
}

body.cursor-press .cursor-halo {
  width: 36px;
  height: 36px;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.055);
}

body.cursor-hover .cursor-halo {
  width: 64px;
  height: 64px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.045);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 20px;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px circle at 50% 38%, rgba(255, 255, 255, 0.028), transparent 72%);
  opacity: 0.46;
  mix-blend-mode: screen;
}

.shell {
  width: min(1240px, calc(100% - 56px));
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(430px, 540px);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.hero {
  position: relative;
  min-width: 0;
  max-width: 760px;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.24);
}

.hero-art {
  position: relative;
  isolation: isolate;
  width: min(390px, 72vw);
  aspect-ratio: 1;
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(248, 251, 255, 0.14), rgba(255, 255, 255, 0.07) 38%, rgba(255, 255, 255, 0.08) 76%),
    rgba(3, 5, 15, 0.72);
  box-shadow:
    0 28px 92px rgba(0, 0, 0, 0.62),
    0 0 44px rgba(255, 255, 255, 0.22),
    0 0 88px rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease, box-shadow 280ms ease, filter 260ms ease;
  will-change: transform;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(124deg, transparent 0 18%, rgba(255, 255, 255, 0.22) 30%, transparent 42% 100%),
    radial-gradient(1px 1px at 18% 24%, rgba(255, 255, 255, 0.8) 50%, transparent 56%),
    radial-gradient(1px 1px at 74% 14%, rgba(255, 191, 245, 0.72) 50%, transparent 56%),
    radial-gradient(1px 1px at 82% 72%, rgba(117, 219, 255, 0.74) 50%, transparent 56%);
  mix-blend-mode: screen;
  opacity: 0.72;
  transition: opacity 240ms ease, background 260ms ease;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -72px 92px rgba(2, 4, 10, 0.24);
  transition: box-shadow 260ms ease;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05) brightness(0.98);
  transform: scale(1);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 280ms ease;
}

.hero-art:hover {
  border-color: rgba(248, 251, 255, 0.68);
  box-shadow:
    0 34px 104px rgba(0, 0, 0, 0.64),
    0 0 62px rgba(255, 255, 255, 0.36),
    0 0 118px rgba(255, 255, 255, 0.24);
  filter: drop-shadow(0 0 22px rgba(248, 251, 255, 0.2));
  transform: translateY(-8px) scale(1.025);
}

.hero-art:hover::before {
  opacity: 1;
  background:
    linear-gradient(120deg, transparent 8%, rgba(248, 251, 255, 0.22), transparent 38%),
    radial-gradient(circle at 70% 16%, rgba(240, 171, 252, 0.22), transparent 36%);
}

.hero-art:hover::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 -72px 92px rgba(2, 4, 10, 0.18);
}

.hero-art:hover img {
  filter: saturate(1.2) contrast(1.09) brightness(1.04);
  transform: scale(1.065);
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.15), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.12)),
    rgba(5, 8, 21, 0.68);
  color: #f3f7ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.08), 0 0 28px rgba(255, 255, 255, 0.12);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.86), 0 0 30px rgba(255, 255, 255, 0.42);
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  margin: 22px 0 14px;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(56px, 6.2vw, 92px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: #f8fbff;
  text-transform: uppercase;
  text-shadow:
    0 0 16px rgba(248, 251, 255, 0.28),
    0 0 34px rgba(255, 255, 255, 0.2),
    0 10px 34px rgba(0, 0, 0, 0.42);
}

.brand-word {
  color: #f7faff;
}

.brand-divider {
  color: #dce5ff;
  padding-inline: 0.05em;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.32),
    0 0 28px rgba(255, 255, 255, 0.18);
}

.brand-x {
  display: inline-block;
  min-width: 0.78em;
  color: #d6d6d6;
  text-align: center;
  transform: translateY(0.018em);
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.68),
    0 0 32px rgba(255, 255, 255, 0.28),
    0 8px 30px rgba(0, 0, 0, 0.36);
}

.creator-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #e5edf7;
  font-size: 16px;
  font-weight: 700;
}

.creator-line a {
  display: inline-flex;
  align-items: center;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 6px 10px;
  color: #f8fbff;
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.13), rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.09)),
    rgba(5, 8, 21, 0.58);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.creator-line a:hover {
  border-color: rgba(248, 251, 255, 0.68);
  background: rgba(255, 255, 255, 0.12);
  color: #f8fbff;
}

.panel {
  position: relative;
  overflow: hidden;
  contain: paint;
  justify-self: end;
  width: min(100%, 540px);
  border: 1px solid rgba(255, 255, 255, 0.105);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 42%),
    rgba(5, 5, 5, 0.9);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 42px;
  backdrop-filter: blur(12px);
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 240ms ease, box-shadow 260ms ease, background 260ms ease;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 36px 118px rgba(0, 0, 0, 0.68), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.065), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 220ms ease, transform 900ms ease;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(280px circle at var(--panel-glow-x, 50%) var(--panel-glow-y, 50%), rgba(255, 255, 255, 0.14), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04), transparent 46%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  transition: opacity 260ms ease;
}

.panel:hover::after {
  opacity: 1;
}

body.authorized .panel::before {
  opacity: 1;
  transform: translateX(120%);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 34px;
}

.panel-title {
  margin: 0;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.field {
  display: grid;
  gap: 12px;
}

label {
  color: #e8e8e8;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 196px);
  gap: 14px;
}

input {
  font-family: inherit;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)),
    rgba(10, 10, 10, 0.9);
  color: #f2f2f2;
  -webkit-text-fill-color: #f2f2f2;
  border-radius: 8px;
  min-height: 62px;
  padding: 17px 20px;
  font-size: 20px;
  caret-color: #ffffff;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease, transform 220ms ease;
}

input:focus {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.055), 0 0 28px rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.016)),
    rgba(12, 12, 12, 0.96);
}

input::placeholder {
  color: #9b9b9b;
  opacity: 1;
  -webkit-text-fill-color: #9b9b9b;
}

button {
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 8px;
  color: #101010;
  background: linear-gradient(180deg, #a8a8a8, #8f8f8f);
  background-size: 100% 100%;
  padding: 0 28px;
  min-height: 62px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), filter 200ms ease, opacity 160ms ease, background-position 260ms ease, box-shadow 240ms ease;
}

button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.22), transparent 44%);
  transform: translateX(-120%);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

button:hover {
  background: linear-gradient(180deg, #b6b6b6, #9b9b9b);
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

button:hover::before {
  transform: translateX(120%);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.message {
  min-height: 26px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.message.error {
  color: #ffb7c8;
}

.message.success {
  color: #e6ecff;
}

.progress-wrap {
  margin-top: 22px;
  display: none;
}

.progress-wrap.visible {
  display: block;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  color: #c8d6e2;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.progress-track {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(3, 5, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--starlight), var(--mint), var(--cyan), var(--violet), var(--lime));
  box-shadow: 0 0 22px rgba(248, 251, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.38);
  transition: width 220ms ease;
}

.portal {
  display: none;
}

.portal::before,
.portal::after {
  content: none;
}

.portal::after {
  content: none;
}

@keyframes galaxy-drift {
  from {
    transform: scale(1);
    filter: saturate(1.02) contrast(1.02);
  }

  to {
    transform: scale(1.015) translate3d(0, -6px, 0);
    filter: saturate(1.12) contrast(1.05);
  }
}

body.authorized .portal {
  display: none;
}

@keyframes portal-ring {
  from {
    transform: rotate(0deg) scale(0.95);
  }

  to {
    transform: rotate(360deg) scale(1.04);
  }
}

.download-overlay {
  position: fixed;
  inset: 0;
  z-index: 16;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  background:
    conic-gradient(from 132deg at center, transparent 0 18%, rgba(255, 255, 255, 0.1) 26%, rgba(255, 255, 255, 0.09) 36%, transparent 52%),
    rgba(3, 7, 11, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: opacity 420ms ease, -webkit-backdrop-filter 680ms ease, backdrop-filter 680ms ease, background-color 680ms ease;
}

.download-overlay.visible {
  pointer-events: auto;
  opacity: 1;
  background-color: rgba(1, 2, 10, 0.54);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.download-overlay-content {
  display: grid;
  place-items: center;
  gap: 18px;
  min-width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 28px 34px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), transparent 38%),
    conic-gradient(from 148deg at 50% 0%, rgba(248, 251, 255, 0.14), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.1), transparent 48%),
    rgba(5, 7, 19, 0.88);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.54), 0 0 42px rgba(255, 255, 255, 0.16), 0 0 58px rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 360ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.download-overlay.visible .download-overlay-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.download-loader {
  position: relative;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  isolation: isolate;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    conic-gradient(from 0deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.14)),
    rgba(3, 5, 16, 0.9);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1), 0 0 36px rgba(255, 255, 255, 0.16);
  transform: translateZ(0);
}

.download-loader::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 78%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: loader-spin 1100ms linear infinite;
}

.download-loader::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08);
  animation: loader-breathe 1600ms ease-in-out infinite;
}

.download-loader-ring {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: loader-ring 1800ms linear infinite;
}

.download-loader-ring.ring-two {
  inset: 17px;
  border-color: rgba(255, 255, 255, 0.32);
  animation-duration: 2400ms;
  animation-direction: reverse;
}

.download-loader-dot {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  animation: loader-spin 1300ms linear infinite;
}

.download-loader-dot::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f8fbff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.78), 0 0 30px rgba(255, 255, 255, 0.44);
  transform: translateX(-50%);
}

.download-loader-logo {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.26), 0 0 28px rgba(255, 255, 255, 0.12);
}

.download-overlay-text {
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  color: #f8fbff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.38), 0 0 28px rgba(255, 255, 255, 0.18);
}

@keyframes loader-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes loader-breathe {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes loader-ring {
  from {
    transform: rotate(0deg) scale(0.98);
  }

  to {
    transform: rotate(360deg) scale(1.02);
  }
}

.complete-badge {
  display: none;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.14), rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.11)),
    rgba(255, 255, 255, 0.08);
  color: #eef3ff;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
}

.complete-badge.visible {
  display: block;
}

.reset-shell {
  grid-template-columns: minmax(360px, 0.85fr) minmax(430px, 560px);
}

.reset-panel {
  display: grid;
  gap: 22px;
}

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

.portal-status,
.metric-card,
.owner-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.09), rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.045)),
    rgba(4, 6, 18, 0.72);
  padding: 14px 16px;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.035);
}

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

.portal-status span,
.metric-card span,
.owner-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-status strong,
.metric-card strong,
.owner-card strong {
  display: block;
  margin-top: 4px;
  color: #f8fbff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.2;
}

.portal-status.ok {
  border-color: rgba(255, 255, 255, 0.4);
}

.portal-status.warn,
.metric-card.warn {
  border-color: rgba(255, 255, 255, 0.4);
}

.metric-card.danger {
  border-color: rgba(255, 255, 255, 0.46);
}

.notice {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(7, 7, 7, 0.82);
}

.notice strong {
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  color: #f8fbff;
}

.notice span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.notice.error {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(7, 7, 7, 0.88);
}

.notice.success {
  border-color: rgba(255, 255, 255, 0.22);
}

.wide-button {
  width: 100%;
}

.portal-link,
.portal-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 12px;
  color: #f8fbff;
  text-decoration: none;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(8, 8, 8, 0.72);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.portal-link:hover,
.portal-actions a:hover {
  border-color: rgba(248, 251, 255, 0.64);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.admin-page {
  place-items: start center;
}

.admin-shell {
  width: min(1320px, calc(100% - 44px));
  display: grid;
  gap: 22px;
}

.admin-hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.admin-art {
  width: 104px;
  margin: 0;
}

.admin-brand {
  margin: 12px 0 0;
  font-size: clamp(36px, 4.8vw, 62px);
}

.admin-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.admin-login {
  justify-self: center;
  width: min(100%, 620px);
}

.setup-shell {
  width: min(1180px, calc(100% - 44px));
}

.setup-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.setup-panel {
  overflow: visible;
}

.setup-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}

.setup-table-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-span-2 {
  grid-column: span 2;
}

.setup-subhead {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.setup-checks {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 100%;
  padding: 8px 0;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d9e6f4;
  font-family: "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
  accent-color: #d8d8d8;
}

.setup-submit-row {
  display: flex;
  justify-content: flex-end;
  padding: 0 22px 22px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.metric-card strong {
  font-size: 30px;
}

.admin-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.016) 42%),
    linear-gradient(145deg, rgba(7, 9, 24, 0.92), rgba(5, 7, 18, 0.82));
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.42), 0 0 42px rgba(255, 255, 255, 0.08);
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-panel-head h2 {
  margin: 0;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
}

.admin-panel-head span {
  color: var(--muted);
  font-weight: 800;
}

.table-wrap {
  overflow: auto;
}

.table-wrap.is-scrolled {
  box-shadow: inset 18px 0 22px rgba(0, 0, 0, 0.18);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
  color: #edf5ff;
  font-size: 15px;
}

th {
  color: #c8d6e2;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.035);
}

.table-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 9px;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill.ok {
  border-color: rgba(255, 255, 255, 0.48);
  color: #dff8ff;
}

.status-pill.warn {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffe5fa;
}

.status-pill.bad {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffd7e1;
}

.row-warn td {
  background: rgba(255, 255, 255, 0.055);
}

.row-danger td {
  background: rgba(255, 255, 255, 0.055);
}

.download-brand-bar {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: min(360px, calc(100vw - 48px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 12px 7px 8px;
  background: rgba(8, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.download-brand-bar img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.download-brand-bar span {
  min-width: 0;
  overflow: hidden;
  color: #f8fbff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-home-link {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 16px;
  color: #f8fbff;
  text-decoration: none;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028)),
    rgba(8, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.download-home-link:hover {
  border-color: rgba(248, 251, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04)),
    rgba(8, 8, 8, 0.82);
  transform: translateY(-1px);
}

.download-page {
  place-items: center;
  padding: 104px 20px 42px;
}

.download-shell {
  width: min(100%, 560px);
  display: grid;
  gap: 22px;
  justify-items: center;
}

.download-intro {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.download-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 12px;
  color: #f5f5f5;
  background: transparent;
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.2),
    0 0 58px rgba(255, 255, 255, 0.1);
}

.download-mark svg {
  width: 36px;
  height: 36px;
}

.download-mark img {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  filter:
    grayscale(1)
    contrast(1.08)
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.34))
    drop-shadow(0 0 28px rgba(255, 255, 255, 0.16));
}

.download-mark span {
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  color: #f8fbff;
  font-size: 24px;
  font-weight: 900;
}

.download-intro h1 {
  margin: 0;
  color: #f5f5f5;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.08);
}

.download-intro p {
  max-width: 460px;
  margin: 0;
  color: #9d9d9d;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}

.download-card {
  width: 100%;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(5, 5, 5, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.download-discord-button {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 76px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #101010;
  text-decoration: none;
  background: linear-gradient(180deg, #a8a8a8, #8f8f8f);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.download-discord-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.download-discord-button strong {
  position: relative;
  z-index: 2;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.download-button-orb {
  position: absolute;
  inset: -70% auto auto -16%;
  z-index: 1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34), transparent 64%);
  opacity: 0.36;
}

.download-account {
  display: grid;
  gap: 5px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 13px 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
    rgba(3, 6, 16, 0.62);
}

.download-account.with-avatar {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
}

.download-account-avatar,
.owner-card-avatar {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(248, 251, 255, 0.3);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(4, 6, 18, 0.72);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.22);
}

.download-account-meta,
.owner-card-meta {
  min-width: 0;
}

.download-account span {
  color: #aeb9d4;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.download-account strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f8fbff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.download-card .key-row {
  grid-template-columns: 1fr;
  gap: 12px;
}

.download-card button {
  width: 100%;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 9px 12px;
  color: #eaf2ff;
  text-decoration: none;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.download-links a:hover {
  border-color: rgba(248, 251, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.download-secure-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #aeb9d4;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.download-secure-line span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6d6d6;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.64);
}

@media (max-width: 1220px) {
  .shell {
    grid-template-columns: minmax(360px, 1fr) minmax(410px, 520px);
    width: min(1120px, calc(100% - 48px));
    gap: 32px;
  }

  .hero-art {
    width: min(340px, 72vw);
    margin-bottom: 22px;
  }

  .brand-lockup {
    font-size: clamp(48px, 5.7vw, 76px);
  }

}

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

  .admin-hero {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .admin-art {
    width: 82px;
  }
}

@media (max-width: 860px) {
  .download-page {
    min-height: 100vh;
    padding: 92px 16px 34px;
    justify-items: center;
  }

  .download-shell {
    width: min(100%, 520px);
  }

  .download-intro h1 {
    font-size: 38px;
  }

  .download-intro p {
    font-size: 18px;
  }

  .shell {
    grid-template-columns: 1fr;
    width: min(680px, calc(100% - 28px));
    gap: 30px;
  }

  .hero-art {
    width: min(390px, 100%);
  }

  .brand-lockup {
    max-width: none;
    font-size: clamp(48px, 8.7vw, 68px);
  }

  .reset-shell {
    grid-template-columns: 1fr;
  }

  .portal-status-grid,
  .setup-status-grid,
  .setup-form-grid,
  .setup-table-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .setup-span-2 {
    grid-column: auto;
  }

  .admin-shell {
    width: min(680px, calc(100% - 28px));
  }

  .admin-hero {
    grid-template-columns: 1fr;
  }

  .admin-art {
    width: min(260px, 100%);
  }

  .admin-brand {
    font-size: clamp(42px, 9vw, 62px);
  }

  .hero-top {
    gap: 12px;
  }

  .panel {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 540px) {
  .download-brand-bar {
    top: 14px;
    left: 14px;
    max-width: calc(100vw - 156px);
  }

  .download-home-link {
    top: 14px;
    right: 14px;
    min-height: 48px;
    max-width: 112px;
    padding: 0 11px;
    font-size: 12px;
    text-align: center;
  }

  .download-page {
    padding: 86px 14px 28px;
    justify-items: center;
  }

  .download-shell {
    width: min(100%, 340px);
    gap: 18px;
  }

  .download-mark {
    width: 62px;
    height: 62px;
  }

  .download-mark svg {
    width: 30px;
    height: 30px;
  }

  .download-mark img {
    width: 44px;
    height: 44px;
  }

  .download-intro h1 {
    max-width: 100%;
    font-size: 30px;
  }

  .download-intro p {
    max-width: 320px;
    font-size: 16px;
  }

  .download-card {
    max-width: 100%;
    padding: 16px;
  }

  .download-discord-button {
    min-height: 68px;
  }

  .download-discord-button strong {
    max-width: 100%;
    font-size: 18px;
    text-align: center;
    white-space: normal;
  }

  .page {
    padding: 22px 14px;
    justify-items: start;
  }

  .page.download-page {
    padding: 86px 14px 28px;
    justify-items: start;
  }

  .shell {
    width: min(100%, 340px);
    max-width: none;
  }

  .panel {
    padding: 26px 16px;
  }

  .hero-art {
    width: min(100%, 340px);
    margin-bottom: 18px;
  }

  .panel-head {
    gap: 14px;
    margin-bottom: 24px;
  }

  .panel-title {
    font-size: 28px;
  }

  .brand-lockup {
    font-size: clamp(30px, 11.4vw, 44px);
  }

  .creator-line {
    font-size: 15px;
  }

  .key-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  label {
    font-size: 15px;
  }

  input {
    min-height: 58px;
    padding: 15px 16px;
    font-size: 18px;
  }

  button {
    width: 100%;
    min-height: 58px;
    font-size: 15px;
  }
}
