/* Verunix Destek — koyu tema (XVM paneli tarzı, lime vurgu) */
:root {
  --bg: #0b0c0f;
  --panel: #111216;
  --panel-2: #17191e;
  --panel-3: #1e2026;
  --line: #22252c;
  --line-2: #2e323a;
  --text: #f2f3ee;
  --text-2: #c9ccc2;
  --muted: #8a8e98;
  --accent: #d4ef3c;
  --accent-ink: #0b0c0f;
  --accent-text: #d4ef3c;
  --accent-soft: rgb(212 239 60 / .12);
  --wa: #3fbf68;
  --tawk: #6f8ff0;
  --live: #3fd25a;
  --bubble-in: #17191e;
  --bubble-out: #26301a;
  --warn: #f2b33d;
  --warn-soft: rgb(242 179 61 / .14);
  --error: #ff6b5a;
  --error-soft: rgb(255 107 90 / .14);
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 4px 16px rgb(0 0 0 / .35);
  --shadow-lg: 0 8px 32px rgb(0 0 0 / .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent-text); }
input, textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  outline: none;
  transition: border-color .15s, background .15s;
}
input:focus, textarea:focus { border-color: var(--accent); background: var(--panel); }
textarea { resize: vertical; }
textarea:disabled { opacity: .6; cursor: not-allowed; }
kbd {
  font: 600 10.5px/1 "Poppins", sans-serif; padding: 2px 5px; border-radius: 5px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--muted);
}

/* ---- İkonlar ---- */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 15px; height: 15px; }

/* ---- Butonlar ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px; padding: 9px 16px;
  cursor: pointer; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background .15s, filter .15s;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { filter: brightness(.95); }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--panel); border-color: var(--line); color: var(--text-2); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.small { padding: 6px 11px; font-size: 12.5px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 0; background: transparent; border-radius: 9px; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn.on { background: var(--accent-soft); color: var(--accent-text); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent-text); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.error { color: var(--error); font-size: 12.5px; margin: 4px 0 0; }
.error:empty { display: none; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.brand { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand span { color: var(--accent-text); }

/* ---- Giriş ---- */
.login { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(340px, 100%); display: grid; gap: 12px; background: var(--panel); padding: 24px; border-radius: 16px; box-shadow: var(--shadow); }

/* ---- Yerleşim ---- */
.app { display: grid; grid-template-columns: 340px minmax(0, 1fr) auto; height: 100dvh; overflow: hidden; }

/* ---- Kenar çubuğu ---- */
.sidebar { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding-top: env(safe-area-inset-top); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px 16px; }
.status-bar { display: flex; gap: 6px; padding: 2px 16px 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; padding: 3px 9px;
  border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; color: var(--text-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--live); }
