.cr-modal-overlay {
  position: fixed;
  top: 69px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 69px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 1030;
}

.cr-modal-container {
  position: fixed;
  top: calc(69px + 24px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  width: 720px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 69px - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  z-index: 1040;
  padding: 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 768px) {
  .cr-modal-container {
    width: calc(100vw - 24px);
    padding: 20px;
    max-height: calc(100vh - 69px - 24px);
  }
}

.cr-modal-x {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #94a3b8;
  cursor: pointer;
}

.cr-title {
  color: #d84b74;
  font-size: 1.875rem;
  font-weight: 800;
  margin: 0;
}

.cr-balance {
  color: #64748b;
  font-weight: 600;
  font-size: 1rem;
  margin: 0.25rem 0 1.5rem 0;
}

.cr-green { color: #22c55e; }

.cr-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.cr-info-icon { color: #2563eb; font-size: 1.2rem; }
.cr-info-text p { margin: 0; color: #1e40af; font-weight: 700; }
.cr-info-text ul { margin: 8px 0 0 16px; color: #1e40af; font-size: 0.95rem; padding: 0; }

.cr-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.cr-card {
  border: 2px solid var(--gray-color);
  border-radius: 16px;
  padding: 40px 10px;
  text-align: center;
  position: relative;
  transition: transform 0.2s;
  cursor: pointer;
}

.cr-card:hover { transform: translateY(-2px); }

.cr-card.selected {
  border-color: #e83670;
  background-color: #fdf2f8;
  box-shadow: 0 8px 22px rgba(232, 54, 112, 0.18);
}

.cr-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #d84b74;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 15px;
  border-radius: 20px;
  white-space: nowrap;
}

.cr-card-icon {
  background: #d84b74;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.cr-card-qty { font-size: 2.8rem; font-weight: 800; color: #100e35; line-height: 1; }
.cr-card-label { font-size: 1rem; color: #64748b; font-weight: 600; margin-bottom: 20px; }
.cr-card-price { font-size: 1.8rem; font-weight: 800; color: #d84b74; }
.cr-card-unit { font-size: 0.8rem; color: #94a3b8; font-weight: 600; }

.cr-security-banner {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.cr-visa-logo { font-size: 2rem; color: #1a1b4b; }
.cr-sec-title { display: block; font-weight: 800; color: #100e35; font-size: 1rem; }
.cr-sec-sub { display: block; font-size: 0.9rem; color: #64748b; }
.cr-sec-methods { margin-left: auto; text-align: right; }
.cr-methods-label { display: block; font-size: 0.8rem; color: #94a3b8; }
.cr-methods-list { display: block; font-size: 0.9rem; color: #64748b; font-weight: 600; }

.cr-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.cr-btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

.cr-btn-pay {
  background: #94a3b8;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: not-allowed;
  opacity: 0.6;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cr-btn-pay.enabled {
  background: var(--primary-color);
  cursor: pointer;
  opacity: 1;
}

.cr-btn-pay.enabled:hover {
  background: #b83b5e;
}

.cr-btn-pay.loading {
  cursor: not-allowed;
  opacity: 0.9;
}

.cr-loading-icon {
  font-size: 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cr-price-tag {
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}