body.docs-page {
    touch-action: manipulation;
    background-color: #f8fafc;
    background-image: radial-gradient(#c4b5fd 0.5px, transparent 0.5px);
    background-size: 24px 24px;
}
.docs-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://c.termai.cc/i135/xqR.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}
.docs-page ::-webkit-scrollbar { width: 10px; height: 10px; }
.docs-page ::-webkit-scrollbar-track { background: #e2e8f0; border-left: 2px solid #c4b5fd; }
.docs-page ::-webkit-scrollbar-thumb { background: #8b5cf6; border: 2px solid #e2e8f0; }
.docs-page ::-webkit-scrollbar-thumb:hover { background: #7c3aed; }
.docs-page .scanline {
    width: 100%; height: 100px; z-index: 10;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1; position: absolute; bottom: 100%;
    animation: scanline 8s linear infinite; pointer-events: none;
}
@keyframes scanline { 
    0% { bottom: 100%; } 
    100% { bottom: -100%; } 
}
.docs-page .crt-text { text-shadow: 0 0 2px rgba(139, 92, 246, 0.2); }
.docs-page .marquee-container { 
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
}
@keyframes ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } 
}
.docs-page .animate-ticker { 
    animation: ticker 25s linear infinite; 
    white-space: nowrap; 
    display: inline-block; 
    padding-left: 100%; 
}
@keyframes spin { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}
.docs-page .animate-spin-slow { 
    animation: spin 4s linear infinite; 
}
.docs-page .json-key { color: #8b5cf6; font-weight: bold; } 
.docs-page .json-string { color: #0ea5e9; } 
.docs-page .json-number { color: #f59e0b; } 
.docs-page .json-boolean { color: #10b981; font-weight: bold; } 
.docs-page .json-null { color: #94a3b8; font-style: italic; } 
.docs-page .term-success { color: #10b981; }
.docs-page .term-error { color: #ef4444; }
.docs-page .term-warn { color: #f59e0b; }
.docs-page .term-info { color: #38bdf8; }
body.landing-page {
    background-color: #f3f4f6;
    background-image: 
        linear-gradient(#e5e7eb 1px, transparent 1px),
        linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
    background-size: 24px 24px;
    touch-action: manipulation;
}
.landing-page ::-webkit-scrollbar { width: 8px; }
.landing-page ::-webkit-scrollbar-track { background: #fff; border-left: 2px solid #000; }
.landing-page ::-webkit-scrollbar-thumb { background: #000; }
.landing-page ::-webkit-scrollbar-thumb:hover { background: #333; }
.landing-page .skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 0px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}
@keyframes shine {
    to { background-position-x: -200%; }
}
body.donasi-page {
    background-color: #f3f4f6;
    background-image: 
        linear-gradient(#e5e7eb 1px, transparent 1px),
        linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
    background-size: 24px 24px;
    touch-action: manipulation;
    user-select: none; 
    -webkit-tap-highlight-color: transparent;
}
.donasi-page ::-webkit-scrollbar { width: 0px; background: transparent; }
.donasi-page .animate-pop { 
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; 
}
@keyframes popUp { 
    0% { transform: scale(0.95); opacity: 0; } 
    100% { transform: scale(1); opacity: 1; } 
}
.donasi-page input, .donasi-page button { 
    border-radius: 0; 
    -webkit-appearance: none; 
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0c0c0c; border-left: 1px solid #333; }
::-webkit-scrollbar-thumb { background-color: #ffb000; border: 2px solid #0c0c0c; border-radius: 0px; }
::-webkit-scrollbar-thumb:hover { background-color: #ffcc00; }
::-webkit-scrollbar-corner { background: #0c0c0c; }
::selection { background: #ffb000; color: #000; }
body {
    background-image: radial-gradient(#333 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: #e0e0e0;
    scrollbar-width: thin;
    scrollbar-color: #ffb000 #0c0c0c;
}
pre { white-space: pre-wrap; word-wrap: break-word; }
.string { color: #a5d6ff; }
.number { color: #ff7b72; }
.boolean { color: #79c0ff; }
.key { color: #d2a8ff; }
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@400;600;800&display=swap');
body.code-page {
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --border: #30363d;
    --primary: #8b5cf6;
    --text-main: #c9d1d9;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    background-image: radial-gradient(#30363d 1px, transparent 1px);
    background-size: 24px 24px;
    min-height: 100vh;
}
body.code-page ::-webkit-scrollbar { width: 8px; height: 8px; }
body.code-page ::-webkit-scrollbar-track { background: var(--bg-dark); border: none;}
body.code-page ::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; border: none;}
body.code-page ::-webkit-scrollbar-thumb:hover { background: var(--primary); }
.snippet-card {
    background: #161b22;
    border: 1px solid #30363d;
    transition: all 0.2s ease;
}
.snippet-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}
.search-input {
    background: #161b22;
    border: 1px solid #30363d;
    transition: border-color 0.2s;
    color: white;
}
.search-input:focus {
    border-color: #8b5cf6;
    outline: none;
    box-shadow: 0 0 0 1px #8b5cf6;
}
.tag-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.code-page pre[class*="language-"] {
    margin: 0 !important;
    border-radius: 0 0 8px 8px !important;
    background: #0d1117 !important;
    border-top: 1px solid #30363d;
}
.code-page code[class*="language-"], .code-page pre[class*="language-"] {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 14px;
    text-shadow: none !important;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}
.window-header {
    background: #161b22;
    border: 1px solid #30363d;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
#view-detail {
    max-width: 900px !important;
    margin: 0 auto;
    padding-bottom: 40px;
}
#view-detail .bg-white {
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
    border-width: 1px !important;
    box-shadow: 3px 3px 0px 0px #8b5cf6 !important;
}
#viewTitle {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}
#viewDesc {
    font-size: 0.85rem !important;
    line-height: 1.5;
    color: #475569;
}
#view-detail .bg-term-bg {
    border-width: 1px !important;
    box-shadow: 3px 3px 0px 0px #8b5cf6 !important;
    border-radius: 20px;
    overflow: hidden;
    font-size: 12px !important;
}
#view-detail .bg-\[\#2d2d2d\] {
    padding: 8px 12px !important;
    height: 40px;
}
#view-detail pre {
    max-height: 60vh !important;
    overflow-y: auto !important;
    padding: 15px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    background: #1e1e1e !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
}
#view-detail pre::-webkit-scrollbar { width: 8px; height: 8px; }
#view-detail pre::-webkit-scrollbar-track { background: #1e1e1e; }
#view-detail pre::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
#view-detail pre::-webkit-scrollbar-thumb:hover { background: #8b5cf6; }
@media (max-width: 768px) {
    #view-detail {
        width: 95% !important;
        padding: 0 10px;
    }
    #viewTitle { font-size: 1.25rem !important; }
    #view-detail pre {
        font-size: 11px !important;
        max-height: 55vh !important;
    }
    #view-detail button {
        font-size: 9px !important;
        padding: 4px 8px !important;
    }
    body.code-page .code-card {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
    }
    body.code-page .code-card > div {
        width: 100%;
    }
    body.code-page #searchInput {
        height: 55px;
        font-size: 15px;
    }
    body.code-page #addCodeModal > div {
        width: 95%;
        margin: 0 auto;
    }
    body.code-page #tagFilters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    body.code-page #tagFilters button {
        flex-shrink: 0;
    }
}
.code-page .line-numbers .line-numbers-rows {
    border-right: 1px solid #30363d !important;
}
.code-page .line-numbers-rows > span:before {
    color: #6e7681 !important;
}
.code-page pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.code-page * {
    -webkit-tap-highlight-color: transparent;
}
.code-page button, 
.code-page .code-card,
.code-page input,
.code-page textarea {
    -webkit-tap-highlight-color: rgba(139, 92, 246, 0.1);
}
