/* ==========================================================================
   Variant-specific styles for the 5 loading screens.
   Only one variant is mounted at a time, so selectors don't clash.
   ========================================================================== */

/* ---- shared keyframes ---- */
@keyframes ringspin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }

/* ============ Variant 1 — Encrypted Tunnel ============ */
.tunnel-bars {
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 22px 0 6px;
  overflow: hidden;
}
.tunnel-bars .bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--violet) 0%,
    var(--blue) 35%,
    var(--green-2) 70%,
    rgba(34, 224, 138, 0) 100%
  );
  background-size: 220% 100%;
  animation: flow 2.2s linear infinite;
}
.tunnel-bars .bar:nth-child(1) { width: 92%; }
.tunnel-bars .bar:nth-child(2) { width: 78%; animation-delay: .35s; }
.tunnel-bars .bar:nth-child(3) { width: 64%; animation-delay: .7s; opacity: .85; }
@keyframes flow {
  0%   { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* ============ Variant 2 — Gateway Shield ============ */
.ring-wrap { display: flex; justify-content: center; margin: 20px 0 30px; }
.ring { position: relative; width: 190px; height: 190px; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .track { stroke: #e9eafc; }
.ring .prog { stroke: url(#g2grad); stroke-linecap: round; }
.ring .spin { animation: ringspin 2.4s linear infinite; transform-origin: center; }
.ring .pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; letter-spacing: -0.02em;
}
.metrics { display: flex; flex-direction: column; gap: 18px; margin-top: 4px; }
.metric {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center; gap: 12px;
}
.metric .gd { width: 10px; height: 10px; border-radius: 50%; background: var(--green); justify-self: center; }
.metric .lbl { color: var(--ink-2); font-size: 16px; }
.metric .val { font-weight: 800; font-size: 17px; }

/* ============ Variant 3 — Verification Timeline ============ */
.timeline { margin-top: 22px; display: flex; flex-direction: column; }
.step { position: relative; padding: 0 0 8px 40px; min-height: 62px; }
.step::before {
  content: ""; position: absolute;
  left: 12px; top: 26px; bottom: -6px;
  width: 2px; background: #e4e7f2;
}
.step:last-child::before { display: none; }
.step .node {
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px #e7e8ff;
}
.step.pending .node { background: #c8cbe8; box-shadow: 0 0 0 4px #eef0f8; }
.step .title { font-size: 19px; font-weight: 600; }
.step .tag {
  display: inline-block; margin-top: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 8px;
  background: var(--chip); color: var(--blue-2);
}
.step .tag.live { background: #e5fff0; color: #06a94d; }
.step .tag.live::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #17c964; margin-right: 6px; vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}

/* ============ Variant 4 — Trust Gateway ============ */
.badge .shield {
  width: 14px; height: 16px; background: var(--blue);
  border-radius: 4px 4px 6px 6px;
  clip-path: polygon(50% 0, 100% 20%, 100% 60%, 50% 100%, 0 60%, 0 20%);
}
.spinner-wrap { display: flex; justify-content: center; margin: 26px 0 20px; }
.spinner { position: relative; width: 150px; height: 150px; }
.spinner .dashed {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed #b7e6cf; animation: rev 9s linear infinite;
}
@keyframes rev { to { transform: rotate(-360deg); } }
.spinner svg { position: absolute; inset: 0; animation: ringspin 1.1s linear infinite; }
.spinner .glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-2);
}
.track-bar {
  height: 10px; border-radius: 999px;
  background: #eef0f8; overflow: hidden; margin: 6px 4px 24px;
}
.track-bar > span {
  display: block; height: 100%; width: 45%; border-radius: 999px;
  background: linear-gradient(90deg, #ffffff 0%, #7c3aed 30%, #1b1eff 60%, #22e08a 100%);
  animation: slide 1.8s ease-in-out infinite;
}
@keyframes slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(240%); }
}
.rows.big .row {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; padding: 16px 22px;
}
.rows.big .row .left { display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 16px; }
.rows.big .row .gd { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.rows.big .row .v { font-weight: 800; font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2);
}

/* ============ Variant 5 — Terminal secure-gateway ============ */
.term-dots { display: flex; gap: 8px; margin-bottom: 18px; }
.term-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--blue-2); display: block; }
.console {
  background: #f7f8fe; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 16px 16px 18px; font-family: var(--mono);
  font-size: 13.5px; line-height: 1.9; color: var(--ink);
}
.console .head { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 10px; font-size: 12.5px; }
.console .head b { color: var(--blue-2); }
.console .line { white-space: pre-wrap; }
.console .line .arrow { color: var(--muted); margin-right: 8px; }
.console .cursor {
  display: inline-block; width: 8px; height: 15px; background: var(--blue);
  vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite;
}
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 16px 0; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px; }
.stat .gd { width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-bottom: 8px; }
.stat .k { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.stat .v { font-weight: 800; font-size: 15px; margin-top: 2px; }
h1.mono { font-family: var(--mono); font-weight: 700; font-size: clamp(30px, 9vw, 42px); }
.lead.mono { font-family: var(--mono); font-size: 15px; }
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
}
