/* =====================================================================
   Beshy — Brand Visual System  (Xiaohongshu / RED inspired)
   Big Idea: "Sunlit & unashamed" — warm natural daylight on skin.
   Memory point: a confident warm coral-red + generously rounded soft
   cards on a warm-paper canvas, with an image-forward masonry feed.
   This file is layered LAST over Bulma so its tokens & rules win.
   ===================================================================== */

/* Distinctive editorial display (Bricolage Grotesque) + clean body (Nunito Sans). CN fallbacks included. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700&display=swap');

:root {
  /* ---- Color: semantic roles (LIGHT) ---- */
  --ns-canvas:        #F7F5F3;   /* cool off-white (subtle teal-gray) */
  --ns-surface:       #FFFFFF;   /* cards */
  --ns-surface-2:     #F2EEEB;   /* subtle raised / fills (cool) */
  --ns-fg:            #1F1A17;   /* cool near-black (teal-tinted ink) */
  --ns-fg-soft:       #4F4742;
  --ns-muted:         #8E867E;   /* secondary text (cool gray) */
  --ns-border:        #ECE5DF;   /* cool hairline */

  --ns-primary:       #FF3B5C;   /* signature RED (小红书暖红) */
  --ns-primary-press: #E22950;
  --ns-primary-soft:  #FFE9ED;   /* tinted background for primary */
  --ns-accent:        #FF6B85;   /* tonal teal-cyan, used for gradients */
  --ns-warm:          #FF7A59;   /* warm coral — sparing pops (hearts/likes) */

  --ns-success:       #1FB877;
  --ns-warning:       #F5A623;
  --ns-danger:        #E5484D;

  --ns-on-primary:    #FFFFFF;

  /* ---- Typography ---- */
  --ns-font-display: "Bricolage Grotesque", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ns-font-body:    "Nunito Sans", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  /* type scale (1.25 major-third-ish) */
  --ns-text-xs:  0.75rem;
  --ns-text-sm:  0.875rem;
  --ns-text-base:1rem;
  --ns-text-lg:  1.125rem;
  --ns-text-xl:  1.375rem;
  --ns-text-2xl: 1.75rem;
  --ns-text-3xl: 2.25rem;
  --ns-leading:  1.6;

  /* ---- Spacing (4px base) ---- */
  --ns-space-1: 4px;  --ns-space-2: 8px;  --ns-space-3: 12px;
  --ns-space-4: 16px; --ns-space-5: 20px; --ns-space-6: 24px;
  --ns-space-8: 32px; --ns-space-10: 40px; --ns-space-12: 48px;

  /* ---- Radius: generous = friendly ---- */
  --ns-radius-sm:  10px;
  --ns-radius-md:  16px;
  --ns-radius-lg:  22px;
  --ns-radius-full:999px;

  /* ---- Shadow: soft, cool-tinted, low-opacity ---- */
  --ns-shadow-1: 0 1px 3px rgba(15, 42, 38, .06);
  --ns-shadow-2: 0 4px 16px rgba(15, 42, 38, .08);
  --ns-shadow-3: 0 12px 32px rgba(15, 42, 38, .11);

  /* ---- Motion ---- */
  --ns-dur-fast: 120ms;
  --ns-dur-base: 220ms;
  --ns-ease:     cubic-bezier(.2, 0, 0, 1);
}

/* ---- Dark theme (activated by the app's dark mode) ---- */
[data-theme="dark"], .theme-dark, html.dark, body.dark {
  --ns-canvas:    #171312;
  --ns-surface:   #1E1917;
  --ns-surface-2: #272019;
  --ns-fg:        #F2ECE8;
  --ns-fg-soft:   #C4BAB2;
  --ns-muted:     #968C84;
  --ns-border:    #342C27;
  --ns-primary:   #FF5C77;
  --ns-primary-press: #FF3B5C;
  --ns-primary-soft:  #3B1620;
  --ns-accent:    #FF7E93;
  --ns-warm:      #FF8A5B;
  --ns-shadow-1: 0 1px 3px rgba(0,0,0,.4);
  --ns-shadow-2: 0 4px 16px rgba(0,0,0,.5);
  --ns-shadow-3: 0 12px 32px rgba(0,0,0,.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ns-canvas:#171312; --ns-surface:#1E1917; --ns-surface-2:#272019;
    --ns-fg:#F2ECE8; --ns-fg-soft:#C4BAB2; --ns-muted:#968C84; --ns-border:#342C27;
    --ns-primary:#FF5C77; --ns-primary-press:#FF3B5C; --ns-primary-soft:#3B1620; --ns-accent:#FF7E93; --ns-warm:#FF8A5B;
  }
}

/* =====================================================================
   Base brand layer — restyle core Bulma surfaces toward the RED look.
   (frontend-design builds the masonry gallery on top of these tokens.)
   ===================================================================== */

body {
  background: var(--ns-canvas) !important;
  color: var(--ns-fg);
  font-family: var(--ns-font-body);
  line-height: var(--ns-leading);
}

h1, h2, h3, .title, .navbar-item.brand-logo {
  font-family: var(--ns-font-display);
  letter-spacing: -0.01em;
}

/* Top navbar — clean, light, branded */
.navbar {
  background: var(--ns-surface) !important;
  box-shadow: var(--ns-shadow-1);
  border-bottom: 1px solid var(--ns-border);
}
.navbar-item, .navbar-link { color: var(--ns-fg-soft) !important; font-weight: 600; }
.navbar-item:hover, .navbar-link:hover {
  background: var(--ns-surface-2) !important;
  color: var(--ns-primary) !important;
  border-radius: var(--ns-radius-sm);
}

/* Cards / boxes — big radius, soft shadow, hairline border */
.box, .card, .message {
  border-radius: var(--ns-radius-lg) !important;
  box-shadow: var(--ns-shadow-2) !important;
  border: 1px solid var(--ns-border) !important;
  background: var(--ns-surface);
}

/* Buttons — pill shaped; primary = brand red */
.button {
  border-radius: var(--ns-radius-full) !important;
  font-weight: 700;
  transition: transform var(--ns-dur-fast) var(--ns-ease), filter var(--ns-dur-fast) var(--ns-ease);
}
.button:active { transform: scale(.97); }
.button.is-primary, .button.is-link {
  background: var(--ns-primary) !important;
  border-color: var(--ns-primary) !important;
  color: var(--ns-on-primary) !important;
}
.button.is-primary:hover, .button.is-link:hover { filter: brightness(1.05); }

/* Hero banners (page headers) — warm coral wash instead of harsh blue */
.hero.is-info, .hero.is-primary, .hero.is-link {
  background-image: linear-gradient(135deg, var(--ns-primary), var(--ns-accent)) !important;
}

/* Links pick up the brand red */
a { color: var(--ns-primary); }
a:hover { color: var(--ns-primary-press); }

/* Inputs — rounded, soft */
.input, .textarea, .select select {
  border-radius: var(--ns-radius-sm) !important;
  border-color: var(--ns-border) !important;
  background: var(--ns-surface);
  color: var(--ns-fg);
}
.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--ns-primary) !important;
  box-shadow: 0 0 0 3px var(--ns-primary-soft) !important;
}

/* Tags / pills */
.tag.is-primary, .tag.is-link { background: var(--ns-primary-soft); color: var(--ns-primary); }

/* =====================================================================
   Xiaohongshu-style MASONRY gallery (frontend-design)
   Converts the Bulma flex `.columns.is-multiline.ns-masonry` grid into a
   true CSS multi-column waterfall. Each `.column` becomes an unbreakable
   card. Responsive column counts mirror RED's dense photo feed.
   ===================================================================== */
.ns-masonry {
  display: block !important;
  margin: 0 !important;
  column-gap: 20px;
  /* Size by a comfortable MIN card width (not a fixed count), so cards +
     their text never get cramped — the browser fits as many ~255px columns
     as the space allows (≈4 cols on a laptop, more on wide screens). */
  column-width: 255px;
}
@media (max-width: 640px) { .ns-masonry { column-width: 44vw; } }  /* ~2 columns on phones */

.ns-masonry > .column {
  display: block !important;
  width: 100% !important;
  flex: none !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 0 var(--ns-space-4) 0 !important;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

/* Card itself — rounded, soft, lifts on hover */
.ns-masonry > .column .card {
  border-radius: var(--ns-radius-md) !important;
  overflow: hidden;
  box-shadow: var(--ns-shadow-1) !important;
  border: 1px solid var(--ns-border) !important;
  transition: transform var(--ns-dur-base) var(--ns-ease),
              box-shadow var(--ns-dur-base) var(--ns-ease);
}
.ns-masonry > .column .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ns-shadow-3) !important;
}

