/* ==========================================================================
   MolaTakip - Tasarim Sistemi
   Bootstrap 5.3 uzerine ozel katman. Tum renkler token olarak tanimlidir.
   ========================================================================== */

:root {
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-900: #1e1b4b;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e5e8f0;
  --border-strong: #d5dae5;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;

  --ok: #10b981;
  --ok-soft: #d1fae5;
  --ok-ink: #047857;
  --warn: #f59e0b;
  --warn-soft: #fef3c7;
  --warn-ink: #b45309;
  --danger: #f43f5e;
  --danger-soft: #ffe4e6;
  --danger-ink: #be123c;
  --info: #3b82f6;
  --info-soft: #dbeafe;
  --off: #94a3b8;
  --off-soft: #f1f5f9;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 4px 16px -4px rgba(15, 23, 42, .10), 0 2px 6px -2px rgba(15, 23, 42, .05);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, .22);

  --sidebar-w: 256px;
  --topbar-h: 64px;

  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--border);
  --bs-primary: var(--brand-600);
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: var(--brand-600);
  --bs-link-color-rgb: 79, 70, 229;
  --bs-link-hover-color: var(--brand-700);
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-lg: var(--radius);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: .9rem;
  letter-spacing: -.005em;
}

.tnum, .sayac, .stat-deger, .kart-sure, .timer { font-variant-numeric: tabular-nums; }

a { text-decoration: none; }

::selection { background: var(--brand-200); }

/* Kaydirma cubugu */
* { scrollbar-width: thin; scrollbar-color: #cbd2de transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #cbd2de; border-radius: 8px; }

/* ---------- Bootstrap bilesen rotuslari ---------- */

.btn {
  font-weight: 600;
  border-radius: 10px;
  padding: .5rem .95rem;
  font-size: .86rem;
  letter-spacing: -.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: all .15s ease;
}
.btn-sm { padding: .36rem .7rem; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; border-radius: 12px; }

.btn-primary {
  --bs-btn-bg: var(--brand-600);
  --bs-btn-border-color: var(--brand-600);
  --bs-btn-hover-bg: var(--brand-700);
  --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-active-bg: var(--brand-700);
  --bs-btn-active-border-color: var(--brand-700);
  --bs-btn-disabled-bg: var(--brand-400);
  --bs-btn-disabled-border-color: var(--brand-400);
  box-shadow: 0 1px 2px rgba(79, 70, 229, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-success {
  --bs-btn-bg: var(--ok);
  --bs-btn-border-color: var(--ok);
  --bs-btn-hover-bg: #059669;
  --bs-btn-hover-border-color: #059669;
  --bs-btn-active-bg: #047857;
}
.btn-danger {
  --bs-btn-bg: var(--danger);
  --bs-btn-border-color: var(--danger);
  --bs-btn-hover-bg: #e11d48;
  --bs-btn-hover-border-color: #e11d48;
}
.btn-light, .btn-ghost {
  --bs-btn-bg: var(--surface);
  --bs-btn-border-color: var(--border);
  --bs-btn-color: var(--text-2);
  --bs-btn-hover-bg: var(--surface-2);
  --bs-btn-hover-border-color: var(--border-strong);
  --bs-btn-hover-color: var(--text);
  --bs-btn-active-bg: #eef1f6;
  box-shadow: var(--shadow-xs);
}
.btn-soft {
  --bs-btn-bg: var(--brand-50);
  --bs-btn-border-color: transparent;
  --bs-btn-color: var(--brand-700);
  --bs-btn-hover-bg: var(--brand-100);
  --bs-btn-hover-color: var(--brand-700);
  --bs-btn-active-bg: var(--brand-100);
}
.btn-soft-danger {
  --bs-btn-bg: var(--danger-soft);
  --bs-btn-border-color: transparent;
  --bs-btn-color: var(--danger-ink);
  --bs-btn-hover-bg: #fecdd3;
  --bs-btn-hover-color: var(--danger-ink);
}
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 9px; }
.btn-icon.btn-sm { width: 30px; height: 30px; }

.form-control, .form-select {
  border-color: var(--border-strong);
  border-radius: 10px;
  font-size: .88rem;
  padding: .55rem .8rem;
  color: var(--text);
  background-color: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control-sm, .form-select-sm { padding: .38rem .65rem; font-size: .8rem; border-radius: 8px; }
.form-control:focus, .form-select:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}
.form-label { font-weight: 600; font-size: .8rem; color: var(--text-2); margin-bottom: .35rem; }
.form-text { color: var(--muted); font-size: .76rem; }
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(99, 102, 241, .14); border-color: var(--brand-400); }
.form-switch .form-check-input { width: 2.3em; height: 1.25em; cursor: pointer; }

.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.2rem; }

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: .4rem;
  font-size: .85rem;
}
.dropdown-item { border-radius: 8px; padding: .5rem .7rem; font-weight: 500; color: var(--text-2); display: flex; align-items: center; gap: .55rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-2); color: var(--text); }
.dropdown-item.text-danger:hover { background: var(--danger-soft); }
.dropdown-header { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted-2); }

