/* ═══════════════════════════════════════════════════════════
   DevMock API — style.css
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables / Theme ── */
:root {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Dark theme (default) */
  --bg-base:        #0d0f14;
  --bg-surface:     #131720;
  --bg-card:        #181e2a;
  --bg-card-hover:  #1e2535;
  --bg-input:       #1c2333;
  --bg-code:        #0f1219;
  --border:         rgba(255,255,255,0.07);
  --border-active:  rgba(99,179,237,0.5);

  --text-primary:   #e8eaf0;
  --text-secondary: #8b93a8;
  --text-muted:     #505768;
  --text-code:      #cdd6f4;

  --accent:         #63b3ed;
  --accent-2:       #9f7aea;
  --accent-3:       #68d391;
  --accent-glow:    rgba(99,179,237,0.15);

  --method-get:     #68d391;
  --method-post:    #63b3ed;
  --method-put:     #f6ad55;
  --method-patch:   #b794f4;
  --method-delete:  #fc8181;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.6);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
  --bg-base:        #f4f6fb;
  --bg-surface:     #edf0f7;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f0f4ff;
  --bg-input:       #ffffff;
  --bg-code:        #f0f2f8;
  --border:         rgba(0,0,0,0.08);
  --border-active:  rgba(66,133,244,0.5);

  --text-primary:   #1a1e2e;
  --text-secondary: #4a5275;
  --text-muted:     #9aa3bf;
  --text-code:      #2d3748;

  --accent:         #3b82f6;
  --accent-2:       #7c3aed;
  --accent-3:       #10b981;
  --accent-glow:    rgba(59,130,246,0.1);

  --method-get:     #059669;
  --method-post:    #2563eb;
  --method-put:     #d97706;
  --method-patch:   #7c3aed;
  --method-delete:  #dc2626;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.15);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Container ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(99,179,237,0.3);
}
.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 28px rgba(99,179,237,0.45);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,15,20,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
[data-theme="light"] .navbar {
  background: rgba(244,246,251,0.88);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-icon { font-size: 1.4rem; color: var(--accent); }
.logo-accent { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-github {
  display: flex;
  align-items: center;
  padding: 7px !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.nav-github:hover { border-color: var(--border-active); }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--border-active); color: var(--text-primary); }
.theme-icon { display: none; }
[data-theme="dark"] .moon { display: block; }
[data-theme="light"] .sun { display: block; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: all var(--transition); }
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.nav-mobile a { padding: 10px 0; font-size: 0.9rem; color: var(--text-secondary); }
.nav-mobile.open { display: flex; }

@media (max-width: 680px) {
  .nav-inner { gap: 16px; padding: 0 16px; }
  .nav-links { display: none; }
  .theme-toggle { margin-left: auto; }
  .hamburger { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,179,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.25;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #63b3ed, transparent 70%);
  top: -100px; right: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #9f7aea, transparent 70%);
  bottom: 0; left: -80px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent-3);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Hero code preview */
.hero-code-preview { width: 100%; max-width: 580px; }
.code-window {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.red { background: #fc8181; }
.yellow { background: #f6ad55; }
.green { background: #68d391; }
.code-window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}
.code-window-body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.code-line { display: flex; flex-wrap: wrap; gap: 6px; }
.animated-output { min-height: 24px; }

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Code colors */
.c-dim    { color: var(--text-muted); }
.c-green  { color: var(--method-get); }
.c-yellow { color: var(--method-put); }
.c-str    { color: #f6ad55; }
.c-keyword { color: var(--accent-2); }
.c-num    { color: #68d391; }

/* ── Section headers ── */
.section-header { text-align: center; margin-bottom: 42px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-sub {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ── Search ── */
.search-section {
  padding: 80px 0 32px;
}
.search-bar-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-muted);
  pointer-events: none;
}
.search-bar {
  width: 100%;
  padding: 14px 110px 14px 46px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-bar::placeholder { color: var(--text-muted); }
.search-hint {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-base);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── Resources ── */
.resources-section { padding: 0 0 80px; }

/* Resource section grouping */
.resource-group {
  margin-bottom: 48px;
  animation: fadeInUp 0.4s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.resource-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.resource-name {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}
.resource-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.resource-badge.get    { background: rgba(104,211,145,0.12); color: var(--method-get); }
.resource-badge.post   { background: rgba(99,179,237,0.12);  color: var(--method-post); }
.resource-badge.put    { background: rgba(246,173,85,0.12);   color: var(--method-put); }
.resource-badge.patch  { background: rgba(183,148,244,0.12);  color: var(--method-patch); }
.resource-badge.delete { background: rgba(252,129,129,0.12);  color: var(--method-delete); }

/* Endpoint cards */
.endpoints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.endpoint-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.endpoint-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.endpoint-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.method-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.method-badge.GET    { background: rgba(104,211,145,0.15); color: var(--method-get); }
.method-badge.POST   { background: rgba(99,179,237,0.15);  color: var(--method-post); }
.method-badge.PUT    { background: rgba(246,173,85,0.15);   color: var(--method-put); }
.method-badge.PATCH  { background: rgba(183,148,244,0.15);  color: var(--method-patch); }
.method-badge.DELETE { background: rgba(252,129,129,0.15);  color: var(--method-delete); }

.endpoint-path {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
  word-break: break-all;
}
.endpoint-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.endpoint-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.try-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
}
.try-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.try-btn.loading { opacity: 0.7; pointer-events: none; }
.try-btn .spinner {
  width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.copy-url-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
}
.copy-url-btn:hover { border-color: var(--border-active); color: var(--text-primary); }
.copy-url-btn.copied { border-color: var(--method-get); color: var(--method-get); }

/* ── Playground ── */
.playground-section { padding: 80px 0; background: var(--bg-surface); }
.playground-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.playground-top {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.playground-method-wrap { display: flex; }
.pg-select {
  padding: 14px 18px;
  background: var(--bg-input);
  border: none;
  border-right: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  min-width: 100px;
}
.pg-url-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-input);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
}
.pg-url-input::placeholder { color: var(--text-muted); }
.pg-send {
  border-radius: 0;
  padding: 14px 28px;
  font-size: 0.9rem;
}
.playground-body-wrap { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.pg-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.pg-body {
  width: 100%;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-code);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 12px;
  resize: vertical;
  outline: none;
  line-height: 1.6;
  transition: border-color var(--transition);
}
.pg-body:focus { border-color: var(--border-active); }
.playground-response { padding: 20px; }
.pg-response-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pg-meta { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.pg-status { font-size: 0.78rem; font-family: var(--font-mono); font-weight: 600; padding: 3px 9px; border-radius: 4px; }
.pg-status.ok { background: rgba(104,211,145,0.12); color: var(--method-get); }
.pg-status.err { background: rgba(252,129,129,0.12); color: var(--method-delete); }
.pg-time { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }
.pg-viewer {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}
.pg-placeholder { color: var(--text-muted); font-style: italic; }

/* ── JSON Viewer ── */
.json-viewer {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-code);
}
.jv-key      { color: var(--accent); }
.jv-string   { color: #f6ad55; }
.jv-number   { color: #68d391; }
.jv-boolean  { color: var(--accent-2); }
.jv-null     { color: var(--text-muted); }
.jv-bracket  { color: var(--text-secondary); }
.jv-toggle {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.jv-toggle::before {
  content: '▾';
  font-size: 0.65rem;
  transition: transform var(--transition);
  display: inline-block;
  width: 12px;
}
.jv-toggle.collapsed::before { transform: rotate(-90deg); }
.jv-children { padding-left: 20px; }
.jv-children.hidden { display: none; }
.jv-ellipsis { color: var(--text-muted); }
.jv-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 1px 6px;
  background: var(--bg-card);
  border-radius: 3px;
  margin-left: 4px;
}

/* ── Copy Button ── */
.copy-btn {
  padding: 6px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition);
}
.copy-btn:hover { border-color: var(--border-active); color: var(--text-primary); }
.copy-btn.copied { border-color: var(--method-get); color: var(--method-get); }

/* ── Docs ── */
.docs-section { padding: 80px 0; }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}
.doc-card:hover { background: var(--bg-card-hover); border-color: var(--border-active); }
.doc-card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.doc-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.doc-card-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--bg-code);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  word-break: break-all;
}
.resource-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.resource-list span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Code tabs */
.code-tabs-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.code-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  overflow-x: auto;
}
.code-tab {
  padding: 12px 20px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.code-tab:hover { color: var(--text-secondary); }
.code-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.code-tabs-body { background: var(--bg-code); }
.code-example { display: none; }
.code-example.active { display: block; }
.code-example pre {
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.8;
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 740px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.modal-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.modal-method-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  flex-shrink: 0;
}
.modal-url {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.modal-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(104,211,145,0.12);
  color: var(--method-get);
}
.modal-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.modal-close:hover { border-color: var(--method-delete); color: var(--method-delete); }
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
}

/* ── Footer ── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; }
.footer-note { font-size: 0.83rem; color: var(--text-secondary); max-width: 440px; }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* ── No results ── */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.no-results-icon { font-size: 2.5rem; margin-bottom: 12px; }
.no-results-title { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 90px 0 48px; }
  .hero-stats { gap: 20px; padding: 16px 24px; }
  .endpoints-grid { grid-template-columns: 1fr; }
  .playground-top { flex-direction: column; }
  .pg-select { border-right: none; border-bottom: 1px solid var(--border); }
  .pg-send { border-radius: 0; }
  .modal-header { flex-direction: column; align-items: flex-start; }
  .modal-actions { margin-left: 0; }
  .docs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .docs-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 60px; height: 1px; }
}
