/* NMSeawise Midnight Luxury profile (design-refs/profile-target.png). Scoped to the profile hero (own profile and public profiles).
   Purchased Shop looks keep working: an equipped avatar frame (.nm-frame) keeps its own ring, a purchased profile theme (.nm-shop-theme)
   keeps its own background, and a purchased banner (.pp-cover-shop) keeps its own cover. Other pages are not affected. */
.public-profile,
.public-profile-hero {
  --pm-navy-0: #050d1f;
  --pm-navy-1: #0a1a33;
  --pm-navy-2: #10264a;
  --pm-gold-hi: #fff1c9;
  --pm-gold: #e3c083;
  --pm-gold-mid: #c9a46a;
  --pm-gold-lo: #8f6a33;
  --pm-ink: #15110a;
  --pm-text: #f5efe2;
  --pm-muted: #a9b4c6;
  --pm-blue: #2f8cff;
  --pm-metal: linear-gradient(180deg, #fff3d2 0%, #e7c98f 26%, #b98c4d 50%, #e9cb8f 74%, #f7e3b0 100%);
}

/* ---------- midnight stage: deep navy with soft atmospheric light behind the content ---------- */
.public-profile > .public-profile-hero.pp-v2:not(.nm-shop-theme) {
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(47, 140, 255, .22) 0%, rgba(47, 140, 255, 0) 70%),
    radial-gradient(45% 35% at 85% 60%, rgba(47, 140, 255, .14) 0%, rgba(47, 140, 255, 0) 70%),
    linear-gradient(180deg, var(--pm-navy-1) 0%, var(--pm-navy-0) 62%, var(--pm-navy-1) 100%);
  border-radius: 0;
  box-shadow: none;
}

/* ---------- cover: a full-width maritime horizon (the default cover; a purchased banner keeps its own picture) ---------- */
.public-profile > .pp-v2 .pp-cover:not(.pp-cover-shop) {
  background:
    radial-gradient(70% 90% at 78% 110%, rgba(255, 186, 96, .55) 0%, rgba(255, 186, 96, 0) 60%),
    linear-gradient(180deg, #0b1d3a 0%, #17406e 46%, #3c6f9a 66%, #0c1b33 67%, #07111f 100%);
}
.public-profile > .pp-v2 .pp-cover:not(.pp-cover-shop)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, rgba(227, 192, 131, 0) 0%, #fff1c9 50%, rgba(227, 192, 131, 0) 100%);
  box-shadow: 0 0 18px 4px rgba(255, 210, 140, .55);
}

/* ---------- avatar: large, with an illuminated champagne-gold ring (not on a purchased frame) ---------- */
.public-profile > .pp-v2:not(.nm-frame) .pp-avatar .avatar {
  border: 0 !important;
  box-shadow:
    0 0 0 4px var(--pm-navy-0),
    0 0 0 6px #d8b77a,
    0 0 0 7px rgba(255, 236, 190, .35),
    0 0 26px 6px rgba(227, 192, 131, .45),
    0 14px 28px rgba(0, 0, 0, .55);
}

