.credits-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  font-family: "Montserrat", sans-serif;
}

.credits-modal.is-open {
  display: flex;
}

.credits-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
}

.credits-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.34);
  padding: 30px;
}

.credits-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #eef2f7;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.credits-modal__header {
  padding-right: 48px;
}

.credits-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00468d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.credits-modal__header h2 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
}

.credits-modal__header p {
  max-width: 560px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.credits-modal__plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.credits-modal__plan {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.credits-modal__plan:hover {
  border-color: #00468d;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.credits-modal__plan--featured {
  border-color: #590008;
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}

.credits-modal__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00468d 0%, #0570d6 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.credits-modal__details {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.credits-modal__price {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.credits-modal__details strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credits-modal__badge {
  position: absolute;
  top: -8px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #590008;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.credits-modal__empty {
  margin-top: 24px;
  padding: 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
  text-align: center;
}

.credits-modal__empty i {
  color: #00468d;
  font-size: 24px;
  margin-bottom: 8px;
}

.credits-modal__empty p {
  margin: 0;
}

body.credits-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .credits-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .credits-modal__dialog {
    max-height: calc(100vh - 24px);
    border-radius: 18px;
    padding: 24px 18px 18px;
  }

  .credits-modal__header {
    padding-right: 42px;
  }

  .credits-modal__header h2 {
    font-size: 24px;
  }

  .credits-modal__plans {
    grid-template-columns: 1fr;
  }
}
