/* ═══════════════════════════════════════════════════════════════
   MODERN DASHBOARD — Premium SaaS Enhancement Layer
   Hedef: %125 tarayıcı zoom görünümünü %100'de üretmek (×1.25)
   ═══════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS — DARK (varsayılan)
══════════════════════════════════════════════════════════════ */
:root {
  --bg:              #0e1117;
  --bg2:             #12161f;
  --surface:         #161c2b;
  --surface1:        #161c2b;
  --surface2:        #1d2438;
  --surface3:        #242d47;
  --surface-elevated:#1d2438;
  --border:          #212840;
  --border1:         #212840;
  --border2:         #2c3554;
  --text:            #e1e8f4;
  --text2:           #8892a8;
  --text3:           #4d5870;
  --text-muted:      #8892a8;
  --accent:          #4f74e3;
  --accent2:         #3d62d6;
  --accent-hover:    #3d62d6;
  --accent-subtle:   rgba(79, 116, 227, 0.10);
  --green:           #22c55e;
  --orange:          #f59e0b;
  --red:             #ef4444;
  --yellow:          #eab308;
  --success:         #22c55e;
  --warning:         #f59e0b;
  --danger:          #ef4444;
  --note-bg:         #19140a;
  --note-bdr:        #6b4c0e;
  --shadow-sm:       0 1px 4px rgba(0,0,0,0.35);
  --shadow-md:       0 5px 20px rgba(0,0,0,0.45);
  --shadow-lg:       0 16px 48px rgba(0,0,0,0.55);
  --shadow:          rgba(0,0,0,0.45);
  --radius-sm:       6px;
  --radius:          9px;
  --radius-lg:       14px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --t-fast: 120ms ease;
  --t-base: 160ms ease;
}


/* ══════════════════════════════════════════════════════════════
   2. DESIGN TOKENS — LIGHT
══════════════════════════════════════════════════════════════ */
body.theme-light {
  --bg:              #f0f4f9;
  --bg2:             #ffffff;
  --surface:         #ffffff;
  --surface1:        #ffffff;
  --surface2:        #f5f8fd;
  --surface3:        #eaeff7;
  --surface-elevated:#fafcff;
  --border:          #dde4f0;
  --border1:         #dde4f0;
  --border2:         #c8d2e6;
  --text:            #1a2035;
  --text2:           #4e5d7a;
  --text3:           #8b97b0;
  --text-muted:      #6b7a94;
  --accent:          #4f74e3;
  --accent2:         #3d62d6;
  --accent-hover:    #3756c8;
  --accent-subtle:   rgba(79,116,227,0.08);
  --green:           #16a34a;
  --orange:          #d97706;
  --red:             #dc2626;
  --yellow:          #b45309;
  --success:         #16a34a;
  --warning:         #d97706;
  --danger:          #dc2626;
  --note-bg:         #fffbeb;
  --note-bdr:        #fbbf24;
  --shadow-sm:       0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:       0 5px 20px rgba(0,0,0,0.10);
  --shadow-lg:       0 16px 48px rgba(0,0,0,0.14);
  --shadow:          rgba(0,0,0,0.10);
  background-color:  #f0f4f9;
  color:             #1a2035;
}


/* ══════════════════════════════════════════════════════════════
   3. BASE — font ×1.25 (13 → 16px)
══════════════════════════════════════════════════════════════ */
body {
  font-family: var(--font);
  font-size: 16px;          /* 13 × 1.25 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
body.font-small  { font-size: 15px; }
body.font-middle { font-size: 16px; }
body.font-large  { font-size: 19px; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.stat-val, .num-cell, .dur {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }


/* ══════════════════════════════════════════════════════════════
   4. APP HEADER — 46px × 1.25 = 58px
══════════════════════════════════════════════════════════════ */
.app-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  height: 58px;
  padding: 0 13px 0 0;
}

.header-logo {
  width: 58px; height: 58px;
  border-right: 1px solid var(--border);
  color: var(--accent); font-size: 22px;
  transition: background var(--t-fast);
}
.header-logo:hover { background: var(--accent-subtle); }

.header-page-title {
  font-size: 16px; font-weight: 600; color: var(--text);
  padding: 0 16px; letter-spacing: -0.01em;
}

.header-stats { font-size: 15px; color: var(--text3); gap: 10px; }

.header-view-tabs { gap: 3px; margin-left: 18px; }

