/* ============================================================
   Credits widget — navbar chip + balance modal. Tokens only.
   ============================================================ */

.lpo-navbar__credits {
  display: inline-flex;
  align-items: center;
}

.lpo-credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--lpo-divider, #e2e8f0);
  border-radius: 9999px;
  background: var(--lpo-surface, #fff);
  color: var(--lpo-text-default, #0f172a);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lpo-credits-chip:hover {
  border-color: var(--fa-primary, #283655);
}

.lpo-credits-chip--low {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}

.lpo-credits-chip__icon {
  font-size: 0.95rem;
}

/* ── Modal ── */
.credits-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.credits-modal {
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--lpo-surface, #fff);
  border-radius: var(--lpo-radius-lg, 14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: var(--lpo-space-lg, 20px);
}

.credits-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--lpo-space-md, 14px);
}

.credits-modal__header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.credits-modal__close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--lpo-text-secondary, #475569);
  line-height: 1;
}

.credits-modal__balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.credits-modal__value {
  font-size: 2rem;
  font-weight: 700;
}

.credits-modal__unit {
  color: var(--lpo-text-secondary, #475569);
}

.credits-modal__eur {
  margin-left: auto;
  color: var(--lpo-text-muted, #94a3b8);
  font-size: 0.9rem;
}

.credits-modal__expiring {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #b45309;
}

.credits-modal__section {
  margin-top: var(--lpo-space-md, 14px);
}

.credits-modal__section h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--lpo-text-secondary, #475569);
}

.credits-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.credits-modal__list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--lpo-divider, #e2e8f0);
  font-size: 0.85rem;
}

.credits-modal__delta--pos {
  color: #15803d;
  font-weight: 600;
}

.credits-modal__delta--neg {
  color: var(--lpo-text-secondary, #475569);
  font-weight: 600;
}

.credits-modal__actions {
  margin-top: var(--lpo-space-lg, 20px);
  display: flex;
  justify-content: center;
}
