﻿/* Clean 3-step credit-check modal — mobile → info → pay (Figma blue) */
.ccc-root {
  --ccc-blue: #1d4ed8;
  --ccc-blue-deep: #1e40af;
  --ccc-blue-soft: #eff6ff;
  --ccc-blue-line: #bfdbfe;
  --ccc-ink: #0f172a;
  --ccc-muted: #64748b;
  --ccc-border: #e2e8f0;
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.ccc-root[hidden] { display: none !important; }
.ccc-root.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ccc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
  opacity: 0;
  transition: opacity .28s ease;
}
.ccc-root.is-open .ccc-backdrop { opacity: 1; }
.ccc-modal {
  position: relative;
  width: min(520px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  max-height: min(96vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 64px rgba(15, 23, 42, .28);
  padding: 14px 18px 16px;
  font-family: Vazirmatn, IRANSansX, IRANSans, Tahoma, sans-serif;
  color: var(--ccc-ink);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
  transform: translateY(14px) scale(.96);
  opacity: 0;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
}
.ccc-root.is-open .ccc-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .ccc-root, .ccc-backdrop, .ccc-modal { transition: none !important; }
  .ccc-modal { transform: none; }
}

.ccc-top {
  position: relative;
  min-height: 24px;
  margin-bottom: 2px;
}
.ccc-resume-banner {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 4px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-right: 3px solid #0f2744;
  color: #334155;
}
.ccc-resume-banner__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.ccc-resume-banner__top strong {
  font-size: .8rem;
  font-weight: 800;
  color: #0f172a;
}
.ccc-resume-banner__clock {
  font-size: .82rem;
  font-weight: 800;
  color: #0f2744;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}
.ccc-resume-banner__clock.is-expired { color: #b91c1c; }
.ccc-resume-banner p {
  margin: 0;
  font-size: .74rem;
  line-height: 1.65;
  font-weight: 600;
}
.ccc-resume-banner p b {
  color: #0f172a;
  font-weight: 800;
}
.ccc-close {
  position: absolute;
  top: -2px;
  left: -4px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}
.ccc-close:hover { color: #334155; background: #f1f5f9; }

.ccc-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin: 2px 2px 12px;
  position: relative;
}
.ccc-stepper__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.ccc-stepper__dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--ccc-blue-line);
  background: #fff;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.ccc-stepper__item.is-active .ccc-stepper__dot,
.ccc-stepper__item.is-done .ccc-stepper__dot {
  background: var(--ccc-blue);
  border-color: var(--ccc-blue);
  color: #fff;
}
.ccc-stepper__item.is-done .ccc-stepper__dot::before {
  content: "\F26E";
  font-family: bootstrap-icons;
  font-size: .85rem;
  font-weight: 400;
}
.ccc-stepper__item.is-done .ccc-stepper__dot {
  font-size: 0;
}
.ccc-stepper__label {
  font-size: .68rem;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.35;
  max-width: 5.8rem;
}
.ccc-stepper__item.is-active .ccc-stepper__label,
.ccc-stepper__item.is-done .ccc-stepper__label {
  color: var(--ccc-blue);
}
.ccc-stepper__line {
  position: absolute;
  top: 14px;
  right: 16.5%;
  left: 16.5%;
  height: 2px;
  background: var(--ccc-blue-line);
  z-index: 0;
}

.ccc-panel[hidden] { display: none !important; }
.ccc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 14px;
}
.ccc-panel--intro {
  padding-top: 0;
  --ccc-intro-hero: 210px;
  --ccc-intro-badge-fs: 13px;
  --ccc-intro-title-fs: 17px;
}
.ccc-hero--intro {
  margin-bottom: 12px;
  padding-top: 4px;
  position: relative;
}
.ccc-hero--intro .ccc-hero__art {
  width: var(--ccc-intro-hero);
  height: var(--ccc-intro-hero);
  margin: 0 0 14px;
}
.ccc-hero--intro .ccc-sub {
  margin: 8px auto 0;
  max-width: 24rem;
  font-size: .86rem;
}
.ccc-hero__art {
  width: 132px;
  height: 132px;
  margin: 2px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cccFloat 3.2s ease-in-out infinite;
}
.ccc-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ccc-hero__art--sm {
  width: 108px;
  height: 108px;
  margin-bottom: 8px;
}
@keyframes cccFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .ccc-hero__art { animation: none; }
}