.view-tab-btn {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--text3);
  border: 1px solid transparent; transition: all var(--t-fast);
}
.view-tab-btn:hover { color: var(--text2); background: rgba(255,255,255,0.04); }
.view-tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
body.theme-light .view-tab-btn:hover { background: rgba(0,0,0,0.04); }

.header-icon-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  color: var(--text3); font-size: 16px; transition: all var(--t-fast);
}
.header-icon-btn:hover { background: rgba(255,255,255,0.05); color: var(--text2); }
body.theme-light .header-icon-btn:hover { background: rgba(0,0,0,0.05); }

.history-toggle-btn {
  padding: 6px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--text3);
  font-size: 15px; font-weight: 500; margin-right: 12px; gap: 6px;
  transition: all var(--t-fast);
}
.history-toggle-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }
.history-toggle-btn.active { background: var(--accent-subtle); border-color: var(--accent); color: var(--accent); }

.status-chip {
  padding: 6px 13px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 15px; font-weight: 500; margin-right: 12px; gap: 8px;
  transition: all var(--t-fast);
}
.status-chip:hover { border-color: var(--accent); }

.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online  { background: var(--green);  box-shadow: 0 0 0 3px rgba(34,197,94,0.20); }
.status-dot.away    { background: var(--orange); box-shadow: 0 0 0 3px rgba(245,158,11,0.20); }
.status-dot.offline { background: var(--text3); box-shadow: none; }

.avatar-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--border2); font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, #4f74e3, #764ba2);
  transition: border-color var(--t-fast);
}
.avatar-btn:hover { border-color: var(--accent); }


/* ══════════════════════════════════════════════════════════════
   5. NAV RAIL — 48px × 1.25 = 60px
══════════════════════════════════════════════════════════════ */
.nav-rail {
  width: 60px; background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 13px 0; gap: 3px;
}

.nav-btn {
  width: 45px; height: 45px; border-radius: var(--radius-sm);
  color: var(--text3); font-size: 21px; transition: all var(--t-fast);
}
.nav-btn:hover { background: rgba(255,255,255,0.05); color: var(--text2); }
.nav-btn.active { background: var(--accent-subtle); color: var(--accent); }
body.theme-light .nav-btn:hover { background: rgba(0,0,0,0.04); }

.nav-btn .badge {
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 8px; padding: 1px 4px; min-width: 15px;
}


/* ══════════════════════════════════════════════════════════════
   6. VİZİTÖR TABLOSU — padding × 1.25
══════════════════════════════════════════════════════════════ */
.visitor-table-wrap { flex: 1; overflow: auto; }
.visitor-table { min-width: 750px; }

.visitor-table thead th {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 12px 14px; font-size: 12px; font-weight: 700;
  color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
.visitor-table thead th:hover { color: var(--text2); }

.visitor-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--t-fast); }
body.theme-dark .visitor-table tbody tr { border-bottom-color: rgba(255,255,255,0.025); }
.visitor-table tbody tr:hover { background: rgba(79,116,227,0.04); }

.visitor-table td { padding: 12px 14px; font-size: 15px; color: var(--text); vertical-align: middle; }
.visitor-table td.dim { color: var(--text2); }

.vis-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.vis-dot.active   { background: var(--accent); box-shadow: 0 0 0 3px rgba(79,116,227,0.15); }
.vis-dot.browsing { background: var(--text3); }

.vis-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), #764ba2);
  font-size: 15px; font-weight: 600; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.vis-name-text { font-size: 15px; font-weight: 500; color: var(--text); }
.vis-sub       { font-size: 12px; color: var(--text3); margin-top: 2px; }

.vis-btn-chat {
  padding: 5px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  background: var(--accent); color: #fff; border: none;
  transition: background var(--t-fast);
}
.vis-btn-chat:hover { background: var(--accent-hover); }

.vis-btn-ban {
  padding: 5px 11px; border-radius: var(--radius-sm);
  font-size: 13px; border: 1px solid var(--danger); color: var(--danger); background: none;
  transition: all var(--t-fast);
}
.vis-btn-ban:hover { background: var(--danger); color: #fff; }
.vis-agent-cell { font-size: 13px; color: var(--text2); }

.visitor-row { transition: background var(--t-fast); }
.visitor-row:hover { background: rgba(79,116,227,0.04); }
.visitor-row.selected { background: rgba(79,116,227,0.08); }

.num-cell { text-align: center; font-weight: 600; color: var(--text2); font-size: 15px; }

.empty-table-row td { text-align: center; padding: 70px 20px; color: var(--text3); font-size: 16px; }

.waiting-badge {
  padding: 3px 10px; border-radius: 10px;
  font-size: 12px; font-weight: 700;
  background: rgba(245,158,11,0.15); color: var(--orange);
}

.chat-btn {
  padding: 5px 13px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 500; border: none;
  transition: background var(--t-fast);
}
.chat-btn:hover { background: var(--accent-hover); }


/* ══════════════════════════════════════════════════════════════
   7. VİZİTÖR BİLGİ PANELİ
══════════════════════════════════════════════════════════════ */
#visitorInfoPanel {
  width: 313px; background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 18px; gap: 16px;
}

