:root{
  --g1:#0a2336; --g2:#1f3a66;
  --ink:#f2f6fb; --mut:#d3deec;
  --glass:#ffffff12; --stroke:#ffffff24; --glow:#ffffff22;
  --accent:#7bdff2; --btnText:#0b2545;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  font-family:Inter,system-ui,"Segoe UI",Roboto,Ubuntu,sans-serif;
  color:var(--ink);
  background:linear-gradient(135deg,var(--g1),var(--g2));
  display:flex; align-items:center; justify-content:center;
  padding:18px;
  -webkit-tap-highlight-color: transparent;
}

/* Карточка */
.pf-wrap{width:100%; max-width:520px}
.pf-card{
  position:relative; text-align:center; padding:38px 34px 28px;
  background:var(--glass); border:1px solid var(--stroke); border-radius:18px;
  backdrop-filter:blur(12px);
  box-shadow:0 14px 34px rgba(0,0,0,.28);
  user-select: none;
}
.pf-badge{
  position:absolute; top:-18px; right:-18px; width:46px; height:46px;
  background:var(--glow); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
h1{font-size:26px; font-weight:700; margin:6px 0 14px}

/* Лоадер */
.pf-loader{display:flex; flex-direction:column; align-items:center; gap:14px; margin-bottom:10px}
.pf-spinner{
  width:40px; height:40px; border-radius:50%;
  border:3px solid rgba(255,255,255,.25);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
.pf-spinner.pf-spinner-paused{animation-play-state:paused}
@keyframes spin{to{transform:rotate(360deg)}}

.pf-bar{
  position:relative; width:100%; max-width:360px; height:8px;
  background:rgba(255,255,255,.12); border-radius:999px; overflow:hidden;
}
.pf-bar-fill{
  position:absolute; left:-40%; top:0; bottom:0; width:40%;
  background:linear-gradient(90deg, rgba(255,255,255,.2), var(--accent), rgba(255,255,255,.2));
  animation: slide 1.2s ease-in-out infinite;
}
.pf-bar-fill.pf-bar-paused{animation-play-state:paused}
@keyframes slide{0%{left:-40%}50%{left:60%}100%{left:110%}}

/* Тексты и кнопка */
.pf-status{font-size:16px; color:var(--mut); margin-bottom:6px}
.pf-error{font-size:14px; color:#ff8a80; min-height:1.25em; margin-top:4px}

.pf-btn{
  margin-top:12px;
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 16px;
  color:var(--btnText);
  background:#e6f7ff;
  border:1px solid #bfefff;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  line-height:1;
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  cursor:pointer;
  user-select:none;
}
.pf-btn:hover{transform:translateY(-1px); box-shadow:0 6px 16px rgba(0,0,0,.18)}
.pf-btn:active{transform:translateY(0)}
.pf-btn:disabled{opacity:.55; cursor:default; box-shadow:none; transform:none}
.pf-btn:focus{outline:none}
.pf-btn:focus-visible{outline:2px solid #bfefff; outline-offset:2px}

@media (max-width:480px){
  .pf-card{padding:28px 22px 22px}
  h1{font-size:22px}
  .pf-status,.pf-error{font-size:14px}
  .pf-badge{width:40px;height:40px;top:-16px;right:-16px}
}
