/*
  Correção de composição gráfica
  O CSS original aplicava clip-path: inset(0) aos elementos já revelados.
  Em cartões com box-shadow, esse recorte transformava a sombra arredondada
  em faixas retangulares cinzas. A animação permanece com opacity/transform,
  mas sem clip-path e sem contenção de pintura nos cartões.
*/
.motion-mask,
.motion-clip,
.motion-scale,
.motion-slide-left,
.motion-slide-right,
.motion-rise,
.motion-skew,
.motion-zoom,
.motion-system-ready
  :is(
    .motion-mask,
    .motion-clip,
    .motion-scale,
    .motion-slide-left,
    .motion-slide-right,
    .motion-rise,
    .motion-skew,
    .motion-zoom
  ),
.motion-system-ready
  :is(
    .motion-mask,
    .motion-clip,
    .motion-scale,
    .motion-slide-left,
    .motion-slide-right,
    .motion-rise,
    .motion-skew,
    .motion-zoom
  ).is-visible {
  clip-path: none !important;
}

.motion-system-ready
  :is(
    .motion-mask,
    .motion-clip,
    .motion-scale,
    .motion-slide-left,
    .motion-slide-right,
    .motion-rise,
    .motion-skew,
    .motion-zoom
  ) {
  transition-property: opacity, transform !important;
}

.card,
.attack,
.signal,
.case-callout,
.flag,
.time-box,
.flow-step,
details,
.commitment > div,
.final-cta {
  contain: none !important;
}

.motion-settled {
  will-change: auto !important;
  transform-style: flat !important;
}

/* Encerramento aprimorado */
.final {
  padding-bottom: 0;
}

.final-wrap {
  display: grid;
  gap: 26px;
  position: relative;
  z-index: 1;
}

.final-intro {
  max-width: 960px;
}

.final-eyebrow,
.final-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.final-eyebrow {
  margin-bottom: 16px;
  padding: 7px 11px;
  color: #b9ffd8;
  background: rgba(185, 255, 216, 0.1);
  border: 1px solid rgba(185, 255, 216, 0.12);
}

.final-intro > p {
  margin-bottom: 0;
}

.final .commitment {
  position: relative;
  z-index: 1;
}

.final .commitment > div {
  box-shadow: none;
}

.final-cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 15%, rgba(115, 215, 163, 0.13), transparent 19rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.065));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 22px 50px rgba(0, 25, 22, 0.13);
}

.final-cta-copy {
  min-width: 0;
}

.final-pill {
  margin-bottom: 12px;
  padding: 7px 11px;
  color: #003f38;
  background: #b9ffd8;
}

.final-cta h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.042em;
}

.final-cta-copy > p {
  margin: 0;
  max-width: 740px;
}

.final-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.final-points span,
.site-footer-tags span {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.final-cta-actions {
  display: grid;
  gap: 12px;
  min-width: 184px;
}

.final-cta-actions .btn {
  justify-content: center;
  white-space: nowrap;
}

.btn-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.17);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.17);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  padding: 0 0 28px;
  border-top: 0;
}

.site-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer-brand strong,
.site-footer-brand span {
  display: block;
}

.site-footer-brand strong {
  margin-bottom: 4px;
  color: #fff;
}

