/* ─── 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;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin: 0;
    min-height: 100vh;
    color: #e2e8f0;
    overflow-y: auto;
}

/* ─── 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;
}

/* ─── 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;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 211, 238, 0.2) transparent;
}

.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-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); }

/* ─── 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 Terminal ─── */
@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; }
    .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; }
    .input-hint { font-size: 10px; padding: 1px 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; }
    .header-title { font-size: 10px; }
}

/* ─── Utilities & Selection ─── */
.hidden { display: none; }
::selection { background: rgba(34, 211, 238, 0.15); color: #fff; }

/* ─── CLI Spinner ─── */
.cli-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(6, 182, 212, 0.2);
    border-top-color: #06b6d4;
    border-radius: 50%;
    animation: cli-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes cli-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── 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);
}

@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;
    }
}

/* ─── Navigation Buttons ─── */
.nav-modal-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    transition: color 0.2s;
}

.nav-modal-btn:hover {
    color: #22d3ee;
}

.footer-nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.footer-nav-btn:hover {
    color: #22d3ee;
}

/* ─── Modal Overlay Styling ─── */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.info-modal-overlay.hidden {
    display: none;
}

.info-modal-content {
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    background: linear-gradient(145deg, #0b1329, #060d1f);
    border: 1.5px solid rgba(34, 211, 238, 0.3);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(34, 211, 238, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.info-modal-header {
    padding: 12px 20px;
    background: rgba(2, 4, 10, 0.9);
    border-bottom: 1px solid rgba(34, 211, 238, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.info-modal-tabs {
    display: flex;
    gap: 8px;
}

.modal-tab-btn {
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.15);
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-tab-btn:hover {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.12);
}

.modal-tab-btn.active {
    background: #22d3ee;
    color: #02040a;
    border-color: #22d3ee;
    font-weight: 700;
}

.info-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.info-modal-close:hover {
    color: #fb7185;
}

.info-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    background: rgba(2, 4, 10, 0.3);
    color: #e2e8f0;
}

.info-modal-body::-webkit-scrollbar {
    width: 5px;
}
.info-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.info-modal-body::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.25);
    border-radius: 10px;
}

.modal-section {
    display: block;
}

.modal-section.hidden {
    display: none;
}

.modal-section .page-title {
    font-size: 22px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.modal-section .page-title .highlight {
    background: linear-gradient(135deg, #22d3ee, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-section .page-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.06);
    padding-bottom: 14px;
}

.modal-section .section-title {
    font-size: 15px;
    font-weight: 600;
    color: #22d3ee;
    margin-top: 22px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section .section-title .accent-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(34, 211, 238, 0.15), transparent);
}

.modal-section .body-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.modal-section .body-text strong {
    color: #f1f5f9;
    font-weight: 600;
}

.modal-section .body-text .cyan { color: #22d3ee; }
.modal-section .body-text .amber { color: #fbbf24; }

.modal-section .divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, rgba(34, 211, 238, 0.1), transparent);
    margin: 18px 0 14px 0;
}

.modal-section .feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0 8px 0;
}

.modal-section .feature-item {
    background: rgba(2, 4, 10, 0.5);
    border: 1px solid rgba(34, 211, 238, 0.06);
    border-radius: 14px;
    padding: 14px 16px;
    transition: border-color 0.2s, background 0.2s;
}

.modal-section .feature-item:hover {
    border-color: rgba(34, 211, 238, 0.15);
    background: rgba(2, 4, 10, 0.7);
}

.modal-section .feature-item .label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
    margin-bottom: 2px;
}

.modal-section .feature-item .value {
    font-size: 13.5px;
    color: #e2e8f0;
}

.modal-section .faq-item {
    border-bottom: 1px solid rgba(34, 211, 238, 0.05);
    padding: 14px 0 16px 0;
}

.modal-section .faq-item:last-child {
    border-bottom: none;
}

.modal-section .faq-q {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.modal-section .faq-q .q-badge {
    font-size: 11px;
    font-weight: 700;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.1);
    border-radius: 4px;
    padding: 0 8px;
    line-height: 20px;
    flex-shrink: 0;
}

.modal-section .faq-a {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
    .info-modal-body {
        padding: 16px;
    }
    .modal-section .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── SVG Icons (pengganti emoji) ─── */
.svg-icon {
    display: inline-block;
    vertical-align: -0.14em;
    flex-shrink: 0;
    pointer-events: none;
}

.donation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: #fbbf24;
    font-size: 0; /* netralkan font-size lama 1.4rem */
}

.donate-btn .svg-icon {
    vertical-align: middle;
}

.copy-btn,
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background: rgba(34, 211, 238, 0.22) !important;
}

.share-btn:hover {
    background: #262c36 !important;
}