.nn-navbar {
  background: rgb(255, 255, 255);
  border-bottom: 1px solid #d8d8d8;
  min-height: 68px;
}

.nn-navbar-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.nn-navbar-brand {
  color: #1f2937;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nn-navbar-brand:hover {
  color: #111827;
}

.nn-brand-text {
  font-size: 1.2rem;
  line-height: 1;
}

.navbar-toggler {
  border-color: #0f1b34;
}

.nn-toggler-icon {
  filter: invert(8%) sepia(13%) saturate(2417%) hue-rotate(186deg)
    brightness(92%) contrast(94%);
}

.nn-nav-icon-link {
  padding: 0.4rem 0.8rem !important;
}

.nn-nav-notification-icon-wrap {
  position: relative;
}

.nn-nav-notification-badge {
  position: absolute;
  top: -7px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
  border: 2px solid #ffffff;
}

.nn-nav-icon {
  width: 24px;
  height: 24px;
  color: #1f2937;
  transition: color 0.2s ease;
}

.nn-nav-icon-link:hover .nn-nav-icon {
  color: #0f172a;
}

.nn-dropdown-menu {
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nn-dropdown-menu .dropdown-item {
  color: #1f2937;
  padding: 0.6rem 1rem;
}

.nn-dropdown-menu .dropdown-item:hover {
  background-color: #f3f4f6;
  color: #0f172a;
}

/* Flash Popup */
.nn-flash-stack {
  position: fixed;
  top: 84px;
  left: 1rem;
  width: min(92vw, 390px);
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.nn-flash {
  margin: 0;
  pointer-events: auto;
  border: 1px solid #d8dee8;
  border-left: 5px solid #0f1b34;
  border-radius: 12px;
  background: #f8f9fb;
  color: #0f1b34;
  padding: 0.85rem 2.5rem 0.85rem 0.95rem;
  box-shadow: 0 10px 24px rgba(15, 27, 52, 0.16);
  animation: nn-flash-slide-in 0.28s ease-out;
}

.nn-flash-success {
  border-left-color: #0f1b34;
}

.nn-flash-error {
  border-left-color: #dc2626;
}

.nn-flash-content {
  display: grid;
  gap: 0.18rem;
}

.nn-flash-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nn-flash-message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
}

.nn-flash-close {
  position: absolute;
  top: 0.6rem;
  right: 0.55rem;
  opacity: 0.7;
}

.nn-flash-close:hover {
  opacity: 1;
}

@keyframes nn-flash-slide-in {
  from {
    transform: translateX(-12px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Confirm Modal */
.nn-confirm-content {
  background: #f8f9fb;
  border: 1px solid #d8dee8;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 27, 52, 0.18);
}

.nn-confirm-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.15rem 0.8rem;
}

.nn-confirm-title {
  color: #0f1b34;
  font-weight: 700;
  font-size: 1.1rem;
}

.nn-confirm-body {
  padding: 1rem 1.25rem 0.8rem;
}

.nn-confirm-message {
  margin: 0;
  color: #334155;
  line-height: 1.55;
  font-size: 0.95rem;
}

.nn-confirm-footer {
  border-top: 0;
  padding: 0.85rem 1.15rem 1.05rem;
  gap: 0.55rem;
}

.nn-confirm-btn {
  margin-top: 0;
}

.nn-confirm-btn-danger {
  background: #b91c1c;
}

.nn-confirm-btn-danger:hover {
  background: #991b1b;
}

.nn-confirm-btn-primary {
  background: #0b1730;
}

.nn-confirm-btn-primary:hover {
  background: #132448;
}

/* Post Styling */
.nn-post-container {
  max-width: 600px;
  margin: 0 auto;
}

.nn-post {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: visible;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
  box-sizing: border-box;
}

.nn-post:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nn-post-clickable {
  cursor: pointer;
}

.nn-post-header {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.nn-post-user-info {
  gap: 0.75rem;
}

.nn-post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5e7eb;
  font-weight: 700;
  color: #1f2937;
}

.nn-post-meta {
  gap: 0.2rem;
}

.nn-post-username {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
}

.nn-post-timestamp {
  font-size: 0.8rem;
  color: #6b7280;
}

.nn-post-edit-btn {
  width: 24px;
  height: 24px;
  color: #6b7280;
  transition: color 0.2s ease;
}

.nn-post-edit-btn:hover {
  color: #1f2937;
}

.nn-post-body {
  padding: 0 1rem 1rem 1rem;
}

.nn-post-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.nn-post-content {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.nn-post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.nn-post-footer {
  border-top: 1px solid #f3f4f6;
  padding: 1rem;
}

.nn-post-action {
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}

.nn-post-action-btn {
  border: none;
  background: transparent;
}

.nn-post-action:hover {
  color: #1f2937;
  background-color: #f3f4f6;
}

.nn-post-action-liked {
  color: #b91c1c;
}

.nn-post-action-liked:hover {
  color: #991b1b;
  background-color: #fee2e2;
}

.nn-post-action-icon {
  width: 20px;
  height: 20px;
}

.nn-post-action-count {
  font-size: 0.9rem;
  font-weight: 500;
}

.nn-post-share {
  position: relative;
}

.nn-share-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  min-width: 185px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 27, 52, 0.15);
  overflow: hidden;
  z-index: 35;
}

.nn-share-item {
  width: 100%;
  border: none;
  background: #ffffff;
  color: #1f2937;
  gap: 0.6rem;
  text-align: left;
  padding: 0.68rem 0.8rem;
  font-size: 0.92rem;
}

.nn-share-item + .nn-share-item {
  border-top: 1px solid #f1f5f9;
}

.nn-share-item:hover {
  background: #f8fafc;
}

.nn-share-item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #64748b;
}

.nn-post-comments {
  border-top: 1px solid #e5e7eb;
  padding: 0.85rem 1rem 0.95rem;
  background: #ffffff;
}

.nn-post-comments-list {
  display: grid;
  gap: 0.7rem;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 0.2rem;
  margin-bottom: 0.85rem;
}

.nn-post-comment-item {
  gap: 0.65rem;
}

.nn-post-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f1b34;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.nn-post-comment-body {
  min-width: 0;
  flex: 1;
}

.nn-post-comment-meta {
  gap: 0.45rem;
}

.nn-post-comment-username {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f1b34;
}

.nn-post-comment-time {
  font-size: 0.8rem;
  color: #6b7280;
}

.nn-post-comment-text {
  margin: 0.25rem 0 0;
  color: #1f2937;
  line-height: 1.45;
  word-break: break-word;
}

.nn-post-comment-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.nn-post-comment-form {
  gap: 0.65rem;
}

.nn-post-comment-input {
  border: 1px solid #d8dee8;
  background: #f8f9fb;
  color: #0f1b34;
}

.nn-post-comment-input:focus {
  border-color: #b8c2d3;
  box-shadow: none;
  background: #ffffff;
}

.nn-post-comment-submit {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  background: #0f1b34;
  color: #ffffff;
}

.nn-post-comment-submit:hover {
  background: #132448;
  color: #ffffff;
}

.nn-post-comment-submit-icon {
  width: 16px;
  height: 16px;
}

.nn-post-create-btn {
  background: #0f1b34;
  border-radius: 10px;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.nn-post-create-btn:hover {
  background: #182a4d;
  color: #ffffff;
}

.nn-post-textarea {
  height: 100px;
}

.nn-post-image-thumb {
  width: 100px;
}

/* Auth Styling */
.nn-auth-page {
  min-height: 100%;
  padding: 1rem 1rem 0.5rem;
}

.nn-auth-card {
  width: 100%;
  max-width: 600px;
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2rem 1.4rem 1.3rem;
  box-shadow: 0 10px 30px rgba(15, 27, 52, 0.12);
  position: relative;
}

.nn-auth-icon-wrap {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #0f1b34;
  margin: 0 auto 1rem;
}

.nn-auth-main-icon {
  width: 34px;
  height: 34px;
  color: #ffffff;
}

.nn-auth-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0;
  text-align: center;
  color: #0f1b34;
  font-weight: 700;
}

.nn-auth-title-spaced {
  margin-bottom: 1.4rem;
}

.nn-auth-input-icon {
  background: #eef1f6;
  border: 1px solid #d8dee8;
  border-right: 0;
  color: #a6afbc;
}

.nn-auth-input-feather {
  width: 16px;
  height: 16px;
}

.nn-auth-input {
  border: 1px solid #d8dee8;
  background: #eef1f6;
  color: #0f1b34;
}

.nn-auth-input:focus {
  border-color: #b8c2d3;
  box-shadow: none;
  background: #f4f6fa;
}

.nn-auth-btn {
  background: #0b1730;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-top: 0.25rem;
}

.nn-auth-btn:hover {
  background: #132448;
  color: #ffffff;
}

.nn-auth-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.92rem;
}

