*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 2rem 1.5rem;
  position: relative;
}

/* ── Header ─────────────────────────────────────────── */
.header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fade-up 0.6s ease-out both;
}

.header-sub {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.08em;
}

/* ── Card ────────────────────────────────────────────── */
.card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

/* ── States ──────────────────────────────────────────── */
.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.state.hidden {
  display: none;
}

/* ── Loading spinner ─────────────────────────────────── */
.spinner {
  width: 64px;
  height: 64px;
  animation: spin 0.9s linear infinite;
}

.state-label {
  margin-top: 1.5rem;
  color: #64748b;
  font-size: 0.95rem;
}

/* ── Icon circle ─────────────────────────────────────── */
.icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.icon-circle svg {
  width: 64px;
  height: 64px;
}

.icon-circle.green {
  background: linear-gradient(135deg, #15803d, #22c55e);
  box-shadow: 0 0 48px rgba(34, 197, 94, 0.45);
}

.icon-circle.red {
  background: linear-gradient(135deg, #991b1b, #ef4444);
  box-shadow: 0 0 48px rgba(239, 68, 68, 0.4);
}

/* ── Pulse rings ─────────────────────────────────────── */
.pulse-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: pulse-ring 1.7s ease-out infinite;
}

.pulse-ring.ring-2 {
  animation-delay: 0.65s;
}

/* ── Check & X paths ─────────────────────────────────── */
.check-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-path 0.6s ease-out 0.4s both;
}

.x-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-path 0.4s ease-out 0.3s both;
}

/* ── Status text ─────────────────────────────────────── */
.status-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  animation: fade-up 0.5s ease-out 0.7s both;
}

.status-body {
  margin-top: 0.75rem;
  color: #94a3b8;
  font-size: 1rem;
  max-width: 320px;
  line-height: 1.6;
  animation: fade-up 0.5s ease-out 0.9s both;
}

.green-text { color: #22c55e; }
.red-text   { color: #ef4444; }

/* ── Badge ───────────────────────────────────────────── */
.badge {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  animation: fade-up 0.5s ease-out 1.1s both;
}

.green-badge {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.7rem;
  color: #334155;
  letter-spacing: 0.04em;
}

.power-link{
  color: #334155;
  text-decoration: none;
}

/* ── Keyframes ───────────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes scale-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes draw-path {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}

@keyframes fade-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.65; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 400px) {
  .status-title { font-size: 1.75rem; }
  .icon-circle  { width: 100px; height: 100px; }
  .icon-circle svg { width: 54px; height: 54px; }
}
