/* Türkiye İnternet Operatörü — ana stiller */
:root {
  --bg: #07101f;
  --panel: #0e1c36;
  --panel-2: #12254a;
  --panel-3: #183161;
  --line: rgba(120, 170, 255, 0.16);
  --text: #e6eefc;
  --muted: #8ea3c4;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --good: #22c55e;
  --yellow: #facc15;
  --orange: #fb923c;
  --red: #ef4444;
  --gold: #f59e0b;
  --violet: #a78bfa;
  --chart-grid: rgba(255, 255, 255, 0.07);
  --radius: 12px;
  --top-h: 56px;
  --side-w: 340px;
  --drawer-w: 410px;
  --tool-w: 74px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body { font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

#app { position: fixed; inset: 0; display: flex; flex-direction: column; }

/* ---------- Üst çubuk ---------- */
#topbar {
  height: var(--top-h); flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: linear-gradient(180deg, #10224a, #0b1833); border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35); z-index: 20;
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 0 auto; }
.brand b { display: block; font-size: 14px; letter-spacing: .2px; white-space: nowrap; }
.brand small { color: var(--accent); font-weight: 600; font-size: 11px; letter-spacing: .5px; }
.stats { display: flex; gap: 6px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.stats::-webkit-scrollbar { display: none; }
.stat {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 10px; padding: 3px 10px;
  display: flex; flex-direction: column; align-items: flex-start; min-width: 74px; cursor: pointer; flex: 0 0 auto;
}
.stat:hover { background: rgba(255, 255, 255, 0.08); }
.stat small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .4px; }
.stat b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat.green b { color: #4ade80; } .stat.red b { color: #f87171; } .stat.yellow b { color: var(--yellow); } .stat.orange b { color: var(--orange); }
.speed { display: flex; gap: 2px; background: rgba(0, 0, 0, 0.25); border-radius: 10px; padding: 3px; flex: 0 0 auto; }
.speed button { background: none; border: 0; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-weight: 700; color: var(--muted); }
.speed button.on { background: var(--accent-2); color: #fff; }

/* ---------- Ana düzen ---------- */
#main { position: relative; flex: 1 1 auto; display: flex; min-height: 0; }
#toolbar {
  width: var(--tool-w); flex: 0 0 auto; background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 6px; gap: 4px; overflow-y: auto; z-index: 6;
}
.tool {
  background: none; border: 1px solid transparent; border-radius: 10px; padding: 7px 2px; cursor: pointer; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px;
}
.tool i { font-style: normal; font-size: 19px; line-height: 1; }
.tool:hover { background: var(--panel-2); color: var(--text); }
.tool.on { background: var(--panel-3); border-color: var(--accent-2); color: #fff; }

#map-wrap { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; }
#map { display: block; touch-action: none; cursor: grab; }
.clock {
  position: absolute; left: 12px; top: 10px; background: rgba(7, 16, 31, 0.8); border: 1px solid var(--line);
  border-radius: 10px; padding: 5px 10px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none;
}
.map-controls { position: absolute; right: 12px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.map-controls button {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(14, 28, 54, 0.9);
  cursor: pointer; font-size: 18px; font-weight: 700;
}
.legend {
  position: absolute; left: 12px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; max-width: 560px;
  background: rgba(7, 16, 31, 0.78); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 11px; color: var(--muted);
}
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.legend i.hexi { background: #22d3ee; border-radius: 2px; transform: rotate(45deg) scale(.8); }
.mode-banner {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: #064e3b; border: 1px solid #10b981;
  border-radius: 12px; padding: 8px 12px; display: flex; gap: 10px; align-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.4); z-index: 4;
}
.side-toggle { display: none; }

/* ---------- Yan panel ---------- */
#side {
  width: var(--side-w); flex: 0 0 auto; background: var(--panel); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0; z-index: 5;
}
.tabs { display: flex; padding: 6px; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: none; border: 0; padding: 7px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; }
.tabs button.on { background: var(--panel-3); color: #fff; }
.side-body { flex: 1; overflow-y: auto; padding: 8px 10px 20px; }
.sh { margin: 12px 2px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); display: flex; justify-content: space-between; }
.sh span { background: var(--panel-3); border-radius: 8px; padding: 0 7px; color: var(--text); }
.empty { color: var(--muted); text-align: center; padding: 14px 4px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 11px; text-align: center; margin: 12px 0 0; }

/* Olay kartları */
.evcard {
  background: linear-gradient(180deg, var(--panel-2), #0f2042); border: 1px solid var(--line); border-left: 4px solid var(--yellow);
  border-radius: var(--radius); padding: 9px 10px; margin-bottom: 8px; animation: pop .25s ease-out;
}
.evcard.sev1 { border-left-color: #60a5fa; }
.evcard.sev2 { border-left-color: var(--orange); }
.evcard.sev3 { border-left-color: var(--red); box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25), 0 0 18px rgba(239, 68, 68, 0.15); }
.evcard.pos { border-left-color: var(--good); }
.evcard.ended { border-left-color: var(--muted); }
.evcard header { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.evcard h5 { margin: 5px 0 4px; font-size: 14.5px; cursor: pointer; }
.evcard h5:hover { color: var(--accent); }
.evcard p { margin: 4px 0; color: #c8d5ec; font-size: 12.5px; }
.evtime { display: flex; align-items: center; gap: 8px; }
.evtime .bar { flex: 1; }
.evtime small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.impacts { margin: 5px 0; padding-left: 18px; font-size: 12px; color: #b9c8e4; }
.impacts li { margin: 1px 0; }
.evopts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.evgo { margin-top: 4px; }
.evmsg { background: rgba(34, 211, 238, 0.08); border-radius: 8px; padding: 5px 8px; font-size: 12px; margin: 5px 0; color: #a5f3fc; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

.upcoming, .feed, .citylist, .rows, .goals, .reasons { list-style: none; margin: 0; padding: 0; }
.upcoming li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; background: rgba(255, 255, 255, 0.03); border-radius: 8px; margin-bottom: 4px; font-size: 12.5px; }
.upcoming small { color: var(--accent); white-space: nowrap; }
.feed li { padding: 5px 6px 5px 10px; border-left: 3px solid #475569; font-size: 12px; margin-bottom: 3px; color: #c8d5ec; border-radius: 0 6px 6px 0; }
.feed li small { color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.feed li.good { border-color: var(--good); } .feed li.warn { border-color: var(--orange); } .feed li.crit { border-color: var(--red); background: rgba(239, 68, 68, 0.06); }
.feed li.clk, .clk { cursor: pointer; }
.feed li.clk:hover, tr.clk:hover, .citylist li:hover, .card.clk:hover, .rows li.clk:hover { background: rgba(255, 255, 255, 0.06); }

.citylist li { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 8px; cursor: pointer; }
.citylist li span { flex: 1; min-width: 0; }
.citylist li b { display: block; }
.citylist li small { color: var(--muted); font-size: 11.5px; }
.citylist li em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; margin-right: 4px; background: #4b5568; }
.dot.ok { background: var(--good); } .dot.yellow { background: var(--yellow); } .dot.orange { background: var(--orange); } .dot.red { background: var(--red); } .dot.build { background: #3b82f6; }

.lvlhead { background: linear-gradient(90deg, #1e3a8a, #0e7490); border-radius: var(--radius); padding: 10px 12px; margin: 6px 0 8px; }
.lvlhead small { display: block; color: #bae6fd; font-size: 11px; }
.lvlhead b { font-size: 16px; }
.goals li { padding: 6px 4px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.goals li small { float: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.goals li .bar { margin-top: 4px; }
.goals li.done { color: #86efac; }
.goals.left { text-align: left; }
.achmini { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.achmini span { font-size: 20px; filter: grayscale(1); opacity: .35; }
.achmini span.got { filter: none; opacity: 1; }
.victory { background: linear-gradient(90deg, #854d0e, #a16207); border-radius: var(--radius); padding: 10px; margin: 6px 0; font-weight: 600; }

/* ---------- Detay paneli ---------- */
.drawer {
  position: absolute; top: 10px; bottom: 10px; left: calc(var(--tool-w) + 10px); width: var(--drawer-w); max-width: calc(100% - 20px);
  background: rgba(13, 27, 54, 0.97); border: 1px solid var(--line); border-radius: 16px; z-index: 8;
  display: flex; flex-direction: column; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px);
  animation: slidein .2s ease-out;
}
@keyframes slidein { from { transform: translateX(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer > header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px 16px; border-bottom: 1px solid var(--line); }
.drawer h3 { margin: 0; font-size: 18px; }
.x { background: rgba(255, 255, 255, 0.06); border: 0; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 14px 24px; }
.cityhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); }
.plate { background: #1d4ed8; color: #fff; font-weight: 800; border-radius: 6px; padding: 1px 7px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 6px 0 10px; }
.kpi { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; min-width: 0; }
.kpi small { display: block; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .3px; }
.kpi b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi.warn b { color: var(--orange); } .kpi.good b { color: #4ade80; }
.kpi.wrap b { white-space: normal; font-size: 12px; line-height: 1.35; }
.meter { margin: 6px 0; }
.meter label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.meter label b { color: var(--text); }
.sec { margin-top: 14px; }
.sec h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); display: flex; justify-content: space-between; align-items: center; }
.subh { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 4px; font-weight: 600; font-size: 13px; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.rows li > span { min-width: 0; flex: 1; }
.rows li b { font-weight: 600; }
.rows li small { display: block; color: var(--muted); font-size: 11.5px; }
.rows li .bar { width: 70px; flex: 0 0 auto; }
.rows li > span .bar { width: 100%; margin-top: 4px; }
.rows.tall li { align-items: flex-start; }
.acts { display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; align-items: center; max-width: 60%; }
.acts select { background: var(--panel-3); border: 1px solid var(--line); border-radius: 8px; padding: 3px 4px; font-size: 12px; }
.reasons li { padding: 5px 8px; border-radius: 8px; margin-bottom: 3px; font-size: 12.5px; background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--muted); }
.reasons li.crit { border-color: var(--red); background: rgba(239, 68, 68, 0.08); }
.reasons li.warn { border-color: var(--orange); }
.reasons li.ok { border-color: var(--good); }
.callout { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.4); border-radius: 10px; padding: 9px 11px; margin: 6px 0 10px; font-size: 13px; }
.callout.red { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.5); }
.why { color: #fca5a5; font-size: 12px; margin: 4px 0; }
.okc { color: #86efac; } .warnc { color: #fdba74; } .redc { color: #f87171; }
.lnk { color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.svcbars > div { margin: 4px 0; }
.svcbars label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.svcbars label b { color: var(--text); font-weight: 600; }
.card { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; margin-bottom: 8px; }
.card.cur { border-color: var(--gold); }
.card.donec { opacity: .75; }
.cardh { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 3px; }
.card small { color: var(--muted); display: block; margin-bottom: 5px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; padding: 5px 4px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 6px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 0; }
.kv td { text-align: right; padding: 4px 0; font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: 150px; display: block; background: rgba(0, 0, 0, 0.18); border-radius: 10px; }
.legend2 { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 4px; }
.legend2 span::before { content: ''; display: inline-block; width: 10px; height: 3px; background: var(--c); margin-right: 4px; vertical-align: middle; }
.achgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ach { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; opacity: .55; }
.ach.got { opacity: 1; border-color: var(--gold); background: rgba(245, 158, 11, 0.08); }
.ach i { font-style: normal; font-size: 28px; display: block; filter: grayscale(1); }
.ach.got i { filter: none; }
.ach b { display: block; margin: 4px 0 2px; }
.ach small { color: var(--muted); font-size: 11.5px; display: block; }
.ach em { font-style: normal; color: var(--gold); font-size: 11px; }
.pricebox { display: flex; align-items: center; gap: 10px; }
.pricebox input { flex: 1; accent-color: var(--accent); }
.toggle { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0; font-size: 13px; color: var(--muted); }

/* ---------- Bileşenler ---------- */
.btn {
  background: linear-gradient(180deg, #2563eb, #1d4ed8); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff;
  border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: 13px; line-height: 1.2;
  transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.5); }
.btn.primary { background: linear-gradient(180deg, #06b6d4, #0891b2); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line); color: var(--text); }
.btn.danger { background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }
.btn.link { background: none; border: 0; color: var(--accent); padding: 2px 0; }
.btn.on { background: var(--accent-2); }
.btn.done { background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.4); opacity: 1; }
.btn.sm { padding: 6px 9px; font-size: 12px; }
.btn.xs { padding: 4px 7px; font-size: 11px; border-radius: 7px; }
.btn.wide { width: 100%; padding: 11px; font-size: 14px; margin: 4px 0; }
.btnrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.btnrow.end { justify-content: flex-end; }
.btnrow.center { justify-content: center; }
.chip { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--muted); white-space: nowrap; font-style: normal; }
.chip.ok, .chip.good { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.chip.build { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.chip.yellow { background: rgba(250, 204, 21, 0.16); color: #fde047; }
.chip.orange, .chip.sev2 { background: rgba(251, 146, 60, 0.16); color: #fdba74; }
.chip.red, .chip.sev3 { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.chip.sev1 { background: rgba(96, 165, 250, 0.16); color: #bfdbfe; }
.chip.gold { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.bar { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; background: var(--good); transition: width .4s; }
.bar.yellow span { background: var(--yellow); } .bar.orange span { background: var(--orange); } .bar.red span { background: var(--red); }
.bar.time span { background: linear-gradient(90deg, #38bdf8, #6366f1); }

/* ---------- Bildirim balonları ---------- */
.toasts { position: fixed; top: calc(var(--top-h) + 10px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 60; width: min(520px, calc(100% - 24px)); pointer-events: none; }
.toast {
  background: rgba(15, 31, 62, 0.97); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px;
  padding: 9px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); animation: pop .25s ease-out; font-size: 13px; transition: opacity .4s, transform .4s;
}
.toast.good { border-left-color: var(--good); } .toast.warn { border-left-color: var(--orange); } .toast.crit { border-left-color: var(--red); background: rgba(60, 14, 20, 0.97); }
.toast.out { opacity: 0; transform: translateY(-8px); }

/* ---------- Modallar ---------- */
#modal-root .overlay { position: fixed; inset: 0; background: rgba(2, 6, 18, 0.72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 80; padding: 16px; }
.modal {
  width: min(520px, 100%); max-height: calc(100% - 20px); overflow-y: auto; background: linear-gradient(180deg, #11234a, #0b1834);
  border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: pop .25s;
}
.modal.wide { width: min(680px, 100%); }
.modal.small { width: min(420px, 100%); }
.modal h2, .modal h3 { margin: 0 0 8px; }
.modal label { display: block; margin: 10px 0 4px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.modal input[type=text], .modal input:not([type]), .form input, .form select {
  width: 100%; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 14px; text-transform: none;
}
.form label { display: block; margin: 8px 0 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.form select { margin-top: 3px; }
.opts { display: grid; gap: 6px; }
.opts.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { position: relative; margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; background: rgba(255, 255, 255, 0.03); color: var(--text); font-weight: 400; }
.opt span b { display: block; font-size: 14px; }
.opt span small { color: var(--muted); font-size: 12px; }
.opt input:checked + span { border-color: var(--accent); background: rgba(34, 211, 238, 0.1); box-shadow: 0 0 0 1px var(--accent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); }
.start .brandbig { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.start h1 { margin: 0; font-size: 26px; line-height: 1.1; }
.slogan { margin: 4px 0 2px; color: var(--accent); font-weight: 700; font-size: 16px; }
.start small { color: var(--muted); }
.divider { text-align: center; color: var(--muted); font-size: 12px; margin: 8px 0; }
.center { text-align: center; }
.big { font-size: 56px; line-height: 1.1; }
.help { padding-left: 20px; }
.help li { margin: 6px 0; }

/* ---------- v1.1: Odak dostu bileşenler ---------- */
.stat.lvl { background: linear-gradient(180deg, rgba(245,158,11,.22), rgba(245,158,11,.08)); border-color: rgba(245,158,11,.45); }
.stat.lvl b { color: #fcd34d; letter-spacing: 1px; }
.tabs button { position: relative; font-size: 12.5px; white-space: nowrap; padding: 7px 4px; }
.tabn:empty { display: none; }
.tabn { display: inline-block; margin-left: 5px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #111; font-size: 11px; line-height: 18px; }

/* Sıradaki adım kartı */
.nextstep { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(620px, calc(100% - 24px)); z-index: 5; pointer-events: none; }
.nextstep:empty { display: none; }
.ns { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px;
  background: rgba(14, 30, 60, 0.96); border: 1px solid var(--line); border-left: 6px solid var(--accent); box-shadow: 0 14px 40px rgba(0,0,0,.5); animation: pop .3s; }
.ns.sev3 { border-left-color: var(--red); } .ns.sev2 { border-left-color: var(--orange); } .ns.sev1 { border-left-color: var(--accent); } .ns.sev0 { border-left-color: var(--good); }
.ns > i { font-style: normal; font-size: 28px; }
.nst { flex: 1; min-width: 0; }
.nst small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.nst b { display: block; font-size: 15.5px; }
.nst em { display: block; font-style: normal; color: #b9c8e4; font-size: 12.5px; }
.ns .btn.primary { padding: 11px 14px; font-size: 14px; white-space: nowrap; }
.ns .x.sm { width: 28px; height: 28px; font-size: 13px; color: var(--muted); }

/* Yapılacaklar listesi */
.advlist { list-style: none; margin: 0 0 6px; padding: 0; }
.advlist.top { margin: 0 0 10px; }
.adv { display: flex; align-items: center; gap: 9px; padding: 9px 9px 9px 10px; margin-bottom: 6px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.adv.sev3 { border-left-color: var(--red); background: rgba(239,68,68,.07); } .adv.sev2 { border-left-color: var(--orange); } .adv.sev0 { border-left-color: var(--good); }
.adv > i { font-style: normal; font-size: 20px; }
.adv > span { flex: 1; min-width: 0; }
.adv b { display: block; font-size: 13.5px; }
.adv small { display: block; color: var(--muted); font-size: 12px; }
.adv .btn { white-space: nowrap; }
.ghint { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.ghint em { font-style: normal; font-size: 12px; color: #a5b8d8; }
.goals li { padding: 8px 4px; }
.autobox { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; }
.toggle.sm { padding: 4px 0; font-size: 13px; }
.autobox select, .inline select { background: var(--panel-3); border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; }
.small { font-size: 12px; }
.empty.small { padding: 6px; font-size: 13px; }
details.more { margin: 4px 0 8px; color: var(--muted); font-size: 12.5px; }
details.more summary { cursor: pointer; margin-bottom: 6px; }

/* Kompakt olay kartları */
.evcard.compact { padding: 9px 10px; }
.evcard.compact h5 { font-size: 14px; }
.evline { margin: 4px 0 2px !important; font-size: 12px !important; color: #a5b8d8 !important; }
.evchosen { margin: 2px 0 !important; color: #86efac !important; font-size: 12px !important; }

/* Olay karar penceresi */
.modal.evmodal { width: min(560px, 100%); }
.evm header { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }
.evm header .evcat { flex: 1; }
.evm h2 { font-size: 21px; margin: 8px 0 6px; }
.evm .evdesc { color: #c8d5ec; margin: 0 0 8px; }
.evm h4 { margin: 12px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); }
.evimp { margin: 0; padding: 8px 10px 8px 26px; background: rgba(255,255,255,.04); border-radius: 10px; font-size: 13px; color: #b9c8e4; }
.evm-opts { display: flex; flex-direction: column; gap: 7px; }
.btn.eopt { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; }
.btn.eopt.big { padding: 11px 14px; font-size: 14.5px; border-radius: 12px; }
.btn.eopt small { font-weight: 500; font-size: 12px; opacity: .85; }
.btn.eopt.rec { background: linear-gradient(180deg, #06b6d4, #0e7490); box-shadow: 0 0 0 2px rgba(34,211,238,.5); }
.recb { font-style: normal; font-size: 10.5px; background: #fde047; color: #111; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.help.big li { margin: 10px 0; font-size: 15px; }

/* Lejant: varsayılan kapalı */
.legend { padding: 4px 6px; }
.legend:not(.open) span { display: none; }
.legbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; padding: 2px 4px; }
.toast.clk { pointer-events: auto; cursor: pointer; }
.toast .go { color: var(--accent); font-weight: 700; white-space: nowrap; }
.btn { min-height: 34px; }
.btn.xs { min-height: 26px; }
.btn small.wait { display: block; font-size: 10.5px; font-weight: 600; opacity: .9; }
.btn:disabled small.wait { color: #fde68a; }

/* ================================================================ BASİT MOD (v1.2, varsayılan) */
body.simple #side, body.simple .side-toggle, body.simple .legend, body.simple .brand div { display: none !important; }
body.simple .stats { justify-content: flex-start; gap: 8px; }
body.simple .stat { min-width: 96px; padding: 4px 12px; }
body.simple .stat b { font-size: 16px; }
body.simple .speed button { padding: 8px 14px; font-size: 16px; min-width: 46px; }
body.simple .speed button.on { background: var(--good); color: #052e16; }
body.simple #toolbar { width: 84px; }
body.simple .tool { position: relative; padding: 12px 2px; font-size: 12px; gap: 4px; }
body.simple .tool i { font-size: 26px; }
.tool .tabn { position: absolute; top: 4px; right: 10px; margin: 0; }
body.simple .drawer { left: calc(84px + 10px); }
body.simple .drawer h3 { font-size: 20px; }
body.simple .drawer-body { font-size: 15.5px; }
.lead { font-size: 17px; margin: 4px 0 10px; }
.okline { padding: 10px 12px; border-radius: 12px; background: rgba(34,197,94,.1); color: #86efac; font-weight: 600; }
.okline.warn { background: rgba(251,146,60,.1); color: #fdba74; }
.btn.big { padding: 15px; font-size: 16.5px; border-radius: 14px; }
.lvlhead .dots { float: right; letter-spacing: 3px; color: #fcd34d; font-size: 15px; margin-top: -18px; }
.goalbig { background: linear-gradient(180deg, rgba(34,211,238,.1), rgba(34,211,238,.03)); border: 1px solid rgba(34,211,238,.35); border-radius: 14px; padding: 12px; margin: 8px 0 12px; }
.goalbig small { color: var(--accent); text-transform: uppercase; font-size: 11px; letter-spacing: .5px; }
.goalbig b { display: block; font-size: 17px; margin: 2px 0 8px; }
.goalbig em { display: block; text-align: right; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 3px; }
.goalbig p { margin: 8px 0; color: #c8d5ec; }
.advlist.simple .adv { padding: 11px; }
.advlist.simple .adv b { font-size: 14.5px; }
.advlist.simple .adv .btn { padding: 10px 12px; font-size: 13.5px; }
.toggle.big { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.toggle.big input { width: 24px; height: 24px; }
.toggle.big small { flex-basis: 100%; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; font-weight: 600; font-size: 13px; }
.tile i { font-style: normal; font-size: 28px; }
.tile:hover { background: rgba(255,255,255,.08); }
body.simple .evcard.compact h5 { font-size: 15px; margin-top: 0; }
body.simple .ns .nst b { font-size: 16px; }
body.simple .ns .btn.primary { padding: 13px 16px; font-size: 15px; }
/* Güvenlik ekranı */
.secstat { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; margin-bottom: 12px; border: 1px solid var(--line); }
.secstat.ok { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.35); }
.secstat.warn { background: rgba(251,146,60,.1); border-color: rgba(251,146,60,.4); }
.secstat i { font-style: normal; font-size: 30px; }
.secstat b { display: block; font-size: 15.5px; }
.secstat small { color: var(--muted); }
.seccard { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.seccard h4 { margin: 0 0 4px; font-size: 15px; }
.seccard select { background: var(--panel-3); border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.pkg { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; }
.pkg b { font-size: 14px; } .pkg span { font-size: 16px; font-weight: 700; color: var(--accent); } .pkg small { color: var(--muted); font-size: 11.5px; }
.pkg em { font-style: normal; color: #86efac; font-size: 11px; font-weight: 700; }
.pkg.on { border-color: var(--good); background: rgba(34,197,94,.12); }
.pkg:disabled { cursor: default; }
.loanform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.loanform label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.loanform select { background: var(--panel-3); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 14px; color: var(--text); }
.quote { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }

/* ================================================================ NEŞELİ TEMA (basit mod, v1.5) */
#mapcol { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
#map-wrap { flex: 1 1 auto; min-height: 0; }
.dock, .evpanel { display: none; }
body.simple { background: #e6f2fa; }
body.simple #app { background: linear-gradient(180deg, #eef7fc, #e3eff8); }
body.simple #topbar { margin: 10px 10px 0; border-radius: 18px; border: 0; background: linear-gradient(180deg, #17345f, #0f2742); box-shadow: 0 8px 24px rgba(15,39,66,.25); height: 64px; }
body.simple .stats { gap: 6px; justify-content: space-around; }
.ftile { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; cursor: pointer; padding: 4px 10px; border-radius: 12px; min-width: 0; flex: 1 1 0; text-align: left; }
.ftile + .ftile { border-left: 1px solid rgba(255,255,255,.12); border-radius: 0; }
.ftile i { font-style: normal; font-size: 26px; flex: 0 0 auto; }
.ftile span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ftile small { color: #bcd2ee; font-size: 11.5px; }
.ftile b { font-size: 17px; white-space: nowrap; }
.ftile.neg b { color: #fca5a5; }
.fbar { display: block; height: 6px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 4px; max-width: 160px; }
.fbar u { display: block; height: 100%; background: #2dd4bf; border-radius: 4px; }
.fbar.warn u { background: #f59e0b; } .fbar.bad u { background: #ef4444; } .fbar.ok u { background: #22c55e; }
body.simple .speed { background: rgba(255,255,255,.1); }
body.simple #main { padding: 10px; gap: 10px; }
body.simple #toolbar { background: #fff; border: 0; border-radius: 18px; box-shadow: 0 6px 20px rgba(15,39,66,.1); }
body.simple .tool { color: #334155; }
body.simple .tool:hover { background: #eef6fb; color: #0f2742; }
body.simple .tool.on { background: #e0f2fe; border-color: #38bdf8; color: #0f2742; }
body.simple #map-wrap { border-radius: 22px; box-shadow: 0 10px 30px rgba(15,39,66,.15); border: 3px solid #fff; }
body.simple #nextstep { display: none; }
body.simple .clock { background: rgba(255,255,255,.92); color: #0f2742; border: 0; box-shadow: 0 2px 8px rgba(15,39,66,.12); }
body.simple .map-controls button { background: #fff; color: #0f2742; border: 0; box-shadow: 0 2px 8px rgba(15,39,66,.15); }
body.simple .drawer { left: 104px; top: 10px; }

/* Sağ olay paneli */
body.simple .evpanel { display: block; width: 300px; flex: 0 0 auto; background: #fff; border-radius: 18px; box-shadow: 0 6px 20px rgba(15,39,66,.1); padding: 12px; overflow-y: auto; color: #0f2742; }
.evpanel h4 { margin: 2px 4px 10px; font-size: 15px; }
.evp { display: flex; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid #e2e8f0; margin-bottom: 8px; cursor: pointer; background: #fff; }
.evp:hover { background: #f8fbff; }
.evp i { font-style: normal; font-size: 24px; flex: 0 0 auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f1f5f9; }
.evp.sev3 i, .evp.crit i { background: #fee2e2; } .evp.sev2 i, .evp.warn i { background: #fef3c7; } .evp.pos i, .evp.good i { background: #dcfce7; }
.evp b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.evp small { color: #64748b; font-size: 11px; }

/* Alt panel */
body.simple .dock { display: block; padding-top: 10px; color: #0f2742; }
.dock-row { display: grid; grid-template-columns: 270px minmax(0, 1fr) 210px; gap: 10px; align-items: stretch; }
.dk-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.acard { background: #fff; border-radius: 18px; border: 2px solid #e8eef5; padding: 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 18px rgba(15,39,66,.08); min-width: 0; }
.acard.rec { border-color: #22c55e; box-shadow: 0 8px 22px rgba(34,197,94,.22); }
.acard.sev3 .ac-h i { background: #fee2e2; } .acard.sev2 .ac-h i { background: #fef3c7; }
.ac-h { display: flex; align-items: center; gap: 8px; position: relative; }
.ac-h i { font-style: normal; font-size: 22px; width: 40px; height: 40px; border-radius: 12px; background: #e0f2fe; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ac-h b { font-size: 14px; line-height: 1.25; }
.ac-h .chk { position: absolute; right: -4px; top: -6px; font-style: normal; background: #22c55e; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.acard p { margin: 0; color: #475569; font-size: 12.5px; line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-cost { font-weight: 700; font-size: 14px; }
.ac-cost small { font-weight: 500; color: #b45309; font-size: 11.5px; }
.acard .btn { width: 100%; padding: 11px; font-size: 14.5px; border-radius: 12px; }
.btn.primary { background: linear-gradient(180deg, #22c55e, #16a34a); }
body:not(.simple) .btn.primary { background: linear-gradient(180deg, #06b6d4, #0891b2); }
.btn.outline { background: #fff; color: #0f2742; border: 2px solid #cbd5e1; }
.btn.outline:hover { border-color: #22c55e; }
.dk-city { background: linear-gradient(180deg, #17345f, #0f2742); color: #fff; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 8px 22px rgba(15,39,66,.25); }
.dc-h { display: flex; gap: 10px; align-items: center; }
.dc-ico { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #38bdf8, #22c55e); display: flex; align-items: center; justify-content: center; font-size: 30px; flex: 0 0 auto; }
.dc-h b { display: block; font-size: 18px; }
.spill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #16a34a; color: #fff; margin-top: 3px; }
.spill.yellow { background: #ca8a04; } .spill.orange { background: #ea580c; } .spill.red { background: #dc2626; } .spill.build { background: #2563eb; } .spill.off { background: #64748b; }
.dc-row { display: flex; justify-content: space-between; font-size: 13px; color: #cfe0f5; }
.dc-row b { color: #fff; }
.dk-city .fbar { max-width: none; margin: 0 0 4px; }
.dc-off { color: #cfe0f5; margin: 6px 0; }
.dk-status { background: #fff; border-radius: 18px; padding: 10px 12px; box-shadow: 0 6px 18px rgba(15,39,66,.08); overflow: hidden; }
.dk-status h5 { margin: 0 0 6px; font-size: 13.5px; }
.srow { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 3px 2px; cursor: pointer; border-radius: 6px; }
.srow:hover { background: #f1f5f9; }
.srow span { flex: 1; } .srow b { font-weight: 600; }
.sdot { width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid #94a3b8; flex: 0 0 auto; }
.sdot.ok { border-color: #22c55e; } .sdot.yellow { border-color: #eab308; } .sdot.orange { border-color: #f97316; } .sdot.red { border-color: #ef4444; } .sdot.build { border-color: #3b82f6; }
.lvlbar { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px 10px; cursor: pointer; font-size: 13.5px; }
.lvlbar i { font-style: normal; font-size: 22px; }
.lvlbar span { color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvlprog { flex: 1; height: 10px; border-radius: 6px; background: #d5e3ee; overflow: hidden; min-width: 60px; }
.lvlprog u { display: block; height: 100%; background: linear-gradient(90deg, #14b8a6, #22c55e); border-radius: 6px; transition: width .5s; }
.lvlbar small { color: #64748b; white-space: nowrap; }
body.simple .legend { display: flex !important; background: rgba(255,255,255,.92); color: #334155; border: 0; box-shadow: 0 2px 8px rgba(15,39,66,.12); }

@media (max-width: 1280px) { .dock-row { grid-template-columns: 240px minmax(0, 1fr); } .dk-status { display: none; } }
@media (max-width: 1099px) { body.simple .evpanel { display: none; } }
/* Başlangıç ekranı (tasarımdaki sol tanıtım sütunu + form) */
.modal.startmodal { width: min(980px, 100%); padding: 0; background: #fff; color: #0f2742; overflow: hidden auto; }
.startfun { display: grid; grid-template-columns: 1fr 1.1fr; }
.sf-hero { background: linear-gradient(160deg, #e0f2fe, #dcfce7); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.sf-brand { display: flex; align-items: center; gap: 10px; }
.sf-brand b { display: block; font-size: 26px; color: #0f2742; letter-spacing: -.5px; }
.sf-brand small { color: #334155; font-size: 13px; }
.sf-hero h1 { font-size: 32px; line-height: 1.1; margin: 8px 0 0; color: #0f2742; }
.sf-hero p { color: #334155; margin: 0; line-height: 1.5; }
.sf-hero ul { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 10px; }
.sf-hero li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #1e293b; }
.sf-hero li i { font-style: normal; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 3px 10px rgba(15,39,66,.1); }
.sf-sign { margin-top: auto; font-style: italic; font-weight: 700; color: #1d4ed8; font-size: 18px; transform: rotate(-6deg); font-family: "Segoe Script", "Brush Script MT", cursive; }
.sf-form { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.sf-form h2 { margin: 0 0 6px; font-size: 20px; }
.startmodal label { color: #475569 !important; }
.startmodal input:not([type]), .startmodal input[type=text] { background: #f1f5f9 !important; color: #0f2742; border: 1px solid #cbd5e1 !important; }
.startmodal .opt span { background: #f8fafc; border-color: #e2e8f0; color: #0f2742; }
.startmodal .opt span small { color: #64748b; }
.startmodal .opt input:checked + span { background: #ecfdf5; border-color: #22c55e; box-shadow: 0 0 0 1px #22c55e; }
.startmodal details.more { color: #475569; }
.startmodal .divider, .startmodal .fine { color: #64748b; }
.startmodal .btn.big { margin-top: 8px; }
@media (max-width: 820px) {
  .startfun { grid-template-columns: 1fr; }
  .sf-hero { padding: 18px; gap: 8px; }
  .sf-hero h1 { font-size: 24px; }
  .sf-hero p, .sf-sign { display: none; }
  .sf-hero ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; }
  .sf-hero li i { width: 30px; height: 30px; font-size: 16px; }
  .sf-form { padding: 16px; }
}
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation-name: cfall; animation-timing-function: cubic-bezier(.2,.6,.4,1); animation-fill-mode: forwards; }
@keyframes cfall { to { top: 105%; transform: translateX(40px) rotate(720deg); opacity: .8; } }

/* İlk oyun rehberi */
.coach { position: fixed; z-index: 90; background: #0f2742; color: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 14px 40px rgba(15,39,66,.45); font-size: 14px; animation: pop .3s; }
.coach .cbody b { background: #22c55e; color: #052e16; border-radius: 8px; padding: 1px 7px; margin-right: 4px; font-size: 12px; }
.coach .cbtns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.coach .btn.outline { background: transparent; color: #cbd5e1; border-color: rgba(255,255,255,.3); }
.coach.above::after, .coach.below::after { content: ''; position: absolute; left: var(--ax); width: 14px; height: 14px; background: #0f2742; transform: translateX(-50%) rotate(45deg); }
.coach.above::after { bottom: -7px; } .coach.below::after { top: -7px; }
.coach-hl { position: relative; z-index: 2; animation: hlpulse 1.2s infinite; border-radius: 12px; }
@keyframes hlpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); } 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.awlist { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.awrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.awrow i { font-style: normal; font-size: 22px; }
.awrow span { flex: 1; color: var(--muted); }
.awrow.good b { color: #4ade80; } .awrow.bad b { color: #fca5a5; }

.startmodal .chip.ok { background: #dcfce7; color: #166534; } .startmodal .chip.orange { background: #ffedd5; color: #9a3412; }

.mkreq { border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 8px; background: rgba(255,255,255,.03); }
.mkh { display: flex; align-items: center; gap: 10px; }
.mkh i { font-style: normal; font-size: 26px; }
.mkh div { flex: 1; } .mkh b { display: block; } .mkh small { color: var(--muted); }
.mkh em { font-style: normal; font-size: 12px; color: var(--accent); white-space: nowrap; }
.mkbids { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 6px; }
.mkbids .pkg span { font-size: 13px; }
@media (max-width: 480px) { .mkbids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sol menü (basit mod, masaüstü): bütün ekranlar gruplar halinde */
body.simple #toolbar { width: 96px; padding: 8px 6px; gap: 2px; overflow-y: auto; scrollbar-width: thin; }
body.simple .tool { flex-direction: column; padding: 7px 2px; gap: 3px; font-size: 11.5px; font-weight: 600; border-radius: 12px; border: 0; position: relative; }
body.simple .tool i { font-size: 22px; }
body.simple .tool.on { background: #e0f2fe; color: #0c4a6e; box-shadow: inset 3px 0 0 #0ea5e9; }
body.simple .tool .tabn { top: 2px; right: 12px; }
body.simple .tool.mob { display: none; }
.tgrp { font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #94a3b8; text-align: center; margin: 6px 4px 2px; display: flex; align-items: center; gap: 4px; }
.tgrp::before, .tgrp::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
body.simple .drawer { left: 116px; }
@media (max-height: 760px) and (min-width: 821px) { body.simple .tool { padding: 4px 2px; } body.simple .tool i { font-size: 19px; } body.simple .tool span { font-size: 10.5px; } }

/* Otomatik oynama düğmesi ve ayar kartı */
.autobtn { display: flex; align-items: center; gap: 4px; font-size: 13px !important; white-space: nowrap; }
.autobtn span { font-size: 12px; font-weight: 700; }
body.simple .speed button.autobtn { background: rgba(255,255,255,.08); color: #cbd5e1; }
body.simple .speed button.autobtn.on { background: #a855f7; color: #fff; }
.autobig { border: 2px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 12px; background: rgba(255,255,255,.04); }
.autobig.on { border-color: #a855f7; background: rgba(168,85,247,.12); }
.autobig .toggle.big { margin: 0; padding: 0; background: none; border: 0; font-size: 17px; }
.autobig p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
body.simple .tool { padding: 5px 2px; gap: 2px; } body.simple .tool i { font-size: 20px; } body.simple .tool span { font-size: 11px; }
.tgrp { margin: 3px 4px 1px; }
@media (max-height: 820px) and (min-width: 821px) { body.simple .tool { padding: 3px 2px; } body.simple .tool i { font-size: 18px; } body.simple .tool span { font-size: 10px; } }

.stars { letter-spacing: 1px; font-size: 13px; color: #f59e0b; } .stars.s1, .stars.s2 { color: #f97316; } .stars.s5 { color: #facc15; }

/* v2.0: rekabet ve finans */
.compbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 6px 0 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(251, 146, 60, 0.08); }
.compbox > div:first-child { display: flex; flex-direction: column; min-width: 0; flex: 1 1 180px; }
.compbox small { color: var(--muted); font-size: 11.5px; }
.compbox .cacts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; align-items: center; }
.comprow { padding: 4px 0 2px; border-bottom: 1px dashed var(--line); }
.comprow > b { font-size: 13px; cursor: pointer; }
.finbox { border-radius: 12px; padding: 10px; margin-bottom: 10px; border: 1px solid var(--line); border-left: 4px solid #22c55e; background: rgba(34, 197, 94, 0.06); }
.finbox.orange { border-left-color: var(--orange); background: rgba(251, 146, 60, 0.08); }
.finbox.red { border-left-color: var(--red); background: rgba(239, 68, 68, 0.08); }
.finbox > b { display: block; margin-bottom: 6px; }
.paydots { display: inline-flex; gap: 2px; margin-left: 6px; font-size: 11px; vertical-align: middle; }
.paydots i { font-style: normal; cursor: help; }
.paydots i.ok { color: #22c55e; } .paydots i.warn { color: var(--orange); } .paydots i.bad { color: var(--red); }
.ftile.money.neg { animation: negpulse 1.2s ease-in-out infinite; }
@keyframes negpulse { 50% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.55); } }
.sladots { margin-left: 4px; font-size: 11px; letter-spacing: 1px; } .sladots i { font-style: normal; color: var(--muted); } .sladots i.warn { color: var(--orange); } .sladots i.bad { color: var(--red); }
li.slarisk { border-left: 3px solid var(--red); padding-left: 6px; }

.coach.tourside { border: 2px solid #22c55e; font-size: 14.5px; line-height: 1.45; }

/* Kurulumlar */
.builds { position: absolute; left: 12px; top: 50px; z-index: 4; width: 250px; max-width: calc(100% - 90px); background: rgba(255,255,255,0.95); color: #0f2742; border-radius: 14px; padding: 8px 10px; box-shadow: 0 6px 20px rgba(15,39,66,.18); border: 2px solid #3b82f6; }
.builds h6 { margin: 0 0 4px; font-size: 12.5px; color: #1d4ed8; }
.builds .more { color: #475569; font-size: 11px; }
.job { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; cursor: pointer; }
.job + .job { border-top: 1px dashed rgba(59,130,246,.3); }
.job > i { font-style: normal; font-size: 18px; line-height: 1.2; }
.job > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.job b { font-size: 12.5px; line-height: 1.25; }
.job small { font-size: 11px; opacity: .8; }
.job .jbar { display: block; height: 6px; border-radius: 4px; background: rgba(59,130,246,.18); margin: 3px 0 2px; overflow: hidden; }
.job .jbar u { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); border-radius: 4px; }
.jobs { margin: 6px 0 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(59,130,246,.5); background: rgba(59,130,246,.08); }
.upbox { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(34,197,94,.07); }
.upbox > span { display: flex; flex-direction: column; min-width: 0; flex: 1 1 160px; }
.upbox small { color: var(--muted); font-size: 11.5px; }
.dk-city .job { padding: 4px 0 6px; }
@media (max-width: 820px) { .builds { top: 44px; width: 210px; padding: 6px 8px; } .builds .job small { display: none; } }
/* Duraklatma ve bütçe uyarısı */
.pausebar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: rgba(15,39,66,.94); color: #fff; border-radius: 14px; padding: 8px 12px; box-shadow: 0 8px 24px rgba(15,39,66,.35); border: 2px solid #facc15; max-width: calc(100% - 24px); }
.pausebar span { font-size: 12.5px; opacity: .85; }
body.is-paused #map { filter: saturate(.55) brightness(.96); }
#btn-play.nudge { animation: nudge .6s ease 2; }
@keyframes nudge { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(250,204,21,.7); } }
.btn.short { background: #fff7ed !important; color: #9a3412 !important; border: 1px dashed #f97316 !important; }
.eopt.short, .btn.eopt[data-need].short { border-style: dashed; }
.ftile .fsub { display: block; font-size: 10.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.dc-sub { font-size: 11px; opacity: .8; margin: -2px 0 4px; } .dc-sub.warn { color: #f97316; opacity: 1; font-weight: 600; }
.capline { margin: 6px 0 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; } .capline small { color: var(--muted); } .capline.warn { border-color: #f97316; background: rgba(249,115,22,.08); } .capline p { margin: 4px 0 6px; font-size: 12.5px; }
@media (max-width: 820px) { .ftile .fsub { display: none; } }

.whybox { margin: 8px 0 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); } .whybox.bad { border-color: #f97316; background: rgba(249,115,22,.07); }
.whybox h5 { margin: 0 0 6px; font-size: 14px; } .whybox h5 small { font-weight: 400; color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.whybox .wrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; margin: 4px 0; font-size: 12.5px; } .whybox .wrow b { color: #f87171; } .whybox .wrow .jbar { grid-column: 1 / -1; display: block; height: 5px; border-radius: 4px; background: rgba(248,113,113,.15); overflow: hidden; } .whybox .wrow .jbar u { display: block; height: 100%; background: #f87171; }
.whybox .wlist { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; } .whybox .wlist li.crit { color: #fca5a5; } .whybox .okc { color: #4ade80; }

/* v2.0.5: daha ince alt panel, daha büyük harita (masaüstü) */
@media (min-width: 821px) {
  body.simple .dock { padding-top: 6px; }
  .dock-row { grid-template-columns: 240px minmax(0, 1fr) 180px; gap: 8px; align-items: start; }
  .dk-status { max-height: 150px; }
  .dk-actions { gap: 8px; }
  .acard { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-auto-rows: min-content; align-content: start; column-gap: 8px; row-gap: 4px; padding: 8px 10px; border-radius: 14px; overflow: hidden; height: 100%; }
  .acard > .ac-h, .acard > p { grid-column: 1 / -1; }
  .ac-h i { width: 30px; height: 30px; font-size: 17px; border-radius: 9px; }
  .ac-h b { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ac-h .chk { width: 18px; height: 18px; font-size: 10px; top: -4px; right: -4px; }
  .acard p { font-size: 11.5px; line-height: 1.35; -webkit-line-clamp: 2; }
  .ac-cost { font-size: 12.5px; align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .acard .btn { width: auto; padding: 6px 12px; font-size: 13px; border-radius: 10px; align-self: center; white-space: nowrap; }
  .dk-city { padding: 8px 10px; gap: 3px; border-radius: 14px; overflow: hidden; }
  .dc-h { gap: 8px; }
  .dc-ico { width: 36px; height: 36px; font-size: 21px; border-radius: 10px; }
  .dc-h b { font-size: 15px; }
  .spill { font-size: 10px; padding: 1px 7px; margin-top: 1px; }
  .dc-row { font-size: 12px; }
  .dc-sub { font-size: 10.5px; margin: -2px 0 2px; }
  .dk-city .fbar { margin: 0 0 2px; }
  .dk-city .btn { padding: 5px 8px; font-size: 12.5px; border-radius: 10px; }
  .dk-city .btn + .btn { margin-top: 3px; }
  .dk-city .job { padding: 2px 0 3px; } .dk-city .job b { font-size: 11.5px; } .dk-city .job small { font-size: 10.5px; } .dk-city .job > i { font-size: 15px; }
  .dk-status { padding: 8px 10px; border-radius: 14px; overflow-y: auto; }
  .dk-status h5 { margin: 0 0 4px; font-size: 12.5px; }
  .srow { padding: 1px 2px; font-size: 12px; }
  .lvlbar { margin-top: 4px; padding: 2px 8px; font-size: 12.5px; gap: 8px; }
  .lvlbar i { font-size: 17px; }
  .lvlprog { height: 8px; }
}
/* v2.0.6: katlanabilir alt panel, daha dar olay paneli */
.docktog { margin-left: 4px; border: 1px solid #cbd5e1; background: #fff; color: #0f2742; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.docktog:hover { border-color: #22c55e; }
.dock-mini { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid #22c55e; border-radius: 14px; padding: 6px 10px; box-shadow: 0 6px 18px rgba(15,39,66,.08); min-width: 0; }
.dock-mini i { font-style: normal; font-size: 18px; }
.dock-mini b { font-size: 13px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-mini .mcost { font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.dock-mini .btn { width: auto; padding: 5px 12px; white-space: nowrap; }
.dock-mini em { font-style: normal; color: #64748b; font-size: 11.5px; white-space: nowrap; }
body.dock-min .lvlbar { margin-top: 4px; }
@media (min-width: 1100px) { body.simple .evpanel { width: 260px; padding: 10px; } .evp { padding: 8px; gap: 8px; } }
@media (max-width: 820px) { .dock-mini em, .dock-mini .mcost { display: none; } }@media (max-width: 820px) { .ftile .fdem { display: none; } }

/* v2.0.7: üst çubuk kutuları tek satır, taşma yok */
.ftile b .fdem { display: inline; }
.ftile span > small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.ftile b { line-height: 1.15; font-size: clamp(14px, 1.15vw, 17px); overflow: hidden; text-overflow: ellipsis; }
.ftile .fsub { line-height: 1.2; margin-top: 1px; }
.ftile .fbar { margin-top: 3px; }
@media (max-width: 1280px) { .ftile .fsub { display: none; } }/* Orta genişlik: kartlar sıkışmasın */
@media (min-width: 821px) and (max-width: 1400px) { .dk-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dk-actions .acard:nth-child(n+3) { display: none; } }
@media (min-width: 821px) and (max-width: 1180px) { body.simple .evpanel { display: none; } }@media (min-width: 821px) and (max-width: 1050px) { .dock-row { grid-template-columns: 210px minmax(0, 1fr); } .acard { grid-template-columns: minmax(0, 1fr); } .acard .btn { width: 100%; } .ac-cost { overflow: visible; } }@media (max-width: 1000px) { .ftile b .fdem { display: none; } }

.langsel { display: flex; gap: 6px; flex-wrap: wrap; } .sf-lang { justify-content: flex-end; margin-bottom: 6px; }

/* v2.2 ülke seçici */
.ctrysel { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.ctrysel .btn { padding: 6px 10px; }
.ctrysel .btn.soon { opacity: .55; cursor: not-allowed; }
.ctrysel .btn small { font-size: 10px; opacity: .85; margin-left: 2px; }
.ctrysel .btn.soon { opacity: 1; background: transparent; color: #94a3b8; border: 1px dashed #cbd5e1; }
.startfun .ctrysel .btn.ghost:not(.soon), .startfun .langsel .btn.ghost { color: #0f172a; background: #fff; border: 1px solid #cbd5e1; }
