/* ============ İşRadar · Profesyonel Dashboard Teması ============ */
:root{
  --bg:#0b0e16; --bg-2:#0f1320; --surface:#151a29; --surface-2:#1b2233;
  --surface-3:#222b40; --border:#26304a; --border-2:#2f3b59;
  --txt:#e8ecf5; --txt-2:#9aa6c2; --txt-3:#6c7790;
  --acc:#6366f1; --acc-2:#8b5cf6; --acc-grad:linear-gradient(135deg,#6366f1,#8b5cf6);
  --green:#34d399; --green-bg:rgba(52,211,153,.13);
  --amber:#fbbf24; --amber-bg:rgba(251,191,36,.13);
  --red:#f87171; --red-bg:rgba(248,113,113,.13);
  --blue:#38bdf8; --blue-bg:rgba(56,189,248,.13);
  --pink:#f472b6; --pink-bg:rgba(244,114,182,.13);
  --shadow:0 10px 40px -12px rgba(0,0,0,.6);
  --r:14px; --r-sm:10px;
}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none !important}
html,body{height:100%}
body{
  font-family:'Inter',system-ui,Segoe UI,sans-serif;
  background:radial-gradient(1200px 600px at 80% -10%,rgba(99,102,241,.10),transparent 60%),var(--bg);
  color:var(--txt);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;
}
::selection{background:rgba(139,92,246,.4)}
svg{display:block}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input{font-family:inherit}
a{color:inherit;text-decoration:none}

/* scrollbar */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:8px;border:2px solid transparent;background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:#3a486b;background-clip:content-box}

.offline-banner{position:fixed;top:0;left:0;right:0;z-index:120;display:flex;align-items:center;
  gap:12px;justify-content:center;padding:11px 18px;font-size:13px;font-weight:600;
  background:linear-gradient(90deg,#7f1d1d,#9a1c1c);color:#fee2e2;
  box-shadow:0 6px 20px -6px rgba(0,0,0,.6);animation:slideDown .3s}
.offline-banner svg{width:16px;height:16px}
.offline-banner .btn{padding:5px 12px}
@keyframes slideDown{from{transform:translateY(-100%)}to{transform:none}}

.app{display:flex;min-height:100vh}

/* ============ SIDEBAR ============ */
.sidebar{
  width:248px;flex-shrink:0;background:linear-gradient(180deg,var(--bg-2),var(--bg));
  border-right:1px solid var(--border);display:flex;flex-direction:column;
  padding:20px 14px;position:sticky;top:0;height:100vh;z-index:40;
}
.brand{display:flex;align-items:center;gap:12px;padding:6px 8px 22px}
.brand-logo{width:40px;height:40px;border-radius:12px;background:var(--acc-grad);
  display:grid;place-items:center;box-shadow:0 6px 18px -4px rgba(99,102,241,.6)}
.brand-logo svg{width:24px;height:24px;color:#fff}
.brand-name{font-family:'Sora',sans-serif;font-weight:800;font-size:18px;letter-spacing:.2px;display:block}
.brand-sub{font-size:11px;color:var(--txt-3);font-weight:600;text-transform:uppercase;letter-spacing:1.2px}
.nav{display:flex;flex-direction:column;gap:4px;flex:1}
.nav-foot{display:flex;flex-direction:column;gap:4px;border-top:1px solid var(--border);padding-top:12px;margin-top:8px}
.nav-item{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:var(--r-sm);
  color:var(--txt-2);font-weight:600;font-size:13.5px;transition:.16s;width:100%;text-align:left}
.nav-item svg{width:18px;height:18px;flex-shrink:0}
.nav-item:hover{background:var(--surface);color:var(--txt)}
.nav-item.active{background:var(--surface-2);color:#fff;box-shadow:inset 0 0 0 1px var(--border-2)}
.nav-item.active .ni-icon{color:var(--acc-2)}
.nav-badge{margin-left:auto;background:var(--surface-3);color:var(--txt-2);
  font-size:11px;font-weight:700;padding:2px 8px;border-radius:20px;min-width:24px;text-align:center}
.nav-item.active .nav-badge{background:var(--acc);color:#fff}
.foot-note{font-size:10.5px;color:var(--txt-3);line-height:1.6;padding:10px 13px 2px}

/* ============ MAIN ============ */
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;align-items:center;gap:16px;padding:16px 28px;
  border-bottom:1px solid var(--border);position:sticky;top:0;z-index:30;
  background:rgba(11,14,22,.82);backdrop-filter:blur(14px)}
.page-title{font-family:'Sora',sans-serif;font-size:20px;font-weight:700}
.topbar-search{margin-left:auto;display:flex;align-items:center;gap:9px;
  background:var(--surface);border:1px solid var(--border);border-radius:11px;
  padding:9px 13px;width:300px;transition:.18s}
.topbar-search:focus-within{border-color:var(--acc);box-shadow:0 0 0 3px rgba(99,102,241,.18)}
.topbar-search svg{width:16px;height:16px;color:var(--txt-3)}
.topbar-search input{background:none;border:none;outline:none;color:var(--txt);width:100%;font-size:13px}
.content{padding:26px 28px 60px;max-width:1400px}

/* ============ BUTTONS ============ */
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:11px;
  font-weight:650;font-size:13px;transition:.16s;white-space:nowrap}
.btn svg{width:16px;height:16px}
.btn-primary{background:var(--acc-grad);color:#fff;box-shadow:0 6px 18px -6px rgba(99,102,241,.7)}
.btn-primary:hover{filter:brightness(1.08);transform:translateY(-1px)}
.btn-ghost{background:var(--surface-2);color:var(--txt);border:1px solid var(--border)}
.btn-ghost:hover{background:var(--surface-3)}
.btn-sm{padding:7px 12px;font-size:12px;border-radius:9px}
.icon-btn{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;
  background:var(--surface);border:1px solid var(--border);color:var(--txt-2)}
.icon-btn svg{width:18px;height:18px}
.icon-btn:hover{color:var(--txt);background:var(--surface-2)}
.only-mobile{display:none}

/* ============ STAT CARDS ============ */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin-bottom:22px}
.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);
  padding:18px 20px;position:relative;overflow:hidden;transition:.18s}
