.twofa-guide {
  overflow: hidden;
}

.twofa-guide-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 34px 28px;
  border-bottom: 1px solid var(--portal-line);
  background: linear-gradient(135deg, #f7fbff, #fff 66%);
}

.twofa-kicker,
.twofa-step-label,
.twofa-box-label {
  margin: 0 0 8px;
  color: var(--portal-blue-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.twofa-guide-header h2 {
  margin: 0;
  color: var(--portal-ink);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -.04em;
}

.twofa-guide-header p:not(.twofa-kicker) {
  max-width: 710px;
  margin: 13px 0 0;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.85;
}

.twofa-guide-header strong { color: var(--portal-ink); }

.twofa-guide-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 210px;
}

.twofa-guide-badges span {
  padding: 8px 10px;
  border: 1px solid #cfe1f5;
  border-radius: 999px;
  background: #fff;
  color: var(--portal-blue-dark);
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}

.twofa-summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 34px 0;
  padding: 16px 18px;
  border: 1px solid #c9e5d6;
  border-radius: 9px;
  background: #f3fbf6;
}

.twofa-summary-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--portal-green);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.twofa-summary strong { display: block; color: #1d6744; font-size: 13px; }
.twofa-summary p { margin: 4px 0 0; color: #4f7561; font-size: 12px; line-height: 1.8; }

.twofa-steps {
  display: grid;
  gap: 14px;
  padding: 24px 34px 10px;
}

.twofa-step {
  padding: 24px;
  border: 1px solid var(--portal-line);
  border-radius: 11px;
  background: #fff;
}

.twofa-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.twofa-step-number {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--portal-navy);
  color: #d9ebff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
}

.twofa-step-label { margin: 2px 0 4px; color: var(--portal-orange); font-size: 10px; }
.twofa-step h3 { margin: 0; color: var(--portal-ink); font-size: 20px; letter-spacing: -.025em; }

.twofa-step-body {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 26px;
  margin-top: 22px;
}

.twofa-step-copy p { margin: 0; color: var(--portal-muted); font-size: 12px; line-height: 1.9; }
.twofa-step-copy a,
.twofa-inline-link { color: var(--portal-blue-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.twofa-step-copy strong { color: var(--portal-ink); }
.twofa-step-copy code { padding: 2px 5px; border-radius: 4px; background: #eef4fb; color: var(--portal-blue-dark); font-size: 11px; }

.twofa-step-copy ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: #4d5968;
  font-size: 12px;
  line-height: 1.7;
}

.twofa-note {
  margin-top: 14px !important;
  padding: 10px 12px;
  border-left: 3px solid #a9ccef;
  background: #f5f9fe;
  color: #607087 !important;
  font-size: 11px !important;
}

.twofa-note.warning { border-left-color: #f2ad77; background: #fff8f1; color: #8a5a32 !important; }

.twofa-visual {
  min-width: 0;
  min-height: 220px;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 24px;
  border: 1px solid #d9e4ef;
  border-radius: 10px;
  background: #f3f7fb;
}

.twofa-visual figcaption {
  position: absolute;
  right: 13px;
  bottom: 10px;
  left: 13px;
  color: #8090a2;
  font-size: 10px;
  text-align: center;
}

.fake-browser-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 31px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border-bottom: 1px solid #d9e4ef;
  background: #fff;
  color: #8492a2;
  font-size: 10px;
}

.fake-browser-bar i { width: 7px; height: 7px; display: block; border-radius: 50%; background: #ffb46d; }
.fake-browser-bar i:nth-child(2) { background: #8dd1a6; }
.fake-browser-bar i:nth-child(3) { background: #9fc6ef; }
.fake-browser-bar span { margin-left: 10px; padding: 4px 34px; border-radius: 4px; background: #f1f5f8; color: #5e7084; }
.fake-browser-bar b { margin-left: auto; font-size: 14px; font-weight: 500; }

.fake-browser-content { width: min(100%, 440px); display: grid; grid-template-columns: 38% 62%; overflow: hidden; margin-top: 8px; border: 1px solid #dce6f0; border-radius: 7px; background: #fff; box-shadow: 0 12px 22px rgba(43,69,96,.1); }
.fake-sidebar { display: grid; align-content: start; gap: 13px; min-height: 150px; padding: 18px 14px 30px; background: #f7f9fb; color: #8190a0; font-size: 10px; }
.fake-sidebar strong { color: #27394f; font-size: 13px; }
.fake-sidebar-user { margin-top: 20px; color: #3977b8; }
.fake-chat { display: grid; align-content: center; justify-items: center; gap: 7px; min-height: 150px; padding: 24px; text-align: center; }
.fake-lock { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #def3e8; color: #2b9d68; font-weight: 900; }
.fake-chat strong { color: #344356; font-size: 13px; }
.fake-chat small { color: #98a4b1; font-size: 10px; }

.settings-visual { padding: 38px 25px 32px; }
.fake-settings-top { position: absolute; top: 0; right: 0; left: 0; display: flex; justify-content: space-between; padding: 10px 15px; border-bottom: 1px solid #e0e8f0; background: #fff; color: #33465b; font-size: 11px; font-weight: 800; }
.fake-settings-top b { color: #9aa7b4; font-size: 14px; font-weight: 500; }
.fake-settings-body { width: min(100%, 440px); display: grid; grid-template-columns: 31% 69%; overflow: hidden; border: 1px solid #dce6f0; border-radius: 7px; background: #fff; box-shadow: 0 12px 22px rgba(43,69,96,.1); }
.fake-settings-nav { display: grid; align-content: start; gap: 10px; min-height: 138px; padding: 14px 9px; background: #f7f9fb; color: #8a98a7; font-size: 9px; }
.fake-settings-nav span { padding: 6px 8px; border-radius: 4px; }
.fake-settings-nav .is-selected { background: #e5f1ff; color: #2772b8; font-weight: 800; }
.fake-security-panel { padding: 20px 16px 18px; }
.fake-security-panel small { color: #8998a8; font-size: 9px; }
.fake-security-panel h4 { margin: 6px 0; color: #344356; font-size: 12px; }
.fake-security-panel p { margin: 0; color: #9aa6b2; font-size: 9px; }
.fake-security-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; padding: 10px; border: 1px solid #e0e8f0; border-radius: 5px; color: #4f6074; font-size: 9px; }
.fake-security-row b { color: #2772b8; }

.key-visual { gap: 22px; padding-bottom: 38px; }
.fake-qr { width: 116px; height: 116px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 10px; border: 7px solid #fff; background: #28394e; box-shadow: 0 8px 19px rgba(43,69,96,.16); }
.fake-qr span { background: #f3f7fb; }
.fake-qr span:nth-child(2), .fake-qr span:nth-child(5), .fake-qr span:nth-child(8) { background: #28394e; }
.fake-key-panel { width: min(45%, 190px); display: grid; gap: 7px; padding: 14px; border: 1px solid #e0e8f0; border-radius: 7px; background: #fff; box-shadow: 0 8px 19px rgba(43,69,96,.08); }
.fake-key-panel small { color: #8d9aaa; font-size: 9px; }
.fake-key-panel code { overflow: hidden; color: #3a6f9f; font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
.fake-key-panel > span { color: #c17843; font-size: 8px; }
.fake-recovery { display: flex; justify-content: space-between; gap: 4px; margin-top: 5px; padding-top: 9px; border-top: 1px solid #edf1f5; color: #718094; font-size: 8px; }
.fake-recovery i { color: #a1aebb; font-style: normal; }

.phone-visual { gap: 25px; padding-bottom: 38px; }
.fake-phone { width: 145px; display: grid; gap: 8px; padding: 13px 13px 16px; border: 5px solid #27394f; border-radius: 20px; background: #fff; box-shadow: 0 12px 22px rgba(43,69,96,.18); }
.fake-phone-notch { width: 45px; height: 5px; margin: -7px auto 2px; border-radius: 0 0 5px 5px; background: #27394f; }
.fake-phone-head { display: flex; justify-content: space-between; color: #8b99a8; font-size: 8px; }
.fake-phone small { color: #65778b; font-size: 9px; }
.fake-phone strong { color: #284e72; font-size: 25px; letter-spacing: .08em; }
.fake-phone em { color: #9aa7b4; font-size: 8px; font-style: normal; }
.fake-progress { height: 4px; overflow: hidden; border-radius: 99px; background: #e8eef4; }
.fake-progress i { display: block; width: 65%; height: 100%; border-radius: inherit; background: var(--portal-orange); }
.fake-submit { width: min(40%, 190px); display: grid; gap: 8px; padding: 16px; border: 1px solid #cae7d7; border-radius: 8px; background: #f3fbf6; }
.fake-submit span { color: #779181; font-size: 9px; }
.fake-submit b { color: #267e50; font-size: 12px; }
.fake-submit small { color: #699278; font-size: 9px; }

.twofa-checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.twofa-checklist > div { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid #dce7f1; border-radius: 8px; background: #f7fafd; }
.twofa-checklist span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e2f0ff; color: #3678b5; font-size: 9px; font-weight: 850; }
.twofa-checklist p { margin: 0; }
.twofa-checklist strong, .twofa-checklist small { display: block; }
.twofa-checklist strong { color: #405268; font-size: 11px; }
.twofa-checklist small { margin-top: 4px; color: #8c9aaa; font-size: 9px; line-height: 1.4; }

.twofa-bottom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px 34px 34px; }
.twofa-info-box { padding: 20px; border: 1px solid #d9e5f0; border-radius: 9px; background: #f7fafd; }
.twofa-info-box.secure { border-color: #f0ddc9; background: #fffaf5; }
.twofa-info-box h3 { margin: 0; color: var(--portal-ink); font-size: 17px; }
.twofa-info-box p:not(.twofa-box-label) { margin: 9px 0 0; color: var(--portal-muted); font-size: 11px; line-height: 1.85; }
.twofa-info-box .twofa-inline-link { display: inline-block; margin-top: 12px; font-size: 11px; }
.twofa-box-label { margin-bottom: 7px; color: var(--portal-blue-dark); font-size: 9px; }
.twofa-info-box.secure .twofa-box-label { color: #bd6b2e; }
.twofa-do-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.twofa-do-list span { padding: 6px 8px; border: 1px solid #f0d5b9; border-radius: 5px; background: #fff; color: #9a633a; font-size: 10px; }

@media (max-width: 800px) {
  .twofa-guide-header { align-items: flex-start; flex-direction: column; gap: 18px; }
  .twofa-guide-badges { justify-content: flex-start; min-width: 0; }
  .twofa-step-body { grid-template-columns: 1fr; }
  .twofa-visual { min-height: 225px; }
}

@media (max-width: 680px) {
  .twofa-guide-header { padding: 25px 20px 22px; }
  .twofa-summary { margin: 18px 20px 0; }
  .twofa-steps { padding: 18px 20px 6px; }
  .twofa-step { padding: 18px 15px; }
  .twofa-step h3 { font-size: 18px; }
  .twofa-step-body { gap: 18px; margin-top: 18px; }
  .twofa-visual { min-height: 205px; padding: 20px 12px 34px; }
  .fake-browser-content, .fake-settings-body { transform: scale(.86); transform-origin: center; }
  .fake-browser-content { width: 118%; }
  .fake-settings-body { width: 118%; }
  .key-visual, .phone-visual { gap: 11px; }
  .fake-qr { width: 95px; height: 95px; }
  .fake-key-panel { width: 50%; }
  .fake-phone { width: 130px; }
  .fake-phone strong { font-size: 21px; }
  .fake-submit { width: 45%; padding: 12px; }
  .twofa-checklist { grid-template-columns: 1fr; }
  .twofa-bottom-grid { grid-template-columns: 1fr; padding: 12px 20px 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .twofa-card:hover { transform: none; }
}
