/**
 * Credits Display Component
 * Card-based credit display matching mockup design
 */

.credits-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .credits-cards {
    grid-template-columns: 1fr;
  }
}

.credit-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
}

.credit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.credit-card-title {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
}

.credit-badge {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
}

.credit-badge-orange {
  background: #fff7ed;
  color: #ea580c;
}

.credit-badge-blue {
  background: #eef2ff;
  color: #6366f1;
}

.credit-card-amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.credit-amount-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.1;
}

.credit-amount-label {
  font-size: 1.125rem;
  color: #9ca3af;
}

.credit-progress-track {
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.credit-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.credit-fill-orange {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.credit-fill-blue {
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

.credit-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #9ca3af;
}

.credits-purchase-link {
  display: block;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0a0a0a;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.credits-purchase-link:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

@media (max-width: 640px) {
  .credit-card {
    padding: 1.25rem;
  }
  .credit-amount-num {
    font-size: 2rem;
  }
}