/* ---------- name, handle, roles ---------- */
.public-profile > .pp-v2 .public-profile-info h1:not([class*="nm-font-"]) { font-family: "Cormorant Garamond", Georgia, serif; }
.public-profile > .pp-v2 .public-profile-info h1 {
  font-weight: 600; letter-spacing: .2px;
  color: var(--pm-text); text-shadow: 0 2px 14px rgba(0, 0, 0, .55), 0 0 22px rgba(255, 236, 190, .18);
  font-size: clamp(34px, 5vw, 46px); line-height: 1.05;
}
.public-profile > .pp-v2 .profile-handle { color: var(--pm-muted); font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; margin: 4px 0 0; }
.public-profile > .pp-v2 .profile-role:not([class*="nm-font-"]) { font-family: "Cormorant Garamond", Georgia, serif; }
.public-profile > .pp-v2 .profile-role {
  font-size: 20px; font-weight: 600; margin: 6px 0 0;
  color: var(--pm-gold);
  background: linear-gradient(180deg, #fff3d2 0%, #e3c083 45%, #b98c4d 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.public-profile > .pp-v2 .profile-bio { color: var(--pm-muted); }

/* ---------- action buttons: transparent, illuminated gold outline; Create a post: full-width metallic gold ---------- */
.public-profile > .pp-v2 .pp-main { grid-template-columns: minmax(0, 1fr) !important; }
.public-profile > .pp-v2 .pp-avatar { grid-column: 1; grid-row: 1; margin-bottom: 18px; }
.public-profile > .pp-v2 .public-profile-info { grid-column: 1; grid-row: 2; padding-top: 0 !important; margin-top: 4px; }
.public-profile > .pp-v2 .public-profile-actions { grid-column: 1; grid-row: 3; display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.public-profile > .pp-v2 .public-profile-actions .btn {
  border-radius: 999px; min-height: 52px; padding: 12px 18px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; font-weight: 600;
  background: rgba(7, 17, 34, .55); color: var(--pm-text); border: 1.5px solid #c9a46a; width: 100%; justify-content: center; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 190, .12), 0 0 14px rgba(227, 192, 131, .28), 0 0 2px rgba(255, 236, 190, .6);
  text-decoration: none;
}
.public-profile > .pp-v2 .public-profile-actions .btn:focus-visible { outline: 2px solid var(--pm-gold-hi); outline-offset: 3px; }
.public-profile > .pp-v2 .public-profile-actions a.btn { grid-column: 1 / -1; background: var(--pm-metal); color: var(--pm-ink); border: 1px solid #f7e3b0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 4px rgba(120, 80, 30, .35), 0 0 22px rgba(255, 207, 130, .45), 0 8px 18px rgba(0, 0, 0, .45); font-weight: 700; }

/* ---------- statistics: thin vertical gold separators ---------- */
.public-profile > .pp-v2 .public-profile-counts {
  border-top: 0; margin: 22px 0 0; padding: 0; position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.public-profile > .pp-v2 .public-profile-counts::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(201, 164, 106, 0) 0%, #e3c083 18%, #fff1c9 50%, #e3c083 82%, rgba(201, 164, 106, 0) 100%);
  box-shadow: 0 0 10px rgba(255, 216, 150, .55);
}
.public-profile > .pp-v2 .public-profile-counts > * { padding: 16px 4px 0; position: relative; }
.public-profile > .pp-v2 .public-profile-counts > * + *::before {
  content: ''; position: absolute; left: 0; top: 18px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, rgba(201, 164, 106, 0), #d8b77a 30%, #fff1c9 50%, #d8b77a 70%, rgba(201, 164, 106, 0));
}
.public-profile > .pp-v2 .public-profile-counts b, .public-profile > .pp-v2 .public-profile-counts .pp-stat-button b { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px !important; font-weight: 600; color: var(--pm-text); font-variant-numeric: lining-nums; }
.public-profile > .pp-v2 .public-profile-counts span { color: var(--pm-text); opacity: .92; font-family: "Cormorant Garamond", Georgia, serif; font-size: 16px; }
.public-profile > .pp-v2 .pp-stat-button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }

/* ---------- wall note and tabs ---------- */
.public-profile > .pp-v2 .public-wall-note, .public-profile > .pp-v2 .profile-friend-actions { color: var(--pm-muted); font-family: "Cormorant Garamond", Georgia, serif; font-size: 17px; }
.public-profile > .public-profile-tabs { border-bottom: 0; position: relative; }
.public-profile > .public-profile-tabs::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(201, 164, 106, 0), #e3c083 20%, #fff1c9 50%, #e3c083 80%, rgba(201, 164, 106, 0));
  box-shadow: 0 0 10px rgba(255, 216, 150, .45);
}
.public-profile > .public-profile-tabs button { font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; color: var(--pm-muted); }
.public-profile > .public-profile-tabs button[aria-pressed="true"] { color: var(--pm-gold-hi); border-bottom-color: #d8b77a; font-weight: 700; }

/* ---------- floating Messenger launcher on the profile: illuminated gold border ---------- */
body:has(.public-profile) .nm-flaunch, body:has(.public-profile) .nm-fmin, body:has(.public-profile) #nm-launch, body:has(.public-profile) .nm-launch {
  background: radial-gradient(circle at 50% 35%, #15294d 0%, #050d1f 75%) !important;
  border: 1.5px solid #d8b77a !important;
  box-shadow: 0 0 0 3px rgba(227, 192, 131, .18), 0 0 22px rgba(227, 192, 131, .55), 0 10px 24px rgba(0, 0, 0, .5) !important;
}

/* ---------- phones: the same look; no sideways scroll; the actions keep their full-width rows ---------- */
@media (max-width: 480px) {
  .public-profile > .pp-v2 .public-profile-info h1 { font-size: 34px; }
  .public-profile > .pp-v2 .public-profile-counts b { font-size: 26px; }
  .public-profile > .pp-v2 .public-profile-actions .btn { font-size: 17px; min-height: 48px; padding: 10px 12px; }
  .public-profile > .pp-v2 .public-profile-counts > * { padding-inline: 0; }
}
@media (min-width: 900px) {
  .public-profile > .pp-v2 .public-profile-info h1 { font-size: 46px; }
}

/* ---------- top bar rule and the active My Space tab on the profile (golden, as in the reference) ---------- */
body:has(.public-profile) .gtop { position: relative; border-bottom: 0 !important; }
body:has(.public-profile) .gtop::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(227, 192, 131, 0) 0%, #e3c083 18%, #fff1c9 50%, #e3c083 82%, rgba(227, 192, 131, 0) 100%);
  box-shadow: 0 0 12px 2px rgba(255, 214, 150, .5);
}
body:has(.public-profile) .tabs a[aria-current="page"] { color: #fff1c9 !important; text-shadow: 0 0 12px rgba(255, 220, 150, .55); }
body:has(.public-profile) .tabs a[aria-current="page"] .pill { background: radial-gradient(circle, rgba(227, 192, 131, .28), rgba(227, 192, 131, .06)); box-shadow: inset 0 0 0 1px #d8b77a, 0 0 14px rgba(227, 192, 131, .35); }
body:has(.public-profile) .tabs a[aria-current="page"] svg, body:has(.public-profile) .tabs a[aria-current="page"] .icon { color: #fff1c9; }
