* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --orange: #F7941D;
    --orange-light: #FFF3E0;
    --orange-dark: #E07A0A;
    --green: #3DBD7D;
    --green-light: #E8F8F0;
    --dark: #0F1117;
    --card: #1A1D2E;
    --card2: #232740;
    --text: #E8E9F0;
    --muted: #8B8FA8;
    --border: #2A2D42;
    --white: #FFFFFF;
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

a {
    color: var(--orange);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

code,
pre {
    font-family: 'JetBrains Mono', monospace
}

/* TOP NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 60px
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap
}

.logo-badge {
    background: var(--green);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em
}

.nav-tabs {
    display: flex;
    gap: 0;
    margin-left: auto
}

.nav-tab {
    padding: 0 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    cursor: pointer
}

.nav-tab.active,
.nav-tab:hover {
    color: var(--green);
    border-bottom-color: var(--green)
}

.nav-badge {
    background: var(--orange);
    color: #fff;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    margin-left: 6px
}

.version-pill {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--muted);
    margin-left: 1rem
}

/* LAYOUT */
.layout {
    display: flex;
    flex: 1;
    min-height: 0
}

.sidebar {
    width: 260px;
    min-width: 260px;
    background: rgba(26, 29, 46, 0.6);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    overflow-y: auto;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px)
}

.main {
    flex: 1;
    overflow-y: auto
}

/* SIDEBAR */
.sidebar-section {
    margin-bottom: 1.5rem
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    transition: 0.15s;
    border-left: 2px solid transparent;
    cursor: pointer
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--text);
    background: rgba(247, 148, 29, 0.08);
    border-left-color: var(--green)
}

.sidebar-link.active {
    color: var(--green)
}

.method-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    min-width: 36px;
    text-align: center
}

.badge-post {
    background: rgba(61, 189, 125, 0.2);
    color: #3DBD7D
}

.badge-get {
    background: rgba(52, 152, 219, 0.2);
    color: #52A8EC
}

.badge-put {
    background: rgba(247, 148, 29, 0.2);
    color: var(--orange)
}

.badge-del {
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C
}

/* CONTENT */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem
}

.hero {
    background: linear-gradient(135deg, rgba(247, 148, 29, .1) 0%, rgba(61, 189, 125, .05) 100%);
    border: 1px solid rgba(247, 148, 29, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden
}

.hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(247, 148, 29, .15), transparent 70%);
    pointer-events: none
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2
}

.hero h1 span {
    color: var(--green)
}

.hero p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 1.5rem
}

.hero-stats {
    display: flex;
    gap: 2rem
}

.hero-stat {
    text-align: center
}

.hero-stat .num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green)
}

.hero-stat .lbl {
    font-size: 0.75rem;
    color: var(--muted)
}

.base-url {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--green);
    margin-top: 1rem
}

/* SECTIONS */
h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem
}

h2::before {
    content: '';
    width: 3px;
    height: 1.4rem;
    background: var(--green);
    border-radius: 2px;
    flex-shrink: 0
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em
}

.section {
    margin-bottom: 3rem
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0
}

/* ENDPOINT CARD */
.endpoint {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: 0.15s
}

.endpoint-header:hover {
    background: rgba(255, 255, 255, 0.03)
}

.method {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 52px;
    text-align: center
}

.m-post {
    background: rgba(61, 189, 125, 0.15);
    color: #3DBD7D;
    border: 1px solid rgba(61, 189, 125, 0.3)
}

.m-get {
    background: rgba(52, 168, 235, 0.15);
    color: #52A8EC;
    border: 1px solid rgba(52, 168, 235, 0.3)
}

.endpoint-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    flex: 1
}

.endpoint-desc {
    font-size: 0.8rem;
    color: var(--muted)
}

.endpoint-body {
    padding: 1.25rem
}

.endpoint-body p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem
}

/* CODE BLOCK */
.code-block {
    background: #0A0C14;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1rem 0
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border)
}

.code-lang {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500
}

.code-copy {
    font-size: 0.75rem;
    color: var(--green);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif
}

.code-copy:hover {
    text-decoration: underline
}

pre {
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.7
}

.kw {
    color: #C792EA
}

.str {
    color: #C3E88D
}

.num {
    color: #F78C6C
}

.fn {
    color: #82AAFF
}

.cm {
    color: #546E7A;
    font-style: italic
}

.key {
    color: #89DDF7
}

.op {
    color: #89DDF7
}

.pr {
    color: var(--green)
}

/* PARAMS TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 0.75rem 0
}

thead tr {
    background: rgba(255, 255, 255, 0.04)
}

th {
    text-align: left;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border)
}

td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(42, 45, 66, 0.6);
    vertical-align: top
}

td:first-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--green)
}

.required {
    color: var(--orange);
    font-size: 0.7rem;
    font-weight: 600
}

.optional {
    color: var(--muted);
    font-size: 0.7rem
}

.type-pill {
    display: inline-block;
    background: rgba(52, 168, 235, 0.1);
    color: #52A8EC;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace
}

/* RESPONSE */
.response-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem
}

.res-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.15s
}

.res-tab.active {
    color: var(--green);
    border-bottom-color: var(--green)
}

.status-200 {
    color: #3DBD7D;
    font-weight: 600
}

.status-400 {
    color: var(--orange);
    font-weight: 600
}

.status-401 {
    color: #E74C3C;
    font-weight: 600
}

/* CALLOUT */
.callout {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 0.88rem;
    line-height: 1.6
}

.callout-info {
    background: rgba(52, 168, 235, 0.1);
    border-left: 3px solid #52A8EC
}

.callout-warn {
    background: rgba(247, 148, 29, 0.1);
    border-left: 3px solid var(--orange)
}

.callout-success {
    background: rgba(61, 189, 125, 0.1);
    border-left: 3px solid var(--green)
}

.callout-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem
}

/* FLOW DIAGRAM */
.flow {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 1.5rem 0;
    overflow-x: auto;
    padding-bottom: 0.5rem
}

.flow-step {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 110px;
    flex-shrink: 0
}

.flow-step .icon {
    font-size: 1.2rem;
    margin-bottom: 0.4rem
}

.flow-step .lbl {
    font-size: 0.75rem;
    color: var(--muted)
}

.flow-step .title {
    font-size: 0.82rem;
    font-weight: 600
}

