:root {
  --bg0: #050506;
  --bg1: #0a0a0c;
  --card: rgba(10, 10, 12, 0.9);
  --card2: rgba(12, 12, 14, 0.96);
  --border: rgba(255, 255, 255, 0.07);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);
  --muted2: rgba(255, 255, 255, 0.46);
  --accent: #b7b7bb;
  --accent2: #8b8b92;
  --focus: rgba(255, 255, 255, 0.18);
  --shadowAmbient: 0 22px 70px rgba(0, 0, 0, 0.65);
  --shadowLift: 0 12px 30px rgba(0, 0, 0, 0.55);
  --shadowGlow: 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 40px rgba(255, 255, 255, 0.04);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(
      1200px 700px at 50% 35%,
      rgba(255, 255, 255, 0.03),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 50% 90%,
      rgba(0, 0, 0, 0.65),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  letter-spacing: 0.2px;
}

.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  position: relative;
  overflow: hidden;
}

.backdrop {
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    60% 55% at 50% 45%,
    rgba(255, 255, 255, 0.035),
    transparent 60%
  );
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
  transform: translateZ(0);
  animation: glowFlicker 9.5s ease-in-out infinite;
}

.card {
  width: min(680px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadowAmbient), var(--shadowGlow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  animation: cardPulse 11.5s ease-in-out infinite;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    120% 120% at 20% 0%,
    rgba(255, 255, 255, 0.045),
    transparent 55%
  );
  pointer-events: none;
  opacity: 0.9;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  animation: dotFlicker 7.2s linear infinite;
}

.title {
  margin: 18px 0 8px;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.8px;
  font-weight: 760;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.ellipsis {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), var(--muted2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textFlicker 6.8s linear infinite;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.9vw, 16px);
  line-height: 1.6;
  max-width: 58ch;
}

.actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.statusLabel {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.74);
}

.statusLine {
  margin: 0;
  min-width: 0;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.statusLine::selection,
.statusLabel::selection {
  background: rgba(139, 92, 246, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 140ms ease, box-shadow 140ms ease,
    border-color 140ms ease, background 140ms ease;
  position: relative;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.48);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.btn:active {
  transform: translateY(0px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus), 0 14px 40px rgba(0, 0, 0, 0.5);
}

.btnIcon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.footer {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footerLine {
  height: 1px;
  flex: 1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.03)
  );
}

.footerText {
  margin: 0;
  color: var(--muted2);
  font-size: 13px;
}

@keyframes glowFlicker {
  0%,
  8%,
  12%,
  56%,
  60%,
  100% {
    opacity: 0.48;
    filter: blur(18px);
  }
  9%,
  10% {
    opacity: 0.58;
    filter: blur(17px);
  }
  58% {
    opacity: 0.54;
    filter: blur(17px);
  }
}

@keyframes textFlicker {
  0%,
  6%,
  100% {
    opacity: 1;
  }
  7% {
    opacity: 0.72;
  }
  7.5% {
    opacity: 1;
  }
  48% {
    opacity: 1;
  }
  49% {
    opacity: 0.75;
  }
  49.4% {
    opacity: 1;
  }
}

@keyframes cardPulse {
  0%,
  30%,
  100% {
    box-shadow: var(--shadowAmbient), var(--shadowGlow);
  }
  31% {
    box-shadow: var(--shadowAmbient),
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 0 60px rgba(255, 255, 255, 0.05);
  }
  31.6% {
    box-shadow: var(--shadowAmbient), var(--shadowGlow);
  }
  72% {
    box-shadow: var(--shadowAmbient),
      0 0 0 1px rgba(255, 255, 255, 0.045),
      0 0 55px rgba(255, 255, 255, 0.04);
  }
  73% {
    box-shadow: var(--shadowAmbient), var(--shadowGlow);
  }
}

@keyframes dotFlicker {
  0%,
  5%,
  100% {
    opacity: 1;
  }
  6% {
    opacity: 0.55;
  }
  6.5% {
    opacity: 1;
  }
  52% {
    opacity: 1;
  }
  53% {
    opacity: 0.6;
  }
  53.3% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop,
  .ellipsis,
  .card,
  .badge::before {
    animation: none;
  }
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