/* The photo fills the card top with organic (natural) heights */
.ns-masonry > .column .card-image {
  margin: 0;
  background: var(--ns-surface-2);
}
.ns-masonry > .column .card-image img,
.ns-masonry > .column .card-image video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--ns-dur-base) var(--ns-ease);
}
.ns-masonry > .column .card:hover .card-image img { transform: scale(1.03); }

/* Slim, friendly card header (author strip) */
.ns-masonry > .column .card-header {
  box-shadow: none;
  border-bottom: 1px solid var(--ns-border);
}
.ns-masonry > .column .card-content { padding: var(--ns-space-3) var(--ns-space-4); }

/* NSFW blur-to-reveal — the app marks explicit media `.blurred-explicit`.
   We blur by default and reveal on hover/tap with a clear "tap to view" cue. */
.blurred-explicit {
  filter: blur(28px) saturate(.9);
  transition: filter var(--ns-dur-base) var(--ns-ease);
  cursor: pointer;
}
.card-image { position: relative; }
.card-image:has(.blurred-explicit)::after {
  content: "🔞 NSFW · tap to view";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ns-font-display); font-weight: 700; font-size: var(--ns-text-sm);
  color: #fff; background: rgba(20,15,14,.28);
  pointer-events: none; transition: opacity var(--ns-dur-base) var(--ns-ease);
}
.card-image:hover .blurred-explicit,
.blurred-explicit.revealed { filter: none; }
.card-image:hover::after { opacity: 0; }

/* =====================================================================
   REAL Xiaohongshu LAYOUT — left sidebar + full-bleed waterfall.
   Scoped to .ns-red-page (the gallery). On pages that contain it, the
   old Bulma top navbar + page hero are hidden so the RED shell takes over.
   ===================================================================== */

/* GLOBAL shell: whenever the rail is present (logged-in pages), hide the old
   top navbar and shift the whole page right to make room for the fixed rail. */
body:has(.ns-rail) { padding-top: 0 !important; padding-left: 244px; }
body:has(.ns-rail) > .navbar.is-fixed-top { display: none !important; }

/* full-bleed wrapper used by the gallery */
.ns-red-page { display: block; min-height: 100vh; background: var(--ns-canvas); }

/* Left sidebar (the RED rail) — fixed, global */
.ns-rail {
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 40;
  width: 232px;
  background: var(--ns-surface);
  border-right: 1px solid var(--ns-border);
  padding: var(--ns-space-5) var(--ns-space-3);
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.ns-rail-spacer { flex: 1 1 auto; }
.ns-badge { margin-left: auto; background: var(--ns-primary); color:#fff; font-size:.7rem; font-weight:700; border-radius: var(--ns-radius-full); padding: 1px 8px; }
.ns-me { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--ns-radius-md); }
.ns-me:hover { background: var(--ns-surface-2); }
.ns-me-name { font-weight: 700; color: var(--ns-fg); }
.ns-logo {
  font-family: var(--ns-font-display); font-weight: 800; font-size: 1.5rem;
  color: var(--ns-primary); display: flex; align-items: center; gap: 9px;
  padding: 6px 12px 18px;
}
.ns-logo .ns-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ns-primary); }
.ns-nav {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--ns-radius-md);
  color: var(--ns-fg-soft) !important; font-weight: 600; font-size: .98rem;
  transition: background var(--ns-dur-fast) var(--ns-ease), color var(--ns-dur-fast) var(--ns-ease);
}
.ns-nav .icon { width: 22px; }
/* Phosphor icons in the rail: slightly larger optical size than FA, align baseline */
.ns-nav .icon i.ph, .ns-nav .icon i.ph-fill,
.ns-upload .icon i.ph, .ns-upload .icon i.ph-fill {
  font-size: 19px;
  line-height: 1;
  vertical-align: -0.12em;
}
.ns-nav:hover { background: var(--ns-surface-2); color: var(--ns-fg) !important; }
.ns-nav.active { background: var(--ns-primary-soft); color: var(--ns-primary) !important; }
.ns-upload {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: var(--ns-radius-full);
  background: var(--ns-primary); color: var(--ns-on-primary) !important; font-weight: 700;
  transition: filter var(--ns-dur-fast) var(--ns-ease);
}
.ns-upload:hover { filter: brightness(1.06); }

/* Main column — full-bleed, no Bulma container max-width */
.ns-red-main { flex: 1; min-width: 0; padding: 30px 44px; }
.ns-red-main .container { max-width: none !important; margin: 0 !important; width: 100% !important; }

/* Kill the heavy hero; replace with a clean, slim page title */
.ns-red-page .hero.is-link, .ns-red-page .hero.is-info, .ns-red-page .hero.is-primary { display: none !important; }

/* Slim the filter box into a soft toolbar; tighten quick filters into pills */
.ns-red-page .box {
  border: 1px solid var(--ns-border) !important;
  box-shadow: none !important;
  background: var(--ns-surface);
  border-radius: var(--ns-radius-md) !important;
}
.ns-red-page .tags .tag, .ns-red-page .quick-filters .tag {
  border-radius: var(--ns-radius-full) !important;
  padding: 6px 14px; font-weight: 600;
}

/* Image-first cards: drop Bulma's colored card-header bar for a clean RED card */
.ns-masonry > .column .card-header {
  background: transparent !important;
  position: absolute; z-index: 2; width: 100%;
  box-shadow: none; border: none;
}
.ns-masonry > .column .card-header .card-header-title { color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.ns-masonry > .column .card { position: relative; }

/* =====================================================================
   Centered RED profile (Xiaohongshu personal page).
   Scoped to .ns-profile — restacks the 3-column hero into a centered
   avatar + name + stat pills, centers the tabs, and narrows the body.
   ===================================================================== */
.ns-profile .hero .hero-body > .container > .columns {
  flex-direction: column; align-items: center; text-align: center; gap: var(--ns-space-3);
}
.ns-profile .hero .columns > .column { width: auto !important; flex: none !important; max-width: 640px; }
/* big circular avatar with a soft ring */
.ns-profile .profile-photo img {
  width: 132px !important; height: 132px !important; object-fit: cover;
  border-radius: 50% !important; border: 4px solid #fff; box-shadow: var(--ns-shadow-2);
}
.ns-profile .profile-photo { border-radius: 50% !important; }
.ns-profile .hero .title { color: #fff !important; font-size: var(--ns-text-3xl); }
.ns-profile .hero .subtitle { color: rgba(255,255,255,.92) !important; }
/* member-since box → translucent glass pill, centered under the name */
.ns-profile .hero .box {
  background: rgba(255,255,255,.16) !important; color: #fff !important;
  border: none !important; box-shadow: none !important; backdrop-filter: blur(6px);
  border-radius: var(--ns-radius-md) !important; display: inline-flex; gap: var(--ns-space-4);
  flex-wrap: wrap; justify-content: center; padding: 10px 18px;
}
.ns-profile .hero .box a, .ns-profile .hero .box .tag { color: #fff !important; }
/* centered tab bar like RED */
.ns-profile .tabs ul { justify-content: center; }
/* narrow the body to a centered single column feel */
.ns-profile > .columns.is-multiline { max-width: 920px; margin-left: auto !important; margin-right: auto !important; }

/* Recolor Bulma's blue/info card headers to the brand coral everywhere
   (profile "About Me"/"Interests", dashboard panels, etc.) */
.card-header.has-background-link,
.card-header.has-background-info,
.has-background-link.card-header,
.user-theme-card-title {
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-accent)) !important;
}
.card-header .card-header-title,
.card-header .card-header-title * { color: #fff !important; }

/* Slim filters — turn Quick Filters into a thin RED category pill bar and
   hide the heavy "Search Filters" panel on the discover/gallery page. */
.ns-red-page .gosocial-collapsible-mobile { display: none !important; }   /* heavy search-filter card */
.ns-quickfilters .label { display: none; }
.ns-quickfilters .columns { display: flex !important; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--ns-space-2) 0 !important; }
.ns-quickfilters .column { padding: 0 !important; margin: 0 !important; width: auto !important; flex: none !important; }
.ns-red-page .tag {
  border-radius: var(--ns-radius-full) !important;
  padding: 8px 16px; font-weight: 600; font-size: .85rem;
  background: var(--ns-surface) !important; color: var(--ns-fg-soft) !important;
  border: 1px solid var(--ns-border) !important;
  transition: all var(--ns-dur-fast) var(--ns-ease);
}
.ns-red-page .tag:hover { border-color: var(--ns-primary) !important; color: var(--ns-primary) !important; }
/* hide the "broken photos" notice + the Cards/Full toggle clutter on RED gallery */
.ns-red-page .notification.is-warning.is-light,
.ns-red-page .field.has-addons.is-justify-content-flex-end { display: none; }

/* Responsive: collapse the rail into a bottom tab bar on small screens */
@media (max-width: 900px) {
  body:has(.ns-rail) { padding-left: 0 !important; padding-bottom: 66px; }
  .ns-rail {
    bottom: 0; left: 0; top: auto; height: auto; width: 100%;
    flex-direction: row; justify-content: space-around; align-items: center; z-index: 50;
    border-right: none; border-top: 1px solid var(--ns-border); padding: 6px; overflow: visible;
  }
  .ns-logo, .ns-rail-spacer, .ns-me-name, .ns-fontsize, .ns-nav span:not(.icon), .ns-upload span:not(.icon), .ns-badge { display: none; }
  .ns-nav, .ns-upload, .ns-me { padding: 10px; }
  .ns-red-main { padding: var(--ns-space-4) var(--ns-space-3) 84px; }
}

/* =====================================================================
   TYPOGRAPHY & LAYOUT POLISH PASS (frontend-design)
   Refines the type scale, hierarchy, rhythm and density toward a clean,
   modern RED feel. CSS-only; loaded last so it wins.
   ===================================================================== */

/* Root font size is user-adjustable (rail control) and drives the whole UI,
   since Bulma + our rem-based sizes all scale from it. Default 17px = a
   comfortable, airy RED reading size (not cramped). */
html {
  -webkit-text-size-adjust: 100%;
  font-size: var(--ns-root-size, 17px);
}
body {
  font-size: 1rem;
  letter-spacing: -0.002em;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Display headings: tighter tracking + leading for a confident look */
h1, h2, h3, h4, .title, .subtitle, .ns-logo, .card-header-title {
  font-family: var(--ns-font-display);
  letter-spacing: -0.021em;
  line-height: 1.18;
}
.title { font-weight: 800; }
.subtitle { font-weight: 500; letter-spacing: -0.01em; }

/* Hero titles: sensible, not oversized */
.hero .title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem) !important; }
.hero .subtitle { font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.1rem) !important; opacity: .95; }

