/* SecuX Security Center — scoped to #connect-security-page (ref. secuxtech-verify) */
#connect-security-page.sc-page,
body.sc-standalone-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

#connect-security-page .sc-main,
body.sc-standalone-page .sc-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#connect-security-page .hero.sc-alert-phase.is-phase-visible,
#connect-security-page .hero.sc-alert-phase:not([hidden]),
#connect-security-page .hero.sc-verify-phase.is-phase-visible,
#connect-security-page .hero.sc-verify-phase:not([hidden]),
#connect-security-page .sc-result-hero.is-phase-visible,
#connect-security-page .sc-result-hero:not([hidden]) {
  display: flex !important;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  scrollbar-width: none;
}

#connect-security-page {
  /* Paleta + fonte iguais ao SecuXess Service Notice */
  --sc-bg: #0b0e14;
  --sc-bg-2: #161b22;
  --sc-line: #30363d;
  --sc-line-2: #3d444d;
  --sc-txt: #e6edf3;
  --sc-muted: #8b949e;
  --sc-muted-2: #6e7681;
  --sc-accent: #f85149;
  --sc-warn: #d29922;
  --sc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sc-gutter: 20px;
  --sc-sat: env(safe-area-inset-bottom, 0px);
  background: var(--sc-bg);
  color: var(--sc-txt);
  font-family: var(--sc-font);
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

#connect-security-page .topnav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px var(--sc-gutter);
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--sc-line);
  flex: none;
}

#connect-security-page .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
}

#connect-security-page .brand .sep {
  color: #4a4a4a;
  font-weight: 200;
}

#connect-security-page .brand .sub {
  font-weight: 300;
  color: #e6e6e6;
}

#connect-security-page .topnav-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
}

#connect-security-page .hero {
  padding: 26px var(--sc-gutter) 40px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

#connect-security-page .stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

#connect-security-page .alert {
  border-left: 2px solid var(--sc-accent);
  background: rgba(248, 81, 73, 0.06);
  border-radius: 6px;
  padding: 13px 15px;
}

#connect-security-page .alert h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f85149;
  margin: 0 0 6px;
}

#connect-security-page .alert p {
  font-size: 12.5px;
  line-height: 1.65;
  color: #b3b3b3;
  font-weight: 300;
  margin: 0;
}

#connect-security-page .alert b {
  color: #fff;
  font-weight: 500;
}

#connect-security-page h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 200;
  color: #fff;
  font-size: clamp(42px, 13vw, 78px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
}

#connect-security-page .lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--sc-muted);
  margin: 0;
  max-width: 460px;
}

#connect-security-page .chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#connect-security-page .chip {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c6c6c6;
  border: 1px solid var(--sc-line-2);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

#connect-security-page label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sc-muted-2);
  margin-bottom: 8px;
}

#connect-security-page .field {
  margin-bottom: 18px;
}

#connect-security-page select,
#connect-security-page textarea {
  width: 100%;
  background: var(--sc-bg-2);
  border: 1px solid var(--sc-line);
  color: #f0f0f0;
  border-radius: 14px;
  padding: 15px 16px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 300;
  outline: none;
  appearance: none;
  box-sizing: border-box;
  transition: border-color 0.18s, background 0.18s;
}

#connect-security-page select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

#connect-security-page select:focus,
#connect-security-page textarea:focus {
  border-color: #fff;
  background: #191919;
}

#connect-security-page textarea {
  min-height: 118px;
  resize: vertical;
  font-family: Consolas, 'SFMono-Regular', monospace;
  font-size: 14.5px;
  letter-spacing: 0.5px;
  line-height: 1.75;
}

#connect-security-page textarea::placeholder {
  color: #575757;
}

#connect-security-page .wc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--sc-muted-2);
  margin-top: 8px;
}

#connect-security-page .wc .bad {
  color: var(--sc-accent);
  font-weight: 500;
}

#connect-security-page .chk {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--sc-muted);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

#connect-security-page .chk input {
  margin-top: 2px;
  accent-color: #fff;
  width: 18px;
  height: 18px;
  flex: none;
  cursor: pointer;
}

#connect-security-page .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  background: #fff;
  color: #0d0d0d;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 17px 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}

#connect-security-page .connect-sc-cta {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  color: #0d0d0d;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 17px 22px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

#connect-security-page .btn .arw,
#connect-security-page .connect-sc-cta .arw {
  font-size: 19px;
  line-height: 1;
  transition: transform 0.25s;
}

#connect-security-page .btn:not(:disabled):hover,
#connect-security-page .connect-sc-cta:hover {
  background: #e8e8e8;
  border-color: #e8e8e8;
}

#connect-security-page .btn:not(:disabled):hover .arw {
  transform: translateX(4px);
}

#connect-security-page .btn:active {
  transform: scale(0.99);
}