.vip-badge {
  background: var(--surface2); border: 1px solid var(--border);
  padding: 3px 11px; border-radius: 10px;
  font-size: 13px; color: var(--text2); font-weight: 500;
}

.vip-sect-title { font-size: 12px; font-weight: 700; color: var(--text3); letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 8px; }
.vip-field { font-size: 13px; }
.vip-lbl   { color: var(--text3); width: 80px; }
.vip-val   { color: var(--text); }

.ban-btn {
  padding: 5px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border2); color: var(--text2);
  font-size: 13px; font-weight: 500; transition: all var(--t-fast);
}
.ban-btn:hover { border-color: var(--danger); color: var(--danger); }


/* ══════════════════════════════════════════════════════════════
   8. CHAT LİSTESİ — 260px × 1.10 = 286px (width daha az skala)
══════════════════════════════════════════════════════════════ */
.chat-list-col {
  width: 286px; background: var(--bg2); border-right: 1px solid var(--border);
}

.chat-list-header { padding: 13px 15px 11px; border-bottom: 1px solid var(--border); }
.chat-list-title  { font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }

.chat-list-search { padding: 10px 13px; border-bottom: 1px solid var(--border); }
.chat-list-search input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 8px 13px; font-size: 15px; outline: none;
  font-family: var(--font); transition: border-color var(--t-base);
}
.chat-list-search input::placeholder { color: var(--text3); }
.chat-list-search input:focus { border-color: var(--accent); }

/* 8px × 1.25 = 10px üst padding, 12px × 1.25 = 15px */
.section-lbl {
  padding: 10px 15px 5px;
  font-size: 12px; font-weight: 700;
  color: var(--text3); text-transform: uppercase; letter-spacing: 0.6px;
}

/* 9px × 1.25 = 11px, 12px × 1.25 = 15px */
.chat-row {
  padding: 11px 15px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
  transition: all var(--t-fast);
}
body.theme-dark .chat-row { border-bottom-color: rgba(255,255,255,0.025); }
.chat-row:hover { background: rgba(79,116,227,0.04); }
.chat-row.active { background: rgba(79,116,227,0.08); border-left-color: var(--accent); }

