/* ─── Reset & Base ─── */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html,
        body {
            height: 100%;
            overflow: hidden;
        }

        body {
            font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Menlo', 'Consolas', monospace;
            background: radial-gradient(ellipse at 30% 20%, #0b1329 0%, #02040a 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            margin: 0;
            min-height: 100vh;
            color: #e2e8f0;
        }

        /* ─── Terminal Container ─── */
        .terminal-wrapper {
            width: 100%;
            max-width: 820px;
            max-height: 96vh;
            background: linear-gradient(145deg, #0b1329, #060d1f);
            border-radius: 28px;
            border: 1.5px solid rgba(34, 211, 238, 0.15);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(34, 211, 238, 0.04);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: border-color 0.3s;
        }

        .terminal-wrapper:focus-within {
            border-color: rgba(34, 211, 238, 0.35);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 60px rgba(34, 211, 238, 0.07);
        }

        /* ─── Header ─── */
        .terminal-header {
            padding: 14px 22px 12px 22px;
            background: rgba(2, 4, 10, 0.7);
            backdrop-filter: blur(4px);
            border-bottom: 1px solid rgba(34, 211, 238, 0.08);
            display: flex;
            align-items: center;
            gap: 14px;
            flex-shrink: 0;
            user-select: none;
        }

        .header-dots {
            display: flex;
            gap: 9px;
            align-items: center;
        }

        .header-dots span {
            width: 13px;
            height: 13px;
            border-radius: 50%;
            display: inline-block;
            transition: opacity 0.2s;
        }

        .header-dots .dot-red { background: #ff5f57; }
        .header-dots .dot-yellow { background: #ffbd2e; }
        .header-dots .dot-green { background: #28c840; }

        .header-title {
            flex: 1;
            text-align: center;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0.4px;
            color: rgba(255, 255, 255, 0.5);
            text-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
        }

        .header-title strong {
            background: linear-gradient(135deg, #22d3ee, #0284c7);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 600;
        }

        .header-version {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.2);
            letter-spacing: 0.3px;
            padding: 2px 10px;
            border-radius: 20px;
            border: 1px solid rgba(34, 211, 238, 0.08);
        }

        /* ─── Output Area ─── */
        .terminal-output {
            flex: 1;
            min-height: 280px;
            max-height: 540px;
            padding: 20px 22px 12px 22px;
            overflow-y: auto;
            overflow-x: hidden;
            scroll-behavior: smooth;
            display: flex;
            flex-direction: column;
            gap: 4px;
            background: rgba(2, 4, 10, 0.3);
            position: relative;
        }

        .terminal-output::-webkit-scrollbar {
            width: 5px;
        }
        .terminal-output::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 10px;
        }
        .terminal-output::-webkit-scrollbar-thumb {
            background: rgba(34, 211, 238, 0.25);
            border-radius: 10px;
        }
        .terminal-output::-webkit-scrollbar-thumb:hover {
            background: rgba(34, 211, 238, 0.4);
        }

        /* ─── Output Lines ─── */
        .line {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: 4px 8px;
            font-size: 15px;
            line-height: 1.6;
            padding: 2px 0;
            animation: fadeInLine 0.18s ease-out;
            word-break: break-word;
        }

        @keyframes fadeInLine {
            0% { opacity: 0; transform: translateY(4px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        .line .prompt {
            color: #22d3ee;
            font-weight: 500;
            flex-shrink: 0;
            text-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
        }

        .line .prompt-input {
            color: #a5f3fc;
            font-weight: 400;
        }

        .line .text-cyan { color: #22d3ee; }
        .line .text-sky { color: #7dd3fc; }
        .line .text-green { color: #4ade80; }
        .line .text-amber { color: #fbbf24; }
        .line .text-rose { color: #fb7185; }
        .line .text-white { color: #f1f5f9; }
        .line .text-dim { color: rgba(255, 255, 255, 0.35); }
        .line .text-blue { color: #818cf8; }
        .line .text-glow { text-shadow: 0 0 16px rgba(34, 211, 238, 0.25); }

        .line .url-highlight {
            color: #38bdf8;
            text-decoration: underline;
            text-decoration-style: dotted;
            text-underline-offset: 3px;
            text-decoration-color: rgba(56, 189, 248, 0.25);
        }

        .line .badge {
            display: inline-block;
            font-size: 11px;
            font-weight: 600;
            padding: 0 10px;
            border-radius: 20px;
            letter-spacing: 0.3px;
            background: rgba(34, 211, 238, 0.08);
            border: 1px solid rgba(34, 211, 238, 0.12);
            color: #22d3ee;
            text-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
        }

        .line .badge-success {
            background: rgba(74, 222, 128, 0.08);
            border-color: rgba(74, 222, 128, 0.15);
            color: #4ade80;
        }

        .line .badge-warn {
            background: rgba(251, 191, 36, 0.08);
            border-color: rgba(251, 191, 36, 0.15);
            color: #fbbf24;
        }

        /* ─── Iframe Container ─── */
        .iframe-container {
            margin: 10px 0 6px 0;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid rgba(34, 211, 238, 0.1);
            background: #02040a;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            transition: border-color 0.3s, box-shadow 0.3s;
            width: 100%;
            position: relative;
        }

        .iframe-container iframe {
            display: block;
            width: 100%;
            height: 380px;
            border: none;
            background: #02040a;
        }

        .iframe-container .iframe-loader {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(2, 4, 10, 0.7);
            backdrop-filter: blur(2px);
            color: rgba(255, 255, 255, 0.3);
            font-size: 14px;
            gap: 12px;
            transition: opacity 0.4s;
            pointer-events: none;
        }

        .iframe-container .iframe-loader.hidden { opacity: 0; }

        .iframe-container .iframe-loader .spinner {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 2.5px solid rgba(34, 211, 238, 0.08);
            border-top-color: #22d3ee;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin { to { transform: rotate(360deg); } }

        .iframe-container .iframe-status {
            position: absolute;
            top: 10px;
            right: 14px;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.2);
            background: rgba(2, 4, 10, 0.6);
            backdrop-filter: blur(4px);
            padding: 2px 14px;
            border-radius: 20px;
            border: 1px solid rgba(34, 211, 238, 0.06);
            pointer-events: none;
            z-index: 2;
            font-family: 'JetBrains Mono', monospace;
        }

        /* ─── Input Area ─── */
        .terminal-input-row {
            padding: 10px 22px 18px 22px;
            background: rgba(2, 4, 10, 0.5);
            backdrop-filter: blur(2px);
            border-top: 1px solid rgba(34, 211, 238, 0.06);
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
            transition: border-color 0.3s;
        }

        .terminal-input-row:focus-within {
            border-top-color: rgba(34, 211, 238, 0.15);
        }

        .input-prompt {
            color: #22d3ee;
            font-weight: 500;
            font-size: 16px;
            flex-shrink: 0;
            text-shadow: 0 0 12px rgba(34, 211, 238, 0.1);
        }

        .input-prompt span { opacity: 0.4; font-weight: 300; }

        .terminal-input {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: #e2e8f0;
            font-family: inherit;
            font-size: 16px;
            line-height: 1.5;
            padding: 4px 0;
            min-width: 60px;
            letter-spacing: 0.2px;
            caret-color: #22d3ee;
        }

        .terminal-input::placeholder {
            color: rgba(255, 255, 255, 0.12);
            font-size: 14px;
            font-weight: 300;
            letter-spacing: 0.2px;
        }

        .terminal-input:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .input-hint {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.12);
            flex-shrink: 0;
            padding: 2px 10px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.03);
            display: none;
            letter-spacing: 0.2px;
        }

        .input-hint.show { display: inline-block; }

        /* ─── Responsive ─── */
        @media (max-width: 640px) {
            body { padding: 8px; }
            .terminal-wrapper { border-radius: 18px; max-height: 98vh; }
            .terminal-header { padding: 10px 14px 8px 14px; gap: 10px; flex-wrap: wrap; }
            .header-dots span { width: 11px; height: 11px; }
            .header-title { font-size: 12px; text-align: left; flex: 1; }
            .header-version { font-size: 9px; padding: 1px 8px; }
            .terminal-output { padding: 14px 14px 8px 14px; min-height: 180px; max-height: 420px; }
            .line { font-size: 14px; line-height: 1.5; gap: 2px 6px; }
            .terminal-input-row { padding: 8px 14px 14px 14px; gap: 6px; flex-wrap: wrap; }
            .input-prompt { font-size: 14px; }
            .terminal-input { font-size: 14px; min-width: 40px; }
            .iframe-container iframe { height: 240px; }
            .iframe-container .iframe-status { font-size: 9px; top: 6px; right: 10px; padding: 1px 10px; }
            .input-hint { font-size: 10px; padding: 1px 8px; }
            .line .badge { font-size: 10px; padding: 0 8px; }
        }

        @media (max-width: 400px) {
            .terminal-output { padding: 10px 10px 6px 10px; min-height: 140px; max-height: 300px; }
            .line { font-size: 13px; }
            .terminal-input-row { padding: 6px 10px 10px 10px; }
            .terminal-input { font-size: 13px; }
            .iframe-container iframe { height: 180px; }
            .header-title { font-size: 10px; }
        }

        /* ─── Utilities ─── */
        .hidden { display: none !important; }
        .mt-1 { margin-top: 4px; }
        .mt-2 { margin-top: 10px; }
        .mb-1 { margin-bottom: 4px; }
        .flex-center { display: flex; align-items: center; gap: 8px; }
        .gap-2 { gap: 8px; }

        .terminal-output { scrollbar-width: thin; scrollbar-color: rgba(34, 211, 238, 0.2) transparent; }
        ::selection { background: rgba(34, 211, 238, 0.15); color: #fff; }

        @keyframes pulseGlow {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }
        .pulse-glow { animation: pulseGlow 1.2s ease-in-out infinite; }
        
        /* ─── Donation Section ─── */
.donation-container {
    width: 100%;
    max-width: 820px;
    margin-top: 16px;
    flex-shrink: 0;
}

.donation-card {
    background: rgba(11, 19, 41, 0.8);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(34, 211, 238, 0.15);
    border-radius: 20px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s;
}

.donation-card:hover {
    border-color: rgba(34, 211, 238, 0.35);
}

.donation-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.donation-icon {
    font-size: 1.4rem;
}

.donation-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.donation-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.donation-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.15s ease, background 0.2s, box-shadow 0.2s;
    color: #0d1117;
}

.donate-idr {
    background: #38bdf8;
}

.donate-kofi {
    background: #ffd966;
}

.donate-crypto {
    background: #4ade80;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Fix Body Layout for Scrollability */
body {
    flex-direction: column;
    overflow-y: auto;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .donation-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
    }
    .donation-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    .donate-btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}