.site-footer-brand span {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Hover com contraste reforçado */
@media (hover: hover) and (pointer: fine) {
  .motion-surface::after {
    background: radial-gradient(
      300px circle at var(--spot-x) var(--spot-y),
      rgba(40, 199, 162, 0.52) 0%,
      rgba(0, 124, 104, 0.24) 38%,
      rgba(0, 124, 104, 0.1) 62%,
      transparent 78%
    );
  }

  .motion-dark-surface::after {
    background: radial-gradient(
      300px circle at var(--spot-x) var(--spot-y),
      rgba(185, 255, 216, 0.3) 0%,
      rgba(40, 199, 162, 0.2) 42%,
      rgba(0, 124, 104, 0.1) 66%,
      transparent 80%
    );
  }

  .motion-surface:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 124, 104, 0.55);
    box-shadow:
      0 30px 76px rgba(0, 72, 61, 0.23),
      0 0 0 2px rgba(40, 199, 162, 0.12);
  }

  .motion-dark-surface:hover {
    transform: translateY(-6px);
    border-color: rgba(185, 255, 216, 0.48);
    box-shadow:
      0 30px 76px rgba(0, 25, 22, 0.32),
      0 0 0 2px rgba(115, 215, 163, 0.12);
  }

  .motion-surface:hover::after,
  .motion-dark-surface:hover::after {
    opacity: 0.8;
  }

  .nav-links a:hover,
  .nav-links a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #006f5f, #00947c);
    box-shadow: 0 10px 24px rgba(0, 92, 78, 0.2);
  }

  .nav-links a:hover::before,
  .nav-links a.is-active::before {
    opacity: 0;
  }

  .btn-secondary:hover,
  .btn-ghost:hover {
    background: rgba(0, 124, 104, 0.14);
    border-color: rgba(0, 124, 104, 0.42);
    box-shadow: 0 18px 44px rgba(0, 72, 61, 0.17);
  }

  .device .btn-ghost:hover,
  .quiz .btn-ghost:hover {
    color: #fff;
    background: rgba(40, 199, 162, 0.22);
    border-color: rgba(185, 255, 216, 0.58);
  }

  .answer:hover {
    background: rgba(115, 215, 163, 0.24);
    border-color: rgba(185, 255, 216, 0.5);
    box-shadow: 0 14px 34px rgba(0, 34, 29, 0.24);
  }

  #simulacao .flow-step:hover {
    background: linear-gradient(145deg, #0a6355, #043b34);
    border-color: rgba(185, 255, 216, 0.42);
    box-shadow: 0 28px 66px rgba(0, 48, 41, 0.3);
  }

  .final .commitment > div:hover {
    background: rgba(115, 215, 163, 0.2);
    border-color: rgba(185, 255, 216, 0.46);
    box-shadow: 0 24px 58px rgba(0, 25, 22, 0.26);
  }

  .final-points span:hover,
  .site-footer-tags span:hover {
    background: rgba(115, 215, 163, 0.22);
    border-color: rgba(185, 255, 216, 0.4);
    color: #fff;
  }

  .btn-light:hover {
    background: rgba(115, 215, 163, 0.22);
    border-color: rgba(185, 255, 216, 0.48);
  }
}


/* =========================================================
   SENHAS + HAVE I BEEN PWNED
   Seção editorial premium, independente e responsiva.
   ========================================================= */
.credentials-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 0;
  color: #f6fffb;
  background:
    radial-gradient(circle at 12% 10%, rgba(115, 215, 163, 0.2), transparent 28rem),
    radial-gradient(circle at 92% 22%, rgba(40, 199, 162, 0.14), transparent 26rem),
    linear-gradient(145deg, #031f1c 0%, #043f37 48%, #005a4d 100%);
  border-top: 1px solid rgba(185, 255, 216, 0.09);
  border-bottom: 1px solid rgba(0, 91, 78, 0.14);
}

.credentials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(185, 255, 216, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 255, 216, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 80%, transparent);
}

.credentials-noise {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.04) 48%, transparent 52%),
    radial-gradient(circle at 50% 50%, transparent 0 62%, rgba(115, 215, 163, 0.05) 72%, transparent 82%);
  background-size: 280% 100%, 100% 100%;
  animation: credentialsLightSweep 12s var(--motion-smooth) infinite;
}

.credentials-orbit {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(185, 255, 216, 0.12);
  box-shadow:
    inset 0 0 80px rgba(115, 215, 163, 0.04),
    0 0 120px rgba(40, 199, 162, 0.04);
}

.credentials-orbit::before,
.credentials-orbit::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  border: 1px solid rgba(185, 255, 216, 0.08);
}

.credentials-orbit::before {
  inset: 13%;
}

.credentials-orbit::after {
  inset: 29%;
}

.credentials-orbit-one {
  width: 620px;
  height: 620px;
  right: -270px;
  top: 120px;
  animation: credentialsOrbitFloat 18s ease-in-out infinite alternate;
}

.credentials-orbit-two {
  width: 420px;
  height: 420px;
  left: -210px;
  bottom: 140px;
  opacity: 0.66;
  animation: credentialsOrbitFloat 22s ease-in-out -6s infinite alternate-reverse;
}

@keyframes credentialsLightSweep {
  0%, 24% { background-position: 150% 0, 0 0; }
  70%, 100% { background-position: -80% 0, 0 0; }
}

@keyframes credentialsOrbitFloat {
  to {
    transform: translate3d(-28px, 22px, 0) scale(1.05);
  }
}

.credentials-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(440px, 1.04fr);
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.credentials-intro {
  min-width: 0;
}

.credentials-eyebrow,
.credentials-section-head > span,
.password-guidance-head > div > span,
.hibp-technical-note > div > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 9px;
  color: #b9ffd8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.credentials-eyebrow::before,