.stat:hover{border-color:var(--border-2);transform:translateY(-2px)}
.stat::after{content:"";position:absolute;right:-30px;top:-30px;width:110px;height:110px;
  background:radial-gradient(circle,rgba(99,102,241,.16),transparent 70%)}
.stat-ico{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;margin-bottom:14px}
.stat-ico svg{width:19px;height:19px}
.stat-val{font-family:'Sora',sans-serif;font-size:30px;font-weight:800;line-height:1}
.stat-lbl{color:var(--txt-2);font-size:12.5px;font-weight:600;margin-top:7px}
.stat-sub{font-size:11px;color:var(--txt-3);margin-top:3px}

/* ============ PANELS ============ */
.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:20px 22px;margin-bottom:20px}
.panel-head{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.panel-head h2{font-family:'Sora',sans-serif;font-size:15px;font-weight:700}
.panel-head .p-ico{color:var(--acc-2)}
.panel-head .p-ico svg{width:18px;height:18px}
.panel-head .spacer{margin-left:auto}
.grid-2{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;align-items:start}

/* ============ BAR CHART ============ */
.bars{display:flex;flex-direction:column;gap:11px}
.bar-row{display:grid;grid-template-columns:130px 1fr 40px;align-items:center;gap:12px}
.bar-name{font-size:12.5px;color:var(--txt-2);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-track{height:9px;background:var(--surface-3);border-radius:6px;overflow:hidden}
.bar-fill{height:100%;border-radius:6px;background:var(--acc-grad);transition:width .7s cubic-bezier(.2,.8,.2,1)}
.bar-val{font-size:12px;font-weight:700;color:var(--txt-2);text-align:right}

/* ============ FILTER BAR ============ */
.filterbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:18px}
.chip{padding:8px 14px;border-radius:20px;background:var(--surface);border:1px solid var(--border);
  font-size:12.5px;font-weight:600;color:var(--txt-2);transition:.15s}
.chip:hover{color:var(--txt);border-color:var(--border-2)}
.chip.active{background:var(--acc-grad);color:#fff;border-color:transparent}
.select{background:var(--surface);border:1px solid var(--border);color:var(--txt);
  padding:9px 12px;border-radius:10px;font-size:12.5px;font-weight:600;outline:none;cursor:pointer}
.select:focus{border-color:var(--acc)}
.filter-spacer{margin-left:auto;display:flex;gap:10px;align-items:center}
.result-count{font-size:12.5px;color:var(--txt-3);font-weight:600}

/* ============ JOB CARDS ============ */
.jobs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px}
.job{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);
  padding:17px 18px;display:flex;flex-direction:column;gap:12px;transition:.18s;cursor:pointer;position:relative}
