/* POSaBIT Developer API — Brand Tokens */
:root {
  --color-blue: #6EBBD5;
  --color-green: #7CC144;
  --color-dark: #1A1A1B;
  --color-text: #333333;
  --color-muted: #8C8C94;
  --color-bg: #F5F5FA;
  --color-white: #FFFFFF;
  --color-border: #E2E2EA;
  --color-code-bg: #1E2228;
  --radius: 6px;
  --sidebar-width: 260px;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre { font-family: var(--font-mono); font-size: 0.87rem; }

/* ---- Sidebar ---- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-dark);
  color: #CFCFD7;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--color-white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  padding: 18px 16px;
}
.logo:hover { text-decoration: none; opacity: 0.85; }

.logo-img {
  height: auto;
  width: calc(100% - 36px);
  max-width: 220px;
}

.sidebar-toggle { display: none; }

.sidebar-nav { padding: 14px 0; flex: 1; }

.search-input {
  display: block;
  width: calc(100% - 36px);
  margin: 0 18px 16px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.87rem;
  outline: none;
}
.search-input::placeholder { color: rgba(255,255,255,0.35); }
.search-input:focus { border-color: var(--color-blue); background: rgba(255,255,255,0.1); }

.nav-section-title {
  padding: 10px 18px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
}

.nav-list {
  list-style: none;
  margin-bottom: 8px;
}

.nav-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list li a {
  display: block;
  flex: 1;
  padding: 7px 18px 7px 28px;
  color: #CFCFD7;
  font-size: 0.93rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-list li a:hover { background: rgba(255,255,255,0.06); color: var(--color-white); }
.nav-list li.active a { color: var(--color-blue); font-weight: 700; background: rgba(110,187,213,0.08); }

/* Sidebar version items */
.nav-version {
  flex-direction: column;
  align-items: stretch !important;
}

.nav-version-header {
  display: flex;
  align-items: center;
}

.nav-version-header a {
  flex: 1;
  padding: 7px 18px 7px 28px;
  color: #CFCFD7;
  font-size: 0.93rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-version-header a:hover { background: rgba(255,255,255,0.06); color: var(--color-white); }
.nav-version.active .nav-version-header a { color: var(--color-blue); font-weight: 700; background: rgba(110,187,213,0.08); }

.endpoint-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  padding-right: 6px;
  flex-shrink: 0;
}

.nav-expand-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 4px 12px 4px 4px;
  font-size: 0.7rem;
  transition: color 0.15s, transform 0.2s;
  flex-shrink: 0;
}

.nav-expand-btn::after {
  content: '\25B6';
  display: inline-block;
  transition: transform 0.2s;
}

.nav-version.expanded .nav-expand-btn::after {
  transform: rotate(90deg);
}

.nav-expand-btn:hover { color: rgba(255,255,255,0.6); }

/* Nested resource list in sidebar */
.nav-resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-resource-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-resource-list li a {
  display: block;
  flex: 1;
  padding: 5px 18px 5px 42px;
  color: rgba(207,207,215,0.7);
  font-size: 0.82rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-resource-list li a:hover { background: rgba(255,255,255,0.04); color: var(--color-white); }

.resource-count {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.2);
  padding-right: 18px;
  flex-shrink: 0;
}

/* ---- Content ---- */
.content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
}

.content-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 36px 60px;
}

.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--color-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--color-border);
}

/* ---- Index Page ---- */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 32px;
}