.chat-row-top    { margin-bottom: 5px; }
.chat-row-name   { font-size: 16px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.chat-row-time   { font-size: 12px; color: var(--text3); }
.chat-row-preview{ font-size: 13px; color: var(--text2); margin-top: 3px; }

.status-pill { padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.status-pill.waiting { background: rgba(245,158,11,0.12); color: var(--orange); }
.status-pill.active  { background: rgba(34,197,94,0.10);  color: var(--green); }
.status-pill.closed  { background: rgba(255,255,255,0.06); color: var(--text3); }
body.theme-light .status-pill.closed { background: rgba(0,0,0,0.06); }

.unread-dot { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════════
   9. CHAT MESAJLARI
══════════════════════════════════════════════════════════════ */
.chat-main-col { min-width: 0; }

/* 10px × 1.25 = 13px, 14px × 1.25 = 18px */
.chat-top-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 13px 18px; gap: 13px; }
.chat-top-name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.chat-top-sub  { font-size: 14px; color: var(--text2); margin-top: 3px; }

.take-banner { background: rgba(79,116,227,0.06); border-bottom: 1px solid rgba(79,116,227,0.18); padding: 11px 18px; }
.take-banner p { font-size: 15px; color: var(--text2); }

.closed-banner { background: var(--surface2); border-bottom: 1px solid var(--border); padding: 9px 18px; font-size: 14px; color: var(--text3); }

/* 14px × 1.25 = 18px */
.messages-wrap { flex: 1; overflow-y: auto; padding: 18px; gap: 3px; }

/* 8px × 1.25 = 10px, 12px × 1.25 = 15px */
.bubble { padding: 10px 15px; border-radius: 14px; font-size: var(--fs-msg, 16px); line-height: 1.55; }
.bubble.visitor { background: var(--surface2); border-bottom-left-radius: 3px; color: var(--text); }
body.theme-light .bubble.visitor { background: var(--surface3); }
.bubble.agent   { background: linear-gradient(135deg, #4f74e3, #3d62d6); border-bottom-right-radius: 3px; color: #fff; }
.bubble.system  { background: rgba(255,255,255,0.04); color: var(--text3); font-size: 13px; padding: 4px 15px; border-radius: 20px; }
body.theme-light .bubble.system { background: rgba(0,0,0,0.04); }
.bubble.note    { background: var(--note-bg); border: 1px solid var(--note-bdr); border-bottom-right-radius: 3px; color: var(--yellow); }

.note-lbl   { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; opacity: 0.65; margin-bottom: 4px; }
.msg-sender { font-size: 12px; color: var(--text3); padding: 0 4px; margin-bottom: 3px; }
.msg-time   { font-size: 12px; color: var(--text3); padding: 2px 4px; }


/* ══════════════════════════════════════════════════════════════
   10. MESAJ COMPOSER — 10px × 1.25 = 13px
══════════════════════════════════════════════════════════════ */
.input-area { border-top: 1px solid var(--border); background: var(--surface); padding: 13px 15px; }

.input-tabs { gap: 3px; margin-bottom: 11px; }
.input-tab-btn {
  padding: 5px 14px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--text3);
  border: 1px solid transparent; transition: all var(--t-fast);
}
.input-tab-btn:hover { color: var(--text2); }
.input-tab-btn.active.msg  { background: var(--accent-subtle); border-color: var(--accent); color: var(--accent); }
.input-tab-btn.active.note { background: rgba(234,179,8,0.10); border-color: var(--yellow); color: var(--yellow); }

/* 9px × 1.25 = 11px, 11px × 1.25 = 14px */
.msg-input {
  flex: 1; background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); color: var(--text);
  padding: 11px 14px; font-size: var(--fs-msg, 16px);
  font-family: var(--font); min-height: 50px; max-height: 140px;
  resize: none; outline: none; transition: border-color var(--t-base);
}
.msg-input::placeholder { color: var(--text3); }
.msg-input:focus { border-color: var(--accent); }
.msg-input.note-mode { border-color: rgba(234,179,8,0.22); }
.msg-input.note-mode:focus { border-color: var(--yellow); }

/* 40px × 1.25 = 50px */
.send-btn {
  width: 50px; height: 50px; border-radius: var(--radius);
  border: none; background: var(--accent); color: #fff;
  font-size: 21px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), opacity var(--t-fast);
}
.send-btn:hover { background: var(--accent-hover); }
.send-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.send-btn.note-mode       { background: #92400e; }
.send-btn.note-mode:hover { background: #78350f; }

.canned-drop {
  bottom: 63px; right: 63px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); box-shadow: var(--shadow-md); max-height: 220px;
}
.canned-opt { padding: 11px 15px; gap: 11px; border-bottom: 1px solid var(--border); transition: background var(--t-fast); }
body.theme-dark .canned-opt { border-bottom-color: rgba(255,255,255,0.04); }
.canned-opt:hover, .canned-opt.hi { background: var(--accent-subtle); }
.canned-key { font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-subtle); padding: 2px 9px; border-radius: 4px; }
.canned-txt { font-size: 15px; color: var(--text2); }


/* ══════════════════════════════════════════════════════════════
   11. CHAT BİLGİ SÜTUNU — 240px × 1.10 = 264px
══════════════════════════════════════════════════════════════ */
.chat-info-col { width: 264px; background: var(--bg2); border-left: 1px solid var(--border); }

.info-tabs { border-bottom: 1px solid var(--border); }
.info-tab-btn {
  padding: 13px 8px; font-size: 15px; font-weight: 500;
  color: var(--text3); border-bottom: 2px solid transparent; transition: all var(--t-fast);
}
.info-tab-btn:hover { color: var(--text2); }
.info-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.info-sect { padding: 15px; border-bottom: 1px solid var(--border); }
.info-sect h5 { font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 11px; }
.info-field { margin-bottom: 9px; }
.info-field .lbl { font-size: 12px; color: var(--text3); margin-bottom: 3px; }
.info-field .val { font-size: 15px; color: var(--text); }

.agent-list-item { padding: 10px 15px; border-bottom: 1px solid var(--border); gap: 10px; }
body.theme-dark .agent-list-item { border-bottom-color: rgba(255,255,255,0.03); }

.agent-av {
  width: 35px; height: 35px; border-radius: 50%;
  background: linear-gradient(135deg, #4f74e3, #764ba2);
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.agent-av .dot { position: absolute; bottom: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--bg2); }
.agent-av .dot.online  { background: var(--green); }
.agent-av .dot.away    { background: var(--orange); }
.agent-av .dot.offline { background: var(--text3); }

.agent-info-name { font-size: 15px; font-weight: 500; }
.agent-info-sub  { font-size: 12px; color: var(--text3); }

.agent-toggle-btn {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text3); padding: 4px 10px; font-size: 13px; font-weight: 500;
  transition: all var(--t-fast);
}
.agent-toggle-btn:hover { background: var(--surface2); color: var(--text); }


/* ══════════════════════════════════════════════════════════════
   12. GEÇMİŞ RAIL — 190px × 1.10 = 209px
══════════════════════════════════════════════════════════════ */
.history-rail { width: 209px; background: var(--bg2); border-left: 1px solid var(--border); }
.history-rail-header { padding: 13px 15px 10px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.6px; }
.history-item { padding: 11px 15px; border-bottom: 1px solid var(--border); gap: 9px; transition: background var(--t-fast); }
body.theme-dark .history-item { border-bottom-color: rgba(255,255,255,0.025); }
.history-item:hover { background: rgba(79,116,227,0.05); }
.history-item .dur   { font-size: 15px; color: var(--text2); font-weight: 500; }
.history-item .agent { font-size: 13px; color: var(--text3); }
.history-item .chat-icon { font-size: 16px; }


/* ══════════════════════════════════════════════════════════════
   13. DURUM & PROFİL
══════════════════════════════════════════════════════════════ */
.status-dropdown {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow-md); min-width: 175px;
}
.status-opt { padding: 10px 13px; border-radius: var(--radius-sm); font-size: 15px; color: var(--text2); gap: 10px; transition: background var(--t-fast); }
.status-opt:hover { background: var(--surface2); color: var(--text); }

