:root {
    --bg-dark: #0a0c10;
    --bg-surface: #161b22;
    --primary: #00ff88;
    --danger: #ff3b5c;
    --text-main: #f0f3f5;
    --text-muted: #8b949e;
    --border: #30363d;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { overflow-y: scroll; scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-main); }

/* Navigasyon */
.main-nav { background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 15px 0; }
.nav-container { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.nav-logo { font-size: 22px; font-weight: 800; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.nav-links li.active a { color: var(--primary); font-weight: bold; }
.lang-switch { font-size: 12px; color: var(--text-muted); min-width: 60px; text-align: right; cursor: pointer; }
.lang-switch span.active { color: var(--primary); font-weight: bold; }

/* Wrapper for Sidebar Layout */
.main-wrapper { max-width: 950px; margin: 30px auto; display: flex; gap: 20px; padding: 0 20px; align-items: flex-start; }
.main-container { flex: 2; min-width: 0; }

/* Stats Sidebar */
.stats-sidebar { flex: 0.8; min-width: 200px; position: sticky; top: 20px; }
.stats-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 15px; padding: 20px; }
.stats-card h3 { font-size: 14px; color: var(--primary); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.stat-item { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.stat-item span { font-size: 11px; color: var(--text-muted); }
.stat-item b { font-size: 14px; font-family: 'Courier New', monospace; }

/* Elements */
.category-tabs { display: flex; gap: 8px; margin-bottom: 15px; background: var(--bg-surface); padding: 5px; border-radius: 10px; }
.tab-btn { flex: 1; padding: 10px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; border-radius: 8px; font-weight: 600; font-size: 13px; }
.tab-btn.active { background: var(--bg-dark); color: var(--primary); }
.top-bar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.custom-select-wrapper { position: relative; width: 140px; }
.custom-select-trigger { background: var(--bg-surface); padding: 10px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 12px; }
.custom-select-trigger img { width: 18px; border-radius: 3px; }
.custom-options { position: absolute; top: 110%; width: 100%; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; display: none; z-index: 100; overflow: hidden; }
.custom-options.open { display: block; }
.custom-option { padding: 10px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; }
.custom-option:hover { background: #1c2128; }
.custom-option img { width: 18px; }
.price-card { background: var(--bg-surface); padding: 10px 15px; border-radius: 8px; border: 1px solid var(--border); flex: 1; display: flex; justify-content: space-between; align-items: center; }
#tokenSymbol { font-weight: bold; font-size: 13px; }
#tokenPrice { font-family: 'Courier New', monospace; font-weight: bold; font-size: 15px; }
.control-panel { background: var(--bg-surface); padding: 20px; border-radius: 15px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 15px; }
.input-box { background: var(--bg-dark); border: 1px solid var(--border); padding: 12px; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
.input-box input { background: transparent; border: none; color: #fff; width: 100%; outline: none; font-size: 14px; }
.autocomplete-items { position: absolute; background: var(--bg-surface); border: 1px solid var(--border); width: 100%; border-radius: 8px; z-index: 50; max-height: 200px; overflow-y: auto; margin-top: 5px; }
.autocomplete-item { padding: 12px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 13px; }
.autocomplete-item:hover { background: #1c2128; }
.direction-toggle { display: flex; gap: 8px; }
.dir-btn { flex: 1; padding: 12px; border: none; background: var(--bg-dark); color: var(--text-muted); border-radius: 8px; cursor: pointer; font-weight: bold; border: 1px solid var(--border); font-size: 13px; }
.dir-btn#longBtn.active { border-color: var(--primary); color: var(--primary); }
.dir-btn#shortBtn.active { border-color: var(--danger); color: var(--danger); }
.main-btn { background: var(--primary); color: #000; padding: 15px; border-radius: 8px; border: none; font-weight: 800; cursor: pointer; }
.indicators-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.indicator-row { background: var(--bg-surface); padding: 12px; border-radius: 8px; border: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 12px; }
.indicator-row.success { border-left: 4px solid var(--primary); }
.indicator-row.fail { border-left: 4px solid var(--text-muted); }
.summary-card { background: var(--bg-surface); padding: 20px; border-radius: 12px; margin-top: 15px; text-align: center; border: 1px solid var(--border); }
.progress-container { background: var(--bg-dark); height: 6px; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.progress-bar { background: var(--primary); height: 100%; width: 0%; transition: 0.3s; }
.decision-badge { padding: 8px 20px; border-radius: 5px; font-weight: 800; font-size: 12px; display: inline-block; }
.hidden { display: none !important; }
.status-box { text-align: center; padding: 20px; }
.spinner { width: 30px; height: 30px; border: 3px solid rgba(0,255,136,0.1); border-top: 3px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 10px; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Mobile View */
@media (max-width: 800px) {
    .main-wrapper { flex-direction: column; }
    .stats-sidebar { width: 100%; position: static; order: 2; }
    .main-container { order: 1; }
}