/* ═══════════════════════════════════════════
   Credit check (اعتبارسنجی)
═══════════════════════════════════════════ */

.page-credit {
  --cr-ink: #0c1222;
  --cr-navy: #132038;
  --cr-blue: #0b6bcb;
  --cr-sky: #0ea5e9;
  --cr-cyan: #22d3ee;
  --cr-green: #16a34a;
  --cr-red: #e11d48;
  --cr-amber: #d97706;
  --cr-line: #e3e8ef;
  --cr-soft: #f6f8fb;
  --cr-mute: #667085;
  --cr-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: #eef2f7;
}

.cr { color: var(--cr-ink); }
.cr [hidden] { display: none !important; }

/* ── Hero ── */
.cr-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(2.5rem, 6vw, 5rem);
  background: linear-gradient(160deg, #0a0f1d 0%, #0f1b33 45%, #0b2a52 100%);
  color: #fff;
}

.cr-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.cr-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: cr-float 14s ease-in-out infinite alternate;
}
.cr-orb--1 { width: 420px; height: 420px; background: #0b6bcb; top: -140px; left: -80px; }
.cr-orb--2 { width: 360px; height: 360px; background: #22d3ee; bottom: -180px; right: 12%; opacity: 0.32; animation-delay: -6s; }

.cr-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

@keyframes cr-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

.cr-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .cr-wrap { grid-template-columns: 1fr 470px; }
}

.cr-crumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}
.cr-crumb a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.cr-crumb a:hover { color: #fff; }
.cr-crumb i { font-size: 0.65rem; }

.cr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #a5f3fc;
  font-size: 0.8rem;
  font-weight: 700;
}

.cr-title {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.cr-grad {
  background: linear-gradient(90deg, #38bdf8, #22d3ee 50%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cr-lead {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 2;
  color: rgba(255, 255, 255, 0.72);
}

.cr-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 959px) {
  .cr-lead { margin-bottom: 1.1rem; }
  .cr-features { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .cr-features li { flex-direction: column; gap: 0.4rem; padding: 0.7rem 0.4rem; text-align: center; }
  .cr-features__icon { width: 36px; height: 36px; font-size: 1rem; }
  .cr-features strong { font-size: 0.8rem; }
  .cr-features small { display: none; }
}

.cr-features li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.cr-features__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 107, 203, 0.5), rgba(34, 211, 238, 0.35));
  color: #fff;
  font-size: 1.15rem;
}

.cr-features strong { display: block; font-size: 0.95rem; }
.cr-features small { color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }

/* ── Card ── */
.cr-card {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 28px;
  background: #fff;
  color: var(--cr-ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 40px 80px -20px rgba(3, 10, 30, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cr-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 29px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.8), rgba(167, 139, 250, 0.6), rgba(34, 211, 238, 0.8));
  filter: blur(18px);
  opacity: 0.35;
}

/* Stepper */
.cr-steps {
  list-style: none;
  display: flex;
  margin: 0 0 1.5rem;
  padding: 0;
}

.cr-steps__item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #98a2b3;
  font-size: 0.75rem;
  font-weight: 600;
}

.cr-steps__item em { font-style: normal; }

.cr-steps__item span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cr-soft);
  border: 2px solid var(--cr-line);
  font-weight: 800;
  font-size: 0.85rem;
  transition: all 0.35s var(--cr-ease);
}

.cr-steps__item + .cr-steps__item::before {
  content: "";
  position: absolute;
  top: 17px;
  right: calc(-50% + 20px);
  left: calc(50% + 20px);
  height: 2px;
  background: var(--cr-line);
  border-radius: 2px;
  transition: background 0.35s;
}

.cr-steps__item.is-active { color: var(--cr-blue); }
.cr-steps__item.is-active span {
  background: var(--cr-blue);
  border-color: var(--cr-blue);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(11, 107, 203, 0.14);
}

