*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: "Figtree", sans-serif;
    color: #e2e8f0;
}

/* ── Background image ── */
.bg {
    position: fixed;
    inset: 0;
    background-image: url("../assets/bg.jpg");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 10, 20, .82) 0%,
        rgba(10, 18, 35, .70) 50%,
        rgba(5, 10, 20, .85) 100%
    );
}

/* ── Layout ── */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.panel {
    width: 100%;
    max-width: 520px;
    background: rgba(10, 18, 35, .70);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem 1.75rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, .55);
}

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(34, 197, 94, .12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, .28);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .25rem .8rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

/* ── Heading ── */
h1 {
    font-size: 1.85rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.2;
    margin-bottom: .45rem;
}

h1 em { font-style: normal; color: #ff2d20; }

.sub {
    font-size: .82rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.sub strong { color: #64748b; font-weight: 500; }

.env {
    display: inline-block;
    background: rgba(96, 165, 250, .1);
    color: #60a5fa;
    border-radius: .25rem;
    padding: .05rem .35rem;
    font-size: .75rem;
    font-weight: 600;
}

/* ── Meta grid ── */
.meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: .6rem;
    padding: .7rem .9rem;
}

.meta-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: .2rem;
}

.meta-value {
    font-size: .85rem;
    font-weight: 500;
    color: #64748b;
}

/* ── Footer ── */
.footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: .7rem;
    color: #1e293b;
}

.footer code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    color: #334155;
    font-size: .7rem;
}


html, body {
    height: 100%;
    font-family: "Figtree", sans-serif;
    color: #e2e8f0;
}

/* ── Background image ── */
.bg {
    position: fixed;
    inset: 0;
    background-image: url("../assets/bg.jpg");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 10, 20, .82) 0%,
        rgba(10, 18, 35, .70) 50%,
        rgba(5, 10, 20, .85) 100%
    );
}

/* ── Layout ── */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

.panel {
    width: 100%;
    max-width: 580px;
    background: rgba(10, 18, 35, .70);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem 1.75rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, .55);
    margin: auto 0;
}

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(34, 197, 94, .12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, .28);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .25rem .8rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

/* ── Heading ── */
h1 {
    font-size: 1.85rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.2;
    margin-bottom: .45rem;
}

h1 em { font-style: normal; color: #ff2d20; }

.sub {
    font-size: .82rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.sub strong { color: #64748b; font-weight: 500; }

.env {
    display: inline-block;
    background: rgba(96, 165, 250, .1);
    color: #60a5fa;
    border-radius: .25rem;
    padding: .05rem .35rem;
    font-size: .75rem;
    font-weight: 600;
}

/* ── Group label ── */
.group-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: .5rem;
}

.group-label.mt { margin-top: 1rem; }

.group-label .guard {
    background: rgba(251, 146, 60, .1);
    color: #fb923c;
    border-radius: .25rem;
    padding: .05rem .35rem;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: none;
}

/* ── Endpoint card ── */
.ep {
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: .55rem;
    margin-bottom: .35rem;
    overflow: hidden;
    background: rgba(255, 255, 255, .02);
}

.ep-head {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .75rem;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}

.ep-head:hover { background: rgba(255, 255, 255, .04); }

.ep.open .ep-head { background: rgba(255, 255, 255, .04); }

.toggle-icon {
    margin-left: auto;
    font-size: .85rem;
    color: #334155;
    font-weight: 600;
    line-height: 1;
    transition: transform .2s;
}

.ep.open .toggle-icon { transform: rotate(45deg); color: #64748b; }

/* ── Method badges ── */
.method {
    font-size: .6rem;
    font-weight: 700;
    padding: .12rem .42rem;
    border-radius: .25rem;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
    font-family: 'SFMono-Regular', Consolas, monospace;
    letter-spacing: .04em;
}

.post { background: rgba(251, 146, 60, .14); color: #fb923c; }
.get  { background: rgba(96, 165, 250, .14); color: #60a5fa; }

.path {
    color: #64748b;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: .78rem;
}

/* ── Expandable body ── */
.ep-body {
    display: none;
    padding: 0 .75rem .75rem;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.ep.open .ep-body { display: block; }

.req-block, .res-block {
    margin-top: .6rem;
}

.block-label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: .3rem;
}

pre {
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: .4rem;
    padding: .6rem .8rem;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: .73rem;
    color: #94a3b8;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
}

/* ── HTTP status badges ── */
.status {
    display: inline-block;
    font-size: .6rem;
    font-weight: 700;
    padding: .1rem .4rem;
    border-radius: .25rem;
    margin-bottom: .3rem;
    font-family: 'SFMono-Regular', Consolas, monospace;
    letter-spacing: .04em;
}

.s200 { background: rgba(34, 197, 94, .12);  color: #4ade80; }
.s201 { background: rgba(34, 197, 94, .12);  color: #4ade80; }
.s401 { background: rgba(239, 68, 68, .12);  color: #f87171; }
.s403 { background: rgba(239, 68, 68, .12);  color: #f87171; }
.s422 { background: rgba(250, 204, 21, .10); color: #facc15; }

/* ── Footer ── */
.footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: .7rem;
    color: #1e293b;
}


html, body {
    height: 100%;
    font-family: "Figtree", sans-serif;
    color: #e2e8f0;
}

/* ── Background image ── */
.bg {
    position: fixed;
    inset: 0;
    background-image: url("../assets/bg.jpg");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 10, 20, .82) 0%,
        rgba(10, 18, 35, .70) 50%,
        rgba(5, 10, 20, .85) 100%
    );
}

/* ── Layout ── */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.panel {
    width: 100%;
    max-width: 520px;
    background: rgba(10, 18, 35, .65);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1.25rem;
    padding: 2.25rem 2rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, .55);
}

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(34, 197, 94, .12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, .28);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .25rem .8rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

/* ── Heading ── */
h1 {
    font-size: 1.9rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.2;
    margin-bottom: .5rem;
}

h1 em {
    font-style: normal;
    color: #ff2d20;
}

.sub {
    font-size: .88rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding-bottom: 1.25rem;
}

.sub strong {
    color: #94a3b8;
    font-weight: 500;
}

/* ── Meta grid ── */
.meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: .6rem;
    padding: .7rem .9rem;
}

.meta-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: .2rem;
}

.meta-value {
    font-size: .85rem;
    font-weight: 500;
    color: #94a3b8;
}

/* ── Endpoint list ── */
.section-title {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: .65rem;
}

.endpoint {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .7rem;
    border-radius: .45rem;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .05);
    margin-bottom: .35rem;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: .78rem;
}

.method {
    font-size: .62rem;
    font-weight: 700;
    padding: .12rem .42rem;
    border-radius: .25rem;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.post { background: rgba(251, 146, 60, .14); color: #fb923c; }
.get  { background: rgba(96, 165, 250, .14); color: #60a5fa; }

.path { color: #64748b; }

/* ── Footer ── */
.footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .72rem;
    color: #1e293b;
}