/* Section heading ("Found N photos", page titles in main column) */
.ns-red-main .container > .level .title,
.ns-red-main h1.title { font-size: 1.5rem; }

/* ---- Masonry card typography & spacing (the RED feed — airy, not cramped) ---- */
.ns-masonry { column-gap: 20px; }
.ns-masonry > .column { margin-bottom: 20px; }
.ns-masonry > .column .card-content {
  padding: 13px 15px 15px !important;
  font-family: var(--ns-font-body);
}
/* caption acts as the card title: comfortable, 2-line rhythm */
.ns-masonry > .column .card-content {
  font-size: 0.95rem; font-weight: 600; line-height: 1.45; color: var(--ns-fg);
}
.ns-masonry > .column .card-content em { color: var(--ns-muted); font-weight: 500; }
/* the like/comment meta row sits quieter and smaller */
.ns-masonry > .column .card-content .level,
.ns-masonry > .column .card-content .buttons,
.ns-masonry > .column .card-content small,
.ns-masonry > .column .card-content .is-size-7 {
  font-size: 0.76rem !important; color: var(--ns-muted) !important; font-weight: 500;
}
.ns-masonry > .column .card-content .tag { font-size: 0.7rem; padding: 3px 9px; }

/* ---- Quick-filter pills: tighter, springier ---- */
.ns-red-page .tag { font-size: 0.8rem; padding: 7px 15px; letter-spacing: -0.01em; }

/* ---- Tabs (profile): cleaner, RED underline ---- */
.tabs a { border-bottom-width: 2px; font-weight: 600; letter-spacing: -0.01em; }
.tabs li.is-active a { color: var(--ns-primary) !important; border-bottom-color: var(--ns-primary) !important; }

/* ---- Buttons: tighter label tracking ---- */
.button, .ns-upload, .btn-publish { letter-spacing: -0.01em; }

/* ---- Rail polish: tighter nav rhythm + crisp logo ---- */
.ns-logo { font-size: 1.45rem; letter-spacing: -0.03em; }
.ns-nav { font-size: 0.95rem; letter-spacing: -0.01em; padding: 10px 14px; }
.ns-rail { gap: 2px; }

/* ---- Font-size control in the rail ---- */
.ns-fontsize { padding: 8px 12px 4px; }
.ns-fontsize-label { display: block; font-size: 0.7rem; color: var(--ns-muted); font-weight: 600; margin-bottom: 6px; letter-spacing: 0; }
.ns-fontsize-btns { display: flex; gap: 6px; }
.ns-fontsize-btns button {
  flex: 1; border: 1px solid var(--ns-border); background: var(--ns-surface);
  border-radius: var(--ns-radius-sm); padding: 6px 0; cursor: pointer;
  color: var(--ns-fg-soft); font-family: var(--ns-font-display); line-height: 1;
  transition: all var(--ns-dur-fast) var(--ns-ease);
}
.ns-fontsize-btns button:nth-child(1) { font-size: 0.78rem; }
.ns-fontsize-btns button:nth-child(2) { font-size: 0.95rem; }
.ns-fontsize-btns button:nth-child(3) { font-size: 1.05rem; }
.ns-fontsize-btns button:hover { border-color: var(--ns-primary); color: var(--ns-primary); }
.ns-fontsize-btns button.active { background: var(--ns-primary-soft); border-color: var(--ns-primary); color: var(--ns-primary); }

/* (Column count now derives from the ~290px min card width above — no fixed cap.) */

/* =====================================================================
   In-app CHAT ROOM (channels + message bubbles)
   ===================================================================== */
.ns-chat-page { height: 100vh; overflow: hidden; }
.ns-chat { display: flex; height: 100vh; }

/* channel list */
.ns-chat-rooms { width: 270px; flex: 0 0 270px; border-right: 1px solid var(--ns-border); background: var(--ns-surface); overflow-y: auto; }
.ns-chat-rooms-head { font-family: var(--ns-font-display); font-weight: 800; font-size: 1.15rem; padding: 20px 20px 12px; }
.ns-chat-room { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 12px 20px; cursor: pointer; border: none; background: none; transition: background var(--ns-dur-fast) var(--ns-ease); }
.ns-chat-room:hover { background: var(--ns-surface-2); }
.ns-chat-room.active { background: var(--ns-primary-soft); box-shadow: inset 3px 0 0 var(--ns-primary); }
.ns-chat-room-name { font-weight: 700; color: var(--ns-fg); }
.ns-chat-room.active .ns-chat-room-name { color: var(--ns-primary); }
.ns-chat-room-desc { font-size: 0.78rem; color: var(--ns-muted); }

/* main pane */
.ns-chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--ns-canvas); }
.ns-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--ns-border); background: var(--ns-surface); }
.ns-chat-title { font-family: var(--ns-font-display); font-weight: 800; font-size: 1.15rem; }
.ns-chat-desc { font-size: 0.82rem; color: var(--ns-muted); }
.ns-chat-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; color: var(--ns-success); }
.ns-chat-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ns-success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ns-success) 25%, transparent); }

/* messages scroll area — a soft tinted "chat canvas"; conversation centered */
.ns-chat-msgs {
  flex: 1; overflow-y: auto; padding: 20px 24px 8px;
  display: flex; flex-direction: column; gap: 4px;
  background:
    radial-gradient(1200px 400px at 80% -10%, color-mix(in srgb, var(--ns-primary) 6%, transparent), transparent),
    var(--ns-canvas);
}
.ns-chat-msgs > * { width: 100%; max-width: 860px; margin-left: auto; margin-right: auto; }

/* day separator pill */
.ns-chat-day { display: flex; align-items: center; gap: 12px; margin: 6px auto 14px; color: var(--ns-muted); }
.ns-chat-day::before, .ns-chat-day::after { content: ""; flex: 1; height: 1px; background: var(--ns-border); }
.ns-chat-day span { font-size: 0.72rem; font-weight: 700; background: var(--ns-surface-2); padding: 3px 12px; border-radius: var(--ns-radius-full); }

