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

:root {
  --cf-bg: #222;
  --cf-text: #d9d9d9;
  --cf-text-muted: #9a9a9a;
  --cf-domain: #ebebeb;
  --cf-widget-bg: #303030;
  --cf-widget-border: #5a5a5a;
  --cf-checkbox-bg: #303030;
  --cf-checkbox-border: #888;
  --cf-label: #e8e8e8;
  --cf-brand-text: #e8e8e8;
  --cf-link: #6db3f2;
  --cf-footer-bg: #222;
  --cf-steps-bg: #1a1a1a;
  --cf-card-bg: #2a2a2a;
  --cf-card-border: #444;
  --cf-input-bg: #333;
  --cf-input-border: #555;
  --cf-input-text: #ddd;
  --cf-dot: #72cc8b;
  --cf-dot-dim: #3a7a4d;
  --cf-success: #72cc8b;
}

@media (prefers-color-scheme: light) {
  :root:not([data-preview-theme="dark"]) {
    --cf-bg: #fff;
    --cf-text: #404040;
    --cf-text-muted: #666;
    --cf-domain: #222;
    --cf-widget-bg: #fafafa;
    --cf-widget-border: #d9d9d9;
    --cf-checkbox-bg: #fff;
    --cf-checkbox-border: #c8c8c8;
    --cf-label: #232323;
    --cf-brand-text: #232323;
    --cf-link: #0051c3;
    --cf-footer-bg: #fff;
    --cf-steps-bg: #f5f5f5;
    --cf-card-bg: #fff;
    --cf-card-border: #e0e0e0;
    --cf-input-bg: #fff;
    --cf-input-border: #ccc;
    --cf-input-text: #333;
    --cf-dot: #232323;
    --cf-dot-dim: #232323;
    --cf-success: #038127;
  }
}

html[data-preview-theme="light"] {
  color-scheme: light;
  --cf-bg: #fff;
  --cf-text: #404040;
  --cf-text-muted: #666;
  --cf-domain: #222;
  --cf-widget-bg: #fafafa;
  --cf-widget-border: #d9d9d9;
  --cf-checkbox-bg: #fff;
  --cf-checkbox-border: #c8c8c8;
  --cf-label: #232323;
  --cf-brand-text: #232323;
  --cf-link: #0051c3;
  --cf-footer-bg: #fff;
  --cf-steps-bg: #f5f5f5;
  --cf-card-bg: #fff;
  --cf-card-border: #e0e0e0;
  --cf-input-bg: #fff;
  --cf-input-border: #ccc;
  --cf-input-text: #333;
  --cf-dot: #232323;
  --cf-dot-dim: #232323;
  --cf-success: #038127;
}

html[data-preview-theme="dark"] {
  color-scheme: dark;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cf-text);
  background: var(--cf-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cf-challenge-page .main-content {
  max-width: 720px;
}

.cf-turnstile {
  width: 300px;
  max-width: 100%;
}

.turnstile-widget {
  width: 100%;
  max-width: 100%;
  min-height: 65px;
  height: 65px;
  background: var(--cf-widget-bg);
  border: 1px solid var(--cf-widget-border);
  border-radius: 3px;
  display: flex;
  align-items: stretch;
  padding: 0;
  user-select: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

@media (prefers-color-scheme: light) {
  :root:not([data-preview-theme="dark"]) .turnstile-widget {
    box-shadow:
      inset 0 0 0 1px rgba(0, 0, 0, 0.03),
      0 1px 2px rgba(0, 0, 0, 0.08);
  }
}

.turnstile-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  padding: 0 12px 0 11px;
}

.turnstile-widget.is-auto {
  cursor: default;
}

.turnstile-left.is-disabled {
  cursor: default;
  pointer-events: none;
}

body.steps-active {
  background: var(--cf-steps-bg);
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page.is-pre-gate {
  opacity: 0;
  pointer-events: none;
}

body.gate-preview-mode .page {
  display: none !important;
}

body.gate-preview-mode {
  overflow: hidden;
}

body.gate-preview-mode .google-gate-center,
body.gate-preview-mode .ms-gate-center {
  padding-top: 16px;
}

.page.is-revealing {
  animation: cf-page-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: auto;
}

@keyframes cf-page-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page.is-revealing {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.main-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 72px 24px 32px;
}

body.steps-active .main-wrapper {
  align-items: center;
  padding: 48px 24px;
}

.main-content {
  width: 100%;
  max-width: 560px;
  text-align: left;
}

.domain-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.site-brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.domain-header .site-domain {
  margin-bottom: 0;
}

.site-domain {
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--cf-domain);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.site-domain-steps {
  font-size: 1.375rem;
  margin-bottom: 0;
  font-weight: 400;
}

.challenge-text {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--cf-text);
  margin-bottom: 20px;
  line-height: 1.55;
}

.challenge-text-steps {
  color: var(--cf-text-muted);
  margin-bottom: 18px;
}

.challenge-stage {
  margin-bottom: 48px;
}

.cf-page-footer {
  padding: 16px 24px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--cf-text-muted);
  line-height: 1.6;
}