.flow-arrow {
    color: var(--orange);
    font-size: 1.2rem;
    padding: 0 0.5rem;
    flex-shrink: 0
}

.flow-step.highlight {
    border-color: var(--orange);
    background: rgba(247, 148, 29, 0.08)
}

.flow-step.highlight .title {
    color: var(--orange)
}

/* AUTH */
.auth-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0
}

.auth-card {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem
}

.auth-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem
}

.auth-title {
    font-weight: 600;
    margin-bottom: 0.4rem
}

.auth-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5
}

/* SDK PILLS */
.sdk-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap
}

.sdk-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    transition: 0.15s
}

.sdk-pill:hover {
    border-color: var(--orange);
    color: var(--orange)
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px
}

/* ENV SWITCH */
.env-switch {
    display: inline-flex;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
    gap: 2px
}

.env-btn {
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.15s;
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'Inter', sans-serif
}

.env-btn.active {
    background: var(--orange);
    color: #fff;
    font-weight: 600
}

/* ============================================
			   API TESTER — Interactive playground
			   ============================================ */
.api-tester {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border)
}

.api-tester-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem
}

.api-tester-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px
}

.api-tester-title::before {
    content: '';
    font-size: 1rem
}

.tester-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem
}

.tester-full {
    grid-column: 1 / -1
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em
}

.form-group label .req {
    color: var(--orange);
    margin-left: 2px
}

.form-input {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 0.9rem;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    transition: 0.15s;
    outline: none;
    width: 100%
}

.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.12)
}

.form-input::placeholder {
    color: rgba(139, 143, 168, 0.5)
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B8FA8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem
}

textarea.form-input {
    resize: vertical;
    min-height: 80px
}

.btn-test {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.7rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s
}

.btn-test:hover {
    background: var(--orange-dark);
    transform: translateY(-1px)
}

.btn-test:active {
    transform: translateY(0)
}

.btn-test:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none
}

.btn-test.loading .spinner {
    display: block
}

.btn-test.loading .btn-text {
    display: none
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* RESPONSE PANEL */
.response-panel {
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: none
}

.response-panel.visible {
    display: block;
    animation: fadeIn 0.3s ease
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.response-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border)
}

.response-status {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block
}

.status-dot.success {
    background: var(--green)
}

.status-dot.error {
    background: #E74C3C
}

.response-time {
    font-size: 0.72rem;
    color: var(--muted)
}

.response-body {
    background: #0A0C14;
    padding: 1.25rem;
    overflow-x: auto
}

.response-body pre {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text)
}

.response-error {
    background: rgba(231, 76, 60, 0.08);
    border-top: 1px solid rgba(231, 76, 60, 0.2)
}

.response-success {
    border-top: 1px solid rgba(61, 189, 125, 0.15)
}

.env-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: rgba(247, 148, 29, 0.08);
    border: 1px solid rgba(247, 148, 29, 0.2);
    border-radius: var(--radius);
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 1rem
}

.env-warning-icon {
    font-size: 1rem;
    flex-shrink: 0
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .tester-row {
        grid-template-columns: 1fr
    }

    .content {
        padding: 2rem 1rem
    }

    nav {
        padding: 0 1rem;
        gap: 1rem
    }

    .nav-tab {
        padding: 0 0.5rem;
        font-size: 0.75rem
    }

    .sidebar {
        width: 220px;
        min-width: 220px
    }
}

/* ============================================
			   LIGHT THEME
			   ============================================ */
[data-theme="light"] {
    --dark: #F8F9FB;
    --card: #FFFFFF;
    --card2: #F1F3F7;
    --text: #1A1D2E;
    --muted: #5A5F7A;
    --border: #E2E5EE;
}

[data-theme="light"] body {
    background: var(--dark);
    color: var(--text);
}

[data-theme="light"] nav {
    background: rgba(248, 249, 251, 0.95);
    border-bottom-color: var(--border);
}

[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.6);
    border-right-color: var(--border);
}

[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link.active {
    background: rgba(247, 148, 29, 0.06);
}

[data-theme="light"] .endpoint {
    background: var(--card);
    border-color: var(--border);
}

[data-theme="light"] .endpoint-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .code-block {
    background: #F1F3F7;
    border-color: var(--border);
}

[data-theme="light"] .code-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: var(--border);
}

[data-theme="light"] pre {
    color: var(--text);
}

[data-theme="light"] .form-input {
    background: var(--card2);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="light"] .form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.12);
}

[data-theme="light"] .response-body {
    background: #F1F3F7;
}

[data-theme="light"] .response-panel {
    border-color: var(--border);
}

[data-theme="light"] .response-panel-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: var(--border);
}

[data-theme="light"] .env-warning {
    background: rgba(247, 148, 29, 0.06);
    border-color: rgba(247, 148, 29, 0.2);
}

[data-theme="light"] .callout-info {
    background: rgba(52, 168, 235, 0.06);
    border-left-color: #52A8EC;
}

[data-theme="light"] .callout-warn {
    background: rgba(247, 148, 29, 0.06);
    border-left-color: var(--orange);
}

[data-theme="light"] .callout-success {
    background: rgba(61, 189, 125, 0.06);
    border-left-color: var(--green);
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, rgba(247, 148, 29, .06) 0%, rgba(61, 189, 125, .03) 100%);
    border-color: rgba(247, 148, 29, 0.2);
}

[data-theme="light"] .base-url {
    background: var(--card2);
    border-color: var(--border);
}

[data-theme="light"] .sdk-pill {
    background: var(--card2);
    border-color: var(--border);
    color: var(--muted);
}

[data-theme="light"] .sdk-pill:hover {
    border-color: var(--orange);
    color: var(--orange);
}

[data-theme="light"] .auth-card {
    background: var(--card2);
    border-color: var(--border);
}

[data-theme="light"] .flow-step {
    background: var(--card2);
    border-color: var(--border);
}

[data-theme="light"] table thead tr {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] th {
    border-bottom-color: var(--border);
    color: var(--muted);
}

[data-theme="light"] td {
    border-bottom-color: rgba(42, 45, 66, 0.15);
}

[data-theme="light"] .response-tabs {
    border-bottom-color: var(--border);
}

[data-theme="light"] .version-pill {
    background: var(--card2);
    border-color: var(--border);
}


