:root {
  --nc-navy: #0b2238;
  --nc-blue: #6faee3;
  --nc-blue-hover: #5f9ed4;
  --nc-text: #183047;
  --nc-muted: #6f8293;
  --nc-border: #dbe6ef;
  --nc-bg: #ffffff;
  --nc-soft: #f6f9fc;
}

.nc-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99990;

  display: flex;
  align-items: center;
  gap: 10px;

  min-height: 56px;
  padding: 0 20px;

  border: 1px solid #d8e5ef;
  border-radius: 999px;

  background: #ffffff;
  box-shadow: 0 14px 35px rgba(23, 48, 71, .16);

  color: var(--nc-navy);
  font: 800 14px/1 "Manrope", sans-serif;

  cursor: pointer;
  transition: .2s ease;
}

.nc-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(23, 48, 71, .2);
}

.nc-launcher-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nc-blue);
  box-shadow: 0 0 0 5px rgba(111,174,227,.14);
}

.nc-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 99999;

  width: min(390px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 120px));

  display: none;
  flex-direction: column;
  overflow: hidden;

  border: 1px solid var(--nc-border);
  border-radius: 22px;

  background: var(--nc-bg);
  box-shadow: 0 28px 80px rgba(23,48,71,.22);

  color: var(--nc-text);
  font-family: "Manrope", sans-serif;
}

.nc-panel.nc-open {
  display: flex;
}

.nc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 18px;

  border-bottom: 1px solid var(--nc-border);
  background: linear-gradient(135deg, #f7fbff, #ffffff);
}

.nc-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.nc-logo-mark {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 1px solid #d9e8f3;
  border-radius: 12px;

  background: #eef6fc;
}

.nc-logo-mark svg {
  width: 20px;
  height: 20px;
  stroke: #4f93c9;
}

.nc-brand-eyebrow {
  margin: 0 0 4px;
  color: #4f93c9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nc-brand-title {
  margin: 0;
  color: var(--nc-navy);
  font-size: 16px;
  font-weight: 900;
}

.nc-close {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  padding: 0;
  border: 1px solid #e2ebf2;
  border-radius: 10px;

  background: #f7f9fb;
  color: #728596;

  cursor: pointer;
}

.nc-close:hover {
  background: #edf3f7;
  color: var(--nc-navy);
}

.nc-body {
  flex: 1;
  min-height: 0;

  display: flex;
  flex-direction: column;
}

.nc-start {
  overflow-y: auto;
  padding: 22px 18px 20px;
  background: #fff;
}

