/* ═══════════════════════════════════════════════════════════════
   WHAT'S NEW MODAL
   ═══════════════════════════════════════════════════════════════ */

/* ── Constrain width ── */
#flexUpdateModal .modal-dialog {
  max-width: 380px;
}

.wn-modal {
  border-radius: 16px;
  overflow: hidden;
  border: none;
}

/* ── Header ── */
.wn-modal__header {
  border-bottom: none;
  padding: 1rem 1.25rem 0.35rem;
}

.wn-modal__title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wn-modal__sparkle {
  color: #ffc800;
  flex-shrink: 0;
}

.wn-modal__title {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0;
}

.wn-modal__version {
  font-size: 0.72rem;
  opacity: 0.5;
  padding: 0 1.25rem;
  margin-bottom: 0.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Body ── */
.wn-modal__body {
  padding: 0.35rem 1rem 0.5rem;
}

/* Smooth scrollbar */
.wn-modal__body::-webkit-scrollbar {
  width: 3px;
}
.wn-modal__body::-webkit-scrollbar-track {
  background: transparent;
}
.wn-modal__body::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.3);
  border-radius: 3px;
}

/* ── Notes container ── */
.wn-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Individual note card ── */
.wn-card {
  border-radius: 10px;
  padding: 9px 11px;
  background: var(--bs-tertiary-bg, rgba(128, 128, 128, 0.08));
  border: 1px solid var(--bs-border-color, rgba(128, 128, 128, 0.15));
}

.wn-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  padding: 1px 6px 1px 4px;
  border-radius: 5px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.wn-card__icon {
  display: flex;
  align-items: center;
}

.wn-card__icon svg {
  width: 11px;
  height: 11px;
}

.wn-card__text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--bs-body-color);
}

/* ── Tag colors ── */

/* NEW — green */
.wn-card.wn-new {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.06);
}
.wn-card.wn-new .wn-card__badge {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

/* IMPROVED — blue */
.wn-card.wn-improved {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.06);
}
.wn-card.wn-improved .wn-card__badge {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

/* FIX — orange */
.wn-card.wn-fix {
  border-color: rgba(249, 115, 22, 0.2);
  background: rgba(249, 115, 22, 0.06);
}
.wn-card.wn-fix .wn-card__badge {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

/* ── Dark mode adjustments ── */
:root[data-bs-theme='dark'] .wn-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
:root[data-bs-theme='dark'] .wn-card.wn-new {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.18);
}
:root[data-bs-theme='dark'] .wn-card.wn-improved {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.18);
}
:root[data-bs-theme='dark'] .wn-card.wn-fix {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.18);
}

/* ── Footer ── */
.wn-modal__footer {
  border-top: none;
  padding: 0.35rem 1rem 1rem;
}

.wn-modal__btn {
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  letter-spacing: 0.01em;
}