/* ============================================
               Plugin Styles
               ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --orange: #F7941D;
    --orange-light: #FFF3E0;
    --orange-dark: #E07A0A;
    --green: #3DBD7D;
    --green-light: #E8F8F0;
    --dark: #0F1117;
    --card: #1A1D2E;
    --card2: #232740;
    --text: #E8E9F0;
    --muted: #8B8FA8;
    --border: #2A2D42;
    --white: #FFFFFF;
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

a {
    color: var(--orange);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

code,
pre {
    font-family: 'JetBrains Mono', monospace
}

/* TOP NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 60px
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap
}

.logo-badge {
    background: var(--green);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em
}

.nav-tabs {
    display: flex;
    gap: 0;
    margin-left: auto
}

.nav-tab {
    padding: 0 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    cursor: pointer
}

.nav-tab.active,
.nav-tab:hover {
    color: var(--green);
    border-bottom-color: var(--green)
}

.nav-badge {
    background: var(--orange);
    color: #fff;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    margin-left: 6px
}

.version-pill {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--muted);
    margin-left: 1rem
}

/* LAYOUT */
.layout {
    display: flex;
    flex: 1;
    min-height: 0
}

.sidebar {
    width: 260px;
    min-width: 260px;
    background: rgba(26, 29, 46, 0.6);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    overflow-y: auto;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px)
}

.main {
    flex: 1;
    overflow-y: auto
}

/* SIDEBAR */
.sidebar-section {
    margin-bottom: 1.5rem
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    transition: 0.15s;
    border-left: 2px solid transparent;
    cursor: pointer
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--text);
    background: rgba(247, 148, 29, 0.08);
    border-left-color: var(--green)
}

.sidebar-link.active {
    color: var(--green)
}

.method-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    min-width: 36px;
    text-align: center
}

.badge-post {
    background: rgba(61, 189, 125, 0.2);
    color: #3DBD7D
}

.badge-get {
    background: rgba(52, 152, 219, 0.2);
    color: #52A8EC
}

.badge-put {
    background: rgba(247, 148, 29, 0.2);
    color: var(--orange)
}

.badge-del {
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C
}

/* CONTENT */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem
}

.hero {
    background: linear-gradient(135deg, rgba(247, 148, 29, .1) 0%, rgba(61, 189, 125, .05) 100%);
    border: 1px solid rgba(247, 148, 29, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden
}

.hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(247, 148, 29, .15), transparent 70%);
    pointer-events: none
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2
}

.hero h1 span {
    color: var(--green)
}

.hero p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 1.5rem
}

.hero-stats {
    display: flex;
    gap: 2rem
}

.hero-stat {
    text-align: center
}

.hero-stat .num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green)
}

.hero-stat .lbl {
    font-size: 0.75rem;
    color: var(--muted)
}

.base-url {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--green);
    margin-top: 1rem
}

/* SECTIONS */
h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem
}

h2::before {
    content: '';
    width: 3px;
    height: 1.4rem;
    background: var(--green);
    border-radius: 2px;
    flex-shrink: 0
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em
}

.section {
    margin-bottom: 3rem
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0
}

/* ENDPOINT CARD */
.endpoint {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: 0.15s
}

.endpoint-header:hover {
    background: rgba(255, 255, 255, 0.03)
}

.method {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 52px;
    text-align: center
}

.m-post {
    background: rgba(61, 189, 125, 0.15);
    color: #3DBD7D;
    border: 1px solid rgba(61, 189, 125, 0.3)
}

.m-get {
    background: rgba(52, 168, 235, 0.15);
    color: #52A8EC;
    border: 1px solid rgba(52, 168, 235, 0.3)
}

.endpoint-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    flex: 1
}

.endpoint-desc {
    font-size: 0.8rem;
    color: var(--muted)
}

.endpoint-body {
    padding: 1.25rem
}

.endpoint-body p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem
}

/* CODE BLOCK */
.code-block {
    background: #0A0C14;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1rem 0
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border)
}

.code-lang {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500
}

.code-copy {
    font-size: 0.75rem;
    color: var(--green);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif
}

.code-copy:hover {
    text-decoration: underline
}

pre {
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.7
}

.kw {
    color: #C792EA
}

.str {
    color: #C3E88D
}

.num {
    color: #F78C6C
}

.fn {
    color: #82AAFF
}

.cm {
    color: #546E7A;
    font-style: italic
}

.key {
    color: #89DDF7
}

.op {
    color: #89DDF7
}

.pr {
    color: var(--green)
}

/* PARAMS TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 0.75rem 0
}

thead tr {
    background: rgba(255, 255, 255, 0.04)
}

th {
    text-align: left;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border)
}

td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(42, 45, 66, 0.6);
    vertical-align: top
}

td:first-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--green)
}

.required {
    color: var(--orange);
    font-size: 0.7rem;
    font-weight: 600
}

.optional {
    color: var(--muted);
    font-size: 0.7rem
}

.type-pill {
    display: inline-block;
    background: rgba(52, 168, 235, 0.1);
    color: #52A8EC;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace
}

/* RESPONSE */
.response-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem
}

.res-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.15s
}

.res-tab.active {
    color: var(--green);
    border-bottom-color: var(--green)
}

.status-200 {
    color: #3DBD7D;
    font-weight: 600
}

.status-400 {
    color: var(--orange);
    font-weight: 600
}

.status-401 {
    color: #E74C3C;
    font-weight: 600
}

/* CALLOUT */
.callout {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 0.88rem;
    line-height: 1.6
}

.callout-info {
    background: rgba(52, 168, 235, 0.1);
    border-left: 3px solid #52A8EC
}

.callout-warn {
    background: rgba(247, 148, 29, 0.1);
    border-left: 3px solid var(--orange)
}

.callout-success {
    background: rgba(61, 189, 125, 0.1);
    border-left: 3px solid var(--green)
}

.callout-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem
}

/* FLOW DIAGRAM */
.flow {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 1.5rem 0;
    overflow-x: auto;
    padding-bottom: 0.5rem
}

.flow-step {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 110px;
    flex-shrink: 0
}

.flow-step .icon {
    font-size: 1.2rem;
    margin-bottom: 0.4rem
}

.flow-step .lbl {
    font-size: 0.75rem;
    color: var(--muted)
}

.flow-step .title {
    font-size: 0.82rem;
    font-weight: 600
}

