:root {
  --bg: #fff; --text: #0B0B0B; --muted: #5C5C5C; --soft: #8A8A86; --surface: #F4F4F2; --line: #E6E6E2;
  --hero: #0B0B0B; --heroMuted: #A3A3A3; --track: #262626; --accent: #39FF14; --danger: #FF4D4D;
  --r: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font: 500 14px/1.45 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }
.disp { font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.boot { height: 100vh; display: grid; place-items: center; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--surface); border-top-color: var(--accent); animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* --- Giriş --- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: var(--hero); color: #fff; position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login .art svg.map { position: absolute; right: -6%; bottom: 10%; width: 92%; opacity: .95; }
.login .art h1 { font-family: Archivo, Inter; font-weight: 900; font-stretch: 125%; font-size: clamp(40px, 5vw, 76px); line-height: .92; letter-spacing: -.03em; text-transform: uppercase; position: relative; }
.login .art h1 em { font-style: normal; color: var(--accent); }
.login .art p { color: var(--heroMuted); max-width: 360px; position: relative; }
.login .form { display: flex; flex-direction: column; justify-content: center; padding: 56px max(56px, 8vw); gap: 18px; }
.login .form h2 { font-size: 34px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 56px; border-radius: 18px; background: var(--hero); color: #fff; font-weight: 700; font-size: 16px; transition: transform .15s; }
.gbtn:hover { transform: translateY(-1px); }
.note { font-size: 12.5px; color: var(--soft); }
.err { background: #FFF1F1; color: #B42318; border-radius: 14px; padding: 12px 14px; font-size: 13px; }

/* --- Yerleşim --- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--hero); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
.tile { width: 40px; height: 40px; border-radius: 12px; background: #000; border: 1px solid #2a2a2a; display: grid; place-items: center; box-shadow: 0 0 18px rgba(57,255,20,.25); }
.word { font: 700 20px 'Space Grotesk'; display: flex; gap: 4px; align-items: center; }
.word span { background: var(--accent); color: var(--text); border-radius: 6px; padding: 0 5px; }
.side .lbl { font: 700 10.5px Inter; letter-spacing: .14em; color: var(--heroMuted); padding: 10px 12px 6px; }
.nav { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; color: #D8D8D4; font-weight: 600; text-align: left; width: 100%; }
.nav:hover { background: #1a1a1a; color: #fff; }
.nav.on { background: var(--accent); color: var(--text); }
.nav svg { width: 20px; height: 20px; flex: none; }
.nav .cnt { margin-left: auto; font-size: 12px; color: var(--heroMuted); }
.nav.on .cnt { color: rgba(0,0,0,.6); }
.side .foot { margin-top: auto; border-top: 1px solid #222; padding: 14px 8px 0; font-size: 12px; color: var(--heroMuted); display: grid; gap: 8px; }
.side .foot b { color: #fff; font-weight: 600; word-break: break-all; }
.side .foot button { text-align: left; color: var(--accent); font-weight: 600; }

.main { padding: 28px 36px 60px; min-width: 0; }
.top { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.top h1 { font-size: 34px; line-height: 1.05; }
.top .sub { color: var(--muted); margin-top: 4px; }
.top .act { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn { height: 40px; padding: 0 16px; border-radius: 12px; background: var(--surface); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { background: #EBEBE7; }
.btn.dark { background: var(--hero); color: #fff; }
.demo { background: var(--accent); color: var(--text); font: 800 11px Inter; letter-spacing: .08em; padding: 5px 9px; border-radius: 8px; }

/* --- Kartlar --- */
.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; }
.card { background: var(--surface); border-radius: var(--r); padding: 18px; min-width: 0; }
.card.hero { background: var(--hero); color: #fff; }
.card.hero .muted { color: var(--heroMuted); }
.card h3 { font: 700 15px Inter; display: flex; align-items: center; gap: 8px; }
.card h3 .muted { font-weight: 500; font-size: 12.5px; margin-left: auto; }
.kpi .v { font-size: 40px; line-height: 1; margin: 12px 0 8px; }
.kpi .v small { font: 600 14px Inter; color: var(--muted); margin-left: 4px; }
.card.hero .kpi .v, .kpi.hero .v { color: var(--accent); }
.kpi .t { font: 700 11px Inter; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card.hero .t { color: var(--heroMuted); }
.chip { display: inline-flex; align-items: center; gap: 4px; font: 700 11.5px Inter; border-radius: 8px; padding: 3px 8px; background: var(--accent); color: var(--text); }
.chip.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.chip.dark { background: var(--hero); color: #fff; }
.two { grid-template-columns: 1.5fr 1fr; margin-bottom: 14px; }
.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }

/* Çubuk grafik */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; margin-top: 18px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: #C9C9C4; min-height: 3px; position: relative; }
.bars .b.today i { background: var(--accent); }
.bars .b i span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font: 700 11px Inter; color: var(--text); }
.bars .b small { font-size: 10.5px; color: var(--soft); white-space: nowrap; }

/* Yatay oran */
.rows { display: grid; gap: 12px; margin-top: 14px; }
.rowbar { display: grid; grid-template-columns: 92px 1fr 46px; align-items: center; gap: 10px; font-weight: 600; }
.rowbar .track { height: 10px; border-radius: 6px; background: #E3E3DE; overflow: hidden; }
.rowbar .track i { display: block; height: 100%; background: var(--text); border-radius: 6px; }
.rowbar .n { text-align: right; font-family: 'Space Grotesk'; }
.card.hero .rowbar .track { background: var(--track); }
.card.hero .rowbar .track i { background: var(--accent); }

.split { display: flex; height: 14px; border-radius: 8px; overflow: hidden; margin: 14px 0 10px; background: #E3E3DE; }
.split i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legend b { color: var(--text); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }

/* Harita */
.mapwrap { position: relative; margin-top: 10px; }
.mapwrap svg { width: 100%; height: auto; display: block; }
.toplist { display: grid; gap: 8px; margin-top: 12px; }
.toplist div { display: flex; justify-content: space-between; font-weight: 600; }

/* Liste */
.list { display: grid; gap: 6px; margin-top: 12px; }
.li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; background: var(--bg); }
.card.hero .li { background: #161616; }
.li .r { width: 22px; font-family: 'Space Grotesk'; font-weight: 700; }
.li .nm { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .nm small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.li .k { font-family: 'Space Grotesk'; font-weight: 700; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--hero); color: var(--accent); display: grid; place-items: center; font: 800 13px Inter; flex: none; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.tick { width: 15px; height: 15px; vertical-align: -2px; margin-left: 4px; }

/* Lig */
.tabs { display: inline-flex; background: var(--surface); border-radius: 16px; padding: 4px; gap: 4px; }
.tabs button { padding: 9px 16px; border-radius: 12px; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--hero); color: #fff; }
.tabs button .c { font-size: 11px; margin-left: 6px; color: var(--soft); }
.tabs button.on .c { color: var(--accent); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.sel { height: 40px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; background: var(--bg); font-weight: 600; }
.groups { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.gcard .head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.gcard .head b { font: 700 18px 'Space Grotesk'; }
.mrow { display: grid; grid-template-columns: 26px 30px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: var(--bg); margin-bottom: 4px; font-weight: 600; }
.mrow .av { width: 30px; height: 30px; font-size: 12px; }
.mrow.up { box-shadow: inset 3px 0 0 var(--accent); }
.mrow.down { box-shadow: inset 3px 0 0 var(--danger); }
.mrow .k { font-family: 'Space Grotesk'; }
.zone { font: 700 10.5px Inter; letter-spacing: .08em; color: var(--soft); margin: 10px 2px 6px; text-transform: uppercase; }

/* Tablo */
.search { flex: 1; min-width: 240px; height: 44px; border-radius: 14px; border: 1px solid var(--line); padding: 0 16px 0 42px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235C5C5C' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; }
.search:focus, .sel:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.tbl th { text-align: left; font: 700 11px Inter; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding: 0 12px 2px; white-space: nowrap; }
.tbl td { background: var(--surface); padding: 10px 12px; white-space: nowrap; }
.tbl tr td:first-child { border-radius: 14px 0 0 14px; }
.tbl tr td:last-child { border-radius: 0 14px 14px 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: #ECECE8; }
.tbl .who { display: flex; align-items: center; gap: 10px; }
.tbl .who small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.empty { text-align: center; padding: 40px; color: var(--muted); }

/* Çekmece */
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: .2s; }
.drawer-bg.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; background: var(--bg); box-shadow: -20px 0 60px rgba(0,0,0,.15); transform: translateX(105%); transition: .25s; padding: 24px; overflow: auto; }
.drawer.on { transform: none; }
.drawer .hero { background: var(--hero); color: #fff; border-radius: var(--r); padding: 20px; display: flex; gap: 14px; align-items: center; }
.drawer .hero .av { width: 64px; height: 64px; font-size: 22px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 12px; margin-top: 18px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; word-break: break-all; }
.medals { display: flex; gap: 8px; margin-top: 8px; }
.medals span { background: var(--surface); border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.info { background: var(--surface); border-radius: 14px; padding: 12px 14px; font-size: 12.5px; color: var(--muted); margin-top: 18px; }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .two, .three { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .login { grid-template-columns: 1fr; } .login .art { min-height: 300px; } .main { padding: 20px; } }
.kv dd .medals { flex-wrap: wrap; }
.kv dd .medals span { word-break: normal; white-space: nowrap; }
.drawer .hero .av { border: 1.5px solid #333; }

.chip.danger { background: #FFE3E3; color: #B42318; }
.sect { font: 700 11px Inter; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin: 24px 2px 8px; }
.sect.danger { color: #B42318; }
.modrow { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.modrow > div { flex: 1; min-width: 0; }
.modrow small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.modrow .btn { flex: none; height: 36px; font-size: 13px; }
.btn.red { background: #D92D20; color: #fff; }
.btn.red:hover { background: #B42318; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--bg); border-radius: 24px; padding: 24px; width: 440px; max-width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal h3 { font-size: 22px; margin-bottom: 8px; }
.modal p { color: var(--muted); line-height: 1.5; }
.modal p b { color: var(--text); }
.search.plain { background-image: none; padding-left: 16px; width: 100%; margin-top: 14px; }
.mact { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--hero); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: .25s; z-index: 60; border-left: 4px solid var(--accent); max-width: 90vw; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-left-color: var(--danger); }

/* --- Talepler / Duyurular / Rapor --- */
.cnt.hot { background: #D92D20; color: #fff; border-radius: 99px; min-width: 20px; text-align: center; padding: 0 6px; }
.cnt.hot:empty { display: none; }
.reqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; margin-top: 14px; }
.card.req { display: flex; flex-direction: column; gap: 12px; }
.card.req.warm { box-shadow: inset 0 0 0 2px #F5C518; }
.rq-h { display: flex; gap: 12px; align-items: center; }
.rq-t { flex: 1; min-width: 0; }
.rq-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-t small, .match small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-h .big { font-size: 30px; line-height: 1; text-align: right; }
.rq-h .big small { display: block; font: 600 11px Inter; color: var(--muted); }
.rq-h .av svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rq-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.rq-f > span:last-child { display: flex; gap: 6px; }
.rq-f .btn { height: 34px; font-size: 13px; }
.rq-f a { color: var(--text); font-weight: 600; }
.note { color: var(--text); background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin: 0; line-height: 1.45; }
.match { display: flex; gap: 10px; align-items: center; border: 1px dashed #D5D5D0; border-radius: 12px; padding: 10px; font-size: 13px; }
.match > span:last-child { min-width: 0; }
.card.empty { text-align: center; padding: 40px; grid-column: 1 / -1; }
.card.empty .disp { font-size: 28px; }
.chip.live { background: var(--accent); color: #0B0B0B; }
.tabs b { opacity: .55; margin-left: 4px; }
.grid.ann { grid-template-columns: 1.4fr 1fr; align-items: start; }
.fl { display: block; font-weight: 600; font-size: 13px; margin-top: 14px; position: relative; }
.fl i { font-style: normal; color: var(--muted); font-weight: 500; }
.fl input, .fl textarea { display: block; width: 100%; margin-top: 6px; border: 1.5px solid #E2E2DC; border-radius: 12px; padding: 11px 13px; font: 500 14px Inter; background: #fff; color: var(--text); resize: vertical; }
.fl input:focus, .fl textarea:focus { outline: none; border-color: var(--text); }
.fl input.bad { border-color: #D92D20; }
.fl small { position: absolute; right: 4px; top: 0; color: var(--muted); font-weight: 500; }
.frow { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.phone { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phone .scr { width: 300px; background: #F4F4F0; border: 10px solid #0B0B0B; border-radius: 40px; padding: 22px 14px; min-height: 420px; }
.ph-top span { color: var(--muted); font-size: 12px; } .ph-top b { display: block; font-size: 24px; margin-bottom: 14px; }
.ann-card { display: flex; gap: 10px; background: #0B0B0B; color: #fff; border: 1.5px solid var(--accent); border-radius: 20px; padding: 14px 10px 14px 14px; }
.ann-card .ic { flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #0B0B0B; display: grid; place-items: center; }
.ann-card .ic svg { width: 20px; height: 20px; }
.ann-card > div { flex: 1; min-width: 0; }
.ann-card b { display: block; font-size: 15px; word-wrap: break-word; }
.ann-card p { color: #A8A8A2; font-size: 12px; margin: 3px 0 0; line-height: 1.35; word-wrap: break-word; }
.ann-card .cta { display: inline-block; margin-top: 9px; background: var(--accent); color: #0B0B0B; font-weight: 700; font-size: 12px; border-radius: 99px; padding: 7px 13px; }
.ann-card .x { color: #777; font-size: 18px; line-height: 1; }
.ph-ghost { height: 150px; border-radius: 22px; background: #0B0B0B; opacity: .9; margin-top: 10px; }
.ph-ghost.s { height: 70px; background: #fff; opacity: 1; }
.h3o { margin: 30px 0 0; }
.sel { height: 40px; border-radius: 12px; border: 1.5px solid #E2E2DC; padding: 0 12px; font: 600 14px Inter; background: #fff; }
.up { color: #12A150; font-weight: 700; font-size: 13px; } .down { color: #D92D20; font-weight: 700; font-size: 13px; }
.card.hero .up { color: var(--accent); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid #ECECE6; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid #F1F1EC; }
.tbl .dot { margin-right: 8px; }
.rowbar.light .track { background: #EFEFEA; } .rowbar.light .track i { background: #0B0B0B; }
.foot-note { font-size: 12px; margin-top: 18px; }
.print-head { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .side, .act, .drawer, .drawer-bg, .toast, .top .sub { display: none !important; }
  .shell { display: block; } .main { padding: 0; margin: 0; max-width: none; }
  .top h1 { display: none; }
  .print-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid #0B0B0B; padding-bottom: 8px; margin-bottom: 14px; }
  .print-head b { font-size: 22px; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #E5E5E0; }
  .card.hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .grid.kpis { grid-template-columns: repeat(4, 1fr); } .grid.two { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) { .grid.ann { grid-template-columns: 1fr; } }