/* message rows + bubbles (tight, messenger-like) */
.ns-msg { display: flex; gap: 8px; max-width: 64%; margin-top: 6px; }
.ns-msg-av { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 0.8rem; background: linear-gradient(135deg, var(--ns-primary), var(--ns-accent)); align-self: flex-end; }
.ns-msg-name { font-size: 0.72rem; color: var(--ns-muted); font-weight: 700; margin: 0 0 3px 4px; }
.ns-msg-bubble {
  background: var(--ns-surface); border: 1px solid var(--ns-border);
  padding: 8px 13px; border-radius: 20px; border-bottom-left-radius: 6px;
  font-size: 0.92rem; line-height: 1.4; box-shadow: var(--ns-shadow-1);
  word-break: break-word; width: fit-content;
}
.ns-msg-time { font-size: 0.65rem; color: var(--ns-muted); margin: 3px 0 0 6px; }
.ns-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.ns-msg.me .ns-msg-bubble {
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-accent)); color: #fff; border: none;
  border-radius: 20px; border-bottom-right-radius: 6px; margin-left: auto;
}
.ns-msg.me .ns-msg-time { text-align: right; margin: 3px 6px 0 0; }

/* composer — pill input flanked by emoji + circular send */
.ns-chat-input { display: flex; align-items: center; gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--ns-border); background: var(--ns-surface); }
.ns-chat-input input { flex: 1; background: var(--ns-surface-2); border: 1px solid var(--ns-border); border-radius: var(--ns-radius-full); padding: 12px 20px; outline: none; font: inherit; color: var(--ns-fg); }
.ns-chat-input input:focus { border-color: var(--ns-primary); box-shadow: 0 0 0 3px var(--ns-primary-soft); }
.ns-chat-emoji { font-size: 1.3rem; line-height: 1; padding: 6px; border-radius: 50%; flex: 0 0 auto; }
.ns-chat-emoji:hover { background: var(--ns-surface-2); }
.ns-chat-send {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-accent)); color: #fff;
  display: grid; place-items: center; font-size: 1rem;
  transition: transform var(--ns-dur-fast) var(--ns-ease), filter var(--ns-dur-fast) var(--ns-ease);
}
.ns-chat-send:hover { filter: brightness(1.06); }
.ns-chat-send:active { transform: scale(.92); }
.ns-chat-send:disabled { opacity: .35; cursor: default; filter: none; transform: none; }

/* attach (image) button */
.ns-chat-attach { font-size: 1.15rem; line-height: 1; padding: 8px; border-radius: 50%; flex: 0 0 auto; color: var(--ns-muted); }
.ns-chat-attach:hover { background: var(--ns-surface-2); color: var(--ns-primary); }
.ns-chat-attach.busy { opacity: .5; pointer-events: none; }

/* image inside a message bubble */
.ns-msg-bubble.has-image { padding: 4px; overflow: hidden; }
.ns-msg-img { display: block; max-width: 240px; max-height: 300px; width: auto; height: auto; border-radius: 14px; cursor: zoom-in; }
.ns-msg-bubble.has-image .ns-msg-text { padding: 5px 9px 6px; }

/* typing indicator (animated dots above the composer) */
.ns-chat-typing { display: flex; align-items: center; gap: 8px; padding: 0 24px 8px; max-width: 860px; margin: 0 auto; width: 100%; color: var(--ns-muted); font-size: 0.8rem; }
.ns-chat-typing[hidden] { display: none; }
.ns-typing-dots { display: inline-flex; gap: 3px; }
.ns-typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--ns-primary); animation: ns-typing 1.2s infinite ease-in-out; }
.ns-typing-dots span:nth-child(2) { animation-delay: .15s; }
.ns-typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes ns-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* message reactions */
.ns-react-wrap { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.ns-msg.me .ns-react-wrap { flex-direction: row-reverse; }
.ns-reactions { display: flex; gap: 5px; flex-wrap: wrap; }
.ns-react-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 0.78rem; background: var(--ns-surface-2); border: 1px solid var(--ns-border); border-radius: var(--ns-radius-full); padding: 2px 9px; cursor: pointer; color: var(--ns-fg); transition: all var(--ns-dur-fast) var(--ns-ease); }
.ns-react-chip:hover { border-color: var(--ns-primary); }
.ns-react-chip.mine { background: var(--ns-primary-soft); border-color: var(--ns-primary); color: var(--ns-primary); }
.ns-react-btn { opacity: 0; width: 26px; height: 26px; border-radius: 50%; color: var(--ns-muted); font-size: 0.85rem; flex: 0 0 auto; transition: opacity var(--ns-dur-fast) var(--ns-ease), background var(--ns-dur-fast) var(--ns-ease); }
.ns-msg:hover .ns-react-btn { opacity: 1; }
.ns-react-btn:hover { background: var(--ns-surface-2); color: var(--ns-primary); }
.ns-react-palette { position: absolute; bottom: 100%; margin-bottom: 6px; display: flex; gap: 2px; background: var(--ns-surface); border: 1px solid var(--ns-border); border-radius: var(--ns-radius-full); padding: 4px 6px; box-shadow: var(--ns-shadow-2); z-index: 5; }
.ns-msg:not(.me) .ns-react-palette { left: 0; }
.ns-msg.me .ns-react-palette { right: 0; }
.ns-react-palette button { font-size: 1.2rem; padding: 2px 5px; border-radius: 8px; line-height: 1; transition: transform var(--ns-dur-fast) var(--ns-ease); }
.ns-react-palette button:hover { background: var(--ns-surface-2); transform: scale(1.18); }

/* links inside messages */
.ns-msg-link { text-decoration: underline; color: var(--ns-primary); }
.ns-msg.me .ns-msg-link { color: #fff; }

/* image lightbox */
.ns-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,16,15,.86); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 40px; cursor: zoom-out; }
.ns-lightbox[hidden] { display: none; }
.ns-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* =====================================================================
   DEEP REFINEMENT PASS — atmosphere, glass, depth, micro-interactions.
   Loaded last; transforms the *feel*, not just the colors.
   ===================================================================== */

/* 1) Atmospheric canvas — a fixed jade gradient-mesh over the cool base, so the
      whole app has depth/glow instead of flat color. */
body {
  background:
    radial-gradient(62vw 52vh at 100% -6%, color-mix(in srgb, var(--ns-primary) 10%, transparent), transparent 60%),
    radial-gradient(52vw 44vh at -6% 112%, color-mix(in srgb, var(--ns-accent) 9%, transparent), transparent 55%),
    var(--ns-canvas) !important;
  background-attachment: fixed !important;
}
/* let the feed pages show the atmosphere through */
.ns-red-page { background: transparent !important; }

/* 2) Frosted-glass rail + sticky headers */
.ns-rail {
  background: color-mix(in srgb, var(--ns-surface) 76%, transparent) !important;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-right: 1px solid color-mix(in srgb, var(--ns-border) 70%, transparent);
}
.topnav, .ns-chat-head, .chat-head {
  background: color-mix(in srgb, var(--ns-surface) 80%, transparent) !important;
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

/* 3) Cards — deeper, springier hover with a jade ring-glow + image zoom */
.ns-masonry > .column .card, .ns-home-feed .card, .gosocial-forum-box-1 {
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s cubic-bezier(.2,.7,.2,1) !important;
}
.ns-masonry > .column .card:hover, .ns-home-feed .card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 44px rgba(15,42,38,.16), 0 0 0 1px color-mix(in srgb, var(--ns-primary) 30%, transparent) !important;
}
.ns-masonry > .column .card-image { overflow: hidden; }
.ns-masonry > .column .card-image img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.ns-masonry > .column .card:hover .card-image img { transform: scale(1.05); }

/* 4) Primary actions — soft jade glow + lift (premium button feel) */
.button.is-primary, .button.is-link, .btn-publish, .ns-upload, .ns-chat-send, .btn-send, .btn-follow:not(.following) {
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ns-primary) 30%, transparent) !important;
  transition: transform var(--ns-dur-fast) var(--ns-ease), box-shadow var(--ns-dur-base) var(--ns-ease), filter var(--ns-dur-fast) var(--ns-ease);
}
.button.is-primary:hover, .btn-publish:hover, .ns-upload:hover, .ns-chat-send:hover, .btn-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px color-mix(in srgb, var(--ns-primary) 40%, transparent) !important;
}

