:root {
  --bg-app: #F7F5FB;
  --bg-raised: #FFFFFF;
  --surface-lavender: #B8A6FF;
  --surface-sky: #9EC9F0;
  --surface-mint: #7DD4A8;
  --surface-peach: #FFB59E;
  --surface-pink: #F5B8D0;
  --surface-lemon: #F5D77A;
  --action-primary: #FF7A6B;
  --action-on: #FFFFFF;
  --status-archived: #C9B5FF;
  --text-strong: #2E2A3F;
  --text-muted: #6B6580;
  --border-color: #C9B5FF;
  --code-bg: #201933;
  --code-text: #C9C0E8;
  --r-card: 28px;
  --r-button: 18px;
  --r-chip: 999px;
  --r-input: 16px;
  --r-icon: 20px;
  --nav-height: 58px;
  --shadow-white: 8px 8px 22px rgba(140,108,255,0.16), -8px -8px 20px rgba(255,255,255,0.85), inset 3px 3px 6px rgba(255,255,255,0.7), inset -5px -5px 10px rgba(140,108,255,0.10);
  --shadow-lavender: 8px 8px 22px rgba(140,108,255,0.32), -6px -6px 18px rgba(255,255,255,0.6), inset 3px 3px 6px rgba(255,255,255,0.55), inset -5px -5px 10px rgba(140,108,255,0.28);
  --shadow-sky: 8px 8px 22px rgba(80,150,220,0.32), -6px -6px 18px rgba(255,255,255,0.6), inset 3px 3px 6px rgba(255,255,255,0.55), inset -5px -5px 10px rgba(80,150,220,0.28);
  --shadow-mint: 8px 8px 22px rgba(70,180,130,0.32), -6px -6px 18px rgba(255,255,255,0.6), inset 3px 3px 6px rgba(255,255,255,0.55), inset -5px -5px 10px rgba(70,180,130,0.28);
  --shadow-peach: 8px 8px 22px rgba(255,140,110,0.32), -6px -6px 18px rgba(255,255,255,0.6), inset 3px 3px 6px rgba(255,255,255,0.55), inset -5px -5px 10px rgba(255,140,110,0.28);
  --shadow-pink: 8px 8px 22px rgba(230,140,180,0.32), -6px -6px 18px rgba(255,255,255,0.6), inset 3px 3px 6px rgba(255,255,255,0.55), inset -5px -5px 10px rgba(230,140,180,0.28);
  --shadow-lemon: 8px 8px 22px rgba(220,180,70,0.32), -6px -6px 18px rgba(255,255,255,0.6), inset 3px 3px 6px rgba(255,255,255,0.55), inset -5px -5px 10px rgba(220,180,70,0.28);
  --shadow-coral: 8px 8px 22px rgba(230,90,75,0.35), -6px -6px 18px rgba(255,255,255,0.6), inset 3px 3px 6px rgba(255,255,255,0.5), inset -5px -5px 10px rgba(230,90,75,0.30);
  --shadow-pressed: inset 4px 4px 8px rgba(140,108,255,0.20), inset -4px -4px 8px rgba(255,255,255,0.75);
  --shadow-sm: 4px 4px 12px rgba(140,108,255,0.18), -3px -3px 10px rgba(255,255,255,0.7);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
button, a {
  touch-action: manipulation;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal-card { opacity: 1 !important; transform: none !important; }
}
.bg-fixed-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-color: var(--bg-app);
}
body {
  background-color: transparent;
  font-family: 'Quicksand', 'Nunito', sans-serif;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
  padding-top: calc(var(--nav-height) + 1.5rem);
  padding-bottom: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
.navbar {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  width: auto;
  height: var(--nav-height);
  background: var(--bg-raised);
  border: none;
  border-radius: var(--r-card);
  display: flex;
  align-items: center;
  padding: 0 1.2rem;
  z-index: 1000;
  box-shadow: var(--shadow-white);
}
.hamburger { width: 26px; height: 18px; position: relative; cursor: pointer; margin-right: 1.2rem; z-index: 1001; }
.hamburger span { display: block; position: absolute; left: 0; height: 3px; width: 100%; background: var(--text-strong); border-radius: 3px; opacity: 1; transition: transform .25s ease-in-out, opacity .25s ease-in-out; }
.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 7px; }
.hamburger span:nth-child(3) { top: 14px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(135deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-15px); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-135deg); }
.nav-title { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: 0; color: var(--text-strong); }
.nav-profile { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-profile a { display: flex; align-items: center; text-decoration: none; }
.nav-profile img { width: 35px; height: 35px; border-radius: 50%; border: none; box-shadow: 3px 3px 8px rgba(140,108,255,0.25), -2px -2px 6px rgba(255,255,255,0.7); object-fit: cover; }
.limit-badge {
  display: flex;
  align-items: center;
  background: var(--bg-app);
  border: none;
  border-radius: var(--r-chip);
  overflow: hidden;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-pressed);
}
.limit-tier {
  padding: 6px 12px;
  text-transform: uppercase;
  font-weight: 700;
}
.limit-count {
  padding: 6px 12px;
  color: var(--text-strong);
}
.tier-common { background: var(--status-archived); color: var(--text-strong); }
.tier-silver { background: var(--surface-sky); color: var(--text-strong); }
.tier-gold { background: var(--surface-lemon); color: var(--text-strong); }
.tier-platinum { background: var(--surface-mint); color: var(--text-strong); }
.tier-ultra { background: var(--action-primary); color: var(--action-on); }
.sidebar {
  position: fixed;
  top: 12px;
  left: 12px;
  width: 260px;
  height: calc(100vh - 24px);
  height: calc(100dvh - 24px);
  background: var(--bg-raised);
  border: none;
  border-radius: var(--r-card);
  transform: translateX(calc(-100% - 12px));
  transition: transform 0.3s ease;
  z-index: 999;
  box-shadow: var(--shadow-white);
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-height) + 10px);
  overflow: hidden;
}
.sidebar.active { transform: translateX(0); }
.sidebar-actions { padding: 1rem; background: var(--bg-app); }
.sidebar-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 0.8rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.nav-back {
  display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-strong); text-decoration: none; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 0.95rem; padding: 12px; border: none; background: var(--bg-raised); box-shadow: var(--shadow-lavender); transition: transform 0.15s ease, box-shadow 0.15s ease; border-radius: var(--r-button); width: 100%; cursor: pointer;
}
.nav-back:hover { transform: translateY(-2px); }
.nav-back:active { transform: scale(0.97); box-shadow: var(--shadow-pressed); }
.sidebar ul { list-style: none; }
.folder-btn { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: var(--bg-app); border: none; padding: 12px 14px; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 0.9rem; cursor: pointer; margin-bottom: 8px; border-radius: var(--r-button); color: var(--text-strong); text-decoration: none; box-shadow: var(--shadow-pressed); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.folder-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lavender); }
.folder-content { display: none; padding-left: 12px; margin-bottom: 8px; }
.folder-content.show { display: block; }
.folder-content a { display: flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--text-muted); text-decoration: none; font-family: 'Quicksand', sans-serif; font-weight: 600; font-size: 0.8rem; border-left: 2px solid rgba(140,108,255,0.25); margin-bottom: 2px; border-radius: 8px; transition: background 0.15s ease; }
.folder-content a:hover { background: var(--bg-app); }
.main-container { padding: 0; margin-bottom: 2rem; min-height: 70vh; }
.intro-section {
  background: var(--bg-raised);
  padding: 1.6rem;
  border: none;
  box-shadow: var(--shadow-white);
  border-radius: var(--r-card);
}
.banner-img { width: 100%; height: auto; max-height: 220px; object-fit: cover; border-radius: var(--r-card); border: none; box-shadow: var(--shadow-lavender); margin-bottom: 1.5rem; background-color: var(--bg-app); aspect-ratio: 1470/983; }
.intro-section h1 { font-family: 'Quicksand', sans-serif; font-size: 1.7rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text-strong); overflow-wrap: break-word; }
.intro-lead { font-size: 1rem; line-height: 1.5; margin-bottom: 1.5rem; color: var(--text-muted); overflow-wrap: break-word; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.base-url-box { background: var(--bg-app); border: none; border-radius: var(--r-input); padding: 0.9rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--shadow-pressed); }
.base-url-title { font-family: 'Quicksand', sans-serif; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.base-url-value { font-family: 'Quicksand', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--action-primary); word-break: break-all; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.doc-toc a { font-family: 'Quicksand', sans-serif; font-size: 0.75rem; font-weight: 700; text-decoration: none; color: var(--text-strong); background: var(--surface-sky); padding: 8px 15px; border-radius: var(--r-chip); box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.doc-toc a:nth-of-type(5n+2) { background: var(--surface-mint); }
.doc-toc a:nth-of-type(5n+3) { background: var(--surface-peach); }
.doc-toc a:nth-of-type(5n+4) { background: var(--surface-pink); }
.doc-toc a:nth-of-type(5n+5) { background: var(--surface-lemon); }
.doc-toc a:hover { transform: translateY(-2px); }
.doc-body { padding-top: 0.4rem; }
.doc-body p, .doc-body li { font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 0.7rem; overflow-wrap: break-word; word-break: break-word; }
.doc-body ol, .doc-body ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.doc-body strong { color: var(--text-strong); }
.doc-body a { color: var(--action-primary); font-weight: 700; }
.doc-body code { font-family: 'Quicksand', sans-serif; background: var(--bg-app); padding: 3px 8px; border-radius: 8px; font-size: 0.82rem; color: var(--text-strong); box-shadow: var(--shadow-pressed); }
.intro-section h2.section-heading {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.25rem;
  margin: 1.7rem 0 0.9rem;
  color: var(--text-strong);
  font-weight: 700;
  scroll-margin-top: calc(var(--nav-height) + 30px);
  overflow-wrap: break-word;
}
.intro-section h3.subsection-heading {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 1.1rem 0 0.6rem;
  color: var(--text-strong);
  scroll-margin-top: calc(var(--nav-height) + 30px);
  overflow-wrap: break-word;
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.2rem; }
.doc-table { width: 100%; border-collapse: collapse; background: var(--bg-app); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-pressed); font-size: 0.82rem; min-width: 480px; }
.doc-table th, .doc-table td { text-align: left; padding: 11px 15px; vertical-align: top; }
.doc-table thead th { font-family: 'Quicksand', sans-serif; text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.4px; color: var(--text-muted); font-weight: 700; }
.doc-table tbody tr:not(:last-child) td { border-bottom: 2px dashed rgba(140,108,255,0.18); }
.doc-table td { color: var(--text-muted); }
.doc-table code { font-family: 'Quicksand', sans-serif; background: var(--bg-raised); padding: 2px 7px; border-radius: 8px; font-size: 0.78rem; color: var(--text-strong); }
.doc-note { background: var(--surface-sky); border: none; border-radius: var(--r-card); padding: 1rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow-sky); font-size: 0.85rem; line-height: 1.55; color: var(--text-strong); overflow-wrap: break-word; }
.doc-note strong { color: var(--text-strong); }
.doc-note a { color: var(--text-strong); text-decoration: underline; }
.stats-grid { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }
.stats-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.stats-row-tiers .stat-card { flex: 1 1 110px; }
.stat-card { border: none; padding: 1.1rem; border-radius: var(--r-card); text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-value { font-family: 'Quicksand', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--text-strong); }
.stat-card .stat-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-strong); opacity: 0.7; margin-top: 4px; font-weight: 700; letter-spacing: 0.3px; }
.stat-card.tier-common { box-shadow: var(--shadow-lavender); }
.stat-card.tier-silver { box-shadow: var(--shadow-sky); }
.stat-card.tier-gold { box-shadow: var(--shadow-lemon); }
.stat-card.tier-platinum { box-shadow: var(--shadow-mint); }
.stat-card.tier-ultra { box-shadow: var(--shadow-coral); }
.stat-card.tier-ultra .stat-value, .stat-card.tier-ultra .stat-label { color: var(--action-on); opacity: 1; }
.faq-box { margin-top: 0.5rem; }
.faq-item { background: var(--bg-app); border: none; border-radius: var(--r-card); margin-bottom: 0.8rem; box-shadow: var(--shadow-pressed); overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: transparent; border: none; padding: 14px 17px; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 0.88rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--text-strong); }
.faq-answer { display: none; padding: 12px 17px 16px; font-size: 0.85rem; line-height: 1.55; color: var(--text-muted); }
.faq-answer.show { display: block; }
.faq-icon { transition: transform 0.2s ease; flex-shrink: 0; }
.faq-icon.rotated { transform: rotate(45deg); }
.code-tab-group { margin: 0.8rem 0 1.5rem; max-width: 100%; }
.code-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
  margin-bottom: 0.8rem;
}
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--bg-app);
  border: none;
  border-radius: var(--r-chip);
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-pressed);
  color: var(--text-strong);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.code-tab:hover { transform: translateY(-2px); }
