/* VeriKaydet canlı destek widget */
.vk-chat-launch {
  position: fixed;
  right: 30px;
  bottom: 96px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0b4fd6);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(37, 99, 235, .75), 0 2px 6px rgba(15, 23, 42, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.vk-chat-launch:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(37, 99, 235, .85); }
.vk-chat-launch svg { width: 26px; height: 26px; }
.vk-chat-launch .vk-chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-sizing: content-box;
}
.vk-chat-launch .vk-chat-badge[hidden] { display: none; }

.vk-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 168px;
  z-index: 1001;
  width: min(370px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 200px));
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
  color: var(--ink, #0f172a);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .45);
  overflow: hidden;
  font-family: var(--font, 'Inter', system-ui, sans-serif);
}
.vk-chat-panel[hidden] { display: none; }
.vk-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #0b1220, #123359);
  color: #fff;
}
.vk-chat-ident { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vk-chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .22);
  flex: none;
}
.vk-chat-head b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.vk-chat-head small { display: block; font-size: 11.5px; color: #b9cbe0; margin-top: 1px; }
.vk-chat-close {
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  flex: none;
}
.vk-chat-close:hover { background: rgba(255, 255, 255, .22); }

.vk-chat-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.vk-chat-intro { padding: 18px; display: grid; gap: 10px; overflow: auto; }
.vk-chat-intro p { margin: 0 0 2px; font-size: 13px; line-height: 1.6; color: var(--muted, #64748b); }
.vk-chat-intro label { display: grid; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink, #0f172a); }
.vk-chat-intro input,
.vk-chat-intro textarea,
.vk-chat-composer textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line, #dbe3ee);
  border-radius: 10px;
  background: var(--bg, #f8fafc);
  color: var(--ink, #0f172a);
  font: inherit;
  font-size: 13px;
  padding: 9px 11px;
}
.vk-chat-intro textarea { min-height: 74px; resize: vertical; }
.vk-chat-intro input:focus,
.vk-chat-intro textarea:focus,
.vk-chat-composer textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.vk-chat-send {
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}
.vk-chat-send:hover { background: #1d4ed8; }
.vk-chat-send:disabled { opacity: .6; cursor: not-allowed; }
.vk-chat-error { font-size: 12px; color: #dc2626; min-height: 0; }
.vk-chat-error:empty { display: none; }

.vk-chat-thread {
  flex: 1;
  min-height: 180px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  background: var(--bg, #f8fafc);
}
.vk-chat-thread[hidden] { display: none; }
.vk-chat-msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 13px;
  border: 1px solid var(--line, #e2e8f0);
  background: var(--surface, #fff);
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
}
.vk-chat-msg.mine {
  margin-left: auto;
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.vk-chat-msg .vk-chat-time { display: block; font-size: 10.5px; opacity: .7; margin-top: 4px; }
.vk-chat-msg.staff { background: var(--surface, #fff); }
.vk-chat-system { align-self: center; font-size: 11.5px; color: var(--muted, #64748b); background: transparent; border: 0; padding: 2px; }

.vk-chat-composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 12px 14px;
  border-top: 1px solid var(--line, #e2e8f0);
  background: var(--surface, #fff);
}
.vk-chat-composer[hidden] { display: none; }
.vk-chat-composer textarea { flex: 1; min-height: 44px; max-height: 110px; resize: none; }
.vk-chat-composer .vk-chat-send { flex: none; }

html[data-theme="dark"] .vk-chat-panel { background: #0d1b2e; color: #e6eef8; border-color: #1e3350; }
html[data-theme="dark"] .vk-chat-thread { background: #081426; }
html[data-theme="dark"] .vk-chat-msg { background: #12233a; border-color: #1e3350; color: #e6eef8; }
html[data-theme="dark"] .vk-chat-msg.mine { background: #1d4ed8; border-color: #1d4ed8; }
html[data-theme="dark"] .vk-chat-intro input,
html[data-theme="dark"] .vk-chat-intro textarea,
html[data-theme="dark"] .vk-chat-composer textarea { background: #0b1a2d; color: #e6eef8; border-color: #1e3350; }

@media (max-width: 600px) {
  .vk-chat-launch { right: 18px; bottom: 92px; width: 52px; height: 52px; }
  .vk-chat-panel {
    right: 12px;
    left: 12px;
    bottom: 154px;
    width: auto;
    max-height: calc(100vh - 180px);
    border-radius: 16px;
  }
}
