/* ============================================================
   Ramfangzauva API Docs — Professional Developer Documentation
   Pure CSS (no Tailwind dependency), dark slate theme
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 15px;
}

body {
    background: #0a0a0c;
    color: #a1a1aa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.65;
    min-height: 100vh;
}

a { color: #34d399; text-decoration: none; transition: color .15s; }
a:hover { color: #6ee7b7; }

/* --- Zero Focus Rings --- */
*:focus { outline: none !important; box-shadow: none !important; }
*:focus-visible { outline: none !important; box-shadow: none !important; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(113,113,122,.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(113,113,122,.45); }

::selection { background: rgba(52,211,153,.25); color: #fff; }

/* --- Layout Shell --- */
.layout { display: flex; min-height: 100vh; }

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    background: #0d0d10;
    border-right: 1px solid rgba(39,39,42,.5);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform .25s ease;
}

.sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(39,39,42,.5);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    letter-spacing: -.02em;
}

.sidebar-logo-badge {
    font-size: 10px;
    font-weight: 600;
    color: #71717a;
    margin-left: 4px;
}

.sidebar-version {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.15);
    font-size: 11px;
    font-weight: 600;
    color: #34d399;
}

.sidebar-version-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.sidebar-section-label {
    padding: 12px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #52525b;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #71717a;
    transition: all .15s;
    cursor: pointer;
    border-left: 2px solid transparent;
}

.sidebar-link:hover {
    color: #d4d4d8;
    background: rgba(255,255,255,.03);
}

.sidebar-link.active {
    color: #34d399;
    background: rgba(16,185,129,.06);
    border-left-color: #10b981;
}

.sidebar-link svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .6; }
.sidebar-link.active svg { opacity: 1; }

.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(39,39,42,.5);
    font-size: 11px;
    color: #52525b;
}

