/* ================================================================
   SHZSOLUTIONS — Canlı Destek Widget — Premium Glass Edition
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --lc-bg:          rgba(10, 10, 14, 0.82);
  --lc-glass:       rgba(255, 255, 255, 0.04);
  --lc-glass-hover: rgba(255, 255, 255, 0.07);
  --lc-surface:     rgba(255, 255, 255, 0.05);
  --lc-surface2:    rgba(255, 255, 255, 0.08);
  --lc-border:      rgba(255, 255, 255, 0.09);
  --lc-border-lit:  rgba(255, 255, 255, 0.18);
  --lc-text:        #f2f2f4;
  --lc-text-sub:    rgba(242, 242, 244, 0.5);
  --lc-text-muted:  rgba(242, 242, 244, 0.28);
  --lc-accent:      #ffffff;
  --lc-green:       #34d399;
  --lc-red:         #f87171;
  --lc-gold:        #fbbf24;
  --lc-glow:        rgba(255, 255, 255, 0.06);
  --lc-radius:      22px;
  --lc-radius-sm:   14px;
  --lc-radius-xs:   10px;
  --lc-font-display:'Syne', system-ui, sans-serif;
  --lc-font:        'DM Sans', system-ui, sans-serif;
  --lc-blur:        blur(28px) saturate(180%);
  --lc-shadow:      0 40px 100px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Floating Button ─────────────────────────────────────────── */
.lc-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 99999;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
  backdrop-filter: blur(10px);
}
.lc-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 16px 56px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.9);
}
.lc-btn svg { width: 22px; height: 22px; transition: opacity 0.25s, transform 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.lc-btn .lc-icon-chat  { color: #111; }
.lc-btn .lc-icon-close { color: #111; position: absolute; opacity: 0; transform: rotate(-80deg) scale(0.5); }
.lc-btn.open .lc-icon-chat  { opacity: 0; transform: rotate(80deg) scale(0.5); }
.lc-btn.open .lc-icon-close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Pulse rings */
.lc-btn:not(.open)::before,
.lc-btn:not(.open)::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  animation: lcRing 2.8s ease-out infinite;
}
.lc-btn:not(.open)::after { animation-delay: 1.4s; }
@keyframes lcRing {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

.lc-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--lc-red);
  color: #fff; font-size: 10px; font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: none; align-items: center; justify-content: center;
  padding: 0 5px;
  border: 2px solid #0a0a0e;
  font-family: var(--lc-font);
  letter-spacing: 0;
}
.lc-badge.show { display: flex; animation: lcBounce 0.45s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes lcBounce { from { transform: scale(0) rotate(-10deg); } to { transform: scale(1) rotate(0deg); } }

/* ── Panel ───────────────────────────────────────────────────── */
.lc-panel {
  position: fixed;
  bottom: 104px; right: 28px;
  z-index: 99998;
  width: 380px;
  background: var(--lc-bg);
  backdrop-filter: var(--lc-blur);
  -webkit-backdrop-filter: var(--lc-blur);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  display: flex; flex-direction: column;
  box-shadow: var(--lc-shadow);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34,1.15,0.64,1), opacity 0.28s ease;
  overflow: hidden;
  font-family: var(--lc-font);
  max-height: 620px;
}
.lc-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* Top shimmer line */
.lc-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 40%, rgba(255,255,255,0.12) 70%, transparent 100%);
  z-index: 2;
}

/* ── Header ──────────────────────────────────────────────────── */
.lc-header {
  padding: 18px 20px;
  display: flex; align-items: center; gap: 13px;
  border-bottom: 1px solid var(--lc-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  flex-shrink: 0;
  position: relative;
}

.lc-avatar {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(200,200,210,0.9) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #111;
  flex-shrink: 0;
  position: relative;
  font-family: var(--lc-font-display);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.8);
}
.lc-online-dot {
  position: absolute; bottom: -2px; right: -2px;
  width: 12px; height: 12px;
  background: var(--lc-green);
  border-radius: 50%;
  border: 2px solid rgba(10,10,14,0.9);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.5);
  animation: lcHeartbeat 2.2s ease-in-out infinite;
}
@keyframes lcHeartbeat {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}

