.maint-body {
  min-height: 100vh;
}

.maint-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 2.4rem;
}

.maint-card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  animation: riseIn 0.75s ease both;
}

.maint-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 247, 250, 0.5);
  margin-bottom: 1.4rem;
}

.maint-clock {
  width: 86px;
  height: 86px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  border: 2px solid rgba(201, 120, 43, 0.45);
  box-shadow: 0 0 0 8px rgba(201, 120, 43, 0.08), inset 0 0 24px rgba(201, 120, 43, 0.08);
  position: relative;
}

.maint-clock .hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  background: #f3f7fa;
  border-radius: 2px;
}

.maint-clock .hand-h {
  width: 3px;
  height: 22px;
  margin-left: -1.5px;
  animation: spinHour 8s linear infinite;
}

.maint-clock .hand-m {
  width: 2px;
  height: 30px;
  margin-left: -1px;
  background: #c9782b;
  animation: spinMin 2.4s linear infinite;
}

@keyframes spinHour {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spinMin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.maint-card h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  color: #fff;
}

.maint-lead {
  margin: 0 auto 0.55rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.maint-sub {
  margin: 0 auto 1.45rem;
  max-width: 26rem;
  font-size: 0.9rem;
  color: rgba(243, 247, 250, 0.48);
}

.maint-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 120, 43, 0.35);
  background: rgba(201, 120, 43, 0.12);
  color: #f0c48a;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.maint-status .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9782b;
  box-shadow: 0 0 0 0 rgba(201, 120, 43, 0.55);
  animation: statusPulse 1.8s ease-out infinite;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 120, 43, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(201, 120, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 120, 43, 0); }
}

.maint-logout {
  display: inline-block;
  margin-top: 1.4rem;
  color: rgba(243, 247, 250, 0.7);
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 2px;
}
.maint-logout:hover { color: #fff; }

.maint-foot {
  margin-top: 2.2rem;
  font-size: 0.78rem;
  color: rgba(243, 247, 250, 0.4);
}

.admin-topbar .title { margin-right: auto; }

.ccnet-maint-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(21, 32, 43, 0.12);
  background: #fff;
  color: #15202b;
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}
.ccnet-maint-toggle:hover { filter: brightness(0.98); }
.ccnet-maint-toggle .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1f8a70;
  box-shadow: 0 0 0 3px rgba(31, 138, 112, 0.18);
}
.ccnet-maint-toggle.is-on {
  background: #fff7ed;
  border-color: rgba(201, 120, 43, 0.45);
  color: #9a5a12;
}
.ccnet-maint-toggle.is-on .dot {
  background: #c9782b;
  box-shadow: 0 0 0 3px rgba(201, 120, 43, 0.2);
}

.ccnet-maint-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff7ed, #fff);
  border: 1px solid rgba(201, 120, 43, 0.35);
  color: #7a4710;
  font-size: 0.92rem;
}
.ccnet-maint-banner i { color: #c9782b; }

.login-maint-note {
  margin: 0 0 1.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 120, 43, 0.35);
  background: rgba(201, 120, 43, 0.12);
  color: #f0c48a;
  font-size: 0.9rem;
  line-height: 1.4;
}

.staff-link {
  display: inline-block;
  margin-top: 1.2rem;
  background: none;
  border: 0;
  color: rgba(243, 247, 250, 0.55);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}
.staff-link:hover { color: #fff; }

.staff-login[hidden] { display: none !important; }

@media (max-width: 640px) {
  .ccnet-maint-toggle .txt-full { display: none; }
}
