/* Project Halo styles. Edit file ini saja untuk ubah tampilan. */
:root {
    --ink: #16141d;
    --ink-soft: rgba(22, 20, 29, 0.55);
    --base: #100e17;
    --base-2: #17141f;
    /* Glass is reserved for the navbar only */
    --glass: rgba(255, 255, 255, 0.07);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.16);
    /* Soft-neobrutalism surfaces: solid, opaque, chunky-bordered */
    --surface: #1D1A28;
    --surface-2: #241F32;
    --stroke: #F6F4EF;
    --stroke-soft: rgba(246, 244, 239, 0.7);
    --text-primary: #f6f4ef;
    --text-secondary: #b7b2c4;
    --text-muted: #837e93;
    --mint: #8FEFC0;
    --lilac: #B9A6FF;
    --coral: #FF9B7A;
    --butter: #FFE08A;
    --danger: #FF6B6B;
    --radius-sm: 16px;
    --radius-md: 22px;
    --radius-lg: 28px;
    --pop: 6px;
    --ease-pop: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Ambient liquid-glass background */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--base);
    background-image: radial-gradient(circle at 20% 10%, #1a1725 0%, transparent 55%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.blob-mint {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, var(--mint), transparent 70%);
}

.blob-lilac {
    width: 480px;
    height: 480px;
    top: 20%;
    right: -160px;
    background: radial-gradient(circle, var(--lilac), transparent 70%);
}

.blob-coral {
    width: 380px;
    height: 380px;
    bottom: -140px;
    left: 30%;
    background: radial-gradient(circle, var(--coral), transparent 70%);
}

.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Shared soft-neobrutalism primitive
   Solid surface, thick off-white stroke, hard offset shadow.
   No blur, no transparency: that's reserved for the navbar. */
.stat-card,
.search-box input,
.category-folder,
.endpoint-card,
.btn,
.hero-tag,
.status-pill,
.btn-back,
.form-control,
.folder-icon {
    border: 3px solid var(--stroke);
    background: var(--surface);
}

/* Navbar: the one glassmorphic surface */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-left: none;
    border-top: none;
    border-right: none;
    border-bottom: 2.5px solid var(--glass-border);
    background: rgba(16, 14, 23, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--butter);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--stroke);
    box-shadow: 4px 4px 0 var(--coral);
    overflow: hidden;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.brand-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--ink);
    background: var(--mint);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    margin-left: 6px;
    border: 2px solid var(--stroke);
    transform: rotate(-3deg);
    display: inline-block;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 12px;
    border-radius: 20px;
    border-color: var(--stroke);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
    box-shadow: 4px 4px 0 var(--mint);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--mint);
    box-shadow: 0 0 8px var(--mint);
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px;
    flex: 1;
}


/* Logo video (pojok kiri atas) */
.navbar .nav-logo {
    position: relative;
    width: 46px; height: 46px;
    border: 0; border-radius: 50%;
    background: none; box-shadow: none;
    padding: 0; overflow: hidden;
    display: block; flex: none;
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* fix clip bulat di Safari */
    clip-path: circle(50% at 50% 50%);
}
.nav-logo video,
.nav-logo img.logo-fallback {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; pointer-events: none;
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none;
}
.nav-logo .logo-shield { position: absolute; inset: 0; z-index: 2; }
.nav-logo video::-webkit-media-controls,
.nav-logo video::-webkit-media-controls-enclosure { display: none !important; }

/* Navbar system */
.navbar {
    transition: transform 0.45s var(--ease-pop), background 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}
.navbar.is-hidden { transform: translateY(-100%); }
.navbar.is-scrolled { background: rgba(16, 14, 23, 0.78); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25); }
.nav-container { gap: 14px; }
.nav-links {
    position: relative;
    display: flex; align-items: center; gap: 2px;
    padding: 4px;
    border: 2.5px solid var(--glass-border);
    border-radius: 18px;
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.nav-link {
    position: relative; z-index: 1;
    padding: 7px 14px;
    border-radius: 14px;
    font-size: 0.82rem; font-weight: 800;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--ink); }