/* Hero */
.hero {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 48px 40px;
  margin-bottom: 32px;
  border: 1px solid var(--color-border);
  text-align: center;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* Quick Links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.quick-link {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.quick-link:hover {
  border-color: var(--color-blue);
  box-shadow: 0 2px 8px rgba(110,187,213,0.15);
  text-decoration: none;
}

.quick-link-label {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.quick-link-desc {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.quick-link-icon { display: none; }

.section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 16px;
}

/* API Cards */
.api-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.api-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-header h2,
.card-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-dark);
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(110,187,213,0.12);
  color: var(--color-blue);
}

.api-card p {
  color: var(--color-muted);
  font-size: 0.93rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-soon {
  color: var(--color-muted);
  font-style: italic;
  font-size: 0.87rem;
}

.card-versions h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.card-versions ul {
  list-style: none;
  margin-bottom: 20px;
}

.card-versions li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-versions li a {
  font-weight: 700;
  font-size: 0.93rem;
}

.card-versions .endpoint-count {
  font-size: 0.8rem;
  color: var(--color-muted);
  padding-right: 0;
}

.card-action { margin-top: auto; padding-top: 4px; }

.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.87rem;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: #2A2A2C; text-decoration: none; color: var(--color-white); }

.btn-secondary {
  display: inline-block;
  padding: 10px 22px;
  background: transparent;
  color: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.87rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: var(--color-blue); color: var(--color-blue); text-decoration: none; }

/* ---- API Section Page ---- */
.toc {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  border: 1px solid var(--color-border);
}

.toc h3 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.toc-list { list-style: none; columns: 2; column-gap: 24px; }

.toc-list li {
  break-inside: avoid;
  margin-bottom: 6px;
}

.toc-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--color-text);
}
.toc-list a:hover { color: var(--color-blue); }

.toc-method {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--color-white);
  min-width: 44px;
  text-align: center;
}

.toc-list code {
  font-size: 0.82rem;
  color: inherit;
}

/* ---- Resource Groups ---- */
.resource-group {
  margin-bottom: 40px;
  scroll-margin-top: 24px;
}

.resource-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
  display: inline;
}

.resource-endpoint-count {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-left: 10px;
}

.resource-description {
  margin: 10px 0 16px;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-dark);
  background: var(--color-bg);
  border-left: 3px solid var(--color-primary);
  border-radius: 4px;
}

.resource-toc {
  margin-bottom: 20px;
}

/* Resource TOC in top overview */
.toc-resources li {
  margin-bottom: 8px;
}

.toc-resource-name {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--color-dark);
}

.toc-resources a:hover .toc-resource-name { color: var(--color-blue); }

.toc-resource-count {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-left: 8px;
}

/* ---- Endpoint ---- */
.endpoint {
  background: var(--color-white);
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #FAFAFE;
  border-bottom: 1px solid var(--color-border);
}

.method-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  color: var(--color-white);
  min-width: 56px;
  text-align: center;
  letter-spacing: 0.02em;
}