.nc-intro-title {
  margin: 0;

  color: var(--nc-navy);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.nc-intro-copy {
  margin: 8px 0 20px;

  color: var(--nc-muted);
  font-size: 13px;
  line-height: 1.65;
}

.nc-field {
  margin-bottom: 13px;
}

.nc-field label {
  display: block;
  margin: 0 0 7px;

  color: #40586c;
  font-size: 11px;
  font-weight: 800;
}

.nc-field input,
.nc-field select,
.nc-field textarea {
  width: 100%;
  box-sizing: border-box;

  border: 1px solid var(--nc-border);
  border-radius: 12px;

  background: #fbfdff;
  color: var(--nc-text);

  font: 600 13px/1.4 "Manrope", sans-serif;

  outline: none;
}

.nc-field input,
.nc-field select {
  height: 44px;
  padding: 0 13px;
}

.nc-field textarea {
  min-height: 92px;
  padding: 12px 13px;
  resize: vertical;
}

.nc-field input::placeholder,
.nc-field textarea::placeholder {
  color: #9aabb9;
}

.nc-field input:focus,
.nc-field select:focus,
.nc-field textarea:focus {
  border-color: #9ec7e7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(111,174,227,.12);
}

.nc-field select option {
  background: #fff;
  color: var(--nc-text);
}

.nc-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.nc-primary {
  width: 100%;
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 12px;

  background: var(--nc-blue);
  color: #062038;

  font: 900 13px/1 "Manrope", sans-serif;

  cursor: pointer;
}

.nc-primary:hover {
  background: var(--nc-blue-hover);
}

.nc-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.nc-error {
  display: none;

  margin-bottom: 14px;
  padding: 10px 12px;

  border: 1px solid #f5caca;
  border-radius: 11px;

  background: #fff4f4;
  color: #a33f3f;

  font-size: 12px;
  font-weight: 700;
}

.nc-error.nc-show {
  display: block;
}

.nc-chat {
  flex: 1;
  min-height: 0;

  display: none;
  flex-direction: column;
}

.nc-chat.nc-show {
  display: flex;
}

.nc-chat-status {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 15px;

  border-bottom: 1px solid var(--nc-border);
  background: #f8fbfd;
}

.nc-session-id {
  color: #4f93c9;
  font-family: monospace;
  font-size: 11px;
  font-weight: 900;
}

.nc-status {
  padding: 5px 8px;

  border: 1px solid #cde1f0;
  border-radius: 999px;

  background: #eef7fd;
  color: #4f7fa4;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nc-messages {
  flex: 1;
  min-height: 0;

  overflow-y: auto;

  display: flex;
  flex-direction: column;
  gap: 13px;

  padding: 17px 15px;

  background: #ffffff;
}

.nc-message {
  display: flex;
}

.nc-message.nc-visitor {
  justify-content: flex-end;
}

.nc-message.nc-staff {
  justify-content: flex-start;
}

.nc-message-bubble {
  max-width: 82%;
  padding: 10px 12px;

  border-radius: 15px;

  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;

  white-space: pre-wrap;
  word-break: break-word;
}

.nc-visitor .nc-message-bubble {
  border-radius: 15px 15px 4px 15px;
  background: var(--nc-blue);
  color: #062038;
}

.nc-staff .nc-message-bubble {
  border: 1px solid var(--nc-border);
  border-radius: 15px 15px 15px 4px;

  background: #f4f8fb;
  color: var(--nc-text);
}

.nc-message-meta {
  margin-top: 4px;

  color: #8a9aa8;
  font-size: 9px;
  font-weight: 700;
}

.nc-visitor .nc-message-meta {
  text-align: right;
}

.nc-waiting {
  padding: 9px 12px;

  border: 1px solid #dbe9f3;
  border-radius: 11px;

  background: #f6fbff;
  color: #6f8293;

  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.nc-ended {
  padding: 13px 15px;

  border-top: 1px solid var(--nc-border);

  background: #f8fbfd;
  color: #728596;

  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.nc-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;

  padding: 12px;

  border-top: 1px solid var(--nc-border);
  background: #f8fbfd;
}

.nc-composer textarea {
  flex: 1;

  min-height: 42px;
  max-height: 110px;

  box-sizing: border-box;
  resize: none;

  padding: 11px 12px;

  border: 1px solid var(--nc-border);
  border-radius: 13px;

  background: #fff;
  color: var(--nc-text);

  font: 600 12px/1.45 "Manrope", sans-serif;

  outline: none;
}

.nc-composer textarea:focus {
  border-color: #9ec7e7;
  box-shadow: 0 0 0 3px rgba(111,174,227,.12);
}

.nc-send {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 13px;

  background: var(--nc-blue);
  color: #062038;

  cursor: pointer;
}

.nc-send:disabled {
  opacity: .45;
}

.nc-send svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 600px) {
  .nc-launcher {
    right: 16px;
    bottom: 16px;
  }

  .nc-panel {
    right: 16px;
    bottom: 84px;

    width: calc(100vw - 32px);
    height: min(650px, calc(100vh - 105px));

    border-radius: 18px;
  }
}

/* ============================================================
   Nexus Connect message bubble sizing fix
   ============================================================ */

.nc-message > div {
  max-width: 82%;
  min-width: 0;
}

.nc-message.nc-visitor > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.nc-message.nc-staff > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nc-message-bubble {
  width: fit-content;
  max-width: 100%;

  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
}

.nc-visitor .nc-message-bubble,
.nc-staff .nc-message-bubble {
  min-width: 0;
}

.nc-message-meta {
  white-space: nowrap;
}

/* ============================================================
   NEXUS CONNECT — LIGHT TECH UI
   ============================================================ */

.nc-panel {
  border: 1px solid rgba(91, 158, 210, .35);
  border-radius: 24px;

  background:
    linear-gradient(rgba(255,255,255,.96), rgba(250,253,255,.98));

  box-shadow:
    0 30px 80px rgba(26, 63, 92, .22),
    0 0 0 1px rgba(255,255,255,.8) inset,
    0 0 40px rgba(111,174,227,.08);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* subtle network grid */
.nc-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  pointer-events: none;

  background-image:
    linear-gradient(rgba(87,151,198,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87,151,198,.04) 1px, transparent 1px);

  background-size: 24px 24px;

  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.55),
    transparent 55%
  );
}

.nc-header,
.nc-body {
  position: relative;
  z-index: 1;
}

/* ============================================================
   HEADER
   ============================================================ */

.nc-header {
  position: relative;

  padding: 18px 19px;

  border-bottom: 1px solid rgba(103,158,199,.18);

  background:
    radial-gradient(
      circle at top left,
      rgba(111,174,227,.18),
      transparent 46%
    ),
    linear-gradient(135deg, #f8fcff, #ffffff);
}

/* electric accent line */
.nc-header::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #6faee3,
      rgba(111,174,227,.25),
      transparent
    );
}