.credentials-section-head > span::before,
.password-guidance-head > div > span::before,
.hibp-technical-note > div > span::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.credentials-intro h2 {
  margin: 20px 0 22px;
  max-width: 760px;
  color: #fff;
  font-family: var(--font-accent);
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 660;
  line-height: 0.98;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.credentials-intro > p {
  margin: 0;
  max-width: 760px;
  color: rgba(238, 255, 248, 0.75);
  font-size: 18px;
  line-height: 1.72;
}

.credentials-intro > p strong {
  color: #fff;
}

.credentials-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.credentials-actions .btn {
  justify-content: center;
}

.credentials-primary {
  color: #042f2b;
  background: linear-gradient(135deg, #b9ffd8, #73d7a3);
  box-shadow: 0 18px 46px rgba(40, 199, 162, 0.22);
}

.credentials-primary svg,
.password-manager-link svg {
  width: 18px;
  height: 18px;
}

.credentials-primary:hover {
  box-shadow: 0 24px 58px rgba(40, 199, 162, 0.32);
}

.credentials-secondary {
  color: #effff8;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(185, 255, 216, 0.18);
}

.credentials-secondary:hover {
  color: #fff;
  background: rgba(115, 215, 163, 0.14);
  border-color: rgba(185, 255, 216, 0.38);
}

.credentials-disclaimer {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: start;
  max-width: 740px;
  margin-top: 22px;
  padding: 15px 17px;
  border-radius: 20px;
  color: rgba(238, 255, 248, 0.72);
  background: rgba(0, 24, 21, 0.26);
  border: 1px solid rgba(185, 255, 216, 0.11);
}

.credentials-disclaimer > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #b9ffd8;
  background: rgba(115, 215, 163, 0.12);
}

.credentials-disclaimer svg {
  width: 22px;
  height: 22px;
}

.credentials-disclaimer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
}

.hibp-visual {
  position: relative;
  min-width: 0;
  padding: 28px;
}

.hibp-visual-card {
  position: relative;
  z-index: 2;
  padding: 18px;
  overflow: hidden;
  border-radius: 32px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(115, 215, 163, 0.23), transparent 17rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 250, 244, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 40px 110px rgba(0, 19, 17, 0.44),
    0 0 0 8px rgba(185, 255, 216, 0.035);
  transform: perspective(1100px) rotateY(-2deg) rotateX(1deg);
  transition:
    transform 0.6s var(--motion-expo),
    box-shadow 0.6s var(--motion-expo);
}

.hibp-visual:hover .hibp-visual-card {
  transform: perspective(1100px) rotateY(0deg) rotateX(0deg) translateY(-4px);
  box-shadow:
    0 48px 126px rgba(0, 19, 17, 0.5),
    0 0 0 9px rgba(185, 255, 216, 0.05);
}

.hibp-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -2px -2px 18px;
  padding: 10px 12px;
  border-radius: 17px;
  background: rgba(0, 63, 56, 0.07);
}

.hibp-browser-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 63, 56, 0.23);
}

.hibp-browser-bar > span:nth-child(1) { background: #ff826f; }
.hibp-browser-bar > span:nth-child(2) { background: #f2bf4b; }
.hibp-browser-bar > span:nth-child(3) { background: #1fbf75; }

.hibp-browser-bar > div {
  flex: 1;
  min-width: 0;
  margin-left: 4px;
  padding: 8px 12px;
  overflow: hidden;
  border-radius: 999px;
  color: #4b6a62;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 91, 78, 0.09);
  font-family: var(--font-mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hibp-example-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #7d2f20;
  background: rgba(194, 65, 45, 0.09);
  border: 1px solid rgba(194, 65, 45, 0.12);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hibp-identity-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  margin: 20px 0 16px;
}

.hibp-identity-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  color: var(--kvm-green);
  background: linear-gradient(135deg, rgba(0, 124, 104, 0.11), rgba(115, 215, 163, 0.24));
}

.hibp-identity-icon svg {
  width: 27px;
  height: 27px;
}

.hibp-identity-row small,
.hibp-result small {
  display: block;
  margin-bottom: 4px;
  color: #72867f;
  font-size: 11px;
}

.hibp-identity-row strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--kvm-deep);
  font-size: 16px;
}

.hibp-result {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 19px;
}

.hibp-result-alert {
  color: #7d2f20;
  background: linear-gradient(135deg, rgba(194, 65, 45, 0.1), rgba(255, 130, 111, 0.065));
  border: 1px solid rgba(194, 65, 45, 0.14);
}

.hibp-result strong {
  display: block;
  line-height: 1.38;
}

.hibp-result-pulse {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d9553f;
  box-shadow: 0 0 0 0 rgba(217, 85, 63, 0.4);
  animation: hibpResultPulse 2.2s ease-out infinite;
}

@keyframes hibpResultPulse {
  70%, 100% {
    box-shadow: 0 0 0 12px rgba(217, 85, 63, 0);
  }
}

.hibp-data-classes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.hibp-data-classes span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #31584f;
  background: rgba(0, 124, 104, 0.07);
  border: 1px solid rgba(0, 124, 104, 0.1);
  font-size: 11px;
  font-weight: 700;
}

