@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/__hex_shield/assets/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/__hex_shield/assets/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --hx-bg: #111113;
  --hx-surface: #18191b;
  --hx-raised: #1f2124;
  --hx-field: #222326;
  --hx-accent: #0090ff;
  --hx-accent-hover: #3b9eff;
  --hx-ink: #071929;
  --hx-text: #f3f4f6;
  --hx-soft: #9ca3af;
  --hx-muted: #7e8691;
  --hx-danger: #ef4444;
  --hx-danger-bg: rgba(239, 68, 68, 0.14);
  --hx-danger-fg: #f87171;
  --hx-success: #22c55e;
  --hx-success-bg: rgba(34, 197, 94, 0.14);
  --hx-success-fg: #4ade80;
  --hx-line: rgba(255, 255, 255, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--hx-bg);
  color: var(--hx-text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(720px circle at 50% -8%, rgba(0, 144, 255, 0.1), transparent 68%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

body.hx-body-blocked {
  background-image:
    radial-gradient(680px circle at 50% -8%, rgba(239, 68, 68, 0.1), transparent 68%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

.hx-topbar,
.hx-footer {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hx-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.hx-brand-logo {
  width: 34px;
  height: 34px;
  display: block;
}

.hx-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hx-text);
}

.hx-brand-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.hx-brand-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--hx-muted);
}

.hx-edge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  font-size: 12px;
  font-weight: 700;
  color: var(--hx-soft);
}

.hx-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--hx-accent);
  box-shadow: 0 0 10px rgba(0, 144, 255, 0.65);
}

.hx-dot-danger {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--hx-danger);
}

.hx-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px clamp(16px, 4vw, 32px);
}

.hx-card {
  width: 100%;
  max-width: 468px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 32px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: hxCardIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hxCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hx-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hx-host-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--hx-field);
  color: var(--hx-soft);
  font-size: 12px;
  font-weight: 700;
  max-width: 100%;
}

.hx-host-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hx-danger-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--hx-danger-bg);
  color: var(--hx-danger-fg);
  font-size: 12px;
  font-weight: 800;
}

.hx-title {
  margin: 0;
  font-size: clamp(21px, 4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--hx-text);
}

.hx-copy {
  margin: -8px 0 0;
  font-size: 14px;
  line-height: 1.58;
  color: var(--hx-soft);
}

.hx-copy-strong {
  margin: -4px 0 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--hx-text);
  font-weight: 600;
}

/* Turnstile-grade widget box */
.hx-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--hx-field);
  border: 1px solid var(--hx-line);
  border-radius: 16px;
  padding: 16px 18px;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.hx-widget[data-state='stepup'] {
  border-color: rgba(0, 144, 255, 0.38);
}

.hx-widget[data-state='ok'] {
  border-color: rgba(74, 222, 128, 0.34);
}

.hx-widget-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hx-widget-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.hx-slot {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
}

.hx-spinner {
  width: 30px;
  height: 30px;
  color: var(--hx-accent);
  animation: hxSpin 920ms linear infinite;
}

@keyframes hxSpin {
  to {
    transform: rotate(360deg);
  }
}

.hx-check-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(0, 144, 255, 0.65);
  background: var(--hx-surface);
  color: var(--hx-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.hx-check-box:hover {
  border-color: var(--hx-accent-hover);
  background: var(--hx-raised);
}

.hx-check-box:active {
  transform: scale(0.95);
  background: rgba(0, 144, 255, 0.14);
}

.hx-check-box:focus-visible {
  outline: 2px solid var(--hx-accent);
  outline-offset: 2px;
}

.hx-check-inner {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.hx-check-box:hover .hx-check-inner {
  border-color: var(--hx-accent-hover);
}

.hx-ok-badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--hx-success-bg);
  color: var(--hx-success-fg);
  display: grid;
  place-items: center;
  animation: hxPop 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hxPop {
  from {
    transform: scale(0.75);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hx-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hx-status-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--hx-text);
  line-height: 1.3;
}

.hx-status-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hx-muted);
  line-height: 1.35;
}

.hx-seal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex: none;
  padding-left: 8px;
}

.hx-seal img {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.hx-seal span {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--hx-muted);
}

.hx-progress-track {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hx-progress-bar {
  height: 100%;
  width: 28%;
  border-radius: 999px;
  background: var(--hx-accent);
  transition: width 260ms ease, background-color 200ms ease;
}

.hx-widget[data-state='ok'] .hx-progress-bar {
  width: 100%;
  background: var(--hx-success-fg);
}

.hx-widget[data-state='stepup'] .hx-progress-bar {
  width: 62%;
}

.hx-meta-box {
  background: var(--hx-field);
  border: 1px solid var(--hx-line);
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hx-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.hx-meta-key {
  color: var(--hx-muted);
  font-weight: 600;
}

.hx-meta-val {
  color: var(--hx-text);
  font-weight: 700;
  text-align: right;
}

.hx-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.hx-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--hx-muted);
}

.hx-footer {
  font-size: 12px;
  color: var(--hx-muted);
  flex-wrap: wrap;
}

.hx-hp-trap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hx-hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .hx-topbar,
  .hx-footer {
    padding: 18px 18px;
  }
  .hx-seal {
    display: none;
  }
  .hx-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .hx-meta-val {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-card,
  .hx-ok-badge,
  .hx-spinner {
    animation-duration: 0.01ms !important;
  }
}
