/* ================================================================
   TalentRank tasarım sistemi — premium koyu tema + neon vurgular
   (RayOn çizgisinden uyarlandı; data-theme="light" ile açık tema)
   ================================================================ */
:root {
  --bg: #04060d;
  --bg-2: #070b16;
  --panel: #0b1120;
  --panel-2: #101830;
  --card-glass: linear-gradient(165deg, rgba(17, 26, 48, 0.92), rgba(6, 10, 22, 0.97));
  --line: rgba(148, 190, 233, 0.1);
  --line-2: rgba(148, 190, 233, 0.2);
  --text: #eaf2fc;
  --muted: #93a5bf;
  --faint: #5e7089;

  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --cyan-ink: #67e8f9;
  --cyan-soft: rgba(34, 211, 238, 0.13);
  --cyan-glow: 0 0 22px rgba(34, 211, 238, 0.35);
  --teal: #2dd4bf;
  --violet: #a78bfa;
  --violet-ink: #c4b5fd;
  --violet-soft: rgba(167, 139, 250, 0.15);
  --magenta: #e879f9;
  --green: #34d399;
  --green-ink: #6ee7b7;
  --green-soft: rgba(52, 211, 153, 0.14);
  --amber: #fbbf24;
  --amber-ink: #fcd34d;
  --amber-soft: rgba(251, 191, 36, 0.14);
  --red: #fb7185;
  --red-ink: #fda4af;
  --red-soft: rgba(251, 113, 133, 0.14);
  --blue: #60a5fa;
  --blue-ink: #93c5fd;
  --blue-soft: rgba(96, 165, 250, 0.14);

  --grad-brand: linear-gradient(120deg, #22d3ee, #2dd4bf 45%, #a78bfa);
  --grad-primary: linear-gradient(120deg, #06b6d4, #0891b2);
  --grad-bar: linear-gradient(90deg, #06b6d4, #22d3ee 60%, #67e8f9);

  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
  --shadow-sm: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
  --ff: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #eef2f8;
  --bg-2: #e5ebf4;
  --panel: #ffffff;
  --panel-2: #f3f7fc;
  --card-glass: linear-gradient(165deg, #ffffff, #f4f8fd);
  --line: #dde5ef;
  --line-2: #c8d4e2;
  --text: #101d30;
  --muted: #52657e;
  --faint: #8b9cb2;

  --cyan-ink: #0e7490;
  --violet-ink: #6d28d9;
  --green-ink: #047857;
  --amber-ink: #92400e;
  --red-ink: #be123c;
  --blue-ink: #1d4ed8;
  --cyan-soft: rgba(6, 182, 212, 0.1);
  --violet-soft: rgba(124, 58, 237, 0.1);
  --green-soft: rgba(4, 120, 87, 0.1);
  --amber-soft: rgba(146, 64, 14, 0.1);
  --red-soft: rgba(190, 18, 60, 0.1);
  --blue-soft: rgba(29, 78, 216, 0.1);
  --cyan-glow: 0 6px 18px rgba(6, 182, 212, 0.25);

  --shadow: 0 24px 50px -30px rgba(16, 29, 48, 0.35);
  --shadow-sm: 0 10px 24px -14px rgba(16, 29, 48, 0.22);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Neon arka plan ışıkları — yavaşça nefes alır ve süzülür */
body::before {
  content: "";
  position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(34, 211, 238, 0.15), transparent 60%),
    radial-gradient(760px 420px at 88% -6%, rgba(167, 139, 250, 0.14), transparent 60%),
    radial-gradient(900px 600px at 50% 115%, rgba(45, 212, 191, 0.09), transparent 60%);
  animation: bgDrift 18s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  from { transform: translate(0, 0) scale(1); opacity: 0.9; }
  to { transform: translate(2.5%, 1.5%) scale(1.06); opacity: 1; }
}
:root[data-theme="light"] body::before {
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(6, 182, 212, 0.13), transparent 60%),
    radial-gradient(760px 420px at 88% -6%, rgba(124, 58, 237, 0.1), transparent 60%);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.app { max-width: 1300px; margin: 0 auto; padding: 26px 30px 90px; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(420px, 100%);
  background: var(--card-glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.login-mark { margin-bottom: 16px; }
.login-card h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.4px;
}
.login-copy {
  margin: 10px 0 22px;
  color: var(--muted);
}
.login-card button { width: 100%; margin-top: 4px; }
.login-error {
  margin: 13px 0 0;
  color: var(--red-ink);
  font-weight: 700;
  font-size: 12.5px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--card-glass); border: 1px solid var(--line);
  border-radius: 20px; padding: 42px 44px 38px;
  margin-bottom: 18px; box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
}
.hero-glow {
  position: absolute; inset: -40% -20% auto; height: 130%;
  background:
    radial-gradient(560px 300px at 18% 20%, rgba(34, 211, 238, 0.22), transparent 60%),
    radial-gradient(520px 300px at 82% 10%, rgba(167, 139, 250, 0.2), transparent 60%);
  pointer-events: none;
  animation: heroDrift 11s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: translateX(-3%) translateY(0); }
  to { transform: translateX(3%) translateY(5%); }
}
.hero-eyebrow {
  margin: 0 0 10px; font-size: 11px; font-weight: 850;
  letter-spacing: 2.2px; text-transform: uppercase; color: var(--cyan-ink);
}
.hero-title {
  margin: 0; font-size: 40px; line-height: 1.12; font-weight: 850; letter-spacing: -1.2px;
}
.hero-accent {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub { margin: 14px 0 0; max-width: 640px; color: var(--muted); font-size: 14.5px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 900px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } .hero-title { font-size: 30px; } }
.hero-stat {
  text-align: left; padding: 15px 17px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
  cursor: pointer; font-family: inherit; color: var(--text);
  transition: border-color 0.18s, transform 0.12s, box-shadow 0.18s;
  position: relative; overflow: hidden;
}
.hero-stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad-brand); opacity: 0.6; }
.hero-stat:hover { border-color: rgba(34, 211, 238, 0.55); transform: translateY(-2px); box-shadow: var(--cyan-glow); }
.hero-stat dd { margin: 0; font-size: 27px; font-weight: 850; letter-spacing: -0.8px; color: var(--cyan-ink); }
.hero-stat dt { font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 3px; }
.hero-stat.accent dd {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Topbar ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.brand { display: flex; gap: 15px; align-items: center; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad-brand);
  color: #03131a; font-weight: 850; font-size: 16px; letter-spacing: 0.5px;
  display: grid; place-items: center;
  box-shadow: var(--cyan-glow), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.brand h1 {
  margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.3px;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px; padding: 0; border-radius: 12px;
  display: grid; place-items: center; font-size: 17px;
  background: var(--panel); border: 1px solid var(--line-2);
}
.theme-toggle:hover { border-color: var(--cyan); box-shadow: var(--cyan-glow); }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--cyan-soft); color: var(--cyan-ink);
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-size: 12.5px; font-weight: 700;
}
.status-pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 8px currentColor;
}
.status-pill.neutral { background: rgba(148, 165, 191, 0.1); color: var(--muted); border-color: var(--line-2); }
.status-pill.busy { background: var(--blue-soft); color: var(--blue-ink); border-color: rgba(96, 165, 250, 0.35); }
.status-pill.error { background: var(--red-soft); color: var(--red-ink); border-color: rgba(251, 113, 133, 0.35); }
.status-pill.ok { background: var(--green-soft); color: var(--green-ink); border-color: rgba(52, 211, 153, 0.35); }

