/* ==========================================================================
   CryptoVerse Core Variables
   ========================================================================== */
:root {
    --bg-space: #060913;
    --neon-blue: #00f0ff;
    --neon-glow: rgba(0, 240, 255, 0.4);
    --glass-bg: rgba(15, 22, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-muted: #8492a6;
    --dark-inactive: #0f172a;
}

/* ==========================================================================
   Global & Body Styles
   ========================================================================== */
body {
    background-color: var(--bg-space);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(138, 43, 226, 0.06) 0%, transparent 40%);
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography Customization */
.heading-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 15px var(--neon-glow);
}

.space-font {
    font-family: 'Space Grotesk', sans-serif;
}

/* ==========================================================================
   Glassmorphism Layout Components
   ========================================================================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Sidebar Navigation Menu (Enhanced Active Indicators)
   ========================================================================== */
.algo-selector-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    border-radius: 14px;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 600;
    width: 100%;
    position: relative;
    padding-left: 20px;
}

.algo-selector-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

/* Efek Spesifik saat Menu Algoritma Aktif */
.algo-selector-btn.active {
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1), inset 0 0 10px rgba(0, 240, 255, 0.05);
    font-weight: 700;
}

/* Garis Vertikal Neon Kiri */
.algo-selector-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 4px;
    background-color: var(--neon-blue);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--neon-blue);
}

/* Icon Lebih Terang saat Aktif */
.algo-selector-btn.active i {
    color: #ffffff !important;
    text-shadow: 0 0 8px var(--neon-blue);
}

/* ==========================================================================
   Model Segmented Button Toggle (Fix UI Selalu Terlihat)
   ========================================================================== */
.segmented-control {
    background: var(--dark-inactive);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: inline-flex;
    width: 260px; /* Ukuran proporsional box segmented */
}

.segmented-control .mode-pill {
    flex: 1;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 0;
    color: var(--text-muted) !important;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

/* State ketika input radio di-check (Mode Aktif Neon Cyan) */
.btn-check:checked + .mode-pill {
    background-color: rgba(0, 240, 255, 0.15) !important;
    color: var(--neon-blue) !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

.segmented-control .mode-pill:hover {
    color: #fff;
    background: rgba(255,255,255,.05);
}

/* ==========================================================================
   Neon Form & Spacing Increases
   ========================================================================== */
.form-group-spaced {
    margin-bottom: 2rem !important; /* Spacing ekstra aman antara Judul, Input, Key, & Button */
}

.form-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem; /* Jarak label ke area input */
}

.form-control, .form-select {
    background: rgba(5, 8, 16, 0.8) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 14px 18px; /* Lebih gemuk dan nyaman */
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 15px var(--neon-glow) !important;
    outline: none;
}

/* ==========================================================================
   Action Buttons (Resized to 55% Centered)
   ========================================================================== */
.btn-neon-trigger {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-weight: 700;
    border-radius: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-neon-trigger:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 25px var(--neon-glow);
    transform: translateY(-2px);
}

/* ==========================================================================
   Terminal Console Viewport
   ========================================================================== */
.terminal-output {
    background: rgba(3, 5, 10, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'SFMono-Regular', Consolas, monospace;
    min-height: 180px;
    color: #e2e8f0;
    margin-top: 2.5rem; /* Spacing sebelum area log console */
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.engine-status{
    display:flex;
    align-items:center;
    gap:12px;

    width:max-content;

    padding:12px 18px;

    border-radius:50px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    color:#ffffff;
}

.engine-status i{
    color:#00d8ff;
    font-size:18px;
}

.engine-status small{

    display:block;

    font-size:11px;

    color:#9fb3c8;

    letter-spacing:1px;

    text-transform:uppercase;

}

.engine-status strong{

    display:block;

    color:#ffffff;

    font-size:14px;

    font-weight:700;

}

header .badge {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
}