.adsrek-shield {
  --shield-accent: #2563eb;
  --shield-accent-2: #38bdf8;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 430px);
  min-height: 74px;
  margin: 18px auto 12px;
  padding: 13px 14px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .20);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,248,255,.96)),
    radial-gradient(circle at 0 0, rgba(56,189,248,.18), transparent 42%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  color: #0f172a;
  text-align: left;
  cursor: default;
}
.adsrek-shield::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.55) 45%, transparent 70%);
  transform: translateX(-130%);
  animation: adsrek-shield-glint 3.6s ease-in-out infinite;
}
.adsrek-shield[data-shield-state="ready"] {
  --shield-accent: #059669;
  --shield-accent-2: #34d399;
  border-color: rgba(5, 150, 105, .28);
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(236,253,245,.96));
}
.adsrek-shield[data-shield-state="error"] {
  --shield-accent: #dc2626;
  --shield-accent-2: #fb7185;
  border-color: rgba(220, 38, 38, .25);
  cursor: pointer;
}
.adsrek-shield__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 46px;
  width: 46px;
  height: 52px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 93% 15%, 88% 68%, 50% 100%, 12% 68%, 7% 15%);
  background: linear-gradient(145deg, var(--shield-accent-2), var(--shield-accent));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--shield-accent) 28%, transparent);
}
.adsrek-shield__icon span {
  width: 13px;
  height: 22px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg) translate(-2px, -2px) scale(.72);
  opacity: .45;
}
.adsrek-shield[data-shield-state="ready"] .adsrek-shield__icon span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -2px) scale(1);
  transition: .25s ease;
}
.adsrek-shield[data-shield-state="loading"] .adsrek-shield__icon,
.adsrek-shield[data-shield-state="solving"] .adsrek-shield__icon {
  animation: adsrek-shield-pulse 1.25s ease-in-out infinite;
}
.adsrek-shield__content {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1 1 auto;
}
.adsrek-shield__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.adsrek-shield__top strong {
  font-size: 14px;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: .01em;
}
.adsrek-shield__local {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(37,99,235,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #64748b;
  font-size: 10px;
  line-height: 1.2;
}
.adsrek-shield__status {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adsrek-shield__bar {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148,163,184,.20);
}
.adsrek-shield__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--shield-accent-2), var(--shield-accent));
  transition: width .18s ease;
}
.adsrek-shield__retry {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  padding: 7px 9px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15,23,42,.08);
  color: var(--shield-accent);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.adsrek-shield__trap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.adsrek-shield--compact { min-height: 64px; padding: 10px 12px; }
.adsrek-shield--compact .adsrek-shield__icon { flex-basis: 38px; width: 38px; height: 43px; }
@keyframes adsrek-shield-pulse {
  0%,100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.045); filter: saturate(1.25); }
}
@keyframes adsrek-shield-glint {
  0%,55% { transform: translateX(-130%); }
  85%,100% { transform: translateX(130%); }
}
@media (max-width: 480px) {
  .adsrek-shield { width: 100%; min-height: 70px; padding: 11px 12px; gap: 10px; }
  .adsrek-shield__icon { flex-basis: 40px; width: 40px; height: 46px; }
  .adsrek-shield__local { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .adsrek-shield::after, .adsrek-shield__icon { animation: none !important; }
}