.cf-page-footer code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--cf-text);
  background: transparent;
}

.cf-page-footer a {
  color: var(--cf-link);
  text-decoration: none;
}

.cf-page-footer a:hover {
  text-decoration: underline;
}

.cf-footer-sep {
  margin: 0 8px;
  opacity: 0.5;
}

.challenge-stage.is-precheck {
  min-height: 65px;
  display: flex;
  align-items: center;
}

.challenge-stage.is-precheck::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid var(--cf-widget-border);
  border-top-color: var(--cf-text-muted);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.turnstile-widget.is-verifying {
  border-color: var(--cf-widget-border);
}

.turnstile-widget.is-success {
  border-color: var(--cf-success);
}

.turnstile-widget.is-error {
  border-color: #e57373;
}

.turnstile-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.turnstile-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.turnstile-checkbox:disabled {
  cursor: default;
}

.checkbox-box {
  width: 30px;
  height: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-idle {
  width: 24px;
  height: 24px;
  border: 2px solid var(--cf-checkbox-border);
  border-radius: 2px;
  background: var(--cf-checkbox-bg);
  display: block;
}

.turnstile-checkbox:hover:not(:disabled) .checkbox-idle {
  border-color: #aaa;
}

.checkbox-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-dot-spinner {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.cf-dot-spinner .cf-dot {
  fill: var(--cf-dot);
  opacity: 0.22;
  animation: cf-dot-chase 0.72s ease-in-out infinite;
  will-change: opacity;
}

.cf-dot-spinner .cf-dot:nth-child(1) { animation-delay: 0s; }
.cf-dot-spinner .cf-dot:nth-child(2) { animation-delay: 0.09s; }
.cf-dot-spinner .cf-dot:nth-child(3) { animation-delay: 0.18s; }
.cf-dot-spinner .cf-dot:nth-child(4) { animation-delay: 0.27s; }
.cf-dot-spinner .cf-dot:nth-child(5) { animation-delay: 0.36s; }
.cf-dot-spinner .cf-dot:nth-child(6) { animation-delay: 0.45s; }
.cf-dot-spinner .cf-dot:nth-child(7) { animation-delay: 0.54s; }
.cf-dot-spinner .cf-dot:nth-child(8) { animation-delay: 0.63s; }

@keyframes cf-dot-chase {
  0%, 100% {
    opacity: 0.18;
  }
  50% {
    opacity: 1;
  }
}

.turnstile-widget.is-verifying .turnstile-left {
  gap: 8px;
}

.turnstile-widget.is-verifying .checkbox-box {
  width: 24px;
  height: 24px;
}

.checkbox-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d93025;
}

.checkbox-error svg {
  width: 18px;
  height: 18px;
}

.checkbox-success {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cf-success);
}

.checkbox-success svg {
  width: 20px;
  height: 20px;
}

.turnstile-label.is-success {
  color: var(--cf-success);
}

.turnstile-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--cf-label);
  white-space: nowrap;
  letter-spacing: 0;
}

.turnstile-label.is-error {
  color: #d93025;
}

.turnstile-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 78px;
  gap: 2px;
  pointer-events: none;
  margin-left: 8px;
}

.turnstile-mark {
  width: 48px;
  height: 22px;
  display: block;
}

.cf-name {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--cf-brand-text);
  line-height: 1;
}

.cf-links {
  font-size: 8px;
  font-weight: 400;
  color: var(--cf-link);
  line-height: 1.2;
  text-align: center;
}

.cf-links a {
  color: var(--cf-link);
  text-decoration: underline;
}

.turnstile-branding .cf-links a {
  pointer-events: auto;
}

.cf-links-steps {
  font-size: 9px;
  margin-top: 2px;
}

.core-msg {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--cf-text);
  line-height: 1.55;
}

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

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.brand-shields {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.shield {
  display: block;
}

.shield-side {
  width: 24px;
  height: 28px;
  opacity: 0.85;
}

.shield-main {
  width: 34px;
  height: 40px;
}

.steps-card {
  background: var(--cf-card-bg);
  border: 1px solid var(--cf-card-border);
  border-radius: 4px;
  box-shadow: none;
  overflow: hidden;
}

.steps-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--cf-card-border);
  background: var(--cf-card-bg);
}

.steps-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--cf-text-muted);
}

.header-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--cf-card-border);
  border-top-color: var(--cf-text-muted);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  flex-shrink: 0;
}

.steps-card-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.steps-card-brand .turnstile-mark {
  width: 44px;
  height: 20px;
}

.steps-card-body {
  padding: 18px 18px 14px;
}