.lc-header-info { flex: 1; min-width: 0; }
.lc-header-name {
  font-size: 14px; font-weight: 600;
  color: var(--lc-text);
  letter-spacing: -0.3px;
  font-family: var(--lc-font-display);
}
.lc-header-status {
  font-size: 11.5px;
  color: var(--lc-text-muted);
  margin-top: 2px;
  display: flex; align-items: center; gap: 5px;
}
.lc-header-status.online { color: var(--lc-green); }
.lc-header-status.online::before {
  content: ''; width: 5px; height: 5px;
  background: var(--lc-green); border-radius: 50%;
  animation: lcBlink 2s ease-in-out infinite;
}
@keyframes lcBlink { 0%,100%{opacity:1} 50%{opacity:0.4} }

.lc-header-actions { display: flex; gap: 6px; }
.lc-header-btn {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--lc-glass);
  border: 1px solid var(--lc-border);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--lc-text-muted);
  transition: all 0.18s;
}
.lc-header-btn:hover { background: var(--lc-glass-hover); color: var(--lc-text); border-color: var(--lc-border-lit); }

/* ── Views ───────────────────────────────────────────────────── */
.lc-view { display: none; flex-direction: column; flex: 1; overflow: hidden; }
.lc-view.active { display: flex; }

/* ══════════════════════════════════════════════════════════════
   START FORM — Premium redesign
   ══════════════════════════════════════════════════════════════ */
.lc-start {
  padding: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; flex: 1;
}
.lc-start::-webkit-scrollbar { width: 0; }

/* Hero section */
.lc-hero {
  padding: 28px 24px 22px;
  background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  border-bottom: 1px solid var(--lc-border);
  position: relative;
  overflow: hidden;
}
.lc-hero::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.lc-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 11px; font-weight: 500;
  color: var(--lc-green);
  margin-bottom: 14px;
  letter-spacing: 0.2px;
  font-family: var(--lc-font);
}
.lc-hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--lc-green); border-radius: 50%;
  animation: lcBlink 2s ease-in-out infinite;
}
.lc-hero-title {
  font-size: 22px; font-weight: 700;
  color: var(--lc-text);
  letter-spacing: -0.7px;
  line-height: 1.15;
  font-family: var(--lc-font-display);
  margin-bottom: 8px;
}
.lc-hero-title span {
  background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lc-hero-sub {
  font-size: 13px; color: var(--lc-text-sub); line-height: 1.6;
  font-weight: 300;
}

/* Stats row */
.lc-stats {
  display: flex; gap: 0;
  border-top: 1px solid var(--lc-border);
  margin-top: 20px;
}
.lc-stat {
  flex: 1; padding: 12px 0 2px;
  text-align: center;
  border-right: 1px solid var(--lc-border);
}
.lc-stat:last-child { border-right: none; }
.lc-stat-val {
  font-size: 16px; font-weight: 700;
  color: var(--lc-text);
  font-family: var(--lc-font-display);
  letter-spacing: -0.5px;
}
.lc-stat-label {
  font-size: 10px; color: var(--lc-text-muted);
  margin-top: 2px; letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Form area */
.lc-form-area {
  padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 13px;
}

/* Floating label input group */
.lc-field {
  position: relative;
}
.lc-field-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--lc-text-muted); pointer-events: none;
  transition: color 0.2s;
  display: flex;
}
.lc-field-icon svg { width: 15px; height: 15px; }
.lc-field input,
.lc-field textarea {
  width: 100%; box-sizing: border-box;
  background: var(--lc-surface);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-sm);
  padding: 16px 14px 6px 40px;
  font-size: 13.5px;
  color: var(--lc-text);
  outline: none;
  font-family: var(--lc-font);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  resize: none;
}
.lc-field textarea {
  padding-top: 20px;
  min-height: 70px;
  line-height: 1.5;
}
.lc-field input::placeholder,
.lc-field textarea::placeholder { color: transparent; }
.lc-field label {
  position: absolute;
  left: 40px; top: 50%; transform: translateY(-50%);
  font-size: 13.5px; color: var(--lc-text-muted);
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  font-family: var(--lc-font);
  white-space: nowrap;
}
.lc-field textarea ~ label { top: 22px; transform: none; }