.cr-steps__item.is-done { color: var(--cr-green); }
.cr-steps__item.is-done span {
  background: var(--cr-green);
  border-color: var(--cr-green);
  color: transparent;
}
.cr-steps__item.is-done span::after {
  content: "\F633";
  font-family: "bootstrap-icons";
  position: absolute;
  color: #fff;
  font-size: 1.05rem;
}
.cr-steps__item.is-done + .cr-steps__item::before,
.cr-steps__item.is-active + .cr-steps__item::before { background: linear-gradient(90deg, var(--cr-line), var(--cr-blue)); }
.cr-steps__item.is-done + .cr-steps__item.is-done::before { background: var(--cr-green); }

.cr-step { animation: cr-in 0.45s var(--cr-ease); }
.cr-step--center { text-align: center; padding: 1rem 0 0.5rem; }

@keyframes cr-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.cr-step__head { margin-bottom: 1.25rem; }
.cr-step__head h2,
.cr-step--center h2 { margin: 0 0 0.3rem; font-size: 1.3rem; font-weight: 800; }
.cr-step__head p,
.cr-step--center p { margin: 0; color: var(--cr-mute); font-size: 0.88rem; }
.cr-step__head b { color: var(--cr-ink); }

.cr-step__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--cr-green);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Alert */
.cr-alert {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: #fff1f3;
  border: 1px solid #fecdd6;
  color: #be123c;
  font-size: 0.86rem;
  font-weight: 600;
  animation: cr-in 0.3s var(--cr-ease);
}
.cr-alert::before { content: "\F332"; font-family: "bootstrap-icons"; font-size: 1rem; line-height: 1.5; }

/* ── Floating-label fields ── */
.cr-field { margin-bottom: 1rem; }

.cr-field__box { position: relative; }

.cr-field__box input {
  width: 100%;
  height: 62px;
  padding: 1.45rem 3.1rem 0.4rem 2.9rem;
  border: 1.5px solid var(--cr-line);
  border-radius: 16px;
  background: var(--cr-soft);
  color: var(--cr-ink);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: right;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
}

.cr-field__box input:hover { border-color: #cfd7e3; }

.cr-field__box input:focus {
  background: #fff;
  border-color: var(--cr-blue);
  box-shadow: 0 0 0 4px rgba(11, 107, 203, 0.12);
}

.cr-field__box label {
  position: absolute;
  top: 50%;
  right: 3.1rem;
  transform: translateY(-50%);
  color: #8a94a6;
  font-size: 0.95rem;
  font-weight: 600;
  pointer-events: none;
  transition: all 0.22s var(--cr-ease);
}

.cr-field__box input:focus + label,
.cr-field__box input:not(:placeholder-shown) + label {
  top: 0.95rem;
  transform: none;
  font-size: 0.72rem;
  color: var(--cr-blue);
}

.cr-field__icon {
  position: absolute;
  top: 50%;
  right: 1.05rem;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.cr-field__box input:focus ~ .cr-field__icon { color: var(--cr-blue); }

.cr-field__state {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%) scale(0.4);
  opacity: 0;
  font-size: 1.15rem;
  transition: all 0.3s var(--cr-ease);
}
.cr-field__state::before { font-family: "bootstrap-icons"; }

.cr-field.is-valid .cr-field__state { opacity: 1; transform: translateY(-50%) scale(1); color: var(--cr-green); }
.cr-field.is-valid .cr-field__state::before { content: "\F26A"; }
.cr-field.is-valid input { border-color: rgba(22, 163, 74, 0.55); }

.cr-field.is-invalid .cr-field__state { opacity: 1; transform: translateY(-50%) scale(1); color: var(--cr-red); }
.cr-field.is-invalid .cr-field__state::before { content: "\F622"; }
.cr-field.is-invalid input { border-color: var(--cr-red); box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1); }
.cr-field.is-invalid .cr-field__hint { color: var(--cr-red); }
.cr-field.is-shake .cr-field__box { animation: cr-shake 0.4s; }

@keyframes cr-shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.cr-field__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem 0;
  font-size: 0.75rem;
  color: var(--cr-mute);
}
.cr-field__count { font-variant-numeric: tabular-nums; direction: ltr; }