.dot.warn { background: #f59f00; }
.dot.bad { background: var(--error); }

.search { position: relative; display: block; margin: 0 12px 10px; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search input { padding-left: 34px; padding-right: 58px; }
.kbd-hint { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); }

.views { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0 12px; padding: 3px; background: var(--panel-2); border-radius: 11px; }
.view { border: 0; background: transparent; border-radius: 8px; padding: 6px 2px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.view b { font-weight: 700; color: var(--text-2); margin-left: 2px; }
.view b:empty { display: none; }
.view.active { background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm); }
.view[data-view="pending"].has b { color: var(--warn); }
.channels { display: flex; gap: 6px; padding: 10px 12px 4px; }
.chan { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chan.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.chan-dot { width: 7px; height: 7px; border-radius: 50%; }
.chan-dot.wa { background: var(--wa); }
.chan-dot.tawk { background: var(--tawk); }
.list-tools { display: flex; justify-content: space-between; align-items: center; padding: 4px 16px 6px; min-height: 26px; }

.conv-list { list-style: none; margin: 0; padding: 0 6px 12px; overflow-y: auto; flex: 1; }
.conv { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 11px; cursor: pointer; position: relative; }
.conv:hover { background: var(--panel-2); }
.conv.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.conv.ended:not(.active) { opacity: .62; }
.conv-main { min-width: 0; }
.conv-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-last { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-last .you { color: var(--text-2); font-weight: 500; }
.conv-meta { display: grid; justify-items: end; gap: 4px; font-size: 11px; color: var(--muted); }
.conv.unread .conv-name { font-weight: 800; }
.conv.unread .conv-last { color: var(--text); }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; font-weight: 700; font-size: 11px; line-height: 18px; min-width: 18px; text-align: center; }
.list-empty { padding: 32px 16px; color: var(--muted); text-align: center; font-size: 13px; }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; position: relative; flex: none; }
.avatar.wa { background: var(--wa); }
.avatar.tawk { background: var(--tawk); }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.live-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--panel); background: #b8bcb2; }
.live-dot.inline { position: static; display: inline-block; width: 8px; height: 8px; border: 0; margin-right: 5px; vertical-align: 1px; }
.live-dot.canlı { background: var(--live); }
.live-dot.bekliyor { background: #f59f00; animation: pulse 1.4s ease-in-out infinite; }
.live-dot.uzakta { background: #f2c94c; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgb(245 159 0 / .25); } }
.tag { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.muted { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }

/* ---- Sohbet ---- */
.chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.empty { flex: 1; display: grid; place-items: center; padding: 24px; }
.empty-card { max-width: 460px; text-align: center; display: grid; gap: 14px; }
.empty-title { font-size: 20px; font-weight: 700; }
.empty-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; cursor: pointer; }
.stat:hover { border-color: var(--accent); }
.stat b { display: block; font-size: 22px; line-height: 1.2; }
.stat span { font-size: 11.5px; color: var(--muted); }
.stat.warn b { color: var(--warn); }

.chat-view { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.chat-head .avatar { width: 36px; height: 36px; font-size: 13px; }
.chat-title { flex: 1; min-width: 0; }
.chat-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-sub .state { font-weight: 600; }
.chat-sub .state.canlı { color: #23803a; }
.chat-sub .state.bekliyor { color: var(--warn); }
.head-actions { display: flex; gap: 2px; }
.back { display: none; }
.archived-bar { background: var(--warn-soft); color: var(--warn); font-size: 12.5px; padding: 7px 16px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }

.messages { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.msg {
  max-width: min(620px, 78%); padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--bubble-in); box-shadow: var(--shadow-sm); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px;
}
.msg.me { background: var(--bubble-out); border-color: #e1edb8; align-self: flex-end; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.msg time { display: block; font-size: 10.5px; color: var(--muted); text-align: right; margin-top: 2px; }
.day { align-self: center; font-size: 11.5px; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 2px 10px; margin: 8px 0; }

/* ---- Öneriler ---- */
.assist { background: var(--panel); border-top: 1px solid var(--line); padding: 10px 14px 6px; }
.assist-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.assist-title { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; font-weight: 700; font-size: 13px; color: var(--accent-text); cursor: pointer; white-space: nowrap; }
.assist-title .chev { transition: transform .15s; }
.assist.collapsed .assist-title .chev { transform: rotate(-90deg); }
.assist.collapsed .suggestions, .assist.collapsed .hint, .assist.collapsed #suggestBtn { display: none; }
.assist.collapsed { padding-bottom: 10px; }
.assist.collapsed .assist-head { margin-bottom: 0; }
.hint { flex: 1; padding: 6px 10px; font-size: 12.5px; min-width: 0; }
.suggestions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; max-height: 34vh; overflow-y: auto; padding-bottom: 6px; }
.sugg {
  position: relative; text-align: left; border: 1px solid var(--line); background: var(--panel-2);
  border-radius: var(--radius); padding: 9px 11px; cursor: pointer; white-space: pre-wrap; font-size: 13.5px; line-height: 1.5;
}
.sugg:hover { border-color: var(--accent); background: var(--accent-soft); }
.sugg-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; white-space: normal; }
.sugg-num { font: 700 10.5px/16px "Poppins", sans-serif; width: 16px; height: 16px; text-align: center; border-radius: 5px; background: var(--panel); border: 1px solid var(--line-2); color: var(--muted); }
.sugg .label { flex: 1; font-size: 10.5px; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: .04em; }
.sugg-copy { border: 0; background: none; color: var(--muted); padding: 2px; border-radius: 6px; cursor: pointer; display: grid; }
.sugg-copy:hover { color: var(--text); background: var(--panel); }
.ph { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.note { grid-column: 1 / -1; font-size: 12.5px; color: var(--warn); background: var(--warn-soft); border-radius: 9px; padding: 6px 10px; }
.sugg-state { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); padding: 4px 0; }
.sugg-state.error { color: var(--error); }
.skeleton { height: 70px; border-radius: var(--radius); background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Yazma alanı ---- */
.composer { background: var(--panel); padding: 4px 14px calc(12px + env(safe-area-inset-bottom)); position: relative; }
.composer-box { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.composer-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(212 239 60 / .22); }
.composer textarea { border: 0; background: transparent; resize: none; max-height: 40vh; min-height: 46px; padding: 10px 12px 4px; }
.composer textarea:focus { background: transparent; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 6px 8px; }
.composer-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.chips:empty { display: none; }
.chip { border: 1px dashed var(--warn); background: var(--warn-soft); color: var(--warn); border-radius: 999px; padding: 2px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.chips-hint { font-size: 11.5px; color: var(--warn); align-self: center; font-weight: 600; }

.popover {
  position: absolute; left: 14px; bottom: calc(100% - 4px); width: min(420px, calc(100% - 28px));
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 10px; display: grid; gap: 8px; z-index: 20;
}
.template-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; display: grid; gap: 2px; }
.template-list li { padding: 7px 9px; border-radius: 9px; cursor: pointer; }
.template-list li:hover, .template-list li.sel { background: var(--accent-soft); }
.template-list li.none { cursor: default; color: var(--muted); font-size: 12.5px; }
.template-list li.none:hover { background: none; }
.template-list b { display: block; font-size: 12.5px; }
.template-list span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Müşteri bilgisi ---- */
.info { width: 300px; background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding-top: env(safe-area-inset-top); }
.info-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px 16px; font-weight: 700; }
.info-body { overflow-y: auto; padding: 4px 16px 20px; display: grid; gap: 16px; align-content: start; }
.info-hero { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 6px 0 4px; }
.info-hero .name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.info-sec h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kv { display: grid; gap: 6px; }
.kv-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 6px; align-items: center; font-size: 12.5px; }
.kv-row .k { color: var(--muted); }
.kv-row .v { overflow-wrap: anywhere; min-width: 0; }
.kv-row .icon-btn { width: 26px; height: 26px; }
.kv-row .icon-btn .ic { width: 14px; height: 14px; }

/* ---- Ayarlar ---- */
.settings { position: fixed; inset: 0; background: var(--bg); z-index: 30; display: flex; flex-direction: column; }
.settings-head { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
.settings-body { overflow-y: auto; padding: 8px 16px 32px; display: grid; gap: 12px; max-width: 780px; width: 100%; margin: 0 auto; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.section { margin: 14px 2px 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; }
.card h3 { margin: 0; font-size: 15px; font-weight: 700; }
.card p { margin: 0; }
.pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.user-list { display: grid; gap: 6px; }
.user-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.user-row.off { opacity: .55; }
.user-row .who { flex: 1; min-width: 160px; }
.user-row .who b { display: block; }
.user-row .who span { font-size: 12px; color: var(--muted); }
.user-row select { width: auto; padding: 5px 8px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.user-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto auto; gap: 8px; align-items: center; }
.user-form select { padding: 9px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
@media (max-width: 700px) { .user-form, .pw-grid { grid-template-columns: 1fr; } }
.qr img { width: 240px; max-width: 100%; border-radius: 8px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.example-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.example-list li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.example-list .q { color: var(--muted); white-space: pre-wrap; }
.example-list .a { white-space: pre-wrap; }
.tpl-editor { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tpl-editor li { display: grid; grid-template-columns: 1fr auto; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.tpl-editor textarea { grid-column: 1 / -1; }
.tpl-editor li.empty-tpl { grid-template-columns: 1fr; color: var(--muted); font-size: 12.5px; text-align: center; border-style: dashed; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; flex: none; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(14px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.radio { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.radio input { width: auto; margin-top: 4px; accent-color: var(--accent-text); }
.radio em { font-style: normal; font-size: 12px; }
.tag.auto { background: #e7efff; color: #2f55b0; }
.msg .auto-mark { font-weight: 700; color: #2f55b0; margin-right: 6px; }

.handoff { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; color: #2f55b0; background: #e7efff; border-radius: 9px; padding: 7px 10px; }
.faq-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.faq-tab { border: 0; background: none; padding: 9px 14px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.faq-tab.on { color: var(--text); border-bottom-color: var(--accent); }
.faq-tab b { font-weight: 700; margin-left: 4px; color: var(--accent-text); }
.faq-card.st-düzeltildi { border-left: 4px solid #3d6fd8; }
.faq-prev { font-size: 12.5px; background: var(--panel-2); border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; text-decoration: line-through; color: var(--muted); }
.faq-section-title { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 6px 2px 0; }

/* ---- Test sohbeti ---- */
.play .settings-head { gap: 10px; }
.play .settings-head .chat-title { flex: 1; min-width: 0; }
.play .settings-head select { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; max-width: 220px; }
.play-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.play-chat { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.play-chat .messages { background: var(--bg); }
.play .msg.cust { align-self: flex-end; background: #e7efff; border-color: #d3e1ff; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.play .msg.bot { align-self: flex-start; background: var(--bubble-out); border-color: #e1edb8; }
.play .msg .who { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .04em; }
.play .sys { align-self: center; max-width: 90%; font-size: 12px; text-align: center; border-radius: 10px; padding: 6px 12px; }
.play .sys.warn { background: var(--warn-soft); color: var(--warn); }
.play .sys.info { background: #e7efff; color: #2f55b0; }
.play .sys.err { background: var(--error-soft); color: var(--error); }
.play-side { background: var(--panel); display: flex; flex-direction: column; min-height: 0; padding: 14px 14px 20px; }
.play-side-body { overflow-y: auto; display: grid; gap: 8px; align-content: start; }
.play-side .sugg { cursor: default; }
.play-side .sugg .row { margin-top: 8px; }
@media (max-width: 900px) {
  .play-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .play-side { max-height: 40vh; border-top: 1px solid var(--line); }
  .play .settings-head { flex-wrap: wrap; }
  .play .settings-head .chat-sub { display: none; }
}

/* ---- Sık sorular ---- */
.faq .settings-head { gap: 10px; }
.faq .settings-head .chat-title { flex: 1; }
.faq-body { overflow-y: auto; padding: 14px 18px 40px; width: 100%; max-width: 1100px; margin: 0 auto; display: grid; gap: 14px; align-content: start; }
.faq-progress { background: var(--accent-soft); color: var(--accent-text); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 13px; }
.faq-progress.error { background: var(--error-soft); color: var(--error); }
.faq-toolbar { display: grid; gap: 10px; }
.faq-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.faq-stats .stat { cursor: default; text-align: center; }
.faq-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.faq-filters select { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; }
.faq-filters input { width: auto; flex: 1; min-width: 200px; padding: 6px 10px; font-size: 12.5px; }
.seg { display: inline-flex; background: var(--panel-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm); }
.faq-list { display: grid; gap: 12px; }
.faq-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; }
.faq-card.st-onaylandı { border-left: 4px solid var(--live); }
.faq-card.st-düzeltilecek { border-left: 4px solid var(--error); }
.faq-head { display: flex; gap: 10px; align-items: flex-start; }
.faq-head h3 { margin: 0; font-size: 15px; flex: 1; }
.faq-count { font-weight: 800; font-size: 18px; line-height: 1; color: var(--accent-text); min-width: 34px; text-align: center; }
.faq-count small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); }
.faq-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag.ok { background: #e3f5e6; color: #23803a; }
.tag.bad { background: var(--error-soft); color: var(--error); }
.tag.cat { background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line); }
.faq-q { font-size: 13.5px; color: var(--text-2); }
.faq-ex { font-size: 12.5px; color: var(--muted); display: grid; gap: 3px; }
.faq-ex span::before { content: '“'; } .faq-ex span::after { content: '”'; }
.faq-sec-title { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.faq-past { font-size: 12.5px; background: var(--panel-2); border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; }
.faq-card textarea.faq-answer { min-height: 90px; font-size: 13.5px; background: var(--panel); }
.faq-note { font-size: 12.5px; color: var(--warn); background: var(--warn-soft); border-radius: 9px; padding: 6px 10px; }
.faq-sources { font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.faq-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.faq-actions .spacer { flex: 1; }
.faq-feedback { font-size: 13px; }
.btn.ok { background: #e3f5e6; color: #23803a; border-color: #c8e8cf; }
.btn.bad { background: var(--error-soft); color: var(--error); border-color: #f5cdc5; }
details.faq-more summary { cursor: pointer; font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 820px) {
  .faq-stats { grid-template-columns: repeat(3, 1fr); }
  .faq .settings-head { flex-wrap: wrap; }
  #faqCopyFixes { display: none; }
}

/* ---- Bildirim balonları ---- */
.toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; z-index: 50; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 9px 14px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-lg); max-width: 360px; animation: toast-in .2s ease-out; pointer-events: auto; }
.toast.error { background: var(--error); }
.toast.ok { background: #23803a; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* ---- Duyarlı yerleşim ---- */
@media (max-width: 1280px) {
  .info { position: fixed; right: 0; top: 0; bottom: 0; z-index: 25; box-shadow: var(--shadow-lg); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .app.in-chat .sidebar { display: none; }
  .app:not(.in-chat) .chat { display: none; }
  .info { width: 100%; }
  .back { display: inline-grid; }
  .messages { padding: 12px; }
  .msg { max-width: 88%; }
  .suggestions { grid-template-columns: 1fr; max-height: 30vh; }
  .hint { display: none; }
  .assist-head.show-hint .hint { display: block; }
  #suggestBtn span { display: none; }
  .hide-mobile { display: none; }
  .kbd-hint { display: none; }
  .search input { padding-right: 11px; }
  input, textarea { font-size: 16px; } /* iOS'ta yakınlaştırmayı önler */
  .toasts { left: 16px; right: 16px; }
}

/* Sesle yazma */
.mic-btn { padding: 6px 8px; }
.mic-btn.rec { color: #fff; background: #e03131; border-color: #e03131; animation: mic-pulse 1.2s infinite; }
.mic-btn.disabled { opacity: .45; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 5px rgb(224 49 49 / .25); } }

/* Otomatik cevap: tüm sistem anahtarı ve sohbet butonu */
.auto-switch { display: flex; align-items: center; gap: 4px; margin: 0 12px 8px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 12px; }
.auto-switch-label { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; opacity: .7; font-weight: 600; }
.auto-switch button { flex: 1; border: 0; background: transparent; padding: 5px 4px; border-radius: 7px; cursor: pointer; font: inherit; color: inherit; }
.auto-switch button:hover { background: rgb(255 255 255 / .06); }
.auto-switch button.active { background: var(--accent); color: #1c2400; font-weight: 700; }
.auto-switch button[data-auto-mode="all"].active { background: #2f55b0; color: #fff; }
.auto-conv-btn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.auto-conv-btn.on { background: #e7efff; color: #2f55b0; border-color: #b9cbf3; }
@media (max-width: 820px) { .auto-conv-btn span { display: none; } }

/* Bildirim açma şeridi */
.push-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 12px 8px; padding: 8px 10px; border-radius: 10px; background: #fff4e0; color: #8a5200; font-size: 12.5px; font-weight: 600; }
.push-banner[hidden] { display: none; }

/* Eski mesajları yükle */
.load-older { display: flex; justify-content: center; padding: 6px 0 10px; }

/* WhatsApp'tan gelen fotoğraflar */
.msg-media { display: block; margin: -2px 0 6px; }
.msg-media img { display: block; max-width: min(280px, 100%); max-height: 320px; border-radius: 10px; object-fit: cover; background: rgba(0, 0, 0, .05); }

/* ---- XVM tarzı ince ayarlar ---- */
.sidebar { background: #0d0e11; }
.brand { font-size: 20px; }
.brand span { color: var(--text); font-weight: 600; }
.btn.primary { box-shadow: 0 0 0 1px rgb(212 239 60 / .35), 0 4px 18px rgb(212 239 60 / .15); }
.btn.ghost { border-color: var(--line-2); }
.chan.active, .icon-btn.on { box-shadow: inset 0 0 0 1px rgb(212 239 60 / .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2d34; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