.flow-arrow {
    color: var(--orange);
    font-size: 1.2rem;
    padding: 0 0.5rem;
    flex-shrink: 0
}

.flow-step.highlight {
    border-color: var(--orange);
    background: rgba(247, 148, 29, 0.08)
}

.flow-step.highlight .title {
    color: var(--orange)
}

/* AUTH */
.auth-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0
}

.auth-card {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem
}

.auth-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem
}

.auth-title {
    font-weight: 600;
    margin-bottom: 0.4rem
}

.auth-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5
}

/* SDK PILLS */
.sdk-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap
}

.sdk-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    transition: 0.15s
}

.sdk-pill:hover {
    border-color: var(--orange);
    color: var(--orange)
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px
}

/* ENV SWITCH */
.env-switch {
    display: inline-flex;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
    gap: 2px
}

.env-btn {
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.15s;
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'Inter', sans-serif
}

.env-btn.active {
    background: var(--orange);
    color: #fff;
    font-weight: 600
}

/* ============================================
			   API TESTER — Interactive playground
			   ============================================ */
.api-tester {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border)
}

.api-tester-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem
}

.api-tester-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px
}

.api-tester-title::before {
    content: '';
    font-size: 1rem
}

.tester-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem
}

.tester-full {
    grid-column: 1 / -1
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em
}

.form-group label .req {
    color: var(--orange);
    margin-left: 2px
}

.form-input {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 0.9rem;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    transition: 0.15s;
    outline: none;
    width: 100%
}

.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.12)
}

.form-input::placeholder {
    color: rgba(139, 143, 168, 0.5)
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B8FA8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem
}

textarea.form-input {
    resize: vertical;
    min-height: 80px
}

.btn-test {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.7rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s
}

.btn-test:hover {
    background: var(--orange-dark);
    transform: translateY(-1px)
}

.btn-test:active {
    transform: translateY(0)
}

.btn-test:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none
}

.btn-test.loading .spinner {
    display: block
}

.btn-test.loading .btn-text {
    display: none
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* RESPONSE PANEL */
.response-panel {
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: none
}

.response-panel.visible {
    display: block;
    animation: fadeIn 0.3s ease
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.response-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border)
}

.response-status {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block
}

.status-dot.success {
    background: var(--green)
}

.status-dot.error {
    background: #E74C3C
}

.response-time {
    font-size: 0.72rem;
    color: var(--muted)
}

.response-body {
    background: #0A0C14;
    padding: 1.25rem;
    overflow-x: auto
}

.response-body pre {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text)
}

.response-error {
    background: rgba(231, 76, 60, 0.08);
    border-top: 1px solid rgba(231, 76, 60, 0.2)
}

.response-success {
    border-top: 1px solid rgba(61, 189, 125, 0.15)
}

.env-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: rgba(247, 148, 29, 0.08);
    border: 1px solid rgba(247, 148, 29, 0.2);
    border-radius: var(--radius);
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 1rem
}

.env-warning-icon {
    font-size: 1rem;
    flex-shrink: 0
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .tester-row {
        grid-template-columns: 1fr
    }

    .content {
        padding: 2rem 1rem
    }

    nav {
        padding: 0 1rem;
        gap: 1rem
    }

    .nav-tab {
        padding: 0 0.5rem;
        font-size: 0.75rem
    }

    .sidebar {
        width: 220px;
        min-width: 220px
    }
}

/* ============================================
			   LIGHT THEME
			   ============================================ */
[data-theme="light"] {
    --dark: #F8F9FB;
    --card: #FFFFFF;
    --card2: #F1F3F7;
    --text: #1A1D2E;
    --muted: #5A5F7A;
    --border: #E2E5EE;
}

[data-theme="light"] body {
    background: var(--dark);
    color: var(--text);
}

[data-theme="light"] nav {
    background: rgba(248, 249, 251, 0.95);
    border-bottom-color: var(--border);
}

[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.6);
    border-right-color: var(--border);
}

[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link.active {
    background: rgba(247, 148, 29, 0.06);
}

[data-theme="light"] .endpoint {
    background: var(--card);
    border-color: var(--border);
}

[data-theme="light"] .endpoint-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .code-block {
    background: #F1F3F7;
    border-color: var(--border);
}

[data-theme="light"] .code-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: var(--border);
}

[data-theme="light"] pre {
    color: var(--text);
}

[data-theme="light"] .form-input {
    background: var(--card2);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="light"] .form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.12);
}

[data-theme="light"] .response-body {
    background: #F1F3F7;
}

[data-theme="light"] .response-panel {
    border-color: var(--border);
}

[data-theme="light"] .response-panel-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: var(--border);
}

[data-theme="light"] .env-warning {
    background: rgba(247, 148, 29, 0.06);
    border-color: rgba(247, 148, 29, 0.2);
}

[data-theme="light"] .callout-info {
    background: rgba(52, 168, 235, 0.06);
    border-left-color: #52A8EC;
}

[data-theme="light"] .callout-warn {
    background: rgba(247, 148, 29, 0.06);
    border-left-color: var(--orange);
}

[data-theme="light"] .callout-success {
    background: rgba(61, 189, 125, 0.06);
    border-left-color: var(--green);
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, rgba(247, 148, 29, .06) 0%, rgba(61, 189, 125, .03) 100%);
    border-color: rgba(247, 148, 29, 0.2);
}

[data-theme="light"] .base-url {
    background: var(--card2);
    border-color: var(--border);
}

[data-theme="light"] .sdk-pill {
    background: var(--card2);
    border-color: var(--border);
    color: var(--muted);
}

[data-theme="light"] .sdk-pill:hover {
    border-color: var(--orange);
    color: var(--orange);
}

[data-theme="light"] .auth-card {
    background: var(--card2);
    border-color: var(--border);
}

[data-theme="light"] .flow-step {
    background: var(--card2);
    border-color: var(--border);
}

[data-theme="light"] table thead tr {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] th {
    border-bottom-color: var(--border);
    color: var(--muted);
}

[data-theme="light"] td {
    border-bottom-color: rgba(42, 45, 66, 0.15);
}

[data-theme="light"] .response-tabs {
    border-bottom-color: var(--border);
}

[data-theme="light"] .version-pill {
    background: var(--card2);
    border-color: var(--border);
}


