/* Member auth — news_tgn_0002 (cream / forest / terracotta) */
body.n1-login-open {
  overflow: hidden;
}

.n1-login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.n1-login-modal.is-open {
  display: flex;
}

.n1-login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 80, 22, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.n1-login-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  max-height: min(92vh, 40rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  background: #f5f2eb;
  border: 1px solid rgba(45, 80, 22, 0.14);
  border-radius: 1rem;
  padding: 1.5rem 1.35rem 1.6rem;
  color: #2d5016;
  box-shadow:
    0 24px 60px rgba(45, 80, 22, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.55) inset;
  animation: n1-modal-in 0.22s ease-out;
}

@keyframes n1-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .n1-login-modal__panel {
    animation: none;
  }
}

.n1-auth-panel {
  display: none;
}

.n1-auth-panel.active {
  display: block;
}

.n1-auth-tab.active {
  color: #c65d3b;
  border-bottom-color: #c65d3b;
}

.n1-auth-alert {
  display: none;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.n1-auth-alert.show {
  display: block;
}

.n1-auth-alert.error {
  background: rgba(198, 93, 59, 0.12);
  color: #9a3f24;
  border: 1px solid rgba(198, 93, 59, 0.35);
}

.n1-auth-alert.success {
  background: rgba(45, 80, 22, 0.1);
  color: #2d5016;
  border: 1px solid rgba(45, 80, 22, 0.28);
}

.n1-form-group .n1-form-error {
  display: none;
  color: #c65d3b;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.n1-form-group.has-error .n1-form-error {
  display: block;
}

.n1-form-group.has-error .n1-form-input {
  border-color: #ef4444;
}

.n1-btn-auth.loading {
  opacity: 0.7;
  pointer-events: none;
}

.n1-btn-auth.loading .n1-btn-auth-text::after {
  content: '…';
}

.n1-nav-user {
  gap: 0.625rem;
}

.n1-nav-user-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 10.5rem;
  min-width: 0;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.n1-nav-user-profile:hover {
  background: rgba(245, 158, 11, 0.1);
}

.n1-nav-user-profile:hover .n1-nav-user-name {
  color: #f59e0b;
}

.n1-nav-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.n1-nav-user-divider {
  width: 1px;
  height: 1rem;
  background: rgba(156, 163, 175, 0.35);
  flex-shrink: 0;
}

.n1-nav-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  background: transparent;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.n1-nav-logout i {
  font-size: 0.7rem;
  opacity: 0.9;
}

.n1-nav-logout:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.n1-nav-user--mobile {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.n1-nav-user--mobile .n1-nav-user-profile {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  border-radius: 9999px;
}

.n1-nav-user--mobile .n1-nav-user-name {
  display: none;
}

.n1-nav-user--mobile .n1-nav-avatar {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.7rem;
  box-shadow: none;
}

.n1-nav-logout--mobile {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 0.45rem;
  color: #2d5016;
  border-color: rgba(45, 80, 22, 0.2);
  background: rgba(45, 80, 22, 0.06);
}

.n1-nav-logout--mobile .n1-nav-logout-label {
  display: none;
}

.n1-nav-logout--mobile i {
  font-size: 0.75rem;
  opacity: 1;
}

.n1-nav-logout--mobile:hover {
  color: #f5f2eb;
  background: #c65d3b;
  border-color: #c65d3b;
}

.n1-nav-avatar {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 9999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.n1-nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n1-profile-panel {
  display: none;
}

.n1-profile-panel.active {
  display: block;
}

.n1-profile-nav-item.active {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
}

.n1-avatar-preview {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: #f59e0b;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.n1-avatar-preview--header {
  width: 3rem;
  height: 3rem;
  font-size: 1rem;
  border-width: 1.5px;
}

@media (min-width: 640px) {
  .n1-avatar-preview--header {
    width: 5rem;
    height: 5rem;
    font-size: 1.5rem;
    border-width: 2px;
  }
}

.n1-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n1-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  z-index: 110;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  max-width: 90vw;
}

.n1-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.n1-toast.success {
  background: #166534;
  color: #dcfce7;
}

.n1-toast.error {
  background: #991b1b;
  color: #fee2e2;
}

/* Profile lists */
.n1-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

.n1-loading[hidden],
.n1-empty-state[hidden],
.n1-btn-load-more[hidden] {
  display: none !important;
}

.n1-loading-spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid rgba(245, 158, 11, 0.25);
  border-top-color: #f59e0b;
  border-radius: 9999px;
  animation: n1-spin 0.7s linear infinite;
}

@keyframes n1-spin {
  to { transform: rotate(360deg); }
}

.n1-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0.25rem 0 0.5rem;
  padding: 1.5rem 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 0.75rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(245, 158, 11, 0.07), transparent 65%),
    rgba(10, 10, 15, 0.45);
}

