:root {
  --bg: #F6F8FB;
  --ink: #0A2540;
  --muted: #64748B;
  --line: #E2E8F0;
  --soft: #F1F5F9;
  --card: #ffffff;
  --brand: #0A2540;
  --brand-700: #0A2C8A;
  --brand-500: #1E5BE6;
  --brand-50: #EEF4FF;
  --accent: #14B8A6;
  --accent-d: #0D9488;
  --amber: #B45309;
  --amber-bg: #FFFBEB;
  --rose: #BE123C;
  --rose-bg: #FFF1F2;
  --ok: #047857;
  --ok-bg: #ECFDF5;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --side: 256px;
  --radius: 16px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
}
button, input, select, textarea { font-family: inherit; color: inherit; }
a { color: var(--accent-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.hidden { display: none !important; }
.noscript { margin: 24px; padding: 16px; background: #fff; border-radius: 12px; }

.app { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #F1F5F9;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0A2540, #14B8A6);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.brand b { display: block; line-height: 1.15; }
.brand span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.side-scroll { flex: 1; overflow: auto; padding: 12px; }
.side-scroll::-webkit-scrollbar, .table-wrap::-webkit-scrollbar { width: 6px; height: 6px; }
.side-scroll::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
.nav-label {
  padding: 12px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94A3B8;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: #F8FAFC; text-decoration: none; }
.nav-item.active { background: rgba(20, 184, 166, .12); color: #14B8A6; }
.side-user {
  border-top: 1px solid #F1F5F9;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.side-user .btn { flex: none; }
.side-user .who { flex: 1; min-width: 0; }
.side-user strong, .side-user em { display: block; font-style: normal; }
.side-user em { color: var(--muted); font-size: 12px; }
.avatar, .brand-mark { user-select: none; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex: none;
  background: linear-gradient(135deg, #0A2C8A, #14B8A6);
  cursor: pointer;
}
.avatar.erkek { background: linear-gradient(135deg, #0A2C8A, #38BDF8); }
.avatar.kiz { background: linear-gradient(135deg, #BE185D, #F9A8D4); }
.avatar.lg { width: 72px; height: 72px; border-radius: 16px; font-size: 22px; border: 4px solid #fff; box-shadow: var(--shadow); margin-top: -36px; }
.avatar.sq { border-radius: 16px; }

.main { margin-left: var(--side); min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
}
.top-title h1 { margin: 0; font-size: 20px; }
.top-title p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  border-radius: 10px;
  padding: 8px 12px;
  width: 260px;
}
.search svg { width: 18px; height: 18px; flex: none; }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 14px; }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: var(--soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  color: #475569;
}
.icon-btn:hover { background: #E2E8F0; }
.dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 99px;
}
.content { padding: 24px; }
.menu-btn { display: none; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kpi { padding: 18px 20px; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kpi-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700);
}
.kpi-ico.teal { background: rgba(20,184,166,.12); color: var(--accent-d); }
.kpi-ico.amber { background: var(--amber-bg); color: var(--amber); }
.kpi-ico.rose { background: var(--rose-bg); color: var(--rose); }
.kpi-ico svg, .btn svg, .icon-btn svg { width: 18px; height: 18px; }
.kpi-val { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.kpi-lbl { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pill {
  font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(20,184,166,.12); color: var(--accent-d);
}
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.rose { background: var(--rose-bg); color: var(--rose); }
.pill.slate { background: var(--soft); color: #475569; }
.pill.blue { background: var(--brand-50); color: var(--brand-700); }

.grid-2 { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.grid-main { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.card { padding: 20px; }
.card h2, .card h3 { margin: 0 0 4px; font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 700; }
.sub { margin: 0; color: var(--muted); font-size: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; border: 1px solid transparent;
  padding: 10px 14px; font-weight: 600; font-size: 14px;
  cursor: pointer; background: #fff; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-soft { background: var(--soft); color: #334155; }
.btn-soft:hover { background: #E2E8F0; }
.btn-ghost { background: transparent; border-color: var(--line); color: #334155; }
.btn-danger { background: var(--rose-bg); color: var(--rose); }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 12px; font-weight: 600; color: #334155; }
.req::after { content: " *"; color: var(--rose); }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
}
.textarea { min-height: 88px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: #14B8A6; box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.filters, .form-grid { display: grid; gap: 12px; }
.form-grid { grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.eye { position: relative; }
.eye .input { padding-right: 64px; }
.eye button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 12px;
}

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #64748B; background: #F8FAFC; padding: 12px 16px; border-bottom: 1px solid var(--line); }
td { padding: 12px 16px; border-bottom: 1px solid #F1F5F9; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #F8FAFC; }
.clickable { cursor: pointer; }

.badge {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 2px 8px;
  font-size: 12px; font-weight: 600; border: 1px solid transparent;
  white-space: nowrap;
}
.badge-green { background: var(--ok-bg); color: var(--ok); border-color: #A7F3D0; }
.badge-amber { background: var(--amber-bg); color: var(--amber); border-color: #FDE68A; }
.badge-rose { background: var(--rose-bg); color: var(--rose); border-color: #FECDD3; }
.badge-slate { background: #F1F5F9; color: #475569; border-color: var(--line); }
.badge-blue { background: var(--brand-50); color: var(--brand-700); border-color: #D9E5FF; }
.badge-teal { background: rgba(20,184,166,.12); color: var(--accent-d); border-color: rgba(20,184,166,.25); }

.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .nm { font-weight: 700; }
.person .meta { color: var(--muted); font-size: 12px; }

.tabs { display: flex; gap: 0; overflow: auto; border-bottom: 1px solid var(--line); background: #fff; }
.tab {
  border: 0; background: transparent; padding: 14px 16px;
  font-weight: 600; color: #64748B; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.hero-card { overflow: hidden; padding: 0; }
.hero-band { height: 72px; background: linear-gradient(90deg, #0A2540, #0A2C8A 55%, #14B8A6); }
.hero-band.erkek { background: linear-gradient(90deg, #0A2540, #0A2C8A 55%, #38BDF8); }
.hero-band.kiz { background: linear-gradient(90deg, #9D174D, #DB2777 55%, #F9A8D4); }
.hero-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px 20px;
}
.hero-id { display: flex; gap: 16px; align-items: flex-start; min-width: 0; flex: 1; }
.hero-copy { min-width: 0; padding-top: 44px; }
.hero-copy h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  padding-top: 16px;
  flex: none;
  max-width: 100%;
}
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.page-head .row { flex-wrap: wrap; }
a.card { display: block; color: inherit; text-decoration: none; }
.icon-btn.danger { background: var(--rose-bg); color: var(--rose); }
.user-pop { width: 240px; padding: 8px; }
.user-pop .who { padding: 8px 8px 10px; }
.user-pop a, .user-pop button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 10px 8px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.user-pop a:hover, .user-pop button:hover { background: var(--soft); text-decoration: none; }

.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.item > .grow > b { display: block; overflow-wrap: anywhere; }
.item .small { overflow-wrap: anywhere; }
.item > .btn, .item > .badge { flex: none; }
.item:hover { background: #F8FAFC; }
.stat {
  background: var(--soft); border-radius: 12px; padding: 12px;
}
.stat b { display: block; font-size: 18px; margin-top: 4px; }
.progress { height: 6px; background: #E2E8F0; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); }
.bar-amber span { background: #F59E0B; }
.bar-rose span { background: #F43F5E; }

.notice { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--brand-50); color: var(--brand); }
.notice.warn { background: var(--amber-bg); color: #92400E; border-color: #FDE68A; }
.notice.bad { background: var(--rose-bg); color: var(--rose); border-color: #FECDD3; }
.notice.ok { background: var(--ok-bg); color: var(--ok); border-color: #A7F3D0; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }

.modal-back {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(6, 26, 51, .45);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px;
}
.modal {
  background: #fff; width: min(720px, 100%);
  max-height: min(92vh, 880px); overflow: auto;
  border-radius: 16px; padding: 18px;
  box-shadow: 0 20px 50px rgba(6,26,51,.2);
}
.toast {
  position: fixed; z-index: 80; right: 16px; bottom: 24px;
  background: var(--brand); color: #fff;
  padding: 12px 14px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(6,26,51,.2);
  max-width: min(360px, calc(100% - 32px));
}
.toast.bad { background: #9F1239; }
.toast.ok { background: #065F46; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { font-size: 11px; font-weight: 700; color: #94A3B8; text-align: center; padding: 4px; }
.cal-cell {
  min-height: 88px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; font-size: 12px;
}
.cal-cell.out { opacity: .45; }
.cal-cell.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-event {
  display: block; margin-top: 4px; padding: 2px 6px; border-radius: 6px;
  background: var(--brand-50); color: var(--brand); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-size: 11px; text-decoration: none;
}
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.week-col { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 180px; }
.week-col h4 { margin: 0 0 8px; font-size: 12px; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--soft); border-radius: 999px; padding: 4px 8px; font-size: 12px; }

.matrix { width: 100%; }
.matrix th, .matrix td { font-size: 12px; text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 220px; }

.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--line);
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 2px 10px; color: #64748B; font-size: 11px; font-weight: 600; text-decoration: none;
}
.bottom-nav a.active { color: var(--accent); }
.bottom-nav svg { width: 20px; height: 20px; }
.drawer-back { position: fixed; inset: 0; background: rgba(6,26,51,.45); z-index: 45; }
.drawer {
  position: fixed; z-index: 46; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 16px 16px 0 0;
  max-height: 80vh; overflow: auto; padding: 12px 12px 24px;
}

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(20,184,166,.18), transparent 50%),
    radial-gradient(800px 400px at 100% 0%, rgba(30,91,230,.12), transparent 45%),
    var(--bg);
}
.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
}
.auth-card h1 { margin: 12px 0 4px; font-size: 24px; }
.demo-box { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.demo-box button { background: none; border: 0; color: var(--brand-700); font-weight: 700; cursor: pointer; padding: 0; }

.landing { background: var(--bg); }
.land-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; max-width: 1080px; margin: 0 auto;
}
.hero {
  max-width: 1080px; margin: 0 auto; padding: 12px 24px 48px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center;
}
.hero h1 { font-size: 42px; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; }
.features { max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature h3 { margin: 8px 0 4px; }
.preview { padding: 16px; }
.foot { max-width: 1080px; margin: 0 auto; padding: 8px 24px 32px; color: var(--muted); font-size: 12px; }

.pop {
  position: absolute; right: 0; top: 44px; width: min(360px, 86vw);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,.12); padding: 8px; z-index: 25;
}
.pop.user-pop { width: 260px; }
.pop .item { border: 0; padding: 8px; }
.rel { position: relative; }

.linkish { background: none; border: 0; padding: 0; color: var(--accent-d); font-weight: 700; cursor: pointer; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.tag { font-size: 11px; color: var(--muted); }

@media (max-width: 1023px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .menu-btn { display: grid; }
  .bottom-nav { display: grid; }
  .content { padding: 16px 16px 96px; }
  .topbar { padding: 12px 16px; }
  .search { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid-2, .grid-main, .hero, .features { grid-template-columns: 1fr; }
  .kpi-val { font-size: 22px; }
  .toast { bottom: 84px; }
  .cal-cell { min-height: 64px; }
  .week { grid-template-columns: 1fr; }
}
.only-sm { display: none; }
.score-line { display: grid; grid-template-columns: 1.5fr repeat(4, .7fr) .9fr auto; gap: 6px; margin-bottom: 6px; }
.score-line .input, .score-line .select { padding: 8px; }
@media (max-width: 720px) { .score-line { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  .only-sm { display: flex; flex-direction: column; gap: 12px; }
  .only-sm .card { display: block; }
  .page-head { flex-direction: column; }
  .page-head .row, .hero-actions { width: 100%; justify-content: flex-start; }
  .hero-body { flex-direction: column; gap: 8px; }
  .hero-id { width: 100%; }
  .hero-actions { padding-top: 4px; }
  .hero h1 { font-size: 32px; }
  .modal-back { align-items: flex-end; }
}
@media (min-width: 640px) {
  .modal-back { align-items: center; }
}
@media print {
  .sidebar, .topbar, .bottom-nav, .no-print, .drawer, .drawer-back { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; }
  body { background: #fff; }
  .card, .table-wrap { box-shadow: none; }
}