/* Consent switch */
.cr-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.4rem 0 1.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1.5px dashed var(--cr-line);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background 0.2s;
}
.cr-consent:hover { border-color: #c4cfdf; }
.cr-consent input { position: absolute; opacity: 0; pointer-events: none; }

.cr-consent__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  border-radius: 7px;
  border: 2px solid #c4cfdf;
  background: #fff;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.2s var(--cr-ease);
}
.cr-consent__box i { transform: scale(0); transition: transform 0.25s var(--cr-ease); }
.cr-consent input:checked + .cr-consent__box { background: var(--cr-blue); border-color: var(--cr-blue); }
.cr-consent input:checked + .cr-consent__box i { transform: scale(1); }
.cr-consent input:focus-visible + .cr-consent__box { box-shadow: 0 0 0 4px rgba(11, 107, 203, 0.18); }
.cr-consent:has(input:checked) { border-style: solid; border-color: rgba(11, 107, 203, 0.35); background: #f3f8fe; }
.cr-consent.is-invalid { border-color: var(--cr-red); animation: cr-shake 0.4s; }
.cr-consent__text { font-size: 0.82rem; line-height: 1.8; color: #475467; }

/* ── Buttons ── */
.cr-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 58px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b6bcb 0%, #0ea5e9 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(11, 107, 203, 0.7);
  transition: transform 0.2s var(--cr-ease), box-shadow 0.2s, filter 0.2s;
}
.cr-btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 18px 36px -10px rgba(11, 107, 203, 0.8); }
.cr-btn:active { transform: translateY(0); }
.cr-btn:focus-visible { outline: 3px solid rgba(14, 165, 233, 0.45); outline-offset: 3px; }
.cr-btn:disabled { cursor: not-allowed; filter: grayscale(0.3); opacity: 0.75; transform: none; }
.cr-btn__icon { transition: transform 0.25s var(--cr-ease); }
.cr-btn:hover .cr-btn__icon.bi-arrow-left { transform: translateX(-4px); }

.cr-btn__spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
  animation: cr-spin 0.8s linear infinite;
}
.cr-btn.is-loading .cr-btn__label,
.cr-btn.is-loading .cr-btn__icon { opacity: 0; }
.cr-btn.is-loading .cr-btn__spinner { opacity: 1; }

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

.cr-btn--ghost {
  width: auto;
  height: 48px;
  background: var(--cr-soft);
  color: var(--cr-ink);
  border: 1.5px solid var(--cr-line);
  box-shadow: none;
  font-size: 0.9rem;
}
.cr-btn--ghost:hover { color: var(--cr-blue); border-color: var(--cr-blue); box-shadow: none; }

.cr-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: 0;
  background: none;
  color: var(--cr-blue);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
}
.cr-link:hover { background: #eef5fd; }
.cr-link:disabled { color: #98a2b3; cursor: default; background: none; }

.cr-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1rem 0 0;
  color: var(--cr-mute);
  font-size: 0.75rem;
}
.cr-secure i { color: var(--cr-green); }

/* ── OTP ── */
.cr-otp { position: relative; margin-bottom: 1.25rem; }

.cr-otp input {
  width: 100%;
  height: 76px;
  border: 1.5px solid var(--cr-line);
  border-radius: 18px;
  background: var(--cr-soft);
  color: var(--cr-ink);
  font-family: inherit;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
}
.cr-otp input::placeholder { color: #c4cfdf; letter-spacing: 0.3em; }
.cr-otp input:focus { background: #fff; border-color: var(--cr-blue); box-shadow: 0 0 0 4px rgba(11, 107, 203, 0.12); }
.cr-otp.is-invalid input { border-color: var(--cr-red); animation: cr-shake 0.4s; }

.cr-otp__bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cr-blue), var(--cr-cyan));
  transform: translateX(-50%);
  transition: width 0.3s var(--cr-ease);
}

.cr-otp__actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