/* ============================================
               SDKs Styles
               ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --orange: #F7941D;
    --orange-light: #FFF3E0;
    --orange-dark: #E07A0A;
    --green: #3DBD7D;
    --green-light: #E8F8F0;
    --dark: #0F1117;
    --card: #1A1D2E;
    --card2: #232740;
    --text: #E8E9F0;
    --muted: #8B8FA8;
    --border: #2A2D42;
    --white: #FFFFFF;
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

a {
    color: var(--orange);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

code,
pre {
    font-family: 'JetBrains Mono', monospace
}

/* TOP NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 60px
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap
}

.logo-badge {
    background: var(--green);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em
}

.nav-tabs {
    display: flex;
    gap: 0;
    margin-left: auto
}

.nav-tab {
    padding: 0 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    cursor: pointer
}

.nav-tab.active,
.nav-tab:hover {
    color: var(--green);
    border-bottom-color: var(--green)
}

.nav-badge {
    background: var(--orange);
    color: #fff;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    margin-left: 6px
}

.version-pill {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--muted);
    margin-left: 1rem
}

/* LAYOUT */
.layout {
    display: flex;
    flex: 1;
    min-height: 0
}

.sidebar {
    width: 260px;
    min-width: 260px;
    background: rgba(26, 29, 46, 0.6);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    overflow-y: auto;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px)
}

.main {
    flex: 1;
    overflow-y: auto
}

/* SIDEBAR */
.sidebar-section {
    margin-bottom: 1.5rem
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    transition: 0.15s;
    border-left: 2px solid transparent;
    cursor: pointer
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--text);
    background: rgba(247, 148, 29, 0.08);
    border-left-color: var(--green)
}

.sidebar-link.active {
    color: var(--green)
}

.method-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    min-width: 36px;
    text-align: center
}

.badge-post {
    background: rgba(61, 189, 125, 0.2);
    color: #3DBD7D
}

.badge-get {
    background: rgba(52, 152, 219, 0.2);
    color: #52A8EC
}

.badge-put {
    background: rgba(247, 148, 29, 0.2);
    color: var(--orange)
}

.badge-del {
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C
}

/* CONTENT */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem
}

.hero {
    background: linear-gradient(135deg, rgba(247, 148, 29, .1) 0%, rgba(61, 189, 125, .05) 100%);
    border: 1px solid rgba(247, 148, 29, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden
}

.hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(247, 148, 29, .15), transparent 70%);
    pointer-events: none
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2
}

.hero h1 span {
    color: var(--green)
}

.hero p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 1.5rem
}

.hero-stats {
    display: flex;
    gap: 2rem
}

.hero-stat {
    text-align: center
}

.hero-stat .num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green)
}

.hero-stat .lbl {
    font-size: 0.75rem;
    color: var(--muted)
}

.base-url {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--green);
    margin-top: 1rem
}

/* SECTIONS */
h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem
}

h2::before {
    content: '';
    width: 3px;
    height: 1.4rem;
    background: var(--green);
    border-radius: 2px;
    flex-shrink: 0
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em
}

.section {
    margin-bottom: 3rem
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0
}

/* ENDPOINT CARD */
.endpoint {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: 0.15s
}

.endpoint-header:hover {
    background: rgba(255, 255, 255, 0.03)
}

.method {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 52px;
    text-align: center
}

.m-post {
    background: rgba(61, 189, 125, 0.15);
    color: #3DBD7D;
    border: 1px solid rgba(61, 189, 125, 0.3)
}

.m-get {
    background: rgba(52, 168, 235, 0.15);
    color: #52A8EC;
    border: 1px solid rgba(52, 168, 235, 0.3)
}

.endpoint-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    flex: 1
}

.endpoint-desc {
    font-size: 0.8rem;
    color: var(--muted)
}

.endpoint-body {
    padding: 1.25rem
}

.endpoint-body p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem
}

/* CODE BLOCK */
.code-block {
    background: #0A0C14;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1rem 0
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border)
}

.code-lang {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500
}

.code-copy {
    font-size: 0.75rem;
    color: var(--green);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif
}

.code-copy:hover {
    text-decoration: underline
}

pre {
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.7
}

.kw {
    color: #C792EA
}

.str {
    color: #C3E88D
}

.num {
    color: #F78C6C
}

.fn {
    color: #82AAFF
}

.cm {
    color: #546E7A;
    font-style: italic
}

.key {
    color: #89DDF7
}

.op {
    color: #89DDF7
}

.pr {
    color: var(--green)
}

/* PARAMS TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 0.75rem 0
}

thead tr {
    background: rgba(255, 255, 255, 0.04)
}

th {
    text-align: left;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border)
}

td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(42, 45, 66, 0.6);
    vertical-align: top
}

td:first-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--green)
}

.required {
    color: var(--orange);
    font-size: 0.7rem;
    font-weight: 600
}

.optional {
    color: var(--muted);
    font-size: 0.7rem
}

.type-pill {
    display: inline-block;
    background: rgba(52, 168, 235, 0.1);
    color: #52A8EC;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace
}

/* RESPONSE */
.response-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem
}

.res-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.15s
}

.res-tab.active {
    color: var(--green);
    border-bottom-color: var(--green)
}

.status-200 {
    color: #3DBD7D;
    font-weight: 600
}

.status-400 {
    color: var(--orange);
    font-weight: 600
}

.status-401 {
    color: #E74C3C;
    font-weight: 600
}

/* CALLOUT */
.callout {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 0.88rem;
    line-height: 1.6
}

.callout-info {
    background: rgba(52, 168, 235, 0.1);
    border-left: 3px solid #52A8EC
}

.callout-warn {
    background: rgba(247, 148, 29, 0.1);
    border-left: 3px solid var(--orange)
}

.callout-success {
    background: rgba(61, 189, 125, 0.1);
    border-left: 3px solid var(--green)
}

.callout-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem
}

/* FLOW DIAGRAM */
.flow {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 1.5rem 0;
    overflow-x: auto;
    padding-bottom: 0.5rem
}

.flow-step {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 110px;
    flex-shrink: 0
}

.flow-step .icon {
    font-size: 1.2rem;
    margin-bottom: 0.4rem
}

.flow-step .lbl {
    font-size: 0.75rem;
    color: var(--muted)
}

.flow-step .title {
    font-size: 0.82rem;
    font-weight: 600
}

