/* Standalone support chat styles — dark theme, glassmorphism, matches Infoxchange palette */
.sc-launcher {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5c518 0%, #e6a817 100%);
  color: #0b1220;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sc-launcher:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245, 197, 24, 0.5); }
.sc-launcher > span { pointer-events: none; }

.sc-panel {
  position: fixed;
  bottom: 92px;
  right: 22px;
  z-index: 999;
  width: min(360px, calc(100vw - 44px));
  height: min(520px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(16, 24, 40, 0.94);
  border: 1px solid rgba(245, 197, 24, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-family: inherit;
}
.sc-panel.sc-open { opacity: 1; transform: translateY(0) scale(1); }

.sc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45), rgba(190, 24, 93, 0.25));
}
.sc-head-title { display: flex; flex-direction: column; gap: 3px; }
.sc-head-title > span:first-child { color: #f8fafc; font-weight: 700; font-size: 16px; }
.sc-head-sub { color: #cbd5e1; font-size: 12px; }
.sc-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.sc-close:hover { background: rgba(255, 255, 255, 0.22); }

.sc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.sc-empty { color: #cbd5e1; font-size: 13px; line-height: 1.55; text-align: center; padding: 28px 12px; }
.sc-empty b { color: #f5c518; }

.sc-msg { display: flex; }
.sc-me { justify-content: flex-end; }
.sc-them { justify-content: flex-start; }
.sc-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}
.sc-me .sc-bubble {
  background: linear-gradient(135deg, #059669, #047857);
  color: #f0fdf4;
  border-bottom-right-radius: 4px;
}
.sc-them .sc-bubble {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 4px;
}
.sc-body { white-space: pre-wrap; }
.sc-attach {
  display: block;
  max-width: 200px;
  max-height: 180px;
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: zoom-in;
}
.sc-meta { font-size: 11px; color: #64748b; margin-top: 4px; padding: 0 4px; }
.sc-me .sc-meta { text-align: right; }

.sc-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sc-text {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease;
}
.sc-text:focus { border-color: rgba(245, 197, 24, 0.6); }
.sc-text::placeholder { color: #94a3b8; }
.sc-btn-attach {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.sc-btn-attach:hover { background: rgba(255, 255, 255, 0.18); }
.sc-btn-send {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sc-btn-send:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5); }

/* Support-page inline bar (injected by JS) */
.sc-support-bar {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sc-support-bar > p { margin: 0; color: #e2e8f0; font-size: 13.5px; }
.sc-support-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease;
}
.sc-support-btn:hover { transform: translateY(-1px); }

/* Toast */
.sc-toast {
  position: fixed;
  bottom: 150px;
  right: 50%;
  transform: translateX(50%) translateY(14px);
  z-index: 1000;
  max-width: 88vw;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sc-toast.sc-visible { opacity: 1; transform: translateX(50%) translateY(0); }

/* Admin panel styles (admin.html) */
.sc-admin-list { display: flex; flex-direction: column; gap: 10px; }
.sc-admin-ticket {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.15s ease;
}
.sc-admin-ticket:hover { background: rgba(255, 255, 255, 0.1); }
.sc-admin-who { font-weight: 700; color: #f5c518; }
.sc-admin-tick { color: #cbd5e1; font-size: 13px; line-height: 1.5; }
.sc-admin-actions { display: flex; gap: 8px; flex-shrink: 0; }
.sc-admin-btn {
  padding: 7px 12px;
  border: none;
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
  color: #fff;
}
.sc-admin-btn.primary { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.sc-admin-btn.danger { background: linear-gradient(135deg, #dc2626, #9f1239); }
.sc-admin-empty { color: #cbd5e1; font-size: 13.5px; padding: 20px 4px; text-align: center; }
.sc-admin-msgs { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.sc-admin-msg-row { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.sc-admin-reply { display: flex; gap: 8px; margin-top: 14px; }
.sc-admin-reply input {
  flex: 1;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  font-size: 13.5px;
  outline: none;
}
