:root{
  --bg:#0b1220; --text:#e7eefc; --muted:#a9b7d3; --border:rgba(255,255,255,.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 900px at 30% -10%, rgba(124,58,237,.25), transparent 60%),
              radial-gradient(900px 700px at 90% 0%, rgba(34,197,94,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}
.app{min-height:100%; display:flex; flex-direction:column}
.topbar{display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); backdrop-filter: blur(10px); position:sticky; top:0; z-index:5;}
.brand{display:flex; gap:12px; align-items:center}
.logo{width:38px; height:38px; border-radius:12px; display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(34,197,94,.85)); font-weight:800;}
.brand-text .title{font-weight:800}
.brand-text .subtitle{color:var(--muted); font-size:12px}
.controls{display:flex; gap:10px; align-items:center}
.controls input{width:320px; max-width:44vw; padding:10px 12px; border-radius:12px; border:1px solid var(--border); background: rgba(255,255,255,.04); color:var(--text); outline:none;}
.btn{padding:10px 14px; border-radius:12px; border:1px solid var(--border); background: rgba(255,255,255,.05); color:var(--text); cursor:pointer;}
.btn:hover{background: rgba(255,255,255,.08)}
.btn.primary{background: rgba(124,58,237,.22); border-color: rgba(124,58,237,.45)}
.btn.primary:hover{background: rgba(124,58,237,.30)}
.main{display:flex; flex:1; min-height:0}
.sidebar{width:260px; padding:16px; border-right:1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));}
.tab{width:100%; padding:12px; border-radius:12px; border:1px solid var(--border); background: rgba(255,255,255,.03); color:var(--text); cursor:pointer; text-align:left; margin-bottom:10px; font-weight:700;}
.tab.active{background: rgba(124,58,237,.22); border-color: rgba(124,58,237,.45)}
.divider{height:1px; background: var(--border); margin:14px 0}
.small{display:grid; gap:10px}
.kpi{display:flex; justify-content:space-between; padding:10px; border:1px solid var(--border); border-radius:12px; background: rgba(0,0,0,.15)}
.kpi .k{color:var(--muted); font-size:12px}
.kpi .v{font-weight:800}
.content{flex:1; padding:16px; overflow:auto}
.panel{display:none}
.panel.active{display:block}
.grid2{display:grid; grid-template-columns:1.2fr .8fr; gap:16px}
@media (max-width: 980px){ .sidebar{display:none} .grid2{grid-template-columns:1fr} .controls input{width:220px} }
.card{background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border:1px solid var(--border); border-radius:18px; padding:16px; box-shadow: 0 10px 30px rgba(0,0,0,.25);}
.card-title{font-weight:900; margin-bottom:10px}
.hint{color:var(--muted); font-size:12px; margin-top:10px}
.strip{display:flex; flex-wrap:wrap; gap:6px; padding:10px; border:1px solid var(--border); border-radius:14px; background: rgba(0,0,0,.14); margin-bottom:10px;}
.chip{width:18px; height:18px; border-radius:6px; border:1px solid rgba(255,255,255,.12);}
.chip.kirmizi{background:#ef4444} .chip.siyah{background:#111827} .chip.yesil{background:#22c55e}
.chip.tek{background:#60a5fa} .chip.cift{background:#f59e0b} .chip.yok{background:#6b7280}
.chip.buyuk{background:#a78bfa} .chip.kucuk{background:#34d399}
.big{font-size:34px; font-weight:950}
.meta{color:var(--muted); margin-top:6px}
.reason{margin-top:10px; padding:12px; border-radius:14px; border:1px solid var(--border); background: rgba(0,0,0,.18); line-height:1.4;}
.tableWrap{max-height:340px; overflow:auto; border-radius:14px; border:1px solid var(--border)}
.table{width:100%; border-collapse:collapse; font-size:13px}
.table th,.table td{padding:10px; border-bottom:1px solid var(--border)}
.table th{position:sticky; top:0; background: rgba(0,0,0,.25); text-align:left}
.badge{padding:3px 8px; border-radius:999px; font-size:12px; font-weight:800}
.badge.win{background: rgba(34,197,94,.22); border:1px solid rgba(34,197,94,.45)}
.badge.loss{background: rgba(239,68,68,.18); border:1px solid rgba(239,68,68,.45)}
.badge.skip{background: rgba(148,163,184,.14); border:1px solid rgba(148,163,184,.28)}
.badge.bet{background: rgba(124,58,237,.18); border:1px solid rgba(124,58,237,.45)}
.matrix table{width:100%; border-collapse:collapse}
.matrix th,.matrix td{border:1px solid var(--border); padding:8px; text-align:center}
.matrix th{background: rgba(0,0,0,.25)}
.code{margin:0; padding:14px; border-radius:14px; border:1px solid var(--border); background: rgba(0,0,0,.22); overflow:auto; font-size:12px;}
.list{display:grid; gap:10px}
.item{padding:12px; border-radius:14px; border:1px solid var(--border); background: rgba(0,0,0,.16);}
.item small{color:var(--muted)}
.kpiRow{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px}
.pill{display:flex; gap:8px; align-items:center; padding:10px 12px; border-radius:999px; border:1px solid var(--border); background: rgba(0,0,0,.16);}
.pill span{color:var(--muted); font-size:12px}
.pill b{font-weight:900}
.footer{display:flex; justify-content:space-between; gap:12px; padding:12px 16px; border-top:1px solid var(--border); color:var(--muted); font-size:12px;}
.muted{color:var(--muted)}