.job:hover{border-color:var(--border-2);transform:translateY(-3px);box-shadow:var(--shadow)}
.job-top{display:flex;align-items:flex-start;gap:10px}
.job-fit{flex-shrink:0;width:46px;height:46px;border-radius:12px;display:grid;place-items:center;
  font-family:'Sora',sans-serif;font-weight:800;font-size:15px;position:relative}
.job-fit small{position:absolute;bottom:5px;font-size:7px;font-weight:700;opacity:.7;letter-spacing:.5px}
.fit-hi{background:var(--green-bg);color:var(--green);box-shadow:inset 0 0 0 1px rgba(52,211,153,.3)}
.fit-md{background:var(--amber-bg);color:var(--amber);box-shadow:inset 0 0 0 1px rgba(251,191,36,.3)}
.fit-lo{background:var(--red-bg);color:var(--red);box-shadow:inset 0 0 0 1px rgba(248,113,113,.3)}
.job-title{font-weight:650;font-size:14px;line-height:1.4;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.job-desc{color:var(--txt-2);font-size:12.5px;line-height:1.55;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.job-tags{display:flex;flex-wrap:wrap;gap:6px}
.tag{font-size:10.5px;font-weight:600;padding:3px 9px;border-radius:6px;
  background:var(--surface-3);color:var(--txt-2)}
.job-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:2px;
  padding-top:12px;border-top:1px solid var(--border)}
.badge{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:700;
  padding:4px 9px;border-radius:7px;letter-spacing:.2px}
.badge svg{width:12px;height:12px}
.b-cat{background:var(--blue-bg);color:var(--blue)}
.b-price{background:var(--green-bg);color:var(--green)}
.b-src{background:var(--surface-3);color:var(--txt-2)}
.b-source{background:rgba(56,189,248,.14);color:#7dd3fc;font-weight:700}
.b-talep{background:rgba(139,92,246,.16);color:#b4a0ff}
.b-hizmet{background:var(--surface-3);color:var(--txt-3)}
.job-actions{margin-left:auto;display:flex;gap:6px}
.mini-btn{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;
  background:var(--surface-2);border:1px solid var(--border);color:var(--txt-2);transition:.14s}
.mini-btn svg{width:15px;height:15px}
.mini-btn:hover{color:var(--txt);background:var(--surface-3)}
.mini-btn.fav-on{color:var(--amber);background:var(--amber-bg);border-color:transparent}
.mini-btn.proj-on{color:var(--green);background:var(--green-bg);border-color:transparent}
.mini-btn[data-gen]{color:var(--acc-2)}
.mini-btn[data-gen]:hover{background:rgba(139,92,246,.16)}
.mini-btn.run-btn{color:var(--green)}
.mini-btn.run-btn:hover{background:var(--green-bg)}
.status-pill{font-size:10px;font-weight:700;padding:3px 8px;border-radius:20px;text-transform:uppercase;letter-spacing:.4px}
.st-yeni{background:var(--blue-bg);color:var(--blue)}
.st-inceleniyor{background:var(--amber-bg);color:var(--amber)}
.st-teklif{background:rgba(139,92,246,.16);color:#b4a0ff}
.st-kazanildi{background:var(--green-bg);color:var(--green)}
.st-elendi{background:var(--red-bg);color:var(--red)}

/* ============ EMPTY ============ */
.empty{text-align:center;padding:70px 20px;color:var(--txt-3)}
.empty-ico{width:66px;height:66px;border-radius:18px;background:var(--surface);
  border:1px solid var(--border);display:grid;place-items:center;margin:0 auto 18px}
.empty-ico svg{width:30px;height:30px;color:var(--txt-3)}
.empty h3{color:var(--txt);font-size:16px;font-weight:700;margin-bottom:7px;font-family:'Sora',sans-serif}
.empty p{font-size:13px;max-width:380px;margin:0 auto 18px}

/* ============ MODAL ============ */
.modal-overlay{position:fixed;inset:0;background:rgba(5,7,12,.72);backdrop-filter:blur(6px);
  z-index:90;display:grid;place-items:center;padding:24px;animation:fade .2s}
@keyframes fade{from{opacity:0}to{opacity:1}}
.modal{background:var(--surface);border:1px solid var(--border-2);border-radius:18px;
  width:min(640px,100%);max-height:88vh;overflow:auto;box-shadow:var(--shadow);animation:pop .22s}
@keyframes pop{from{transform:translateY(14px) scale(.98);opacity:0}to{transform:none;opacity:1}}
.modal-head{padding:22px 24px;border-bottom:1px solid var(--border);position:sticky;top:0;
  background:var(--surface);z-index:2}
.modal-head .mh-top{display:flex;align-items:flex-start;gap:14px}
.modal-head h2{font-family:'Sora',sans-serif;font-size:17px;line-height:1.4;font-weight:700;flex:1}
.modal-close{flex-shrink:0;width:34px;height:34px;border-radius:9px;background:var(--surface-2);
  border:1px solid var(--border);display:grid;place-items:center;color:var(--txt-2)}
.modal-close:hover{color:var(--txt);background:var(--surface-3)}
.modal-close svg{width:17px;height:17px}
.modal-body{padding:22px 24px}
.modal-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.modal-section{margin-bottom:20px}
.modal-section h4{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--txt-3);
  font-weight:700;margin-bottom:9px}
.modal-desc{font-size:13.5px;line-height:1.7;color:var(--txt);background:var(--bg-2);
  border:1px solid var(--border);border-radius:12px;padding:16px;
  white-space:pre-wrap;word-break:break-word;max-height:340px;overflow:auto}
.modal-desc a{color:var(--acc-2);text-decoration:underline}
.kv{display:grid;grid-template-columns:120px 1fr;gap:8px 14px;font-size:13px}
.kv dt{color:var(--txt-3);font-weight:600}
.kv dd{color:var(--txt);font-weight:600}
.status-row{display:flex;gap:8px;flex-wrap:wrap}
.status-opt{padding:8px 14px;border-radius:10px;font-size:12px;font-weight:700;
  background:var(--surface-2);border:1px solid var(--border);color:var(--txt-2);transition:.14s}
.status-opt:hover{color:var(--txt)}
.status-opt.on{background:var(--acc-grad);color:#fff;border-color:transparent}
.notes-area{width:100%;background:var(--bg-2);border:1px solid var(--border);border-radius:11px;
  padding:12px 14px;color:var(--txt);font-size:13px;resize:vertical;min-height:74px;outline:none}
.notes-area:focus{border-color:var(--acc)}
.modal-foot{display:flex;gap:10px;padding:18px 24px;border-top:1px solid var(--border);
  position:sticky;bottom:0;background:var(--surface)}

/* ============ SCAN OVERLAY ============ */
.scan-overlay{position:fixed;inset:0;background:rgba(5,7,12,.8);backdrop-filter:blur(8px);
  z-index:95;display:grid;place-items:center;padding:24px}
.scan-box{background:var(--surface);border:1px solid var(--border-2);border-radius:20px;
  padding:34px 32px;width:min(460px,100%);text-align:center;box-shadow:var(--shadow)}
.scan-box h3{font-family:'Sora',sans-serif;font-size:17px;font-weight:700;margin:18px 0 16px}
.scan-radar{width:88px;height:88px;border-radius:50%;margin:0 auto;position:relative;
  border:2px solid var(--border-2);background:radial-gradient(circle,rgba(99,102,241,.08),transparent)}
.scan-radar::before{content:"";position:absolute;inset:18px;border-radius:50%;border:1px solid var(--border)}
.scan-sweep{position:absolute;inset:0;border-radius:50%;
  background:conic-gradient(from 0deg,transparent 0deg,rgba(139,92,246,.55) 60deg,transparent 90deg);
  animation:sweep 1.5s linear infinite}
@keyframes sweep{to{transform:rotate(360deg)}}
.scan-dot{position:absolute;top:50%;left:50%;width:9px;height:9px;border-radius:50%;
  background:var(--acc-2);transform:translate(-50%,-50%);box-shadow:0 0 14px var(--acc-2)}
.scan-bar{height:8px;background:var(--surface-3);border-radius:6px;overflow:hidden;margin-bottom:10px}
.scan-bar-fill{height:100%;width:0;background:var(--acc-grad);border-radius:6px;transition:width .4s}
.scan-meta{display:flex;justify-content:space-between;font-size:12px;color:var(--txt-2);font-weight:600;margin-bottom:14px}
.scan-log{list-style:none;text-align:left;font-size:11.5px;color:var(--txt-3);max-height:120px;
  overflow:auto;background:var(--bg-2);border:1px solid var(--border);border-radius:10px;padding:10px 12px}
.scan-log li{padding:2px 0;font-family:ui-monospace,monospace}
.scan-box .btn{margin-top:16px;width:100%;justify-content:center}

/* ============ SCAN VIEW ============ */
.src-groups{display:flex;flex-direction:column;gap:18px;margin-bottom:18px}
.src-group-head{display:flex;align-items:center;gap:9px;margin-bottom:9px;font-size:13.5px}
.src-group-head b{font-weight:700}
.src-dot{width:10px;height:10px;border-radius:50%;background:var(--txt-3)}
.src-r10{background:#f87171}.src-wmaraci{background:#34d399}.src-freelancer{background:#38bdf8}
.src-kind{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;
  color:var(--txt-3);background:var(--surface-3);padding:2px 8px;border-radius:6px}
.src-group .src-item{margin-bottom:8px}
.src-list{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}
.src-item{display:flex;align-items:center;gap:13px;padding:14px 16px;background:var(--surface-2);
  border:1px solid var(--border);border-radius:12px;transition:.15s}
.src-item:hover{border-color:var(--border-2)}
.src-check{width:22px;height:22px;border-radius:7px;border:2px solid var(--border-2);
  display:grid;place-items:center;flex-shrink:0;transition:.14s}
.src-check svg{width:13px;height:13px;color:#fff;opacity:0}
.src-item.on .src-check{background:var(--acc-grad);border-color:transparent}
.src-item.on .src-check svg{opacity:1}
.src-info{flex:1}
.src-info b{font-size:13.5px;font-weight:650}
.src-info span{display:block;font-size:11.5px;color:var(--txt-3);margin-top:2px}
.opt-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.opt-row label{font-size:12.5px;color:var(--txt-2);font-weight:600;display:flex;align-items:center;gap:8px}
.range-wrap{display:flex;align-items:center;gap:10px}
input[type=range]{accent-color:var(--acc)}
.switch{position:relative;width:42px;height:24px;background:var(--surface-3);border-radius:20px;transition:.18s;flex-shrink:0}
.switch.on{background:var(--acc)}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;background:#fff;border-radius:50%;transition:.18s}
.switch.on::after{left:21px}

/* loading skeleton */
.skel{background:linear-gradient(90deg,var(--surface) 25%,var(--surface-2) 37%,var(--surface) 63%);
  background-size:400% 100%;animation:shimmer 1.4s infinite;border-radius:var(--r);height:150px}
@keyframes shimmer{from{background-position:100% 0}to{background-position:-100% 0}}

/* ============ TOASTS ============ */
.toast-wrap{position:fixed;bottom:22px;right:22px;z-index:100;display:flex;flex-direction:column;gap:10px}
.toast{background:var(--surface-2);border:1px solid var(--border-2);border-left:3px solid var(--acc);
  border-radius:11px;padding:13px 17px;font-size:13px;font-weight:600;box-shadow:var(--shadow);
  display:flex;align-items:center;gap:10px;animation:slideIn .25s;min-width:200px}
.toast svg{width:17px;height:17px;flex-shrink:0}
.toast.ok{border-left-color:var(--green)}.toast.ok svg{color:var(--green)}
.toast.err{border-left-color:var(--red)}.toast.err svg{color:var(--red)}
.toast.info svg{color:var(--acc-2)}
@keyframes slideIn{from{transform:translateX(40px);opacity:0}to{transform:none;opacity:1}}

/* ============ RESPONSIVE ============ */
@media(max-width:980px){.grid-2{grid-template-columns:1fr}}
@media(max-width:820px){
  .sidebar{position:fixed;left:0;top:0;transform:translateX(-100%);transition:.25s;box-shadow:var(--shadow)}
  .sidebar.open{transform:none}
  .only-mobile{display:grid}
  .topbar-search{width:auto;flex:1}
  .content{padding:18px 16px 50px}
  .btn-primary span:last-child{display:none}
}
