/* newfront2 — page surfaces */

.nf2-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
  width: 100%;
}
@media (max-width: 1020px) {
  .nf2-page__layout { grid-template-columns: 1fr; }
}

.nf2-page__main { min-width: 0; width: 100%; }

.nf2-page__head {
  margin-bottom: 16px;
}
.nf2-page__head h1,
.nf2-page__head > strong {
  margin: 0;
  font-family: var(--nf2-display);
  font-size: clamp(26px, 4vw, 36px);
  color: var(--nf2-teal);
  line-height: 1.1;
}
.nf2-page__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nf2-coral);
}
.nf2-back {
  color: var(--nf2-teal);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.nf2-back:hover { color: var(--nf2-coral); }

.nf2-panel,
.nf2-panel__inner {
  background: var(--nf2-surface) !important;
  border: 1px solid var(--nf2-line);
  border-radius: 22px !important;
  box-shadow: var(--nf2-shadow);
}
.nf2-panel__inner { padding: 18px !important; }

.nf2-empty {
  padding: 24px;
  text-align: center;
  border-radius: 16px;
  background: rgba(15, 76, 72, 0.06);
  color: var(--nf2-ink-soft);
}

/* Discover */
.nf2-discover__stage {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr);
  gap: 16px;
}
@media (max-width: 1020px) {
  .nf2-discover__stage { grid-template-columns: 1fr; }
  .nf2-discover__bio { order: 2; }
  .nf2-discover__card { order: 1; }
}
.nf2-discover__bio {
  background: var(--nf2-surface);
  border: 1px solid var(--nf2-line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--nf2-shadow);
}

/* Events */
.nf2-events__list {
  display: grid;
  gap: 10px;
}
.nf2-events__item {
  display: grid !important;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--nf2-surface);
  border: 1px solid var(--nf2-line);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--nf2-shadow);
  margin: 0 !important;
}
.nf2-events__item .notific-guests__photo,
.nf2-events__item .notific-guests__photo img {
  width: 64px; height: 64px;
  border-radius: 16px;
  object-fit: cover;
}
.nf2-events__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.nf2-events__meta strong {
  display: block;
  color: var(--nf2-ink);
  font-size: 16px;
}
.nf2-events__meta small {
  color: var(--nf2-muted);
  font-size: 13px;
}
.nf2-events__meta .btn-blue,
.nf2-events__meta .nf2-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px !important;
  background: var(--nf2-teal) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  width: auto !important;
  min-height: 40px !important;
}

/* Messages */
.nf2-messages .messages__main {
  background: var(--nf2-surface);
  border: 1px solid var(--nf2-line);
  border-radius: 22px;
  box-shadow: var(--nf2-shadow);
  padding: 16px;
  overflow: hidden;
}
.nf2-messages__split {
  display: grid !important;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 0;
  min-height: 62vh;
}
@media (max-width: 900px) {
  .nf2-messages__split { grid-template-columns: 1fr; }
}
.nf2-messages .chats-comment-hrefs {
  border-right: 1px solid var(--nf2-line);
  padding-right: 8px;
}
.nf2-messages #chats {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 62vh;
  overflow: auto;
}
.nf2-messages #chats .click-comment {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .15s ease;
}
.nf2-messages #chats .click-comment:hover,
.nf2-messages #chats .active-comment {
  background: rgba(15, 76, 72, 0.08);
}
.nf2-messages .comment-place__photo img {
  width: 52px; height: 52px;
  border-radius: 14px;
  object-fit: cover;
}
.nf2-messages .comment-place__user h3 {
  margin: 0 0 4px;
  color: var(--nf2-ink) !important;
  font-size: 15px;
}
.nf2-messages .incoming-message {
  color: var(--nf2-muted) !important;
  font-size: 13px;
}
.nf2-messages .incoming-message__number {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--nf2-coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.nf2-messages .comment-min-info,
.nf2-messages .nf2-chat-pane {
  /* shell only — chat.php fills #chat; see chat-pane.css */
  min-height: 0;
}

/* Profile view */
.nf2-profile-view__stage {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 16px;
}
@media (max-width: 1020px) {
  .nf2-profile-view__stage { grid-template-columns: 1fr; }
}
.nf2-profile-view__bio {
  background: var(--nf2-surface);
  border: 1px solid var(--nf2-line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--nf2-shadow);
}
.nf2-profile-view .profile-glob__content,
.nf2-profile-view .use-profile-glob__pic,
.nf2-profile-view .use-profile-glob__pic img {
  border-radius: 22px;
  overflow: hidden;
}
.nf2-profile-view .select-coins__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px !important;
  background: var(--nf2-coral) !important;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  margin: 10px 0 16px;
}
.nf2-profile-view .view-profiles {
  margin-top: 18px;
  grid-column: 1 / -1;
}
.nf2-profile-view .view-profiles h3 {
  font-family: var(--nf2-display);
  color: var(--nf2-teal);
  margin: 0 0 12px;
}
.nf2-profile-view .view-profiles__flex {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 700px) {
  .nf2-profile-view .view-profiles__flex { grid-template-columns: repeat(2, 1fr); }
}
.nf2-profile-view .view-profiles__box,
.nf2-profile-view .view-profiles__box img {
  border-radius: 16px;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Settings */
.nf2-settings__hero {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--nf2-surface);
  border: 1px solid var(--nf2-line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--nf2-shadow);
  margin-bottom: 16px;
}
.nf2-settings__hero .profile-info__photo img {
  width: 72px; height: 72px;
  border-radius: 18px;
  object-fit: cover;
}
.nf2-settings__hero h1 {
  margin: 0;
  font-family: var(--nf2-display);
  color: var(--nf2-teal) !important;
  font-size: 28px !important;
}
.nf2-settings .profile-blocks__fix,
.nf2-settings .profile-blocks__wrap,
.nf2-settings .increase-uploading,
.nf2-settings .profile-interests {
  background: var(--nf2-surface);
  border: 1px solid var(--nf2-line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--nf2-shadow);
  margin-bottom: 14px;
}
.nf2-settings .profile-info__select {
  margin-bottom: 10px;
}
.nf2-settings .profile-info__select span {
  display: block;
  margin-bottom: 6px;
  color: var(--nf2-muted);
  font-size: 13px;
  font-weight: 600;
}
.nf2-settings select,
.nf2-settings textarea,
.nf2-settings input[type="text"],
.nf2-settings input[type="password"],
.nf2-settings input[type="email"] {
  width: 100%;
  border-radius: 12px !important;
  border: 1px solid var(--nf2-line) !important;
  background: var(--nf2-paper-2) !important;
  min-height: 44px;
  padding: 10px 12px;
  font-family: var(--nf2-font);
  box-sizing: border-box;
}
.nf2-settings textarea { min-height: 110px; resize: vertical; }
.nf2-settings .btn-pink,
.nf2-settings .btn-blue {
  background: var(--nf2-teal) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 22px rgba(15, 76, 72, 0.2) !important;
}
.nf2-settings .my-interests__cnt ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.nf2-settings .my-interests__cnt li label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 76, 72, 0.08);
  color: var(--nf2-teal);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.nf2-settings .my-interests__act label,
