/* =========================================================
   NİLÜFER ASİSTAN — Tasarım sistemi
   Hafif 3D: gradient + dış gölge + inset üst parlaklık +
   inset alt gölge + hover translateY(-2px). Kurumsal, ölçülü.
   ========================================================= */

:root {
  --na-primary: #0797ad;
  --na-primary-light: #14afc4;
  --na-primary-dark: #067c91;
  --na-primary-darker: #045d70;

  --na-green: #65d51f;
  --na-green-dark: #48b70f;

  --na-white: #ffffff;
  --na-page: #f3f7f8;
  --na-surface: #ffffff;
  --na-surface-soft: #f5fafb;
  --na-surface-green: #f0faf5;

  --na-text: #18333c;
  --na-text-secondary: #5f747c;
  --na-border: #d7e2e6;
  --na-border-light: rgba(255, 255, 255, 0.78);

  --na-radius-widget: 26px;
  --na-radius-card: 17px;
  --na-radius-button: 13px;
  --na-radius-pill: 999px;

  --na-shadow-widget:
    0 28px 70px rgba(4, 47, 59, 0.24),
    0 10px 26px rgba(4, 47, 59, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);

  --na-shadow-raised:
    0 8px 16px rgba(24, 63, 73, 0.13),
    0 2px 5px rgba(24, 63, 73, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(5, 88, 105, 0.06);

  --na-shadow-raised-hover:
    0 12px 22px rgba(24, 63, 73, 0.18),
    0 4px 8px rgba(24, 63, 73, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);

  --na-shadow-button:
    0 7px 13px rgba(3, 103, 123, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -2px 0 rgba(1, 68, 83, 0.22);

  --na-shadow-pressed:
    inset 0 3px 7px rgba(3, 73, 88, 0.22),
    inset 0 1px 2px rgba(3, 73, 88, 0.14);

  --na-font:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;

  /* geriye uyum */
  --nlf-brand: var(--na-primary);
  --nlf-brand-dark: var(--na-primary-dark);
  --nlf-bot-bg: #f4f8f9;
  --nlf-link: #067c91;
  --nlf-text: var(--na-text);
}

/* —— Widget kabuk —— */
.nilufer-assistant {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  font-family: var(--na-font);
  color: var(--na-text);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.99) 0%,
    #fbfdfe 55%,
    #f4f8f9 100%
  );
  border: 1px solid rgba(184, 203, 210, 0.82);
  border-radius: var(--na-radius-widget);
  box-shadow: var(--na-shadow-widget);
  overflow: hidden;
  isolation: isolate;
}

.nilufer-assistant::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--na-radius-widget) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.74);
  pointer-events: none;
  z-index: 10;
}

/* Floating panel (demo) */
.nilufer-assistant.na-panel {
  position: fixed;
  right: 24px;
  bottom: 98px;
  width: min(420px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 120px));
  z-index: 40;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.nilufer-assistant.na-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* —— Header —— */
.na-header {
  position: relative;
  min-height: 96px;
  padding: 18px 18px 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    var(--na-primary-light) 0%,
    var(--na-primary) 48%,
    var(--na-primary-dark) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -3px 8px rgba(2, 78, 94, 0.18),
    0 5px 14px rgba(5, 100, 119, 0.18);
}

.na-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 45%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  border-radius: 0 0 50% 50%;
  pointer-events: none;
}

.na-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 27px;
  font-weight: 700;
  color: white;
  background: radial-gradient(
    circle at 32% 24%,
    #28bed0 0%,
    #0b98af 46%,
    #067287 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 8px 15px rgba(1, 67, 81, 0.3),
    inset 0 2px 2px rgba(255, 255, 255, 0.42),
    inset 0 -3px 5px rgba(1, 63, 77, 0.24);
}

.na-header-copy {
  min-width: 0;
  flex: 1;
}