.hibp-response-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.hibp-response-plan > div {
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 91, 78, 0.09);
}

.hibp-response-plan span {
  display: block;
  margin-bottom: 6px;
  color: var(--kvm-green);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.hibp-response-plan p {
  margin: 0;
  color: #45645b;
  font-size: 11px;
  line-height: 1.4;
}

.hibp-scan-ring {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(185, 255, 216, 0.12);
  animation: hibpScanRing 5.6s ease-in-out infinite;
}

.hibp-scan-ring-one {
  width: 420px;
  height: 420px;
  right: -85px;
  top: -52px;
}

.hibp-scan-ring-two {
  width: 300px;
  height: 300px;
  left: -30px;
  bottom: -45px;
  animation-delay: -2.8s;
}

@keyframes hibpScanRing {
  0%, 100% {
    opacity: 0.22;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.66;
    transform: scale(1.035);
  }
}

.credentials-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 34px;
  margin-top: 74px;
}

.credentials-section-head {
  max-width: 840px;
}

.credentials-section-head h3,
.password-guidance-head h3,
.hibp-technical-note h3 {
  margin: 13px 0 12px;
  color: #fff;
  font-family: var(--font-accent);
  font-weight: 650;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.credentials-section-head h3 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.03;
}

.credentials-section-head p {
  margin: 0;
  max-width: 760px;
  color: rgba(238, 255, 248, 0.7);
  font-size: 17px;
  line-height: 1.68;
}

.hibp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hibp-step {
  position: relative;
  min-height: 250px;
  padding: 21px;
  overflow: hidden;
  border-radius: 25px;
  color: #f6fffb;
  background:
    radial-gradient(circle at 90% 8%, rgba(115, 215, 163, 0.12), transparent 12rem),
    rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(185, 255, 216, 0.11);
}

.hibp-step::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(185, 255, 216, 0.08), transparent 42%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hibp-step:hover::before {
  opacity: 1;
}

.hibp-step-number {
  position: absolute;
  right: 16px;
  top: 10px;
  color: rgba(185, 255, 216, 0.12);
  font-family: var(--font-mono);
  font-size: 55px;
  font-weight: 700;
  line-height: 1;
}

.hibp-step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #052b25;
  background: linear-gradient(135deg, #b9ffd8, #73d7a3);
  box-shadow: 0 14px 30px rgba(40, 199, 162, 0.14);
}

.hibp-step-icon svg {
  width: 25px;
  height: 25px;
}

.hibp-step h4 {
  position: relative;
  margin: 22px 0 9px;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.hibp-step p {
  position: relative;
  margin: 0;
  color: rgba(238, 255, 248, 0.68);
  font-size: 14px;
  line-height: 1.55;
}

.password-guidance {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(115, 215, 163, 0.17), transparent 28rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(185, 255, 216, 0.13);
  box-shadow: 0 30px 80px rgba(0, 19, 17, 0.18);
}

.password-guidance::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -190px;
  bottom: -210px;
  border-radius: 50%;
  border: 58px solid rgba(115, 215, 163, 0.05);
  pointer-events: none;
}

.password-guidance-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.password-guidance-head h3 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(29px, 3.8vw, 43px);
  line-height: 1.05;
}

.password-manager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #052b25;
  background: #b9ffd8;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.32s var(--motion-expo),
    box-shadow 0.32s ease,
    background 0.32s ease;
}

.password-manager-link:hover {
  transform: translateY(-3px);
  background: #d6ffe8;
  box-shadow: 0 18px 40px rgba(40, 199, 162, 0.2);
}

.password-rules-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.password-rule {
  position: relative;
  min-height: 245px;
  padding: 20px;
  overflow: hidden;
  border-radius: 24px;
  color: #effff8;
  background: rgba(2, 37, 32, 0.42);
  border: 1px solid rgba(185, 255, 216, 0.1);
}

.password-rule-highlight {
  background:
    radial-gradient(circle at 100% 0%, rgba(115, 215, 163, 0.15), transparent 12rem),
    rgba(2, 37, 32, 0.52);
  border-color: rgba(185, 255, 216, 0.17);
}

.password-rule-index {
  position: absolute;
  right: 15px;
  top: 13px;
  color: rgba(185, 255, 216, 0.2);
  font-family: var(--font-mono);
  font-size: 12px;
}

.password-rule-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #b9ffd8;
  background: rgba(115, 215, 163, 0.11);
  border: 1px solid rgba(185, 255, 216, 0.1);
}

.password-rule-icon svg {
  width: 24px;
  height: 24px;
}