/* Float label up on focus/fill */
.lc-field input:focus ~ label,
.lc-field input:not(:placeholder-shown) ~ label,
.lc-field textarea:focus ~ label,
.lc-field textarea:not(:placeholder-shown) ~ label {
  top: 7px; transform: none;
  font-size: 10px; letter-spacing: 0.3px;
  color: var(--lc-text-muted);
}
.lc-field textarea:focus ~ label,
.lc-field textarea:not(:placeholder-shown) ~ label { top: 7px; }

.lc-field input:focus,
.lc-field textarea:focus {
  border-color: var(--lc-border-lit);
  background: var(--lc-surface2);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.05);
}
.lc-field input:focus ~ .lc-field-icon,
.lc-field textarea:focus ~ .lc-field-icon { color: var(--lc-text-sub); }

/* Animated border on focus */
.lc-field::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  border-radius: 0 0 var(--lc-radius-sm) var(--lc-radius-sm);
  transition: left 0.35s ease, right 0.35s ease;
  pointer-events: none;
}
.lc-field:focus-within::after { left: 0; right: 0; }

/* Two col row */
.lc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Start button */
.lc-btn-start {
  background: var(--lc-accent);
  color: #0d0d0f;
  border: none;
  border-radius: var(--lc-radius-sm);
  padding: 14px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  font-family: var(--lc-font-display);
  letter-spacing: -0.2px;
  width: 100%; margin-top: 2px;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 20px rgba(255,255,255,0.12);
}
.lc-btn-start::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.lc-btn-start:hover::before { transform: translateX(100%); }
.lc-btn-start:hover:not(:disabled) { opacity: 0.93; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,255,255,0.18); }
.lc-btn-start:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 10px rgba(255,255,255,0.1); }
.lc-btn-start:disabled { opacity: 0.35; cursor: not-allowed; }

/* Privacy note */
.lc-privacy {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 11px; color: var(--lc-text-muted);
  font-family: var(--lc-font);
  margin-top: -4px;
}
.lc-privacy svg { width: 11px; height: 11px; opacity: 0.6; }

/* ── Messages ────────────────────────────────────────────────── */
.lc-messages {
  flex: 1; overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex; flex-direction: column; gap: 5px;
  scroll-behavior: smooth;
}
.lc-messages::-webkit-scrollbar { width: 3px; }
.lc-messages::-webkit-scrollbar-track { background: transparent; }
.lc-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.lc-msg {
  display: flex; flex-direction: column;
  max-width: 80%; gap: 3px;
  animation: lcMsgIn 0.28s cubic-bezier(0.34,1.2,0.64,1);
}
@keyframes lcMsgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lc-msg.user { align-self: flex-end; align-items: flex-end; }
.lc-msg.admin,.lc-msg.system { align-self: flex-start; align-items: flex-start; }
.lc-msg.system { align-self: center; max-width: 100%; }