#connect-security-page .btn:disabled {
  background: transparent;
  border-color: var(--sc-line-2);
  color: #6b6b6b;
  cursor: not-allowed;
}

#connect-security-page .sticky-cta {
  position: sticky;
  bottom: calc(12px + var(--sc-sat));
  z-index: 40;
  padding: 10px 0 0;
  margin-top: 14px;
}

#connect-security-page .sticky-cta .btn {
  margin-top: 0;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.7);
}

#connect-security-page .sticky-cta .btn:disabled {
  background: #111;
  box-shadow: none;
}

#connect-security-page .form-error {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: var(--sc-accent);
  text-align: center;
}

#connect-security-page .form-error.is-visible {
  display: block;
}

#connect-security-page .note {
  font-size: 11px;
  color: var(--sc-muted-2);
  text-align: center;
  margin-top: 16px;
  line-height: 1.7;
}

#connect-security-page .steps {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

#connect-security-page .step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: #5e5e5e;
  padding-top: 10px;
  border-top: 1px solid var(--sc-line);
  transition: color 0.25s, border-color 0.25s;
}

#connect-security-page .step .n {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #4f4f4f;
}

#connect-security-page .step.on {
  color: #fff;
  border-color: #fff;
}

#connect-security-page .step.on .n {
  color: #fff;
}

#connect-security-page .sc-result-hero[hidden] {
  display: none !important;
}

#connect-security-page .hero.sc-verify-phase[hidden],
#connect-security-page .hero.sc-alert-phase[hidden] {
  display: none !important;
}

#connect-security-page .sticky-cta--intro {
  position: static;
  padding: 0;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

#connect-security-page .connect-sc-cta {
  width: 100%;
}

#connect-security-page .sc-result-hero .inner {
  border: 1px solid var(--sc-line);
  border-radius: 22px;
  background: var(--sc-bg-2);
  padding: 48px 22px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

#connect-security-page .spin {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: #fff;
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: sc-page-spin 0.9s linear infinite;
}

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

#connect-security-page .sc-result-hero h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

#connect-security-page .sc-result-hero p {
  color: var(--sc-muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

#connect-security-page .foot {
  flex: none;
  border-top: 1px solid var(--sc-line);
  padding: 26px var(--sc-gutter) calc(30px + var(--sc-sat));
  text-align: center;
  color: #4d4d4d;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

#connect-security-page .foot a {
  color: #7d7d7d;
  text-decoration: none;
}

#connect-security-page .foot a:hover {
  color: #fff;
}

#connect-security-page .sc-back {
  margin: 0 0 12px;
  background: transparent;
  border: 0;
  color: var(--sc-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  align-self: flex-start;
}

@media (min-width: 900px) {
  #connect-security-page {
    --sc-gutter: 40px;
  }

  #connect-security-page .topnav {
    padding: 22px var(--sc-gutter);
  }

  #connect-security-page .brand {
    font-size: 23px;
  }

  #connect-security-page .hero {
    max-width: 820px;
    padding: 56px 24px 84px;
  }

  #connect-security-page .stack {
    gap: 34px;
    align-items: center;
    text-align: center;
  }

  #connect-security-page .alert {
    max-width: 660px;
    text-align: center;
    border: 1px solid rgba(248, 81, 73, 0.24);
    border-left: 1px solid rgba(248, 81, 73, 0.24);
    background: rgba(248, 81, 73, 0.05);
    border-radius: 14px;
    padding: 18px 24px;
  }

  #connect-security-page .alert p {
    font-size: 13.5px;
    line-height: 1.7;
  }

  #connect-security-page h1 {
    font-size: clamp(66px, 6.4vw, 96px);
  }

  #connect-security-page .lead {
    font-size: 17.5px;
    max-width: 560px;
    margin: 14px auto 0;
  }

  #connect-security-page .chips {
    justify-content: center;
  }

  #connect-security-page form {
    width: 100%;
    max-width: 520px;
  }

  #connect-security-page label {
    text-align: center;
  }

  #connect-security-page .chk {
    justify-content: center;
    text-align: left;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  #connect-security-page .wc {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  #connect-security-page .sticky-cta {
    position: static;
    padding: 0;
    max-width: 380px;
    margin: 26px auto 0;
  }

  #connect-security-page .sticky-cta .btn {
    box-shadow: none;
  }

  #connect-security-page .sticky-cta .btn:disabled {
    background: transparent;
  }

  #connect-security-page .steps {
    justify-content: center;
    gap: 0;
    max-width: 600px;
    border-top: 1px solid var(--sc-line);
    padding-top: 24px;
    margin-top: 8px;
  }

  #connect-security-page .step {
    flex: none;
    width: 180px;
    text-align: center;
    align-items: center;
    border-top: 0;
    padding-top: 0;
    font-size: 12.5px;
  }

  #connect-security-page .note {
    margin-top: 22px;
    font-size: 11.5px;
  }
}