/* ---------- Stepper ---------- */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.step {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 17px; border-radius: var(--r);
  background: var(--card-glass); border: 1px solid var(--line);
  cursor: pointer; text-align: left; font-family: inherit; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.08s;
  position: relative; overflow: hidden;
}
.step::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad-brand); opacity: 0; transition: opacity 0.18s;
}
.step:hover { border-color: var(--line-2); transform: translateY(-1px); }
.step.active { border-color: rgba(34, 211, 238, 0.55); box-shadow: var(--cyan-glow), var(--shadow-sm); }
.step.active::after { opacity: 1; }
.step-num {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1.5px solid var(--line-2);
  font-weight: 800; font-size: 13px; color: var(--muted);
}
.step.active .step-num {
  background: var(--grad-brand); border-color: transparent; color: #03131a;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.5);
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 14px rgba(34, 211, 238, 0.5), 0 0 0 0 rgba(34, 211, 238, 0.4); }
  70% { box-shadow: 0 0 14px rgba(34, 211, 238, 0.5), 0 0 0 11px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 14px rgba(34, 211, 238, 0.5), 0 0 0 0 rgba(34, 211, 238, 0); }
}
.step-body { display: flex; flex-direction: column; min-width: 0; }
.step-body strong { font-size: 13.5px; font-weight: 750; }
.step-body small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Kartlar ---------- */
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* aktif panelde kartlar sırayla belirir */
.step-panel.active > .card, .step-panel.active > .grid-2 > .card, .step-panel.active > div > .card {
  animation: fadeUp 0.45s ease both;
}
.step-panel.active .card:nth-child(1) { animation-delay: 0.03s; }
.step-panel.active .card:nth-child(2) { animation-delay: 0.09s; }
.step-panel.active .card:nth-child(3) { animation-delay: 0.15s; }
.step-panel.active .card:nth-child(4) { animation-delay: 0.21s; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-2.uneven { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 1000px) { .grid-2, .grid-2.uneven, .stepper { grid-template-columns: 1fr; } }

.card {
  background: var(--card-glass); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.card.slim { padding: 15px 20px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 15px; }
.card-head.wrap { flex-wrap: wrap; }
.card-head.compact { margin-bottom: 6px; }
.card-head h2 {
  margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--cyan-ink);
}
.card-head h2 .badge { text-transform: none; letter-spacing: 0; }
.card-head h3 { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--violet-ink); }
.hint { color: var(--faint); font-size: 12px; text-transform: none; letter-spacing: 0; }
.note { color: var(--muted); font-size: 12.5px; margin: 8px 0; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  background: var(--violet-soft); color: var(--violet-ink);
  border: 1px solid rgba(167, 139, 250, 0.3);
  font-size: 12px; font-weight: 750; vertical-align: 1px;
}

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; flex: 1; }
.field > span { font-size: 11px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: 0.7px; }
.field-row { display: flex; gap: 12px; }
input[type="text"], input[type="url"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], select, textarea {
  font-family: inherit; font-size: 13.5px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 10px 13px; outline: none; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16), var(--cyan-glow);
}
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--faint); }