.password-rule h4 {
  margin: 20px 0 8px;
  color: #fff;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.password-rule p {
  margin: 0;
  color: rgba(238, 255, 248, 0.67);
  font-size: 14px;
  line-height: 1.58;
}

.credential-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.credential-example {
  position: relative;
  padding: 25px;
  overflow: hidden;
  border-radius: 28px;
}

.credential-example-risk {
  color: #4b211a;
  background:
    radial-gradient(circle at 95% 5%, rgba(255, 130, 111, 0.2), transparent 18rem),
    linear-gradient(145deg, #fffaf8, #fff0ec);
  border: 1px solid rgba(194, 65, 45, 0.14);
}

.credential-example-safe {
  color: #06362f;
  background:
    radial-gradient(circle at 95% 5%, rgba(115, 215, 163, 0.24), transparent 18rem),
    linear-gradient(145deg, #f9fffc, #e7faef);
  border: 1px solid rgba(0, 124, 104, 0.14);
}

.credential-example-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.credential-example-top > span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-example-risk .credential-example-top > span {
  color: #9c3d2c;
  background: rgba(194, 65, 45, 0.09);
}

.credential-example-safe .credential-example-top > span {
  color: #066548;
  background: rgba(31, 191, 117, 0.1);
}

.credential-example-top small {
  opacity: 0.7;
  text-align: right;
}

.credential-example code {
  display: block;
  margin: 24px 0 15px;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: clamp(21px, 3vw, 31px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.credential-meter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 20px;
}

.credential-meter span {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 63, 56, 0.1);
}

.credential-example-risk .credential-meter span:first-child {
  background: #d9553f;
}

.credential-example-safe .credential-meter span {
  background: #1fbf75;
}

.credential-example ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.credential-example li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
}

.credential-example li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.58;
}

.credential-example-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 15px;
  border-radius: 16px;
  color: rgba(238, 255, 248, 0.72);
  background: rgba(0, 24, 21, 0.28);
  border: 1px solid rgba(185, 255, 216, 0.09);
  font-size: 13px;
  text-align: center;
}

.credential-example-note strong {
  color: #fff;
}

.hibp-technical-note {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border-radius: 30px;
  color: #effff8;
  background:
    radial-gradient(circle at 95% 0%, rgba(115, 215, 163, 0.12), transparent 20rem),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(185, 255, 216, 0.11);
}

.hibp-technical-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 21px;
  color: #052b25;
  background: linear-gradient(135deg, #b9ffd8, #73d7a3);
  box-shadow: 0 16px 38px rgba(40, 199, 162, 0.15);
}

.hibp-technical-icon svg {
  width: 32px;
  height: 32px;
}

.hibp-technical-note h3 {
  margin-top: 9px;
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.05;
}

.hibp-technical-note p {
  margin: 0;
  max-width: 780px;
  color: rgba(238, 255, 248, 0.68);
  font-size: 14px;
  line-height: 1.62;
}

.hibp-reference-links {
  display: grid;
  gap: 10px;
  min-width: 160px;
}

.hibp-reference-links a {
  display: inline-flex;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  color: #effff8;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(185, 255, 216, 0.14);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.32s var(--motion-expo),
    background 0.32s ease,
    border-color 0.32s ease;
}

.hibp-reference-links a:hover {
  transform: translateY(-2px);
  color: #052b25;
  background: #b9ffd8;
  border-color: #b9ffd8;
}

.password-rule,
.hibp-step,
.credential-example,
.hibp-technical-note,
.hibp-visual-card,
.password-guidance {
  contain: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .password-rule:hover,
  .hibp-step:hover {
    border-color: rgba(185, 255, 216, 0.3);
  }

  .password-rule:hover .password-rule-icon,
  .hibp-step:hover .hibp-step-icon {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 17px 34px rgba(40, 199, 162, 0.19);
  }

  .password-rule-icon,
  .hibp-step-icon {
    transition:
      transform 0.42s var(--motion-expo),
      box-shadow 0.42s ease;
  }
}