.flow-arrow {
    color: var(--orange);
    font-size: 1.2rem;
    padding: 0 0.5rem;
    flex-shrink: 0
}

.flow-step.highlight {
    border-color: var(--orange);
    background: rgba(247, 148, 29, 0.08)
}

.flow-step.highlight .title {
    color: var(--orange)
}

/* AUTH */
.auth-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0
}

.auth-card {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem
}

.auth-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem
}

.auth-title {
    font-weight: 600;
    margin-bottom: 0.4rem
}

.auth-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5
}

/* SDK PILLS */
.sdk-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap
}

.sdk-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    transition: 0.15s
}

.sdk-pill:hover {
    border-color: var(--orange);
    color: var(--orange)
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px
}

/* ENV SWITCH */
.env-switch {
    display: inline-flex;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
    gap: 2px
}

.env-btn {
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.15s;
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'Inter', sans-serif
}

.env-btn.active {
    background: var(--orange);
    color: #fff;
    font-weight: 600
}

/* ============================================
			   API TESTER — Interactive playground
			   ============================================ */
.api-tester {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border)
}

.api-tester-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem
}

.api-tester-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px
}

.api-tester-title::before {
    content: '';
    font-size: 1rem
}

.tester-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem
}

.tester-full {
    grid-column: 1 / -1
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em
}

.form-group label .req {
    color: var(--orange);
    margin-left: 2px
}

.form-input {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 0.9rem;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    transition: 0.15s;
    outline: none;
    width: 100%
}

.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.12)
}

.form-input::placeholder {
    color: rgba(139, 143, 168, 0.5)
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B8FA8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem
}

textarea.form-input {
    resize: vertical;
    min-height: 80px
}

.btn-test {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.7rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s
}

.btn-test:hover {
    background: var(--orange-dark);
    transform: translateY(-1px)
}

.btn-test:active {
    transform: translateY(0)
}

.btn-test:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none
}

.btn-test.loading .spinner {
    display: block
}

.btn-test.loading .btn-text {
    display: none
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* RESPONSE PANEL */
.response-panel {
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: none
}

.response-panel.visible {
    display: block;
    animation: fadeIn 0.3s ease
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.response-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border)
}

.response-status {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block
}

.status-dot.success {
    background: var(--green)
}

.status-dot.error {
    background: #E74C3C
}

.response-time {
    font-size: 0.72rem;
    color: var(--muted)
}

.response-body {
    background: #0A0C14;
    padding: 1.25rem;
    overflow-x: auto
}

.response-body pre {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text)
}

.response-error {
    background: rgba(231, 76, 60, 0.08);
    border-top: 1px solid rgba(231, 76, 60, 0.2)
}

.response-success {
    border-top: 1px solid rgba(61, 189, 125, 0.15)
}

.env-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: rgba(247, 148, 29, 0.08);
    border: 1px solid rgba(247, 148, 29, 0.2);
    border-radius: var(--radius);
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 1rem
}

.env-warning-icon {
    font-size: 1rem;
    flex-shrink: 0
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .tester-row {
        grid-template-columns: 1fr
    }

    .content {
        padding: 2rem 1rem
    }

    nav {
        padding: 0 1rem;
        gap: 1rem
    }

    .nav-tab {
        padding: 0 0.5rem;
        font-size: 0.75rem
    }

    .sidebar {
        width: 220px;
        min-width: 220px
    }
}

/* ============================================
			   LIGHT THEME
			   ============================================ */
[data-theme="light"] {
    --dark: #F8F9FB;
    --card: #FFFFFF;
    --card2: #F1F3F7;
    --text: #1A1D2E;
    --muted: #5A5F7A;
    --border: #E2E5EE;
}

[data-theme="light"] body {
    background: var(--dark);
    color: var(--text);
}

[data-theme="light"] nav {
    background: rgba(248, 249, 251, 0.95);
    border-bottom-color: var(--border);
}

[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.6);
    border-right-color: var(--border);
}

[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link.active {
    background: rgba(247, 148, 29, 0.06);
}

[data-theme="light"] .endpoint {
    background: var(--card);
    border-color: var(--border);
}

[data-theme="light"] .endpoint-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .code-block {
    background: #F1F3F7;
    border-color: var(--border);
}

[data-theme="light"] .code-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: var(--border);
}

[data-theme="light"] pre {
    color: var(--text);
}

[data-theme="light"] .form-input {
    background: var(--card2);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="light"] .form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.12);
}

[data-theme="light"] .response-body {
    background: #F1F3F7;
}

[data-theme="light"] .response-panel {
    border-color: var(--border);
}

[data-theme="light"] .response-panel-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: var(--border);
}

[data-theme="light"] .env-warning {
    background: rgba(247, 148, 29, 0.06);
    border-color: rgba(247, 148, 29, 0.2);
}

[data-theme="light"] .callout-info {
    background: rgba(52, 168, 235, 0.06);
    border-left-color: #52A8EC;
}

[data-theme="light"] .callout-warn {
    background: rgba(247, 148, 29, 0.06);
    border-left-color: var(--orange);
}

[data-theme="light"] .callout-success {
    background: rgba(61, 189, 125, 0.06);
    border-left-color: var(--green);
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, rgba(247, 148, 29, .06) 0%, rgba(61, 189, 125, .03) 100%);
    border-color: rgba(247, 148, 29, 0.2);
}

[data-theme="light"] .base-url {
    background: var(--card2);
    border-color: var(--border);
}

[data-theme="light"] .sdk-pill {
    background: var(--card2);
    border-color: var(--border);
    color: var(--muted);
}

[data-theme="light"] .sdk-pill:hover {
    border-color: var(--orange);
    color: var(--orange);
}

[data-theme="light"] .auth-card {
    background: var(--card2);
    border-color: var(--border);
}

[data-theme="light"] .flow-step {
    background: var(--card2);
    border-color: var(--border);
}

[data-theme="light"] table thead tr {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] th {
    border-bottom-color: var(--border);
    color: var(--muted);
}

[data-theme="light"] td {
    border-bottom-color: rgba(42, 45, 66, 0.15);
}

[data-theme="light"] .response-tabs {
    border-bottom-color: var(--border);
}

[data-theme="light"] .version-pill {
    background: var(--card2);
    border-color: var(--border);
}