/* Native dropdown popup'ları temaya uydur.
   1) Yedek: color-scheme + option arka planı (tüm tarayıcılar)
   2) Modern: base-select ile popup tamamen CSS'ten stillenir (Chromium 135+) */
select { color-scheme: dark; }
:root[data-theme="light"] select { color-scheme: light; }
select option, select optgroup {
  background: var(--panel);
  color: var(--text);
}

@supports (appearance: base-select) {
  select, select::picker(select) { appearance: base-select; }
  select::picker(select) {
    background: var(--panel-2);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 211, 238, 0.12);
    margin-top: 4px;
  }
  :root[data-theme="light"] select::picker(select) {
    box-shadow: 0 14px 40px rgba(16, 29, 48, 0.25);
  }
  select option {
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.1s;
  }
  select option:hover, select option:focus {
    background: var(--cyan-soft);
    color: var(--cyan-ink);
  }
  select option:checked {
    color: var(--cyan-ink);
    font-weight: 700;
  }
  select option::checkmark { color: var(--cyan); margin-right: 6px; }
}

.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; margin: 6px 0; user-select: none; }
.toggle.small { font-size: 12.5px; color: var(--muted); margin: 0; }
.toggle input { width: 16px; height: 16px; accent-color: var(--cyan-strong); cursor: pointer; }