.modal-content { border: 0; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border); padding: 1.1rem 1.4rem; }
.modal-title { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.modal-body { padding: 1.3rem 1.4rem; }
.modal-footer { border-top: 1px solid var(--border); padding: .9rem 1.4rem; background: var(--surface-2); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.modal-backdrop.show { opacity: .45; }
.modal-backdrop { background: #0f172a; }

.offcanvas { border: 0 !important; box-shadow: var(--shadow-lg); }
.offcanvas-end { width: 440px !important; }
.offcanvas-header { border-bottom: 1px solid var(--border); padding: 1.1rem 1.3rem; }

.badge { font-weight: 600; letter-spacing: .01em; border-radius: 6px; padding: .35em .55em; }

.table { --bs-table-bg: transparent; margin: 0; font-size: .85rem; }
.table > :not(caption) > * > * { padding: .75rem .9rem; border-bottom-color: var(--border); }
.table thead th {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody tr { transition: background .12s ease; }
.table-hover tbody tr:hover > * { background: #fafbff; }
.table tbody tr:last-child > * { border-bottom: 0; }

.alert { border: 0; border-radius: var(--radius); font-weight: 500; display: flex; gap: .6rem; align-items: flex-start; }
.alert-success { background: var(--ok-soft); color: var(--ok-ink); }
.alert-danger { background: var(--danger-soft); color: var(--danger-ink); }
.alert-warning { background: var(--warn-soft); color: var(--warn-ink); }
.alert-info { background: var(--brand-50); color: var(--brand-700); }

.progress { height: 6px; border-radius: 99px; background: #edf0f5; overflow: hidden; }
.progress-bar { border-radius: 99px; transition: width .6s ease; }

.nav-segment {
  display: inline-flex;
  background: #eceff5;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.nav-segment button, .nav-segment a {
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: .8rem;
  color: var(--muted);
  padding: .35rem .75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}
.nav-segment .active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Ortak parcalar ---------- */

.kart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.kart-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.kart-baslik h2, .kart-baslik h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.kart-baslik .alt { font-size: .76rem; color: var(--muted); font-weight: 500; }
.kart-govde { padding: 1.2rem; }
.kart-ikon {
  width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-600); font-size: .95rem;
}

.avatar {
  --av: var(--brand-500);
  width: 38px; height: 38px; min-width: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; letter-spacing: .02em;
  color: #fff;
  background: var(--av);
  position: relative;
}
.avatar-sm { width: 30px; height: 30px; min-width: 30px; font-size: .7rem; }
.avatar-lg { width: 64px; height: 64px; min-width: 64px; font-size: 1.3rem; }
.avatar .durum-nokta {
  position: absolute; right: -1px; bottom: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--off);
}
.durum-nokta.cevrimici { background: var(--ok); }

.pill {
  --pill: var(--muted);
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .6rem;
  border-radius: 99px;
  font-size: .74rem; font-weight: 700;
  color: var(--pill);
  background: color-mix(in srgb, var(--pill) 13%, transparent);
  white-space: nowrap;
}
.pill .nokta { width: 7px; height: 7px; border-radius: 50%; background: var(--pill); }
.pill.canli .nokta { animation: nabiz 1.6s ease-in-out infinite; }
.pill-ok { --pill: var(--ok-ink); }
.pill-warn { --pill: var(--warn-ink); }
.pill-danger { --pill: var(--danger-ink); }
.pill-off { --pill: var(--muted); }
.pill-brand { --pill: var(--brand-600); }

@keyframes nabiz {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pill) 50%, transparent); }
  50% { box-shadow: 0 0 0 5px transparent; }
}

.bos-durum {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.bos-durum i { font-size: 2.2rem; color: var(--muted-2); display: block; margin-bottom: .6rem; }
.bos-durum .baslik { font-weight: 700; color: var(--text-2); margin-bottom: .2rem; }

.iskelet {
  background: linear-gradient(90deg, #eef1f6 0%, #f7f8fb 50%, #eef1f6 100%);
  background-size: 200% 100%;
  animation: iskelet 1.3s ease infinite;
  border-radius: 10px;
}
@keyframes iskelet { to { background-position: -200% 0; } }

.kbd {
  font-size: .7rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--border-strong); border-bottom-width: 2px;
  border-radius: 5px; padding: 0 .35rem; background: var(--surface);
}

.text-muted { color: var(--muted) !important; }
.fw-800 { font-weight: 800; }
.small-caps { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted-2); }

/* ==========================================================================
   Giris / kimlik sayfalari
   ========================================================================== */

.auth-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--surface);
}
.auth-sol {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at -10% -10%, rgba(129, 140, 248, .55), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(16, 185, 129, .35), transparent 60%),
    linear-gradient(160deg, #1e1b4b 0%, #312e81 55%, #1e1b4b 100%);
  color: #fff;
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-sol::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
  pointer-events: none;
}
.auth-sol > * { position: relative; z-index: 1; }
.auth-marka { display: flex; align-items: center; gap: .75rem; font-weight: 800; font-size: 1.15rem; }
.marka-logo {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #818cf8, #4f46e5);
  color: #fff; font-size: 1.15rem;
  box-shadow: 0 8px 20px -6px rgba(79, 70, 229, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.auth-slogan h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1rem; }
.auth-slogan h1 span { background: linear-gradient(90deg, #a5b4fc, #6ee7b7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-slogan p { color: rgba(255, 255, 255, .72); font-size: 1rem; max-width: 440px; }
.auth-onizleme {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 1.1rem;
  max-width: 420px;
  display: grid;
  gap: .6rem;
}
.auth-onizleme .satir { display: flex; align-items: center; gap: .7rem; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: .6rem .75rem; }
.auth-onizleme .satir .ad { font-weight: 600; font-size: .85rem; flex: 1; }
.auth-onizleme .satir .sure { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .85rem; opacity: .9; }
.auth-onizleme .dot { width: 9px; height: 9px; border-radius: 50%; }
.auth-alt { color: rgba(255, 255, 255, .5); font-size: .78rem; }

.auth-sag { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-form { width: 100%; max-width: 380px; }
.auth-form h2 { font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: .35rem; }
.auth-form .alt { color: var(--muted); margin-bottom: 1.8rem; }
.auth-form .form-control { padding: .75rem .95rem; font-size: .92rem; }
.auth-form .input-icon > .form-control { padding-left: 2.5rem; }
.auth-form .input-icon > i { left: .95rem; }
.sifre-goster { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted-2); padding: .3rem .45rem; border-radius: 6px; }
.sifre-goster:hover { color: var(--text-2); background: var(--surface-2); }
.auth-guven { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .76rem; margin-top: 1.4rem; justify-content: center; }

@media (max-width: 991.98px) {
  .auth-body { grid-template-columns: 1fr; }
  .auth-sol { display: none; }
}

.sifre-guc { display: flex; gap: 4px; margin-top: .5rem; }
.sifre-guc span { flex: 1; height: 4px; border-radius: 4px; background: #e8ebf1; transition: background .2s ease; }

/* ==========================================================================
   Yonetici paneli yerlesimi (sidebar + topbar)
   ========================================================================== */

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

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: #0f1330;
  background-image:
    radial-gradient(600px 300px at 0% 0%, rgba(99, 102, 241, .22), transparent 70%),
    linear-gradient(180deg, #111536 0%, #0c0f26 100%);
  color: #c7cbe0;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform .25s ease;
}
.sidebar-marka {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: .7rem;
  padding: 0 1.25rem;
  color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: -.01em;
}
.sidebar-marka .marka-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
.sidebar-marka small { display: block; font-size: .68rem; font-weight: 600; color: #8b90b3; letter-spacing: .02em; }
.sidebar-menu { flex: 1; overflow-y: auto; padding: .75rem .75rem 1rem; }
.sidebar-grup { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #6b7099; padding: 1.1rem .75rem .45rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .75rem;
  border-radius: 10px;
  color: #b7bbd4;
  font-weight: 600; font-size: .85rem;
  position: relative;
  transition: background .15s ease, color .15s ease;
}
.sidebar-link i { font-size: 1.05rem; width: 20px; text-align: center; color: #7d82a8; transition: color .15s ease; }
.sidebar-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-link:hover i { color: #c7cbe0; }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, .35), rgba(99, 102, 241, .12));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .25);
}
.sidebar-link.active i { color: #a5b4fc; }
.sidebar-link .rozet {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .68rem; font-weight: 800;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
}
.sidebar-link .etiket-yeni { margin-left: auto; font-size: .62rem; font-weight: 800; color: #6ee7b7; background: rgba(16, 185, 129, .15); padding: .15rem .4rem; border-radius: 5px; }
.sidebar-alt { padding: .9rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.sidebar-kullanici { display: flex; align-items: center; gap: .7rem; padding: .5rem; border-radius: 12px; color: #fff; width: 100%; background: transparent; border: 0; text-align: left; }
.sidebar-kullanici:hover { background: rgba(255, 255, 255, .06); }
.sidebar-kullanici .ad { font-weight: 700; font-size: .84rem; line-height: 1.2; }
.sidebar-kullanici .rol { font-size: .72rem; color: #8b90b3; }

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: var(--topbar-h);
  position: sticky; top: 0; z-index: 1030;
  background: rgba(244, 246, 251, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.75rem;
}
.topbar-baslik { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.15; }
.topbar-baslik small { display: block; font-size: .74rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.topbar-sag { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.topbar-saat {
  display: flex; align-items: center; gap: .45rem;
  font-weight: 700; font-size: .85rem; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: .4rem .7rem;
  font-variant-numeric: tabular-nums;
}
.topbar-saat .tarih { color: var(--muted); font-weight: 600; }
.topbar-ikon-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.topbar-ikon-btn:hover { background: var(--surface-2); color: var(--text); }
.topbar-ikon-btn .rozet {
  position: absolute; top: -5px; right: -5px;
  background: var(--danger); color: #fff;
  font-size: .64rem; font-weight: 800;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; border: 2px solid var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-ac { display: none; }

.icerik { padding: 1.6rem 1.75rem 3rem; flex: 1; }
.icerik-dar { max-width: 1180px; }

.sayfa-ust {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.3rem;
}
.sayfa-ust h1 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; margin: 0; }
.sayfa-ust .alt { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.sayfa-ust .araclar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.sidebar-perde { display: none; }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.acik { transform: translateX(0); }
  .sidebar-perde.acik { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1035; }
  .main { margin-left: 0; }
  .menu-ac { display: inline-flex; }
  .topbar { padding: 0 1rem; }
  .icerik { padding: 1.2rem 1rem 3rem; }
  .topbar-saat .tarih { display: none; }
}

/* ---------- Filtre cubugu ---------- */

.filtre-cubugu {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: .9rem 1rem; margin-bottom: 1.2rem; box-shadow: var(--shadow-xs);
}
.filtre-cubugu .alan { display: flex; flex-direction: column; gap: .3rem; }
.filtre-cubugu .alan label { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hizli-tarih { display: flex; gap: .3rem; flex-wrap: wrap; }
.hizli-tarih a {
  font-size: .76rem; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 8px; padding: .38rem .6rem;
}
.hizli-tarih a:hover { border-color: var(--brand-200); color: var(--brand-700); background: var(--brand-50); }
.hizli-tarih a.active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }

/* ---------- KPI kutulari ---------- */

.kpi {
  --kpi: var(--brand-600);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: .6rem;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--kpi); opacity: 0; transition: opacity .15s ease;
}
button.kpi { text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; }
button.kpi:hover { border-color: color-mix(in srgb, var(--kpi) 35%, var(--border)); box-shadow: var(--shadow); transform: translateY(-1px); }
.kpi.secili { border-color: color-mix(in srgb, var(--kpi) 55%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kpi) 14%, transparent); }
.kpi.secili::before { opacity: 1; }
.kpi-ust { display: flex; align-items: center; justify-content: space-between; }
.kpi-etiket { font-size: .76rem; font-weight: 700; color: var(--muted); }
.kpi-ikon {
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--kpi) 12%, transparent);
  color: var(--kpi); font-size: 1rem;
}
.kpi-deger { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-deger small { font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.kpi-alt { font-size: .74rem; color: var(--muted); font-weight: 500; }
.kpi-ok { --kpi: var(--ok); }
.kpi-warn { --kpi: var(--warn); }
.kpi-danger { --kpi: var(--danger); }
.kpi-off { --kpi: var(--muted); }
.kpi-info { --kpi: var(--info); }

.dagilim-cubugu { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #edf0f5; gap: 2px; }
.dagilim-cubugu span { display: block; height: 100%; transition: width .5s ease; }
.dagilim-lejant { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .6rem; }
.dagilim-lejant span { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--text-2); font-weight: 600; }
.dagilim-lejant i.renk { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* ==========================================================================
   Canli pano - temsilci kartlari
   ========================================================================== */

.pano-arac {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin: 1.4rem 0 1rem;
}
.pano-arac .sag { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.temsilci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 1rem;
}

.t-kart {
  --durum: var(--off);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem .85rem;
  position: relative;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.t-kart::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--durum);
}
.t-kart:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.t-kart.asim { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); background: linear-gradient(180deg, #fff5f6 0%, #fff 60%); }
.t-kart.asim::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 30%, transparent);
  animation: asim-nabiz 2s ease-in-out infinite;
}
@keyframes asim-nabiz { 50% { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--danger) 50%, transparent); } }
.t-kart.soluk { opacity: .72; }
.t-kart.soluk:hover { opacity: 1; }

.t-ust { display: flex; align-items: center; gap: .7rem; }
.t-ust .bilgi { min-width: 0; flex: 1; }
.t-ad { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-alt { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-durum { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; gap: .5rem; }
.t-durum .pill { --pill: var(--durum); max-width: 62%; overflow: hidden; text-overflow: ellipsis; }
.kart-sure { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.t-limit { margin-top: .6rem; }
.t-limit .ust { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.t-limit .ust b { color: var(--text-2); }
.t-aciklama { margin-top: .5rem; font-size: .74rem; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: .35rem .55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-alt-satir {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .4rem;
  margin-top: .85rem; padding-top: .75rem; border-top: 1px dashed var(--border);
}
.t-alt-satir div { font-size: .68rem; color: var(--muted); font-weight: 600; }
.t-alt-satir b { display: block; font-size: .82rem; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 1px; }
.t-uyarilar { display: flex; gap: .3rem; }
.t-menu .btn-icon { width: 28px; height: 28px; color: var(--muted); box-shadow: none; }
.t-menu .btn-icon:hover { color: var(--text); }
.t-menu .dropdown-menu { min-width: 210px; }
.t-uyarilar span {
  width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem;
  background: var(--danger-soft); color: var(--danger-ink);
}
.t-uyarilar span.eski { background: var(--warn-soft); color: var(--warn-ink); }

/* Liste gorunumu */
.temsilci-tablo .t-ad { font-size: .86rem; }
.temsilci-tablo tbody tr { cursor: pointer; }
.temsilci-tablo td { vertical-align: middle; }

/* Detay cekmecesi */
.cekmece-ust { display: flex; gap: .9rem; align-items: center; }
.cekmece-ust .ad { font-weight: 800; font-size: 1.05rem; }
.cekmece-durum {
  --durum: var(--off);
  margin-top: 1rem;
  border-radius: var(--radius);
  padding: .9rem 1rem;
  background: color-mix(in srgb, var(--durum) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--durum) 25%, transparent);
  display: flex; align-items: center; gap: .8rem;
}
.cekmece-durum .ikon { width: 40px; height: 40px; border-radius: 12px; background: var(--durum); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.cekmece-durum .ad { font-weight: 800; }
.cekmece-durum .sure { margin-left: auto; font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.mini-istatistik { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .9rem; }
.mini-istatistik div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .7rem; font-size: .7rem; color: var(--muted); font-weight: 600; }
.mini-istatistik b { display: block; color: var(--text); font-size: .95rem; font-variant-numeric: tabular-nums; }
.bolum-baslik { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); margin: 1.3rem 0 .6rem; }
.aksiyon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

/* ==========================================================================
   Zaman cizelgesi (timeline) - temsilci & yonetici ortak
   ========================================================================== */

.gun-seridi { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #edf0f5; gap: 1px; }
.gun-seridi span { height: 100%; min-width: 2px; }
.gun-seridi-saatler { display: flex; justify-content: space-between; font-size: .66rem; color: var(--muted-2); font-weight: 600; margin-top: .3rem; font-variant-numeric: tabular-nums; }

.akis { list-style: none; margin: 0; padding: 0; position: relative; }
.akis li { position: relative; padding: 0 0 .9rem 2.2rem; }
.akis li::before {
  content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--border);
}
.akis li:last-child::before { display: none; }
.akis .ikon {
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .8rem;
  box-shadow: 0 0 0 3px var(--surface);
}
.akis .satir { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.akis .ad { font-weight: 700; font-size: .84rem; }
.akis .sure { font-weight: 700; font-size: .8rem; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.akis .zaman { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.akis .not { font-size: .74rem; color: var(--muted); margin-top: .15rem; font-style: italic; }
.akis li.devam .ikon { animation: akis-nabiz 1.8s ease-in-out infinite; }
@keyframes akis-nabiz { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent), 0 0 0 3px var(--surface); transform: scale(1.06); } }
.etiket-manuel { font-size: .62rem; font-weight: 800; color: var(--brand-700); background: var(--brand-50); padding: .1rem .35rem; border-radius: 4px; margin-left: .3rem; font-style: normal; }

/* ==========================================================================
   Temsilci ekrani
   ========================================================================== */

.agent-body { background: var(--bg); }

.agent-topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1030;
}
.agent-topbar .ic {
  max-width: 1400px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem;
}
.agent-marka { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1rem; color: var(--text); }
.agent-marka .marka-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
.agent-marka small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.kullanici-btn {
  display: flex; align-items: center; gap: .6rem;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 12px; padding: .3rem .7rem .3rem .3rem;
  font-weight: 700; font-size: .84rem; color: var(--text);
}
.kullanici-btn:hover { background: var(--surface-2); }

.agent-icerik { max-width: 1400px; margin: 0 auto; padding: 1.5rem; }
.agent-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.5rem; align-items: start; }
@media (max-width: 1199.98px) { .agent-grid { grid-template-columns: 1fr; } }

/* Hero */
.hero {
  --hero: #64748b;
  --hero-2: #475569;
  position: relative;
  border-radius: 24px;
  padding: 1.8rem 2rem;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(255, 255, 255, .18), transparent 70%),
    linear-gradient(135deg, var(--hero) 0%, var(--hero-2) 100%);
  box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--hero) 70%, transparent);
  transition: background .4s ease, box-shadow .4s ease;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.hero > * { position: relative; z-index: 1; }
.hero[data-mod="calisma"] { --hero: #059669; --hero-2: #047857; }
.hero[data-mod="mola"] { --hero: var(--mola-renk, #f59e0b); --hero-2: color-mix(in srgb, var(--mola-renk, #f59e0b) 70%, #000); }
.hero[data-mod="kritik"] { --hero: #e11d48; --hero-2: #9f1239; }
.hero[data-mod="beklemede"] { --hero: #4f46e5; --hero-2: #312e81; }
.hero[data-mod="kapali"] { --hero: #334155; --hero-2: #1e293b; }

.hero-ic { display: flex; align-items: center; gap: 2rem; }
.hero-metin { flex: 1; min-width: 0; }
.hero-etiket {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  background: rgba(255, 255, 255, .16); padding: .35rem .7rem; border-radius: 99px;
}
.hero-etiket .nokta { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: beyaz-nabiz 1.6s ease-in-out infinite; }
@keyframes beyaz-nabiz { 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); opacity: .6; } 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } }
.hero-baslik { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: .8rem 0 .4rem; }
.hero-aciklama { color: rgba(255, 255, 255, .82); font-size: .95rem; max-width: 520px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .4rem; background: rgba(0, 0, 0, .14); border-radius: 10px; padding: .4rem .7rem; font-size: .8rem; font-weight: 600; }
.hero-eylem { margin-top: 1.3rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-hero {
  background: #fff; color: var(--hero-2); border: 0;
  font-weight: 800; padding: .85rem 1.5rem; border-radius: 14px; font-size: .98rem;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
}
.btn-hero:hover { background: #fff; color: var(--hero); transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(0, 0, 0, .4); }
.btn-hero-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); font-weight: 700; padding: .8rem 1.2rem; border-radius: 14px; }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* Halka sayac */
.halka { position: relative; width: 210px; height: 210px; flex: 0 0 210px; }
.halka svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.halka .iz { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 10; }
.halka .dolgu { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.halka .merkez {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.halka .sayac { font-size: 2.35rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.halka .alt { font-size: .74rem; font-weight: 700; opacity: .8; margin-top: .45rem; text-transform: uppercase; letter-spacing: .07em; }
.halka .kalan { font-size: .8rem; font-weight: 700; margin-top: .3rem; background: rgba(0, 0, 0, .16); padding: .2rem .55rem; border-radius: 99px; }

@media (max-width: 767.98px) {
  .hero { padding: 1.4rem; }
  .hero-ic { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
  .halka { width: 170px; height: 170px; flex-basis: 170px; }
  .halka .sayac { font-size: 1.9rem; }
  .hero-baslik { font-size: 1.6rem; }
}

/* Uyari seridi */
.serit {
  display: flex; align-items: center; gap: .9rem;
  border-radius: var(--radius-lg); padding: .9rem 1.1rem; margin-bottom: 1rem;
  background: var(--warn-soft); color: var(--warn-ink); border: 1px solid #fde68a;
  font-weight: 600;
}
.serit i { font-size: 1.3rem; }
.serit .btn { margin-left: auto; }

/* Durum kartlari (mola tipleri) */
.bolum { margin-top: 1.6rem; }
.bolum-ust { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .8rem; gap: 1rem; }
.bolum-ust h2 { font-size: 1rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.bolum-ust .alt { font-size: .78rem; color: var(--muted); }

.durum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .85rem; }
.durum-btn {
  --renk: var(--brand-500);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  text-align: left;
  display: flex; flex-direction: column; gap: .75rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: var(--shadow-xs);
  color: var(--text);
  min-height: 150px;
}
.durum-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--renk) 55%, transparent); border-color: color-mix(in srgb, var(--renk) 45%, var(--border)); }
.durum-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--renk) 40%, transparent); outline-offset: 2px; }
.durum-btn:disabled { cursor: not-allowed; opacity: .55; }
.durum-btn .ust { display: flex; align-items: flex-start; justify-content: space-between; }
.durum-btn .ikon {
  width: 44px; height: 44px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--renk) 14%, #fff);
  color: var(--renk); font-size: 1.25rem;
  transition: all .15s ease;
}
.durum-btn:hover .ikon { background: var(--renk); color: #fff; }
.durum-btn .kisayol { font-size: .66rem; }
.durum-btn .ad { font-weight: 800; font-size: .95rem; letter-spacing: -.01em; }
.durum-btn .limit { font-size: .74rem; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; gap: .4rem; }
.durum-btn .limit b { color: var(--text-2); }
.durum-btn .progress { height: 5px; margin-top: .35rem; }
.durum-btn .progress-bar { background: var(--renk); }
.durum-btn.asim .progress-bar { background: var(--danger); }
.durum-btn.asim .limit b { color: var(--danger-ink); }
.durum-btn.aktif {
  border-color: var(--renk);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--renk) 22%, transparent), var(--shadow);
  background: linear-gradient(180deg, color-mix(in srgb, var(--renk) 7%, #fff), #fff);
}
.durum-btn.aktif .ikon { background: var(--renk); color: #fff; }
.durum-btn.aktif::after {
  content: "ŞU AN"; position: absolute; top: .9rem; right: .9rem;
  font-size: .62rem; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: var(--renk); padding: .2rem .45rem; border-radius: 6px;
}
.durum-btn.aktif .kisayol { display: none; }
.durum-btn .etiket-zorunlu { font-size: .66rem; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: .25rem; }

.calisma-btn {
  --renk: var(--ok);
  width: 100%;
  display: flex; align-items: center; gap: 1rem;
  border: 0; border-radius: 18px;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; text-align: left;
  box-shadow: 0 16px 32px -14px rgba(5, 150, 105, .7);
  transition: transform .15s ease, box-shadow .15s ease;
  margin-bottom: .9rem;
}
.calisma-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(5, 150, 105, .8); }
.calisma-btn .ikon { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.calisma-btn .ad { font-weight: 800; font-size: 1.1rem; }
.calisma-btn .alt { font-size: .8rem; opacity: .85; }
.calisma-btn .ok { margin-left: auto; font-size: 1.4rem; }

/* Ozet kutulari */
.ozet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
@media (max-width: 767.98px) { .ozet-grid { grid-template-columns: 1fr 1fr; } }
.ozet-kutu { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: .95rem 1rem; box-shadow: var(--shadow-xs); }
.ozet-kutu .etiket { font-size: .72rem; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.ozet-kutu .etiket i { color: var(--muted-2); }
.ozet-kutu .deger { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin-top: .3rem; font-variant-numeric: tabular-nums; }

/* Sag kolon kartlari */
.yan-kolon { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: calc(var(--topbar-h) + 1.5rem); }
@media (max-width: 1199.98px) { .yan-kolon { position: static; } }
.akis-kutu { max-height: 360px; overflow-y: auto; padding-right: .3rem; }

/* ==========================================================================
   Mesajlasma
   ========================================================================== */

.sohbet {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: calc(100vh - var(--topbar-h) - 7.5rem);
  min-height: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
@media (max-width: 767.98px) { .sohbet { grid-template-columns: 1fr; height: auto; } .sohbet-liste { max-height: 260px; } }
.sohbet-liste { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.sohbet-liste .ara { padding: .8rem; border-bottom: 1px solid var(--border); }
.sohbet-liste .liste { overflow-y: auto; flex: 1; padding: .4rem; }
.konusma {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .7rem; border-radius: 12px; cursor: pointer;
  transition: background .12s ease;
}
.konusma:hover { background: var(--surface-2); }
.konusma.aktif { background: var(--brand-50); }
.konusma .bilgi { flex: 1; min-width: 0; }
.konusma .ad { font-weight: 700; font-size: .85rem; display: flex; justify-content: space-between; gap: .4rem; }
.konusma .ad small { color: var(--muted-2); font-weight: 600; font-size: .7rem; }
.konusma .onizleme { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.konusma.okunmamis .onizleme { color: var(--text); font-weight: 600; }
.konusma .sayi { background: var(--brand-600); color: #fff; font-size: .66rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.konusma-ikon { width: 38px; height: 38px; min-width: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #818cf8, #4f46e5); color: #fff; }

.sohbet-pencere { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.sohbet-ust { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); }
.sohbet-ust .ad { font-weight: 800; }
.sohbet-ust .alt { font-size: .74rem; color: var(--muted); }
.sohbet-akis {
  flex: 1; overflow-y: auto; padding: 1.1rem 1.2rem;
  background:
    radial-gradient(circle at 1px 1px, #e9ecf3 1px, transparent 0) 0 0 / 18px 18px,
    var(--surface-2);
  display: flex; flex-direction: column; gap: .35rem;
  min-height: 200px;
}
.balon-satir { display: flex; }
.balon-satir.ben { justify-content: flex-end; }
.balon {
  max-width: min(78%, 520px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  padding: .55rem .8rem .4rem;
  box-shadow: var(--shadow-xs);
  font-size: .86rem;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.balon-satir.ben .balon { background: var(--brand-600); color: #fff; border-color: var(--brand-600); border-radius: 16px 16px 4px 16px; }
.balon .kim { font-size: .7rem; font-weight: 800; color: var(--brand-600); margin-bottom: .1rem; }
.balon-satir.ben .balon .kim { color: rgba(255, 255, 255, .8); }
.balon .zaman { font-size: .66rem; color: var(--muted-2); text-align: right; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.balon-satir.ben .balon .zaman { color: rgba(255, 255, 255, .7); }
.balon.acil { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-soft); }
.balon-satir.ben .balon.acil { background: var(--danger); border-color: var(--danger); }
.balon .acil-etiket { display: inline-flex; align-items: center; gap: .25rem; font-size: .64rem; font-weight: 800; letter-spacing: .06em; color: var(--danger-ink); background: var(--danger-soft); padding: .1rem .4rem; border-radius: 5px; margin-bottom: .25rem; }
.balon-satir.ben .balon .acil-etiket { color: #fff; background: rgba(255, 255, 255, .2); }
.gun-ayrac { align-self: center; font-size: .68rem; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: .2rem .7rem; margin: .5rem 0; }

.sohbet-yaz { border-top: 1px solid var(--border); padding: .75rem .9rem; background: var(--surface); }
.sohbet-yaz .kutu { display: flex; gap: .5rem; align-items: flex-end; border: 1px solid var(--border-strong); border-radius: 14px; padding: .35rem .35rem .35rem .8rem; transition: border-color .15s ease, box-shadow .15s ease; }
.sohbet-yaz .kutu:focus-within { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(99, 102, 241, .12); }
.sohbet-yaz textarea { border: 0; resize: none; flex: 1; outline: 0; font-size: .88rem; padding: .45rem 0; max-height: 140px; background: transparent; }
.sohbet-yaz .alt-satir { display: flex; align-items: center; justify-content: space-between; margin-top: .45rem; font-size: .72rem; color: var(--muted); }
.acil-toggle { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .74rem; color: var(--muted); cursor: pointer; user-select: none; border: 1px solid var(--border); border-radius: 8px; padding: .25rem .55rem; }
.acil-toggle input { display: none; }
.acil-toggle.secili { color: var(--danger-ink); background: var(--danger-soft); border-color: #fecdd3; }

/* Temsilci ekranindaki kompakt mesaj karti */
.mini-sohbet { overflow: hidden; }
.mini-sohbet .sekmeler { display: flex; gap: .35rem; padding: .7rem .8rem; overflow-x: auto; border-bottom: 1px solid var(--border); }
.mini-sohbet .sekme {
  border: 1px solid var(--border); background: var(--surface); border-radius: 99px;
  font-size: .76rem; font-weight: 700; color: var(--text-2);
  padding: .3rem .7rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem;
}
.mini-sohbet .sekme.aktif { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.mini-sohbet .sekme .sayi { background: var(--danger); color: #fff; font-size: .62rem; border-radius: 99px; min-width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.mini-sohbet .sohbet-akis { height: 300px; flex: none; }

/* ==========================================================================
   Kullanicilar tablosu, formlar
   ========================================================================== */

.kisi { display: flex; align-items: center; gap: .7rem; }
.kisi .ad { font-weight: 700; }
.kisi .alt { font-size: .74rem; color: var(--muted); }
.filtre-cipleri { display: flex; gap: .4rem; flex-wrap: wrap; }
.cip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-weight: 700; font-size: .78rem; padding: .38rem .75rem; border-radius: 99px;
  display: inline-flex; align-items: center; gap: .4rem;
}
.cip .sayi { font-size: .7rem; color: var(--muted); background: var(--surface-2); border-radius: 99px; padding: 0 .4rem; }
.cip:hover { border-color: var(--border-strong); }
.cip.aktif { background: var(--text); color: #fff; border-color: var(--text); }
.cip.aktif .sayi { background: rgba(255, 255, 255, .18); color: #fff; }

.sifre-kutusu {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 12px;
  padding: .75rem .9rem; margin-top: .8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: .06em;
}

.ayar-satir { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.ayar-satir:last-child { border-bottom: 0; }

/* Mola tipi kartlari (yonetim) */
.tip-kart { --renk: #64748b; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden; }
.tip-kart .ust { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, color-mix(in srgb, var(--renk) 8%, #fff), #fff 70%); }
.tip-kart .ikon { width: 42px; height: 42px; border-radius: 13px; background: var(--renk); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.tip-kart .ad { font-weight: 800; }
.tip-kart .slug { font-size: .72rem; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; }
.tip-kart.pasif { opacity: .6; }
.ikon-sec { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; }
.ikon-sec label { cursor: pointer; }
.ikon-sec input { display: none; }
.ikon-sec span { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 9px; border: 1px solid var(--border); color: var(--text-2); font-size: 1rem; transition: all .12s ease; }
.ikon-sec input:checked + span { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.ikon-sec span:hover { border-color: var(--brand-200); }
.renk-sec { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.renk-sec label { cursor: pointer; }
.renk-sec input[type=radio] { display: none; }
.renk-sec span { display: block; width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .12s ease; }
.renk-sec input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); transform: scale(1.05); }

/* Detay sayfasi basligi */
.profil-kart {
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(129, 140, 248, .25), transparent 70%),
    linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff; border-radius: var(--radius-xl); padding: 1.5rem 1.6rem;
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  box-shadow: 0 20px 40px -20px rgba(49, 46, 129, .6);
  margin-bottom: 1.2rem;
}
.profil-kart .ad { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.profil-kart .alt { color: rgba(255, 255, 255, .72); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .25rem; }
.profil-kart .alt span { display: inline-flex; align-items: center; gap: .35rem; }
.profil-kart .avatar { box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); }

.grafik-kutu { position: relative; height: 280px; }

/* Rapor tablosu */
.rapor-tablo th, .rapor-tablo td { white-space: nowrap; }
.rapor-tablo td.sayi { font-variant-numeric: tabular-nums; text-align: right; }
.rapor-tablo th.sayi { text-align: right; }
.hucre-cubuk { display: flex; align-items: center; gap: .5rem; justify-content: flex-end; }
.hucre-cubuk .cubuk { width: 60px; height: 6px; border-radius: 99px; background: #edf0f5; overflow: hidden; }
.hucre-cubuk .cubuk span { display: block; height: 100%; border-radius: 99px; }

.islem-etiket { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .8rem; }
.islem-etiket i { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); font-size: .8rem; }

/* ==========================================================================
   SweetAlert2 temasi
   ========================================================================== */

.swal2-popup { border-radius: 22px !important; font-family: var(--font-sans) !important; padding: 1.6rem 1.4rem 1.4rem !important; }
.swal2-title { font-size: 1.2rem !important; font-weight: 800 !important; color: var(--text) !important; letter-spacing: -.02em; }
.swal2-html-container { font-size: .9rem !important; color: var(--text-2) !important; }
.swal2-styled { border-radius: 10px !important; font-weight: 700 !important; font-size: .88rem !important; padding: .6rem 1.2rem !important; box-shadow: none !important; }
.swal2-styled.swal2-confirm { background: var(--brand-600) !important; }
.swal2-styled.swal2-cancel { background: var(--surface-2) !important; color: var(--text-2) !important; border: 1px solid var(--border) !important; }
.swal2-styled.swal2-deny { background: var(--danger) !important; }
.swal2-input, .swal2-textarea, .swal2-select { border-radius: 10px !important; border: 1px solid var(--border-strong) !important; font-size: .9rem !important; box-shadow: none !important; font-family: var(--font-sans) !important; }
.swal2-input:focus, .swal2-textarea:focus { border-color: var(--brand-400) !important; box-shadow: 0 0 0 4px rgba(99, 102, 241, .14) !important; }
.swal2-timer-progress-bar { background: var(--brand-400) !important; }
.swal2-popup.swal2-toast { border-radius: 14px !important; padding: .7rem 1rem !important; box-shadow: var(--shadow-lg) !important; border: 1px solid var(--border); }
.swal2-popup.swal2-toast .swal2-title { font-size: .86rem !important; font-weight: 700 !important; margin: 0 .5rem !important; }
.swal-ikon-baslik { width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto .6rem; }

/* ==========================================================================
   Duvar ekrani (TV)
   ========================================================================== */

.wall-body {
  background: #070a1a;
  background-image:
    radial-gradient(900px 500px at 0% 0%, rgba(79, 70, 229, .25), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(16, 185, 129, .12), transparent 60%);
  color: #e2e8f0;
  min-height: 100vh;
  overflow: hidden;
  font-family: var(--font-sans);
}
.wall-ust { display: flex; align-items: center; gap: 1.5rem; padding: 1.6rem 2.4rem 0; }
.wall-ust .marka { display: flex; align-items: center; gap: .9rem; font-weight: 800; font-size: 1.35rem; color: #fff; }
.wall-ust .marka small { display: block; font-size: .8rem; color: #8b90b3; font-weight: 600; }
.wall-saat { margin-left: auto; text-align: right; }
.wall-saat .saat { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.wall-saat .tarih { color: #8b90b3; font-weight: 600; font-size: .95rem; }
.wall-geri { color: #8b90b3; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: .5rem .8rem; font-weight: 600; font-size: .85rem; }
.wall-geri:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.wall-ozet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding: 1.5rem 2.4rem 1rem; }
.wall-ozet .kutu {
  --k: #6366f1;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px; padding: 1.1rem 1.4rem;
  display: flex; align-items: center; gap: 1.1rem;
}
.wall-ozet .ikon { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; background: color-mix(in srgb, var(--k) 20%, transparent); color: var(--k); }
.wall-ozet .etiket { color: #8b90b3; font-weight: 700; font-size: .9rem; }
.wall-ozet .deger { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }

.wall-swiper { padding: .5rem 2.4rem 3rem !important; }
.wall-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.wall-kart {
  --durum: #64748b;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 5px solid var(--durum);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .5rem;
  min-height: 132px;
}
.wall-kart .isim { font-weight: 800; font-size: 1.15rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-kart .durum { display: flex; align-items: center; gap: .5rem; color: var(--durum); font-weight: 700; font-size: 1rem; filter: brightness(1.25); }
.wall-kart .sure { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: auto; }
.wall-kart.asim { background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .5); border-left-color: #f43f5e; animation: wall-asim 1.6s ease-in-out infinite; }
@keyframes wall-asim { 50% { background: rgba(244, 63, 94, .22); } }
.wall-kart .rozet { font-size: .72rem; font-weight: 800; letter-spacing: .06em; background: #f43f5e; color: #fff; padding: .2rem .5rem; border-radius: 6px; align-self: flex-start; }
.wall-kart.soluk { opacity: .45; }
.swiper-pagination-bullet { background: #fff !important; opacity: .3 !important; width: 10px !important; height: 10px !important; }
.swiper-pagination-bullet-active { opacity: 1 !important; width: 26px !important; border-radius: 6px !important; }

@media (max-width: 1400px) { .wall-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Yazdirma
   ========================================================================== */

@media print {
  .sidebar, .topbar, .no-print, .filtre-cubugu { display: none !important; }
  .main { margin-left: 0 !important; }
  .icerik { padding: 0 !important; }
  body { background: #fff; }
  .kart { box-shadow: none; border-color: #ccc; }
}

.swal2-styled.swal2-confirm.swal-tehlike { background: var(--danger) !important; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1199.98px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dagilim-kart { margin-top: 1rem; padding: 1rem 1.2rem; }
.dagilim-kart .ust { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .7rem; }
.dagilim-kart .ust b { font-size: .85rem; }
.canli-rozet { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700; color: var(--ok-ink); }
.canli-rozet .nokta { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); --pill: var(--ok); animation: nabiz 1.6s ease-in-out infinite; }
