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

body {
  background: #fff9f5;
  color: #1a1008;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  padding: 1.5rem 1.5rem 3rem;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
}

/* --- Typography --- */
header {
  border-bottom: 2px solid #f97316;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

header p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #a3681e;
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f97316;
  margin-bottom: 0.75rem;
}

p {
  font-size: 0.95rem;
  color: #4a3520;
  margin-bottom: 0.75rem;
}

code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

a {
  color: #f97316;
  text-decoration: underline;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
}

/* --- Endpoints & Methods --- */
.endpoint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.6rem 0;
}

.method {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  border: 1px solid;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Default/Global Method Color */
.method { color: #f97316; border-color: #f97316; }

/* Specific Method Colors */
.method.get  { color: #f97316; border-color: #f97316; }
.method.post { color: #16a34a; border-color: #16a34a; }

.path {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  color: #1a1008;
}

/* --- Code Blocks --- */
pre {
  background: #fff1e6;
  border-left: 3px solid #f97316;
  padding: 0.9rem 1.1rem;
  margin: 0.6rem 0;
  border-radius: 4px;
  overflow-x: auto;
}

pre code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: #7c3a0a;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.88rem;
}

th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a3681e;
  text-align: left;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #fde0c8;
}

td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #fef0e6;
  color: #4a3520;
  vertical-align: top;
}

td:first-child {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: #c2520a;
  white-space: nowrap;
}

/* --- Tags --- */
.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  margin-left: 0.4rem;
}

.tag.required { background: #fee2e2; color: #b91c1c; }
.tag.optional { background: #fde0c8; color: #92400e; }

/* --- Miscellaneous --- */
hr {
  border: none;
  border-top: 1px solid #fde0c8;
  margin: 2rem 0;
}

.billing-box {
  margin: 1rem 0; 
  padding: 1rem; 
  background: #fff; 
  border: 1px solid #fde0c8; 
  border-radius: 4px;
}

.navbar {
  background: #fff9f5;
  border-bottom: 2px solid #f97316;
  padding: 1rem 0;
  position: sticky;
  top: 0;
}

.navbar-wrap {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1008;
  text-decoration: none;
}

.navbar-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #f97316;
  color: white;
}

.btn-primary:hover {
  background: #ea580c;
}

.btn-outline {
  border: 1px solid #f97316;
  color: #f97316;
  background: transparent;
}

.btn-outline:hover {
  background: #fff1e6;
}

.auth-form-container {
  background: #fff;
  border: 1px solid #fde0c8;
  border-radius: 8px;
  padding: 2rem;
  width: 80%;
}
 
.auth-form-container h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #f97316;
}
 
.auth-form-group {
  margin-bottom: 1.25rem;
}
 
.auth-form-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: #4a3520;
  font-weight: 500;
}
 
.auth-form-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #fde0c8;
  border-radius: 4px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  background: #fff9f5;
}
 
.auth-form-input:focus {
  outline: none;
  border-color: #f97316;
  background: white;
}
 
.auth-btn {
  width: 100%;
  padding: 0.65rem;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 4px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
 
.auth-btn:hover {
  background: #ea580c;
}
 
.auth-error {
  color: #b91c1c;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
 
.auth-success {
  color: #16a34a;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
 
.auth-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}
 
.auth-link a {
  color: #f97316;
  text-decoration: none;
}
 
.auth-link a:hover {
  text-decoration: underline;
}

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.apikeys-container {
  background: #fff;
  border: 1px solid #fde0c8;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.apikeys-container h2 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #f97316;
}

.apikeys-section {
  margin-bottom: 2rem;
}

.apikeys-label {
  font-size: 0.85rem;
  color: #a3681e;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.apikeys-value {
  font-size: 0.95rem;
  color: #1a1008;
  padding: 0.75rem;
  background: #fff9f5;
  border: 1px solid #fde0c8;
  border-radius: 4px;
  word-break: break-all;
  font-family: 'IBM Plex Mono', monospace;
}

.apikeys-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid #fef0e6;
}

.apikeys-stat:last-child {
  border-bottom: none;
}

.apikeys-stat-label {
  color: #4a3520;
  font-size: 0.9rem;
}

.apikeys-stat-value {
  color: #1a1008;
  font-weight: 500;
  font-family: 'IBM Plex Mono', monospace;
}

.apikeys-btn {
  width: 100%;
  padding: 0.75rem;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 4px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.apikeys-btn:hover {
  background: #ea580c;
}

.apikeys-btn:disabled {
  background: #d4d4d8;
  cursor: not-allowed;
}

.apikeys-error {
  color: #b91c1c;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #fee2e2;
  border-radius: 4px;
}

.apikeys-success {
  color: #16a34a;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #dcfce7;
  border-radius: 4px;
}

.apikeys-copy-btn {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 4px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.apikeys-copy-btn:hover {
  background: #ea580c;
}

.apikeys-warning {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #92400e;
}

.apikeys-loading {
  text-align: center;
  padding: 2rem;
  color: #a3681e;
  font-family: 'IBM Plex Mono', monospace;
}

.api-tester {
  background: #fff9f5;
  border: 1px solid #fde0c8;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.api-tester-label {
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f97316;
  margin-bottom: 0.75rem;
  display: block;
}

.api-form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.api-form-group {
  flex: 1;
  min-width: 200px;
}

.api-form-label {
  display: block;
  font-size: 0.85rem;
  color: #4a3520;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.api-form-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #fde0c8;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  background: white;
}

.api-form-input:focus {
  outline: none;
  border-color: #f97316;
}

.api-form-textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #fde0c8;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  background: white;
  resize: vertical;
  min-height: 80px;
}

.api-form-textarea:focus {
  outline: none;
  border-color: #f97316;
}

.api-btn-group {
  display: flex;
  gap: 0.75rem;
}

.api-btn {
  padding: 0.5rem 1rem;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 4px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.api-btn:hover {
  background: #ea580c;
}

.api-btn:disabled {
  background: #d4d4d8;
  cursor: not-allowed;
}

.api-response {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #fde0c8;
  border-radius: 4px;
  max-height: 400px;
  overflow-y: auto;
}

.api-response-label {
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f97316;
  margin-bottom: 0.5rem;
}

.api-response-code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #7c3a0a;
  white-space: pre-wrap;
  word-break: break-all;
}

.api-error {
  color: #b91c1c;
}

.api-success {
  color: #16a34a;
}