.profile-menu { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); min-width: 263px; }
.profile-menu-header { padding: 14px 16px; border-bottom: 1px solid var(--border); margin-bottom: 6px; gap: 13px; }
.profile-avatar-lg {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #4f74e3, #764ba2);
  font-size: 19px; font-weight: 700; color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.profile-name  { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.profile-email { font-size: 13px; color: var(--text2); margin-top: 2px; }
.profile-menu-item {
  padding: 10px 15px; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text2); gap: 10px;
  transition: all var(--t-fast); margin-bottom: 1px;
}
.profile-menu-item:hover { background: var(--surface2); color: var(--text); }
.profile-menu-item.danger { color: var(--danger); }
.profile-menu-item.danger:hover { background: rgba(239,68,68,0.08); }
.profile-menu-item .mi { font-size: 18px; opacity: 0.8; }
hr.menu-sep { border-color: var(--border); margin: 6px 0; }


/* ══════════════════════════════════════════════════════════════
   14. MODAL & OVERLAY
══════════════════════════════════════════════════════════════ */
.overlay { background: rgba(0,0,0,0.60); backdrop-filter: blur(2px); }

.modal-box { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-box.prefs-box { width: 1000px; max-width: calc(100vw - 48px); }
.modal-box.cp-box    { width: 1100px; max-width: calc(100vw - 48px); }

.modal-hdr { padding: 20px 25px 16px; border-bottom: 1px solid var(--border); }
.modal-hdr h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }

.modal-close { color: var(--text3); font-size: 24px; border-radius: var(--radius-sm); padding: 2px 8px; transition: all var(--t-fast); }
.modal-close:hover { background: var(--surface2); color: var(--text); }

.modal-nav { width: 200px; border-right: 1px solid var(--border); padding: 13px; }
.modal-nav-item {
  padding: 11px 15px; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text2); gap: 9px;
  transition: all var(--t-fast); margin-bottom: 2px;
}
.modal-nav-item:hover { background: var(--surface2); color: var(--text); }
.modal-nav-item.active { background: var(--accent-subtle); color: var(--accent); }

.modal-content-pane { padding: 25px; }