.n1-empty-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #f59e0b;
  font-size: 1.125rem;
}

.n1-empty-state__title {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.n1-empty-state__desc {
  margin: 0.375rem 0 0;
  max-width: 22rem;
  color: #94a3b8;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.n1-empty-state__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.375rem;
  background: #f59e0b;
  color: #0a0a0f;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.n1-empty-state__cta:hover {
  background: #d97706;
}

.n1-empty-state__cta i {
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.n1-empty-state__cta:hover i {
  transform: translateX(2px);
}

@media (min-width: 640px) {
  .n1-empty-state {
    padding: 2.75rem 2rem;
  }

  .n1-empty-state__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
  }

  .n1-empty-state__title {
    font-size: 1.25rem;
  }

  .n1-empty-state__desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .n1-empty-state__cta {
    margin-top: 1.25rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

.n1-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .n1-article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .n1-article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.n1-article-card {
  display: flex;
  flex-direction: column;
  background: #0a0a0f;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.n1-article-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

.n1-article-card__thumb {
  display: block;
  height: 8.5rem;
  overflow: hidden;
  background: #111827;
}

.n1-article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.n1-article-card:hover .n1-article-card__thumb img {
  transform: scale(1.06);
}

.n1-article-card__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #4b5563;
  font-size: 1.5rem;
}

.n1-article-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.875rem 1rem 1rem;
  min-width: 0;
  flex: 1;
}

.n1-article-card__cat {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f59e0b;
  background: #1f2937;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

.n1-article-card__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
}

.n1-article-card__title a {
  color: #fff;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.n1-article-card__title a:hover {
  color: #f59e0b;
}

.n1-article-card__meta {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.n1-btn-remove {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.25rem 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}

.n1-btn-remove:hover {
  color: #f87171;
}

.n1-btn-load-more {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.625rem 1rem;
  border: 1px solid #4b5563;
  border-radius: 0.375rem;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.n1-btn-load-more:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}

.n1-btn-load-more.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.n1-btn-load-more:disabled {
  cursor: not-allowed;
  opacity: 0.85;
  filter: none;
}

.n1-btn-load-more.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: profile-load-more-spin 0.7s linear infinite;
}

@keyframes profile-load-more-spin {
  to { transform: rotate(360deg); }
}


/* Confirm dialog */
.n1-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
}

.n1-confirm-overlay.show {
  display: flex;
}

.n1-confirm-modal {
  width: 100%;
  max-width: 22rem;
  background: #1a1a2e;
  border: 1px solid #374151;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.n1-confirm-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.n1-confirm-desc {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
}

.n1-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
}

.n1-confirm-cancel,
.n1-confirm-ok {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.n1-confirm-cancel {
  border: 1px solid #4b5563;
  background: transparent;
  color: #9ca3af;
}

.n1-confirm-cancel:hover {
  border-color: #6b7280;
  color: #e5e7eb;
}

.n1-confirm-ok {
  border: none;
  background: #f59e0b;
  color: #0a0a0f;
}

.n1-confirm-ok:hover {
  background: #d97706;
}

/* Detail favorite button */
.detail-favorite-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.875rem;
  border: 1px solid #374151;
  border-radius: 9999px;
  background: #1f2937;
  color: #e5e7eb;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.detail-favorite-btn__icon,
.detail-favorite-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.detail-favorite-btn:not(.is-active) .detail-favorite-btn__icon,
.detail-favorite-btn:not(.is-active) svg {
  fill: none;
}

.detail-favorite-btn.is-active {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.12);
}

