.otp-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.otp-summary-card {
  min-height: 150px;
  padding: 1.25rem;
  border: 1px solid rgba(7, 84, 68, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(5, 40, 34, 0.07);
}

.otp-summary-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #075444;
  font-size: 1.35rem;
}

.otp-summary-card p {
  margin: 0;
  color: #4e625d;
  line-height: 1.9;
}

.otp-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  counter-reset: otp-flow;
}

.otp-flow-step {
  position: relative;
  min-height: 155px;
  padding: 1.1rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(7, 84, 68, 0.12);
  counter-increment: otp-flow;
}

.otp-flow-step::before {
  content: counter(otp-flow);
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 0.8rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #075444;
  font-weight: 800;
}

.otp-flow-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.otp-flow-step p {
  margin: 0;
  color: #53655f;
  line-height: 1.8;
  font-size: 0.92rem;
}

.otp-code-box {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: stretch;
}

.otp-message-preview {
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(145deg, #0b6755, #053f35);
  color: #fff;
}

.otp-message-preview small {
  display: block;
  margin-bottom: 0.7rem;
  opacity: 0.78;
}

.otp-message-preview code {
  display: block;
  padding: 1.1rem;
  border-radius: 16px;
  direction: rtl;
  white-space: normal;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 2;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.otp-dos-donts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.otp-list-card {
  padding: 1.35rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(7, 84, 68, 0.12);
}

.otp-list-card h3 {
  margin-top: 0;
}

.otp-list-card ul {
  margin: 0;
  padding: 0 1.2rem 0 0;
}

.otp-list-card li {
  margin: 0.65rem 0;
  line-height: 1.8;
}

.otp-list-card.is-warning {
  border-color: rgba(180, 83, 9, 0.25);
  background: #fffaf3;
}

.otp-state-table td:first-child,
.otp-state-table th:first-child {
  direction: ltr;
  text-align: left;
}

.otp-checklist-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1.3rem;
  align-items: start;
}

.otp-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.otp-check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(7, 84, 68, 0.13);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.otp-check-item:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 84, 68, 0.35);
  box-shadow: 0 10px 24px rgba(5, 40, 34, 0.07);
}

.otp-check-item input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: #075444;
}

.otp-check-item strong,
.otp-check-item small {
  display: block;
}

.otp-check-item small {
  margin-top: 0.3rem;
  color: #687873;
  line-height: 1.65;
}

.otp-readiness {
  position: sticky;
  top: 96px;
  padding: 1.35rem;
  border-radius: 24px;
  background: #073f35;
  color: #fff;
}

.otp-readiness strong {
  display: block;
  margin: 0.35rem 0;
  font-size: 2rem;
}

.otp-readiness p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.otp-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.otp-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #e6bd61;
  transition: width 220ms ease;
}

.otp-readiness .button {
  width: 100%;
  margin-top: 0.85rem;
}

.otp-research-note {
  padding: 1.15rem 1.25rem;
  border-right: 4px solid #e6bd61;
  border-radius: 18px;
  background: #fff9e9;
  color: #55471f;
  line-height: 1.9;
}

@media (max-width: 1100px) {
  .otp-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .otp-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .otp-code-box,
  .otp-checklist-shell {
    grid-template-columns: 1fr;
  }

  .otp-readiness {
    position: static;
  }
}

@media (max-width: 640px) {
  .otp-summary-grid,
  .otp-flow,
  .otp-dos-donts,
  .otp-checklist {
    grid-template-columns: 1fr;
  }
}