/* 5) Display headings — Bricolage tuning (it sets slightly wide/large) */
h1, h2, h3, .title, .ns-logo, .card-header-title { letter-spacing: -0.025em; }
.ns-logo { font-weight: 800; }

/* 6) Rail nav — active pill with a soft inner ring */
.ns-nav { border-radius: 12px; }
.ns-nav.active { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ns-primary) 24%, transparent); }

/* 7) Avatars + online dots — subtle jade ring for crispness */
.ns-msg-av, .ns-online-av { box-shadow: 0 2px 8px color-mix(in srgb, var(--ns-primary) 22%, transparent); }

/* =====================================================================
   Airbnb-style OVERLAY CARDS (Home feed) — author + likes float on the
   photo over a bottom gradient scrim; caption sits below.
   ===================================================================== */
.ns-acard-media { position: relative; }
.ns-acard-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(8,16,15,.62), rgba(8,16,15,.18) 55%, transparent);
  pointer-events: none;
}
.ns-acard-scrim .ns-feed-author { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; font-size: .82rem; text-shadow: 0 1px 3px rgba(0,0,0,.45); min-width: 0; }
.ns-acard-scrim .ns-feed-author figure, .ns-acard-scrim .ns-feed-author .image { width: 24px !important; height: 24px !important; margin: 0 !important; flex: 0 0 auto; }
.ns-acard-scrim .ns-feed-author img { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.ns-acard-scrim .ns-feed-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.ns-acard-scrim .ns-feed-likes { color: #fff; font-weight: 700; font-size: .82rem; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.ns-acard-scrim .ns-feed-likes .fa-heart { color: var(--ns-warm); }
.ns-acard-cap { padding: 11px 14px 14px !important; }
.ns-acard .card-content.ns-acard-cap .ns-feed-cap { margin-bottom: 0; }

/* =====================================================================
   DARK MODE toggle + hardening
   ===================================================================== */
.ns-theme-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border-radius: 12px; color: var(--ns-fg-soft); font-weight: 600; font-size: .9rem; transition: background var(--ns-dur-fast) var(--ns-ease), color var(--ns-dur-fast) var(--ns-ease); }
.ns-theme-toggle:hover { background: var(--ns-surface-2); color: var(--ns-fg); }
.ns-theme-ico { font-size: 1.05rem; width: 22px; text-align: center; }

[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] body { color: var(--ns-fg); }
/* tokenize common Bulma surfaces that ship hardcoded light colors */
[data-theme="dark"] .card, [data-theme="dark"] .box, [data-theme="dark"] .message,
[data-theme="dark"] .hero.is-light, [data-theme="dark"] .dropdown-content,
[data-theme="dark"] .modal-card-body, [data-theme="dark"] .menu-list a { background-color: var(--ns-surface); color: var(--ns-fg); }
[data-theme="dark"] .title, [data-theme="dark"] .subtitle, [data-theme="dark"] strong,
[data-theme="dark"] .label, [data-theme="dark"] .content, [data-theme="dark"] p,
[data-theme="dark"] .card-content { color: var(--ns-fg); }
[data-theme="dark"] .has-text-grey, [data-theme="dark"] .has-text-dark, [data-theme="dark"] .has-text-black { color: var(--ns-muted) !important; }
[data-theme="dark"] .input, [data-theme="dark"] .textarea, [data-theme="dark"] .select select { background: var(--ns-surface-2); color: var(--ns-fg); border-color: var(--ns-border); }
[data-theme="dark"] .tabs a { color: var(--ns-fg-soft); border-color: var(--ns-border); }
[data-theme="dark"] .ns-react-chip, [data-theme="dark"] .ns-react-palette { color: var(--ns-fg); }
[data-theme="dark"] .ns-msg-bubble { color: var(--ns-fg); }
[data-theme="dark"] .ns-msg.me .ns-msg-bubble { color: #fff; }

/* =====================================================================
   SKELETON shimmer (image placeholders while loading)
   ===================================================================== */
.ns-masonry > .column .card-image { background: var(--ns-surface-2); position: relative; }
.ns-masonry > .column .card-image::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--ns-surface) 70%, transparent) 50%, transparent 80%);
  background-size: 200% 100%; animation: ns-shimmer 1.5s infinite linear;
}
.ns-masonry > .column .card-image img { position: relative; z-index: 1; }
@keyframes ns-shimmer { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }

/* =====================================================================
   Refined EMPTY STATES (Airbnb-style: icon + heading + subtext + action)
   ===================================================================== */
.ns-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 60px 24px; color: var(--ns-muted); }
.ns-empty .ns-empty-ico {
  font-size: 2.6rem; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 8px;
  background: var(--ns-primary-soft); color: var(--ns-primary);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ns-primary) 18%, transparent);
}
.ns-empty .ns-empty-title { font-family: var(--ns-font-display); font-weight: 800; font-size: 1.15rem; color: var(--ns-fg); letter-spacing: -0.02em; }
.ns-empty .ns-empty-sub { font-size: .9rem; max-width: 380px; line-height: 1.5; }
.ns-empty .button, .ns-empty .ns-empty-cta { margin-top: 12px; }

/* message column alignment */
.ns-msg-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.ns-msg.me .ns-msg-col { align-items: flex-end; }

/* grouped (consecutive same-sender) messages: collapse name + avatar, tighten */
.ns-msg.grouped { margin-top: 2px; }
.ns-msg.grouped .ns-msg-av { visibility: hidden; }

/* timestamps reveal on hover for a clean, modern look */
.ns-msg-time { opacity: 0; transition: opacity var(--ns-dur-fast) var(--ns-ease); height: 0; margin-top: 0 !important; overflow: hidden; }
.ns-msg:hover .ns-msg-time { opacity: 1; height: auto; margin-top: 3px !important; }

