:root {
  --bg: #050814;
  --blue: #0a8cff;
  --violet: #7b3cff;
  --text: #ffffff;
  --muted: #aeb8d0;
  --panel: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

button,
a,
input,
textarea,
select,
.pin-box {
  touch-action: manipulation;
}

html {
  min-height: 100%;
  background: #050814;
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(10, 140, 255, 0.24), transparent 34%),
    radial-gradient(circle at 78% 28%, rgba(123, 60, 255, 0.28), transparent 32%),
    linear-gradient(145deg, #050814 0%, #09111f 52%, #050814 100%);
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

.landing-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 64px) 42px;
  overflow: hidden;
}

.topbar,
.brand,
.top-actions,
.panel-head {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 22px;
}

.brand {
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
}

.brand-logo {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 18px rgba(10, 140, 255, 0.45));
}

.brand-logo path:first-child {
  fill: var(--blue);
}

.brand-logo path:last-child {
  fill: var(--violet);
}

.top-actions {
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-link,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ghost-link {
  padding: 0 16px;
  color: var(--muted);
  border: 1px solid transparent;
}

.primary-btn,
.secondary-btn {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 42px rgba(10, 140, 255, 0.28);
}

.secondary-btn {
  width: fit-content;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-link:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(34px, 5vw, 84px);
  align-items: center;
  min-height: calc(100vh - 116px);
  padding-top: 34px;
}

.not-found-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 64px);
  overflow: hidden;
}

.not-found-shell::before,
.not-found-shell::after {
  display: none;
}

.not-found-shell::before {
  width: 360px;
  height: 360px;
  top: 14%;
  left: -120px;
  background: radial-gradient(circle, rgba(10, 140, 255, 0.3), transparent 68%);
}

.not-found-shell::after {
  width: 420px;
  height: 420px;
  right: -150px;
  bottom: 6%;
  background: radial-gradient(circle, rgba(123, 60, 255, 0.28), transparent 70%);
}

.not-found-brand {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.not-found-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 32px));
  margin: auto;
  padding: clamp(28px, 4vw, 46px);
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  text-align: center;
  backdrop-filter: none;
}

.not-found-card::before {
  display: none;
}

.not-found-code {
  margin-bottom: 14px;
  font-size: clamp(72px, 13vw, 132px);
  line-height: 0.88;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(135deg, #fff, var(--blue) 42%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 44px rgba(10, 140, 255, 0.26);
}

.not-found-card h1 {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.08;
}

.not-found-card p {
  max-width: 430px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.not-found-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.not-found-link {
  min-width: 112px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(44px, 5.6vw, 82px);
  line-height: 1.03;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
}

.word-cube {
  position: relative;
  display: inline-block;
  width: min(6.7em, 100%);
  height: 1.08em;
  perspective: 780px;
  vertical-align: bottom;
}

.word-cube-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: cubeWords 7.2s infinite cubic-bezier(0.76, 0, 0.24, 1);
}

.word-cube span span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 36px rgba(10, 140, 255, 0.3);
  backface-visibility: hidden;
}

.word-cube span span:nth-child(1) {
  transform: rotateX(0deg) translateZ(0.54em);
}

.word-cube span span:nth-child(2) {
  transform: rotateX(-90deg) translateZ(0.54em);
}

.word-cube span span:nth-child(3) {
  transform: rotateX(-180deg) translateZ(0.54em);
}

.word-cube span span:nth-child(4) {
  transform: rotateX(-270deg) translateZ(0.54em);
}

@keyframes cubeWords {
  0%, 20% {
    transform: rotateX(0deg);
  }
  30%, 50% {
    transform: rotateX(90deg);
  }
  60%, 80% {
    transform: rotateX(180deg);
  }
  90%, 100% {
    transform: rotateX(270deg);
  }
}

.audience-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.audience-panel article {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: clamp(22px, 2.4vw, 34px);
}

.audience-panel article + article {
  border-left: 1px solid var(--stroke);
}

.panel-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.panel-kicker {
  color: #8fd0ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audience-panel h2,
.auth-card h1 {
  margin: 0;
  font-size: clamp(26px, 2.3vw, 36px);
  letter-spacing: 0;
}

.audience-panel ul {
  display: grid;
  gap: 13px;
  margin: 24px 0 26px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.audience-panel li::marker {
  color: var(--blue);
}

.hero-visual {
  position: relative;
  align-self: start;
  min-height: 650px;
  padding-top: 86px;
  display: grid;
  place-items: center;
  perspective: 1300px;
}

.device-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(450px, 40vw, 620px);
  min-height: 520px;
  transform-style: preserve-3d;
}

.device-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 78%;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 68%);
  transform: translateX(-50%);
}

.device-device {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  pointer-events: none;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: opacity, transform;
}

.device-phone {
  animation: phoneCycle 18s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.device-laptop {
  left: 47%;
  animation: laptopCycle 18s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.device-desktop {
  left: 45%;
  animation: desktopCycle 18s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.iphone-shell {
  position: relative;
  width: clamp(224px, 18.8vw, 286px);
  aspect-ratio: 9 / 18.5;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 46px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.015) 14%, rgba(0, 0, 0, 0.62) 88%, rgba(255, 255, 255, 0.12)),
    linear-gradient(145deg, #181d28 0%, #050711 48%, #0b101b 100%);
  box-shadow:
    -42px 46px 100px rgba(0, 0, 0, 0.78),
    0 0 64px rgba(10, 140, 255, 0.18),
    inset 0 0 0 4px rgba(255, 255, 255, 0.028),
    inset -18px 0 32px rgba(0, 0, 0, 0.55),
    inset 13px 0 18px rgba(255, 255, 255, 0.055);
  transform: rotateY(-20deg) rotateX(8deg) rotateZ(2deg) translateZ(24px);
  transform-style: preserve-3d;
}

.iphone-shell::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 0;
  border-radius: 37px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.iphone-shell::after {
  content: none;
}

.iphone-button {
  position: absolute;
  z-index: -1;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(10, 140, 255, 0.08), rgba(0, 0, 0, 0.4));
  box-shadow: 0 0 12px rgba(10, 140, 255, 0.1);
}

.iphone-button.left {
  top: 76px;
  left: -2px;
  height: 86px;
}

.iphone-button.right {
  right: -3px;
  height: 126px;
  top: 146px;
}

.iphone-screen,
.laptop-screen,
.desktop-screen {
  position: relative;
  background:
    radial-gradient(circle at 48% 10%, rgba(10, 140, 255, 0.22), transparent 28%),
    radial-gradient(circle at 72% 24%, rgba(123, 60, 255, 0.16), transparent 32%),
    linear-gradient(155deg, rgba(20, 33, 59, 0.78), rgba(4, 7, 17, 0.98) 46%, rgba(6, 8, 15, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.iphone-screen {
  z-index: 1;
  height: 100%;
  padding: 72px 24px 26px;
  border-radius: 32px;
}

.dynamic-island {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 98px;
  height: 28px;
  border-radius: 999px;
  background: #02050d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.device-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  font-size: 34px;
  font-weight: 800;
  text-align: center;
}

.device-phone .device-logo,
.mini-phone {
  animation: phoneContentDim 18s infinite;
}

.device-logo.compact {
  justify-content: flex-start;
  margin-bottom: 18px;
  font-size: 24px;
}

.screen-brand-logo {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 16px rgba(10, 140, 255, 0.45));
}

.screen-brand-logo path:first-child {
  fill: var(--blue);
}

.screen-brand-logo path:last-child {
  fill: var(--violet);
}

.device-logo.compact .screen-brand-logo {
  width: 28px;
  height: 28px;
}

.login-form {
  display: grid;
  gap: 9px;
}

.login-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-line,
.screen-button {
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.field-line {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.24);
}

.field-line.short {
  width: 78%;
}

.field-line i {
  position: absolute;
  left: 12px;
  top: 50%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(174, 184, 208, 0.52));
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
}

.typed-login {
  width: 62%;
  animation: typeLogin 18s infinite steps(10, end);
}

.typed-password {
  width: 44%;
  animation: typePassword 18s infinite steps(8, end);
}

.mini-laptop .field-line i {
  width: 58%;
  animation: laptopType 18s infinite steps(8, end);
}

.mini-desktop .field-line i {
  width: 60%;
  animation: desktopType 18s infinite steps(8, end);
}

.screen-button {
  display: grid;
  place-items: center;
  margin-top: 10px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 16px 36px rgba(10, 140, 255, 0.22);
  pointer-events: auto;
}

.screen-button:hover {
  box-shadow: 0 20px 54px rgba(123, 60, 255, 0.34);
}

.face-id {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 164px;
  height: 174px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 34%, rgba(10, 140, 255, 0.24), transparent 46%),
    linear-gradient(180deg, rgba(3, 6, 16, 0.88), rgba(3, 6, 15, 0.66));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 0 30px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: faceIdCycle 18s infinite;
}

.face-id::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 45%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(10, 140, 255, 0.9), transparent);
  box-shadow: 0 0 18px rgba(10, 140, 255, 0.72);
  opacity: 0;
  animation: faceLightSweep 18s infinite;
}

