/* EXTRUCK internal captcha */
.ex-captcha {
  --ex-cap-navy: #0f172a;
  --ex-cap-amber: #F5A623;
  --ex-cap-line: #e2e8f0;
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 1rem;
  border: 2px solid var(--ex-cap-line);
  background:
    linear-gradient(145deg, rgba(245, 166, 35, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.45);
}
.ex-captcha__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}
.ex-captcha__label {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--ex-cap-navy);
  letter-spacing: -0.01em;
}
.ex-captcha__hint {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
}
.ex-captcha__stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ex-captcha__art {
  flex: 1;
  min-height: 64px;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.2);
  transition: transform 0.25s ease, filter 0.25s ease;
}
.ex-captcha__art svg {
  display: block;
  width: 100%;
  height: auto;
}
.ex-captcha__refresh {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 0.85rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.ex-captcha__refresh:hover:not(:disabled) {
  border-color: var(--ex-cap-amber);
  color: #b45309;
  background: #fffbeb;
  transform: translateY(-1px);
}
.ex-captcha__refresh:disabled {
  opacity: 0.55;
  cursor: wait;
}
.ex-captcha__refresh-ico {
  width: 18px;
  height: 18px;
}
.ex-captcha__refresh:not(:disabled):active .ex-captcha__refresh-ico {
  animation: exCapSpin 0.55s ease;
}
@keyframes exCapSpin {
  to { transform: rotate(-360deg); }
}
.ex-captcha__field { display: block; }
.ex-captcha__input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  text-align: center;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ex-captcha__input:focus {
  border-color: var(--ex-cap-amber);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18);
}
.ex-captcha__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Admin glass variant */
.glass-panel .ex-captcha {
  background:
    linear-gradient(145deg, rgba(245, 166, 35, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}