/* OTP inside the identity form */
.cr-otp-block {
  margin: 0.25rem 0 1.25rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(160deg, #f3f8fe, #fff 70%);
  border: 1.5px solid rgba(11, 107, 203, 0.25);
  animation: cr-in 0.45s var(--cr-ease);
}

.cr-otp-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.cr-otp-block__head .cr-step__badge { margin: 0; }
.cr-otp-block .cr-otp { margin-bottom: 0; }
.cr-otp-block .cr-otp input { height: 66px; background: #fff; }
.cr-otp-block .cr-otp__actions { align-items: center; margin-top: 0.5rem; }

.cr-otp__expire {
  color: var(--cr-mute);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cr-otp__expire.is-expired { color: var(--cr-red); }

.cr-step.is-otp .cr-field { margin-bottom: 0.6rem; }
.cr-step.is-otp .cr-field__box input {
  background: var(--cr-soft);
  color: #475467;
  border-color: var(--cr-line);
  box-shadow: none;
  cursor: default;
}
.cr-step.is-otp .cr-field__meta { display: none; }

/* ── Waiting / done ── */
.cr-scan {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0.5rem auto 1.25rem;
}
.cr-scan span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(11, 107, 203, 0.4);
  animation: cr-pulse 2.4s ease-out infinite;
}
.cr-scan span:nth-child(2) { animation-delay: 0.8s; }
.cr-scan span:nth-child(3) { animation-delay: 1.6s; }
.cr-scan i {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cr-blue), var(--cr-sky));
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 12px 30px -8px rgba(11, 107, 203, 0.7);
}

@keyframes cr-pulse {
  from { transform: scale(0.55); opacity: 1; }
  to { transform: scale(1.25); opacity: 0; }
}

