.credits-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.credits-header {
  margin-bottom: 2rem;
}

.credits-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 0.5rem 0;
}

.credits-balance {
  color: var(--text-muted);
  font-size: 1rem;
}

.credits-balance strong {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-bright);
}

.credits-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.wallet-section {
  min-height: 300px;
}

.wallet-connect-prompt {
  text-align: center;
  padding: 2rem 0;
}

.wallet-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.4;
}

.wallet-connect-prompt h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 1rem 0 0.5rem;
}

.wallet-connect-prompt p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.credits-page .btn {
  width: 100%;
}

.wallet-connected-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(158, 206, 106, 0.1);
  border: 1px solid var(--success);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.wallet-connected-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wallet-check-icon {
  width: 24px;
  height: 24px;
  color: var(--success);
}

.wallet-connected-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0 0 0.25rem 0;
}

.wallet-address {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
  .wallet-address {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.credits-page .btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
}

.credits-page .btn-text:hover {
  color: var(--text-bright);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  background: var(--bg-surface);
  color: var(--text-bright);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-hint strong {
  font-weight: 600;
  color: var(--text-bright);
}

.form-hint .muted {
  color: var(--text-dim);
}

.credits-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 1rem 0;
}

.status-spinner svg circle {
  opacity: 0.25;
}

.status-spinner svg path {
  opacity: 0.75;
}

.status-box {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.status-box.hidden {
  display: none;
}

.status-box.loading {
  background: rgba(122, 162, 247, 0.1);
  border: 1px solid var(--primary);
}

.status-box.success {
  background: rgba(158, 206, 106, 0.1);
  border: 1px solid var(--success);
}

.status-box.error {
  background: rgba(247, 118, 142, 0.1);
  border: 1px solid var(--danger);
}

.status-box.warning {
  background: rgba(255, 158, 100, 0.1);
  border: 1px solid var(--warning);
}

.status-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.status-spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

.status-spinner.hidden {
  display: none;
}

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

.status-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.status-text p {
  font-size: 0.75rem;
  margin: 0;
}

.status-box.loading .status-text h4,
.status-box.loading .status-text p {
  color: var(--primary);
}

.status-box.success .status-text h4,
.status-box.success .status-text p {
  color: var(--success);
}

.status-box.error .status-text h4,
.status-box.error .status-text p {
  color: var(--danger);
}

.status-box.warning .status-text h4,
.status-box.warning .status-text p {
  color: var(--warning);
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
  background: var(--bg-surface);
}

.transaction-item:hover {
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.transaction-details {
  flex: 1;
}

.transaction-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.transaction-amount {
  font-weight: 600;
  color: var(--text-bright);
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.confirmed {
  background: rgba(158, 206, 106, 0.2);
  color: var(--success);
}

.status-badge.failed {
  background: rgba(247, 118, 142, 0.2);
  color: var(--danger);
}

.status-badge.pending,
.status-badge.confirming {
  background: rgba(255, 158, 100, 0.2);
  color: var(--warning);
}

.transaction-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.transaction-link {
  font-size: 0.75rem;
  color: var(--primary);
  text-decoration: none;
}

.transaction-link:hover {
  text-decoration: underline;
  color: var(--info);
}

.transaction-cost {
  text-align: right;
}

.transaction-cost p {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .credits-page {
    padding: 1rem;
  }
  
  .credits-card {
    padding: 1.5rem;
  }
  
  .transaction-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .transaction-cost {
    text-align: left;
  }
}