/* online-members panel (right side) */
.ns-chat-online { width: 224px; flex: 0 0 224px; border-left: 1px solid var(--ns-border); background: var(--ns-surface); overflow-y: auto; padding: 18px 14px; }
.ns-chat-online-head { font-family: var(--ns-font-display); font-weight: 800; font-size: 0.95rem; color: var(--ns-fg); margin-bottom: 12px; }
.ns-online-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--ns-radius-sm); }
.ns-online-row:hover { background: var(--ns-surface-2); }
.ns-online-av { position: relative; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 0.78rem; background: linear-gradient(135deg, var(--ns-primary), var(--ns-accent)); }
.ns-online-dot { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--ns-success); border: 2px solid var(--ns-surface); }
.ns-online-name { font-size: 0.85rem; font-weight: 600; color: var(--ns-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) { .ns-chat-online { display: none; } }
@media (max-width: 820px) {
  .ns-chat-rooms { width: 100%; flex: none; }
  .ns-chat-main { display: none; }
  body.ns-chat-open .ns-chat-rooms { display: none; }
  body.ns-chat-open .ns-chat-main { display: flex; }
}

/* =====================================================================
   MESSAGES — two-pane (conversation list left, open thread right)
   ===================================================================== */
/* On the messages page, drop the hero + promo blocks so the two-pane leads */
body:has(.ns-dm) .hero { display: none !important; }
body:has(.ns-dm) .notification { display: none !important; }
body:has(.ns-dm) .block.p-4 > .block { display: none; }   /* "You have N unread" + pro-tip intro blocks */
.ns-dm {
  display: flex !important; gap: 0 !important; margin: 0 !important;
  align-items: stretch; min-height: calc(100vh - 90px);
  border: 1px solid var(--ns-border); border-radius: var(--ns-radius-lg);
  overflow: hidden; background: var(--ns-surface); box-shadow: var(--ns-shadow-2);
}
.ns-dm > .column { padding: 0 !important; }
.ns-dm-list {
  order: -1; flex: 0 0 330px !important; max-width: 330px !important;
  border-right: 1px solid var(--ns-border); overflow-y: auto;
}
.ns-dm-thread { flex: 1 1 auto !important; max-width: none !important; display: flex; flex-direction: column; }
.ns-dm-list .card, .ns-dm-thread .card {
  border-radius: 0 !important; border: none !important; box-shadow: none !important;
  background: transparent; height: 100%; display: flex; flex-direction: column;
}
.ns-dm-thread .card-content { overflow-y: auto; flex: 1; }
/* the conversation list shouldn't have its own heavy card chrome */
.ns-dm-list .card-header { border-radius: 0; }
/* empty placeholder */
.ns-dm-empty { display: grid !important; place-items: center; color: var(--ns-muted); background: var(--ns-canvas); }
.ns-dm-empty-icon { font-size: 3.2rem; margin-bottom: 10px; }
.ns-dm-empty-inner { text-align: center; }
@media (max-width: 820px) {
  .ns-dm { flex-direction: column; min-height: 0; }
  .ns-dm-list { flex: none !important; max-width: none !important; width: 100%; border-right: none; border-bottom: 1px solid var(--ns-border); }
}

/* =====================================================================
   PROFILE body — modernize (de-MySpace the boxy coral-header cards)
   On the profile, replace the heavy colored card-header bars with clean
   text titles + a hairline rule, more whitespace, lighter chrome.
   ===================================================================== */
.ns-profile .card { box-shadow: var(--ns-shadow-1) !important; }
.ns-profile .card-header,
.ns-profile .card-header.has-background-link,
.ns-profile .card-header.has-background-warning,
.ns-profile .user-theme-card-title {
  background: transparent !important; background-image: none !important;
  box-shadow: none !important; border-bottom: 1px solid var(--ns-border);
}
.ns-profile .card-header-title,
.ns-profile .card-header-title * {
  color: var(--ns-fg) !important; font-family: var(--ns-font-display);
  font-weight: 800; font-size: 1rem;
}
.ns-profile .card-header-title .icon { color: var(--ns-primary) !important; }
.ns-profile .card-content { padding: 18px 20px; }
/* the About <stats> panel: lighter rows, comfortable spacing */
.ns-profile .card-content table td,
.ns-profile .card-content .columns { border-color: var(--ns-border) !important; }
.ns-profile .title.is-4, .ns-profile .subtitle { letter-spacing: -0.01em; }
.ns-profile .ptabs, .ns-profile .tabs { margin-top: 8px; }

/* =====================================================================
   FORUM landing — modern card list
   ===================================================================== */
.gosocial-forum-box-1 {
  border-radius: var(--ns-radius-md) !important;
  border: 1px solid var(--ns-border) !important;
  box-shadow: var(--ns-shadow-1) !important;
  transition: transform var(--ns-dur-base) var(--ns-ease), box-shadow var(--ns-dur-base) var(--ns-ease), border-color var(--ns-dur-base) var(--ns-ease);
}
.gosocial-forum-box-1:hover { transform: translateY(-3px); box-shadow: var(--ns-shadow-3) !important; border-color: color-mix(in srgb, var(--ns-primary) 40%, var(--ns-border)) !important; }
.gosocial-forum-box-1 h2 a { color: var(--ns-fg) !important; font-family: var(--ns-font-display); }
.gosocial-forum-box-1:hover h2 a { color: var(--ns-primary) !important; }
/* category section titles */
body:has(.gosocial-forum-box-1) .block.p-4 > .title {
  font-family: var(--ns-font-display); font-size: 1.45rem; font-weight: 800;
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--ns-primary-soft);
}
/* slim the heavy filter panel + intro notices on the forum landing */
body:has(.gosocial-forum-box-1) .gosocial-collapsible-mobile { display: none !important; }
body:has(.gosocial-forum-box-1) .notification { display: none !important; }

/* =====================================================================
   HOME feed (community waterfall on /me)
   ===================================================================== */