.nav-indicator {
    position: absolute; z-index: 0; top: 4px; left: 0;
    height: calc(100% - 8px); width: 0;
    border-radius: 14px;
    background: var(--mint);
    border: 2px solid var(--stroke);
    box-shadow: 3px 3px 0 var(--lilac);
    transition: transform 0.45s var(--ease-spring), width 0.45s var(--ease-spring);
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    align-items: center; justify-content: center;
    border: 3px solid var(--stroke);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: 3px 3px 0 var(--coral);
    cursor: pointer;
    transition: transform 0.18s var(--ease-pop), box-shadow 0.18s var(--ease-pop);
}
.nav-toggle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--coral); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2.5px; border-radius: 2px;
    background: currentColor; position: relative;
    transition: transform 0.3s var(--ease-pop), background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-drawer {
    display: none;
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    overflow: hidden; max-height: 0;
    transition: max-height 0.4s var(--ease-pop);
}
.nav-drawer.open { max-height: 260px; }
.nav-drawer a {
    display: block; margin-bottom: 8px; padding: 12px 16px;
    border: 3px solid var(--stroke); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text-primary);
    font-weight: 800; font-size: 0.9rem; text-decoration: none;
    box-shadow: 4px 4px 0 var(--lilac);
}
.nav-drawer a:last-child { margin-bottom: 14px; }
@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-toggle, .nav-drawer { display: none; }
    .status-pill span { display: none; }
    .status-pill { padding: 10px; }
    .brand-badge { display: none; }
    .brand-title { font-size: 0.95rem; }
}
.dev-line { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); display: block; margin-top: 1px; }
html { scroll-padding-top: 90px; }

/* Hero */
.hero {
    padding: 28px 0 34px;
    text-align: center;
    position: relative;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border-color: var(--stroke);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
    transform: rotate(-2.5deg);
    box-shadow: 4px 4px 0 var(--coral);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.12;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-shadow: 5px 5px 0 rgba(185, 166, 255, 0.4);
}

.hero-desc {
    font-size: 0.96rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 26px;
    line-height: 1.55;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    max-width: 780px;
    margin: 0 auto;
}

.stat-card {
    border-color: var(--stroke);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    text-align: left;
    will-change: transform, box-shadow;
    box-shadow: var(--pop) var(--pop) 0 var(--ink);
    transition: transform 0.18s var(--ease-pop), box-shadow 0.18s var(--ease-pop);
}

.stat-card:nth-child(odd) { transform: rotate(-1deg); }
.stat-card:nth-child(even) { transform: rotate(1deg); }

.stat-card:nth-child(1) { box-shadow: var(--pop) var(--pop) 0 var(--mint); }
.stat-card:nth-child(2) { box-shadow: var(--pop) var(--pop) 0 var(--lilac); }
.stat-card:nth-child(3) { box-shadow: var(--pop) var(--pop) 0 var(--coral); }
.stat-card:nth-child(4) { box-shadow: var(--pop) var(--pop) 0 var(--butter); }