.face-frame {
  position: relative;
  width: 92px;
  height: 92px;
}

.face-frame span {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.8);
  border-style: solid;
  filter: drop-shadow(0 0 12px rgba(10, 140, 255, 0.55));
}

.face-frame span:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
  border-radius: 12px 0 0 0;
}

.face-frame span:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 3px 3px 0 0;
  border-radius: 0 12px 0 0;
}

.face-frame span:nth-child(3) {
  bottom: 0;
  left: 0;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 12px;
}

.face-frame span:nth-child(4) {
  right: 0;
  bottom: 0;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 12px 0;
}

.face-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(10, 140, 255, 0.42);
  box-shadow: 0 0 28px rgba(10, 140, 255, 0.28);
  animation: faceScan 18s infinite;
}

.face-frame b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 22px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg) scale(0.7);
  animation: faceCheck 18s infinite;
}

.face-id em {
  position: absolute;
  bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  font-weight: 800;
}

.laptop-lid {
  width: clamp(400px, 34vw, 500px);
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1a2130, #050711 64%, #111827);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.7), 0 0 70px rgba(10, 140, 255, 0.12);
  transform: rotateX(5deg);
}

.laptop-screen {
  min-height: 300px;
  padding: 34px 38px;
  border-radius: 10px;
}

.laptop-base {
  position: relative;
  width: clamp(450px, 38vw, 555px);
  height: 44px;
  margin: -2px auto 0;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(180deg, #202938, #0b101a 58%, #050711);
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.55);
}

.laptop-base span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
}

.mini-laptop {
  width: 58%;
}

.success-pulse {
  position: absolute;
  right: 34px;
  bottom: 34px;
  padding: 12px 16px;
  border: 1px solid rgba(10, 140, 255, 0.36);
  border-radius: 8px;
  background: rgba(10, 140, 255, 0.12);
  color: #fff;
  font-weight: 800;
  opacity: 0;
  animation: successCycle 18s infinite;
}

.desktop-monitor {
  width: clamp(400px, 34vw, 500px);
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1a2130, #050711 66%, #0e1421);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.72), 0 0 66px rgba(123, 60, 255, 0.13);
}

.desktop-screen {
  min-height: 300px;
  padding: 32px;
  border-radius: 10px;
}

.desktop-auth-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 18px;
  align-items: center;
}

.scan-card {
  aspect-ratio: 1;
  border: 1px solid rgba(10, 140, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(transparent 49%, rgba(10, 140, 255, 0.42) 50%, transparent 51%),
    radial-gradient(circle, rgba(10, 140, 255, 0.16), transparent 58%);
  animation: desktopScan 18s infinite;
}

.desktop-stand {
  width: 74px;
  height: 72px;
  margin: 0 auto;
  background: linear-gradient(90deg, #0a0f18, #202938, #070b13);
}

.desktop-foot {
  width: 220px;
  height: 24px;
  margin: 0 auto;
  border-radius: 50% 50% 8px 8px;
  background: linear-gradient(180deg, #202938, #050711);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.52);
}

.desktop-tower {
  position: absolute;
  right: -48px;
  bottom: 18px;
  width: 58px;
  height: 190px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(145deg, #1b2434, #070b13 68%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 18px 28px 48px rgba(0, 0, 0, 0.48);
}

.desktop-tower::before,
.desktop-tower::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.desktop-tower::before {
  top: 48px;
  width: 28px;
  height: 74px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    180deg,
    rgba(174, 184, 208, 0.2) 0 4px,
    transparent 4px 10px
  );
}

.desktop-tower::after {
  bottom: 16px;
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.desktop-tower span {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(10, 140, 255, 0.72);
  transform: translateX(-50%);
}

@keyframes phoneCycle {
  0%, 28% {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(18px) rotateY(0deg) scale(1);
  }
  31%, 89% {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) translateY(18px) rotateY(0deg) scale(1);
  }
  91% {
    opacity: 0;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(18px) rotateY(0deg) scale(1);
  }
  95%, 100% {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(18px) rotateY(0deg) scale(1);
  }
}

@keyframes laptopCycle {
  0%, 28% {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) translateY(10px) rotateX(0deg) scale(1);
  }
  29% {
    opacity: 0;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(10px) rotateX(0deg) scale(1);
  }
  34%, 61% {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(10px) rotateX(0deg) scale(1);
  }
  64%, 100% {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) translateY(10px) rotateX(0deg) scale(1);
  }
}

@keyframes desktopCycle {
  0%, 64% {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) translateY(8px) rotateY(0deg) scale(1);
  }
  65% {
    opacity: 0;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(8px) rotateY(0deg) scale(1);
  }
  68%, 88% {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(8px) rotateY(0deg) scale(1);
  }
  91% {
    opacity: 0;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(8px) rotateY(0deg) scale(1);
  }
  92%, 100% {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) translateY(8px) rotateY(0deg) scale(1);
  }
}

@keyframes phoneContentDim {
  0%, 17% {
    opacity: 1;
  }
  20%, 27% {
    opacity: 0.34;
  }
  31%, 100% {
    opacity: 1;
  }
}

@keyframes typeLogin {
  0%, 4% {
    transform: translateY(-50%) scaleX(0);
  }
  10%, 30% {
    transform: translateY(-50%) scaleX(1);
  }
  33%, 100% {
    transform: translateY(-50%) scaleX(0);
  }
}

@keyframes typePassword {
  0%, 11% {
    transform: translateY(-50%) scaleX(0);
  }
  17%, 30% {
    transform: translateY(-50%) scaleX(1);
  }
  33%, 100% {
    transform: translateY(-50%) scaleX(0);
  }
}

@keyframes laptopType {
  0%, 36% {
    transform: translateY(-50%) scaleX(0);
  }
  44%, 61% {
    transform: translateY(-50%) scaleX(1);
  }
  66%, 100% {
    transform: translateY(-50%) scaleX(0);
  }
}

@keyframes desktopType {
  0%, 69% {
    transform: translateY(-50%) scaleX(0);
  }
  76%, 89% {
    transform: translateY(-50%) scaleX(1);
  }
  94%, 100% {
    transform: translateY(-50%) scaleX(0);
  }
}

@keyframes faceIdCycle {
  0%, 17% {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.96);
  }
  20%, 27% {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
  }
  31%, 100% {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes faceLightSweep {
  0%, 19% {
    opacity: 0;
    transform: translateY(-42px);
  }
  22%, 26% {
    opacity: 1;
    transform: translateY(42px);
  }
  29%, 100% {
    opacity: 0;
    transform: translateY(58px);
  }
}

@keyframes faceScan {
  0%, 18% {
    transform: scale(0.72);
    opacity: 0;
  }
  22% {
    transform: scale(1.16);
    opacity: 1;
  }
  27%, 100% {
    transform: scale(0.9);
    opacity: 0;
  }
}

@keyframes faceCheck {
  0%, 23% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-45deg) scale(0.7);
  }
  26%, 29% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg) scale(1);
  }
  32%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-45deg) scale(1.1);
  }
}

