:root {
  --bg: #05080e;
  --card: #0b111b;
  --card-border: rgba(70, 130, 200, 0.18);
  --accent: #4aa3ff;
  --accent-soft: #6bb0ff;
  --text: #ffffff;
  --muted: #6d86a6;
  --dim: #4d6480;
  --pill: #101826;
  --ring-track: rgba(74, 163, 255, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #12203a 0%, transparent 55%),
    var(--bg);
  color: var(--text);
}

.card {
  width: 100%;
  max-width: 390px;
  padding: 36px 28px 22px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(22, 38, 64, 0.35) 0%, transparent 28%),
    var(--card);
  border: 1px solid var(--card-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shield-wrap {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(74, 163, 255, 0.55));
}

.shield-icon {
  width: 42px;
  height: 42px;
}

.header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dot {
  width: 5px;
  height: 5px;
  margin: 12px 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74, 163, 255, 0.7);
}

.subtitle {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 28px;
}

.ring-wrap {
  position: relative;
  width: 188px;
  height: 188px;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track,
.ring-progress {
  fill: none;
  stroke-width: 3.2;
}

.ring-track {
  stroke: var(--ring-track);
}

.ring-progress {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 552.92;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(74, 163, 255, 0.55));
  transition: stroke-dashoffset 1s linear;
}

.ring-progress.resetting {
  transition: none;
}

.count {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.verifying-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #0e1622;
  border: 1px solid rgba(90, 130, 180, 0.22);
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.verifying-badge svg {
  width: 15px;
  height: 15px;
}

.status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.device-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.sync-icon {
  width: 16px;
  height: 16px;
  animation: spin 2.4s linear infinite;
}

.aes-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #101a28;
  border: 1px solid rgba(80, 130, 190, 0.16);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(107, 176, 255, 0.25);
}

.aes-badge svg {
  width: 16px;
  height: 16px;
  color: #e8f2ff;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(70, 100, 140, 0.18);
  color: var(--dim);
  font-size: 11px;
  font-weight: 500;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.meta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 380px) {
  .card {
    padding: 28px 18px 18px;
  }

  .count {
    font-size: 56px;
  }

  .ring-wrap {
    width: 168px;
    height: 168px;
  }
}