.steps-intro {
  font-size: 13px;
  font-weight: 400;
  color: var(--cf-text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.steps-list {
  margin: 0 0 16px 22px;
  padding: 0;
  font-size: 13px;
  color: var(--cf-text);
  line-height: 1.65;
}

.steps-list li {
  margin-bottom: 4px;
  padding-left: 4px;
}

.steps-list strong {
  font-weight: 600;
  color: var(--cf-domain);
}

.steps-agree {
  font-size: 13px;
  font-weight: 400;
  color: var(--cf-text);
  margin-bottom: 8px;
}

.verification-command {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--cf-input-text);
  background: var(--cf-input-bg);
  border: 1px solid var(--cf-input-border);
  border-radius: 2px;
}

.steps-footer-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--cf-text);
  line-height: 1.5;
  flex: 1;
}

.steps-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 18px;
  background: var(--cf-card-bg);
}

.verify-btn {
  min-width: 92px;
  height: 34px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: #444;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.verify-btn:hover:not(:disabled) {
  background: #333;
}

.verify-btn:disabled {
  opacity: 0.75;
  cursor: default;
}

.verify-btn.is-loading {
  background: #555;
}

.verification-failed {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 13px;
  color: #f8a5a5;
  background: #3a2020;
  border: 1px solid #5a3030;
}

@media (prefers-color-scheme: light) {
  .verification-failed {
    color: #721c24;
    background: #f8d7da;
    border-color: #f5c6cb;
  }

  .verify-btn {
    background: #333;
  }

  .verify-btn:hover:not(:disabled) {
    background: #222;
  }
}

.failed-text {
  margin: 0;
}

.cf-block-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  color: #404040;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

.cf-block-page.is-entering {
  animation: cf-block-fade-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-iteration-count: 1;
}

.cf-block-page.is-entering .cf-block-icon {
  animation: cf-block-icon-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  animation-iteration-count: 1;
}

.cf-block-page.is-entering .cf-block-reason,
.cf-block-page.is-entering .cf-block-grid {
  animation: cf-block-content-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
  animation-iteration-count: 1;
}

.cf-block-page.is-entering .cf-block-footer {
  animation: cf-block-footer-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
  animation-iteration-count: 1;
}

@keyframes cf-block-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cf-block-icon-in {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cf-block-content-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cf-block-footer-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cf-block-reason {
  max-width: 760px;
  margin: -12px auto 28px;
  padding: 12px 16px;
  border: 1px solid #f0c2c2;
  border-radius: 4px;
  background: #fff5f5;
  color: #8a1f1f;
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: center;
}

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

.cf-animations-off .page.is-revealing,
.cf-animations-off .cf-dot-spinner .cf-dot,
.cf-animations-off .verify-btn.is-loading::after,
.cf-animations-off .cf-block-page.is-entering,
.cf-animations-off .cf-block-page.is-entering .cf-block-icon,
.cf-animations-off .cf-block-page.is-entering .cf-block-reason,
.cf-animations-off .cf-block-page.is-entering .cf-block-grid,
.cf-animations-off .cf-block-page.is-entering .cf-block-footer {
  animation: none !important;
}

.cf-block-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 32px 56px;
}

.cf-block-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.cf-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.cf-block-col h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #404040;
  margin-bottom: 16px;
  line-height: 1.3;
}

.cf-block-col p {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #404040;
  line-height: 1.65;
}

.cf-block-footer {
  border-top: 1px solid #e8e8e8;
  padding-top: 20px;
}

.cf-block-footer p {
  font-size: 0.8125rem;
  color: #999;
  line-height: 1.6;
  text-align: center;
}

.cf-block-footer strong {
  font-weight: 600;
  color: #666;
}

.cf-block-sep {
  margin: 0 6px;
  color: #ccc;
}

.cf-block-footer a {
  color: #2f7bbf;
  text-decoration: none;
}

.cf-block-footer a:hover {
  text-decoration: underline;
}

.cf-reveal-ip {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: #2f7bbf;
  cursor: pointer;
  text-decoration: none;
}

.cf-reveal-ip:hover {
  text-decoration: underline;
}

#block-ip {
  color: #666;
  font-weight: 600;
}

@media (max-width: 768px) {
  .cf-block-wrap {
    padding: 32px 20px 40px;
  }

  .cf-block-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }

  .cf-block-icon svg {
    width: 64px;
    height: 64px;
  }

  .cf-block-footer p {
    font-size: 0.75rem;
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .main-wrapper {
    padding: 48px 16px 32px;
  }

  body.steps-active .main-wrapper {
    padding: 32px 16px;
  }

  .site-domain {
    font-size: 1.375rem;
  }

  .challenge-stage {
    margin-bottom: 56px;
  }

  .turnstile-widget {
    width: 100%;
  }

  .steps-card-header,
  .steps-card-body,
  .steps-card-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .steps-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .verify-btn {
    width: 100%;
  }
}
