* {
  box-sizing: border-box;
}

:root {
  --background: #f7f8ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-border: rgba(255, 255, 255, 0.66);
  --text: #151827;
  --muted: #657084;
  --subtle: #8a94a7;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --shadow: 0 34px 100px rgba(44, 50, 82, 0.18);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(124, 58, 237, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 22%, rgba(37, 99, 235, 0.14), transparent 30rem),
    radial-gradient(circle at 50% 95%, rgba(6, 182, 212, 0.12), transparent 30rem),
    linear-gradient(135deg, #ffffff 0%, var(--background) 58%, #eef2ff 100%);
}

.maintenance-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 72px);
}

.maintenance-page::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 86%);
}

.background-glow {
  position: absolute;
  z-index: -2;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.64;
  animation: drift 14s ease-in-out infinite alternate;
}

.background-glow-primary {
  top: -14rem;
  right: 2%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(6, 182, 212, 0.14));
}

.background-glow-secondary {
  bottom: -15rem;
  left: -4rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(37, 99, 235, 0.14));
  animation-delay: -4s;
}

.background-shape {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 80px rgba(79, 70, 229, 0.12);
  backdrop-filter: blur(18px);
  animation: float 9s ease-in-out infinite;
}

.background-shape-one {
  top: 17%;
  left: 12%;
  width: 94px;
  height: 94px;
  border-radius: 28px;
  transform: rotate(14deg);
}

.background-shape-two {
  right: 13%;
  bottom: 18%;
  width: 124px;
  height: 124px;
  border-radius: 999px;
  animation-delay: -3s;
}

.maintenance-card {
  position: relative;
  width: min(100%, 760px);
  padding: clamp(34px, 6vw, 68px);
  text-align: center;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(124, 58, 237, 0.28), rgba(37, 99, 235, 0.34)) border-box;
  border: 1px solid transparent;
  border-radius: clamp(30px, 5vw, 48px);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  transform: translateY(0);
  animation: reveal 700ms ease-out both;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.maintenance-card::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 38%),
    radial-gradient(circle at 20% 22%, rgba(124, 58, 237, 0.09), transparent 30%),
    radial-gradient(circle at 80% 34%, rgba(37, 99, 235, 0.08), transparent 32%);
}

.maintenance-card:hover {
  box-shadow:
    0 42px 120px rgba(44, 50, 82, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-5px);
}

.maintenance-illustration {
  position: relative;
  width: 136px;
  height: 112px;
  margin: 0 auto clamp(26px, 4vw, 38px);
  animation: float 5.5s ease-in-out infinite;
}

.status-orb {
  position: absolute;
  top: 12px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  color: var(--indigo);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 242, 255, 0.74)),
    linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 48px rgba(79, 70, 229, 0.22);
  transform: translateX(-50%) rotate(-4deg);
}

.status-orb span {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    linear-gradient(currentColor 0 0) center / 18px 4px no-repeat,
    linear-gradient(currentColor 0 0) center / 4px 18px no-repeat;
  transform: rotate(45deg);
}

.status-orb span::before,
.status-orb span::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.status-orb span::before {
  inset: -7px;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.status-orb span::after {
  right: -7px;
  bottom: -7px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.12);
}

.floating-panel {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(79, 70, 229, 0.16);
  backdrop-filter: blur(16px);
}

.panel-primary {
  bottom: 8px;
  left: 0;
  width: 58px;
  height: 42px;
}

.panel-primary::before,
.panel-secondary::before {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.62), rgba(6, 182, 212, 0.45));
}

.panel-primary::before {
  top: 15px;
  left: 13px;
  width: 31px;
  height: 6px;
}

.panel-secondary {
  right: 2px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
}

.panel-secondary::before {
  inset: 13px;
}

.maintenance-content h1 {
  max-width: 13ch;
  margin: 0 auto 20px;
  font-size: clamp(3rem, 7vw, 4rem);
  line-height: 1;
  font-weight: 700;
  text-wrap: balance;
}

.maintenance-content p {
  max-width: 36rem;
  margin: 0 auto;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.maintenance-content .maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  margin: 0 0 18px;
  padding: 8px 13px;
  color: #3730a3;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(238, 242, 255, 0.78);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.maintenance-content .maintenance-badge::before {
  width: 7px;
  height: 7px;
  content: "";
  background: linear-gradient(135deg, var(--violet), var(--blue));
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.status-card {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin: clamp(28px, 5vw, 42px) auto 0;
  padding: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 54px rgba(30, 41, 59, 0.08);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--subtle);
  font-size: 0.94rem;
}

.status-row strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #263042;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: right;
}

.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.status-dot::after {
  position: absolute;
  inset: -7px;
  content: "";
  border: 1px solid rgba(37, 99, 235, 0.36);
  border-radius: inherit;
  animation: pulse 1.8s ease-out infinite;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: rgba(226, 232, 240, 0.8);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--violet), var(--cyan));
  border-radius: inherit;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.26);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(2rem, 1.5rem, 0) scale(1.08);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  from {
    opacity: 0.7;
    transform: scale(0.8);
  }

  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

@media (max-width: 640px) {
  .maintenance-page {
    padding: 18px;
  }

  .maintenance-card {
    padding: 34px 22px;
    border-radius: 28px;
  }

  .maintenance-content h1 {
    font-size: 35px;
  }

  .status-card {
    padding: 16px;
  }

  .status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .status-row strong {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