/* ══════════════════════════════════════════════════════════════
   15. TERCİHLER MODALI
══════════════════════════════════════════════════════════════ */
.pref-section { margin-bottom: 35px; }
.pref-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 19px; padding-bottom: 11px; border-bottom: 1px solid var(--border); }
.pref-row { margin-bottom: 13px; gap: 10px; }
.pref-row label { font-size: 16px; color: var(--text2); gap: 9px; }
.pref-row input[type=checkbox] { accent-color: var(--accent); width: 17px; height: 17px; }

.pref-num, .pref-select, .pref-textarea {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font); font-size: 16px; outline: none;
  transition: border-color var(--t-base);
}
.pref-num:focus, .pref-select:focus, .pref-textarea:focus { border-color: var(--accent); }
.pref-select option { background: var(--surface); }

.theme-cards { gap: 19px; margin-top: 13px; }
.theme-card { border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; padding: 13px; text-align: center; transition: border-color var(--t-fast); width: 138px; }
.theme-card:hover { border-color: var(--accent); }
.theme-card.selected { border-color: var(--accent); background: var(--accent-subtle); }
.theme-card-preview.dark  { background: #12151e; border: 1px solid #222840; height: 69px; border-radius: 6px; }
.theme-card-preview.light { background: #f0f4f9; border: 1px solid #dde4f0; height: 69px; border-radius: 6px; }
.theme-card-name { font-size: 14px; color: var(--text2); margin-top: 9px; }
.theme-card.selected .theme-card-name { color: var(--accent); font-weight: 600; }


/* ══════════════════════════════════════════════════════════════
   16. BUTON SİSTEMİ — padding × 1.25
══════════════════════════════════════════════════════════════ */
.btn-primary {
  background: var(--accent); border: none; border-radius: var(--radius);
  color: #fff; cursor: pointer; padding: 10px 20px;
  font-size: 16px; font-weight: 500; font-family: var(--font);
  transition: background var(--t-fast);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius);
  color: var(--text); cursor: pointer; padding: 9px 18px;
  font-size: 16px; font-family: var(--font); font-weight: 500; transition: background var(--t-fast);
}
.btn-secondary:hover { background: var(--surface3); }

.btn-danger {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); border-radius: var(--radius);
  color: var(--danger); cursor: pointer; padding: 8px 15px;
  font-size: 14px; font-family: var(--font); font-weight: 500; transition: all var(--t-fast);
}
.btn-danger:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); }

.btn-xs {
  padding: 5px 11px; border-radius: var(--radius-sm);
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); font-size: 13px; font-weight: 500;
  font-family: var(--font); transition: all var(--t-fast);
}
.btn-xs:hover { background: var(--surface3); color: var(--text); }
.btn-xs.danger:hover { background: rgba(239,68,68,0.10); border-color: var(--danger); color: var(--danger); }
.btn-xs.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-xs.primary:hover { background: var(--accent-hover); }


/* ══════════════════════════════════════════════════════════════
   17. TOAST
══════════════════════════════════════════════════════════════ */
#toastWrap { bottom: 23px; right: 23px; gap: 9px; }
.toast {
  background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 13px 19px; font-size: 15px; font-family: var(--font);
  box-shadow: var(--shadow-md); min-width: 238px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--accent); }


/* ══════════════════════════════════════════════════════════════
   18. BOŞ DURUM
══════════════════════════════════════════════════════════════ */
.empty-state { gap: 14px; }
.empty-state .ico { font-size: 50px; opacity: 0.22; }
.empty-state h3   { font-size: 19px; font-weight: 600; color: var(--text2); letter-spacing: -0.01em; }
.empty-state p    { font-size: 16px; color: var(--text3); max-width: 300px; text-align: center; line-height: 1.6; }