.ccc-title {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ccc-ink);
  line-height: 1.55;
  letter-spacing: -.01em;
}
.ccc-title--center { text-align: center; }
.ccc-lead {
  margin: 0 auto 12px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ccc-blue);
  line-height: 1.7;
  max-width: 26rem;
  letter-spacing: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.ccc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 12px;
  padding: 8px 14px;
  max-width: min(100%, 22.5rem);
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid #dce9ff;
  color: #1d4ed8;
  font-size: var(--ccc-intro-badge-fs);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: none;
}
.ccc-badge i {
  font-size: 1.1em;
  color: #2563eb;
  flex-shrink: 0;
}
.ccc-badge span { min-width: 0; }
.ccc-title--hero {
  text-align: center;
  font-size: var(--ccc-intro-title-fs);
  font-weight: 800;
  line-height: 1.7;
  max-width: 22rem;
  margin: 0 auto;
  color: #111827;
  letter-spacing: -.01em;
}
.ccc-title__hl {
  color: #2563eb;
  font-weight: inherit;
}
@media (max-width: 380px) {
  .ccc-hero--intro .ccc-hero__art {
    width: min(var(--ccc-intro-hero), 168px);
    height: min(var(--ccc-intro-hero), 168px);
    margin-bottom: 12px;
  }
}

.ccc-feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 14px 0 18px;
  border: 1px solid #e8eef7;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}
.ccc-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 13px 8px 14px;
  min-width: 0;
}
.ccc-feat + .ccc-feat {
  border-right: 1px solid #eef2f7;
}
.ccc-feat__icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5ff;
  color: #2563eb;
  font-size: 1rem;
  line-height: 0;
  flex-shrink: 0;
}
.ccc-feat__icon svg {
  display: block;
}
.ccc-feat__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ccc-feat__copy strong {
  font-size: .78rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
}
.ccc-feat__copy span {
  font-size: .66rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.4;
}
@media (max-width: 380px) {
  .ccc-feat { padding: 12px 6px 13px; }
  .ccc-feat__icon { width: 34px; height: 34px; }
  .ccc-feat__copy strong { font-size: .72rem; }
  .ccc-feat__copy span { font-size: .62rem; }
}
.ccc-sub {
  margin: 0 0 10px;
  color: var(--ccc-muted);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.5;
}
.ccc-sub--center { text-align: center; }

.ccc-field-wrap { margin-bottom: 8px; }
.ccc-label {
  display: block;
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: #334155;
}
.ccc-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ccc-border);
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ccc-field:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.ccc-field__icon {
  color: #94a3b8;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.ccc-field input,
.ccc-field select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ccc-ink);
  padding: 11px 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.ccc-field input::placeholder,
.ccc-field select:invalid {
  color: #94a3b8;
  font-weight: 500;
}
.ccc-field--select {
  position: relative;
  padding-left: 28px;
}
.ccc-field--select::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.ccc-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 14px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.55;
}
.ccc-terms input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.ccc-terms__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: .72rem;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ccc-terms input:checked + .ccc-terms__box {
  border-color: var(--ccc-blue);
  background: var(--ccc-blue);
  color: #fff;
}
.ccc-terms a {
  color: var(--ccc-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ccc-section-label {
  margin: 6px 0 6px;
  font-size: .76rem;
  font-weight: 800;
  color: #1e3a8a;
}

.ccc-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.ccc-amount {
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 9px 4px;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.ccc-amount.is-selected {
  border-color: var(--ccc-blue);
  color: #fff;
  background: var(--ccc-blue);
  box-shadow: 0 6px 14px rgba(29, 78, 216, .2);
}
.ccc-amount:hover:not(:disabled) { border-color: #93c5fd; }
.ccc-amount:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.ccc-field--custom { min-height: 42px; }

.ccc-amount-block {
  position: relative;
  margin-top: 2px;
  transition: opacity .15s ease;
}
.ccc-amount-block.is-locked {
  opacity: .55;
}
.ccc-amount-block.is-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(248, 250, 252, .35);
  pointer-events: none;
}
.ccc-amount-lock-hint {
  margin: -2px 0 6px;
  font-size: .7rem;
  font-weight: 700;
  color: #94a3b8;
}

.ccc-summary {
  background: linear-gradient(180deg, #f0f7ff 0%, #e8f1ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 12px 14px 0;
  margin-bottom: 16px;
  overflow: hidden;
}
.ccc-summary__head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  color: #1e40af;
  margin-bottom: 10px;
  font-size: .86rem;
}
.ccc-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  margin-bottom: 8px;
  color: #475569;
}
.ccc-summary__row strong { color: #1e3a8a; font-weight: 800; }
.ccc-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 4px -14px 0;
  padding: 11px 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
}
.ccc-summary__total strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.ccc-debt {
  margin: 4px 0 16px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1.5px solid var(--ccc-blue-line);
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}
.ccc-debt__title {
  margin: 0 0 10px;
  font-size: .84rem;
  font-weight: 800;
  color: #1e3a8a;
  text-align: center;
}
.ccc-debt__opts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ccc-debt__opt {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.ccc-debt__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.ccc-debt__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ccc-debt__opt input:checked + .ccc-debt__chip {
  border-color: var(--ccc-blue);
  background: var(--ccc-blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(29, 78, 216, .22);
}
.ccc-debt__opt:hover .ccc-debt__chip {
  border-color: #93c5fd;
}

.ccc-benefits {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ccc-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .86rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
}
.ccc-benefits i {
  color: var(--ccc-blue);
  font-size: 1.05rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.ccc-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0f7ff 0%, #e8f1ff 100%);
  border: 1px solid #dbeafe;
}
.ccc-price__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ccc-price__label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ccc-muted);
}
.ccc-price__value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ccc-blue-deep);
}
.ccc-price__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--ccc-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .12);
  flex-shrink: 0;
}

