/* Site footer and the support button (assets/footer.js). Used by every page,
   including index.html, which has its own inline styles: so no shared variables
   are assumed here beyond fallbacks. */
.site-footer {
  --lf-bg: #0B1222;
  --lf-border: var(--border, #334155);
  --lf-text: var(--light, #F8FAFC);
  --lf-muted: var(--muted, #94A3B8);
  --lf-link: #CBD5E1;
  background: var(--lf-bg);
  border-top: 1px solid var(--lf-border);
  /* Bottom padding keeps the last line clear of the round support button. */
  padding: 56px 0 96px;
  margin-top: auto;
  font-size: 14px;
  color: var(--lf-muted);
}
.site-footer .lf-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.site-footer .lf-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.site-footer .lf-col h3 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lf-text); margin: 0 0 14px;
}
.site-footer .lf-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer .lf-col li { margin: 0 0 10px; }
.site-footer .lf-col a,
.site-footer .lf-col button {
  color: var(--lf-link); font: inherit; text-decoration: underline; text-decoration-color: rgba(203, 213, 225, 0.35);
  text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.site-footer .lf-col a:hover,
.site-footer .lf-col button:hover { color: #fff; text-decoration-color: currentColor; }
.site-footer .lf-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--lf-border); font-size: 13px;
}
.site-footer .lf-brand { display: flex; align-items: center; gap: 10px; }
.site-footer .lf-brand img { width: 22px; height: 22px; }
.site-footer .lf-pay { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-footer .lf-pay li {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 30px; min-width: 52px; padding: 0 8px; border-radius: 4px; background: #fff;
  font: 800 11px/1 Arial, Helvetica, sans-serif; color: #1F2937; white-space: nowrap;
}
.site-footer .lf-pay .visa { color: #1A1F71; font-style: italic; font-size: 13px; letter-spacing: 0.02em; }
.site-footer .lf-pay .mc i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.site-footer .lf-pay .mc i:first-child { background: #EB001B; }
.site-footer .lf-pay .mc i:last-child { background: #F79E1B; margin-left: -7px; mix-blend-mode: multiply; }
.site-footer .lf-pay .amex { background: #2E77BC; color: #fff; font-size: 10px; letter-spacing: 0.04em; }
.site-footer .lf-pay .coin b {
  display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px;
  border-radius: 50%; color: #fff; font-size: 9px;
}
.site-footer .lf-pay .btc b { background: #F7931A; }
.site-footer .lf-pay .eth b { background: #627EEA; }
.site-footer .lf-pay .usdt b { background: #26A17B; }
.site-footer .lf-pay .usdc b { background: #2775CA; }
.site-footer .lf-note { color: var(--lf-muted); }

@media (max-width: 900px) {
  .site-footer .lf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .site-footer { padding-top: 40px; }
  .site-footer .lf-inner { padding: 0 16px; }
  .site-footer .lf-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Support chat (assets/support-chat.js): button at the bottom right and its panel ---- */
.lx-support { position: fixed; right: 20px; bottom: 20px; z-index: 1000; font-family: inherit; }
.lx-support [hidden] { display: none !important; }
.lx-support-btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease;
}
.lx-support-btn:hover { transform: translateY(-2px); }
.lx-support-btn:focus-visible { outline: 3px solid #A5B4FC; outline-offset: 3px; }
.lx-support-btn svg { width: 28px; height: 28px; }
.lx-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #EF4444; color: #fff; font: 700 11px/20px Arial, sans-serif; text-align: center; box-shadow: 0 0 0 2px #0F172A;
}
.lx-support-panel {
  position: absolute; right: 0; bottom: 70px; width: 340px; max-width: calc(100vw - 32px);
  max-height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: #1E293B; color: #F8FAFC; border: 1px solid #334155; border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5); overflow: hidden; font-size: 14px; line-height: 1.5;
}
.lx-support-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; flex: none;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.35), rgba(6, 182, 212, 0.2));
}
.lx-support-head .lx-ico {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.lx-support-head .lx-ico svg { width: 20px; height: 20px; }
.lx-head-text { flex: 1; min-width: 0; }
.lx-support-head h2 { font-size: 15px; font-weight: 700; margin: 0; line-height: 1.3; color: #fff; }
.lx-sub { font-size: 12px; color: #CBD5E1; }
.lx-support-close {
  width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: #CBD5E1;
  cursor: pointer; font-size: 20px; line-height: 1; flex: none;
}
.lx-support-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.lx-chat-list {
  flex: 1 1 auto; min-height: 240px; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px;
  background: #172133;
}
.lx-msg { max-width: 82%; padding: 8px 11px 5px; border-radius: 14px; }
.lx-me { align-self: flex-end; background: #4F46E5; color: #fff; border-bottom-right-radius: 4px; }
.lx-them { align-self: flex-start; background: #273549; color: #F8FAFC; border-bottom-left-radius: 4px; }
.lx-who { font-size: 11px; font-weight: 700; color: #67E8F9; margin-bottom: 2px; }
.lx-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.lx-time { font-size: 10px; opacity: 0.65; text-align: right; margin-top: 2px; }
.lx-sys { align-self: center; max-width: 92%; text-align: center; font-size: 12px; color: #94A3B8; padding: 2px 6px; }

.lx-home { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 6px; overflow-y: auto; }
.lx-chat-start { display: flex; flex-direction: column; gap: 8px; }
.lx-resume { display: flex; flex-direction: column; gap: 6px; }
.lx-linkbtn { background: none; border: 0; padding: 4px; color: #67E8F9; font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lx-linkbtn:hover { color: #fff; }
.lx-back {
  width: 32px; height: 32px; margin-right: -4px; border-radius: 8px; border: 0; background: transparent; color: #E2E8F0;
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none;
}
.lx-back:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.lx-back svg { width: 20px; height: 20px; }
.lx-chat-intro { margin: 0 0 4px; color: #CBD5E1; }
.lx-in {
  width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 10px; border: 1px solid #334155;
  background: #0F172A; color: #F8FAFC; font: inherit; font-size: 14px; resize: none;
}
.lx-in:focus { outline: none; border-color: #06B6D4; box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25); }
.lx-in::placeholder { color: #64748B; }
.lx-hint { font-size: 12px; color: #94A3B8; margin-top: -2px; }
.lx-primary {
  margin-top: 4px; padding: 11px 14px; border-radius: 10px; border: 0; background: #4F46E5; color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.lx-primary:hover { background: #4338CA; }
.lx-primary:disabled, .lx-send:disabled { opacity: 0.6; cursor: default; }

.lx-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #334155; flex: none; }
.lx-chat-form .lx-in { min-height: 40px; max-height: 110px; }
.lx-send {
  flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: #4F46E5; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lx-send:hover { background: #4338CA; }
.lx-send svg { width: 18px; height: 18px; }
.lx-chat-err { padding: 0 14px 8px; font-size: 12px; color: #FCA5A5; flex: none; }
.lx-chat-foot { padding: 8px 14px 12px; font-size: 12px; color: #94A3B8; flex: none; display: flex; flex-direction: column; gap: 2px; }
.lx-or { display: flex; align-items: center; gap: 10px; color: #64748B; font-size: 12px; margin: 4px 0; }
.lx-or::before, .lx-or::after { content: ''; flex: 1; height: 1px; background: #334155; }
.lx-tg-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px;
  background: #229ED9; color: #fff !important; font-weight: 600; text-decoration: none !important;
}
.lx-tg-btn:hover { background: #1C8BC0; }
.lx-tg-btn svg { width: 18px; height: 18px; }
.lx-chat-foot a { color: #67E8F9; overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .lx-support { right: 16px; bottom: 16px; }
  .lx-support-btn { width: 52px; height: 52px; }
  .lx-support-panel { bottom: 64px; max-height: calc(100vh - 96px); }
}
@media print { .lx-support { display: none; } }