@keyframes successCycle {
  0%, 48% {
    opacity: 0;
    transform: translateY(12px);
  }
  52%, 60% {
    opacity: 1;
    transform: translateY(0);
  }
  65%, 100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes desktopScan {
  0%, 70% {
    background-position: 0 -80px, center;
  }
  79%, 88% {
    background-position: 0 80px, center;
  }
  94%, 100% {
    background-position: 0 -80px, center;
  }
}

.auth-body {
  display: grid;
  place-items: center;
  padding: 10px;
}

.auth-shell {
  width: min(420px, 100%);
}

.register-shell {
  width: min(420px, 100%);
}

.auth-brand {
  justify-content: center;
  margin-bottom: 10px;
}

.auth-brand .brand-logo {
  width: 42px;
  height: 42px;
}

.auth-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.auth-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-card h2 {
  margin: 0 0 18px;
}

.auth-card h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
}

.stack-form,
.auth-card form {
  display: grid;
  gap: 7px;
}

.auth-card label,
.stack-form label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.auth-card input:focus {
  border-color: rgba(10, 140, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(10, 140, 255, 0.16);
}

.field-block {
  display: grid;
  gap: 7px;
}

.field-error,
.auth-card .field-error {
  min-height: 0;
  margin: -2px 0 0 !important;
  color: #ffb4b4 !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.field-error:empty,
.field-hint:empty {
  display: none;
}

.field-hint,
.auth-card .field-hint {
  min-height: 17px;
  margin: -2px 0 0 !important;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field-hint.ok {
  color: #8fffd2;
}

.field-hint.bad {
  color: #ffb4b4;
}

.login-input-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.login-input-row:focus-within {
  border-color: rgba(10, 140, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(10, 140, 255, 0.16);
}

.login-input-row span {
  display: grid;
  place-items: center;
  height: 40px;
  border-right: 1px solid var(--stroke);
  color: #8fd0ff;
  font-weight: 900;
}

.auth-card .login-input-row input {
  border: 0;
  background: transparent;
}

.auth-card .login-input-row input:focus {
  box-shadow: none;
}

.identity-input-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.identity-input-row:focus-within {
  border-color: rgba(10, 140, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(10, 140, 255, 0.16);
}

.identity-input-row > span {
  display: grid;
  place-items: center;
  height: 40px;
  border-right: 1px solid var(--stroke);
  color: #8fd0ff;
  font-weight: 900;
}

.identity-input-row svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #8fd0ff;
  stroke-width: 2;
  stroke-linejoin: round;
}

.auth-card .identity-input-row input {
  border: 0;
  background: transparent;
}

.auth-card .identity-input-row input:focus {
  box-shadow: none;
}

.form-btn {
  width: 100%;
  margin: 6px 0 8px;
}

.full-btn {
  width: 100%;
}

.hidden {
  display: none !important;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 12px 0;
  padding: 5px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.login-card .segmented {
  grid-template-columns: repeat(3, 1fr);
}

.login-card.verification-mode > .panel-kicker,
.login-card.verification-mode > h1,
.login-card.verification-mode > .segmented,
.login-card.verification-mode > .auth-links {
  display: none;
}

.login-card.verification-mode #verifyStep {
  gap: 12px;
}

.segmented button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.segmented button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(10, 140, 255, 0.9), rgba(123, 60, 255, 0.88));
}

.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.faceid-mini {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 6px;
  position: relative;
}

.faceid-mini::before,
.faceid-mini::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
}

.faceid-mini::after {
  inset: 6px 5px auto;
  height: 2px;
  border: 0;
  border-top: 2px solid currentColor;
  border-radius: 0;
}

.auth-links {
  display: grid;
  gap: 10px;
  margin-top: 0;
  color: #8fd0ff;
  font-weight: 700;
}

.form-message {
  min-height: 22px;
  margin: 4px 0 0 !important;
  color: #ffb4b4 !important;
  font-weight: 700;
}

.card-loader {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  background: rgba(5, 8, 20, 0.46);
  backdrop-filter: blur(5px);
  transition: opacity 0.18s ease;
}

.card-loader svg {
  display: none;
}

.card-loader::before {
  content: "";
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(174, 184, 208, 0.18);
  border-top-color: var(--blue);
  border-right-color: var(--violet);
  box-shadow: 0 0 22px rgba(10, 140, 255, 0.28), inset 0 0 14px rgba(123, 60, 255, 0.18);
  animation: loaderSpin 0.78s linear infinite;
}

.card-loader::after {
  content: "";
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  opacity: 0;
}

.auth-card.loading .card-loader {
  opacity: 1;
  pointer-events: auto;
}

.auth-card.loading > *:not(.card-loader),
.auth-card.load-error > *:not(.card-loader) {
  filter: blur(2px);
}

.auth-card.load-error,
.modal-card.load-error {
  animation: errorShake 0.28s ease both;
}

.auth-card.load-error .card-loader,
.modal-card.load-error .modal-loader {
  opacity: 1;
  pointer-events: auto;
}

.auth-card.load-error .card-loader::before,
.modal-card.load-error .modal-loader::before {
  border-color: rgba(255, 92, 122, 0.28);
  border-top-color: #ff5c7a;
  border-right-color: #ff5c7a;
  box-shadow: 0 0 26px rgba(255, 92, 122, 0.34), inset 0 0 16px rgba(255, 92, 122, 0.16);
  animation: none;
}

.auth-card.load-error .card-loader::after,
.modal-card.load-error .modal-loader::after {
  content: "×";
  opacity: 1;
}

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

@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
}

.form-message.ok {
  color: #8fffd2 !important;
}

.register-card {
  min-height: 0;
}

.reg-step {
  display: none;
  animation: stepIn 0.26s ease both;
}