.stat-card:hover {
    transform: translate(3px, 3px) rotate(0deg);
    box-shadow: 2px 2px 0 var(--ink);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Panel spek server */
.server-info { margin: 0 0 8px; }
.server-grid { max-width: 100%; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.srv-value { font-size: 1.05rem; word-break: break-word; }
.srv-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 3px; word-break: break-word; }
.srv-meta { text-align: center; font-size: 0.72rem; color: var(--text-muted); margin-top: 16px; line-height: 1.5; }

/* Search */
.search-container {
    margin: 34px 0 24px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    border-color: var(--stroke);
    border-radius: var(--radius-md);
    padding: 15px 18px 15px 46px;
    color: var(--text-primary);
    font-size: 0.92rem;
    outline: none;
    box-shadow: var(--pop) var(--pop) 0 var(--ink);
    transition: all 0.2s var(--ease-pop);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--ink);
    background: var(--surface-2);
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

/* View transitions */
.view-stage {
    position: relative;
    min-height: 350px;
    overflow: hidden;
}

.view-panel {
    width: 100%;
    transition: transform 0.35s var(--ease-pop), opacity 0.35s var(--ease-pop);
    will-change: transform, opacity;
}

.view-panel.slide-out-left {
    transform: translate3d(-30px, 0, 0);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

.view-panel.slide-in-right {
    transform: translate3d(30px, 0, 0);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

.view-panel.active {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* Category cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.category-folder {
    border-color: var(--stroke);
    border-radius: var(--radius-lg);
    padding: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    will-change: transform, box-shadow;
    box-shadow: 8px 8px 0 var(--ink);
    transition: transform 0.18s var(--ease-pop), box-shadow 0.18s var(--ease-pop), background 0.18s ease;
    user-select: none;
}

.category-folder:nth-child(6n+1) { box-shadow: 8px 8px 0 var(--mint); border-color: var(--mint); }
.category-folder:nth-child(6n+2) { box-shadow: 8px 8px 0 var(--lilac); border-color: var(--lilac); }
.category-folder:nth-child(6n+3) { box-shadow: 8px 8px 0 var(--coral); border-color: var(--coral); }
.category-folder:nth-child(6n+4) { box-shadow: 8px 8px 0 var(--butter); border-color: var(--butter); }
.category-folder:nth-child(6n+5) { box-shadow: 8px 8px 0 var(--mint); border-color: var(--mint); }
.category-folder:nth-child(6n+6) { box-shadow: 8px 8px 0 var(--lilac); border-color: var(--lilac); }

.category-folder:hover {
    background: var(--surface-2);
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 var(--ink);
}

.category-folder:active {
    transform: translate(8px, 8px);
    box-shadow: 0 0 0 var(--ink);
}

.folder-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.folder-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    color: var(--text-primary);
    border-color: var(--stroke);
    transition: transform 0.25s var(--ease-spring);
}

.category-folder:hover .folder-icon {
    transform: scale(1.12) rotate(-6deg);
}

.folder-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    text-transform: capitalize;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.folder-badge {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--surface-2);
    border: 2px solid var(--stroke-soft);
    border-radius: 8px;
    padding: 2px 8px;
}

.folder-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 2.5px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s var(--ease-pop);
}

.category-folder:hover .folder-arrow {
    background: var(--butter);
    color: var(--ink);
    border-color: var(--ink);
    transform: translateX(4px) rotate(-8deg);
}

/* Detail header */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 3px dashed var(--stroke-soft);
    flex-wrap: wrap;
    gap: 10px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-color: var(--stroke);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--ink);
    transition: all 0.16s var(--ease-pop);
}

.btn-back:hover {
    background: var(--butter);
    color: var(--ink);
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--ink);
}

.btn-back:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--ink);
}

.detail-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: capitalize;
}

/* Endpoint cards */
.endpoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

@media (max-width: 480px) {
    .endpoints-grid {
        grid-template-columns: 1fr;
    }
}

.endpoint-card {
    border-color: var(--stroke);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    will-change: transform, box-shadow;
    box-shadow: 6px 6px 0 var(--ink);
    transition: all 0.18s var(--ease-pop);
}

.endpoint-card.card-get { box-shadow: 6px 6px 0 var(--mint); border-color: var(--mint); }
.endpoint-card.card-post { box-shadow: 6px 6px 0 var(--coral); border-color: var(--coral); }

.endpoint-card:hover {
    background: var(--surface-2);
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--ink);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.method-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    border: 2.5px solid var(--stroke);
    transform: rotate(-3deg);
    display: inline-block;
    box-shadow: 2px 2px 0 var(--ink);
}

.method-get {
    background: var(--mint);
    color: var(--ink);
}

.method-post {
    background: var(--coral);
    color: var(--ink);
}

.endpoint-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 7px;
    color: var(--text-primary);
}

.endpoint-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--stroke-soft);
    padding: 7px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.endpoint-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 18px;
    min-height: 36px;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    border-color: var(--stroke);
    outline: none;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--ink);
    transition: all 0.16s var(--ease-pop);
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--ink);
}

.btn-primary {
    background: var(--lilac);
    color: var(--ink);
    flex: 1;
}

.btn-primary:hover {
    background: var(--mint);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.btn-icon {
    padding: 9px;
    color: var(--text-secondary);
    border-color: var(--stroke);
    border-radius: 12px;
}

.btn-icon:hover {
    background: var(--surface-2);
    color: var(--text-primary);
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--ink);
}

/* Inline API tester (lives in the card, no modal) */
.test-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 3px dashed var(--stroke-soft);
}

.test-panel-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink);
    background: var(--butter);
    border: 2px solid var(--stroke);
    border-radius: 7px;
    padding: 3px 9px;
    margin-bottom: 12px;
    transform: rotate(-1.5deg);
    box-shadow: 2px 2px 0 var(--ink);
}

.params-form {
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border-color: var(--stroke);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.16s var(--ease-pop);
}

