/* Home page only: newsletter tab and chat launcher (moved from inline blocks in index.html). Loaded after css/site.css. */
/* ── Newsletter trigger tab ───────────────────────── */
.nl-trigger {
  position: fixed;
  top: 88px;
  right: 0;
  z-index: 1500;
  cursor: pointer;
}
.nl-tab {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: .6rem .65rem .6rem .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  transition: background .2s, border-color .2s;
  box-shadow: -4px 4px 20px rgba(0,0,0,.4);
}
.nl-tab:hover {
  background: var(--surface2);
  border-color: var(--border3);
}
.nl-tab svg {
  width: 17px;
  height: 17px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nl-tab-label {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text3);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  line-height: 1;
}
.nl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent3);
  animation: sx-pulse 2.5s ease infinite;
}

/* ── Slide-in panel ─────────────────────────────── */
.nl-panel {
  position: fixed;
  top: 90px;
  right: -380px;
  z-index: 1499;
  width: 360px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-top: none;
  border-right: none;
  border-radius: 0 0 0 16px;
  box-shadow: -8px 8px 40px rgba(0,0,0,.6);
  transition: right .35s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.nl-panel.open { right: 0; }
.nl-panel-inner { padding: 1.75rem 1.75rem 1.5rem; }
.nl-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.nl-panel-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.nl-panel-sub {
  font-size: .78rem;
  color: var(--text2);
  margin-top: .3rem;
  line-height: 1.5;
}
.nl-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15,168,176,.07);
  border: 1px solid var(--border);
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  transition: all .15s;
  margin-left: 1rem;
}
.nl-close:hover { background: rgba(15,168,176,.15); color: var(--text); }
.nl-divider { height: 1px; background: var(--border); margin-bottom: 1.25rem; }
.nl-field { margin-bottom: .85rem; }
.nl-label {
  display: block;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: .4rem;
}
.nl-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--sans);
  font-size: .83rem;
  padding: .6rem .85rem;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.nl-input::placeholder { color: var(--text3); }
.nl-input:focus { border-color: var(--accent); }
.nl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: .85rem;
}
.nl-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #111e26;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: none;
  border-radius: 8px;
  padding: .72rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all .2s;
  margin-top: 1rem;
}
.nl-submit:hover { box-shadow: 0 0 18px rgba(15,168,176,.35); }
.nl-submit:disabled { opacity: .5; cursor: not-allowed; }
.nl-submit svg {
  width: 15px;
  height: 15px;
  stroke: #111e26;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nl-consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: .85rem;
}
.nl-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.nl-consent-text { font-size: .7rem; color: var(--text3); line-height: 1.5; }
.nl-success { display: none; text-align: center; padding: 1.5rem 0 .5rem; }
.nl-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15,168,176,.1);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.nl-success-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent3);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nl-success-title { font-family: var(--display); font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.nl-success-sub { font-size: .78rem; color: var(--text2); line-height: 1.5; }
.nl-footer-note { font-size: .6875rem; color: var(--text3); text-align: center; margin-top: 1rem; line-height: 1.5; }

@media(max-width:600px) {
  .nl-panel { width: 100vw; border-radius: 0; right: -100vw; }
  .nl-row { grid-template-columns: 1fr; }
  .nl-trigger { top: 80px; }
}

.nl-phone-wrap {
  display: flex;
  gap: .5rem;
  align-items: stretch;
}
.nl-phone-input {
  flex: 1;
  min-width: 0;
}
.nl-dial-wrap {
  position: relative;
  flex-shrink: 0;
}
.nl-dial-btn {
  height: 100%;
  min-height: 38px;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--sans);
  font-size: .8rem;
  padding: .6rem .6rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
  transition: border-color .2s;
  line-height: 1;
}
.nl-dial-btn:hover { border-color: var(--border3); }
.nl-dial-btn svg { color: var(--text3); flex-shrink: 0; }
#nl-dial-code { font-family: var(--mono); font-size: .75rem; color: var(--accent3); }
.nl-dial-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 3000;
  width: 280px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.nl-dial-dropdown.open { display: flex; }