.ns-feed-head { margin-bottom: 20px; }
.ns-feed-head .title { font-size: 1.7rem; margin-bottom: 2px; }
.ns-feed-sub { color: var(--ns-muted); }
.ns-home-feed .card-image img { width: 100%; height: auto; display: block; }
.ns-feed-cap {
  font-size: 0.95rem; font-weight: 600; line-height: 1.45; color: var(--ns-fg);
  margin-bottom: 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ns-feed-cap em { color: var(--ns-muted); font-weight: 500; }
.ns-feed-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ns-feed-author { display: flex; align-items: center; gap: 6px; color: var(--ns-muted); font-size: 0.8rem; min-width: 0; }
.ns-feed-author figure, .ns-feed-author .image { width: 22px !important; height: 22px !important; margin: 0 !important; flex: 0 0 auto; }
.ns-feed-author img { border-radius: 50%; width: 22px; height: 22px; object-fit: cover; }
.ns-feed-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-feed-likes { color: var(--ns-muted); font-size: 0.8rem; white-space: nowrap; }
.ns-feed-likes .fa-heart { color: var(--ns-warm); }
/* Demote the legacy dashboard area below the feed */
.ns-section-title {
  font-family: var(--ns-font-display); font-weight: 800; font-size: 1.25rem;
  margin: 40px 0 16px; padding-top: 26px; border-top: 1px solid var(--ns-border);
}

/* ---- De-clutter: hide the PWA install banner on logged-in app pages ---- */
body:has(.ns-rail) #pwa-custom-install-banner { display: none !important; }
body:has(.ns-rail) .notification.is-info.is-light:has(#pwa-custom-install-button) { display: none !important; }

/* ---- Tidy leftover gallery chrome ---- */
.ns-red-page .ns-webp-notice { display: none !important; }   /* "photos may be broken" notice */
.ns-red-page .tabs.is-toggle { display: none !important; }    /* Cards / Full view toggle */

/* ---- Content rhythm: comfortable gutters in the main column ---- */
.ns-red-main { padding-top: var(--ns-space-5); }
.ns-red-main .container > .block { margin-bottom: var(--ns-space-5); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


/* ===== Phosphor like-heart micro-interaction =================== */
/* Liked state: same glyph, filled weight, warm coral, with a pop.
   likes.js only toggles .has-text-danger on the .icon span — the
   fill-swap is pure CSS (regular and fill share codepoints). */
.gosocial-like-button .icon i.ph,
.gosocial-like-button .icon i.ph-fill { font-size: 17px; }

.gosocial-like-button .icon.has-text-danger i.ph {
  font-family: "Phosphor-Fill" !important;
}
.gosocial-like-button .icon.has-text-danger {
  color: var(--ns-warm) !important;
  animation: ns-heart-pop .38s cubic-bezier(.2, 2.2, .4, 1);
}
@keyframes ns-heart-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* Feed-card like counter + notification feed hearts share the coral. */
.ns-feed-likes i.ph-fill { color: var(--ns-warm); }
i.ns-heart { color: var(--ns-warm); }
/* lightbox + like-modal hearts: coral when liked */
i.ph-fill.ph-heart.has-text-danger { color: var(--ns-warm) !important; }


/* spinner helper (replaces FontAwesome's .fa-spin after FA removal) */
.fa-spin { display: inline-block; animation: ns-spin 1.2s linear infinite; }
@keyframes ns-spin { to { transform: rotate(360deg); } }

/* ===== Beshy landing page (logged-out front door) ================== */
.bs-landing { font-family: var(--ns-font-body); color: var(--ns-fg); }
.bs-landing section { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.bs-hero { display: flex; gap: 48px; align-items: center; padding: 72px 24px 56px !important; flex-wrap: wrap; }
.bs-hero-inner { flex: 1 1 460px; }
.bs-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ns-primary-soft); color: var(--ns-primary-press);
  font-size: var(--ns-text-sm); font-weight: 700;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.bs-display {
  font-family: var(--ns-font-display); font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 18px;
}
.bs-display-sm { font-family: var(--ns-font-display); font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.bs-sub { font-size: var(--ns-text-lg); color: var(--ns-fg-soft); line-height: 1.65; max-width: 34em; margin-bottom: 26px; }
.bs-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.bs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: var(--ns-text-base);
  padding: 13px 26px; border-radius: 14px; transition: all .15s ease;
}
.bs-btn-primary { background: var(--ns-primary); color: var(--ns-on-primary) !important; box-shadow: 0 6px 18px rgba(15,181,168,.32); }
.bs-btn-primary:hover { background: var(--ns-primary-press); transform: translateY(-1px); }
.bs-btn-ghost { border: 1.5px solid var(--ns-border); color: var(--ns-fg) !important; background: var(--ns-surface); }
.bs-btn-ghost:hover { border-color: var(--ns-primary); color: var(--ns-primary-press) !important; }
.bs-note { margin-top: 14px; font-size: var(--ns-text-sm); color: var(--ns-muted); }

/* frosted reveal demo */
.bs-hero-demo { flex: 0 1 340px; }
.bs-frost {
  position: relative; border-radius: 22px; overflow: hidden; cursor: pointer;
  box-shadow: 0 18px 48px rgba(28,40,38,.16); margin: 0;
}
.bs-frost img { display: block; width: 100%; filter: blur(26px) saturate(1.1); transform: scale(1.12); transition: filter .45s ease, transform .45s ease; }
.bs-frost.revealed img { filter: none; transform: scale(1); }
.bs-frost-cue {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.4);
  transition: opacity .3s ease;
}
.bs-frost.revealed .bs-frost-cue { opacity: 0; }
.bs-demo-cap { font-size: var(--ns-text-sm); color: var(--ns-muted); margin-top: 12px; line-height: 1.5; }

/* is/isn't strip */
.bs-strip {
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
  padding: 18px 24px !important; margin: 8px auto 8px;
  color: var(--ns-fg-soft); font-weight: 600; font-size: var(--ns-text-sm);
  border-top: 1px solid var(--ns-border); border-bottom: 1px solid var(--ns-border);
}
.bs-strip i { margin-right: 5px; color: var(--ns-muted); }
.bs-strip span:last-child i { color: var(--ns-primary); }

/* sections */
.bs-section { padding: 56px 24px !important; }
.bs-h2 { font-family: var(--ns-font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.bs-section-sub { color: var(--ns-muted); margin-bottom: 30px; }
.bs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.bs-card {
  background: var(--ns-surface); border: 1px solid var(--ns-border); border-radius: 18px;
  padding: 26px 22px; box-shadow: 0 4px 14px rgba(28,40,38,.05);
}
.bs-card-ico { font-size: 26px; color: var(--ns-primary); }
.bs-card h3 { font-family: var(--ns-font-display); font-weight: 700; font-size: var(--ns-text-lg); margin: 12px 0 8px; }
.bs-card p { color: var(--ns-fg-soft); font-size: var(--ns-text-sm); line-height: 1.6; }

/* steps */
.bs-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.bs-step { padding: 8px 4px; }
.bs-step-n {
  display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  background: var(--ns-primary); color: #fff; font-weight: 800; border-radius: 12px; font-family: var(--ns-font-display);
}
.bs-step h3 { font-family: var(--ns-font-display); font-weight: 700; margin: 12px 0 6px; }
.bs-step p { color: var(--ns-fg-soft); font-size: var(--ns-text-sm); line-height: 1.6; }

/* closing */
.bs-final { text-align: center; padding: 64px 24px 80px !important; }
.bs-final p { color: var(--ns-muted); margin-bottom: 24px; }

/* dark mode */
html[data-theme="dark"] .bs-card,
body.dark .bs-card { background: var(--ns-surface); }

/* ===== Beshy page headers (replaces Bulma colored heroes) ========== */
.bs-pagehead { max-width: 1080px; margin: 0 auto; padding: 40px 24px 6px; }
.bs-pagehead .title {
  font-family: var(--ns-font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ns-fg);
}
.bs-pagehead .title i { color: var(--ns-primary); }
.bs-pagehead .subtitle { color: var(--ns-muted); font-size: var(--ns-text-base); margin-top: 6px; }

/* ===== Beshy auth pages (login / forgot password) ==================
   The front-door journey shares the landing's warm-pink frosted look:
   landing (pink) → auth (pink) → inside the app (jade). */
body:has(.bs-auth) .navbar,
body:has(.bs-auth) footer { display: none !important; }
body:has(.bs-auth) { padding-top: 0 !important; }

.bs-auth {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255,59,92,.10), transparent 60%),
    radial-gradient(700px 460px at -10% 110%, rgba(15,181,168,.08), transparent 60%),
    var(--ns-canvas);
}
.bs-auth-card {
  width: 100%; max-width: 400px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(28,40,38,.14);
  padding: 36px 32px 28px;
}
.bs-auth-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ns-font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--ns-fg) !important; letter-spacing: -0.02em; margin-bottom: 22px;
}
.bs-auth-mark {
  display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  background: #FF3B5C; color: #fff; border-radius: 9px; font-size: 16px;
  box-shadow: 0 4px 12px rgba(255,59,92,.35);
}
.bs-auth h1 { font-family: var(--ns-font-display); font-weight: 800; font-size: 1.65rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.bs-auth-lead { color: var(--ns-muted); font-size: var(--ns-text-sm); margin-bottom: 24px; }

.bs-auth-field { margin-bottom: 16px; }
.bs-auth-field label {
  display: block; font-size: var(--ns-text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ns-fg-soft); margin-bottom: 6px;
}
.bs-auth-field input {
  width: 100%; font-size: var(--ns-text-base); font-family: var(--ns-font-body);
  padding: 12px 14px; border-radius: 13px;
  border: 1.5px solid var(--ns-border); background: rgba(255,255,255,.9);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bs-auth-field input:focus {
  outline: none; border-color: #FF3B5C; box-shadow: 0 0 0 4px rgba(255,59,92,.12);
}

.bs-auth-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #FF3B5C, #E22950);
  color: #fff; font-weight: 800; font-size: var(--ns-text-base); font-family: var(--ns-font-body);
  border: 0; border-radius: 14px; padding: 13px; cursor: pointer; margin-top: 6px;
  box-shadow: 0 8px 22px rgba(255,59,92,.32);
  transition: transform .12s ease, box-shadow .12s ease;
}
.bs-auth-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255,59,92,.4); }