.lc-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px; line-height: 1.55;
  word-break: break-word;
  font-family: var(--lc-font);
}
.lc-msg.user .lc-msg-bubble {
  background: rgba(255,255,255,0.93);
  color: #0d0d0f;
  border-bottom-right-radius: 5px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.lc-msg.admin .lc-msg-bubble {
  background: var(--lc-surface);
  color: var(--lc-text);
  border-bottom-left-radius: 5px;
  border: 1px solid var(--lc-border);
  backdrop-filter: blur(10px);
}
.lc-msg.system .lc-msg-bubble {
  background: transparent;
  color: var(--lc-text-muted);
  font-size: 11.5px; padding: 3px 0;
  border: none; font-style: italic; text-align: center;
}
.lc-msg-time { font-size: 10px; color: var(--lc-text-muted); padding: 0 3px; font-family: var(--lc-font); }

/* ── Typing ──────────────────────────────────────────────────── */
.lc-typing { display: none; align-self: flex-start; }
.lc-typing.show { display: flex; }
.lc-typing-dots {
  display: flex; gap: 4px;
  padding: 12px 14px;
  background: var(--lc-surface);
  border-radius: 16px; border-bottom-left-radius: 5px;
  border: 1px solid var(--lc-border);
}
.lc-typing-dots span {
  width: 5px; height: 5px;
  background: var(--lc-text-muted); border-radius: 50%;
  animation: lcDot 1.3s ease-in-out infinite;
}
.lc-typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.lc-typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes lcDot {
  0%,60%,100% { transform: translateY(0); opacity: 0.35; }
  30%          { transform: translateY(-5px); opacity: 1; }
}

/* ── Input Area ──────────────────────────────────────────────── */
.lc-input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--lc-border);
  display: flex; gap: 9px; align-items: flex-end;
  background: linear-gradient(0deg, rgba(255,255,255,0.02) 0%, transparent 100%);
  flex-shrink: 0;
}
.lc-text-input {
  flex: 1;
  background: var(--lc-surface);
  border: 1px solid var(--lc-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px; color: var(--lc-text);
  outline: none; resize: none;
  max-height: 80px; min-height: 40px;
  font-family: var(--lc-font);
  line-height: 1.45;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lc-text-input::placeholder { color: var(--lc-text-muted); }
.lc-text-input:focus {
  border-color: var(--lc-border-lit);
  background: var(--lc-surface2);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.lc-send-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.lc-send-btn:hover { opacity: 0.9; transform: scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.lc-send-btn:active { transform: scale(0.96); }
.lc-send-btn svg { width: 16px; height: 16px; color: #0d0d0f; }

/* ── Rating View ─────────────────────────────────────────────── */
.lc-rating {
  padding: 36px 24px; display: flex; flex-direction: column;
  align-items: center; gap: 16px; text-align: center;
  flex: 1; justify-content: center;
}
.lc-rating-title { font-size: 17px; font-weight: 700; color: var(--lc-text); letter-spacing: -0.4px; font-family: var(--lc-font-display); }
.lc-rating-sub { font-size: 12.5px; color: var(--lc-text-sub); line-height: 1.6; font-weight: 300; }
.lc-stars { display: flex; gap: 10px; }
.lc-star {
  font-size: 30px; cursor: pointer;
  color: rgba(255,255,255,0.1);
  transition: color 0.15s, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.lc-star:hover,.lc-star.active { color: var(--lc-gold); transform: scale(1.25); filter: drop-shadow(0 2px 8px rgba(251,191,36,0.5)); }
.lc-rating-skip {
  background: none; border: none;
  color: var(--lc-text-muted); font-size: 12px; cursor: pointer;
  font-family: var(--lc-font); padding: 4px 8px; border-radius: 6px;
  transition: color 0.15s; text-decoration: underline;
}
.lc-rating-skip:hover { color: var(--lc-text-sub); }

/* ── Closed View ─────────────────────────────────────────────── */
.lc-closed {
  padding: 36px 24px; display: flex; flex-direction: column;
  align-items: center; gap: 14px; text-align: center;
  color: var(--lc-text-sub); font-size: 13px;
  font-family: var(--lc-font); flex: 1; justify-content: center;
}
.lc-closed svg { width: 40px; height: 40px; color: rgba(255,255,255,0.12); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 440px) {
  .lc-panel { width: calc(100vw - 24px); right: 12px; bottom: 92px; }
  .lc-btn { right: 18px; bottom: 20px; }
}