.reg-step.active {
  display: block;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.step-dots span {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.step-dots span.active {
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.two-cols label {
  display: grid;
  gap: 6px;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr 44px 48px;
  gap: 8px;
}

.password-eye-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.round-tool,
.back-btn,
.eye-btn {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.eye-btn {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 0;
}

.eye-btn::before {
  content: "";
  width: 19px;
  height: 12px;
  border: 2px solid #8fd0ff;
  border-radius: 50%;
}

.eye-btn::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fd0ff;
}

.eye-btn.active::after {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  transform: rotate(-35deg);
}

.back-btn {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.check-row input {
  width: 18px;
  height: 18px;
}

.check-row a {
  color: #8fd0ff;
}

.verify-box {
  display: grid;
  gap: 12px;
}

.skip-btn {
  margin-top: 14px;
}

.strong-skip {
  border-color: rgba(10, 140, 255, 0.5) !important;
  color: #fff !important;
  background: rgba(10, 140, 255, 0.16) !important;
}

.telegram-visual {
  display: grid;
  place-items: center;
  margin: 6px 0 4px;
}

.telegram-visual svg {
  width: min(210px, 100%);
  filter: drop-shadow(0 18px 40px rgba(10, 140, 255, 0.22));
}

.telegram-visual.compact svg {
  width: min(210px, 100%);
}

.resend-link {
  width: max-content;
  border: 0;
  padding: 0;
  color: #8fd0ff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.resend-link:disabled {
  cursor: default;
  opacity: 0.68;
}

.resend-link span {
  color: var(--muted);
}

.known-session {
  position: relative;
  display: grid;
  gap: 14px;
  animation: stepIn 0.26s ease both;
}

.login-card.known-active > :not(.card-loader):not(#knownSession) {
  display: none;
}

.session-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.known-user {
  display: grid;
  grid-template-columns: 58px 1fr 34px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(10, 140, 255, 0.42);
  border-radius: 8px;
  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.known-user img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.known-user b,
.known-user small {
  display: block;
}

.known-user small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.back-inline {
  width: max-content;
  border: 0;
  padding: 0;
  color: #8fd0ff;
  font: inherit;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.restore-back-top {
  margin-bottom: 10px;
}

.login-preview {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(10, 140, 255, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.login-preview img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

.login-preview b,
.login-preview small {
  display: block;
}

.login-preview small {
  margin-top: 3px;
  color: var(--muted);
}

.method-row {
  display: grid;
  gap: 8px;
}

.method-row button {
  min-height: 42px;
  border: 1px solid rgba(10, 140, 255, 0.34);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.method-row button.active {
  background: linear-gradient(135deg, rgba(10, 140, 255, 0.88), rgba(123, 60, 255, 0.82));
}

.method-switch,
.link-btn {
  border: 0;
  padding: 0;
  color: #8fd0ff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.support-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 180, 180, 0.26);
  border-radius: 8px;
  background: rgba(255, 120, 120, 0.08);
}

.support-box .secondary-btn {
  width: 100%;
}

.restore-code-hint {
  margin: 0 0 6px !important;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.restore-code-hint a {
  color: #8fd0ff;
  font-weight: 800;
  text-decoration: none;
}

.restore-card .stack-form {
  gap: 16px;
}

.restore-card .login-preview,
.restore-card .method-row,
.restore-card .identity-input-row,
.restore-card .password-eye-row,
.restore-card .modal-input-row {
  margin-top: 2px;
}

.pin-display {
  display: grid;
  place-items: center;
  height: 56px;
  margin: 22px 0;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: #fff;
  font-size: 28px;
  letter-spacing: 0.18em;
  background: rgba(255, 255, 255, 0.08);
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pin-pad button {
  height: 54px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.passkey-box {
  display: grid;
  gap: 12px;
}

.qr-box {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(230px, 100%);
  aspect-ratio: 1;
  padding: 14px;
  border: 1px solid rgba(10, 140, 255, 0.35);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: filter 0.2s ease, opacity 0.2s ease, background 0.25s ease;
}

.qr-frame.expired {
  filter: blur(4px);
  opacity: 0.58;
}

.qr-frame.approved svg,
.qr-frame.approved img {
  filter: blur(5px);
  opacity: 0.24;
}

.qr-frame svg,
.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-countdown {
  color: #8fffd2;
  font-size: 13px;
  font-weight: 800;
}

.qr-success-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(10, 140, 255, 0.18), rgba(5, 8, 20, 0.86));
}

.faceid-orb {
  position: relative;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(10, 140, 255, 0.45);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(10, 140, 255, 0.16), rgba(123, 60, 255, 0.14));
  box-shadow: 0 0 38px rgba(10, 140, 255, 0.28), inset 0 0 24px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.faceid-orb::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px solid rgba(143, 208, 255, 0.9);
  border-top-color: transparent;
  border-bottom-color: rgba(123, 60, 255, 0.85);
  border-radius: 22px;
  animation: faceScan 0.9s ease-in-out infinite;
}

.faceid-orb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 42px;
  height: 22px;
  border-left: 5px solid #8fffd2;
  border-bottom: 5px solid #8fffd2;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg) scale(0.72);
  transform-origin: center;
}

.faceid-orb span {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #8fd0ff, transparent);
  box-shadow: 0 0 18px rgba(10, 140, 255, 0.86);
  animation: faceLine 1.15s ease-in-out infinite;
}

.faceid-orb.success::before {
  animation: faceDone 0.72s ease forwards;
}

.faceid-orb.success::after {
  animation: checkIn 0.48s ease 0.58s forwards;
}

.faceid-orb.success span {
  animation: faceLine 0.72s ease-in-out 1 forwards;
}

.qr-success-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.qr-success-state .faceid-orb {
  margin: 6px auto;
}

.qr-success-state h2 {
  margin: 4px 0 0;
}

.qr-confirm-card.qr-checking #qrConfirm {
  opacity: 0.34;
  filter: blur(3px);
  pointer-events: none;
}

.qr-account-mini {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  justify-self: start;
  margin-bottom: 4px;
}

.qr-account-mini img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.qr-account-mini b,
.qr-account-mini small {
  display: block;
}

.qr-account-mini small {
  color: var(--muted);
}

.qr-check-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 20, 0.36);
}

.qr-check-overlay .faceid-orb {
  width: 92px;
  height: 92px;
}

@keyframes faceScan {
  0% { transform: rotate(0deg) scale(0.96); opacity: 0.75; }
  50% { transform: rotate(180deg) scale(1.04); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.96); opacity: 0.75; }
}

@keyframes faceLine {
  0% { transform: translateY(0); opacity: 0; }
  18% { opacity: 1; }
  50% { transform: translateY(42px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes faceDone {
  0% { transform: rotate(0deg) scale(0.98); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); border-color: rgba(143, 255, 210, 0.9); opacity: 1; }
}

@keyframes checkIn {
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
}

.blurred-ip {
  filter: blur(5px);
  user-select: none;
}

.danger-btn {
  border-color: rgba(255, 120, 120, 0.42) !important;
  color: #ffdede !important;
}

.doc-body {
  align-items: start;
}

.doc-page {
  width: min(860px, 100%);
}

.doc-card {
  line-height: 1.65;
}

.doc-card h2 {
  margin-top: 28px;
}

.account-body {
  min-height: 100vh;
  padding: 28px clamp(18px, 4vw, 64px);
}

.account-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.account-topbar {
  justify-content: flex-start;
}

.account-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.account-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--panel);
}

.account-sidebar button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.account-sidebar button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(10, 140, 255, 0.88), rgba(123, 60, 255, 0.78));
}

.account-tab {
  display: none;
}

.account-tab.active {
  display: grid;
  gap: 18px;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}

.profile-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.passport-card {
  position: relative;
  width: min(720px, 100%);
  min-height: 214px;
  align-items: stretch;
  padding: 20px 130px 20px 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10, 140, 255, 0.16), rgba(123, 60, 255, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}

.passport-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.passport-card::after {
  content: "PRXID";
  position: absolute;
  right: 20px;
  top: 18px;
  bottom: auto;
  color: rgba(255, 255, 255, 0.05);
  font-size: 64px;
  font-weight: 900;
}

.passport-card .avatar-picker,
.profile-card-main {
  z-index: 1;
}

.passport-card .avatar-picker {
  align-self: center;
}

.passport-card .avatar {
  width: 106px;
  height: 106px;
}

.profile-card-main {
  display: grid;
  align-content: center;
}

.profile-card h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
}

.name-edit-button {
  border: 0;
  padding: 0;
  color: #fff;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.name-edit-button:hover span {
  color: #8fd0ff;
}

.profile-card p {
  margin: 0;
  color: var(--muted);
}

.home-user-pill {
  display: inline-grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 14px 5px 6px;
  border: 1px solid rgba(10, 140, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.home-user-pill img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 20px 60px rgba(10, 140, 255, 0.25);
}

.avatar-img {
  object-fit: cover;
  padding: 0;
  background: none;
}

.avatar-picker {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.icon-edit {
  border: 0;
  color: #8fd0ff;
  font: inherit;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.level-badge {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(143, 208, 255, 0.38);
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(10, 140, 255, 0.2), rgba(123, 60, 255, 0.18));
  box-shadow: 0 14px 32px rgba(10, 140, 255, 0.16);
  cursor: pointer;
}

.level-badge span {
  color: #8fffd2;
}

.icon-edit {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(10, 140, 255, 0.32);
  border-radius: 8px;
}

.plus-action {
  font-size: 22px;
}

.name-refreshing {
  filter: blur(6px);
  opacity: 0.48;
  transition: filter 0.28s ease, opacity 0.28s ease;
}

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

.attach-card,
.attach-banner,
.security-row,
.placeholder-box {
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.attach-banner {
  display: grid;
  grid-template-columns: 1fr 48px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at left, rgba(10, 140, 255, 0.2), transparent 45%),
    rgba(255, 255, 255, 0.06);
}

.attach-banner b,
.attach-banner small {
  display: block;
}

.attach-banner small {
  margin-top: 5px;
  color: var(--muted);
}

.attach-banner button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(10, 140, 255, 0.45);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(10, 140, 255, 0.9), rgba(123, 60, 255, 0.8));
  cursor: pointer;
}

.attach-card {
  display: grid;
  gap: 5px;
  padding: 16px;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.attach-card span,
.security-row small {
  color: var(--muted);
}

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

.security-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.security-row b,
.security-row small {
  display: block;
}

.account-session-tabs {
  grid-template-columns: 1fr 1fr;
}

#revokeAllSessions {
  width: 100%;
  margin: 2px 0 14px;
  justify-content: center;
}

.placeholder-box {
  padding: 16px;
  color: var(--muted);
}

.account-info dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) 1fr;
  gap: 12px 18px;
  margin: 0;
}

