:root {
    --bg: #0b0b0b;
    --bg-surface: #111111;
    --bg-raised: #181818;
    --bg-hover: #1e1e1e;
    --border: #242424;
    --border-mid: #2e2e2e;
    --text: #c8c8c8;
    --text-dim: #5a5a5a;
    --text-faint: #333333;
    --text-bright: #ebebeb;
    --accent: #4ade80;
    --accent-dim: rgba(74, 222, 128, 0.08);
    --accent-glow: rgba(74, 222, 128, 0.15);
    --red: #f87171;
    --blue: #60a5fa;
    --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', 'Liberation Mono', monospace;
    --sans: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

::selection {
    background: var(--accent-glow);
    color: var(--accent);
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.Container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px 80px;
    position: relative;
    z-index: 1;
}

.SiteHeader {
    padding: 48px 0 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.SiteHeader-left {}

.SiteLogo {
    font-family: var(--mono);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.SiteLogo-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    flex-shrink: 0;
    animation: Pulse 2.8s ease-in-out infinite;
}

@keyframes Pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
    50% { opacity: 0.5; box-shadow: 0 0 3px var(--accent); }
}

.SiteSubtitle {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-left: 17px;
}

.SiteHeader-right {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    text-align: right;
    line-height: 1.8;
}

.MotdBanner {
    background: var(--bg-surface);
    border: 1px solid var(--border-mid);
    border-left: 2px solid var(--blue);
    padding: 13px 18px;
    margin-bottom: 28px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: #93c5fd;
    display: none;
    letter-spacing: 0.01em;
}

.MotdBanner::before {
    content: '// ';
    color: var(--text-dim);
}

.MotdBanner.IsVisible {
    display: block;
}

.AdminPanel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 1px solid #2a3a2a;
    border-radius: 4px;
    padding: 22px 24px;
    margin-bottom: 28px;
    display: none;
}

.AdminPanel.IsVisible {
    display: block;
}

.AdminPanel-header {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.AdminPanel-header::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.AdminSection {
    margin-bottom: 18px;
}

.AdminSection:last-child { margin-bottom: 0; }

.AdminSection-title {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ToggleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.ToggleRow-label {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text);
}

.ToggleSwitch {
    position: relative;
    width: 38px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.ToggleSwitch input { display: none; }

.ToggleSlider {
    position: absolute;
    inset: 0;
    background: var(--border-mid);
    border-radius: 20px;
    transition: background 0.2s;
}

.ToggleSlider::before {
    position: absolute;
    content: '';
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: #555;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

input:checked + .ToggleSlider { background: rgba(74,222,128,0.2); border: 1px solid var(--accent); }
input:checked + .ToggleSlider::before { transform: translateX(18px); background: var(--accent); }

.MotdInputRow {
    display: flex;
    gap: 8px;
}

.MotdInputRow input { flex: 1; }
.MotdInputRow button { flex-shrink: 0; }

.EndpointCard {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.EndpointCard:hover { border-color: var(--border-mid); }

.EndpointCard-head {
    padding: 18px 22px 16px;
}

.EndpointCard-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.MethodBadge {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 2px;
    background: rgba(74, 222, 128, 0.07);
    color: var(--accent);
    border: 1px solid rgba(74, 222, 128, 0.2);
    text-transform: uppercase;
    white-space: nowrap;
}

.MethodBadge.IsPost {
    background: rgba(96, 165, 250, 0.07);
    color: var(--blue);
    border-color: rgba(96, 165, 250, 0.2);
}

.EndpointPath {
    font-family: var(--mono);
    font-size: 0.88rem;
    color: var(--text-bright);
    font-weight: 400;
}

.EndpointDesc {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 300;
    padding-left: 1px;
}

.TryIt {
    border-top: 1px solid var(--border);
    padding: 16px 22px 20px;
    background: var(--bg);
}

.InputGroup {
    margin-bottom: 12px;
}

.InputGroup label {
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

input[type="text"] {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 0.82rem;
    font-family: var(--mono);
    transition: border-color 0.15s;
    outline: none;
}

input[type="text"]:focus {
    border-color: var(--border-mid);
}

input[type="text"]::placeholder {
    color: var(--text-faint);
}

.BtnRow {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

button {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    background: var(--bg-raised);
    color: var(--text);
    border: 1px solid var(--border-mid);
    padding: 7px 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.12s;
    outline: none;
}

button:hover {
    background: var(--bg-hover);
    border-color: #3a3a3a;
    color: var(--text-bright);
}

button:active {
    transform: translateY(1px);
    opacity: 0.8;
}

.ResponseBox {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 14px;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: #888;
    max-height: 260px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    display: none;
    line-height: 1.65;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.ResponseBox.IsVisible { display: block; }

.ResponseBox-loading {
    color: var(--text-dim);
    font-style: italic;
}

.SectionLabel {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-faint);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 36px 0 14px;
}

.SiteFooter {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.SiteFooter-name {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    letter-spacing: 0.1em;
}

.SiteFooter-note {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-faint);
    text-align: right;
    line-height: 1.9;
}

.SiteFooter-note span {
    display: block;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 4px; }