/* ══════════════════════════════════════════════════════════════
   19. TRANSFER MODALI
══════════════════════════════════════════════════════════════ */
.transfer-agent-row { gap: 13px; padding: 13px 15px; border-radius: var(--radius); border: 1px solid var(--border); transition: background var(--t-fast); }
.transfer-agent-row:hover { background: var(--surface2); }
.transfer-av { width: 43px; height: 43px; border-radius: 50%; background: linear-gradient(135deg, #4f74e3, #764ba2); font-size: 17px; font-weight: 700; color: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.transfer-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.transfer-role { font-size: 13px; color: var(--text2); }
.transfer-status-dot.online { background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }


/* ══════════════════════════════════════════════════════════════
   20. TABLO VE FORM ELEMENTLERİ — × 1.25
══════════════════════════════════════════════════════════════ */
.data-tbl { border-collapse: collapse; }
.data-tbl th {
  text-align: left; font-size: 12px; font-weight: 700;
  color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px;
  padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-tbl td {
  padding: 13px 14px; border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text); vertical-align: middle;
}
body.theme-dark .data-tbl td { border-bottom-color: rgba(255,255,255,0.03); }
.data-tbl tr:hover td { background: rgba(79,116,227,0.04); }
.data-tbl td.dim { color: var(--text2); }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 15px; font-weight: 500; color: var(--text2); margin-bottom: 6px; }

.form-inp, .form-select {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  padding: 10px 14px; font-size: 16px; font-family: var(--font);
  outline: none; transition: border-color var(--t-base);
}
.form-inp::placeholder { color: var(--text3); }
.form-inp:focus, .form-select:focus { border-color: var(--accent); }
.form-inp.textarea { resize: vertical; min-height: 81px; }

.sect-hdr { margin-bottom: 19px; }
.sect-hdr h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }

.api-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; font-family: "SF Mono","Fira Code",ui-monospace,monospace;
  font-size: 14px; color: var(--green);
}
.code-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; font-family: "SF Mono","Fira Code",ui-monospace,monospace;
  font-size: 14px; color: var(--text2); white-space: pre-wrap;
}


/* ══════════════════════════════════════════════════════════════
   21. STAT KARTLARI — × 1.25
══════════════════════════════════════════════════════════════ */
.cp-stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 13px; margin-bottom: 25px; }

.stat-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 23px; transition: border-color var(--t-fast); }
.stat-card:hover { border-color: var(--border2); }

/* 26px × 1.25 = 33px */
.stat-val { font-size: 33px; font-weight: 700; color: var(--text); letter-spacing: -0.04em; line-height: 1; }
.stat-lbl { font-size: 13px; font-weight: 500; color: var(--text3); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.3px; }

.stat-card.c-accent .stat-val { color: var(--accent); }
.stat-card.c-green  .stat-val { color: var(--green); }
.stat-card.c-orange .stat-val { color: var(--orange); }


/* ══════════════════════════════════════════════════════════════
   22. ADMİN LAYOUT — × 1.25
══════════════════════════════════════════════════════════════ */
.admin-layout { background: var(--bg); font-family: var(--font); -webkit-font-smoothing: antialiased; }

/* 220px × 1.10 = 242px (width daha az scale) */
.admin-layout .admin-sidebar { background: var(--surface1); border-right: 1px solid var(--border1); width: 242px; }

.admin-layout .admin-sidebar-logo {
  padding: 25px 23px 20px; font-size: 19px; font-weight: 700;
  color: var(--text); border-bottom: 1px solid var(--border1); gap: 13px; letter-spacing: -0.02em;
}

.admin-layout .admin-nav { padding: 13px 10px; }

.admin-layout .admin-nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 18px; border-radius: var(--radius);
  color: var(--text2); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background var(--t-fast), color var(--t-fast);
  margin-bottom: 2px; letter-spacing: -0.01em;
}
.admin-layout .admin-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
body.theme-light .admin-layout .admin-nav-item:hover { background: rgba(0,0,0,0.04); }
.admin-layout .admin-nav-item.active { background: var(--accent-subtle); color: var(--accent); }

.admin-layout .admin-sidebar-footer { border-top: 1px solid var(--border1); }

/* 56px × 1.25 = 70px */
.admin-layout .admin-header { background: var(--surface1); border-bottom: 1px solid var(--border1); height: 70px; padding: 0 25px; gap: 16px; }
.admin-layout .admin-header-title { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.admin-layout .admin-back-link { font-size: 15px; color: var(--text3); font-weight: 500; transition: color var(--t-fast); }
.admin-layout .admin-back-link:hover { color: var(--text2); }

.admin-layout .admin-user-chip {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 20px;
  padding: 7px 15px; font-size: 15px; color: var(--text2); gap: 10px;
}

.admin-layout .admin-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #4f74e3, #764ba2);
  font-size: 13px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.admin-layout .admin-logout-btn {
  padding: 8px 18px; border-radius: var(--radius);
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.22);
  color: var(--danger); font-size: 14px; font-weight: 500;
  font-family: var(--font); cursor: pointer; transition: all var(--t-fast);
}
.admin-layout .admin-logout-btn:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); }

/* 24px × 1.25 = 30px */
.admin-layout .admin-content { flex: 1; overflow-y: auto; padding: 30px; background: var(--bg); }