.nl-dial-search {
  background: var(--surface);
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: .8rem;
  padding: .65rem .85rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.nl-dial-search::placeholder { color: var(--text3); }
.nl-dial-list {
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nl-dial-list::-webkit-scrollbar { width: 4px; }
.nl-dial-list::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
.nl-dial-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .85rem;
  cursor: pointer;
  font-size: .8rem;
  color: var(--text2);
  transition: background .15s;
}
.nl-dial-item:hover { background: var(--surface2); color: var(--text); }
.nl-dial-item.selected { background: rgba(15,168,176,.08); color: var(--accent3); }
.nl-dial-item-flag { font-size: 1rem; flex-shrink: 0; line-height: 1; }
.nl-dial-item-name { flex: 1; }
.nl-dial-item-code { font-family: var(--mono); font-size: .72rem; color: var(--text3); }
.sx-launcher{position:fixed;bottom:2rem;right:2rem;z-index:2000;display:flex;flex-direction:column;align-items:flex-end;gap:.75rem}
/* Icon-only launcher: no disc, no border, no ring. The mark WAS a 34px image
   centred in a 56px #0a1e21 disc, which on a dark page read as a dark circle
   with something faint inside it. The icon now IS the button, at full size.
   72px, not 56: the source is 420px so this was never a resolution problem —
   the coin ring plus the dragon's facial linework simply carry more detail
   than 56 device pixels can resolve. Sharpening changed nothing measurable;
   cropping in was rejected because it squares off the coin (and at 60%
   removes it entirely), and the mark is a dragon head IN A COIN. Size was the
   only lever that worked. */
.sx-bubble{width:72px;height:72px;background:none;border:none;border-radius:0;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .25s;box-shadow:none;padding:0;-webkit-tap-highlight-color:transparent}
.sx-bubble:hover{transform:scale(1.07);box-shadow:none}
.sx-bubble img{width:100%;height:100%;object-fit:contain;border-radius:0;display:block}
.sx-bubble svg{width:26px;height:26px;stroke:var(--accent3);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@keyframes sx-pulse{0%,100%{box-shadow:0 0 0 0 rgba(15,168,176,.4)}50%{box-shadow:0 0 0 10px rgba(15,168,176,0)}}
.sx-nudge{background:var(--surface);border:1px solid var(--border2);border-radius:10px;padding:.6rem 1rem;font-size:.78rem;color:var(--text2);white-space:nowrap;box-shadow:0 4px 20px rgba(0,0,0,.4);cursor:pointer;display:none}
.sx-nudge span{color:var(--accent3)}
.sx-win{position:fixed;bottom:6.5rem;right:2rem;z-index:2000;width:430px;max-width:calc(100vw - 2rem);background:var(--bg2);border:1px solid var(--border2);border-radius:20px;box-shadow:0 24px 60px rgba(0,0,0,.65);display:flex;flex-direction:column;overflow:hidden;transform:translateY(16px) scale(.97);opacity:0;pointer-events:none;transition:all .25s cubic-bezier(.16,1,.3,1);max-height:620px}
.sx-win.open{transform:translateY(0) scale(1);opacity:1;pointer-events:all}
.sx-head{background:linear-gradient(135deg,var(--surface),var(--bg3));border-bottom:1px solid var(--border);padding:1.1rem 1.25rem;display:flex;align-items:center;gap:.85rem;flex-shrink:0}
.sx-av{width:38px;height:38px;border-radius:50%;background:rgba(15,168,176,.12);border:1px solid rgba(15,168,176,.35);display:flex;align-items:center;justify-content:center;font-size:.9rem;flex-shrink:0;position:relative;color:#111e26;font-weight:700;font-family:var(--display)}
.sx-av-dot{position:absolute;bottom:1px;right:1px;width:9px;height:9px;border-radius:50%;background:var(--accent3);border:2px solid var(--bg2);animation:pulse-dot 2s ease infinite}
.sx-head-info{flex:1}
.sx-head-name{font-family:var(--display);font-size:.88rem;font-weight:700}
.sx-head-status{font-family:var(--mono);font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-top:.15rem}
.sx-close{width:28px;height:28px;border-radius:50%;background:rgba(15,168,176,.07);border:1px solid var(--border);color:var(--text3);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.8rem;transition:all .15s}
.sx-close:hover{background:rgba(15,168,176,.15);color:var(--text)}
.sx-msgs{flex:1;overflow-y:auto;padding:1.25rem;display:flex;flex-direction:column;gap:.85rem;scroll-behavior:smooth}
.sx-msgs::-webkit-scrollbar{width:4px}
.sx-msgs::-webkit-scrollbar-thumb{background:var(--border2);border-radius:4px}
.sx-msg{display:flex;gap:.6rem;align-items:flex-end}
.sx-msg.u{flex-direction:row-reverse}
.sx-msg-av{width:26px;height:26px;border-radius:50%;background:rgba(15,168,176,.12);border:1px solid rgba(15,168,176,.35);display:flex;align-items:center;justify-content:center;font-size:.6875rem;flex-shrink:0;color:#111e26;font-weight:700}
.sx-msg-av.u{background:var(--surface2);border:1px solid var(--border2);color:var(--text3)}
.sx-msg-body{max-width:82%;display:flex;flex-direction:column;gap:.25rem}
.sx-msg.u .sx-msg-body{align-items:flex-end}
.sx-bbl{padding:.65rem .9rem;border-radius:14px;font-size:.83rem;line-height:1.6;word-break:break-word}
.sx-bbl.b{background:var(--surface);border:1px solid var(--border);color:var(--text);border-bottom-left-radius:4px}
.sx-bbl.u{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#111e26;font-weight:500;border-bottom-right-radius:4px}
.sx-msg-time{font-family:var(--mono);font-size:.6875rem;color:var(--text3);padding:0 .25rem}
.sx-typing{display:flex;gap:.35rem;padding:.65rem .9rem;background:var(--surface);border:1px solid var(--border);border-radius:14px;border-bottom-left-radius:4px;width:fit-content}
.sx-dot{width:6px;height:6px;border-radius:50%;background:var(--text3);animation:sx-bounce .8s ease infinite}
.sx-dot:nth-child(2){animation-delay:.15s}
.sx-dot:nth-child(3){animation-delay:.3s}
@keyframes sx-bounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-5px);background:var(--accent)}}
.sx-faq{padding:.75rem 1.25rem;border-top:1px solid var(--border);flex-shrink:0}
.sx-faq-lbl{font-family:var(--mono);font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text3);margin-bottom:.6rem}
.sx-chips{display:flex;flex-wrap:wrap;gap:.4rem}
.sx-chip{background:rgba(15,168,176,.06);border:1px solid rgba(15,168,176,.15);color:var(--text2);font-size:.74rem;padding:.3rem .7rem;border-radius:100px;cursor:pointer;transition:all .18s;font-family:var(--sans);white-space:nowrap;line-height:1.3}
.sx-chip:hover{background:rgba(15,168,176,.14);border-color:var(--accent);color:var(--accent3)}
.sx-inp-wrap{padding:.9rem 1.25rem;border-top:1px solid var(--border);display:flex;gap:.6rem;align-items:flex-end;flex-shrink:0;background:var(--bg2)}
.sx-inp{flex:1;background:var(--surface);border:1px solid var(--border2);color:var(--text);font-family:var(--sans);font-size:.83rem;padding:.6rem .9rem;border-radius:10px;outline:none;resize:none;max-height:120px;line-height:1.5;transition:border-color .2s}
.sx-inp::placeholder{color:var(--text3)}
.sx-inp:focus{border-color:var(--accent)}
.sx-send{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--accent2));border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0}
.sx-send:hover{box-shadow:0 0 14px rgba(15,168,176,.4)}
.sx-send:disabled{opacity:.4;cursor:not-allowed}
.sx-support-wrap{padding:.6rem 1.25rem 0;flex-shrink:0}
.sx-support-btn{width:100%;background:transparent;border:1px solid var(--border2);color:var(--text3);font-family:var(--sans);font-size:.75rem;padding:.55rem 1rem;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.5rem;transition:all .2s;letter-spacing:.03em}
.sx-support-btn:hover{border-color:var(--accent);color:var(--accent3);background:rgba(15,168,176,.05)}
.sx-send svg{width:16px;height:16px;stroke:#111e26;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:480px){.sx-win{right:1rem;bottom:5.5rem;width:calc(100vw - 2rem)}.sx-launcher{right:1rem;bottom:1rem}}
/* Footer status row gap fix (matches all pages with inline gap:3rem pattern) */
@media(max-width:600px){div[style*="gap:3rem"][style*="flex-wrap:wrap"]{gap:1.25rem!important}}