.form-control:focus {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--mint);
}

.response-container {
    margin-top: 20px;
    display: none;
}

.response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.response-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    border: 2px solid var(--stroke);
    background: var(--mint);
    color: var(--ink);
}

.response-body {
    background: #08070c;
    border: 2.5px solid var(--stroke-soft);
    border-radius: 12px;
    padding: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #d1d5db;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Footer */
footer {
    border-top: 3px dashed var(--stroke-soft);
    padding: 26px 20px;
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.footer-link {
    color: var(--text-primary);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 3px solid var(--mint);
}

.swal2-popup.swal-ios {
    background: var(--surface) !important;
    border: 3px solid var(--stroke) !important;
    border-radius: 16px !important;
    box-shadow: 5px 5px 0 var(--lilac) !important;
    color: #ffffff !important;
}

.swal2-title {
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1rem !important;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

/* Focus & motion accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.category-folder:focus-visible,
.endpoint-card:focus-visible {
    outline: 2.5px solid var(--mint);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .blob { display: none; }
}


/* Dipasang di dalam shell: sisakan ruang untuk navbar bawah */
html.is-embedded body { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
html.is-embedded .grain-overlay { display: none; }


/* Floating button menu (mobile), menggantikan hamburger di navbar atas */
@media (max-width: 720px) { .fab-wrap { display: block !important; } }
.fab-wrap { display: none; position: fixed; right: 16px; bottom: calc(128px + env(safe-area-inset-bottom, 0px)); z-index: 900; }
.fab {
    width: 54px; height: 54px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 0;
    border: 3px solid var(--stroke); background: var(--surface); color: var(--text-primary);
    box-shadow: 4px 4px 0 var(--coral);
    transition: transform 0.18s var(--ease-pop), box-shadow 0.18s var(--ease-pop);
}
.fab:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--coral); }
.fab svg { grid-area: 1 / 1; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round;
    transition: transform 0.45s var(--ease-spring), opacity 0.2s ease; }
.fab .ic-close { opacity: 0; transform: rotate(-90deg) scale(.4); }
.fab-wrap.open .fab .ic-menu { opacity: 0; transform: rotate(90deg) scale(.4); }
.fab-wrap.open .fab .ic-close { opacity: 1; transform: none; }
.fab-menu { position: absolute; right: 0; bottom: 68px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.fab-menu a {
    display: block; white-space: nowrap; text-decoration: none; font-weight: 800; font-size: 0.85rem;
    padding: 11px 18px; border-radius: 999px; border: 3px solid var(--stroke);
    background: var(--surface); color: var(--text-primary); box-shadow: 4px 4px 0 var(--lilac);
    opacity: 0; transform: translateY(18px) scale(.85); transform-origin: right bottom;
    transition: opacity 0.2s ease, transform 0.4s var(--ease-spring), background 0.2s, color 0.2s;
    transition-delay: calc(var(--i) * 25ms);
}
.fab-menu a.active { background: var(--mint); color: var(--ink); }
.fab-wrap.open .fab-menu { pointer-events: auto; }
.fab-wrap.open .fab-menu a { opacity: 1; transform: none; transition-delay: calc((2 - var(--i)) * 45ms); }
.fab-scrim { position: fixed; inset: 0; z-index: -1; display: none; }
.fab-wrap.open .fab-scrim { display: block; }
@media (prefers-reduced-motion: reduce) { .fab, .fab svg, .fab-menu a { transition: none; } }

/* Tombol pilihan parameter (format, bahasa, mode) + link API terpakai */
.opt-group { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-btn {
    font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer;
    padding: 6px 12px; border-radius: 10px; border: 2px solid var(--ink);
    background: var(--surface-2); color: var(--text-muted);
    box-shadow: 2px 2px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.opt-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.opt-btn.active { background: var(--mint); color: var(--ink); }
.opt-hint { display: block; margin-top: 5px; font-size: 0.7rem; color: var(--text-muted); line-height: 1.35; }
.response-url { padding: 8px 12px; border-bottom: 2px solid var(--ink); background: var(--surface-2); }
.used-label { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.used-row { display: flex; align-items: flex-start; gap: 8px; }
.used-row a { flex: 1; min-width: 0; font-size: 0.74rem; color: var(--mint); word-break: break-all; text-decoration: none; }