.bs-auth-links { text-align: center; margin-top: 18px; font-size: var(--ns-text-sm); }
.bs-auth-links a { color: var(--ns-fg-soft) !important; font-weight: 600; }
.bs-auth-links a:hover { color: #FF3B5C !important; }
.bs-auth-dot { color: var(--ns-border); margin: 0 8px; }
.bs-auth-back { display: block; text-align: center; margin-top: 20px; font-size: var(--ns-text-sm); color: var(--ns-muted) !important; }
.bs-auth-back:hover { color: var(--ns-fg) !important; }

/* ============================================================
   Paper Garden PUBLIC SKIN — every logged-out page.
   Re-maps the design tokens to the landing's cream/terracotta
   language and overrides Bulma's blue chrome wholesale.
   ============================================================ */
body.bs-public {
  --ns-canvas:  #FAF4E8;
  --ns-surface: #FFFDF7;
  --ns-fg:      #2B2118;
  --ns-fg-soft: #5C4F42;
  --ns-muted:   #8C7D6B;
  --ns-border:  #E5D9C3;
  --ns-primary: #FF3B5C;
  --ns-primary-press: #E22950;
  --ns-primary-soft: #FFE9ED;
  --ns-font-display: "Fraunces", Georgia, serif;
  --ns-font-body: "Hanken Grotesk", -apple-system, sans-serif;

  background: var(--ns-canvas) !important;
  color: var(--ns-fg);
  font-family: var(--ns-font-body);
}
/* paper grain */
body.bs-public::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* navbar → cream paper bar */
body.bs-public .navbar {
  background: rgba(250,244,232,.92) !important;
  backdrop-filter: blur(10px);
  box-shadow: none !important;
  border-bottom: 1.5px solid var(--ns-border);
}
body.bs-public .navbar-item, body.bs-public .navbar-link { color: var(--ns-fg-soft) !important; font-weight: 600; }
body.bs-public .navbar-item:hover { background: transparent !important; color: var(--ns-primary) !important; }
body.bs-public .navbar-brand .navbar-item:first-child {
  font-family: var(--ns-font-display); font-weight: 600; font-size: 1.3rem; color: var(--ns-fg) !important;
}
body.bs-public .navbar-burger { color: var(--ns-fg) !important; }
body.bs-public .navbar-menu { background: var(--ns-canvas); }

/* page headers (bs-pagehead) inherit remapped tokens already */
body.bs-public .bs-pagehead .title { font-family: var(--ns-font-display); font-weight: 560; }

/* Bulma chrome → paper */
body.bs-public .card, body.bs-public .box {
  background: var(--ns-surface); border-radius: 22px;
  border: 1px solid var(--ns-border);
  box-shadow: 0 8px 26px rgba(43,33,24,.07);
}
body.bs-public .card-header { box-shadow: none; border-bottom: 1.5px solid var(--ns-border); }
body.bs-public .card-header.has-background-link,
body.bs-public .card-header.has-background-success,
body.bs-public .card-header.has-background-danger { background: transparent !important; }
body.bs-public .card-header-title { color: var(--ns-fg) !important; font-family: var(--ns-font-display); font-weight: 600; font-size: 1.05rem; }
body.bs-public .card-header-title .icon { color: var(--ns-primary); }

body.bs-public .title { color: var(--ns-fg); font-family: var(--ns-font-display); letter-spacing: -.015em; }
body.bs-public .subtitle { color: var(--ns-fg-soft); }
body.bs-public .content h1, body.bs-public .content h2, body.bs-public .content h3 {
  font-family: var(--ns-font-display); color: var(--ns-fg); letter-spacing: -.01em;
}
body.bs-public .content a, body.bs-public a.has-text-link { color: var(--ns-primary); font-weight: 600; }
body.bs-public strong { color: var(--ns-fg); }
body.bs-public .label { color: var(--ns-fg-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }

/* inputs */
body.bs-public .input, body.bs-public .textarea, body.bs-public .select select {
  background: #fff; border: 1.5px solid var(--ns-border); border-radius: 13px; box-shadow: none;
  color: var(--ns-fg); font-family: var(--ns-font-body);
}
body.bs-public .input:focus, body.bs-public .textarea:focus, body.bs-public .select select:focus {
  border-color: var(--ns-primary); box-shadow: 0 0 0 4px rgba(255,59,92,.13);
}

/* buttons → terracotta pills */
body.bs-public .button { border-radius: 999px; font-weight: 700; font-family: var(--ns-font-body); }
body.bs-public .button.is-primary, body.bs-public .button.is-link, body.bs-public .button.is-success {
  background: var(--ns-primary) !important; border: 0; color: #fff !important;
  box-shadow: 0 8px 20px rgba(255,59,92,.28);
}
body.bs-public .button.is-primary:hover, body.bs-public .button.is-link:hover, body.bs-public .button.is-success:hover {
  background: var(--ns-primary-press) !important; transform: translateY(-1px);
}
body.bs-public .button:not(.is-primary):not(.is-link):not(.is-success):not(.is-danger) {
  background: transparent; border: 1.5px solid var(--ns-border); color: var(--ns-fg);
}

/* notifications/flash → soft paper tints */
body.bs-public .notification { border-radius: 18px; border: 1.5px solid var(--ns-border); }
body.bs-public .notification.is-success { background: #EFF3E6; color: #41522F; }
body.bs-public .notification.is-danger  { background: #F9E4DC; color: #7C2D14; }
body.bs-public .notification.is-info,
body.bs-public .notification.is-warning { background: var(--ns-primary-soft); color: var(--ns-fg); }

/* footer */
body.bs-public footer, body.bs-public .footer {
  background: #F3EAD7 !important; border-top: 1.5px solid var(--ns-border);
  color: var(--ns-muted) !important;
}
body.bs-public footer a { color: var(--ns-fg-soft) !important; font-weight: 600; }
body.bs-public footer a:hover { color: var(--ns-primary) !important; }

/* hide upstream theme-hue artifacts on public pages */
body.bs-public .hero.is-link, body.bs-public .hero.is-info { background: transparent !important; color: var(--ns-fg) !important; }

/* ============================================================
   IG/XHS-style profile (igp-*) v2 — horizontal header, white shell.
   ============================================================ */
.ns-profile { background: var(--ns-surface); border-radius: 18px; margin-top: 14px;
  border: 1px solid var(--ns-border); box-shadow: var(--ns-shadow-1, 0 1px 3px rgba(31,26,23,.06)); }

.igp-hero { display: flex; align-items: flex-start; gap: 28px; text-align: left;
  padding: 34px 34px 6px; background: transparent; }
@media (max-width: 700px) {
  .igp-hero { flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 26px 18px 4px; }
  .igp-titlerow, .igp-stats, .igp-chips, .igp-actions, .igp-quiet { justify-content: center; }
}

.igp-avatar { flex: none; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; position: relative;
  border: 1px solid var(--ns-border); box-shadow: 0 6px 18px rgba(31,26,23,.10); }
.igp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.igp-avatar .corner { position: absolute; right: 0; bottom: 0; }

.igp-info { flex: 1; min-width: 0; }

.igp-titlerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.igp-name { font-family: var(--ns-font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.015em;
  margin: 0; display: inline-flex; align-items: center; gap: 7px; color: var(--ns-fg); }
.igp-veri { color: var(--ns-primary); font-size: 1.1rem; }
.igp-handle { color: var(--ns-muted); font-size: .92rem; }

.igp-stats { display: flex; gap: 26px; margin-top: 14px; }
.igp-stats a, .igp-stats > span { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ns-fg) !important; }
.igp-stats b { font-family: var(--ns-font-display); font-weight: 800; font-size: 1.05rem; }
.igp-stats span span, .igp-stats a span { font-size: .85rem; color: var(--ns-muted); font-weight: 600; }
.igp-stats a:hover b { color: var(--ns-primary); }

.igp-bioline { color: var(--ns-fg-soft); margin-top: 10px; max-width: 46em; font-size: .95rem; }
.igp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.igp-meta { color: var(--ns-muted); font-size: .82rem; margin-top: 8px; }
.igp-meta .dot, .igp-quiet .dot { margin: 0 7px; color: var(--ns-border); }

.igp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.igp-actions form { display: inline-block; }
.button.igp-btn { border-radius: 10px; font-weight: 700; font-size: .88rem; height: 2.1em;
  padding-left: 16px; padding-right: 16px;
  border: 1.5px solid var(--ns-border); background: var(--ns-surface-2); color: var(--ns-fg); box-shadow: none; }
.button.igp-btn:hover { border-color: var(--ns-primary); color: var(--ns-primary); background: var(--ns-surface); }
.button.igp-btn.igp-btn-primary { background: var(--ns-primary); border-color: var(--ns-primary); color: #fff; }
.button.igp-btn.igp-btn-primary:hover { background: var(--ns-primary-press); color: #fff; }

.igp-quiet { margin-top: 12px; font-size: .82rem; color: var(--ns-muted); display: flex; align-items: center; flex-wrap: wrap; }
.igp-quiet a, .igp-textbtn { color: var(--ns-muted) !important; font-weight: 600; }
.igp-quiet a:hover, .igp-textbtn:hover { color: var(--ns-primary) !important; }
.igp-inlineform { display: inline; }
.igp-textbtn { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; font-family: inherit; }

/* photo grid */
.igp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 0; }
@media (min-width: 1000px) { .igp-grid { gap: 10px; } }
.igp-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--ns-surface-2); display: block; }
.igp-cell img, .igp-cell video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.igp-cell:hover img, .igp-cell:hover video { transform: scale(1.04); }
.igp-cell-flag { position: absolute; top: 8px; right: 8px; color: #fff; font-size: 15px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.55)); }
.igp-cell .igp-flag2 { right: 30px; }
.igp-cell img.blurred-explicit, .igp-cell video.blurred-explicit { filter: blur(22px) saturate(1.1); transform: scale(1.1); }

.igp-empty { text-align: center; padding: 44px 20px; color: var(--ns-muted); }
.igp-empty i { font-size: 40px; color: var(--ns-border); display: block; margin-bottom: 8px; }

/* the fold for legacy long-form panels */
.igp-more { margin: 0; padding: 0 22px; border: 0 !important; background: transparent !important;
  border-radius: 0; box-shadow: none !important; }
.igp-more summary { cursor: pointer; list-style: none; padding: 4px 0 12px; font-weight: 600; color: var(--ns-muted);
  display: flex; align-items: center; gap: 7px; font-size: .85rem; width: fit-content; }
.igp-more summary:hover { color: var(--ns-primary); }
.igp-more[open] { padding-bottom: 10px; border-bottom: 1.5px solid var(--ns-border) !important; margin-bottom: 10px; }
.igp-more summary::-webkit-details-marker { display: none; }
.igp-more .igp-caret { transition: transform .2s; color: var(--ns-primary); }
.igp-more[open] .igp-caret { transform: rotate(90deg); }
.igp-morehint { font-weight: 500; font-size: .8rem; color: var(--ns-muted); margin-left: 4px; }

/* profile tabs → slim underline, flush with header */
.ns-profile .tabs.is-boxed li a, .ns-profile .tabs li a { border: 0 !important; }
.ns-profile .tabs { margin: 6px 0 0; }
.ns-profile .tabs ul { border-bottom: 1.5px solid var(--ns-border); padding: 0 22px; }
.ns-profile .tabs li a { color: var(--ns-muted); font-weight: 600; }
.ns-profile .tabs li.is-active a { color: var(--ns-primary) !important; border-bottom: 2px solid var(--ns-primary) !important; background: transparent !important; }