/* ══════════════════════════════════════════════════════════════
   23. GİRİŞ SAYFASI — 380px kart, padding × 1.25
══════════════════════════════════════════════════════════════ */
.login-card {
  background: var(--surface, #161c2b);
  border: 1px solid var(--border, #212840);
  border-radius: var(--radius-lg, 14px);
  padding: 50px 48px; width: 450px;
  box-shadow: var(--shadow-lg, 0 16px 48px rgba(0,0,0,0.55));
}

.login-card .logo { text-align: center; margin-bottom: 40px; }
.login-card .logo-icon {
  width: 65px; height: 65px; background: var(--accent, #4f74e3);
  border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 16px;
}
.login-card .logo h1 { font-size: 25px; font-weight: 700; color: var(--text, #e1e8f4); letter-spacing: -0.03em; margin-bottom: 5px; }
.login-card .logo p  { font-size: 16px; color: var(--text3, #4d5870); }

.login-card .form-group { margin-bottom: 20px; }
.login-card label { display: block; font-size: 14px; font-weight: 500; color: var(--text2, #8892a8); margin-bottom: 7px; }

.login-card input {
  width: 100%; background: var(--bg, #0e1117);
  border: 1px solid var(--border, #212840); border-radius: var(--radius, 9px);
  color: var(--text, #e1e8f4); padding: 13px 18px; font-size: 16px; outline: none;
  font-family: var(--font, -apple-system, sans-serif); transition: border-color 160ms ease;
}
.login-card input::placeholder { color: var(--text3, #4d5870); }
.login-card input:focus { border-color: var(--accent, #4f74e3); }

.login-card .btn {
  width: 100%; background: var(--accent, #4f74e3); border: none;
  border-radius: var(--radius, 9px); color: #fff; font-size: 17px; font-weight: 600;
  padding: 15px; cursor: pointer; margin-top: 13px;
  font-family: var(--font, -apple-system, sans-serif); transition: background 160ms ease;
}
.login-card .btn:hover { background: var(--accent-hover, #3d62d6); }
.login-card .btn:disabled { opacity: 0.45; cursor: not-allowed; }

.login-card .error {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.22);
  border-radius: var(--radius-sm, 6px); color: var(--danger, #ef4444);
  font-size: 15px; padding: 13px 16px; margin-bottom: 20px;
}


/* ══════════════════════════════════════════════════════════════
   24. DİL & TEMA TOGGLE ALTYAPISI
══════════════════════════════════════════════════════════════ */
.lang-switcher { display: flex; align-items: center; gap: 2px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 3px; }
.lang-btn { padding: 5px 13px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; color: var(--text3); border: none; background: none; cursor: pointer; transition: all var(--t-fast); font-family: var(--font); }
.lang-btn:hover { color: var(--text2); }
.lang-btn.active { background: var(--accent); color: #fff; }

.theme-toggle-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface2); color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all var(--t-fast); }
.theme-toggle-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }


/* ══════════════════════════════════════════════════════════════
   25. RESPONSİF
══════════════════════════════════════════════════════════════ */
@media (max-width: 1400px) {
  .chat-info-col { width: 248px; }
  .history-rail  { width: 196px; }
  .admin-layout .admin-sidebar { width: 225px; }
}

@media (max-width: 1100px) {
  .chat-list-col { width: 262px; }
  .chat-info-col { width: 230px; }
  .history-rail  { width: 185px; }
}

@media (max-width: 768px) {
  .nav-rail { display: none; }
  .chat-list-col { width: 100%; }
  .chat-main-col { display: none; }
  .chat-main-col.active { display: flex; width: 100%; }
  .chat-info-col { display: none; }
  .history-rail { display: none; }
  .app-header { flex-wrap: wrap; gap: 6px; height: auto; padding: 10px 13px; }
  .header-view-tabs { order: 3; width: 100%; }
  .visitor-table-wrap { overflow-x: auto; }
  .cp-stats-grid { grid-template-columns: repeat(2,1fr); }
  .admin-layout .admin-sidebar { width: 63px; }
  .admin-layout .admin-nav-item span:not(:first-child) { display: none; }
  .login-card { width: 100%; max-width: 450px; margin: 0 20px; padding: 40px 32px; }
}

@media (max-width: 480px) {
  .cp-stats-grid { grid-template-columns: 1fr; }
  .modal-box.prefs-box, .modal-box.cp-box { width: calc(100vw - 24px); }
  .modal-body-split { flex-direction: column; }
  .modal-nav { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