.detail-favorite-btn.is-active .detail-favorite-btn__icon,
.detail-favorite-btn.is-active svg {
  fill: currentColor;
  stroke: currentColor;
}

.detail-favorite-btn__spinner {
  display: none;
  box-sizing: border-box;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: detail-fav-spin 0.7s linear infinite;
}

.detail-favorite-btn.is-toggling {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.14);
  cursor: wait;
  pointer-events: none;
  animation: detail-fav-pulse 1.2s ease-in-out infinite;
}

.detail-favorite-btn.is-toggling .detail-favorite-btn__icon {
  display: none;
}

.detail-favorite-btn.is-toggling .detail-favorite-btn__spinner {
  display: inline-block;
}

@keyframes detail-fav-spin {
  to { transform: rotate(360deg); }
}

@keyframes detail-fav-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
  50% { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22); }
}

.detail-favorite-btn:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}

.detail-favorite-toast {
  position: fixed;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  z-index: 30000;
  max-width: min(92vw, 22.5rem);
  padding: 0.75rem 1.125rem;
  border-radius: 0.625rem;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 0.75rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.detail-favorite-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 480px) {
  .detail-favorite-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .detail-favorite-btn {
    padding: 0;
    width: 2.5rem;
  }
}

/* ===== Auth form visuals — cream / forest / terracotta ===== */
.n1-auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  min-height: 60vh;
  box-sizing: border-box;
}

.n1-auth-card {
  width: 100%;
  max-width: 26rem;
  padding: 1.6rem 1.75rem 1.85rem;
  background: #f5f2eb;
  border: 1px solid rgba(45, 80, 22, 0.14);
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(45, 80, 22, 0.1);
  color: #2d5016;
  box-sizing: border-box;
}