.account-info dt {
  color: var(--muted);
  font-weight: 700;
}

.account-info dd {
  margin: 0;
  color: #fff;
  overflow-wrap: anywhere;
}

.sessions-card {
  grid-column: 1 / -1;
}

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

.session-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.session-item.current {
  border-color: rgba(143, 255, 210, 0.5);
  background: rgba(143, 255, 210, 0.08);
}

.session-item b,
.session-item small {
  display: block;
}

.session-item small {
  margin-top: 4px;
  color: var(--muted);
}

.session-item button {
  border: 1px solid rgba(255, 180, 180, 0.4);
  border-radius: 8px;
  padding: 9px 12px;
  color: #ffdddd;
  font: inherit;
  font-weight: 800;
  background: rgba(255, 120, 120, 0.1);
  cursor: pointer;
}

.session-pager {
  display: inline-grid;
  grid-template-columns: 42px auto 42px;
  align-items: center;
  gap: 10px;
  justify-self: center;
  margin-top: 4px;
  padding: 6px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.session-pager button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(10, 140, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(10, 140, 255, 0.22), rgba(123, 60, 255, 0.18));
  cursor: pointer;
}

.session-pager button:disabled {
  opacity: 0.42;
  cursor: default;
}

.session-pager span {
  min-width: 62px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.site-logins-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 18px;
  margin-top: 18px;
}

.site-logins-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--stroke);
}

.site-logins-head h3 {
  margin: 0;
  font-size: 18px;
}

.site-logins-head p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-logins-list {
  display: grid;
  min-width: 0;
}

.site-login-item {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--stroke);
}

.site-login-item:first-child {
  padding-top: 2px;
}

.site-login-summary,
.site-login-identity {
  display: flex;
  align-items: center;
}

.site-login-summary {
  min-width: 0;
  justify-content: space-between;
  gap: 16px;
}

.site-login-identity {
  min-width: 0;
  gap: 12px;
}

.site-login-identity > span:last-child {
  min-width: 0;
  overflow: hidden;
}

.site-login-identity b,
.site-login-identity small {
  display: block;
}

.site-login-identity b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-login-identity small {
  margin-top: 4px;
  color: var(--muted);
}

.site-login-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(10, 140, 255, 0.32);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, rgba(10, 140, 255, 0.24), rgba(123, 60, 255, 0.18));
}

.site-login-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-login-status {
  flex: 0 0 auto;
  color: #8fffd2;
  font-size: 13px;
  font-weight: 800;
}

.site-login-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-left: 56px;
}

.site-login-badges span {
  padding: 5px 8px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
}

.site-login-details {
  padding-left: 56px;
}

.site-login-details summary {
  width: fit-content;
  color: #75bbff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.site-login-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 12px;
  padding: 13px 14px;
  border-left: 2px solid rgba(10, 140, 255, 0.38);
  background: rgba(255, 255, 255, 0.025);
}

.site-login-facts > div {
  min-width: 0;
}

.site-login-facts span,
.site-login-facts b {
  display: block;
  overflow-wrap: anywhere;
}

.site-login-facts span {
  color: var(--muted);
  font-size: 12px;
}

.site-login-facts b {
  margin-top: 3px;
  font-size: 13px;
}

.site-logins-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.site-logins-state b,
.site-logins-state p {
  margin: 0;
}

.site-logins-empty {
  grid-template-columns: 10px minmax(0, 1fr);
  min-height: 108px;
  place-items: initial;
  align-items: center;
  align-content: initial;
  gap: 14px;
  padding: 18px 4px;
  text-align: left;
}

.site-logins-empty::before {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(117, 187, 255, 0.42);
  border-radius: 50%;
  background: rgba(10, 140, 255, 0.16);
  content: "";
}

.site-logins-empty > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.site-logins-empty b {
  color: var(--text);
  font-size: 15px;
}

.site-logins-empty p {
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.small-spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(174, 184, 208, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@media (max-width: 640px) {
  .site-logins-head p {
    font-size: 13px;
  }

  .site-logins-empty {
    min-height: 96px;
    padding: 14px 2px;
  }

  .site-login-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
    gap: 8px;
  }

  .site-login-status {
    max-width: none;
    margin-left: 56px;
    text-align: left;
  }

  .site-login-badges,
  .site-login-details {
    padding-left: 0;
  }

  .site-login-facts {
    grid-template-columns: 1fr;
  }
}

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

.passkey-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.passkey-item b,
.passkey-item small {
  display: block;
}

.passkey-item small {
  margin-top: 4px;
  color: var(--muted);
}

.passkey-item button {
  border: 1px solid rgba(255, 180, 180, 0.4);
  border-radius: 8px;
  padding: 9px 12px;
  color: #ffdddd;
  font: inherit;
  font-weight: 800;
  background: rgba(255, 120, 120, 0.1);
  cursor: pointer;
}

button.loading {
  color: transparent !important;
  position: relative;
}

button.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.modal-layer {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 20, 0.72);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(720px, 90vh);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(10, 140, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
}

.modal-card.loading .modal-loader {
  opacity: 1;
  pointer-events: auto;
}

.modal-card.loading #modalContent > *:not(.modal-loader),
.modal-card.load-error #modalContent > *:not(.modal-loader) {
  filter: blur(2px);
}

.modal-card h2 {
  margin: 0;
}

.modal-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
}

.modal-hero {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 38px 16px 0;
}

.modal-dots {
  margin: 0 0 14px;
}

.modal-step,
.modal-auth-flow {
  animation: stepIn 0.24s ease both;
}

.modal-auth-flow {
  gap: 10px;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(10, 140, 255, 0.36);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(10, 140, 255, 0.22), rgba(123, 60, 255, 0.2));
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.06);
}

.modal-icon.face-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 2px solid #8fd0ff;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(10, 140, 255, 0.45);
}

.pretty-name-form {
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.modal-card input,
.modal-card textarea,
.modal-card select {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  color: var(--text);
  background: transparent;
  outline: none;
}

.modal-card input::placeholder {
  color: rgba(174, 184, 208, 0.72);
}

.modal-input-row,
.modal-card .identity-input-row,
.modal-card .password-eye-row {
  display: grid;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.modal-input-row {
  grid-template-columns: 1fr;
}

.modal-input-row:focus-within,
.modal-card .identity-input-row:focus-within,
.modal-card .password-eye-row:focus-within {
  border-color: rgba(10, 140, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(10, 140, 255, 0.16);
}

.modal-card .identity-input-row {
  grid-template-columns: 48px 1fr;
}

.modal-card .identity-input-row > span {
  display: grid;
  place-items: center;
  height: 42px;
  border-right: 1px solid var(--stroke);
  color: #8fd0ff;
  font-weight: 900;
}

.modal-card .password-eye-row {
  grid-template-columns: 1fr 44px;
  gap: 0;
}

.modal-card .password-eye-row .eye-btn {
  height: 42px;
  border: 0;
  border-left: 1px solid var(--stroke);
  border-radius: 0;
  background: transparent;
}

.pin-box {
  display: grid;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(10, 140, 255, 0.28);
  border-radius: 8px;
  background: rgba(5, 8, 20, 0.28);
  outline: none;
}

.pin-box:focus {
  border-color: rgba(10, 140, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(10, 140, 255, 0.14);
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 18px;
}

.pin-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(174, 184, 208, 0.45);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 8px rgba(10, 140, 255, 0.08);
}

.pin-dots span.active {
  border-color: rgba(10, 140, 255, 0.9);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 16px rgba(10, 140, 255, 0.34);
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(54px, 1fr));
  gap: 8px;
}

.pin-keypad button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  cursor: pointer;
}

.pin-keypad button:active {
  transform: translateY(1px);
  border-color: rgba(10, 140, 255, 0.7);
}

.pin-keypad .pin-confirm {
  border-color: rgba(35, 220, 139, 0.55);
  color: #dffff0;
  background: linear-gradient(135deg, rgba(35, 220, 139, 0.9), rgba(10, 140, 255, 0.58));
  box-shadow: 0 0 18px rgba(35, 220, 139, 0.24);
}

.short-pin-active .form-btn,
.short-pin-active #verifySubmit {
  display: none;
}