.ccc-btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font: inherit;
  font-size: .98rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(29, 78, 216, .28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ccc-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 26px rgba(29, 78, 216, .34);
}
.ccc-btn:active { transform: translateY(1px); }
.ccc-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
  pointer-events: none;
}
.ccc-btn.is-loading:disabled {
  opacity: 1;
  cursor: wait;
}
.ccc-btn i { font-size: 1.05rem; }
.ccc-btn.is-loading {
  opacity: 1;
  background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%);
}
.ccc-btn__spinner {
  width: 1.05rem;
  height: 1.05rem;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cccSpin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes cccSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ccc-btn__spinner { animation: none; border-top-color: #fff; opacity: .85; }
}

.ccc-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--ccc-muted);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px;
}
.ccc-back:hover { color: var(--ccc-blue); }

.ccc-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: #6b7280;
  font-size: .74rem;
  font-weight: 600;
}
.ccc-secure i { color: #22c55e; font-size: .9rem; }

.ccc-btn--intro {
  margin-top: 0;
  min-height: 50px;
  border-radius: 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 48%, #1d4ed8 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .26);
  font-size: 1rem;
  gap: 8px;
}
.ccc-btn--intro:hover {
  filter: brightness(1.03);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .32);
}

.ccc-panel--otp .ccc-title {
  margin-bottom: 2px;
  font-size: 1.02rem;
}
.ccc-panel--otp .ccc-sub {
  margin-bottom: 8px;
}
.ccc-otp-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  margin-bottom: 9px;
  border-radius: 10px;
  background: var(--ccc-blue-soft);
  border: 1px solid var(--ccc-blue-line);
  color: #1e3a8a;
  font-size: .76rem;
  font-weight: 600;
}
.ccc-otp-banner i { color: var(--ccc-blue); font-size: 1rem; }
.ccc-otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  direction: ltr;
  margin-bottom: 6px;
  width: 100%;
  justify-items: stretch;
}
.ccc-otp[data-otp-digits="4"] {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: 8px;
  grid-template-columns: none;
}
.ccc-otp[data-otp-digits="4"] input {
  width: 56px;
  height: 58px;
  flex: 0 0 56px;
  font-size: 1.35rem;
  border-radius: 12px;
}
.ccc-otp input {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid var(--ccc-border);
  border-radius: 9px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ccc-ink);
  background: #fff;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ccc-otp input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.ccc-otp[data-ccc-otp-state="ok"] input {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #166534;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .12);
}
.ccc-otp[data-ccc-otp-state="bad"] input {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .12);
}
.ccc-otp[data-ccc-otp-state="busy"] input {
  border-color: #93c5fd;
  background: #f8fbff;
}
.ccc-otp-status {
  margin: 0 0 6px;
  font-size: .74rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}