.inline-field { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.inline-field.grow { flex: 1; min-width: 280px; }
.inline-field select, .inline-field input { width: auto; min-width: 72px; padding: 8px 11px; }
.inline-field.grow select { width: 100%; }

/* ---------- Butonlar ---------- */
button {
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text);
  padding: 10px 17px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.06s;
}
button:hover { border-color: var(--line-2); background: var(--panel); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary {
  background: var(--grad-primary); border-color: transparent; color: #eafcff;
  box-shadow: var(--cyan-glow);
  text-shadow: 0 1px 2px rgba(0, 40, 50, 0.35);
  position: relative; overflow: hidden;
}
button.primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); transition: left 0.45s ease;
}
button.primary:hover { filter: brightness(1.12); box-shadow: 0 0 30px rgba(34, 211, 238, 0.5); }
button.primary:hover::after { left: 130%; }
button.danger { background: linear-gradient(120deg, #e11d48, #be123c); border-color: transparent; color: #fff; box-shadow: 0 0 18px rgba(225, 29, 72, 0.35); }
button.ghost { background: transparent; border-color: transparent; color: var(--cyan-ink); padding: 8px 11px; }
button.ghost:hover { background: var(--cyan-soft); }
.actions { display: flex; gap: 10px; margin-top: 10px; }
.actions.end { justify-content: flex-end; margin-top: 16px; }
.mini-actions { display: flex; gap: 4px; }

/* ---------- Konsol ---------- */
.console {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.7;
  background: #030910; color: #7dd3fc;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--r-sm); padding: 13px 15px;
  max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  margin: 0;
  box-shadow: inset 0 0 30px rgba(34, 211, 238, 0.04);
}
:root[data-theme="light"] .console { background: #0b1a26; }

/* ---------- İstatistikler ---------- */
.stat-row { display: flex; gap: 12px; margin-bottom: 10px; }
.stat {
  flex: 1; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 15px; margin: 0;
  position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad-brand); }
.stat dt { font-size: 10.5px; color: var(--muted); font-weight: 750; text-transform: uppercase; letter-spacing: 0.8px; }
.stat dd { margin: 3px 0 0; font-size: 24px; font-weight: 820; letter-spacing: -0.5px; color: var(--cyan-ink); }

/* ---------- Geçmiş ---------- */
.history-list { display: flex; flex-direction: column; gap: 9px; max-height: 430px; overflow: auto; }
.history-item {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 12px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--panel);
  font-weight: 500; color: var(--text);
}
.history-item:hover { border-color: rgba(34, 211, 238, 0.5); box-shadow: var(--cyan-glow); }
.history-item strong { font-size: 13px; font-weight: 750; }
.history-item span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.empty-state { color: var(--faint); font-size: 13px; padding: 20px; text-align: center; }
.empty-card { text-align: center; color: var(--muted); padding: 36px; }

/* ---------- Kriter editörü ---------- */
.criteria-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.criteria-meta-row { display: grid; grid-template-columns: 90px 1fr; align-items: start; gap: 10px; }
.criteria-meta-row label { font-size: 11px; font-weight: 750; color: var(--muted); padding-top: 11px; text-transform: uppercase; letter-spacing: 0.7px; }
.criteria-group { margin-bottom: 20px; }
.criteria-group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.criteria-group-head h3 { margin: 0; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--violet-ink); }
.criteria-count { font-size: 12px; color: var(--faint); }
.criterion-row, .dimension-row {
  display: grid; gap: 8px; align-items: end;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel); margin-bottom: 8px;
}
.criterion-row { grid-template-columns: 2.2fr 0.7fr 1.1fr 1fr 0.6fr 34px; }
.dimension-row { grid-template-columns: 1.6fr 1.2fr 0.7fr 0.6fr 34px; }
.criterion-row label, .dimension-row label { display: flex; flex-direction: column; gap: 3px; }
.row-label { font-size: 10px; font-weight: 750; color: var(--faint); text-transform: uppercase; letter-spacing: 0.6px; }
.criterion-row textarea, .dimension-row textarea { min-height: 38px; font-size: 12.5px; }
.criterion-evidence { grid-column: 1 / -1; }
.dimension-row textarea[data-field="dimensionDescription"] { grid-column: 1 / -1; }
.icon-button {
  width: 30px; height: 30px; padding: 0; border-radius: 8px;
  color: var(--red-ink); font-size: 16px; line-height: 1;
  background: transparent; border-color: transparent;
}
.icon-button:hover { background: var(--red-soft); }

