/* Billing Page Dashboard Styling */

.billing-container {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem;
}

.billing-header {
  margin-bottom: 2.5rem;
}

.billing-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.billing-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Card layouts */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-header-group {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.card-title-group h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.card-title-group p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

/* Key Verification Input Form */
.key-form-group {
  display: flex;
  gap: 0.75rem;
}

.key-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.key-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.key-input::placeholder {
  color: var(--text-muted);
}

/* Status Indicator */
.license-status {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-inactive {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.status-active {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

/* License List */
.license-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.license-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.license-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.license-name {
  font-weight: 600;
  font-size: 1rem;
}

.license-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Modal feedback */
.feedback-box {
  display: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.feedback-success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.feedback-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

@media (max-width: 600px) {
  .key-form-group {
    flex-direction: column;
  }
  
  .key-form-group .btn {
    width: 100%;
  }
  
  .license-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
