/* Neo Card landing contact chat (Loyalty-style) */
.nc-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.92rem;
}

.nc-chat__fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--forest, #1e4a7a), var(--forest-dark, #0b1f36));
  color: #e8eef6;
  font-weight: 700;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--forest-dark, #0b1f36) 35%, transparent);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nc-chat__fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--forest-dark, #0b1f36) 42%, transparent);
}

.nc-chat__panel {
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(560px, calc(100vh - 2rem));
  display: none;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid color-mix(in srgb, var(--forest, #1e4a7a) 15%, transparent);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--forest-dark, #0b1f36) 28%, transparent);
}

.nc-chat--open .nc-chat__fab { display: none; }
.nc-chat--open .nc-chat__panel { display: flex; }

.nc-chat__panel > [data-nc-view="chat"],
.nc-chat__panel > [data-nc-view="faq"] {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.nc-chat__panel > [data-nc-view][hidden] {
  display: none !important;
}

.nc-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--forest-dark, #0b1f36), var(--forest, #1e4a7a));
  color: #e8eef6;
  flex-shrink: 0;
}

.nc-chat__head-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.nc-chat__head-brand img {
  border-radius: 0.45rem;
  flex-shrink: 0;
}

.nc-chat__head-brand strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.nc-chat__head-brand span {
  display: block;
  font-size: 0.72rem;
  color: #e8d5a8;
}

.nc-chat__close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.nc-chat__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e8eef5;
  border-bottom: 1px solid rgba(30, 74, 122, 0.12);
  flex-shrink: 0;
}

.nc-chat__tab {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.55rem 0.5rem;
  cursor: pointer;
}

.nc-chat__tab--active {
  background: #f8fafc;
  color: var(--forest-dark, #0b1f36);
  box-shadow: inset 0 -2px 0 #c5a059;
}

.nc-chat__faq,
.nc-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  min-height: 0;
}

.nc-chat__faq-lead {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
}

.nc-chat__faq-item {
  border: 1px solid #d0d9e4;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: #fff;
  overflow: hidden;
}

.nc-chat__faq-q {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.7rem 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.nc-chat__faq-a {
  display: none;
  padding: 0 0.85rem 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
}

.nc-chat__faq-item--open .nc-chat__faq-a { display: block; }

.nc-chat__bubble {
  max-width: 90%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  margin-bottom: 0.45rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.nc-chat__bubble--bot {
  background: #e8eef5;
  color: #0f172a;
  border-bottom-left-radius: 4px;
}

.nc-chat__bubble--user {
  background: var(--forest, #1e4a7a);
  color: #e8eef6;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.nc-chat__composer {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid #d0d9e4;
  background: #fff;
  flex-shrink: 0;
}

.nc-chat__hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.nc-chat__field {
  display: block;
  margin-bottom: 0.5rem;
}

.nc-chat__field span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.nc-chat__field input,
.nc-chat__field textarea {
  width: 100%;
  border: 1px solid #d0d9e4;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: #f8fafc;
  color: #0f172a;
}

.nc-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.nc-chat__chip {
  border: 1px solid #c5a059;
  background: #fff;
  color: var(--forest, #1e4a7a);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.nc-chat__chip:hover { background: #e8eef6; }

.nc-chat__btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  background: #c5a059;
  color: var(--forest-dark, #0b1f36);
}

.nc-chat__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.nc-chat__btn--ghost {
  background: transparent;
  border: 1px solid #d0d9e4;
  color: var(--forest, #1e4a7a);
}

.nc-chat__error {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: #b42318;
}

.nc-chat__success-inline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #1d6b93;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.nc-chat-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11, 31, 54, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* class display:flex, [hidden] user-agent none'ı ezer — zorunlu */
.nc-chat-modal-backdrop[hidden] {
  display: none !important;
}

.nc-chat-modal {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.25rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.nc-chat-modal__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d6b93;
  display: grid;
  place-items: center;
  margin: 0 auto 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.nc-chat-modal h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--forest-dark, #0b1f36);
}

.nc-chat-modal p {
  margin: 0 0 0.5rem;
  color: #64748b;
  font-size: 0.9rem;
}

.nc-chat-modal__email {
  font-weight: 700;
  color: var(--forest, #1e4a7a) !important;
  margin-bottom: 1rem !important;
}

@media (max-width: 480px) {
  .nc-chat {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
