/* Seko Chat Widget — sancak.tech */
#seko-widget { position: fixed; right: 20px; bottom: 20px; z-index: 99999; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

.seko-bubble {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #6d5dfc, #8f5dfc);
  color: #fff; border: none; border-radius: 999px;
  padding: 12px 20px; font-size: 15px; font-weight: 600;
  cursor: pointer; box-shadow: 0 6px 24px rgba(109, 93, 252, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.seko-bubble:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(109, 93, 252, .55); }

.seko-panel {
  position: absolute; right: 0; bottom: 70px; width: 360px; max-width: calc(100vw - 40px);
  height: 480px; max-height: calc(100vh - 120px);
  background: #12121c; color: #e8e8f0; border: 1px solid #26263a; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.seko-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.seko-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: linear-gradient(135deg, #1b1b2c, #20203a); border-bottom: 1px solid #2b2b45;
}
.seko-title { font-weight: 700; font-size: 15px; }
.seko-title span { font-weight: 400; font-size: 12px; color: #9a9ab8; }
.seko-close { background: none; border: none; color: #9a9ab8; font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px; }
.seko-close:hover { color: #fff; }

.seko-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.seko-messages::-webkit-scrollbar { width: 6px; }
.seko-messages::-webkit-scrollbar-thumb { background: #33334d; border-radius: 3px; }

.seko-msg { display: flex; }
.seko-msg.seko-user { justify-content: flex-end; }
.seko-bubble-text {
  max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.seko-user .seko-bubble-text { background: linear-gradient(135deg, #6d5dfc, #8f5dfc); color: #fff; border-bottom-right-radius: 4px; }
.seko-assistant .seko-bubble-text { background: #1e1e30; color: #dcdcec; border-bottom-left-radius: 4px; border: 1px solid #2b2b45; }

.seko-typing .seko-dots { display: inline-flex; gap: 3px; }
.seko-typing .seko-dots i { font-style: normal; animation: seko-blink 1.2s infinite; }
.seko-typing .seko-dots i:nth-child(2) { animation-delay: .2s; }
.seko-typing .seko-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes seko-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.seko-error {
  display: none; margin: 0 14px 8px; padding: 8px 12px; font-size: 13px;
  background: #3a1520; color: #ff9db0; border: 1px solid #5c2233; border-radius: 10px;
}

.seko-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #26263a; background: #161624; }
.seko-input-row input {
  flex: 1; background: #1e1e30; border: 1px solid #2f2f4a; color: #e8e8f0; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none;
}
.seko-input-row input:focus { border-color: #6d5dfc; }
.seko-input-row input::placeholder { color: #6a6a8c; }
.seko-input-row button {
  background: linear-gradient(135deg, #6d5dfc, #8f5dfc); border: none; color: #fff;
  border-radius: 10px; width: 42px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.seko-input-row button:hover { filter: brightness(1.1); }

@media (max-width: 420px) {
  .seko-panel { width: calc(100vw - 32px); right: -4px; }
}