.code-tab:active { transform: scale(0.96); }
.code-tab.active { background: var(--action-primary); color: var(--action-on); box-shadow: var(--shadow-coral); }
.code-panels .code-snippet { display: none; }
.code-panels .code-snippet.active { display: block; }
.code-snippet { background: var(--code-bg); border: none; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-white); max-width: 100%; }
.code-title { background: rgba(255,255,255,0.06); color: #fff; padding: 9px 15px; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.code-title-left { display: flex; align-items: center; gap: 6px; overflow-wrap: break-word; }
.code-snippet pre {
  padding: 16px;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--code-text);
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  max-width: 100%;
}
.code-snippet code,
.code-snippet pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  white-space: pre;
}
pre { margin: 0; font-family: 'Quicksand', sans-serif; font-size: 0.75rem; color: var(--code-text); line-height: 1.6; }
.category-box { margin-bottom: 2rem; }
.category-title { font-family: 'Quicksand', sans-serif; font-size: 1rem; font-weight: 700; text-transform: uppercase; background-color: var(--surface-lavender); color: var(--text-strong); display: inline-block; padding: 10px 20px; margin-bottom: 1.2rem; border-radius: var(--r-chip); border: none; box-shadow: var(--shadow-lavender); }
.endpoint-card { background: var(--bg-raised); padding: 1.6rem; margin-bottom: 1.5rem; border: none; box-shadow: var(--shadow-white); border-radius: var(--r-card); scroll-margin-top: calc(var(--nav-height) + 25px); }
.endpoint-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  word-wrap: break-word;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-strong);
}
.premium-badge {
  display: inline-flex;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--surface-lemon), var(--action-primary));
  color: var(--text-strong);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 11px;
  border: none;
  border-radius: var(--r-chip);
  box-shadow: var(--shadow-sm);
}
.premium-badge-sm {
  display: inline-block;
  background: linear-gradient(135deg, var(--surface-lemon), var(--action-primary));
  color: var(--text-strong);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 3px 8px;
  border: none;
  border-radius: var(--r-chip);
  margin-left: 4px;
  vertical-align: middle;
}
.endpoint-url-row { display: flex; align-items: stretch; gap: 8px; margin-bottom: 1.2rem; }
.endpoint-url { background: var(--bg-app); padding: 12px; font-family: 'Quicksand', sans-serif; font-weight: 700; border: none; display: block; border-radius: var(--r-input); font-size: 0.85rem; word-break: break-all; flex: 1; margin-bottom: 0; box-shadow: var(--shadow-pressed); color: var(--text-strong); }
.copy-endpoint-btn { flex-shrink: 0; background: var(--surface-sky); color: var(--text-strong); border: none; border-radius: var(--r-input); padding: 0 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 0.65rem; box-shadow: var(--shadow-sky); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.copy-endpoint-btn:hover { transform: translateY(-2px); }
.copy-endpoint-btn.copied { background: var(--surface-mint); box-shadow: var(--shadow-mint); }
.method-badge { background: var(--surface-mint); color: var(--text-strong); padding: 4px 9px; border-radius: 8px; margin-right: 6px; border: none; font-weight: 700; display: inline-block; margin-bottom: 4px; font-size: 0.72rem; }
label { font-weight: 700; display: block; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--text-strong); }
.req-badge { color: var(--action-primary); font-size: 0.75rem; vertical-align: top; margin-left: 4px; font-weight: 700; }
.input-group { margin-bottom: 1.2rem; }
input[type="text"] {
  width: 100%;
  padding: 13px 15px;
  font-size: 16px;
  border: none;
  background: var(--bg-app);
  color: var(--text-strong);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  border-radius: var(--r-input);
  outline: none;
  box-shadow: var(--shadow-pressed);
  transition: box-shadow 0.15s ease;
}
input[type="text"]:focus { box-shadow: var(--shadow-pressed), 0 0 0 3px rgba(184,166,255,0.4); }
button.exec-btn { display: block; width: 100%; padding: 14px; background: var(--action-primary); color: var(--action-on); font-family: 'Quicksand', sans-serif; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; border: none; box-shadow: var(--shadow-coral); cursor: pointer; border-radius: var(--r-button); transition: transform 0.15s ease, box-shadow 0.15s ease; }
button.exec-btn:hover:not(:disabled) { transform: translateY(-2px); }
button.exec-btn:active:not(:disabled) { transform: scale(0.97); box-shadow: var(--shadow-pressed); }
button.exec-btn:disabled { background: #D9D3EE; color: #8A82A8; box-shadow: var(--shadow-pressed); cursor: not-allowed; }
.terminal { background-color: var(--code-bg); border: none; border-radius: var(--r-card); margin-top: 1.5rem; display: none; overflow: hidden; box-shadow: var(--shadow-white); }
.terminal-header { background-color: rgba(255,255,255,0.06); padding: 9px 13px; display: flex; justify-content: space-between; align-items: center; }
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }
.terminal-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-btn, .dl-btn, .close-btn { background: rgba(255,255,255,0.08); color: #fff; border: none; border-radius: var(--r-chip); padding: 5px 12px; font-size: 0.75rem; font-family: 'Quicksand', sans-serif; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: background 0.15s ease; }
.copy-btn:hover { background: var(--surface-sky); color: var(--text-strong); }
.dl-btn:hover { background: var(--surface-mint); color: var(--text-strong); }
.close-btn:hover { background: var(--action-primary); color: var(--action-on); }
.copy-btn.copied { background: var(--surface-mint); color: var(--text-strong); }
.terminal-body {
  padding: 15px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 300px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.loading-text { text-align: center; font-family: 'Quicksand', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-strong); margin-top: 2rem; background: var(--bg-raised); padding: 12px 24px; border: none; box-shadow: var(--shadow-white); border-radius: var(--r-chip); display: inline-block; }
.loading-container { text-align: center; }
#endpoints-view { display: none; }
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(46, 42, 63, 0.45);
  display: none; justify-content: center; align-items: center; z-index: 2000;
}
.modal-box {
  background: var(--bg-raised); border: none;
  box-shadow: var(--shadow-white); border-radius: var(--r-card);
  padding: 2rem 1.6rem; width: 90%; max-width: 420px; position: relative;
  text-align: center;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; background: var(--surface-peach);
  border: none; color: var(--text-strong); border-radius: var(--r-input);
  cursor: pointer; padding: 7px; display: flex; box-shadow: var(--shadow-peach); transition: transform 0.15s ease;
}
.modal-close:hover { transform: translateY(-2px); }
.modal-banner {
  width: 100%; height: auto; max-height: 140px; object-fit: cover; border-radius: var(--r-input);
  border: none; box-shadow: var(--shadow-lavender);
  margin-bottom: 1.2rem; background-color: var(--bg-app); aspect-ratio: 400/140;
}
.modal-box .modal-title { font-family: 'Quicksand', sans-serif; margin-bottom: 15px; font-size: 1.3rem; font-weight: 700; color: var(--text-strong); }
.modal-box p { font-size: 1rem; line-height: 1.5; color: var(--text-muted); margin-bottom: 20px; }
.modal-box a {
  display: inline-block; padding: 12px 24px; background: var(--action-primary);
  color: var(--action-on); font-family: 'Quicksand', sans-serif; font-weight: 700;
  text-decoration: none; border: none;
  box-shadow: var(--shadow-coral); border-radius: var(--r-button); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.modal-box a:hover { transform: translateY(-2px); }
.modal-box a:active { transform: scale(0.97); box-shadow: var(--shadow-pressed); }
.site-footer {
  margin-top: 2.4rem;
  padding: 24px 12px;
  background: transparent;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 24px;
}
.footer-brand-name {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-strong);
}
.footer-brand-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.15s ease;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.footer-links a:hover {
  background: transparent;
  color: var(--action-primary);
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
@media (min-width: 769px) {
  body { padding: calc(var(--nav-height) + 2rem) 2rem 3rem; font-size: 15.5px; }
  .navbar { left: 20px; right: 20px; }
  .sidebar { transform: translateX(0); width: 280px; left: 20px; }
  .hamburger { display: none; }
  .main-container { margin-left: 300px; padding: 0 1.5rem; }
  .intro-section { padding: 2.2rem; border-radius: 32px; }
  .banner-img { max-height: 280px; margin-bottom: 2rem; }
  .intro-section h1 { font-size: 2.1rem; }
  .code-tab { font-size: 0.85rem; padding: 10px 18px; }
  .doc-table { font-size: 0.88rem; }
  .endpoint-card { padding: 2.2rem; border-radius: 32px; margin-bottom: 2rem; }
  .endpoint-card h3 { font-size: 1.3rem; }
  .endpoint-url { display: block; font-size: 0.95rem; }
  input[type="text"] { font-size: 0.95rem; }
  pre { font-size: 0.85rem; }
  button.exec-btn { padding: 15px; font-size: 1rem; }
  .terminal-body { max-height: 400px; }
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-card {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}