.sidebar-footer a { color: #34d399; font-weight: 600; }

/* --- Main Content --- */
.main {
    margin-left: 260px;
    flex: 1;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 52px;
    background: rgba(10,10,12,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(39,39,42,.4);
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(24,24,27,.7);
    border: 1px solid rgba(39,39,42,.6);
    width: 320px;
    transition: border-color .15s;
}

.topbar-search:focus-within { border-color: rgba(16,185,129,.4); }

.topbar-search svg { width: 14px; height: 14px; color: #52525b; flex-shrink: 0; }

.topbar-search input {
    flex: 1;
    background: none;
    border: none;
    color: #d4d4d8;
    font-size: 13px;
    font-family: inherit;
}

.topbar-search input::placeholder { color: #52525b; }

.topbar-search kbd {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(39,39,42,.8);
    color: #71717a;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(63,63,70,.5);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-link {
    font-size: 12px;
    font-weight: 500;
    color: #71717a;
    transition: color .15s;
}

.topbar-link:hover { color: #d4d4d8; }

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(16,185,129,.1);
    color: #34d399;
    border: 1px solid rgba(16,185,129,.15);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-btn svg { width: 20px; height: 20px; }

/* --- Content Area --- */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 32px 80px;
}

/* --- Section --- */
.section { margin-bottom: 56px; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.section-label.green { background: rgba(16,185,129,.1); color: #34d399; }
.section-label.blue { background: rgba(59,130,246,.1); color: #60a5fa; }
.section-label.purple { background: rgba(168,85,247,.1); color: #c084fc; }
.section-label.orange { background: rgba(249,115,22,.1); color: #fb923c; }
.section-label.cyan { background: rgba(6,182,212,.1); color: #22d3ee; }
.section-label.red { background: rgba(239,68,68,.1); color: #f87171; }

h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

h1 .gradient {
    background: linear-gradient(90deg, #34d399, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 6px;
}

p.lead {
    font-size: 1.05rem;
    color: #71717a;
    max-width: 600px;
    line-height: 1.7;
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.stat-card {
    padding: 16px;
    border-radius: 12px;
    background: rgba(24,24,27,.5);
    border: 1px solid rgba(39,39,42,.5);
}

.stat-card .value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}

.stat-card .value.green { color: #34d399; }

.stat-card .label {
    font-size: 11px;
    font-weight: 600;
    color: #52525b;
    margin-top: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    border: none;
    font-family: inherit;
}

.btn svg { width: 15px; height: 15px; }

.btn-primary {
    background: #10b981;
    color: #000;
    box-shadow: 0 8px 24px rgba(16,185,129,.2);
}

.btn-primary:hover { background: #34d399; box-shadow: 0 8px 28px rgba(16,185,129,.3); }

.btn-secondary {
    background: rgba(39,39,42,.6);
    color: #d4d4d8;
    border: 1px solid rgba(63,63,70,.5);
}

.btn-secondary:hover { background: rgba(63,63,70,.5); color: #fff; }

.btn-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* --- Code Blocks --- */
.code-block {
    position: relative;
    border-radius: 10px;
    background: #0d0d10;
    border: 1px solid rgba(39,39,42,.6);
    overflow: hidden;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(24,24,27,.5);
    border-bottom: 1px solid rgba(39,39,42,.4);
    font-size: 11px;
    font-weight: 600;
    color: #52525b;
}

.code-block pre {
    padding: 16px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12.5px;
    line-height: 1.7;
    color: #a1a1aa;
}

.code-block code { font-family: inherit; }

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(39,39,42,.6);
    border: 1px solid rgba(63,63,70,.4);
    color: #71717a;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

.copy-btn:hover { background: rgba(63,63,70,.5); color: #d4d4d8; }
.copy-btn svg { width: 12px; height: 12px; }

/* Syntax colors */
.syn-key { color: #22d3ee; }
.syn-str { color: #34d399; }
.syn-num { color: #fbbf24; }
.syn-comment { color: #3f3f46; }
.syn-method { color: #c084fc; }
.syn-header { color: #fbbf24; }
.syn-url { color: #60a5fa; }

/* --- Inline Code --- */
code.inline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(39,39,42,.6);
    color: #e879f9;
    border: 1px solid rgba(63,63,70,.3);
}

/* --- Auth Cards --- */
.auth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.auth-card {
    padding: 18px;
    border-radius: 12px;
    background: rgba(24,24,27,.5);
    border: 1px solid rgba(39,39,42,.5);
    transition: border-color .2s;
}

.auth-card:hover { border-color: rgba(16,185,129,.25); }

.auth-card-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
}

.auth-card-badge.green { background: rgba(16,185,129,.1); color: #34d399; }
.auth-card-badge.cyan { background: rgba(6,182,212,.1); color: #22d3ee; }
.auth-card-badge.amber { background: rgba(245,158,11,.1); color: #fbbf24; }

.auth-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 8px;
}

.auth-card .code-snippet {
    padding: 8px 10px;
    border-radius: 6px;
    background: #0a0a0c;
    border: 1px solid rgba(39,39,42,.6);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #a1a1aa;
    word-break: break-all;
}

.auth-note {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(245,158,11,.04);
    border: 1px solid rgba(245,158,11,.15);
    font-size: 12.5px;
    color: rgba(252,211,77,.75);
    line-height: 1.6;
}

.auth-note strong { color: #fbbf24; }

/* --- Endpoint Cards --- */
.endpoint-category { margin-bottom: 32px; }

.endpoint-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.endpoint-category-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.endpoint-category-icon svg { width: 15px; height: 15px; }

.endpoint-category-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #e4e4e7;
    margin: 0;
}

.endpoint-list { display: flex; flex-direction: column; gap: 8px; }

.endpoint-card {
    border-radius: 12px;
    background: rgba(24,24,27,.45);
    border: 1px solid rgba(39,39,42,.5);
    overflow: hidden;
    transition: border-color .2s;
}

.endpoint-card:hover { border-color: rgba(63,63,70,.7); }

.endpoint-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    transition: background .15s;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    color: inherit;
}

.endpoint-card-header:hover { background: rgba(255,255,255,.02); }

.endpoint-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.method-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .03em;
    flex-shrink: 0;
}

.method-badge.POST { background: rgba(16,185,129,.1); color: #34d399; }
.method-badge.GET { background: rgba(59,130,246,.1); color: #60a5fa; }

.endpoint-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    font-weight: 600;
    color: #e4e4e7;
}

.endpoint-title {
    font-size: 12.5px;
    color: #52525b;
    font-weight: 500;
}

.endpoint-chevron {
    width: 16px; height: 16px;
    color: #52525b;
    transition: transform .2s;
    flex-shrink: 0;
}

.endpoint-chevron.open { transform: rotate(180deg); }

.endpoint-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.endpoint-details-inner {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(39,39,42,.4);
}

.endpoint-desc {
    font-size: 13px;
    color: #71717a;
    margin: 14px 0;
    line-height: 1.65;
}

.endpoint-credit {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(16,185,129,.08);
    color: #34d399;
    margin-bottom: 14px;
}

/* --- Params Table --- */
.params-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #52525b;
    margin-bottom: 8px;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.params-table th {
    text-align: left;
    padding: 6px 12px 6px 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #52525b;
    border-bottom: 1px solid rgba(39,39,42,.4);
}

.params-table td {
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid rgba(39,39,42,.25);
    vertical-align: top;
}

.params-table .param-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
}

.params-table .param-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #71717a;
}

.params-table .param-req {
    font-size: 11px;
    font-weight: 600;
}

.params-table .param-req.yes { color: #fbbf24; }
.params-table .param-req.no { color: #3f3f46; }

.params-table .param-desc { color: #a1a1aa; font-size: 12px; }

/* --- Playground --- */
.playground-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.pg-panel {
    border-radius: 14px;
    background: rgba(24,24,27,.45);
    border: 1px solid rgba(39,39,42,.5);
    overflow: hidden;
}

.pg-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(39,39,42,.4);
    font-size: 13px;
    font-weight: 600;
    color: #e4e4e7;
}

.pg-panel-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-panel-body { padding: 18px; }

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

.pg-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #52525b;
    margin-bottom: 6px;
}

.pg-input,
.pg-select,
.pg-textarea {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    background: #0a0a0c;
    border: 1px solid rgba(39,39,42,.7);
    color: #d4d4d8;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    transition: border-color .15s;
}

.pg-input:focus,
.pg-select:focus,
.pg-textarea:focus {
    border-color: rgba(16,185,129,.4);
}

.pg-input::placeholder,
.pg-textarea::placeholder { color: #3f3f46; }

.pg-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2371717a' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
}

.pg-textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
}

.pg-send-btn {
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    background: #10b981;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all .15s;
    box-shadow: 0 8px 24px rgba(16,185,129,.2);
}

.pg-send-btn:hover { background: #34d399; box-shadow: 0 8px 28px rgba(16,185,129,.3); }

.pg-send-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.pg-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.pg-status.ok { background: rgba(16,185,129,.1); color: #34d399; }
.pg-status.err { background: rgba(239,68,68,.1); color: #f87171; }

.pg-time {
    font-size: 11px;
    color: #52525b;
    font-family: 'JetBrains Mono', monospace;
}

.pg-response {
    padding: 16px;
    background: #0a0a0c;
    border: 1px solid rgba(39,39,42,.6);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.65;
    color: #a1a1aa;
    max-height: 480px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.pg-response .placeholder { color: #3f3f46; }

/* --- Pricing Grid --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.pricing-card {
    padding: 22px;
    border-radius: 14px;
    background: rgba(24,24,27,.45);
    border: 1px solid rgba(39,39,42,.5);
    position: relative;
}

.pricing-card.popular {
    background: rgba(16,185,129,.04);
    border-color: rgba(16,185,129,.25);
}

.pricing-popular-badge {
    position: absolute;
    top: -10px;
    left: 18px;
    padding: 3px 10px;
    border-radius: 5px;
    background: #10b981;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pricing-tier {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #52525b;
    margin-bottom: 6px;
}

.pricing-tier.green { color: #34d399; }

.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}

.pricing-price .period {
    font-size: 14px;
    font-weight: 500;
    color: #52525b;
}

.pricing-credits {
    font-size: 12px;
    color: #52525b;
    margin-bottom: 16px;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #a1a1aa;
}

.pricing-features .check { color: #34d399; font-weight: 700; }
.pricing-features .cross { color: #3f3f46; }

/* --- Footer --- */
.footer {
    padding: 28px 32px;
    border-top: 1px solid rgba(39,39,42,.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
}

.footer-text { font-size: 12px; color: #52525b; }

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    font-size: 12px;
    color: #52525b;
    transition: color .15s;
}

.footer-links a:hover { color: #d4d4d8; }

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(16,185,129,.95);
    color: #000;
    font-size: 12px;
    font-weight: 600;
    z-index: 9999;
    animation: fadeIn .2s ease-out;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn .3s ease-out; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .mobile-menu-btn { display: block; }
    .playground-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .content { padding: 24px 16px 60px; }
    h1 { font-size: 1.7rem; }
    .topbar-search { width: 180px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* --- Sidebar overlay for mobile --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
}

.sidebar-overlay.active { display: block; }

/* --- Print --- */
@media print {
    .sidebar, .topbar, .footer, #playground-section { display: none !important; }
    .main { margin-left: 0; }
    body { background: #fff; color: #000; }
    .endpoint-details { max-height: none !important; overflow: visible !important; }
}