@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  margin-bottom: 32px;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
}

.subtitle {
  color: #64748b;
  font-size: 13px;
  margin-top: 2px;
}

h2 {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

h3 {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}

.btn-secondary {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #f1f5f9;
}

.btn-sm {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-sm:hover {
  background: #e2e8f0;
}

.btn-danger {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-danger:hover {
  background: #fef2f2;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 4px;
}

.form-group label a {
  color: #2563eb;
}

.form-group input {
  width: 100%;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group input::placeholder {
  color: #94a3b8;
}

code {
  font-family: 'Fira Code', 'SF Mono', Consolas, monospace;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #475569;
}

.hidden { display: none; }

.muted {
  color: #94a3b8;
  font-size: 13px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.account-row:last-child {
  border-bottom: none;
}

.account-info {
  flex: 1;
  min-width: 0;
}

.account-email {
  font-weight: 500;
  font-size: 14px;
  color: #0f172a;
}

.account-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  margin-left: 12px;
}

.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.status-unbound {
  background: #f1f5f9;
  color: #64748b;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-error {
  background: #fee2e2;
  color: #991b1b;
}

.status-quota_exhausted {
  background: #fef3c7;
  color: #92400e;
}

.status-suspended {
  background: #e5e7eb;
  color: #374151;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
}

.pagination button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

#accounts-summary {
  margin: 0 0 12px 0;
  font-size: 12px;
}

.quota-bar {
  width: 120px;
  height: 5px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.quota-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 3px;
  transition: width 0.3s;
}

.endpoint-table {
  width: 100%;
  border-collapse: collapse;
}

.endpoint-table td {
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}

.endpoint-table td:first-child {
  width: 260px;
}

.endpoint-table td:last-child {
  color: #64748b;
}

.endpoint-table tr:last-child td {
  border-bottom: none;
}

.step-link {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.step-link:hover {
  text-decoration: underline;
}

.step-hint {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
