/* ============================================================
   Temporarily Suspended — single page stylesheet
   ============================================================ */

:root {
  --bg: #0b1020;
  --bg-soft: #121933;
  --card: rgba(20, 27, 51, 0.72);
  --border: rgba(140, 165, 255, 0.16);
  --text: #eef2ff;
  --muted: #95a1c4;
  --accent: #6d8cff;
  --accent-2: #9b6dff;
  --warn: #ffb454;
  --radius: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, #1b2450 0%, transparent 60%),
    linear-gradient(160deg, var(--bg) 0%, #070a16 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- decorative background ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 165, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 165, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
}

.glow {
  position: fixed;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.4;
  pointer-events: none;
  animation: float 16s ease-in-out infinite;
}
.glow-1 { background: var(--accent);   top: -18vmax; left: -14vmax; }
.glow-2 { background: var(--accent-2); bottom: -22vmax; right: -16vmax; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(3vmax, 2vmax, 0) scale(1.08); }
}

/* ---------- card ---------- */
.card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  padding: clamp(30px, 5vw, 52px);
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ---------- badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--warn);
  background: rgba(255, 180, 84, 0.09);
  border: 1px solid rgba(255, 180, 84, 0.28);
  border-radius: 999px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 0 rgba(255, 180, 84, 0.6);
  animation: pulse 2.1s ease-out infinite;
}

@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255, 180, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 180, 84, 0); }
}

/* ---------- icon ---------- */
.icon {
  width: 78px;
  height: 78px;
  margin: 26px auto 4px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(109, 140, 255, 0.18), rgba(155, 109, 255, 0.1));
  border: 1px solid rgba(140, 165, 255, 0.22);
}
.icon svg { width: 40px; height: 40px; }

/* ---------- text ---------- */
h1 {
  margin: 22px 0 0;
  font-size: clamp(1.5rem, 4.4vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff, #b9c6ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 16px auto 0;
  max-width: 46ch;
  font-size: clamp(0.94rem, 2.3vw, 1.03rem);
  line-height: 1.68;
  color: var(--muted);
}

.lead strong {
  color: #d7deff;
  font-weight: 600;
}

/* ---------- status panel ---------- */
.status {
  margin: 28px 0 0;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(6, 10, 24, 0.42);
  overflow: hidden;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  font-size: 0.87rem;
}
.status-row + .status-row { border-top: 1px solid var(--border); }

/* keep the HTML `hidden` attribute authoritative over display:flex */
.status-row[hidden] { display: none; }

.status-label {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.status-value {
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.2s ease,
              background 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px -12px rgba(109, 140, 255, 0.85);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(109, 140, 255, 0.95);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(140, 165, 255, 0.36);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn[aria-busy="true"] { pointer-events: none; opacity: 0.72; }

/* spinner used while checking */
.spin {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- note + footer ---------- */
.note {
  min-height: 20px;
  margin: 16px 0 0;
  font-size: 0.83rem;
  color: var(--muted);
}
.note.ok  { color: #7ee2a8; }
.note.err { color: var(--warn); }

.foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  line-height: 1.6;
  color: rgba(149, 161, 196, 0.75);
}
.sep { margin: 0 6px; }

/* ---------- responsive ---------- */
@media (max-width: 420px) {
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .status-row { flex-direction: column; align-items: flex-start; gap: 3px; }
  .status-value { text-align: left; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
