/* Console account — API keys & billing */
.acct-page {
  max-width: 960px;
}

.acct-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.acct-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #3b82f6);
  margin: 0 0 0.35rem;
}

.acct-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.acct-lead {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  max-width: 42rem;
}

.acct-card {
  margin-bottom: 1rem;
}

.acct-card-title {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.acct-table-wrap {
  overflow-x: auto;
}

.acct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.acct-table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.acct-table td {
  padding: 0.65rem 0.75rem 0.65rem 0;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  vertical-align: middle;
}

.acct-empty {
  color: var(--muted);
  padding: 1.5rem 0 !important;
}

.acct-key-prefix {
  font-family: var(--mono, 'Geist Mono', monospace);
  font-size: 0.78rem;
}

.acct-actions {
  text-align: right;
}

.acct-link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.acct-link-btn:hover {
  color: var(--text, #fff);
}

.acct-gate {
  padding: 1.5rem;
}

.acct-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 1rem;
}

.acct-modal-dialog {
  width: min(420px, 100%);
  padding: 1.25rem;
}

.acct-modal-foot {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.acct-reveal-warn {
  font-size: 0.8rem;
  color: #f59e0b;
  margin: 0.75rem 0 0.35rem;
}

.acct-reveal-code {
  display: block;
  word-break: break-all;
  padding: 0.65rem;
  background: var(--surface-2);
  border-radius: 6px;
  font-size: 0.78rem;
  margin: 0.35rem 0 0.5rem;
}

.acct-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.acct-metric {
  padding: 0.85rem 1rem;
  background: var(--surface, #161616);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
}

.acct-metric-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.acct-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.acct-plan {
  padding: 1rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  background: var(--surface-2, #141414);
}

.acct-plan--current {
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 1px var(--accent, #3b82f6);
}

.acct-plan--featured {
  border-color: rgba(59, 130, 246, 0.45);
}

.acct-plan h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.acct-plan-price {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.acct-plan-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.acct-plan-highlights {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.acct-plan-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent, #3b82f6);
}

.acct-billing-interval {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  overflow: hidden;
}

.acct-billing-interval .period-seg {
  border: none;
  border-radius: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

.acct-founding {
  margin-top: 0.75rem;
}

.acct-byok {
  opacity: 0.92;
}

@media (max-width: 720px) {
  .acct-page-head {
    flex-direction: column;
  }
}