@media (max-width: 1080px) {
  .credentials-shell {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hibp-visual {
    width: min(100%, 720px);
    margin: 0 auto;
  }

  .hibp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .password-rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hibp-technical-note {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .hibp-reference-links {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .credentials-section {
    padding: 76px 0;
  }

  .credentials-shell {
    gap: 32px;
  }

  .credentials-intro h2 {
    font-size: clamp(38px, 11.5vw, 56px);
    line-height: 1.01;
  }

  .credentials-intro > p {
    font-size: 16px;
  }

  .credentials-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .credentials-actions .btn {
    width: 100%;
  }

  .credentials-disclaimer {
    grid-template-columns: 38px 1fr;
  }

  .credentials-disclaimer > span {
    width: 38px;
    height: 38px;
  }

  .hibp-visual {
    padding: 10px 0;
  }

  .hibp-visual-card {
    padding: 14px;
    border-radius: 25px;
    transform: none;
  }

  .hibp-response-plan,
  .hibp-steps,
  .password-rules-grid,
  .credential-examples {
    grid-template-columns: 1fr;
  }

  .hibp-step,
  .password-rule {
    min-height: auto;
  }

  .password-guidance {
    padding: 22px;
    border-radius: 28px;
  }

  .password-guidance-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .password-manager-link {
    width: 100%;
  }

  .credential-example-note {
    flex-direction: column;
  }

  .hibp-technical-note {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hibp-reference-links {
    grid-column: auto;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hibp-technical-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .credentials-content {
    margin-top: 58px;
  }

  .hibp-identity-row {
    grid-template-columns: 46px 1fr;
  }

  .hibp-identity-icon {
    width: 46px;
    height: 46px;
  }

  .hibp-response-plan {
    gap: 7px;
  }

  .hibp-response-plan > div {
    padding: 10px;
  }

  .credential-example-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .credential-example-top small {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .credentials-noise,
  .credentials-orbit,
  .hibp-result-pulse,
  .hibp-scan-ring {
    animation: none !important;
  }

  .hibp-visual-card {
    transform: none !important;
  }
}

/* =========================================================
   QUIZ PREMIUM V2 · 15 perguntas e diagnóstico visual
   ========================================================= */
@property --quiz-score-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.quiz-question-area[hidden],
.quiz-result[hidden] {
  display: none !important;
}

.quiz-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.quiz-topic {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #dfffee;
  background: rgba(115, 215, 163, 0.11);
  border: 1px solid rgba(185, 255, 216, 0.15);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.quiz-progress-track {
  position: relative;
  width: 100%;
  height: 6px;
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
}

.quiz-progress-value {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #73d7a3, #28c7a2, #b9ffd8);
  box-shadow: 0 0 18px rgba(115, 215, 163, 0.48);
  transition: width 0.55s var(--motion-expo);
}

.quiz-card.quiz-complete {
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.quiz-card.quiz-complete.motion-dark-surface::after {
  display: none;
}

.quiz-card.quiz-complete:hover {
  transform: none;
  box-shadow: none;
}

.quiz-result {
  --quiz-result-success: #73d7a3;
  --quiz-result-success-strong: #21c98a;
  --quiz-result-danger: #ff806b;
  --quiz-result-warning: #ffd166;
  --quiz-result-panel: rgba(255, 255, 255, 0.075);
  --quiz-result-line: rgba(185, 255, 216, 0.13);
  position: relative;
  isolation: isolate;
  opacity: 0;
  transform: translateY(18px) scale(0.988);
  transition:
    opacity 0.58s ease,
    transform 0.75s var(--motion-expo);
}

.quiz-result.is-ready {
  opacity: 1;
  transform: none;
}

.quiz-result::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -2;
  pointer-events: none;
  border-radius: 42px;
  background:
    radial-gradient(circle at 12% 4%, rgba(115, 215, 163, 0.18), transparent 30rem),
    radial-gradient(circle at 92% 28%, rgba(40, 199, 162, 0.14), transparent 25rem);
  filter: blur(2px);
}

.quiz-result-dashboard {
  display: grid;
  gap: 18px;
}

.quiz-result-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  padding: clamp(25px, 4vw, 40px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 18%, rgba(115, 215, 163, 0.2), transparent 22rem),
    linear-gradient(145deg, rgba(2, 42, 37, 0.98), rgba(0, 82, 71, 0.94));
  border: 1px solid rgba(185, 255, 216, 0.15);
  box-shadow:
    0 28px 70px rgba(0, 20, 17, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quiz-result-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(185, 255, 216, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 255, 216, 0.13) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(110deg, black, transparent 72%);
  -webkit-mask-image: linear-gradient(110deg, black, transparent 72%);
}

.quiz-result-hero::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -95px;
  bottom: -155px;
  border-radius: 50%;
  border: 46px solid rgba(115, 215, 163, 0.07);
  pointer-events: none;
}

.quiz-result-copy,
.quiz-donut-panel {
  position: relative;
  z-index: 1;
}

.quiz-result-kicker {
  display: block;
  margin-bottom: 10px;
  color: rgba(185, 255, 216, 0.72);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.quiz-level-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 31px;
  padding: 7px 11px;
  margin-bottom: 17px;
  border-radius: 999px;
  color: #052b25;
  background: linear-gradient(135deg, #b9ffd8, #73d7a3);
  box-shadow: 0 10px 26px rgba(115, 215, 163, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.quiz-result.is-attention .quiz-level-badge {
  background: linear-gradient(135deg, #ffe8a8, #ffd166);
}

.quiz-result.is-review .quiz-level-badge {
  color: #fff;
  background: linear-gradient(135deg, #e66753, #c2412d);
}

.quiz-result-copy h3 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 49px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.quiz-result-copy > p {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.65;
}

.quiz-strengths {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.quiz-strengths > span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quiz-strengths > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-strengths b {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  color: #dfffee;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(185, 255, 216, 0.12);
  font-size: 12px;
  font-weight: 750;
}

.quiz-donut-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.quiz-donut {
  --quiz-score-angle: 0deg;
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(190px, 20vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(
      from -90deg,
      var(--quiz-result-success-strong) 0 var(--quiz-score-angle),
      var(--quiz-result-danger) var(--quiz-score-angle) 360deg
    );
  box-shadow:
    0 0 0 9px rgba(255, 255, 255, 0.035),
    0 24px 52px rgba(0, 20, 17, 0.28),
    0 0 48px rgba(115, 215, 163, 0.12);
  transition: --quiz-score-angle 1.45s var(--motion-expo);
}

.quiz-result.is-ready .quiz-donut {
  --quiz-score-angle: var(--quiz-score-target);
}

.quiz-donut::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 35% 28%, rgba(115, 215, 163, 0.11), transparent 42%),
    #062f29;
  box-shadow:
    inset 0 0 0 1px rgba(185, 255, 216, 0.09),
    inset 0 18px 40px rgba(0, 0, 0, 0.18);
}

.quiz-donut::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(185, 255, 216, 0.12);
  animation: quizResultHalo 3.6s ease-in-out infinite;
}

@keyframes quizResultHalo {
  50% {
    transform: scale(1.035);
    opacity: 0.48;
  }
}

.quiz-donut-center {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.quiz-donut-center strong {
  color: #fff;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.quiz-donut-center span {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.quiz-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 750;
}

.quiz-chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.quiz-chart-legend .is-correct {
  background: var(--quiz-result-success-strong);
  box-shadow: 0 0 12px rgba(33, 201, 138, 0.5);
}

.quiz-chart-legend .is-wrong {
  background: var(--quiz-result-danger);
  box-shadow: 0 0 12px rgba(255, 128, 107, 0.38);
}

.quiz-result-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quiz-metric-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  background: var(--quiz-result-panel);
  border: 1px solid var(--quiz-result-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  opacity: 0;
  transform: translateY(14px);
}

.quiz-result.is-ready .quiz-metric-card {
  animation: quizMetricEnter 0.62s var(--motion-expo) forwards;
}

.quiz-result.is-ready .quiz-metric-card:nth-child(2) {
  animation-delay: 70ms;
}

.quiz-result.is-ready .quiz-metric-card:nth-child(3) {
  animation-delay: 140ms;
}

.quiz-result.is-ready .quiz-metric-card:nth-child(4) {
  animation-delay: 210ms;
}

@keyframes quizMetricEnter {
  to {
    opacity: 1;
    transform: none;
  }
}

.quiz-metric-card::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -35px;
  bottom: -38px;
  border-radius: 50%;
  background: rgba(115, 215, 163, 0.08);
}

.quiz-metric-card > span,
.quiz-metric-card strong,
.quiz-metric-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.quiz-metric-card > span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-metric-card strong {
  margin-top: 7px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.quiz-metric-card strong.is-text {
  max-width: 100%;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.quiz-metric-card small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.quiz-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}

.quiz-category-panel,
.quiz-improvement-panel,
.quiz-review-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--quiz-result-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.quiz-section-heading > span {
  display: block;
  color: rgba(185, 255, 216, 0.62);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.quiz-section-heading h4 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(21px, 2.6vw, 29px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.quiz-section-heading p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.55;
}

.quiz-category-list {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.quiz-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 14px;
  align-items: end;
}

.quiz-category-copy strong,
.quiz-category-copy span {
  display: block;
}

.quiz-category-copy strong {
  color: #effff8;
  font-size: 14px;
}

.quiz-category-copy span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.quiz-category-score {
  color: #b9ffd8;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.quiz-category-bar {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

.quiz-category-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #007c68, #28c7a2 65%, #b9ffd8);
  box-shadow: 0 0 15px rgba(40, 199, 162, 0.32);
  transition: width 1s var(--motion-expo);
}

.quiz-result.is-ready .quiz-category-fill {
  width: var(--category-score);
}

.quiz-improvement-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.quiz-improvement-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  padding: 16px;
  overflow: hidden;
  border-radius: 19px;
  background: rgba(2, 43, 37, 0.42);
  border: 1px solid rgba(185, 255, 216, 0.1);
  transition:
    transform 0.35s var(--motion-expo),
    background 0.3s ease,
    border-color 0.3s ease;
}

.quiz-improvement-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(300px circle at 8% 12%, rgba(115, 215, 163, 0.13), transparent 55%);
  transition: opacity 0.3s ease;
}

.quiz-improvement-card:hover {
  transform: translateY(-3px);
  background: rgba(3, 57, 49, 0.58);
  border-color: rgba(185, 255, 216, 0.2);
}

.quiz-improvement-card:hover::after {
  opacity: 1;
}

.quiz-improvement-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #062f29;
  background: linear-gradient(135deg, #b9ffd8, #73d7a3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.quiz-improvement-card > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.quiz-improvement-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.quiz-improvement-title strong {
  color: #fff;
  font-size: 14px;
}

.quiz-improvement-title span {
  flex: 0 0 auto;
  color: #ffd68a;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.quiz-improvement-card p {
  margin: 7px 0 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.5;
}

.quiz-improvement-card a {
  display: inline-flex;
  color: #b9ffd8;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.quiz-improvement-card a:hover {
  color: #fff;
  text-decoration: underline;
}

.quiz-mastery-card,
.quiz-review-success {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(33, 201, 138, 0.1);
  border: 1px solid rgba(115, 215, 163, 0.2);
}

.quiz-mastery-card > span,
.quiz-review-success > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #052b25;
  background: #b9ffd8;
  font-size: 22px;
  font-weight: 900;
}

.quiz-mastery-card strong,
.quiz-review-success strong {
  color: #fff;
}

.quiz-mastery-card p,
.quiz-review-success p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.quiz-review-panel {
  overflow: hidden;
}

.quiz-review-list {
  display: grid;
  gap: 10px;
  max-height: 440px;
  margin-top: 22px;
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(115, 215, 163, 0.42) rgba(255, 255, 255, 0.05);
}

.quiz-review-item {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 13px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 128, 107, 0.12);
}

.quiz-review-number {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  color: #ffe4df;
  background: rgba(255, 128, 107, 0.12);
  border: 1px solid rgba(255, 128, 107, 0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.quiz-review-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.42;
}

.quiz-review-item p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  line-height: 1.5;
}

.quiz-review-item p b {
  color: #ffb9ae;
}

.quiz-review-item .quiz-review-correct {
  color: rgba(223, 255, 238, 0.72);
}

.quiz-review-item .quiz-review-correct b {
  color: #b9ffd8;
}

.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 4px;
}

.quiz-result-actions .btn-ghost {
  color: #effff8;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(185, 255, 216, 0.17);
}

.quiz-result-actions .btn-ghost:hover {
  color: #052b25;
  background: #b9ffd8;
  border-color: #b9ffd8;
}

@media (max-width: 980px) {
  .quiz-result-hero,
  .quiz-analysis-grid {
    grid-template-columns: 1fr;
  }

  .quiz-donut-panel {
    padding-top: 6px;
  }

  .quiz-result-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .quiz-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .quiz-topic {
    align-self: flex-start;
  }

  .quiz-result::before {
    inset: -10px;
    border-radius: 28px;
  }

  .quiz-result-hero {
    gap: 24px;
    padding: 22px;
    border-radius: 25px;
  }

  .quiz-result-copy h3 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .quiz-result-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .quiz-metric-card {
    padding: 15px;
    border-radius: 18px;
  }

  .quiz-metric-card strong {
    font-size: 29px;
  }

  .quiz-metric-card strong.is-text {
    font-size: 16px;
  }

  .quiz-category-panel,
  .quiz-improvement-panel,
  .quiz-review-panel {
    padding: 20px;
    border-radius: 23px;
  }

  .quiz-category-row {
    gap: 7px 10px;
  }

  .quiz-improvement-card,
  .quiz-review-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }

  .quiz-improvement-index,
  .quiz-review-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .quiz-review-list {
    max-height: 520px;
  }

  .quiz-result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quiz-result-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .quiz-result-metrics {
    grid-template-columns: 1fr;
  }

  .quiz-donut {
    width: min(210px, 74vw);
  }

  .quiz-strengths > div {
    display: grid;
  }

  .quiz-strengths b {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-result,
  .quiz-metric-card,
  .quiz-category-fill,
  .quiz-donut,
  .quiz-donut::after {
    animation: none !important;
    transition: none !important;
  }

  .quiz-result {
    opacity: 1;
    transform: none;
  }

  .quiz-result .quiz-donut {
    --quiz-score-angle: var(--quiz-score-target);
  }

  .quiz-result .quiz-category-fill {
    width: var(--category-score);
  }

  .quiz-result .quiz-metric-card {
    opacity: 1;
    transform: none;
  }
}