.nc-logo-mark {
  position: relative;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(85,155,208,.3);
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.95),
      rgba(222,240,253,.9)
    );

  box-shadow:
    0 7px 18px rgba(52,123,177,.15),
    inset 0 0 0 1px rgba(255,255,255,.75);
}

.nc-logo-mark::after {
  content: "";
  position: absolute;
  inset: -4px;

  border: 1px solid rgba(111,174,227,.11);
  border-radius: 17px;
}

.nc-logo-mark svg {
  stroke: #438dc4;
}

.nc-brand-eyebrow {
  font-family: "Space Grotesk", "Manrope", sans-serif;

  color: #4d94c9;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: .2em;
}

.nc-brand-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;

  font-size: 17px;
  font-weight: 700;

  letter-spacing: -.025em;

  color: #0a2740;
}

.nc-close {
  border: 1px solid rgba(99,145,181,.16);

  background: rgba(245,250,253,.8);

  transition:
    transform .18s ease,
    background .18s ease;
}

.nc-close:hover {
  transform: rotate(4deg);
  background: #edf7fd;
}

/* ============================================================
   INTRO / FORM
   ============================================================ */

.nc-start {
  background: transparent;
}

.nc-intro-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;

  font-size: 24px;
  font-weight: 700;

  color: #092740;
}

.nc-intro-copy {
  color: #657f93;
}

.nc-field label {
  color: #49677d;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .045em;
  text-transform: uppercase;
}

.nc-field input,
.nc-field select,
.nc-field textarea {
  border: 1px solid #d8e7f1;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.96),
      rgba(247,251,254,.94)
    );

  box-shadow:
    inset 0 1px 2px rgba(25,61,88,.025);

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.nc-field input:focus,
.nc-field select:focus,
.nc-field textarea:focus {
  border-color: #80b9e2;

  background: #ffffff;

  box-shadow:
    0 0 0 3px rgba(111,174,227,.11),
    0 8px 24px rgba(57,124,174,.06);
}

/* ============================================================
   MAIN BUTTON
   ============================================================ */

.nc-primary {
  position: relative;
  overflow: hidden;

  min-height: 48px;

  border: 1px solid rgba(49,128,186,.18);

  background:
    linear-gradient(
      135deg,
      #78b8e7,
      #5ca2d6
    );

  box-shadow:
    0 10px 24px rgba(72,150,207,.22),
    inset 0 1px 0 rgba(255,255,255,.5);

  color: #07243a;

  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;

  letter-spacing: .015em;
}

.nc-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;

  width: 40%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.38),
      transparent
    );

  transform: skewX(-18deg);
  transition: left .45s ease;
}

.nc-primary:hover::after {
  left: 120%;
}

.nc-primary:hover {
  background:
    linear-gradient(
      135deg,
      #87c4ed,
      #68addf
    );
}

/* ============================================================
   CHAT STATUS BAR
   ============================================================ */

.nc-chat-status {
  padding: 11px 15px;

  background:
    rgba(247,251,254,.92);

  border-bottom: 1px solid rgba(114,164,201,.18);
}

.nc-session-id {
  font-family: "Space Grotesk", monospace;

  color: #397fab;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: .08em;
}

.nc-status {
  position: relative;

  padding-left: 18px;

  border: 1px solid rgba(68,154,213,.22);

  background:
    linear-gradient(
      180deg,
      #f2faff,
      #eaf6fd
    );

  color: #397ea9;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.65);
}

.nc-status::before {
  content: "";
  position: absolute;

  left: 7px;
  top: 50%;

  width: 6px;
  height: 6px;

  transform: translateY(-50%);

  border-radius: 50%;

  background: #52a9df;

  box-shadow:
    0 0 0 3px rgba(82,169,223,.12),
    0 0 9px rgba(82,169,223,.65);

  animation: nc-status-pulse 1.9s ease-in-out infinite;
}

@keyframes nc-status-pulse {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  50% {
    opacity: .65;
    transform: translateY(-50%) scale(.82);
  }
}

/* ============================================================
   MESSAGE AREA
   ============================================================ */

.nc-messages {
  position: relative;

  background:
    radial-gradient(
      circle at top right,
      rgba(111,174,227,.08),
      transparent 35%
    ),
    rgba(255,255,255,.78);
}

.nc-message-bubble {
  box-shadow:
    0 5px 16px rgba(35,79,111,.06);

  font-size: 13px;
}

.nc-visitor .nc-message-bubble {
  border: 1px solid rgba(63,142,199,.15);

  background:
    linear-gradient(
      135deg,
      #76b5e4,
      #67a9db
    );

  color: #06243c;

  box-shadow:
    0 7px 18px rgba(68,145,200,.15);
}