/* ---------- Aday tablosu ---------- */
.cand-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cand-toolbar input[type="search"] { width: 300px; }
.selection-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 15px; margin-bottom: 14px;
}
.selection-info { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.selection-info strong { font-size: 13px; margin-right: 6px; color: var(--cyan-ink); }
.selection-settings { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
thead th {
  text-align: left; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--muted); background: var(--panel-2);
  padding: 11px 13px; border-bottom: 1px solid var(--line-2);
  position: sticky; top: 0; z-index: 1; white-space: nowrap;
}
tbody td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(34, 211, 238, 0.045); }
.check-col { width: 36px; }
.check-col input, .cand-table tbody input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--cyan-strong); cursor: pointer; }
.cand-table tbody tr { cursor: pointer; }
.cand-table tbody tr.selected { background: var(--cyan-soft); box-shadow: inset 3px 0 0 var(--cyan); }
.cand-name { font-weight: 700; }
.cand-sub { font-size: 11.5px; color: var(--faint); }
.small { font-size: 11.5px; color: var(--muted); }
.small a, a.small { color: var(--blue-ink); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; padding-top: 14px; color: var(--muted); font-size: 12.5px; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 750;
  background: rgba(148, 165, 191, 0.12); color: var(--muted);
  border: 1px solid var(--line-2);
}
.pill.ok { background: var(--green-soft); color: var(--green-ink); border-color: rgba(52, 211, 153, 0.35); }
.pill.warn { background: var(--amber-soft); color: var(--amber-ink); border-color: rgba(251, 191, 36, 0.35); }
.pill.bad { background: var(--red-soft); color: var(--red-ink); border-color: rgba(251, 113, 133, 0.35); }
.pill.info { background: var(--blue-soft); color: var(--blue-ink); border-color: rgba(96, 165, 250, 0.35); }
.pill.exp { background: var(--violet-soft); color: var(--violet-ink); border-color: rgba(167, 139, 250, 0.35); }

/* ---------- Sonuçlar ---------- */
.results-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-progress { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 200px; }
.live-progress .meter { flex: 1; }
.meter { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line); }
.meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad-bar); box-shadow: 0 0 12px rgba(34, 211, 238, 0.6); transition: width 0.4s; }

.summary-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1080px) { .summary-grid { grid-template-columns: repeat(3, 1fr); } }
.summary-card {
  background: var(--card-glass); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 17px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.summary-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad-brand); opacity: 0.7; }