.method-get    { background: var(--color-blue); }
.method-post   { background: var(--color-green); }
.method-put    { background: #F0AD4E; }
.method-patch  { background: #5BC0DE; }
.method-delete { background: #D9534F; }

.endpoint-path {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark);
  background: none;
  padding: 0;
}

.endpoint-summary {
  padding: 16px 24px 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.endpoint-notes {
  padding: 8px 24px 0;
  font-size: 0.87rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ---- Parameters Table ---- */
.params-section,
.responses-section,
.example-section {
  padding: 16px 24px;
}

.params-section h4,
.responses-section h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.params-table,
.responses-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.params-table th,
.responses-table th {
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--color-border);
}

.params-table td,
.responses-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.params-table tbody tr:nth-child(even) { background: #FAFAFE; }

.params-table code {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-dark);
}

.required { color: var(--color-green); font-weight: 700; font-size: 0.8rem; }
.optional { color: var(--color-muted); font-size: 0.8rem; }

.status-code {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* ---- Code Blocks ---- */
.example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.example-header h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.copy-btn {
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-muted);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s, color 0.15s;
}
.copy-btn:hover { border-color: var(--color-blue); color: var(--color-blue); }
.copy-btn.copied { border-color: var(--color-green); color: var(--color-green); }

.code-block {
  background: var(--color-code-bg);
  border-radius: var(--radius);
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  padding: 16px 20px;
  color: #D4D4D4;
  line-height: 1.5;
}

.code-block code { background: none; }

/* Language tabs */
.lang-tabs {
  display: flex;
  gap: 0;
  background: #181C20;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow-x: auto;
}

.lang-tab {
  background: none;
  border: none;
  color: #8C8C94;
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.lang-tab:hover { color: #D4D4D4; }

.lang-tab.active {
  color: var(--color-blue);
  border-bottom-color: var(--color-blue);
}

.lang-tabs + .code-block,
.lang-tabs ~ .code-block {
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Rouge syntax highlighting (dark theme — VS Code inspired) */
.highlight .s2, .highlight .s1, .highlight .s, .highlight .sa { color: #CE9178; } /* strings */
.highlight .mi, .highlight .mf, .highlight .m, .highlight .mb { color: #B5CEA8; } /* numbers */
.highlight .kc { color: #569CD6; }                             /* true/false/null */
.highlight .nl { color: #9CDCFE; }                             /* JSON keys */
.highlight .p  { color: #D4D4D4; }                             /* punctuation */
.highlight .nb, .highlight .bp { color: #DCDCAA; }            /* builtins */
.highlight .nv, .highlight .vi { color: #9CDCFE; }            /* variables */
.highlight .o  { color: #D4D4D4; }                             /* operators */
.highlight .se { color: #D7BA7D; }                             /* string escapes */
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kt { color: #569CD6; } /* keywords */
.highlight .n, .highlight .nc, .highlight .no { color: #4EC9B0; } /* class/type names */
.highlight .nf, .highlight .fm { color: #DCDCAA; }            /* function names */
.highlight .na { color: #9CDCFE; }                             /* attributes */
.highlight .nn { color: #4EC9B0; }                             /* namespace/module */
.highlight .ow { color: #C586C0; }                             /* operator words (and/or/not) */
.highlight .kr { color: #C586C0; }                             /* reserved keywords (return/await) */
.highlight .c, .highlight .c1 { color: #6A9955; }                     /* comments */

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 280px;
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-white);
    position: relative;
  }
  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-white);
  }
  .hamburger::before { top: -6px; }
  .hamburger::after { top: 6px; }

  .content { margin-left: 0; }
  .content-inner { padding: 24px 16px 40px; }

  .api-cards { grid-template-columns: 1fr; }
  .toc-list { columns: 1; }

  /* Mobile top bar */
  body::before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--color-dark);
    z-index: 90;
  }
  .content { padding-top: 56px; }
}

@media (max-width: 480px) {
  .endpoint-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---- Legacy Notice ---- */
.legacy-notice {
  margin-bottom: 20px;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #856404;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius);
}

.legacy-notice a {
  color: #856404;
  font-weight: 600;
  text-decoration: underline;
}

/* ---- Auth Bar ---- */
.auth-bar {
  background: var(--color-white);
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.auth-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #FAFAFE;
  border-bottom: 1px solid var(--color-border);
}

.auth-bar-header h4 {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

.auth-toggle {
  padding: 5px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.auth-toggle:hover { border-color: var(--color-blue); color: var(--color-blue); }

.auth-bar-body {
  padding: 20px 24px;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.auth-input {
  display: block;
  width: 100%;
  max-width: 500px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.15s;
}
.auth-input:focus { border-color: var(--color-blue); }

.auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.auth-save {
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius);
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s;
}
.auth-save:hover { background: #2A2A2C; }

.auth-status {
  font-size: 0.82rem;
  color: var(--color-muted);
}
.auth-status.saved { color: var(--color-green); font-weight: 700; }

/* ---- Try It Button ---- */
.try-it-btn {
  margin-left: auto;
  padding: 5px 14px;
  border: 1px solid var(--color-green);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-green);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.try-it-btn:hover { background: var(--color-green); color: var(--color-white); }
.try-it-btn.active { background: var(--color-green); color: var(--color-white); }

/* ---- Try It Panel ---- */
.try-it-panel {
  padding: 20px 24px;
  background: #F8F9FB;
  border-top: 2px solid var(--color-green);
}

.try-it-params {
  margin-bottom: 16px;
}

.try-it-param {
  margin-bottom: 12px;
}

.try-it-param label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.try-it-param label code {
  font-size: 0.85rem;
  font-weight: 700;
}

.try-it-param .param-meta {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-muted);
}

.try-it-param .required {
  color: #D9534F;
  font-weight: 700;
}

.try-it-input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.15s;
}
.try-it-input:focus { border-color: var(--color-blue); }

textarea.try-it-input {
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
}

/* ---- Try It Actions ---- */
.try-it-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.try-it-send {
  padding: 9px 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.87rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s;
}
.try-it-send:hover { background: #6aaa38; }
.try-it-send:disabled { opacity: 0.6; cursor: not-allowed; }

.try-it-loading {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

/* ---- Try It Response ---- */
.try-it-response {
  border-radius: var(--radius);
  overflow: hidden;
}

.try-it-response-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
}

.try-it-status {
  font-family: var(--font-mono);
}

.status-ok { color: var(--color-green); }
.status-warn { color: #F0AD4E; }
.status-error { color: #D9534F; }

.try-it-time {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 400;
}

.try-it-response-body {
  background: var(--color-code-bg);
  max-height: 400px;
  overflow-y: auto;
}

.try-it-response-body pre {
  margin: 0;
  padding: 16px 20px;
  color: #D4D4D4;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.try-it-response-body code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: none;
}

/* ---- Guide Pages ---- */
.guide-page {
  max-width: 800px;
}

.guide-section {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
}

.guide-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.guide-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 18px 0 8px;
}

.guide-section p {
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 12px;
  color: var(--color-text);
}

.guide-section p:last-child { margin-bottom: 0; }

.guide-list {
  padding-left: 20px;
  margin-bottom: 12px;
}

.guide-list li {
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 6px;
  color: var(--color-text);
}

.guide-section .code-block {
  margin: 12px 0;
}

.guide-section code {
  font-size: 0.85rem;
  background: rgba(0,0,0,0.05);
  padding: 1px 5px;
  border-radius: 3px;
}

.guide-section .code-block code {
  background: none;
  padding: 0;
}

/* Guide table */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  margin: 12px 0;
}

.guide-table th {
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  padding: 10px 14px;
  border-bottom: 2px solid var(--color-border);
}

.guide-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.guide-table code {
  font-weight: 500;
}

/* Environment badges */
.env-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 3px;
  color: var(--color-white);
}

.env-staging { background: #F0AD4E; }
.env-production { background: var(--color-green); }

.version-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--color-blue);
  color: var(--color-white);
}

/* Callout boxes */
.guide-callout {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.87rem;
  line-height: 1.55;
  margin: 16px 0;
}

.callout-info {
  background: rgba(110,187,213,0.1);
  border-left: 3px solid var(--color-blue);
}

.callout-warn {
  background: rgba(240,173,78,0.1);
  border-left: 3px solid #F0AD4E;
}

.callout-info code,
.callout-warn code {
  background: rgba(0,0,0,0.06);
}

/* Guide steps */
.guide-step {
  margin-bottom: 20px;
  padding-left: 42px;
  position: relative;
}

.guide-step h3 {
  margin-top: 0 !important;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Structure tree */
.structure-tree {
  font-size: 0.87rem;
  line-height: 1.6;
  padding: 16px;
  background: #FAFAFE;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.structure-tree > code {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.structure-tree ul {
  padding-left: 20px;
  list-style: none;
  border-left: 1px solid var(--color-border);
  margin: 4px 0 4px 6px;
}

.structure-tree li {
  padding: 2px 0;
}

.structure-tree code {
  font-size: 0.82rem;
  color: var(--color-blue);
  font-weight: 600;
  background: rgba(110,187,213,0.08);
  padding: 0 4px;
  border-radius: 2px;
}

/* ---- Schema Table ---- */
.schema-section {
  padding: 16px 24px;
}

.schema-section h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.schema-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.schema-table th {
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--color-border);
}

.schema-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.schema-table tbody tr:nth-child(even) { background: #FAFAFE; }

.schema-table code {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-dark);
}

.schema-type {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-blue);
  background: rgba(110,187,213,0.08);
  padding: 1px 7px;
  border-radius: 3px;
}

.schema-nullable {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.schema-not-null {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
}

.schema-default {
  font-size: 0.78rem;
  color: var(--color-muted);
  background: rgba(0,0,0,0.04);
  padding: 1px 5px;
  border-radius: 3px;
}

.schema-no-default {
  color: var(--color-border);
}

/* Order status codes */
.status-pending { color: #F0AD4E; }
.status-change { color: #F0AD4E; }
.status-processing { color: var(--color-blue); }
.status-completed { color: var(--color-green); }
.status-enroute { color: var(--color-blue); }
.status-delivered { color: var(--color-green); }
.status-canceled { color: #D9534F; }
.status-failed { color: #D9534F; }
