/* PlasticsFlashcards account gate */
.pf-account-pill{
  position:fixed;right:18px;bottom:18px;z-index:9998;
  display:flex;align-items:center;gap:8px;
  max-width:min(92vw,520px);
  background:rgba(15,24,36,.92);
  border:1px solid rgba(0,240,208,.22);
  color:#C8DDE8;border-radius:999px;
  padding:8px 11px;font-size:11px;font-weight:800;
  box-shadow:0 14px 36px rgba(0,0,0,.34);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
}
.pf-account-pill span{display:block;min-width:0;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pf-account-pill button{
  border:0;border-radius:999px;background:#00F0D0;color:#06090F;
  padding:6px 9px;font:inherit;font-size:10px;cursor:pointer;
}
.pf-account-pill .ghost{background:rgba(255,255,255,.08);color:#C8DDE8;border:1px solid rgba(255,255,255,.12)}
.pf-account-pill .dash{background:rgba(157,143,240,.18);color:#ddd6fe;border:1px solid rgba(157,143,240,.35)}
.pf-auth-modal{
  position:fixed;inset:0;z-index:10000;
  display:none;align-items:center;justify-content:center;
  padding:18px;background:rgba(2,6,23,.82);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
.pf-auth-modal.open{display:flex}
body.pf-auth-locked > *:not(.pf-auth-modal):not(.pf-account-pill){
  filter:blur(3px);pointer-events:none;user-select:none;
}
.pf-auth-card{
  width:min(420px,100%);background:#0F1824;
  border:1px solid rgba(0,240,208,.24);
  border-radius:18px;padding:20px;
  box-shadow:0 28px 80px rgba(0,0,0,.48);
  font-family:'Inter',system-ui,sans-serif;color:#fff;
}
.pf-auth-top{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}
.pf-auth-mark{
  width:38px;height:38px;border-radius:10px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#00F0D0,#9D8FF0);
  color:#06090F;font-weight:900;
}
.pf-auth-title{font-size:18px;font-weight:900;margin-bottom:4px}
.pf-auth-sub{font-size:12px;color:#7A9FB5;line-height:1.55}
.pf-auth-close{
  margin-left:auto;border:0;background:rgba(255,255,255,.06);
  color:#94a3b8;border-radius:8px;padding:5px 9px;cursor:pointer;
}
.pf-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.pf-auth-tabs button{
  border:1px solid rgba(255,255,255,.10);border-radius:10px;
  background:rgba(255,255,255,.05);color:#94a3b8;
  padding:9px;font-weight:900;cursor:pointer;
}
.pf-auth-tabs button.active{background:rgba(0,240,208,.12);border-color:rgba(0,240,208,.34);color:#5EEAD4}
.pf-auth-card label{display:block;font-size:10px;color:#7A9FB5;font-weight:900;text-transform:uppercase;letter-spacing:.8px;margin:10px 0 5px}
.pf-auth-card input{
  width:100%;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);color:#fff;border-radius:10px;
  padding:11px 12px;font-size:14px;outline:none;
}
.pf-auth-card input:focus{border-color:#00F0D0}
.pf-auth-primary{
  width:100%;border:0;border-radius:11px;margin-top:14px;
  background:linear-gradient(135deg,#00F0D0,#9D8FF0);
  color:#06090F;font-size:13px;font-weight:900;padding:12px;cursor:pointer;
}
.pf-auth-preview{
  width:100%;border:1px solid rgba(255,255,255,.12);border-radius:11px;margin-top:9px;
  background:rgba(255,255,255,.04);color:#C8DDE8;font-size:12px;font-weight:900;
  padding:11px;cursor:pointer;
}
.pf-auth-preview:hover{border-color:rgba(0,240,208,.35);color:#5EEAD4}
.pf-auth-note{font-size:11px;color:#64748B;line-height:1.55;margin-top:12px}
.pf-auth-msg{font-size:12px;line-height:1.5;margin-top:10px;color:#5EEAD4;min-height:18px}
.pf-auth-msg.err{color:#FCA5A5}
.pf-card-actions{
  display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;
  padding-top:10px;border-top:1px solid rgba(255,255,255,.06)
}
.pf-card-actions button{
  border:1px solid rgba(0,240,208,.22);background:rgba(0,240,208,.08);
  color:#5EEAD4;border-radius:999px;padding:7px 10px;font-size:11px;
  font-weight:900;cursor:pointer;
}
.pf-card-actions button:hover{background:rgba(0,240,208,.14)}
.pf-dashboard-modal{
  position:fixed;inset:0;z-index:10001;display:none;align-items:center;justify-content:center;
  padding:18px;background:rgba(2,6,23,.78);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)
}
.pf-dashboard-modal.open{display:flex}
.pf-dashboard-card{
  width:min(520px,100%);max-height:84vh;overflow:auto;background:#0F1824;
  border:1px solid rgba(157,143,240,.26);border-radius:18px;padding:20px;color:#fff;
  box-shadow:0 28px 80px rgba(0,0,0,.48);font-family:'Inter',system-ui,sans-serif
}
.pf-dashboard-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.pf-dashboard-title{font-size:19px;font-weight:950}
.pf-dashboard-close{border:0;background:rgba(255,255,255,.06);color:#94a3b8;border-radius:8px;padding:6px 10px;cursor:pointer}
.pf-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}
.pf-stat{background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:12px}
.pf-stat strong{display:block;font-size:22px;color:#5EEAD4}
.pf-stat span{font-size:10px;text-transform:uppercase;letter-spacing:.9px;color:#7A9FB5;font-weight:900}
.pf-level-bar{height:9px;background:rgba(255,255,255,.08);border-radius:999px;overflow:hidden;margin:10px 0 16px}
.pf-level-bar i{display:block;height:100%;background:linear-gradient(90deg,#00F0D0,#9D8FF0)}
.pf-fav-list{display:grid;gap:8px;margin-top:10px}
.pf-fav-item{padding:10px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);font-size:12px;color:#C8DDE8}
@media(max-width:560px){
  .pf-account-pill{left:12px;right:12px;bottom:12px;justify-content:space-between}
  .pf-account-pill span{max-width:48vw}
  .pf-stats{grid-template-columns:1fr}
}
