:root {
            --bg: #06060e;
            --card-bg: #0e0e1c;
            --card-border: #1a1a2e;
            --cyan: #00d4ff;
            --green: #00c853;
            --red: #ef4444;
            --yellow: #f59e0b;
            --pink: #e94560;
            --text: #e0e0e0;
            --text-muted: #888;
            --text-dim: #555;
            --json-key: #7ec8e3;
            --json-string: #a8d5a2;
            --json-number: #c4a0ff;
            --json-boolean: #f59e0b;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .main { padding: 40px 50px; max-width: 900px; margin: 0 auto; }

        h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; color: #fff; }
        h1 span { color: var(--cyan); }

        .subtitle { font-size: 16px; color: var(--text-muted); margin-bottom: 35px; }

        .version-badge {
            display: inline-block;
            background: rgba(0,212,255,0.1);
            color: var(--cyan);
            font-size: 12px;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 20px;
            margin-bottom: 15px;
            border: 1px solid rgba(0,212,255,0.2);
        }

        .auth-notice {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-left: 4px solid var(--cyan);
            border-radius: 8px;
            padding: 16px 20px;
            margin-bottom: 30px;
        }

        .auth-notice h3 { font-size: 14px; font-weight: 600; color: var(--cyan); margin-bottom: 6px; }
        .auth-notice p { font-size: 13px; color: var(--text-muted); }

        .auth-notice code {
            font-family: 'JetBrains Mono', monospace;
            background: rgba(0,212,255,0.1);
            color: var(--cyan);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 12px;
        }

        .url-example {
            margin-top: 10px;
            padding: 10px 14px;
            background: rgba(0,0,0,0.3);
            border-radius: 6px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            color: var(--text-muted);
            word-break: break-all;
            line-height: 1.7;
        }

        .url-example span { color: var(--cyan); font-weight: 600; }

        .status-widget {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 18px 22px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .status-left { display: flex; align-items: center; gap: 14px; }

        .live-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--green);
            box-shadow: 0 0 12px rgba(0,200,83,0.8);
            animation: pulse 1.8s infinite;
            flex-shrink: 0;
        }

        .live-dot.offline { background: var(--red); box-shadow: 0 0 12px rgba(239,68,68,0.8); }

        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

        .status-title { font-weight: 700; color: #fff; font-size: 15px; }
        .status-title small { display: block; color: var(--text-muted); font-weight: 400; font-size: 12px; }

        .status-metrics { display: flex; gap: 12px; flex-wrap: wrap; }

        .status-chip {
            background: var(--bg);
            border: 1px solid var(--card-border);
            border-radius: 10px;
            padding: 10px 16px;
            min-width: 96px;
            text-align: center;
        }

        .status-chip .chip-value { font-size: 18px; font-weight: 700; color: var(--cyan); }
        .status-chip .chip-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

        .section-title {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 20px;
            margin-top: 45px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--card-border);
            color: #fff;
        }

        .endpoint-card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 10px;
            margin-bottom: 20px;
            overflow: hidden;
            transition: border-color 0.2s ease;
        }

        .endpoint-card:hover { border-color: rgba(0,212,255,0.2); }

        .endpoint-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 20px;
            flex-wrap: wrap;
        }

        .method-badge {
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 5px;
            text-transform: uppercase;
            flex-shrink: 0;
        }

        .method-badge.get { background: rgba(0,212,255,0.15); color: var(--cyan); }
        .method-badge.post { background: rgba(0,200,83,0.15); color: var(--green); }

        .endpoint-path { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; color: #fff; }

        .endpoint-desc { font-size: 13px; color: var(--text-muted); margin-left: auto; }

        .endpoint-type { font-size: 11px; padding: 3px 8px; border-radius: 4px; font-weight: 600; white-space: nowrap; }
        .endpoint-type.completo { background: rgba(0,200,83,0.12); color: var(--green); }
        .endpoint-type.info-type { background: rgba(245,158,11,0.12); color: var(--yellow); }

        .endpoint-body { padding: 0 20px 20px; border-top: 1px solid var(--card-border); }

        .subsection { margin-top: 18px; }

        .subsection-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 10px;
        }

        .params-table { width: 100%; border-collapse: collapse; font-size: 13px; }

        .params-table th {
            text-align: left;
            padding: 8px 12px;
            background: rgba(255,255,255,0.02);
            color: var(--text-muted);
            font-weight: 600;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid var(--card-border);
        }

        .params-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: top; }
        .params-table td:first-child { font-family: 'JetBrains Mono', monospace; color: var(--cyan); font-size: 12px; white-space: nowrap; }
        .params-table .required { color: var(--red); font-size: 11px; font-weight: 600; }
        .params-table .optional { color: var(--text-dim); font-size: 11px; font-weight: 500; }
        .params-table .param-desc { color: var(--text-muted); }

        .params-table .param-default { font-family: 'JetBrains Mono', monospace; color: var(--json-number); font-size: 11px; }

        .code-block-wrapper { position: relative; margin-top: 10px; }

        .code-block {
            background: #080812;
            border: 1px solid var(--card-border);
            border-radius: 8px;
            padding: 16px;
            overflow-x: auto;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            line-height: 1.7;
            color: var(--text-muted);
            position: relative;
        }

        .code-block pre { margin: 0; white-space: pre; }

        .copy-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255,255,255,0.06);
            border: 1px solid var(--card-border);
            color: var(--text-dim);
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 11px;
            font-family: 'Inter', sans-serif;
            transition: all 0.2s ease;
        }

        .copy-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
        .copy-btn.copied { color: var(--green); border-color: var(--green); }

        .jk { color: var(--json-key); }
        .js { color: var(--json-string); }
        .jn { color: var(--json-number); }
        .jb { color: var(--json-boolean); }
        .jp { color: var(--text-dim); }

        .error-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 15px; }

        .error-card { background: rgba(239,68,68,0.04); border: 1px solid rgba(239,68,68,0.15); border-radius: 8px; padding: 14px 16px; }
        .error-card .error-code { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--red); margin-bottom: 4px; }
        .error-card .error-msg { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); word-break: break-word; }

        .key-types-table, .limits-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 15px; }
        .key-types-table th, .limits-table th {
            text-align: left;
            padding: 10px 14px;
            background: rgba(255,255,255,0.02);
            color: var(--text-muted);
            font-weight: 600;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid var(--card-border);
        }
        .key-types-table td, .limits-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: top; }
        .key-types-table td:first-child { font-weight: 600; }
        .limits-table td:first-child { font-weight: 600; color: var(--text); }

        .type-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
        .type-tag.completo-tag { background: rgba(0,200,83,0.12); color: var(--green); }
        .type-tag.info-tag { background: rgba(245,158,11,0.12); color: var(--yellow); }

        .contact-section {
            margin-top: 45px;
            padding: 20px;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 10px;
            text-align: center;
        }

        .contact-section h3 { font-size: 16px; margin-bottom: 10px; color: #fff; }
        .contact-section a { color: var(--green); text-decoration: none; font-weight: 600; }
        .contact-section a:hover { text-decoration: underline; }

        @media (max-width: 768px) {
            .main { padding: 26px 16px 40px; }
            h1 { font-size: 26px; }
            .subtitle { font-size: 14px; margin-bottom: 26px; }
            .endpoint-desc { display: none; }
            .error-grid { grid-template-columns: 1fr; }
            .status-widget { padding: 16px; gap: 14px; }
            .status-metrics { width: 100%; }
            .status-chip { flex: 1 1 calc(50% - 6px); min-width: 0; }
            .section-title { font-size: 19px; }
        }

        /* MOBILE: tabelas viram lista de cartoes empilhados */
        @media (max-width: 700px) {
            .params-table.stack-mobile,
            .key-types-table.stack-mobile,
            .limits-table.stack-mobile { display: block; width: 100%; }
            .params-table.stack-mobile thead,
            .key-types-table.stack-mobile thead,
            .limits-table.stack-mobile thead { display: none; }
            .params-table.stack-mobile tbody,
            .params-table.stack-mobile tr,
            .params-table.stack-mobile td,
            .key-types-table.stack-mobile tbody,
            .key-types-table.stack-mobile tr,
            .key-types-table.stack-mobile td,
            .limits-table.stack-mobile tbody,
            .limits-table.stack-mobile tr,
            .limits-table.stack-mobile td { display: block; width: 100%; }
            .params-table.stack-mobile tr,
            .key-types-table.stack-mobile tr,
            .limits-table.stack-mobile tr {
                background: rgba(255,255,255,0.03);
                border: 1px solid var(--card-border);
                border-radius: 10px;
                margin-bottom: 10px;
                padding: 4px 0;
            }
            .params-table.stack-mobile tr:last-child,
            .key-types-table.stack-mobile tr:last-child,
            .limits-table.stack-mobile tr:last-child { margin-bottom: 0; }
            .params-table.stack-mobile td,
            .key-types-table.stack-mobile td,
            .limits-table.stack-mobile td {
                display: block; border: 0; border-bottom: 1px solid rgba(255,255,255,0.06);
                padding: 9px 12px; text-align: left; word-break: break-word;
            }
            .params-table.stack-mobile td:last-child,
            .key-types-table.stack-mobile td:last-child,
            .limits-table.stack-mobile td:last-child { border-bottom: 0; }
            .params-table.stack-mobile td::before,
            .key-types-table.stack-mobile td::before,
            .limits-table.stack-mobile td::before {
                content: attr(data-label); display: block; color: var(--text-muted);
                font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; text-align: left;
                margin-bottom: 4px;
            }
            .params-table.stack-mobile td:empty,
            .key-types-table.stack-mobile td:empty,
            .limits-table.stack-mobile td:empty { display: none; }
        }

        /* Botão Hambúrguer de Endpoints & Drawer */
        .docs-nav-hamburger {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
            border: 1px solid rgba(0, 212, 255, 0.4);
            border-radius: 8px;
            padding: 7px 13px;
            color: var(--cyan);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 10px rgba(0, 212, 255, 0.15);
        }
        .docs-nav-hamburger:hover {
            background: rgba(0, 212, 255, 0.22);
            border-color: var(--cyan);
            box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
            transform: translateY(-1px);
        }
        .docs-nav-hamburger:active { transform: scale(0.97); }

        /* Floating Action Button (FAB) */
        .docs-fab-btn {
            display: flex;
            position: fixed;
            bottom: 24px;
            right: 20px;
            z-index: 900;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: linear-gradient(135deg, #00d4ff, #0077ff);
            color: #fff;
            border: none;
            box-shadow: 0 6px 20px rgba(0, 212, 255, 0.45);
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .docs-fab-btn:hover { transform: scale(1.08); box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6); }
        .docs-fab-btn:active { transform: scale(0.94); }

        @media (max-width: 768px) {
            .docs-fab-btn { display: flex; }
        }

        /* Drawer Overlay */
        .docs-drawer-backdrop {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(4, 5, 12, 0.75);
            -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }
        .docs-drawer-backdrop.active {
            opacity: 1;
            visibility: visible;
        }

        .docs-drawer {
            position: fixed;
            top: 0;
            right: 0;
            width: 340px;
            max-width: 86vw;
            height: 100vh;
            background: #090a16;
            border-left: 1px solid rgba(0, 212, 255, 0.2);
            box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85);
            z-index: 1001;
            display: flex;
            flex-direction: column;
            transform: translateX(100%);
            transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .docs-drawer.active {
            transform: translateX(0);
        }

        .docs-drawer-header {
            padding: 18px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--card-border);
            background: rgba(14, 14, 28, 0.7);
        }
        .docs-drawer-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 15px;
            font-weight: 700;
            color: #fff;
        }
        .docs-drawer-close {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 26px;
            line-height: 1;
            cursor: pointer;
            padding: 0 4px;
            transition: color 0.15s;
        }
        .docs-drawer-close:hover { color: #fff; }

        .docs-drawer-search {
            padding: 12px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            background: rgba(0,0,0,0.25);
        }
        .docs-drawer-search input {
            width: 100%;
            background: var(--bg);
            border: 1px solid var(--card-border);
            border-radius: 8px;
            padding: 9px 12px;
            color: #fff;
            font-size: 13px;
            outline: none;
            transition: border-color 0.2s;
        }
        .docs-drawer-search input:focus {
            border-color: var(--cyan);
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
        }

        .docs-drawer-list {
            flex: 1;
            overflow-y: auto;
            padding: 12px 14px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .docs-endpoint-item {
            display: flex;
            flex-direction: column;
            gap: 3px;
            padding: 10px 14px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid transparent;
            text-decoration: none;
            color: var(--text);
            transition: all 0.15s ease;
            cursor: pointer;
        }
        .docs-endpoint-item:hover {
            background: rgba(0, 212, 255, 0.08);
            border-color: rgba(0, 212, 255, 0.25);
            transform: translateX(-2px);
        }
        .docs-endpoint-item .ep-top {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .docs-endpoint-item .ep-name {
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            font-weight: 600;
            color: #fff;
        }
        .docs-endpoint-item .ep-desc {
            font-size: 11px;
            color: var(--text-muted);
            margin-left: 2px;
        }
        .docs-endpoint-item .ep-method {
            font-size: 10px;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 4px;
            text-transform: uppercase;
        }
        .docs-endpoint-item .ep-method.get {
            background: rgba(0, 200, 83, 0.15);
            color: var(--green);
        }
        .docs-endpoint-item .ep-method.post {
            background: rgba(0, 212, 255, 0.15);
            color: var(--cyan);
        }

        /* Efeito de destaque ao rolar até o endpoint */
        .ep-card-highlight {
            outline: 2px solid var(--cyan) !important;
            box-shadow: 0 0 30px rgba(0, 212, 255, 0.55) !important;
            transition: all 0.3s ease;
        }