.ccc-otp-status.is-ok { color: #15803d; }
.ccc-otp-status.is-bad { color: #b91c1c; }
.ccc-otp-status.is-busy { color: #2563eb; }
.ccc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0 0 8px;
  border: 0;
  background: transparent;
  color: var(--ccc-blue);
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}
.ccc-link:disabled {
  color: #94a3b8;
  cursor: default;
}

.ccc-error {
  margin: 0 0 10px;
  color: #dc2626;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
}

body.ccc-open { overflow: hidden; }

/* SweetAlert above the clean credit-check modal (ccc-root is z-index 1080) */
.swal2-container.cc-swal-container,
.swal2-container {
  z-index: 20000 !important;
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box !important;
}
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
  background: rgba(15, 23, 42, 0.48) !important;
}
.swal2-container .swal2-popup.cc-swal {
  margin: auto !important;
  align-self: center !important;
}
.swal2-popup.cc-swal {
  direction: rtl;
  border-radius: 16px;
  padding: 1.25rem 1.15rem 1.05rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  font-family: Vazirmatn, IRANSansX, IRANSans, Tahoma, sans-serif;
  width: min(92vw, 360px);
}
.swal2-popup.cc-swal .cc-swal__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
}
.swal2-popup.cc-swal .cc-swal__text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}
.swal2-popup.cc-swal .swal2-actions {
  margin: 0.85rem 0 0 !important;
  width: 100%;
}
.swal2-popup.cc-swal .cc-swal__confirm {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  width: 100%;
  margin: 0 !important;
  padding: 0.7rem 1.15rem !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #1d4ed8 !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  font-family: inherit !important;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.swal2-popup.cc-swal .cc-swal__confirm:hover {
  filter: brightness(1.05);
}
.swal2-popup.cc-swal .cc-swal__confirm:focus {
  outline: 2px solid rgba(29, 78, 216, 0.35);
  outline-offset: 2px;
}
.swal2-popup.cc-swal .cc-swal__cancel {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  width: 100%;
  margin: 0.45rem 0 0 !important;
  padding: 0.65rem 1.15rem !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  font-family: inherit !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.swal2-popup.cc-swal .cc-swal__cancel:hover {
  background: #f1f5f9 !important;
  color: #475569 !important;
}
.swal2-popup.cc-swal.cc-swal--close-retain {
  width: min(94vw, 400px);
  padding: 1.35rem 1.2rem 1.15rem;
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(37, 99, 235, 0.10), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(16, 185, 129, 0.08), transparent 50%),
    #fff;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.26);
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__title {
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin: 0 0 0.55rem;
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__body {
  margin: 0 !important;
  padding: 0 !important;
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #475569;
  text-align: center;
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0.85rem auto 0.15rem;
  min-width: 5.5rem;
  padding: 0.55rem 0.9rem 0.5rem;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  direction: rtl;
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__stat-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: #1d4ed8;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}
.swal2-popup.cc-swal.cc-swal--close-retain .swal2-actions,
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.5rem !important;
  width: 100% !important;
  margin: 1rem 0 0 !important;
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  margin: 0 !important;
  min-height: 48px;
  padding: 0.72rem 1rem !important;
  border-radius: 14px !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  line-height: 1.35 !important;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: filter .12s ease, background .12s ease, box-shadow .12s ease, transform .12s ease;
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__btn--continue {
  order: 1;
  border: 0 !important;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 48%, #1d4ed8 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__btn--continue:hover {
  filter: brightness(1.05);
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__btn--find {
  order: 2;
  border: 1.5px solid #059669 !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.12);
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__btn--find:hover {
  background: #d1fae5 !important;
  transform: translateY(-1px);
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__btn--leave {
  order: 3;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #64748b !important;
  font-weight: 700 !important;
  min-height: 42px;
  box-shadow: none;
}
.swal2-popup.cc-swal.cc-swal--close-retain .ccc-retain__btn--leave:hover {
  background: #f8fafc !important;
  color: #475569 !important;
}
.swal2-popup.cc-swal.cc-swal--close-retain-3 .ccc-retain__btn--find {
  font-size: 0.86rem !important;
}
.swal2-popup.cc-swal .swal2-icon {
  margin: 0 auto 0.75rem;
  transform: scale(0.92);
}

@media (max-width: 420px) {
  .ccc-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccc-amount { font-size: .78rem; padding: 11px 6px; }
}