.summary-card dt { font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.summary-card dd { margin: 5px 0 0; font-size: 28px; font-weight: 830; letter-spacing: -1px; color: var(--cyan-ink); text-shadow: 0 0 24px rgba(34, 211, 238, 0.35); }
.summary-card small { color: var(--faint); font-size: 11.5px; }
.summary-card.ok::before { background: linear-gradient(90deg, #34d399, #6ee7b7); }
.summary-card.ok dd { color: var(--green-ink); text-shadow: 0 0 24px rgba(52, 211, 153, 0.4); }
.summary-card.mid::before { background: linear-gradient(90deg, #60a5fa, #93c5fd); }
.summary-card.mid dd { color: var(--blue-ink); text-shadow: 0 0 24px rgba(96, 165, 250, 0.4); }
.summary-card.warn::before { background: linear-gradient(90deg, #fbbf24, #fcd34d); }
.summary-card.warn dd { color: var(--amber-ink); text-shadow: 0 0 24px rgba(251, 191, 36, 0.35); }
.summary-card.bad::before { background: linear-gradient(90deg, #fb7185, #fda4af); }
.summary-card.bad dd { color: var(--red-ink); text-shadow: 0 0 24px rgba(251, 113, 133, 0.35); }
:root[data-theme="light"] .summary-card dd { text-shadow: none; }

.histogram { display: flex; align-items: flex-end; gap: 10px; height: 175px; padding-top: 10px; }
.hist-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.hist-bar {
  width: 100%; border-radius: 8px 8px 4px 4px; min-height: 3px;
  background: linear-gradient(180deg, #67e8f9, #06b6d4);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
  transform-origin: bottom; animation: growUp 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes growUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hist-col:nth-child(1) .hist-bar { animation-delay: 0.05s; }
.hist-col:nth-child(2) .hist-bar { animation-delay: 0.12s; }
.hist-col:nth-child(3) .hist-bar { animation-delay: 0.19s; }
.hist-col:nth-child(4) .hist-bar { animation-delay: 0.26s; }
.hist-col:nth-child(5) .hist-bar { animation-delay: 0.33s; }
.hist-col.low .hist-bar { background: linear-gradient(180deg, #fcd34d, #d97706); box-shadow: 0 0 18px rgba(251, 191, 36, 0.3); }
.hist-col.verylow .hist-bar { background: linear-gradient(180deg, #fda4af, #e11d48); box-shadow: 0 0 18px rgba(251, 113, 133, 0.3); }
.hist-label { font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.hist-value { font-size: 12px; font-weight: 800; }

.dim-bars { display: flex; flex-direction: column; gap: 11px; }
.dim-bar-row { display: grid; grid-template-columns: 175px 1fr 40px; align-items: center; gap: 10px; }
.dim-bar-label { font-size: 12.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dim-bar-track { height: 9px; border-radius: 999px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line); }
.dim-bar-fill {
  height: 100%; border-radius: 999px; background: var(--grad-bar);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
  transform-origin: left; animation: growRight 0.8s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes growRight { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dim-bar-value { font-size: 12.5px; font-weight: 800; text-align: right; color: var(--cyan-ink); }

.top-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1080px) { .top-grid { grid-template-columns: repeat(2, 1fr); } }
.top-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 15px 15px; background: var(--panel); cursor: pointer;
  transition: border-color 0.18s, transform 0.12s, box-shadow 0.18s;
  text-align: left; font-family: inherit; display: block; width: 100%; color: var(--text);
}
.top-card:hover { border-color: rgba(34, 211, 238, 0.55); transform: translateY(-3px); box-shadow: var(--cyan-glow); }
.top-grid .top-card { animation: fadeUp 0.5s ease both; }
.top-grid .top-card:nth-child(1) { animation-delay: 0.05s; }
.top-grid .top-card:nth-child(2) { animation-delay: 0.12s; }
.top-grid .top-card:nth-child(3) { animation-delay: 0.19s; }
.top-grid .top-card:nth-child(4) { animation-delay: 0.26s; }
.top-grid .top-card:nth-child(5) { animation-delay: 0.33s; }
.top-card.rank-1 {
  background: linear-gradient(165deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.1));
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: var(--cyan-glow);
}
.top-rank {
  position: absolute; top: -10px; left: 13px;
  background: var(--grad-brand); color: #03131a; font-size: 11px; font-weight: 850;
  border-radius: 999px; padding: 3px 10px;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}
.top-score {
  font-size: 32px; font-weight: 850; letter-spacing: -1.5px;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.top-name { font-weight: 750; font-size: 13px; margin: 2px 0 5px; }
.top-summary { font-size: 11.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 0; }

.results-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.results-filters input[type="search"] { width: 200px; }
.chip-row { display: flex; gap: 6px; }
.chip {
  padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 750;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted);
}
.chip.active {
  background: var(--cyan-soft); border-color: rgba(34, 211, 238, 0.55); color: var(--cyan-ink);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

.results-table tbody tr { cursor: pointer; }
.score-badge {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  font-size: 15.5px; font-weight: 850; color: #03131a;
}
.score-badge.s-high { background: linear-gradient(135deg, #6ee7b7, #10b981); box-shadow: 0 0 16px rgba(52, 211, 153, 0.45); }
.score-badge.s-good { background: linear-gradient(135deg, #67e8f9, #06b6d4); box-shadow: 0 0 16px rgba(34, 211, 238, 0.45); }
.score-badge.s-mid { background: linear-gradient(135deg, #fcd34d, #f59e0b); box-shadow: 0 0 16px rgba(251, 191, 36, 0.4); }
.score-badge.s-low { background: linear-gradient(135deg, #fda4af, #f43f5e); box-shadow: 0 0 16px rgba(251, 113, 133, 0.4); color: #2d0510; }
.dim-cell-score { font-weight: 800; font-size: 13.5px; color: var(--cyan-ink); }
.fallback-mode { color: var(--amber-ink); font-size: 11px; font-weight: 700; }

/* ---------- Çekmece ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(2, 6, 12, 0.66);
  z-index: 50; display: flex; justify-content: flex-end;
  backdrop-filter: blur(3px);
}
.drawer {
  width: min(690px, 94vw); height: 100%;
  background: var(--bg-2);
  border-left: 1px solid var(--line-2);
  overflow-y: auto; padding: 28px 32px 60px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  animation: slideIn 0.22s ease;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 4px; }
.drawer-head h2 {
  margin: 0 0 2px; font-size: 20px; letter-spacing: -0.3px; font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.drawer-close { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 10px; font-size: 17px; }
.drawer-section { margin-top: 22px; }
.drawer-section h3 {
  margin: 0 0 10px; font-size: 11px; font-weight: 850; color: var(--violet-ink);
  text-transform: uppercase; letter-spacing: 1.2px;
}
.drawer-score-row { display: flex; align-items: center; gap: 15px; margin: 15px 0; }
.drawer-score-row .score-badge { width: 60px; height: 60px; font-size: 22px; border-radius: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .pill { font-size: 11.5px; padding: 5px 12px; }
.dim-detail { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 15px; margin-bottom: 9px; background: var(--panel); }
.dim-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 7px; }
.dim-detail-head strong { font-size: 13px; }
.q-list { margin: 0; padding-left: 18px; }
.q-list li { margin-bottom: 7px; font-size: 13px; }

/* ---------- Kriter filtreleri ---------- */
.dim-filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.dim-filters-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--violet-ink); }
.dim-filter { gap: 5px; }
.dim-filter > span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.dim-filter select { min-width: 66px; padding: 5px 8px; font-size: 12px; }
.dim-filter.active select { border-color: var(--cyan); box-shadow: 0 0 8px rgba(34, 211, 238, 0.3); }
.dim-filter.active > span { color: var(--cyan-ink); }

/* ---------- CV modalı ---------- */
.cv-modal-overlay {
  position: fixed; inset: 0; background: rgba(2, 6, 12, 0.72);
  z-index: 60; display: grid; place-items: center;
  backdrop-filter: blur(4px);
}
.cv-modal {
  width: min(920px, 94vw); height: min(88vh, 1100px);
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), var(--cyan-glow);
  animation: fadeUp 0.2s ease;
}
.cv-modal-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.cv-modal-head strong { font-size: 14.5px; font-weight: 750; }
.cv-modal iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------- Görüşme notları ---------- */
.drawer-head-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.note-item {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel); padding: 11px 14px; margin-bottom: 8px;
}
.note-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.note-meta strong { font-size: 13px; color: var(--cyan-ink); }
.note-item p { margin: 4px 0 0; font-size: 13px; white-space: pre-wrap; }
.note-form {
  margin-top: 14px; padding: 14px 16px;
  border: 1px dashed var(--line-2); border-radius: var(--r-sm);
  background: var(--panel);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 18px; right: 18px; z-index: 100;
  max-width: 440px; padding: 13px 19px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: var(--r-sm);
  box-shadow: var(--cyan-glow), 0 14px 40px rgba(0, 0, 0, 0.5);
  font-size: 13px; font-weight: 600;
  animation: toastIn 0.2s ease;
}
.toast.error { border-color: rgba(251, 113, 133, 0.5); box-shadow: 0 0 22px rgba(251, 113, 133, 0.3), 0 14px 40px rgba(0, 0, 0, 0.5); }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

.hidden { display: none !important; }