#deleteAccountButton {
  width: auto;
  justify-self: start;
  margin-top: 18px;
  padding: 8px 10px;
  font-size: 12px;
  opacity: 0.72;
}

.delete-warning {
  padding: 12px;
  border: 1px solid rgba(255, 92, 122, 0.58);
  border-radius: 8px;
  color: #ffdbe2;
  background: rgba(255, 92, 122, 0.08);
  font-size: 13px;
  line-height: 1.45;
}

.modal-input-row textarea {
  min-height: 96px;
  resize: vertical;
  padding: 12px;
  font: inherit;
  line-height: 1.4;
}

.slide-confirm {
  position: relative;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 120, 120, 0.32);
  border-radius: 8px;
  color: #ffd7df;
  font-weight: 900;
  background: linear-gradient(90deg, rgba(255, 92, 122, 0.12), rgba(10, 140, 255, 0.08));
  user-select: none;
  opacity: 0.58;
}

.slide-confirm.reason-ready {
  opacity: 1;
}

.slide-confirm span {
  position: absolute;
  left: 5px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff5c7a, #7b3cff);
  box-shadow: 0 12px 30px rgba(255, 92, 122, 0.28);
  cursor: grab;
  touch-action: none;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.slide-confirm span::before {
  content: "›";
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  transition: opacity 0.14s ease, transform 0.18s ease;
}

.slide-confirm span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 17px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transform: translateY(4px) scale(0.82);
  transition: opacity 0.16s ease, transform 0.18s ease;
}

.slide-confirm.trash-ready span {
  background: linear-gradient(135deg, #ff315f, #ff8a3d);
  box-shadow: 0 12px 34px rgba(255, 92, 122, 0.38);
}

.slide-confirm.trash-ready span::before {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  opacity: 1;
  transform: translateY(-12px) rotate(-8deg);
  color: transparent;
  font-size: 0;
}

.slide-confirm.trash-ready span::after {
  opacity: 1;
  transform: translateY(4px) scale(1);
}

.slide-confirm span.returning {
  transition: transform 0.22s cubic-bezier(.2, .8, .2, 1), background 0.18s ease, box-shadow 0.18s ease;
}

.trash-away {
  position: relative;
  height: 118px;
  overflow: hidden;
}

.trash-away::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 72px;
  height: 54px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}

.trash-away span {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 58px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  transform: translateX(-50%);
  animation: flyTrash 0.9s ease both;
}

@keyframes flyTrash {
  from {
    transform: translate(-50%, 0) rotate(0deg);
    opacity: 1;
  }
  to {
    transform: translate(-50%, 62px) rotate(18deg) scale(0.72);
    opacity: 0.35;
  }
}

.delete-success-modal {
  text-align: left;
}

.delete-success-box {
  display: grid;
  gap: 16px;
}

.delete-success-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
}

.delete-success-mark {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: #ffdbe2;
  border-color: rgba(255, 92, 122, 0.44);
  border: 1px solid rgba(255, 92, 122, 0.42);
  background: linear-gradient(135deg, rgba(255, 92, 122, 0.2), rgba(123, 60, 255, 0.16));
  box-shadow: 0 18px 44px rgba(255, 92, 122, 0.18), inset 0 0 24px rgba(255, 255, 255, 0.06);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
}

.delete-success-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.14;
}

.delete-success-box p {
  margin: 0;
  color: #c6d1ea;
  line-height: 1.5;
}

.delete-success-modal .trash-away {
  height: 96px;
  margin-top: 2px;
}

.partner-auth-shell {
  min-height: 100svh;
}

.partner-card {
  max-width: 440px;
}

.partner-confirm-content {
  display: grid;
  gap: 16px;
  text-align: center;
}

.partner-logo {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(10, 140, 255, .38);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .26), transparent 30%),
    linear-gradient(135deg, rgba(10, 140, 255, .95), rgba(123, 60, 255, .9));
  box-shadow: 0 22px 56px rgba(10, 140, 255, .28), inset 0 0 30px rgba(255, 255, 255, .1);
  font-weight: 900;
  letter-spacing: .04em;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.partner-logo.has-image {
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, .08);
}

.partner-card h1 {
  margin-bottom: -4px;
}

.partner-card p {
  margin: 0;
  color: #c8d3ea;
  line-height: 1.5;
}

.partner-user-preview {
  position: relative;
  text-align: left;
  border: 1px solid rgba(174, 184, 208, .18);
  background: rgba(255, 255, 255, .055);
  padding-right: 52px;
}