.n1-auth-card--modal {
  max-width: none;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.n1-auth-card .n1-auth-eyebrow {
  margin: 0 0 0.35rem;
  color: #c65d3b;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.n1-auth-card h1,
.n1-auth-card h2,
.n1-auth-card .n1-auth-title {
  margin: 0 2rem 1.15rem 0;
  color: #2d5016;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.n1-auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(45, 80, 22, 0.14);
  margin-bottom: 1.15rem;
}

.n1-auth-tab {
  flex: 1;
  padding: 0.55rem 0.25rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(45, 80, 22, 0.55);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.n1-auth-tab:hover { color: #2d5016; }

.n1-form-group { margin-bottom: 1rem; }

.n1-form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(45, 80, 22, 0.72);
}

.n1-form-input-wrap {
  position: relative;
}

.n1-form-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(45, 80, 22, 0.18);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.55);
  color: #2d5016;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.n1-form-input::placeholder {
  color: rgba(45, 80, 22, 0.4);
}

.n1-form-input.has-toggle { padding-right: 2.5rem; }

.n1-form-input:focus {
  outline: none;
  border-color: rgba(198, 93, 59, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(198, 93, 59, 0.18);
}

.n1-form-group.has-error .n1-form-input {
  border-color: #c65d3b;
}

.n1-pwd-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: rgba(45, 80, 22, 0.45);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.n1-pwd-toggle:hover { color: #c65d3b; }

.n1-btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 0.65rem;
  background: #2d5016;
  color: #f5f2eb;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.n1-btn-auth:hover { background: #234012; }

.n1-btn-auth:active { transform: translateY(1px); }

.n1-login-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(45, 80, 22, 0.14);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(45, 80, 22, 0.65);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.n1-login-modal__close:hover {
  color: #c65d3b;
  border-color: rgba(198, 93, 59, 0.4);
  background: #fff;
}

.n1-social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  font-size: 0.7rem;
  color: rgba(45, 80, 22, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.n1-social-row::before,
.n1-social-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(45, 80, 22, 0.14);
}

.n1-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.n1-social-btn {
  padding: 0.55rem;
  border: 1px solid rgba(45, 80, 22, 0.18);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.45);
  color: rgba(45, 80, 22, 0.75);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.n1-social-btn:hover {
  color: #c65d3b;
  border-color: rgba(198, 93, 59, 0.45);
  background: #fff;
}

@media (max-width: 480px) {
  .n1-login-modal {
    align-items: flex-end;
    padding: 0;
  }

  .n1-login-modal__panel {
    max-width: none;
    max-height: min(92vh, 100%);
    border-radius: 1rem 1rem 0 0;
    padding: 1.35rem 1.15rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
    animation: n1-modal-sheet-in 0.24s ease-out;
  }

  @keyframes n1-modal-sheet-in {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .n1-auth-card h1,
  .n1-auth-card h2,
  .n1-auth-card .n1-auth-title {
    font-size: 1.3rem;
  }
}

/* Light-theme friendly nav member UI */
.n1-nav-user {
  display: none;
  align-items: center;
}

.n1-nav-user-name {
  color: inherit;
  opacity: 0.92;
}

.n1-nav-user-profile:hover {
  background: rgba(0, 0, 0, 0.06);
}

.n1-nav-user-profile:hover .n1-nav-user-name {
  color: inherit;
  opacity: 1;
}

.n1-nav-logout {
  color: inherit;
  opacity: 0.72;
}

.n1-nav-logout:hover {
  color: inherit;
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

.n1-nav-avatar {
  background: #1f2937;
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.55);
}

.n1-nav-signin {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  opacity: 0.88;
  transition: opacity 0.15s ease;
}

.n1-nav-signin:hover { opacity: 1; }

/* Desktop auth lives in the search row; mobile uses the compact header chips */
@media (max-width: 767px) {
  .n2-nav-auth,
  #loginBtn,
  #userInfo {
    display: none !important;
  }
}

@media (min-width: 768px) {
  #loginBtnMob,
  #userInfoMob,
  .n2-nav-mobile-auth {
    display: none !important;
  }
}

.n1-profile-page {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.n1-profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 0.75rem;
  color: #e5e7eb;
}

.n1-profile-header h1 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}

.n1-profile-header p {
  margin: 0.15rem 0 0;
  color: #9ca3af;
  font-size: 0.875rem;
}

.n1-profile-stats {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  flex-shrink: 0;
  text-align: center;
}

.n1-profile-stats strong {
  display: block;
  color: #fff;
  font-size: 1.125rem;
}

.n1-profile-stats span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.n1-profile-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  border-bottom: 1px solid #374151;
  margin-bottom: 1rem;
}

.n1-profile-nav-item {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: #9ca3af;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.n1-profile-panel {
  display: none;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  color: #e5e7eb;
}

.n1-profile-panel.active {
  display: block;
}

.n1-profile-panel h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.05rem;
}

.n1-profile-panel .n1-form-input,
.n1-profile-panel input[type="text"],
.n1-profile-panel input[type="email"],
.n1-profile-panel input[type="password"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  background: #0a0a0f;
  color: #e5e7eb;
  font: inherit;
  font-size: 0.875rem;
}

.n1-profile-panel label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.n1-profile-panel button[type="submit"],
.n1-profile-panel .n1-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 0.375rem;
  background: #f59e0b;
  color: #0a0a0f;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .n1-profile-header { flex-wrap: wrap; }
  .n1-profile-stats { margin-left: 0; width: 100%; justify-content: flex-start; }
}


.n1-confirm-ok {
  position: relative;
}

.n1-confirm-ok:disabled,
.n1-confirm-cancel:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.n1-confirm-ok.is-loading {
  color: transparent;
  pointer-events: none;
}

.n1-confirm-ok.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: n1-confirm-spin 0.7s linear infinite;
}

@keyframes n1-confirm-spin {
  to { transform: rotate(360deg); }
}