/* ============================================
               Webhooks Style
               ============================================ */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --orange: #F7941D;
    --orange-light: #FFF3E0;
    --orange-dark: #E07A0A;
    --green: #3DBD7D;
    --green-light: #E8F8F0;
    --dark: #0F1117;
    --card: #1A1D2E;
    --card2: #232740;
    --text: #E8E9F0;
    --muted: #8B8FA8;
    --border: #2A2D42;
    --white: #FFFFFF;
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

a {
    color: var(--orange);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

code,
pre {
    font-family: 'JetBrains Mono', monospace
}

/* TOP NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 60px
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap
}

.logo-badge {
    background: var(--green);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em
}

.nav-tabs {
    display: flex;
    gap: 0;
    margin-left: auto
}

.nav-tab {
    padding: 0 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    cursor: pointer
}

.nav-tab.active,
.nav-tab:hover {
    color: var(--green);
    border-bottom-color: var(--green)
}

.nav-badge {
    background: var(--orange);
    color: #fff;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    margin-left: 6px
}

.version-pill {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--muted);
    margin-left: 1rem
}

/* LAYOUT */
.layout {
    display: flex;
    flex: 1;
    min-height: 0
}

.sidebar {
    width: 260px;
    min-width: 260px;
    background: rgba(26, 29, 46, 0.6);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    overflow-y: auto;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px)
}

.main {
    flex: 1;
    overflow-y: auto
}

/* SIDEBAR */
.sidebar-section {
    margin-bottom: 1.5rem
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    transition: 0.15s;
    border-left: 2px solid transparent;
    cursor: pointer
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--text);
    background: rgba(247, 148, 29, 0.08);
    border-left-color: var(--green)
}

.sidebar-link.active {
    color: var(--green)
}

.method-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    min-width: 36px;
    text-align: center
}

.badge-post {
    background: rgba(61, 189, 125, 0.2);
    color: #3DBD7D
}

.badge-get {
    background: rgba(52, 152, 219, 0.2);
    color: #52A8EC
}

.badge-put {
    background: rgba(247, 148, 29, 0.2);
    color: var(--orange)
}

.badge-del {
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C
}

/* CONTENT */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem
}

.hero {
    background: linear-gradient(135deg, rgba(247, 148, 29, .1) 0%, rgba(61, 189, 125, .05) 100%);
    border: 1px solid rgba(247, 148, 29, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden
}

.hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(247, 148, 29, .15), transparent 70%);
    pointer-events: none
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2
}

.hero h1 span {
    color: var(--green)
}

.hero p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 1.5rem
}

.hero-stats {
    display: flex;
    gap: 2rem
}

.hero-stat {
    text-align: center
}

.hero-stat .num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green)
}

.hero-stat .lbl {
    font-size: 0.75rem;
    color: var(--muted)
}

.base-url {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--green);
    margin-top: 1rem
}

/* SECTIONS */
h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem
}

h2::before {
    content: '';
    width: 3px;
    height: 1.4rem;
    background: var(--green);
    border-radius: 2px;
    flex-shrink: 0
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em
}

.section {
    margin-bottom: 3rem
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0
}

/* ENDPOINT CARD */
.endpoint {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: 0.15s
}

.endpoint-header:hover {
    background: rgba(255, 255, 255, 0.03)
}

.method {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 52px;
    text-align: center
}

.m-post {
    background: rgba(61, 189, 125, 0.15);
    color: #3DBD7D;
    border: 1px solid rgba(61, 189, 125, 0.3)
}

.m-get {
    background: rgba(52, 168, 235, 0.15);
    color: #52A8EC;
    border: 1px solid rgba(52, 168, 235, 0.3)
}

.endpoint-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    flex: 1
}

.endpoint-desc {
    font-size: 0.8rem;
    color: var(--muted)
}

.endpoint-body {
    padding: 1.25rem
}

.endpoint-body p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem
}

/* CODE BLOCK */
.code-block {
    background: #0A0C14;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1rem 0
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border)
}

.code-lang {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500
}

.code-copy {
    font-size: 0.75rem;
    color: var(--green);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif
}

.code-copy:hover {
    text-decoration: underline
}

pre {
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.7
}

.kw {
    color: #C792EA
}

.str {
    color: #C3E88D
}

.num {
    color: #F78C6C
}

.fn {
    color: #82AAFF
}

.cm {
    color: #546E7A;
    font-style: italic
}

.key {
    color: #89DDF7
}

.op {
    color: #89DDF7
}

.pr {
    color: var(--green)
}

/* PARAMS TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 0.75rem 0
}

thead tr {
    background: rgba(255, 255, 255, 0.04)
}

th {
    text-align: left;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border)
}

td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(42, 45, 66, 0.6);
    vertical-align: top
}

td:first-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--green)
}

.required {
    color: var(--orange);
    font-size: 0.7rem;
    font-weight: 600
}

.optional {
    color: var(--muted);
    font-size: 0.7rem
}

.type-pill {
    display: inline-block;
    background: rgba(52, 168, 235, 0.1);
    color: #52A8EC;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace
}

/* RESPONSE */
.response-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem
}

.res-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.15s
}

.res-tab.active {
    color: var(--green);
    border-bottom-color: var(--green)
}

.status-200 {
    color: #3DBD7D;
    font-weight: 600
}

.status-400 {
    color: var(--orange);
    font-weight: 600
}

.status-401 {
    color: #E74C3C;
    font-weight: 600
}

/* CALLOUT */
.callout {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 0.88rem;
    line-height: 1.6
}

.callout-info {
    background: rgba(52, 168, 235, 0.1);
    border-left: 3px solid #52A8EC
}

.callout-warn {
    background: rgba(247, 148, 29, 0.1);
    border-left: 3px solid var(--orange)
}

.callout-success {
    background: rgba(61, 189, 125, 0.1);
    border-left: 3px solid var(--green)
}

.callout-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem
}

/* FLOW DIAGRAM */
.flow {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 1.5rem 0;
    overflow-x: auto;
    padding-bottom: 0.5rem
}

.flow-step {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 110px;
    flex-shrink: 0
}

.flow-step .icon {
    font-size: 1.2rem;
    margin-bottom: 0.4rem
}

.flow-step .lbl {
    font-size: 0.75rem;
    color: var(--muted)
}

.flow-step .title {
    font-size: 0.82rem;
    font-weight: 600
}

