* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Outfit', sans-serif;
  background: #04060f;
  color: #e8e6e3;
  min-height: 100vh;
}
.bg-wrap { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.grid-lines {
  width: 200%; height: 200%; position: absolute; top: -50%; left: -50%;
  background-image:
    linear-gradient(rgba(212,175,91,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,91,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; background: rgba(4,6,15,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,175,91,0.12);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand svg { width: 32px; height: 32px; }
.nav-brand span { font-size: 18px; font-weight: 600; color: #e8e6e3; }
.nav-brand em { color: #d4af5b; font-style: normal; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: #a09880; text-decoration: none; font-size: 14px; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover { color: #d4af5b; }
.container { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 90px 24px 60px; }
.tabs {
  display: flex; gap: 4px; margin-bottom: 32px; border-bottom: 1px solid rgba(212,175,91,0.12);
  padding-bottom: 0; overflow-x: auto;
}
.tab-btn {
  padding: 12px 24px; background: transparent; border: none; color: #a09880;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn:hover { color: #d4af5b; }
.tab-btn.active { color: #d4af5b; border-bottom-color: #d4af5b; }
.tab-content { display: none; }
.tab-content.active { display: block; }
h1 { font-size: 32px; font-weight: 600; color: #d4af5b; margin-bottom: 8px; }
.subtitle { color: #a09880; font-size: 15px; margin-bottom: 32px; }
.card {
  background: rgba(212,175,91,0.04); border: 1px solid rgba(212,175,91,0.12);
  border-radius: 12px; padding: 24px; margin-bottom: 16px;
}
.card h3 { font-size: 16px; font-weight: 500; color: #e8e6e3; margin-bottom: 12px; }
.card p, .card label { color: #a09880; font-size: 13px; line-height: 1.6; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: #c0bbb0; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,91,0.15); border-radius: 8px;
  color: #e8e6e3; font-family: 'Outfit', sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: #d4af5b; }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: #0a0e1a; color: #e8e6e3; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
  border: none; border-radius: 8px; font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: #d4af5b; color: #1a1200; }
.btn-primary:hover { background: #e0c070; }
.btn-secondary { background: rgba(212,175,91,0.1); color: #d4af5b; border: 1px solid rgba(212,175,91,0.2); }
.btn-secondary:hover { background: rgba(212,175,91,0.18); }
.btn-danger { background: rgba(249,62,62,0.15); color: #f93e3e; border: 1px solid rgba(249,62,62,0.2); }
.btn-danger:hover { background: rgba(249,62,62,0.25); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.key-display {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(212,175,91,0.2);
  border-radius: 8px; padding: 12px 16px; margin: 12px 0;
  font-family: 'DM Mono', monospace; font-size: 13px; color: #d4af5b;
  word-break: break-all;
}
.key-display .copy-btn {
  background: rgba(212,175,91,0.1); border: none; color: #d4af5b;
  padding: 4px 10px; border-radius: 4px; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 11px; white-space: nowrap;
}
.key-display .copy-btn:hover { background: rgba(212,175,91,0.2); }
.keys-list { max-height: 400px; overflow-y: auto; }
.key-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid rgba(212,175,91,0.06);
}
.key-item:last-child { border-bottom: none; }
.key-info { flex: 1; }
.key-info .key-name { font-size: 14px; font-weight: 500; color: #e8e6e3; }
.key-info .key-prefix { font-size: 12px; color: #d4af5b; font-family: 'DM Mono', monospace; }
.key-info .key-meta { font-size: 11px; color: #5a5440; margin-top: 2px; }
.key-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.key-status.active { background: rgba(73,204,144,0.15); color: #49cc90; }
.key-status.revoked { background: rgba(249,62,62,0.15); color: #f93e3e; }
.empty-state { text-align: center; padding: 40px 20px; color: #5a5440; }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.4; }
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(4,6,15,0.95); border: 1px solid rgba(212,175,91,0.2);
  border-radius: 10px; padding: 14px 24px; z-index: 999;
  font-size: 13px; color: #e8e6e3; opacity: 0; transition: opacity 0.3s;
  pointer-events: none; backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; }
.toast.error { border-color: rgba(249,62,62,0.3); }
.endpoint { margin-bottom: 12px; }
.endpoint-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.method-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; font-family: 'DM Mono', monospace;
}
.method-badge.get { background: rgba(97,175,254,0.15); color: #61affe; }
.method-badge.post { background: rgba(73,204,144,0.15); color: #49cc90; }
.method-badge.delete { background: rgba(249,62,62,0.15); color: #f93e3e; }
.method-badge.patch { background: rgba(80,140,230,0.15); color: #508ce6; }
.endpoint-path { font-family: 'DM Mono', monospace; font-size: 12px; color: #c0bbb0; }
.endpoint-desc { color: #a09880; font-size: 13px; margin-bottom: 8px; }
.code-block {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(212,175,91,0.1);
  border-radius: 8px; padding: 14px; font-family: 'DM Mono', monospace; font-size: 12px;
  color: #c0bbb0; overflow-x: auto; margin: 6px 0; white-space: pre-wrap; line-height: 1.5;
}
.code-tabs { display: flex; gap: 2px; margin-bottom: 4px; }
.code-tab {
  padding: 4px 12px; background: transparent; border: 1px solid rgba(212,175,91,0.1);
  border-bottom: none; border-radius: 6px 6px 0 0; color: #5a5440;
  font-family: 'Outfit', sans-serif; font-size: 11px; cursor: pointer;
}
.code-tab.active { color: #d4af5b; background: rgba(212,175,91,0.06); }
.response-preview {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(212,175,91,0.1);
  border-radius: 8px; padding: 14px; margin-top: 10px;
  font-family: 'DM Mono', monospace; font-size: 12px; color: #a09880;
  max-height: 300px; overflow-y: auto; white-space: pre-wrap;
}
.response-preview.success { color: #49cc90; }
.response-preview.error { color: #f93e3e; }
.spinner {
  display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(212,175,91,0.2);
  border-top-color: #d4af5b; border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.notification-banner {
  background: rgba(212,175,91,0.08); border: 1px solid rgba(212,175,91,0.15);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: #c0bbb0;
}
.notification-banner strong { color: #d4af5b; }
@media (max-width: 768px) {
  .container { padding: 80px 16px 40px; }
  h1 { font-size: 26px; }
  .nav-bar { padding: 12px 16px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12px; }
  .tabs { gap: 0; }
  .tab-btn { padding: 10px 14px; font-size: 12px; }
  .key-display { flex-direction: column; align-items: stretch; }
}
