/* ── page ── */
.nf-page {
  min-height: 100vh;
  padding: 120px 0 100px;
}
.nf-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── header ── */
.nf-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.nf-eyebrow {
  display: block;
  font-family: 'Exo 2', Montserrat, sans-serif;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,.22);
  margin-bottom: 14px;
}
.nf-title {
  font-family: Montserrat, sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  margin: 0 0 12px;
}
.nf-meta {
  font-family: Inter, sans-serif;
  font-size: .85rem;
  color: rgba(255,255,255,.3);
  margin: 0;
}
.nf-btn-readall {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: rgba(255,255,255,.55);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  flex-shrink: 0;
}
.nf-btn-readall:hover {
  background: rgba(79,168,255,.1);
  border-color: rgba(79,168,255,.3);
  color: var(--primary-blue);
}

/* ── controls row ── */
.nf-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.nf-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.4);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.nf-chip i { font-size: 11px; }
.nf-chip:hover {
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
}
.nf-chip.active {
  background: rgba(79,168,255,.12);
  border-color: rgba(79,168,255,.4);
  color: var(--primary-blue);
}
.nf-chip-count {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
  transition: var(--transition-smooth);
}
.nf-chip.active .nf-chip-count {
  background: rgba(79,168,255,.25);
  color: var(--primary-blue);
}
.nf-range {
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,.25);
  white-space: nowrap;
}

/* ── date group ── */
.nf-group { margin-bottom: 36px; }
.nf-group-label {
  font-family: 'Exo 2', Montserrat, sans-serif;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,.2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nf-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.05);
}

/* ── card ── */
.nf-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
  margin-bottom: 8px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease,
              opacity .25s ease, transform .25s ease;
  overflow: hidden;
}
.nf-card:hover {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.1);
}
.nf-card.is-unread {
  background: rgba(var(--card-rgb), .07);
  border-color: rgba(var(--card-rgb), .22);
  box-shadow: inset 4px 0 0 rgba(var(--card-rgb), .9);
}
.nf-card.is-clickable { cursor: pointer; }
.nf-card.is-clickable:hover {
  background: rgba(var(--card-rgb), .1);
}
.nf-card.is-removing {
  opacity: 0;
  transform: translateX(-16px);
  pointer-events: none;
}

/* card icon */
.nf-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  background: rgba(var(--card-rgb), .12);
  color: rgb(var(--card-rgb));
}

/* card body */
.nf-card-body {
  flex: 1;
  min-width: 0;
}
.nf-card-title {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nf-card-text {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* card right */
.nf-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.nf-card-time {
  font-size: 11px;
  color: rgba(255,255,255,.25);
  white-space: nowrap;
}
.nf-card-actions {
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity .18s ease;
}
.nf-card:hover .nf-card-actions { opacity: 1; }
.nf-card-actions button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.35);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.nf-card-actions .btn-read:hover {
  background: rgba(79,168,255,.18);
  border-color: rgba(79,168,255,.35);
  color: var(--primary-blue);
}
.nf-card-actions .btn-del:hover {
  background: rgba(255,80,80,.15);
  border-color: rgba(255,80,80,.35);
  color: #ff5050;
}

/* type color vars */
.nf-card[data-type="support"],
.nf-card[data-type="support_reply"]    { --card-rgb: 79,168,255; }
.nf-card[data-type="support_closed"]   { --card-rgb: 52,211,153; }
.nf-card[data-type="support_reopened"] { --card-rgb: 245,158,11; }
.nf-card[data-type="system"]           { --card-rgb: 156,163,175; }
.nf-card[data-type="default"],
.nf-card                               { --card-rgb: 79,168,255; }

/* ── states ── */
.nf-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 14px;
  color: rgba(255,255,255,.25);
  text-align: center;
}
.nf-state i { font-size: 36px; opacity: .4; }
.nf-state-title {
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  margin: 0;
}
.nf-state-sub {
  font-size: 13px;
  color: rgba(255,255,255,.2);
  margin: 0;
}

/* ── pagination ── */
.nf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.45);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 5px;
}
.pg-btn:hover:not(:disabled) {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
}
.pg-btn.active {
  background: rgba(79,168,255,.15);
  border-color: rgba(79,168,255,.4);
  color: var(--primary-blue);
}
.pg-btn:disabled {
  opacity: .25;
  cursor: default;
}
.pg-dots {
  color: rgba(255,255,255,.2);
  font-size: 13px;
  padding: 0 4px;
  user-select: none;
}

/* ── toast ── */
.nf-toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(16,22,44,.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(79,168,255,.25);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  min-width: 220px;
  max-width: 340px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
  z-index: 9999;
}
.nf-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nf-toast.success { border-color: rgba(52,211,153,.35); }
.nf-toast.error   { border-color: rgba(255,80,80,.35); }
.toast-icon {
  font-size: 13px;
  color: var(--primary-blue);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.nf-toast.success .toast-icon { color: #34d399; }
.nf-toast.error   .toast-icon { color: #ff5050; }
.toast-msg {
  flex: 1;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}
.toast-close {
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.4);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}
.toast-close:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── responsive ── */
@media (max-width: 640px) {
  .nf-page { padding-top: 90px; }
  .nf-title { font-size: 2rem; }
  .nf-header { margin-bottom: 32px; }
  .nf-card { padding: 13px 14px; gap: 12px; }
  .nf-card-actions { opacity: 1; }
  .nf-toast { left: 14px; right: 14px; bottom: 14px; min-width: 0; max-width: none; }
}