.partner-logout {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.partner-confirm-animation {
  position: relative;
  height: 112px;
  display: grid;
  place-items: center;
}

.partner-consent-list,
.partner-missing-box {
  display: grid;
  gap: 10px;
}

.partner-consent-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px;
  text-align: left;
  border: 1px solid rgba(174, 184, 208, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
}

.partner-consent-row input {
  width: 18px;
  height: 18px;
  accent-color: #0A8CFF;
}

.partner-consent-row span,
.partner-missing-item {
  display: grid;
  gap: 4px;
}

.partner-consent-row small,
.partner-missing-item span {
  color: #aeb8d0;
  line-height: 1.45;
}

.partner-missing-item {
  padding: 14px;
  border: 1px solid rgba(255, 92, 122, .34);
  border-radius: 16px;
  background: rgba(255, 92, 122, .08);
}

.theme-plata.auth-body {
  background:
    linear-gradient(115deg, rgba(192, 160, 123, 0.2), transparent 36%),
    radial-gradient(circle at 78% 18%, rgba(250, 250, 250, 0.08), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(156, 126, 89, 0.14), transparent 32%),
    #1a1b1e;
}

.theme-plata .brand-logo path:first-child,
.theme-plata .auth-brand .brand-logo path:first-child {
  fill: #c4a684;
}

.theme-plata .brand-logo path:last-child,
.theme-plata .auth-brand .brand-logo path:last-child {
  fill: #b9a082;
}

.theme-plata .brand-logo,
.theme-plata .auth-brand .brand-logo {
  filter: drop-shadow(0 10px 28px rgba(192, 160, 123, .2));
}

.theme-plata .brand span,
.theme-plata .auth-brand span {
  color: #fafafa;
}

.theme-plata .auth-card {
  border-color: rgba(192, 160, 123, .32);
  background:
    linear-gradient(180deg, rgba(250, 250, 250, .075), rgba(250, 250, 250, .04)),
    rgba(26, 27, 30, .9);
  box-shadow: 0 24px 80px rgba(26, 27, 30, .26), 0 0 0 1px rgba(192, 160, 123, .08) inset;
}

.theme-plata .panel-kicker,
.theme-plata .field-hint.ok,
.theme-plata .form-message.ok {
  color: #d2bc9f;
}

.theme-plata .auth-card h1,
.theme-plata .auth-card h2 {
  color: #fafafa;
}

.theme-plata .auth-card p,
.theme-plata .modal-subtitle,
.theme-plata .form-message {
  color: #ece7df;
}

.theme-plata .primary-btn,
.theme-plata .form-btn,
.theme-plata .segmented button.active {
  color: #1a1b1e;
  border-color: #c0a07b;
  background: linear-gradient(135deg, #d2bc9f, #c0a07b);
  box-shadow: 0 18px 48px rgba(192, 160, 123, .24);
}

.theme-plata .step-dots span.active,
.theme-plata .modal-dots span.active {
  background: linear-gradient(90deg, #d2bc9f, #9c7e59);
}

.theme-plata .secondary-btn,
.theme-plata .known-user,
.theme-plata .login-preview,
.theme-plata .identity-input-row,
.theme-plata .password-eye-row,
.theme-plata .modal-input-row,
.theme-plata .partner-user-preview,
.theme-plata .partner-consent-row {
  border-color: rgba(192, 160, 123, .28);
  background: rgba(250, 250, 250, .06);
}

.theme-plata input {
  color: #fafafa;
}

.theme-plata input::placeholder {
  color: rgba(236, 231, 223, .52);
}

.theme-plata .partner-logo,
.theme-plata .modal-icon {
  color: #1a1b1e;
  border-color: rgba(192, 160, 123, .5);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .32), transparent 30%),
    linear-gradient(135deg, #d2bc9f, #9c7e59);
  box-shadow: 0 22px 56px rgba(192, 160, 123, .22), inset 0 0 30px rgba(250, 250, 250, .14);
}

.theme-plata .faceid-orb,
.theme-plata .card-loader::before,
.theme-plata .modal-loader::before {
  border-color: rgba(192, 160, 123, .18);
  border-top-color: #c4a684;
  border-right-color: #b9a082;
  box-shadow: 0 0 28px rgba(192, 160, 123, .22), inset 0 0 14px rgba(196, 166, 132, .16);
}

.theme-plata .faceid-orb {
  border-color: rgba(192, 160, 123, .18);
  border-top-color: #c4a684;
  border-right-color: #b9a082;
}

.theme-plata .card-loader::after,
.theme-plata .modal-loader::after {
  background: transparent;
}

.theme-plata .auth-card.load-error .card-loader,
.theme-plata .modal-card.load-error .modal-loader {
  background: transparent;
}

.theme-plata .auth-card.load-error .card-loader::before,
.theme-plata .modal-card.load-error .modal-loader::before {
  border-color: rgba(255, 92, 122, .26);
  border-top-color: #ff5c7a;
  border-right-color: #ff5c7a;
  background: transparent;
  box-shadow: 0 0 24px rgba(255, 92, 122, .28), inset 0 0 14px rgba(255, 92, 122, .14);
}

.theme-white.auth-body {
  background:
    radial-gradient(circle at 12% 10%, rgba(69, 171, 255, .20), transparent 30%),
    radial-gradient(circle at 88% 86%, rgba(36, 134, 215, .16), transparent 34%),
    linear-gradient(180deg, #f6fbff, #dfeffc);
}

.theme-white .brand-logo path:first-child,
.theme-white .auth-brand .brand-logo path:first-child {
  fill: #58bfff;
}

.theme-white .brand-logo path:last-child,
.theme-white .auth-brand .brand-logo path:last-child {
  fill: #1497e8;
}

.theme-white .brand-logo,
.theme-white .auth-brand .brand-logo {
  filter: drop-shadow(0 12px 26px rgba(20, 151, 232, .22));
}

.theme-white .brand span,
.theme-white .auth-brand span,
.theme-white .auth-card h1,
.theme-white .auth-card h2 {
  color: #09243c;
}

.theme-white .auth-card {
  border-color: rgba(72, 145, 194, .34);
  background: linear-gradient(180deg, #ffffff, #f1f7fc);
  box-shadow: 0 28px 80px rgba(48, 119, 172, .18), inset 0 0 0 1px rgba(255, 255, 255, .86);
}

.theme-white .auth-card p,
.theme-white .modal-subtitle,
.theme-white .form-message,
.theme-white .auth-card label,
.theme-white .stack-form label {
  color: #40596f;
}

.theme-white .panel-kicker,
.theme-white .field-hint.ok,
.theme-white .form-message.ok,
.theme-white .auth-links {
  color: #1497e8;
}

.theme-white .primary-btn,
.theme-white .form-btn,
.theme-white .segmented button.active {
  color: #fff;
  border-color: #1497e8;
  background: linear-gradient(135deg, #58bfff, #1497e8);
  box-shadow: 0 18px 42px rgba(20, 151, 232, .24);
}

.theme-white .secondary-btn,
.theme-white .known-user,
.theme-white .login-preview,
.theme-white .identity-input-row,
.theme-white .modal-input-row,
.theme-white .partner-user-preview,
.theme-white .partner-consent-row,
.theme-white .segmented {
  color: #09243c;
  border-color: rgba(72, 145, 194, .30);
  background: #eaf3fa;
}

.theme-white .method-row button {
  color: #09243c;
  border-color: rgba(72, 145, 194, .34);
  background: linear-gradient(180deg, #edf6fd, #dfeaf4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.theme-white .method-row button:hover {
  border-color: rgba(20, 151, 232, .54);
  background: linear-gradient(180deg, #f5fbff, #d9edf9);
}

.theme-white .method-row button.active {
  color: #fff;
  border-color: #1497e8;
  background: linear-gradient(135deg, #58bfff, #1497e8);
  box-shadow: 0 14px 34px rgba(20, 151, 232, .20);
}

.theme-white .password-eye-row {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(72, 145, 194, .32);
  border-radius: 8px;
  background: #dfeaf4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74);
}

.theme-white .auth-card input,
.theme-white .modal-input-row input,
.theme-white .password-eye-row input,
.theme-white .identity-input-row input,
.theme-white .login-input-row input {
  color: #09243c;
  background: #eaf3fa;
}

.theme-white .password-eye-row input {
  border: 0;
  background: #dfeaf4;
}

.theme-white .password-eye-row input:focus {
  box-shadow: none;
}

.theme-white .eye-btn {
  border: 0;
  border-left: 1px solid rgba(72, 145, 194, .30);
  border-radius: 0;
  color: #1497e8;
  background: linear-gradient(180deg, #edf6fd, #d7e7f2);
}

.theme-white .eye-btn::before {
  border-color: #1497e8;
}

.theme-white .eye-btn::after {
  background: #1497e8;
}

.theme-white .session-close {
  color: #09243c;
  border-color: rgba(72, 145, 194, .32);
  background: #dfeaf4;
}

.theme-white .known-user small {
  color: #536b7d;
}

.theme-white input {
  color: #09243c;
}

.theme-white input::placeholder {
  color: rgba(83, 107, 125, .58);
}

.theme-white .identity-input-row > span,
.theme-white .login-input-row span,
.theme-white .identity-input-row svg {
  color: #1497e8;
  stroke: #1497e8;
}

.theme-white .step-dots span {
  background: rgba(20, 151, 232, .14);
}

.theme-white .step-dots span.active,
.theme-white .modal-dots span.active {
  background: linear-gradient(90deg, #58bfff, #1497e8);
}

.theme-white .partner-logo,
.theme-white .modal-icon {
  color: #fff;
  border-color: rgba(20, 151, 232, .34);
  background: linear-gradient(135deg, #58bfff, #1497e8);
  box-shadow: 0 22px 48px rgba(20, 151, 232, .22), inset 0 0 30px rgba(255, 255, 255, .26);
}

.theme-white .faceid-orb,
.theme-white .card-loader::before,
.theme-white .modal-loader::before {
  border-color: rgba(20, 151, 232, .18);
  border-top-color: #58bfff;
  border-right-color: #1497e8;
  box-shadow: 0 0 28px rgba(20, 151, 232, .22), inset 0 0 14px rgba(88, 191, 255, .16);
}

.theme-white .card-loader {
  background: rgba(235, 247, 255, .54);
}

.theme-white .card-loader::after,
.theme-white .modal-loader::after,
.theme-white .auth-card.load-error .card-loader,
.theme-white .modal-card.load-error .modal-loader {
  background: transparent;
}

.theme-white .auth-card.load-error .card-loader::after,
.theme-white .modal-card.load-error .modal-loader::after {
  color: #d93b55;
  text-shadow: 0 0 12px rgba(217, 59, 85, .18);
}

.theme-white .field-error,
.theme-white .auth-card .field-error {
  color: #d93b55 !important;
}

.theme-glass.auth-body {
  background:
    radial-gradient(circle at 18% 12%, rgba(83, 203, 255, .30), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(151, 122, 255, .26), transparent 32%),
    radial-gradient(circle at 52% 96%, rgba(255, 255, 255, .12), transparent 34%),
    linear-gradient(145deg, #07131f 0%, #10263a 48%, #172033 100%);
}

.theme-glass .brand-logo path:first-child,
.theme-glass .auth-brand .brand-logo path:first-child {
  fill: #d9f4ff;
}

.theme-glass .brand-logo path:last-child,
.theme-glass .auth-brand .brand-logo path:last-child {
  fill: #79c8ff;
}

.theme-glass .brand-logo,
.theme-glass .auth-brand .brand-logo {
  filter: drop-shadow(0 16px 34px rgba(95, 141, 255, .28));
}

.theme-glass .brand span,
.theme-glass .auth-brand span,
.theme-glass .auth-card h1,
.theme-glass .auth-card h2 {
  color: #f7fbff;
}

.theme-glass .auth-card {
  border-color: rgba(214, 240, 255, .26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .055)),
    rgba(8, 20, 34, .62);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .24);
  backdrop-filter: blur(28px) saturate(150%);
}

.theme-glass .auth-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 42%, rgba(77, 197, 255, .10));
}

.theme-glass .auth-card > *:not(.card-loader) {
  position: relative;
}

.theme-glass .auth-card p,
.theme-glass .modal-subtitle,
.theme-glass .form-message,
.theme-glass .auth-card label,
.theme-glass .stack-form label {
  color: #bfd4e6;
}

.theme-glass .panel-kicker,
.theme-glass .field-hint.ok,
.theme-glass .form-message.ok,
.theme-glass .auth-links {
  color: #347cff;
}

.theme-glass .primary-btn,
.theme-glass .form-btn,
.theme-glass .segmented button.active {
  color: #fff;
  border-color: rgba(95, 141, 255, .55);
  background: linear-gradient(135deg, rgba(77, 197, 255, .96), rgba(95, 141, 255, .94));
  box-shadow: 0 20px 48px rgba(95, 141, 255, .24);
}

.theme-glass .secondary-btn,
.theme-glass .known-user,
.theme-glass .login-preview,
.theme-glass .identity-input-row,
.theme-glass .modal-input-row,
.theme-glass .partner-user-preview,
.theme-glass .partner-consent-row,
.theme-glass .segmented {
  color: #f7fbff;
  border-color: rgba(214, 240, 255, .22);
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.theme-glass .password-eye-row {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 240, 255, .22);
  border-radius: 8px;
  background: rgba(4, 13, 24, .30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

.theme-glass .auth-card input,
.theme-glass .modal-input-row input,
.theme-glass .password-eye-row input,
.theme-glass .identity-input-row input,
.theme-glass .login-input-row input {
  color: #f7fbff;
  background: rgba(255, 255, 255, .08);
}

.theme-glass .password-eye-row input {
  border: 0;
  background: rgba(4, 13, 24, .30);
}

.theme-glass .password-eye-row input:focus {
  box-shadow: none;
}

.theme-glass .eye-btn {
  border: 0;
  border-left: 1px solid rgba(214, 240, 255, .20);
  border-radius: 0;
  color: #9edfff;
  background: rgba(255, 255, 255, .10);
}

.theme-glass .eye-btn::before {
  border-color: #9edfff;
}

.theme-glass .eye-btn::after {
  background: #9edfff;
}

.theme-glass input {
  color: #f7fbff;
}

.theme-glass input::placeholder {
  color: rgba(191, 212, 230, .58);
}

.theme-glass .identity-input-row > span,
.theme-glass .login-input-row span,
.theme-glass .identity-input-row svg {
  color: #347cff;
  stroke: #347cff;
}

.theme-glass .step-dots span {
  background: rgba(95, 141, 255, .15);
}

.theme-glass .step-dots span.active,
.theme-glass .modal-dots span.active {
  background: linear-gradient(90deg, #4dc5ff, #5f8dff);
}

.theme-glass .partner-logo,
.theme-glass .modal-icon {
  color: #fff;
  border-color: rgba(255, 255, 255, .72);
  background: linear-gradient(135deg, #4dc5ff, #5f8dff);
  box-shadow: 0 22px 52px rgba(95, 141, 255, .24), inset 0 0 30px rgba(255, 255, 255, .28);
}

.theme-glass .faceid-orb,
.theme-glass .card-loader::before,
.theme-glass .modal-loader::before {
  border-color: rgba(95, 141, 255, .18);
  border-top-color: #4dc5ff;
  border-right-color: #5f8dff;
  box-shadow: 0 0 30px rgba(95, 141, 255, .24), inset 0 0 14px rgba(77, 197, 255, .16);
}

.theme-glass .card-loader {
  background: rgba(232, 244, 255, .42);
}

.theme-glass .card-loader::after,
.theme-glass .modal-loader::after,
.theme-glass .auth-card.load-error .card-loader,
.theme-glass .modal-card.load-error .modal-loader {
  background: transparent;
}

.theme-glass .field-error,
.theme-glass .auth-card .field-error {
  color: #d93b55 !important;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
}

.avatar-choice-grid,
.level-grid {
  display: grid;
  gap: 12px;
}

.avatar-choice-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-height: 420px;
  overflow: auto;
}

.avatar-choice-grid button {
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.avatar-choice-grid img {
  width: 100%;
  display: block;
}

.level-card {
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

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

.level-card h3,
.level-card p {
  margin: 0 0 8px;
}

.level-card ul {
  display: grid;
  gap: 5px;
  padding-left: 18px;
}

.level-card li.ok {
  color: #8fffd2;
}

.level-card li.bad {
  color: #ffb4b4;
}

.level-card button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  body {
    min-height: 100dvh;
    background-color: #050814;
  }

  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  .auth-shell {
    min-height: 100dvh;
    padding: calc(10px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom));
  }

  .auth-card {
    width: min(100%, 360px);
    padding: 16px 14px;
  }

  .auth-card h1 {
    font-size: 25px;
  }

  .segmented {
    gap: 6px;
  }

  .segmented button {
    min-height: 42px;
    padding: 8px;
    font-size: 12px;
  }

  .modal-layer {
    padding: calc(8px + env(safe-area-inset-top)) 10px calc(8px + env(safe-area-inset-bottom));
  }

  .modal-card {
    width: min(100%, 360px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 16px 14px;
    overflow-y: auto;
  }

  .modal-hero {
    align-items: flex-start;
  }

  .pin-keypad button {
    min-height: 46px;
    font-size: 18px;
  }

  .delete-warning {
    font-size: 12px;
  }

  .landing-shell {
    padding-top: 18px;
  }

  .not-found-shell {
    padding: 18px 16px 26px;
  }

  .not-found-brand {
    font-size: 22px;
  }

  .not-found-card {
    padding: 30px 20px;
  }

  .not-found-card p {
    font-size: 15px;
  }

  .not-found-actions {
    flex-direction: column;
  }

  .not-found-actions a {
    width: 100%;
  }

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

  .top-actions {
    width: 100%;
    justify-content: stretch;
  }

  .top-actions a {
    flex: 1 1 150px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .lead {
    margin-bottom: 24px;
  }

  .word-cube {
    display: block;
    margin: 4px 0;
    width: 100%;
  }

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

  .audience-panel article {
    min-height: auto;
  }

  .audience-panel article + article {
    border-left: 0;
    border-top: 1px solid var(--stroke);
  }

  .hero-visual {
    display: none;
  }

  .two-cols,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-layout,
  .attach-grid,
  .session-item {
    grid-template-columns: 1fr;
  }

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

  .profile-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .passport-card {
    width: 100%;
    min-height: 172px;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px 58px;
  }

  .passport-card::after {
    content: "ID";
    right: 18px;
    top: auto;
    bottom: 18px;
    font-size: 42px;
  }

  .passport-card .avatar-picker {
    align-self: flex-start;
    flex: 0 0 auto;
  }

  .passport-card .avatar {
    width: 82px;
    height: 82px;
  }

  .passport-card .profile-card-main {
    min-width: 0;
    padding-top: 2px;
  }

  .passport-card .profile-card-main h1 {
    font-size: 22px;
    line-height: 1.14;
  }

  .delete-success-modal {
    padding-top: 18px;
  }

  .delete-success-head {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .delete-success-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 13px;
  }

  .delete-success-head h2 {
    font-size: 21px;
  }

  .delete-success-box p {
    font-size: 13px;
  }

  .delete-success-modal .trash-away {
    height: 82px;
  }

  .account-info dl {
    grid-template-columns: 1fr;
  }
}
