﻿.nc-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 180;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(200, 162, 74, .85);
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-2);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .24);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s, opacity .25s;
}
.nc-launcher svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nc-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .3);
}
.nc-launcher:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}
.nc-launcher .nc-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: #79c895;
}
.nc-launcher .nc-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: none;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--paper);
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-size: 9px;
  font-weight: 600;
}
.nc-launcher.has-news .nc-badge { display: grid; }

.nc-greeting {
  position: fixed;
  right: 22px;
  bottom: 154px;
  z-index: 179;
  width: 300px;
  padding: 14px 34px 14px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(8, 26, 47, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .35s, transform .35s, visibility .35s;
}
.nc-greeting.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nc-greeting-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nc-greeting strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
}
.nc-greeting p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}
.nc-greeting .nc-bubble-close {
  position: absolute;
  top: 5px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.nc-greeting .nc-bubble-close:hover { color: var(--navy); }

.nc-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 181;
  display: flex;
  flex-direction: column;
  width: 382px;
  height: min(620px, calc(100vh - 126px));
  overflow: hidden;
  border: 1px solid rgba(200, 162, 74, .35);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 26px 70px rgba(3, 13, 24, .32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.985);
  transform-origin: bottom right;
  transition: opacity .28s, transform .28s, visibility .28s;
}
.nc-panel.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nc-head {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  padding: 13px 13px 12px;
  border-bottom: 1px solid rgba(200, 162, 74, .48);
  background: var(--navy);
}
.nc-avatar {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  padding: 3px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(230, 202, 138, .65);
  border-radius: 50%;
  background: #fff;
}
.nc-avatar img { width: 100%; height: 100%; object-fit: contain; }
.nc-head-copy { min-width: 0; flex: 1; }
.nc-head-copy h3 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.05;
}
.nc-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: rgba(255, 255, 255, .55);
  font-size: .55rem;
  letter-spacing: .07em;
}
.nc-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #79c895;
  box-shadow: 0 0 0 3px rgba(121, 200, 149, .12);
}
.nc-controls { display: flex; align-items: center; gap: 3px; flex: none; }
.nc-icon-btn {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, .66);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.nc-icon-btn:hover {
  border-color: rgba(230, 202, 138, .6);
  background: rgba(255, 255, 255, .06);
  color: var(--gold-2);
}
.nc-icon-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nc-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(200, 162, 74, .08), transparent 36%),
    var(--paper);
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 26, 47, .18) transparent;
}
.nc-body::-webkit-scrollbar { width: 5px; }
.nc-body::-webkit-scrollbar-thumb { background: rgba(8, 26, 47, .16); border-radius: 5px; }
.nc-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 11px;
}
.nc-row.user { justify-content: flex-end; }
.nc-bubble {
  max-width: 87%;
  padding: 10px 13px;
  border: 1px solid rgba(8, 26, 47, .08);
  border-radius: 2px 12px 12px 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(8, 26, 47, .04);
  font-size: .8rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.nc-row.user .nc-bubble {
  border-color: var(--gold);
  border-radius: 12px 2px 12px 12px;
  background: var(--gold);
  color: var(--navy);
  box-shadow: none;
}
.nc-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 13px 5px;
  max-width: 94%;
}
.nc-quick button {
  padding: 6px 9px;
  border: 1px solid rgba(200, 162, 74, .5);
  border-radius: 20px;
  background: transparent;
  color: var(--gold-3);
  font-family: var(--sans);
  font-size: .59rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.nc-quick button:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.nc-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  margin-bottom: 11px;
  padding: 9px 13px;
  border: 1px solid rgba(8, 26, 47, .08);
  border-radius: 2px 12px 12px 12px;
  background: #fff;
}
.nc-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b9a88c;
  animation: ncBounce 1s infinite;
}
.nc-typing span:nth-child(2) { animation-delay: .12s; }
.nc-typing span:nth-child(3) { animation-delay: .24s; }
@keyframes ncBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .6; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.nc-composer {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  flex: none;
  padding: 10px 10px 7px;
  border-top: 1px solid rgba(8, 26, 47, .08);
  background: #fff;
}
.nc-composer input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 9px 11px;
  border: 1px solid rgba(8, 26, 47, .16);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .78rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.nc-composer input:focus {
  border-color: var(--gold);
  background: #fff;
}
.nc-send {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  flex: none;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.nc-send:hover { background: var(--gold-2); border-color: var(--gold-2); }
.nc-send svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nc-send:disabled { opacity: .45; cursor: default; }
.nc-footnote {
  flex: none;
  padding: 0 10px 8px;
  background: #fff;
  color: rgba(8, 26, 47, .38);
  font-size: .5rem;
  line-height: 1.4;
  text-align: center;
}
.nc-phone {
  margin: 2px 0 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
}
.nc-phone h4 {
  margin: 0 0 4px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
}
.nc-phone > p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.55;
}
.nc-phone-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 6px;
  margin-bottom: 7px;
}
.nc-phone-field label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .51rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nc-phone-field select,
.nc-phone-field input {
  width: 100%;
  height: 35px;
  padding: 7px 8px;
  border: 1px solid rgba(8, 26, 47, .16);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .76rem;
  outline: none;
}
.nc-phone-field select:focus,
.nc-phone-field input:focus { border-color: var(--gold); background: #fff; }
.nc-phone-field.invalid select,
.nc-phone-field.invalid input { border-color: #c66b6b; }
.nc-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .59rem;
  line-height: 1.45;
  cursor: pointer;
}
.nc-consent input {
  width: 13px;
  height: 13px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--gold);
}
.nc-form-error {
  min-height: 14px;
  margin: 6px 0 1px;
  color: #b65757;
  font-size: .61rem;
  line-height: 1.4;
}
.nc-phone-actions { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.nc-phone-submit {
  flex: 1;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.nc-phone-submit:hover { background: var(--navy-2); }
.nc-phone-submit:disabled { opacity: .5; cursor: default; }
.nc-phone-cancel {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .57rem;
  text-decoration: underline;
  cursor: pointer;
}
.nc-phone-note {
  margin: 8px 0 0;
  color: rgba(8, 26, 47, .38);
  font-size: .5rem;
  line-height: 1.45;
}
.nc-inline-link {
  color: var(--gold-3);
  text-decoration: underline;
}
body.nc-chat-open .nc-launcher,
body.nc-chat-open .nc-greeting,
body.nc-chat-open .whatsapp-float,
body.nc-chat-open .to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.whatsapp-float { right: 22px; bottom: 90px; }
.to-top { right: 90px; bottom: 22px; }

@media (max-width: 780px) {
  .nc-launcher {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  .nc-launcher svg { width: 25px; height: 25px; }
  .nc-greeting {
    right: 16px;
    bottom: 148px;
    width: min(300px, calc(100vw - 32px));
  }
  .nc-panel {
    right: 10px;
    bottom: 84px;
    left: 10px;
    width: auto;
    height: min(640px, calc(100vh - 100px));
  }
  .nc-composer { padding-bottom: max(7px, env(safe-area-inset-bottom)); }
  .whatsapp-float { right: 16px; bottom: 84px; width: 48px; height: 48px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .nc-launcher,
  .nc-greeting,
  .nc-panel,
  .nc-bubble,
  .nc-quick button { transition: none; }
  .nc-typing span { animation: none; }
}