.nf2-settings .my-interests__cnt li.my-interests__act label {
  background: var(--nf2-teal);
  color: #fff;
}

/* Retint newsetform (settings) to Harbor */
body.nf2 {
  --newsetform_background: transparent;
  --newsetform_foreground: var(--nf2-ink);
  --newsetform_card: #fff;
  --newsetform_border: var(--nf2-line);
  --newsetform_primary: var(--nf2-teal);
  --newsetform_destructive: var(--nf2-coral);
  --newsetform_muted: var(--nf2-paper-2);
  --newsetform_muted-foreground: var(--nf2-muted);
}
body.nf2 .newsetform_grid {
  gap: 14px;
}
body.nf2 .newsetform_card {
  background: #fff !important;
  border: 1px solid var(--nf2-line) !important;
  border-radius: 18px !important;
  box-shadow: var(--nf2-shadow);
  color: var(--nf2-ink);
}
body.nf2 .newsetform_btn-primary {
  background: var(--nf2-teal) !important;
  border-color: var(--nf2-teal) !important;
}
body.nf2 .newsetform_btn-destructive {
  background: var(--nf2-coral) !important;
  border-color: var(--nf2-coral) !important;
}
body.nf2 .newsetform_input-wrapper input {
  background: var(--nf2-paper-2) !important;
  border: 1px solid var(--nf2-line) !important;
  color: var(--nf2-ink) !important;
  border-radius: 12px !important;
}

/* Steps inside onboard */
.nf2-step { display: grid; gap: 12px; }
.nf2-step__title {
  margin: 0;
  font-family: var(--nf2-font);
  font-size: 18px;
  color: var(--nf2-teal);
}
.nf2-step__lead {
  margin: 0;
  color: var(--nf2-ink-soft);
  font-size: 14px;
  line-height: 1.45;
}
.nf2-step .btn-blue,
.nf2-step button.btn-blue {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--nf2-teal);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Legal / unsub */
.nf2-legal-guest {
  background: var(--nf2-paper);
  min-height: 50vh;
  padding: 32px 16px 48px;
}
.nf2-legal-guest__inner {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--nf2-line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--nf2-shadow);
}
.nf2-legal .unsub-form,
body.nf2 .unsub-form {
  background: rgba(15, 76, 72, 0.1) !important;
  border-radius: 14px;
  padding: 14px;
  color: var(--nf2-ink);
}

/* Popups retint */
body.nf2 .modal-content,
body.nf2 .modal-ragistor,
body.nf2 .cpd-dialog,
body.nf2 [class*="popup"] .modal-content {
  border-radius: 22px;
}
body.nf2 .btn-blue,
body.nf2 .button--primary,
body.nf2 .button.button--primary {
  background: var(--nf2-teal) !important;
  border-radius: 14px !important;
}
body.nf2 .btn-pink {
  background: var(--nf2-coral) !important;
}

/* Kill leftover old section chrome when nf2-page is used */
.nf2-page.site-love__main,
.nf2-page .section-profile__fon:before { display: contents; }
body.nf2 .section-profile__fon:before { display: none !important; }

/* Coin / premium dialogs */
body.nf2 .cpd-dialog {
  background: #fff !important;
  border-radius: 24px !important;
  border: 1px solid var(--nf2-line);
  box-shadow: var(--nf2-shadow);
}
body.nf2 .cpd-title,
body.nf2 #match h1 {
  font-family: var(--nf2-display) !important;
  color: var(--nf2-teal) !important;
}
body.nf2 .cpd-icon-pink,
body.nf2 .cpd-feature svg.cpd-icon-pink { color: var(--nf2-coral) !important; fill: var(--nf2-coral) !important; }
body.nf2 .cpd-close-btn { color: var(--nf2-ink-soft); }
body.nf2 #match .btn-pink {
  background: var(--nf2-coral) !important;
  border-radius: 14px !important;
}
body.nf2 #match .btn-black {
  background: var(--nf2-teal) !important;
  border-radius: 14px !important;
}
body.nf2 .modal-questionnaires {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
}