.na-header-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.na-header-subtitle {
  margin-top: 3px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.na-header-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.na-header-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  background: linear-gradient(
    180deg,
    rgba(31, 176, 196, 0.95),
    rgba(5, 126, 147, 0.95)
  );
  box-shadow:
    0 6px 11px rgba(2, 72, 87, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(2, 68, 82, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.na-header-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 9px 15px rgba(2, 72, 87, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.na-header-button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow:
    0 4px 8px rgba(2, 72, 87, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.na-header-button:disabled:hover {
  transform: none;
}

.na-header-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ev ikonu biraz daha dolu dursun */
#homeBtn svg {
  fill: none;
}

/* —— Body —— */
.na-body {
  flex: 1;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(247, 251, 252, 0.98)
  );
}

.na-body::-webkit-scrollbar {
  width: 7px;
}
.na-body::-webkit-scrollbar-thumb {
  background: #b7c9ce;
  border-radius: 999px;
}
.na-body::-webkit-scrollbar-track {
  background: transparent;
}

/* Karşılama */
.na-welcome {
  margin-bottom: 16px;
}

.na-welcome-hi {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 750;
  color: var(--na-text);
  letter-spacing: -0.02em;
}

.na-welcome-text {
  margin: 0 0 6px;
  color: var(--na-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.na-welcome-text strong {
  color: var(--na-primary-dark);
  font-weight: 650;
}

/* Quick grid */
.na-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.na-quick-card {
  min-height: 100px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--na-border);
  border-radius: var(--na-radius-card);
  color: var(--na-text);
  text-align: center;
  background: linear-gradient(145deg, #ffffff 0%, #fbfdfe 52%, #eef4f6 100%);
  box-shadow: var(--na-shadow-raised);
  cursor: pointer;
  font: inherit;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.na-quick-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(7, 151, 173, 0.35);
  box-shadow: var(--na-shadow-raised-hover);
}

.na-quick-card:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: var(--na-shadow-pressed);
}

.na-quick-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.na-quick-card svg {
  width: 30px;
  height: 30px;
  color: var(--na-primary);
  filter: drop-shadow(0 2px 2px rgba(5, 100, 118, 0.16));
}

.na-quick-card span {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
}

/* Messages */
.na-message-row {
  display: flex;
  margin-bottom: 13px;
  gap: 8px;
  align-items: flex-end;
}

.na-message-row--user {
  justify-content: flex-end;
}

.na-message-row--assistant {
  justify-content: flex-start;
}

.na-dislike {
  margin: 2px 0 8px 36px;
  border: 0;
  background: transparent;
  color: #5c7278;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.na-dislike:disabled {
  cursor: default;
  text-decoration: none;
}

.na-message-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: radial-gradient(circle at 32% 24%, #28bed0, #0797ad 55%, #056b80);
  box-shadow:
    0 3px 8px rgba(3, 90, 108, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.na-message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  box-shadow:
    0 5px 12px rgba(24, 62, 72, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.na-message--assistant {
  color: var(--na-text);
  background: linear-gradient(145deg, #ffffff, #f4f8f9);
  border: 1px solid var(--na-border);
  border-bottom-left-radius: 5px;
}

.na-message--user {
  color: #16434d;
  background: linear-gradient(145deg, #e8f9fb 0%, #d4f0f4 100%);
  border: 1px solid #b8dfe5;
  border-bottom-right-radius: 5px;
}

.na-message--error {
  max-width: 100%;
  color: #8a1f1f;
  background: linear-gradient(145deg, #fff5f5, #fde8e8);
  border: 1px solid #f0c4c4;
  border-radius: 16px;
}

.na-message .nlf-link {
  color: var(--na-primary-dark);
  text-decoration: underline;
  font-weight: 600;
}

.na-message .nlf-tel {
  color: var(--na-primary-darker);
  font-weight: 700;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.na-pill {
  font-family: inherit;
}

button.na-pill {
  appearance: none;
  cursor: pointer;
}

.na-message strong {
  color: #075f72;
}

/* Link / tel action chips */
.na-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px 36px;
  max-width: calc(100% - 36px);
}

.na-secondary-button,
.na-pill {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--na-border);
  border-radius: 11px;
  color: #076b7e;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fa 100%);
  box-shadow:
    0 5px 10px rgba(26, 62, 72, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.na-pill {
  border-radius: var(--na-radius-pill);
}

.na-secondary-button:hover,
.na-pill:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 14px rgba(26, 62, 72, 0.14),
    inset 0 1px 0 white;
}

.na-primary-button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(3, 111, 131, 0.65);
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  background: linear-gradient(180deg, #14afc4 0%, #0795ac 56%, #067b90 100%);
  box-shadow: var(--na-shadow-button);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.na-primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 10px 18px rgba(3, 103, 123, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.na-primary-button:active {
  transform: translateY(1px);
  box-shadow: var(--na-shadow-pressed);
}

/* Typing */
.na-typing {
  display: inline-flex;
  gap: 5px;
  padding: 12px 16px;
  background: linear-gradient(145deg, #ffffff, #f4f8f9);
  border: 1px solid var(--na-border);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  box-shadow:
    0 5px 12px rgba(24, 62, 72, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.na-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7aa8b2;
  animation: na-bounce 1s infinite;
}

.na-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.na-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes na-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* —— Footer —— */
.na-footer {
  padding: 12px 14px 14px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f2f6f7 100%);
  border-top: 1px solid var(--na-border);
  box-shadow:
    0 -7px 18px rgba(30, 68, 78, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.na-kvkk {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--na-ink, #14343c);
}
.na-kvkk[hidden] {
  display: none;
}
.na-kvkk p {
  margin: 0;
}
.na-kvkk-warn {
  color: #5c7278;
}
.na-kvkk a {
  color: #067c91;
  font-weight: 600;
}
.na-kvkk .na-primary-button {
  width: 100%;
  margin-top: 4px;
}
.na-input-wrap[hidden] {
  display: none;
}

.na-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  border: 1px solid #cbdade;
  border-radius: var(--na-radius-pill);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  box-shadow:
    inset 0 2px 4px rgba(20, 58, 68, 0.07),
    0 4px 9px rgba(20, 58, 68, 0.08);
}

.na-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--na-text);
}

.na-input::placeholder {
  color: #84969d;
}

.na-send-button {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid #06768a;
  border-radius: 50%;
  color: white;
  background: radial-gradient(
    circle at 34% 24%,
    #20bbce 0%,
    #0795ab 48%,
    #056f83 100%
  );
  box-shadow:
    0 7px 13px rgba(3, 95, 113, 0.3),
    inset 0 2px 1px rgba(255, 255, 255, 0.45),
    inset 0 -3px 4px rgba(2, 65, 78, 0.25);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.na-send-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 10px 16px rgba(3, 95, 113, 0.36),
    inset 0 2px 1px rgba(255, 255, 255, 0.5);
}

.na-send-button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: var(--na-shadow-pressed);
}

.na-send-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.na-send-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Launcher (fallback; demo may use image) */
.na-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 72px;
  height: 72px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 50;
  transition: transform 180ms ease;
}

.na-launcher img {
  width: 72px;
  height: 72px;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(3, 60, 72, 0.28));
}

.na-launcher:hover {
  transform: translateY(-2px) scale(1.03);
}

.nilufer-assistant button:focus-visible,
.nilufer-assistant input:focus-visible,
.na-launcher:focus-visible {
  outline: 3px solid rgba(20, 175, 196, 0.36);
  outline-offset: 3px;
}

/* Standalone page shell */
.na-standalone-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--na-font);
  background:
    radial-gradient(ellipse at top right, rgba(7, 151, 173, 0.12), transparent 50%),
    linear-gradient(165deg, #eef5f7 0%, var(--na-page) 55%, #e8f0f2 100%);
  color: var(--na-text);
}

/* iframe gömme: panel doldursun, debug notu gizlensin */
html.na-embed,
html.na-embed body.na-embed,
body.na-embed {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

body.na-embed .na-standalone-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100%;
  gap: 0;
}

body.na-embed .page-note {
  display: none !important;
}

body.na-embed .nilufer-assistant {
  height: 100%;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

body.na-embed .nilufer-assistant::before {
  border-radius: 0;
}

.na-standalone-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.na-standalone-wrap > .page-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--na-text-secondary);
}

.na-standalone-wrap > .page-note a {
  color: var(--na-primary-dark);
  font-weight: 600;
}

.na-standalone-wrap .nilufer-assistant {
  flex: 1;
  min-height: 0;
}

@media (max-width: 640px) {
  .nilufer-assistant.na-panel {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .nilufer-assistant.na-panel::before {
    border-radius: 0;
  }

  .na-header {
    min-height: 82px;
    padding: 14px 15px;
  }

  .na-avatar {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    font-size: 23px;
  }

  .na-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .na-quick-card {
    min-height: 92px;
  }

  .na-launcher {
    right: 16px;
    bottom: 16px;
  }

  .na-actions {
    margin-left: 0;
    max-width: 100%;
  }
}

/* —— Tanıtım balonu (launcher üstü) —— */
.na-discovery {
  position: fixed;
  right: 20px;
  bottom: 105px;
  width: 230px;
  padding: 15px 42px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--na-font);
  color: #18333c;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(247, 252, 253, 0.99) 58%,
    rgba(232, 246, 248, 0.99) 100%
  );
  border: 1px solid rgba(7, 151, 173, 0.22);
  border-radius: 17px;
  box-shadow:
    0 15px 34px rgba(4, 52, 64, 0.2),
    0 5px 12px rgba(4, 52, 64, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform-origin: bottom right;
  animation: naDiscoveryEnter 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 45;
}

.na-discovery[hidden] {
  display: none !important;
}

.na-discovery::after {
  content: "";
  position: absolute;
  right: 29px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: #eef8f9;
  border-right: 1px solid rgba(7, 151, 173, 0.22);
  border-bottom: 1px solid rgba(7, 151, 173, 0.22);
  transform: rotate(45deg);
}

.na-discovery strong {
  color: #076f84;
  font-size: 16px;
  line-height: 1.25;
}

.na-discovery > span:not(.na-discovery-badge) {
  color: #5f747c;
  font-size: 13px;
  line-height: 1.4;
}

.na-discovery-badge {
  width: max-content;
  margin-bottom: 3px;
  padding: 3px 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #78df2b 0%, #4fbd14 100%);
  border-radius: 999px;
  box-shadow:
    0 4px 8px rgba(72, 183, 15, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.na-discovery-close {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #627b83;
  font-size: 18px;
  line-height: 1;
  background: rgba(219, 235, 239, 0.72);
  cursor: pointer;
}

.na-discovery-close:hover {
  color: #075f72;
  background: #dceff2;
}

.na-discovery-arrow {
  position: absolute;
  right: 22px;
  bottom: -42px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #0797ad;
  font-size: 27px;
  font-weight: 800;
  filter: drop-shadow(0 3px 3px rgba(4, 77, 91, 0.22));
  animation: naArrowBounce 750ms ease-in-out 500ms 3 alternate;
}

@keyframes naDiscoveryEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes naArrowBounce {
  from {
    transform: translateY(-2px);
  }
  to {
    transform: translateY(7px);
  }
}

.na-discovery.is-closing {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

@media (max-width: 640px) {
  .na-discovery {
    right: 14px;
    bottom: 94px;
    width: min(220px, calc(100vw - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .na-discovery,
  .na-discovery-arrow {
    animation: none;
  }
}