.nn-auth-link:hover {
  text-decoration: underline;
}

.nn-auth-switch-text {
  margin: 1rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.nn-auth-switch-link {
  color: #0f1b34;
  font-weight: 700;
  text-decoration: none;
}

.nn-auth-switch-link:hover {
  text-decoration: underline;
}

.nn-forgot-shell {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.nn-forgot-back-link {
  color: #334155;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
}

.nn-forgot-back-link:hover {
  color: #0f1b34;
}

.nn-forgot-back-icon {
  width: 15px;
  height: 15px;
}

.nn-forgot-icon-wrap {
  margin-bottom: 0.95rem;
}

.nn-forgot-subtitle {
  margin: 0.65rem 0 1.25rem;
  text-align: center;
  color: #475569;
  font-size: 0.95rem;
}

.nn-btn-inline-icon {
  width: 15px;
  height: 15px;
}

/* Profile Hub */
.nn-profile-shell {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.nn-profile-panel {
  background: #f8f9fb;
  border: 1px solid #d8dee8;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 27, 52, 0.1);
}

.nn-profile-hero {
  padding: 1.3rem 1.3rem 1.1rem;
}

.nn-profile-identity {
  gap: 1rem;
}

.nn-profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f1b34 0%, #132448 100%);
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 27, 52, 0.18);
}

.nn-profile-copy {
  display: grid;
  gap: 0.15rem;
}

.nn-profile-label {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nn-profile-name {
  margin: 0;
  color: #0f1b34;
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 700;
}

.nn-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.nn-profile-stat {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  display: grid;
  gap: 0.15rem;
}

.nn-profile-stat-value {
  color: #0f1b34;
  font-size: 1.1rem;
  font-weight: 700;
}

.nn-profile-stat-label {
  color: #64748b;
  font-size: 0.82rem;
}

.nn-profile-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.nn-profile-switch-card {
  min-height: 92px;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid #d8dee8;
  background: #ffffff;
  color: #0f1b34;
  text-decoration: none;
  gap: 0.9rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  box-shadow: 0 8px 18px rgba(15, 27, 52, 0.08);
}

.nn-profile-switch-card:hover {
  transform: translateY(-2px);
  border-color: #b8c2d3;
  box-shadow: 0 12px 24px rgba(15, 27, 52, 0.12);
}

.nn-profile-switch-card-active {
  background: linear-gradient(135deg, #0f1b34 0%, #132448 100%);
  color: #ffffff;
  border-color: transparent;
}

.nn-profile-switch-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.nn-profile-switch-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.nn-profile-switch-desc {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: inherit;
  opacity: 0.85;
}

.nn-profile-feed {
  display: grid;
  gap: 0.85rem;
}

.nn-profile-post-card {
  margin-bottom: 0;
}

.nn-profile-mini-icon {
  width: 18px;
  height: 18px;
}

.nn-profile-empty {
  padding: 1.4rem;
  text-align: center;
}

.nn-profile-empty-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #0f1b34;
}

.nn-profile-empty-icon {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.nn-profile-empty-title {
  margin: 0;
  color: #0f1b34;
  font-size: 1.1rem;
  font-weight: 700;
}

.nn-profile-empty-text {
  margin: 0.55rem 0 1rem;
  color: #475569;
  font-size: 0.95rem;
}

.nn-profile-settings-card {
  padding: 1.15rem;
}

.nn-profile-settings-head {
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.nn-profile-settings-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f1b34;
}

.nn-profile-settings-icon {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.nn-profile-settings-title {
  margin: 0;
  color: #0f1b34;
  font-size: 1.15rem;
  font-weight: 700;
}

.nn-profile-settings-subtitle {
  margin: 0.15rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.nn-profile-settings-form {
  gap: 0.9rem;
}

/* Notification Page */
.nn-notification-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.nn-notification-header-card {
  background: #f8f9fb;
  border: 1px solid #d8dee8;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 27, 52, 0.1);
  padding: 1.2rem 1.3rem;
  gap: 1rem;
}

.nn-notification-label {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nn-notification-title {
  margin: 0.2rem 0;
  color: #0f1b34;
  font-size: 1.5rem;
  font-weight: 700;
}

.nn-notification-subtitle {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
}

.nn-notification-read-all-btn {
  font-size: 0.8rem;
  white-space: nowrap;
}

.nn-notification-list-wrap {
  display: grid;
  gap: 0.75rem;
}

.nn-notification-item {
  border-radius: 16px;
  border: 1px solid #d8dee8;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 27, 52, 0.08);
  padding: 0.95rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
}

.nn-notification-item-unread {
  border-color: #bec8db;
  background: #f8faff;
}

.nn-notification-dot-wrap {
  padding-top: 0.2rem;
}

.nn-notification-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
}

.nn-notification-dot-read {
  background: #cbd5e1;
}

.nn-notification-content {
  display: grid;
  gap: 0.55rem;
}

.nn-notification-meta-row {
  gap: 0.75rem;
}

.nn-notification-type-badge {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nn-notification-type-like {
  color: #1d4ed8;
  background: #dbeafe;
}

.nn-notification-type-comment {
  color: #0f766e;
  background: #ccfbf1;
}

.nn-notification-time {
  color: #64748b;
  font-size: 0.82rem;
}

.nn-notification-message {
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
}

.nn-notification-actions {
  gap: 0.8rem;
}

.nn-notification-open-link {
  gap: 0.35rem;
  color: #0f1b34;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.nn-notification-open-link:hover {
  text-decoration: underline;
}

.nn-notification-open-icon {
  width: 14px;
  height: 14px;
}

.nn-notification-read-btn,
.nn-notification-read-label {
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.22rem 0.65rem;
}

.nn-notification-read-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
}

.nn-notification-read-btn:hover {
  background: #e2e8f0;
}

.nn-notification-read-label {
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  color: #64748b;
}

.nn-notification-empty {
  text-align: center;
  border-radius: 16px;
  border: 1px solid #d8dee8;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 27, 52, 0.08);
  padding: 2rem 1.2rem;
}

.nn-notification-empty-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: #0f1b34;
  color: #ffffff;
}

.nn-notification-empty-icon {
  width: 29px;
  height: 29px;
}

.nn-notification-empty-title {
  margin: 0;
  color: #0f1b34;
  font-size: 1.2rem;
  font-weight: 700;
}

.nn-notification-empty-text {
  margin: 0.55rem auto 0;
  max-width: 480px;
  color: #475569;
  font-size: 0.92rem;
}

@media (max-width: 991.98px) {
  .nn-flash-stack {
    top: 76px;
    left: 0.75rem;
    width: min(94vw, 360px);
  }

  .nn-navbar-container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .nn-brand-text {
    font-size: 1.25rem;
  }

  .nn-navbar-nav {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    align-items: stretch;
    text-align: left;
  }

  .nn-nav-icon-link {
    width: 100%;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.3rem !important;
  }

  .nn-nav-notification-icon-wrap {
    display: inline-flex;
    margin-right: 0.1rem;
  }

  .nn-notification-header-card {
    flex-direction: column;
    align-items: stretch;
  }

  .nn-notification-read-all-btn {
    width: 100%;
    justify-content: center;
  }

  .nn-navbar-nav .dropdown-menu {
    text-align: left;
  }

  .nn-auth-card {
    max-width: 100%;
    padding: 1.5rem 1rem 1.1rem;
  }

  .nn-auth-title {
    font-size: 1.55rem;
  }

  .nn-forgot-shell {
    max-width: 460px;
  }

  .nn-profile-switcher,
  .nn-profile-settings-grid,
  .nn-profile-stats {
    grid-template-columns: 1fr;
  }

  .nn-profile-name {
    font-size: 1.45rem;
  }
}
