/* ZapFlix Shield widget (sign-in / sign-up) */
.zf-cap { margin: 4px 0 16px; }
.zf-cap-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: box-shadow 0.25s, background 0.25s;
}
.zf-cap-box[data-state="done"] { background: rgba(61, 220, 132, 0.08); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.35); }
.zf-cap-box[data-state="fail"] { background: rgba(229, 9, 20, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.4); }
.zf-cap-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.zf-cap-icon > * { grid-area: 1 / 1; }
.zf-cap-spin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ff4d55;
  animation: zfCapSpin 0.8s linear infinite;
}
.zf-cap-ok, .zf-cap-bad { display: none; }
.zf-cap-box[data-state="done"] .zf-cap-icon { background: #3ddc84; color: #06240f; animation: zfCapPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.zf-cap-box[data-state="done"] .zf-cap-spin, .zf-cap-box[data-state="fail"] .zf-cap-spin { display: none; }
.zf-cap-box[data-state="done"] .zf-cap-ok { display: block; }
.zf-cap-box[data-state="fail"] .zf-cap-icon { background: rgba(255, 90, 95, 0.2); color: #ff8a8f; }
.zf-cap-box[data-state="fail"] .zf-cap-bad { display: block; }
.zf-cap-text { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: rgba(255, 255, 255, 0.86); }
.zf-cap-box[data-state="done"] .zf-cap-text { color: #9df0bf; }
.zf-cap-retry {
  flex: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.zf-cap-retry:hover { background: rgba(255, 255, 255, 0.2); }
.zf-cap-brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
}
.zf-cap-brand svg { color: #ff4d55; }
.zf-cap-brand small { display: block; font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, 0.42); }
.zf-cap-bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: transparent; }
.zf-cap-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #ff2c36, #ff6b72); transition: width 0.3s ease, opacity 0.4s; }
.zf-cap-box[data-state="done"] .zf-cap-bar i { background: #3ddc84; opacity: 0; transition: width 0.3s ease, opacity 0.6s 0.4s; }
.zf-cap-box[data-state="fail"] .zf-cap-bar i { opacity: 0; }

.zf-cap-visual { margin-top: 12px; }
.zf-cap-hint { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.62); }
.zf-cap-imgrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.zf-cap-img {
  width: 220px;
  max-width: calc(100% - 56px);
  height: auto;
  aspect-ratio: 22 / 7;
  border-radius: 12px;
  background: #16161c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.zf-cap-new {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s, transform 0.3s;
}
.zf-cap-new:hover { background: rgba(255, 255, 255, 0.16); transform: rotate(-30deg); }
.zf-cap-visual input[name="zf_cap_code"] { text-transform: uppercase; letter-spacing: 0.3em; font-weight: 700; }
.zf-cap-noscript { margin: 10px 0 0; font-size: 13px; color: #ff9a9e; }
.zf-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; left: -9999px; }

@keyframes zfCapSpin { to { transform: rotate(360deg); } }
@keyframes zfCapPop { from { transform: scale(0.6); } to { transform: scale(1); } }
@media (max-width: 420px) {
  .zf-cap-brand > span { display: none; }
  .zf-cap-brand { padding-inline-start: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .zf-cap-spin { animation-duration: 2s; }
  .zf-cap-box[data-state="done"] .zf-cap-icon { animation: none; }
}