.nc-staff .nc-message-bubble {
  border: 1px solid #dbe8f1;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f4f9fc
    );

  color: #18384f;

  box-shadow:
    0 5px 14px rgba(31,72,101,.07);
}

.nc-message-meta {
  color: #8497a7;
}

/* ============================================================
   WAITING CARD
   ============================================================ */

.nc-waiting {
  position: relative;

  border: 1px solid rgba(89,158,208,.18);

  background:
    linear-gradient(
      135deg,
      rgba(238,248,255,.95),
      rgba(250,253,255,.95)
    );

  color: #57788e;

  box-shadow:
    inset 3px 0 0 #6faee3;
}

/* ============================================================
   COMPOSER
   ============================================================ */

.nc-composer {
  border-top: 1px solid rgba(104,157,197,.16);

  background:
    linear-gradient(
      180deg,
      rgba(249,252,254,.96),
      rgba(244,249,252,.98)
    );
}

.nc-composer textarea {
  border: 1px solid #d5e4ef;

  background: rgba(255,255,255,.95);

  box-shadow:
    0 4px 14px rgba(39,82,112,.04);
}

.nc-send {
  border: 1px solid rgba(67,145,202,.15);

  background:
    linear-gradient(
      135deg,
      #78b7e4,
      #5da3d7
    );

  box-shadow:
    0 7px 18px rgba(67,143,198,.22);

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.nc-send:hover {
  transform: translateY(-1px);

  box-shadow:
    0 9px 22px rgba(67,143,198,.28);
}

/* ============================================================
   FLOATING LAUNCHER
   ============================================================ */

.nc-launcher {
  position: fixed;

  border: 1px solid rgba(79,149,200,.28);

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.98),
      rgba(237,248,255,.98)
    );

  box-shadow:
    0 16px 40px rgba(37,84,119,.18),
    inset 0 0 0 1px rgba(255,255,255,.8);

  color: #123a56;

  font-family: "Space Grotesk", "Manrope", sans-serif;

  letter-spacing: -.01em;
}

.nc-launcher::before {
  content: "";
  position: absolute;
  inset: -1px;

  border-radius: inherit;

  padding: 1px;

  background:
    linear-gradient(
      110deg,
      transparent 15%,
      rgba(111,174,227,.7),
      transparent 60%
    );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

.nc-launcher-dot {
  position: relative;

  background: #59a9df;

  box-shadow:
    0 0 0 4px rgba(89,169,223,.13),
    0 0 14px rgba(89,169,223,.5);
}

.nc-launcher-dot::after {
  content: "";
  position: absolute;
  inset: -6px;

  border: 1px solid rgba(89,169,223,.18);
  border-radius: 50%;

  animation: nc-launch-pulse 2.1s ease-out infinite;
}

@keyframes nc-launch-pulse {
  0% {
    transform: scale(.65);
    opacity: .8;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.nc-launcher:hover {
  transform: translateY(-3px);

  box-shadow:
    0 20px 46px rgba(37,84,119,.23),
    0 0 22px rgba(111,174,227,.1);
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {
  .nc-panel {
    border-radius: 20px;
  }

  .nc-launcher {
    min-height: 52px;
  }
}


/* Nexus Connect outage advisory */

.nc-outage-notice {
  display: flex;
  gap: 12px;

  margin: -2px 0 16px;
  padding: 14px;

  border: 1px solid rgba(222, 153, 49, .28);
  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 248, 230, .96),
      rgba(255, 252, 244, .98)
    );

  box-shadow:
    inset 3px 0 0 #e6a83d,
    0 6px 18px rgba(128, 89, 28, .06);
}

.nc-outage-notice[hidden] {
  display: none !important;
}

.nc-outage-icon {
  width: 28px;
  height: 28px;

  flex: 0 0 28px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #f2b34c;
  color: #55370a;

  font-size: 14px;
  font-weight: 900;
}

.nc-outage-content {
  min-width: 0;

  color: #5d4a2c;

  font-size: 11px;
  line-height: 1.55;
}

.nc-outage-content > strong {
  display: block;

  margin-bottom: 3px;

  color: #4b3716;

  font-size: 12px;
}

.nc-outage-content p {
  margin: 0;
}

.nc-outage-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 9px;
  min-height: 32px;
  padding: 0 12px;

  border: 1px solid rgba(190, 124, 25, .24);
  border-radius: 9px;

  background: #fff;
  color: #7a4b08;

  font-size: 10px;
  font-weight: 900;

  text-decoration: none;
}

.nc-outage-call:hover {
  background: #fff9ec;
}