.flow-arrow {
    color: var(--orange);
    font-size: 1.2rem;
    padding: 0 0.5rem;
    flex-shrink: 0
}

.flow-step.highlight {
    border-color: var(--orange);
    background: rgba(247, 148, 29, 0.08)
}

.flow-step.highlight .title {
    color: var(--orange)
}

/* AUTH */
.auth-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0
}

.auth-card {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem
}

.auth-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem
}

.auth-title {
    font-weight: 600;
    margin-bottom: 0.4rem
}

.auth-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5
}

/* SDK PILLS */
.sdk-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap
}

.sdk-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    transition: 0.15s
}

.sdk-pill:hover {
    border-color: var(--orange);
    color: var(--orange)
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px
}

/* ENV SWITCH */
.env-switch {
    display: inline-flex;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
    gap: 2px
}

.env-btn {
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.15s;
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'Inter', sans-serif
}

.env-btn.active {
    background: var(--orange);
    color: #fff;
    font-weight: 600
}

/* ============================================
			   API TESTER — Interactive playground
			   ============================================ */
.api-tester {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border)
}

.api-tester-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem
}

.api-tester-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px
}

.api-tester-title::before {
    content: '';
    font-size: 1rem
}

.tester-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem
}

.tester-full {
    grid-column: 1 / -1
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em
}

.form-group label .req {
    color: var(--orange);
    margin-left: 2px
}

.form-input {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 0.9rem;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    transition: 0.15s;
    outline: none;
    width: 100%
}

.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.12)
}

.form-input::placeholder {
    color: rgba(139, 143, 168, 0.5)
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B8FA8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem
}

textarea.form-input {
    resize: vertical;
    min-height: 80px
}

.btn-test {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.7rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s
}

.btn-test:hover {
    background: var(--orange-dark);
    transform: translateY(-1px)
}

.btn-test:active {
    transform: translateY(0)
}

.btn-test:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none
}

.btn-test.loading .spinner {
    display: block
}

.btn-test.loading .btn-text {
    display: none
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* RESPONSE PANEL */
.response-panel {
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: none
}

.response-panel.visible {
    display: block;
    animation: fadeIn 0.3s ease
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.response-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border)
}

.response-status {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block
}

.status-dot.success {
    background: var(--green)
}

.status-dot.error {
    background: #E74C3C
}

.response-time {
    font-size: 0.72rem;
    color: var(--muted)
}

.response-body {
    background: #0A0C14;
    padding: 1.25rem;
    overflow-x: auto
}

.response-body pre {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text)
}

.response-error {
    background: rgba(231, 76, 60, 0.08);
    border-top: 1px solid rgba(231, 76, 60, 0.2)
}

.response-success {
    border-top: 1px solid rgba(61, 189, 125, 0.15)
}

.env-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: rgba(247, 148, 29, 0.08);
    border: 1px solid rgba(247, 148, 29, 0.2);
    border-radius: var(--radius);
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 1rem
}

.env-warning-icon {
    font-size: 1rem;
    flex-shrink: 0
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .tester-row {
        grid-template-columns: 1fr
    }

    .content {
        padding: 2rem 1rem
    }

    nav {
        padding: 0 1rem;
        gap: 1rem
    }

    .nav-tab {
        padding: 0 0.5rem;
        font-size: 0.75rem
    }

    .sidebar {
        width: 220px;
        min-width: 220px
    }
}

/* ============================================
			   LIGHT THEME
			   ============================================ */
[data-theme="light"] {
    --dark: #F8F9FB;
    --card: #FFFFFF;
    --card2: #F1F3F7;
    --text: #1A1D2E;
    --muted: #5A5F7A;
    --border: #E2E5EE;
}

[data-theme="light"] body {
    background: var(--dark);
    color: var(--text);
}

[data-theme="light"] nav {
    background: rgba(248, 249, 251, 0.95);
    border-bottom-color: var(--border);
}

[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.6);
    border-right-color: var(--border);
}

[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link.active {
    background: rgba(247, 148, 29, 0.06);
}

[data-theme="light"] .endpoint {
    background: var(--card);
    border-color: var(--border);
}

[data-theme="light"] .endpoint-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .code-block {
    background: #F1F3F7;
    border-color: var(--border);
}

[data-theme="light"] .code-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: var(--border);
}

[data-theme="light"] pre {
    color: var(--text);
}

[data-theme="light"] .form-input {
    background: var(--card2);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="light"] .form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.12);
}

[data-theme="light"] .response-body {
    background: #F1F3F7;
}

[data-theme="light"] .response-panel {
    border-color: var(--border);
}

[data-theme="light"] .response-panel-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: var(--border);
}

[data-theme="light"] .env-warning {
    background: rgba(247, 148, 29, 0.06);
    border-color: rgba(247, 148, 29, 0.2);
}

[data-theme="light"] .callout-info {
    background: rgba(52, 168, 235, 0.06);
    border-left-color: #52A8EC;
}

[data-theme="light"] .callout-warn {
    background: rgba(247, 148, 29, 0.06);
    border-left-color: var(--orange);
}

[data-theme="light"] .callout-success {
    background: rgba(61, 189, 125, 0.06);
    border-left-color: var(--green);
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, rgba(247, 148, 29, .06) 0%, rgba(61, 189, 125, .03) 100%);
    border-color: rgba(247, 148, 29, 0.2);
}

[data-theme="light"] .base-url {
    background: var(--card2);
    border-color: var(--border);
}

[data-theme="light"] .sdk-pill {
    background: var(--card2);
    border-color: var(--border);
    color: var(--muted);
}

[data-theme="light"] .sdk-pill:hover {
    border-color: var(--orange);
    color: var(--orange);
}

[data-theme="light"] .auth-card {
    background: var(--card2);
    border-color: var(--border);
}

[data-theme="light"] .flow-step {
    background: var(--card2);
    border-color: var(--border);
}

[data-theme="light"] table thead tr {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] th {
    border-bottom-color: var(--border);
    color: var(--muted);
}

[data-theme="light"] td {
    border-bottom-color: rgba(42, 45, 66, 0.15);
}

[data-theme="light"] .response-tabs {
    border-bottom-color: var(--border);
}

[data-theme="light"] .version-pill {
    background: var(--card2);
    border-color: var(--border);
}