@keyframes cr-pop {
  from { transform: scale(0.4) rotate(-12deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ═══ Report & mismatch pages ═══ */
.cr-hero--compact { padding: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(3.5rem, 6vw, 4.5rem); }
.cr-hero--compact .cr-title { margin: 0; font-size: clamp(1.8rem, 4.5vw, 2.8rem); }

.cr-page-head {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.cr-hero--center {
  display: grid;
  place-items: center;
  min-height: min(70vh, 640px);
  padding: 2.5rem 1rem;
}

.cr-mismatch {
  width: min(480px, 100%);
  text-align: center;
  animation: cr-in 0.5s var(--cr-ease);
}

.cr-mismatch__icon {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 1.25rem;
  border-radius: 26px;
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  color: #fff;
  font-size: 2.3rem;
  box-shadow: 0 18px 34px -12px rgba(225, 29, 72, 0.65);
  animation: cr-pop 0.5s var(--cr-ease);
}

.cr-mismatch h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  font-weight: 900;
  color: #be123c;
  line-height: 1.6;
}

.cr-mismatch p {
  margin: 0 0 1.6rem;
  color: #475467;
  font-size: 0.98rem;
  line-height: 2;
}

/* ═══ Result document ═══ */
.cr-result {
  width: min(1180px, calc(100% - 2rem));
  margin: -2rem auto 2rem;
  position: relative;
  z-index: 2;
  scroll-margin-top: 90px;
}

.cr-doc {
  padding: clamp(1.1rem, 3vw, 2rem);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 70px -30px rgba(12, 18, 34, 0.35);
  animation: cr-in 0.6s var(--cr-ease);
}

.cr-doc__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--cr-line);
}

.cr-doc__brand { display: flex; align-items: center; gap: 0.75rem; }
.cr-doc__brand img { border-radius: 12px; object-fit: contain; }
.cr-doc__brand strong { display: block; font-size: 1.15rem; font-weight: 900; }
.cr-doc__brand small { color: var(--cr-mute); font-size: 0.75rem; }

.cr-doc__meta {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin: 0;
}
.cr-doc__meta div {
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  background: var(--cr-soft);
  border: 1px solid var(--cr-line);
}
.cr-doc__meta dt { color: var(--cr-mute); font-size: 0.72rem; font-weight: 600; }
.cr-doc__meta dd {
  margin: 0.1rem 0 0;
  font-weight: 800;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.cr-doc__tools { display: flex; gap: 0.5rem; }

@media (max-width: 560px) {
  .cr-doc__head { grid-template-columns: 1fr; }
  .cr-doc__meta { grid-row: auto; grid-template-columns: 1fr 1fr; }
}

.cr-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 42px;
  padding: 0 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--cr-line);
  background: var(--cr-soft);
  color: var(--cr-ink);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.cr-tool:hover { border-color: var(--cr-blue); color: var(--cr-blue); background: #fff; }
.cr-tool[data-action="print"] { background: var(--cr-ink); border-color: var(--cr-ink); color: #fff; }
.cr-tool[data-action="print"]:hover { background: var(--cr-blue); border-color: var(--cr-blue); color: #fff; }

/* Verdicts */
.cr-verdict {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.cr-verdict h3 { margin: 0 0 0.25rem; font-size: 1.05rem; font-weight: 800; }
.cr-verdict p { margin: 0; font-size: 0.9rem; line-height: 1.9; color: #475467; }
.cr-verdict__hint { margin-top: 0.35rem !important; font-size: 0.8rem !important; }

.cr-verdict__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 1.45rem;
  color: #fff;
}

.cr-verdict--ok { background: linear-gradient(135deg, #f0fdf4, #ecfeff); border-color: #bbf7d0; }
.cr-verdict--ok .cr-verdict__icon { background: linear-gradient(135deg, #16a34a, #22c55e); }
.cr-verdict--ok h3 { color: #15803d; }

.cr-verdict--bad { background: linear-gradient(135deg, #fff1f2, #fff7ed); border-color: #fecdd3; }
.cr-verdict--bad .cr-verdict__icon { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.cr-verdict--bad h3 { color: #be123c; }

.cr-verdict--warn { background: #fffbeb; border-color: #fde68a; }
.cr-verdict--warn .cr-verdict__icon { background: linear-gradient(135deg, #d97706, #f59e0b); }
.cr-verdict--warn h3 { color: #b45309; }

/* Summary: bounced cheques + credit score */
.cr-summary {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 760px) {
  .cr-summary { grid-template-columns: 1fr 1fr; }
  .cr-credit--report { grid-column: 1 / -1; }
}

.cr-credit { display: flex; flex-direction: column; }
.cr-credit > .cr-stat { flex: 1; }
.cr-credit--report .cr-score-row { margin-top: 0; }

.cr-stat {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.3rem;
  border-radius: 22px;
  border: 1px solid var(--cr-line);
  background: #fff;
}

.cr-stat__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.cr-stat__head h4 { margin: 0; font-size: 1.02rem; font-weight: 800; }

.cr-stat__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--cr-soft);
  color: var(--cr-blue);
  font-size: 1.2rem;
}

.cr-stat__value {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.cr-stat__value strong {
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cr-stat__value span { color: var(--cr-mute); font-weight: 700; }

.cr-stat__note {
  margin: 0;
  color: #475467;
  font-size: 0.88rem;
  line-height: 1.9;
}

.cr-stat__note i { margin-left: 0.3rem; vertical-align: -0.1em; }

.cr-stat--good { background: linear-gradient(160deg, #f0fdf4, #fff 60%); border-color: #bbf7d0; }
.cr-stat--good .cr-stat__icon { background: #dcfce7; color: var(--cr-green); }
.cr-stat--good .cr-stat__value strong,
.cr-stat--good .cr-stat__note i { color: var(--cr-green); }

.cr-stat--bad { background: linear-gradient(160deg, #fff1f2, #fff 60%); border-color: #fecdd3; }
.cr-stat--bad .cr-stat__icon { background: #ffe4e6; color: var(--cr-red); }
.cr-stat--bad .cr-stat__value strong,
.cr-stat--bad .cr-stat__note i { color: var(--cr-red); }

.cr-stat--muted { background: #f9fafb; }
.cr-stat--muted .cr-stat__icon { background: #eef0f3; color: #98a2b3; }
.cr-stat--muted .cr-stat__note { color: var(--cr-mute); }

.cr-stat--info { background: linear-gradient(160deg, #eff6ff, #fff 60%); border-color: #bfdbfe; }

.cr-credit-otp {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.cr-credit-otp input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 1rem;
  border: 1.5px solid var(--cr-line);
  border-radius: 14px;
  background: #fff;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cr-credit-otp input:focus { border-color: var(--cr-blue); box-shadow: 0 0 0 4px rgba(11, 107, 203, 0.12); }
.cr-credit-otp .cr-btn { width: auto; height: 54px; flex: none; font-size: 0.92rem; }

.cr-credit-otp__error {
  margin: 0.5rem 0 0;
  color: var(--cr-red);
  font-size: 0.82rem;
  font-weight: 700;
}

.cr-credit .cr-link { margin-top: 0.6rem; }

.cr-credit__loading { text-align: center; padding: 0.5rem 0; }
.cr-credit__loading .cr-scan { width: 90px; height: 90px; margin-bottom: 0.75rem; }
.cr-credit__loading .cr-scan i { width: 54px; height: 54px; font-size: 1.4rem; }
.cr-credit__loading h4 { margin: 0 0 0.25rem; font-weight: 800; }
.cr-credit__loading p { margin: 0; color: var(--cr-mute); font-size: 0.85rem; }

@media (max-width: 480px) {
  .cr-credit-otp { flex-direction: column; }
  .cr-credit-otp .cr-btn { width: 100%; }
}

/* Score */
.cr-score-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.12), transparent 45%),
    linear-gradient(160deg, #0c1222, #132038 60%, #0b2a52);
  color: #fff;
}

@media (min-width: 760px) {
  .cr-score-row { grid-template-columns: 340px 1fr; }
}

.cr-gauge { position: relative; width: min(340px, 100%); margin-inline: auto; }
.cr-gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.cr-gauge path { fill: none; stroke-width: 18; stroke-linecap: round; }
.cr-gauge__track { stroke: rgba(255, 255, 255, 0.1); }
.cr-gauge__fill {
  stroke: url(#crGaugeGrad);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.35));
  transition: stroke-dashoffset 1.6s var(--cr-ease);
}
.cr-gauge.is-animated .cr-gauge__fill { stroke-dashoffset: calc(100 - var(--p)); }

.cr-gauge__value {
  position: absolute;
  inset: auto 0 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cr-gauge__value strong {
  font-size: clamp(2.6rem, 7vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cr-gauge__value small { color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; margin-top: 0.3rem; }

.cr-gauge__scale {
  display: flex;
  justify-content: space-between;
  direction: ltr;
  padding: 0 4%;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
}

.cr-eyebrow { color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; font-weight: 700; }

.cr-score-info h3 { margin: 0.2rem 0 0.4rem; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; }
.cr-score-info p { margin: 0 0 1rem; color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }

.cr-band-label.cr-band--excellent { color: #38bdf8; }
.cr-band-label.cr-band--good { color: #4ade80; }
.cr-band-label.cr-band--fair { color: #facc15; }
.cr-band-label.cr-band--weak { color: #fb923c; }
.cr-band-label.cr-band--risky { color: #fb7185; }

.cr-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
}
.cr-chip--strong { background: rgba(56, 189, 248, 0.18); border-color: rgba(56, 189, 248, 0.4); }
.cr-chip--ok b { color: #4ade80; }
.cr-chip--alert b { color: #fb7185; }

/* Sections */
.cr-sections {
  display: grid;
  gap: 1rem;
}
@media (min-width: 860px) {
  .cr-sections { grid-template-columns: 1fr 1fr; }
  .cr-sec:has(.cr-table) { grid-column: 1 / -1; }
}

.cr-sec {
  padding: 1.1rem 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--cr-line);
  background: #fff;
}

.cr-sec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.cr-sec__head h4 {
  position: relative;
  margin: 0;
  padding-right: 0.8rem;
  font-size: 0.98rem;
  font-weight: 800;
}
.cr-sec__head h4::before {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--cr-blue), var(--cr-cyan));
}
.cr-sec__count {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--cr-red);
  font-size: 0.75rem;
  font-weight: 800;
}

.cr-sec__empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: #f0fdf4;
  color: #15803d;
  font-weight: 700;
  font-size: 0.88rem;
}

.cr-kv { margin: 0; }
.cr-kv div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--cr-line);
  font-size: 0.88rem;
}
.cr-kv div:last-child { border-bottom: 0; }
.cr-kv dt { color: var(--cr-mute); font-weight: 600; }
.cr-kv dd { margin: 0; font-weight: 800; text-align: left; word-break: break-word; }

.cr-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--cr-line); }
.cr-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.cr-table th {
  position: sticky;
  top: 0;
  padding: 0.7rem 0.85rem;
  background: var(--cr-soft);
  color: #475467;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}
.cr-table td { padding: 0.7rem 0.85rem; border-top: 1px solid var(--cr-line); white-space: nowrap; }
.cr-table tbody tr:nth-child(even) td { background: #fbfcfe; }
.cr-table tbody tr:hover td { background: #f3f8fe; }

@media (max-width: 640px) {
  .cr-table-wrap { border: 0; }
  .cr-table thead { display: none; }
  .cr-table, .cr-table tbody, .cr-table tr, .cr-table td { display: block; width: 100%; }
  .cr-table tr { margin-bottom: 0.65rem; border: 1px solid var(--cr-line); border-radius: 14px; overflow: hidden; }
  .cr-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    white-space: normal;
    border-top: 1px dashed var(--cr-line);
    background: #fff !important;
  }
  .cr-table td:first-child { border-top: 0; }
  .cr-table td::before { content: attr(data-label); color: var(--cr-mute); font-weight: 600; }
}

.cr-doc__foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cr-line);
  color: var(--cr-mute);
  font-size: 0.75rem;
  text-align: center;
}

/* ── How it works ── */
.cr-how {
  width: min(1180px, calc(100% - 2rem));
  margin: 2.5rem auto 3rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) { .cr-how { grid-template-columns: repeat(3, 1fr); } }

.cr-how__item {
  padding: 1.4rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--cr-line);
  transition: transform 0.25s var(--cr-ease), box-shadow 0.25s;
}
.cr-how__item:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(12, 18, 34, 0.35); }
.cr-how__num {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cr-blue), var(--cr-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cr-how__item h3 { margin: 0.3rem 0; font-size: 1.05rem; font-weight: 800; }
.cr-how__item p { margin: 0; color: var(--cr-mute); font-size: 0.88rem; line-height: 1.9; }

@media (max-width: 480px) {
  .cr-wrap, .cr-result, .cr-how { width: calc(100% - 1.25rem); }
  .cr-card { border-radius: 22px; }
  .cr-field__box input { height: 58px; font-size: 1.05rem; }
  .cr-doc__tools { width: 100%; }
  .cr-tool { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cr *, .cr *::before, .cr *::after { animation: none !important; transition: none !important; }
}

/* ═══ Print ═══ */
@page { size: A4; margin: 12mm; }

@media print {
  .page-credit { background: #fff !important; }
  .page-credit .tl-header,
  .page-credit .ss-mobile-nav,
  .page-credit .ss-footer,
  .page-credit .float-actions,
  .page-credit .scroll-progress,
  .page-credit .ss-flash,
  .cr-hero,
  .cr-how,
  .cr-no-print { display: none !important; }

  .cr-result { width: 100%; margin: 0; }
  .cr-doc__head { grid-template-columns: 1fr; }
  .cr-doc__meta { grid-template-columns: repeat(4, 1fr); }
  .cr-doc { box-shadow: none; border-radius: 0; padding: 0; animation: none; }
  .cr *, .cr *::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cr-gauge__fill { transition: none; stroke-dashoffset: calc(100 - var(--p)); }
  .cr-score-row, .cr-verdict, .cr-sec, .cr-stat, .cr-table tr { break-inside: avoid; }
  .cr-summary { grid-template-columns: 1fr 1fr; }
  .cr-credit--report { grid-column: 1 / -1; }
  .cr-sections { grid-template-columns: 1fr 1fr; }
  .cr-sec:has(.cr-table) { grid-column: 1 / -1; }
  .cr-table-wrap { overflow: visible; }
  .cr-table th, .cr-table td { white-space: normal; }
}
