/* ==========================================================================
   Nexvoryn Social: the public side (explore, feed, business pages, posts).
   Colours come from aq.css + nx-theme.css tokens, so light and dark both work.
   ========================================================================== */

.nxs {
  --s-pad: 16px; --s-top: 60px; --s-dock: 84px;
  --s-line: var(--hairline); --s-ink: var(--text-primary); --s-ink2: var(--text-secondary); --s-ink3: var(--text-muted);
  --s-card-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 32px -20px rgba(15, 27, 51, .3), 0 1px 2px rgba(15, 27, 51, .04);
  --s-strong: var(--nx-ink); --s-on-strong: #fff;
  margin: 0; min-height: 100dvh; color: var(--s-ink); font: 400 15.5px/1.5 var(--aq-font, Inter, system-ui, sans-serif);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--s-ink) 6%, transparent) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: clip;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nxs { --s-card-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 16px 40px -22px rgba(0, 0, 0, .7); --s-strong: #34D399; --s-on-strong: #062B20; }
}
.nxs *, .nxs *::before, .nxs *::after { box-sizing: border-box; }
.nxs a { color: inherit; text-decoration: none; }
.nxs h1, .nxs h2, .nxs h3 { margin: 0; font-family: var(--nx-display); letter-spacing: -.028em; line-height: 1.18; text-wrap: balance; }
.nxs p { margin: 0; }
.nxs button { font: inherit; color: inherit; cursor: pointer; }
.nxs img { max-width: 100%; display: block; }
.nxs [hidden] { display: none !important; }
.nxs :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 10px; }
.nxs-ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nxs-muted { color: var(--s-ink2); }
.nxs-note { color: var(--s-ink3); font-size: 13px; line-height: 1.45; }
.nxs-verified { width: 18px; height: 18px; margin-left: 5px; vertical-align: -3px; color: var(--verified); fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top bar ---------- */
.nxs-top {
  position: sticky; top: 0; z-index: 50; height: var(--s-top); display: flex; align-items: center; gap: 12px; padding: 0 var(--s-pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.nxs-top.is-scrolled { border-bottom-color: var(--s-line); box-shadow: 0 10px 30px -24px rgba(15, 27, 51, .6); }
.nxs-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--nx-display); letter-spacing: -.03em; }
.nxs-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--nx-grad); display: grid; place-items: center; box-shadow: 0 8px 20px -6px #34D39999; }
.nxs-mark svg { width: 24px; height: 24px; }
.nxs-search { position: relative; flex: 1 1 auto; max-width: 440px; margin: 0 auto; display: none; }
.nxs-search .nxs-ic { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--s-ink3); pointer-events: none; }
.nxs-search input { width: 100%; height: 42px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--s-line); background: var(--surface); color: var(--s-ink); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.nxs-search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px #34D39933; }
.nxs-top-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nxs-top-dash { display: none; }
.nxs-iconbtn { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--s-ink2); transition: background-color .2s, color .2s, transform .2s var(--nx-ease); }
.nxs-iconbtn:hover { background: color-mix(in srgb, var(--s-ink) 7%, transparent); color: var(--s-ink); }
.nxs-iconbtn:active { transform: scale(.9); }
.nxs-iconbtn--line { border: 1px solid var(--border); background: var(--surface); }
.nxs-dot { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--nx-ember); color: #3A2500; font: 700 11px/18px var(--aq-font, sans-serif); text-align: center; box-shadow: 0 0 0 2px var(--bg); }

/* avatars (people) and logos (businesses) */
.nxs-av { position: relative; width: 38px; height: 38px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; font: 700 13.5px/1 var(--aq-font, sans-serif); background: var(--avatar-6-bg); color: var(--avatar-6-fg); overflow: hidden; }
.nxs-av img { width: 100%; height: 100%; object-fit: cover; }
.nxs-av--c1 { background: var(--avatar-1-bg); color: var(--avatar-1-fg); } .nxs-av--c2 { background: var(--avatar-2-bg); color: var(--avatar-2-fg); }
.nxs-av--c3 { background: var(--avatar-3-bg); color: var(--avatar-3-fg); } .nxs-av--c4 { background: var(--avatar-4-bg); color: var(--avatar-4-fg); }
.nxs-av--c5 { background: var(--avatar-5-bg); color: var(--avatar-5-fg); } .nxs-av--c6 { background: var(--avatar-6-bg); color: var(--avatar-6-fg); }
.nxs-av--sm { width: 32px; height: 32px; font-size: 12px; } .nxs-av--xl { width: 76px; height: 76px; font-size: 26px; }
.nxs-av.is-online { overflow: visible; }
.nxs-av.is-online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 2.5px var(--surface); animation: nx-breathe 2.4s ease-out infinite; }
.nxs-logo { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; border-radius: 14px; overflow: hidden; background: var(--nx-night); color: #fff; font: 700 15px/1 var(--nx-display); }
.nxs-logo img { width: 100%; height: 100%; object-fit: cover; }
.nxs-logo--sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.nxs-logo--lg { width: 60px; height: 60px; border-radius: 19px; font-size: 20px; }
.nxs-logo--xl { width: 96px; height: 96px; border-radius: 28px; font-size: 32px; box-shadow: 0 0 0 4px var(--surface), 0 16px 34px -14px rgba(15, 27, 51, .5); }
.nxs-logo--ring { width: 58px; height: 58px; border-radius: 20px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #34D399; }

/* ---------- shell ---------- */
.nxs-shell { display: block; max-width: 680px; margin: 0 auto; padding: 14px var(--s-pad) calc(var(--s-dock) + 28px + env(safe-area-inset-bottom)); }
.nxs-rail, .nxs-side { display: none; }
.nxs-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; outline: 0; }
.nxs-main > * { animation: nx-rise .55s var(--nx-ease) backwards; }
.nxs-main > :nth-child(2) { animation-delay: .06s; } .nxs-main > :nth-child(3) { animation-delay: .12s; } .nxs-main > :nth-child(n+4) { animation-delay: .18s; }

.nxs-dock {
  position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 64px; padding: 7px 6px; display: flex; align-items: stretch;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; background: rgba(15, 27, 51, .9);
  -webkit-backdrop-filter: saturate(1.6) blur(22px); backdrop-filter: saturate(1.6) blur(22px);
  box-shadow: 0 18px 40px -10px rgba(11, 20, 36, .55), 0 2px 8px rgba(11, 20, 36, .25), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: nx-rise .5s var(--nx-ease) .1s backwards;
}
.nxs .nxs-dock-item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: rgba(255, 255, 255, .62); font: 500 10.5px/13px var(--aq-font, sans-serif); }
.nxs-dock-ic { position: relative; width: 48px; height: 30px; display: grid; place-items: center; border-radius: 15px; transition: background .3s var(--nx-ease), transform .3s var(--nx-ease); }
.nxs-dock-item:active .nxs-dock-ic { transform: scale(.88); }
.nxs .nxs-dock-item.is-on { color: #fff; }
.nxs-dock-item.is-on .nxs-dock-ic { background: var(--nx-grad); color: var(--nx-on-bright); box-shadow: 0 6px 16px #34D39955; animation: nx-pop .45s var(--nx-ease) backwards; }
.nxs-dock .nxs-dot { top: -4px; right: 2px; box-shadow: 0 0 0 2px #0F1B33; }

@media (min-width: 1000px) {
  .nxs { --s-pad: 28px; }
  .nxs-search { display: block; } .nxs-top-search { display: none; } .nxs-top-dash { display: inline-flex; }
  .nxs-dock { display: none; }
  .nxs-shell { display: grid; grid-template-columns: 216px minmax(0, 640px); justify-content: center; gap: 32px; max-width: none; padding-bottom: 60px; padding-top: 22px; }
  .nxs-rail { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--s-top) + 22px); align-self: start; }
  .nxs .nxs-rail-item { display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 0 16px; border-radius: 16px; color: var(--s-ink2); font-weight: 500; font-size: 15.5px; transition: background-color .2s, color .2s, transform .25s var(--nx-ease); }
  .nxs-rail-item:hover { background: color-mix(in srgb, var(--s-ink) 6%, transparent); color: var(--s-ink); transform: translateX(3px); }
  .nxs .nxs-rail-item.is-on { background: var(--nx-night); color: #fff; font-weight: 600; box-shadow: 0 14px 28px -16px rgba(11, 20, 36, .8); }
  .nxs-rail-item.is-on .nxs-ic { color: var(--nx-bright); }
  .nxs-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--nx-ember); color: #3A2500; font: 700 12px/22px var(--aq-font, sans-serif); text-align: center; }
  .nxs-rail-note { margin-top: 18px; padding: 0 16px; color: var(--s-ink3); font-size: 13px; line-height: 1.5; }
  .nxs .nxs-rail-biz { margin: 10px 16px 0; color: var(--accent-text); font-weight: 600; font-size: 13.5px; }
}
@media (min-width: 1260px) {
  .nxs-shell { grid-template-columns: 216px minmax(0, 640px) 300px; }
  .nxs-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--s-top) + 22px); align-self: start; }
}

/* ---------- pieces ---------- */
.nxs-card { background: var(--surface); border: 1px solid var(--s-line); border-radius: 24px; box-shadow: var(--s-card-shadow); }
.nxs-head { padding: 8px 2px 0; } .nxs-head h1 { font-size: 30px; } .nxs-head p { margin-top: 6px; color: var(--s-ink2); }
.nxs-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px 12px; } .nxs-sec-head h2 { font-size: 20px; }
.nxs-banner { padding: 12px 16px; border-radius: 16px; background: var(--warning-tint); color: var(--warning-text); font-size: 14.5px; }
.nxs .nxs-banner a { font-weight: 700; text-decoration: underline; }

.nxs-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--s-ink); font: 600 15px/1 var(--aq-font, sans-serif); white-space: nowrap; transition: transform .2s var(--nx-ease), box-shadow .25s var(--nx-ease), background-color .2s, color .2s, border-color .2s; }
.nxs-btn .nxs-ic { width: 19px; height: 19px; }
.nxs-btn:active { transform: scale(.96); }
.nxs .nxs-btn--primary { border-color: transparent; background: var(--bubble-own); color: #fff; box-shadow: 0 10px 24px -8px #08805FB3, 0 1px 0 rgba(255, 255, 255, .28) inset; }
.nxs-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -10px #08805FCC, 0 1px 0 rgba(255, 255, 255, .28) inset; }
.nxs .nxs-btn--chat { border-color: transparent; background: var(--nx-grad); color: var(--nx-on-bright); font-weight: 700; box-shadow: 0 10px 24px -8px #34D39999; }
.nxs-btn--chat:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -10px #34D399B3; }
.nxs .nxs-btn--soft { border-color: transparent; background: var(--accent-soft); color: var(--accent-text); }
.nxs-btn--soft:hover { background: color-mix(in srgb, var(--accent-soft) 80%, var(--accent)); }
.nxs-btn[disabled] { opacity: .55; pointer-events: none; }

/* follow: ink when off, a quiet outline when on; the two labels swap */
.nxs .nxs-follow { border-color: transparent; background: var(--s-strong); color: var(--s-on-strong); overflow: hidden; min-width: 118px; }
.nxs-follow > span { display: inline-flex; align-items: center; gap: 7px; transition: transform .35s var(--nx-ease), opacity .25s; }
.nxs-follow-on { position: absolute; inset: 0; justify-content: center; transform: translateY(110%); opacity: 0; }
.nxs .nxs-follow.is-on { background: transparent; border-color: var(--border); color: var(--s-ink); }
.nxs-follow.is-on .nxs-follow-off { transform: translateY(-110%); opacity: 0; }
.nxs-follow.is-on .nxs-follow-on { transform: none; opacity: 1; }
.nxs-follow.is-on .nxs-follow-on .nxs-ic { color: var(--success); }
.nxs-follow--big { min-width: 136px; min-height: 46px; }

/* ---------- explore hero ---------- */
.nxs-hero { position: relative; isolation: isolate; overflow: hidden; padding: 30px 22px 24px; border-radius: 30px; background: var(--nx-night); color: #fff; box-shadow: 0 30px 60px -30px rgba(11, 20, 36, .8); }
.nxs-hero::before, .nxs-hero::after, .nxs-hero-glow { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.nxs-hero::before, .nxs-hero::after, .nxs-hero-glow { display: none; }
.nxs-hero h1 { font-size: clamp(26px, 6.4vw, 38px); max-width: 15ch; }
.nxs-hero p { margin-top: 10px; max-width: 46ch; color: rgba(255, 255, 255, .78); }
.nxs-bigsearch { position: relative; display: flex; gap: 8px; margin-top: 20px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .25s, box-shadow .25s; }
.nxs-bigsearch:focus-within { border-color: #34D399; box-shadow: 0 0 0 4px #34D39933; }
.nxs-bigsearch .nxs-ic { position: absolute; left: 20px; top: 50%; margin-top: -10px; width: 20px; height: 20px; color: rgba(255, 255, 255, .7); pointer-events: none; }
.nxs-bigsearch input { flex: 1; min-width: 0; height: 44px; padding: 0 8px 0 44px; border: 0; background: none; color: #fff; font: inherit; }
.nxs-bigsearch input::placeholder { color: rgba(255, 255, 255, .6); } .nxs-bigsearch input:focus { outline: 0; }
.nxs .nxs-bigsearch .nxs-btn { background: var(--nx-grad); color: var(--nx-on-bright); font-weight: 700; box-shadow: none; }

.nxs-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 calc(var(--s-pad) * -1); padding-inline: var(--s-pad); scrollbar-width: none; scroll-snap-type: x proximity; }
.nxs-chips::-webkit-scrollbar { display: none; }
.nxs .nxs-chip { flex: none; min-height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--s-line); color: var(--s-ink2); font-weight: 500; font-size: 14.5px; scroll-snap-align: start; transition: background-color .2s, color .2s, transform .2s var(--nx-ease); }
.nxs-chip:hover { transform: translateY(-1px); color: var(--s-ink); }
.nxs .nxs-chip.is-on { background: var(--s-strong); border-color: transparent; color: var(--s-on-strong); font-weight: 600; }

/* page cards */
.nxs-pcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .nxs-pcs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nxs-pc { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 0 14px 16px; text-align: center; transition: transform .35s var(--nx-ease), box-shadow .35s var(--nx-ease); }
@media (hover: hover) { .nxs-pc:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -26px rgba(15, 27, 51, .45); } }
.nxs-pc-cover { align-self: stretch; height: 64px; margin: 0 -14px; background: var(--nx-night) center / cover; }
.nxs-pc .nxs-logo { margin-top: -30px; box-shadow: 0 0 0 3px var(--surface); }
.nxs-pc h3 { margin-top: 10px; font-size: 15.5px; overflow-wrap: anywhere; }
.nxs-pc-sub { margin-top: 3px; color: var(--s-ink3); font-size: 13px; }
.nxs-pc-count { margin: 8px 0 12px; color: var(--s-ink2); font-size: 13px; } .nxs-pc-count b { color: var(--s-ink); }
.nxs-pc .nxs-follow { min-height: 38px; margin-top: auto; align-self: stretch; font-size: 14px; }

.nxs-strip { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px; scrollbar-width: none; } .nxs-strip::-webkit-scrollbar { display: none; }
.nxs-strip-item { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.nxs-strip-name { max-width: 100%; font-size: 12px; color: var(--s-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- post ---------- */
.nxs-feed { display: flex; flex-direction: column; gap: 16px; }
.nxs-post { padding: 16px; overflow: hidden; }
.nxs-feed > .nxs-post { animation: nx-rise .5s var(--nx-ease) backwards; }
.nxs-post-head { display: flex; align-items: center; gap: 12px; }
.nxs-post-who { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nxs-post-name { font-weight: 650; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nxs-post-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--s-ink3); font-size: 13px; }
.nxs-post-meta b { color: var(--secondary-text); font-weight: 600; }
.nxs-post-body { margin-top: 12px; font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.nxs-post-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.nxs .nxs-post-body a, .nxs-prose a, .nxs .nxs-tag { color: var(--accent-text); font-weight: 600; }
.nxs-media { display: grid; gap: 4px; margin-top: 14px; border-radius: 18px; overflow: hidden; }
.nxs-media--2 { grid-template-columns: 1fr 1fr; } .nxs-media--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; } .nxs-media--4 { grid-template-columns: 1fr 1fr; }
.nxs-media--3 .nxs-media-item:first-child { grid-row: span 2; }
.nxs-media-item { position: relative; display: block; overflow: hidden; background: var(--surface-sunken); aspect-ratio: 1; }
.nxs-media--1 .nxs-media-item { aspect-ratio: 4 / 3; max-height: 560px; } .nxs-media--3 .nxs-media-item:first-child { aspect-ratio: auto; }
.nxs-media-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--nx-ease); }
@media (hover: hover) { .nxs-media-item:hover img { transform: scale(1.04); } }
.nxs-media-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 20, 36, .6); color: #fff; font: 700 24px/1 var(--nx-display); }
.nxs-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--secondary-text); } .nxs-kind .nxs-ic { width: 16px; height: 16px; }

.nxs-offer { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--secondary-tint); border: 1px dashed color-mix(in srgb, var(--secondary) 55%, transparent); }
.nxs-offer-main { flex: 1; min-width: 0; } .nxs-offer h3 { margin-top: 4px; font-size: 19px; } .nxs-offer p { margin-top: 4px; color: var(--s-ink2); font-size: 13.5px; }
.nxs-offer-code { flex: none; display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 8px; padding: 9px 14px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: 0 6px 16px -8px rgba(15, 27, 51, .4); text-align: left; transition: transform .2s var(--nx-ease); }
.nxs-offer-code:active { transform: scale(.95); }
.nxs-offer-code small { grid-column: 1; color: var(--s-ink3); font-size: 11.5px; } .nxs-offer-code b { grid-column: 1; font: 700 16px/1.1 var(--nx-display); letter-spacing: .04em; } .nxs-offer-code .nxs-ic { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--s-ink3); }
.nxs-event { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 14px; border-radius: 20px; background: var(--info-tint); }
.nxs-event .nxs-kind { color: var(--info-text); } .nxs-event h3 { margin-top: 4px; font-size: 18px; } .nxs-event p { margin-top: 3px; color: var(--s-ink2); font-size: 13.5px; }
.nxs-event-day { flex: none; width: 62px; height: 66px; display: grid; place-content: center; text-align: center; border-radius: 16px; background: var(--nx-night); color: #fff; }
.nxs-event-day b { font: 700 24px/1 var(--nx-display); } .nxs-event-day span { margin-top: 3px; font-size: 12px; color: var(--nx-bright); font-weight: 700; }

.nxs-poll { display: grid; gap: 8px; margin-top: 14px; }
.nxs-poll-opt { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--border); border-radius: 15px; background: var(--surface); text-align: left; font-weight: 550; transition: border-color .2s, transform .2s var(--nx-ease); }
.nxs-poll-opt:not([disabled]):hover { border-color: var(--accent); } .nxs-poll-opt:active { transform: scale(.985); }
.nxs-poll-opt::before { content: ""; position: absolute; z-index: -1; inset: 0; width: 0; background: var(--accent-soft); transition: width .9s var(--nx-ease); }
.nxs-poll-pct { opacity: 0; font-variant-numeric: tabular-nums; transition: opacity .3s .2s; }
.nxs-poll.is-voted .nxs-poll-opt::before { width: var(--pct); } .nxs-poll.is-voted .nxs-poll-pct { opacity: 1; }
.nxs-poll.is-voted .nxs-poll-opt.is-mine { border-color: var(--accent); } .nxs-poll.is-voted .nxs-poll-opt.is-mine::before { background: color-mix(in srgb, var(--accent) 26%, var(--surface)); }
.nxs-poll-foot { color: var(--s-ink3); font-size: 13px; }

.nxs-post-acts { display: flex; align-items: center; gap: 4px; margin: 12px -6px -6px; }
.nxs .nxs-act { display: inline-flex; align-items: center; gap: 7px; min-width: 44px; min-height: 42px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--s-ink2); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s; }
.nxs-act:hover { background: color-mix(in srgb, var(--s-ink) 6%, transparent); color: var(--s-ink); }
.nxs-act .nxs-ic { transition: transform .3s var(--nx-ease); } .nxs-act:active .nxs-ic { transform: scale(.82); }
.nxs-act--save { margin-left: auto; }
.nxs .nxs-act--like.is-on { color: #E5385C; } .nxs-act--like.is-on .nxs-ic { fill: currentColor; }
.nxs .nxs-act--save.is-on { color: var(--accent-text); } .nxs-act--save.is-on .nxs-ic { fill: currentColor; }
.nxs-act--like.is-burst .nxs-ic { animation: nxs-heart .55s var(--nx-ease); }
.nxs-act--like { position: relative; }
.nxs-act--like.is-burst::after { content: ""; position: absolute; left: 21px; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; box-shadow: 0 -18px 0 -2px #E5385C, 15px -10px 0 -2px #F59E0B, 17px 8px 0 -2px #34D399, 0 18px 0 -2px #34D399, -15px 9px 0 -2px #E5385C, -17px -8px 0 -2px #FCD34D; animation: nxs-burst .6s ease-out forwards; pointer-events: none; }
@keyframes nxs-heart { 0% { transform: scale(.6); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes nxs-burst { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.nxs-more { display: grid; place-items: center; padding: 6px 0; }

/* ---------- business page ---------- */
.nxs-ph { overflow: hidden; }
.nxs-ph-cover { position: relative; height: 168px; background: var(--nx-night) center / cover; overflow: hidden; }
.nxs-ph-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 20, 36, 0) 45%, rgba(11, 20, 36, .45) 100%); }
.nxs-ph-aurora { display: none; }
.nxs-status { position: absolute; z-index: 1; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(11, 20, 36, .62); color: #fff; font-size: 12.5px; font-weight: 600; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nxs-status i { width: 8px; height: 8px; border-radius: 50%; background: #F59E0B; } .nxs-status.is-open i { background: #3DD68C; animation: nx-breathe 2.2s ease-out infinite; }
.nxs-ph-body { position: relative; padding: 0 18px 18px; }
.nxs-ph-body > .nxs-logo { margin-top: -48px; position: relative; z-index: 1; }
.nxs-ph-id { margin-top: 12px; } .nxs-ph-id h1 { font-size: 26px; overflow-wrap: anywhere; } .nxs-ph-id h1 .nxs-verified { width: 22px; height: 22px; }
.nxs-ph-sub { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 5px; color: var(--s-ink3); font-size: 14px; }
.nxs-ph-tag { margin-top: 10px; color: var(--s-ink2); font-size: 15.5px; max-width: 56ch; }
.nxs-ph-stats { display: flex; gap: 26px; margin: 16px 0 0; }
.nxs-ph-stats div { display: flex; flex-direction: column; } .nxs-ph-stats dd { margin: 0; font: 700 21px/1.1 var(--nx-display); font-variant-numeric: tabular-nums; } .nxs-ph-stats dt { color: var(--s-ink3); font-size: 12.5px; margin-top: 2px; }
.nxs-ph-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.nxs-ph-acts .nxs-follow, .nxs-ph-acts .nxs-btn--chat { flex: 1 1 130px; }
@media (min-width: 620px) { .nxs-ph-cover { height: 220px; } .nxs-ph-acts .nxs-follow, .nxs-ph-acts .nxs-btn--chat { flex: 0 0 auto; } }

.nxs-tabs { position: sticky; top: calc(var(--s-top) + 6px); z-index: 30; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--s-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); overflow-x: auto; scrollbar-width: none; box-shadow: var(--s-card-shadow); }
.nxs-tabs::-webkit-scrollbar { display: none; }
.nxs .nxs-tab { flex: 1 0 auto; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--s-ink2); font-weight: 600; font-size: 14.5px; transition: background-color .25s var(--nx-ease), color .2s; }
.nxs-tab span { margin-left: 6px; color: var(--s-ink3); font-weight: 500; }
.nxs .nxs-tab.is-on { background: var(--s-strong); color: var(--s-on-strong); } .nxs-tab.is-on span { color: inherit; opacity: .7; }
.nxs-panel { display: flex; flex-direction: column; gap: 16px; } .nxs-panel.is-on { animation: nx-rise .4s var(--nx-ease) backwards; }

.nxs-tickets { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; } .nxs-tickets::-webkit-scrollbar { display: none; }
.nxs-ticket { flex: none; width: 210px; display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-radius: 18px; background: var(--secondary-tint); border: 1px dashed color-mix(in srgb, var(--secondary) 55%, transparent); transition: transform .3s var(--nx-ease); }
.nxs-ticket:hover { transform: translateY(-3px) rotate(-1deg); } .nxs-ticket b { font: 700 16px/1.25 var(--nx-display); } .nxs-ticket small { color: var(--s-ink3); }

.nxs-shop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .nxs-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nxs-prod { display: flex; flex-direction: column; padding: 10px 10px 14px; overflow: hidden; transition: transform .35s var(--nx-ease); }
@media (hover: hover) { .nxs-prod:hover { transform: translateY(-4px); } }
.nxs-prod-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 16px; overflow: hidden; background: var(--surface-sunken); color: var(--s-ink3); }
.nxs-prod-img img { width: 100%; height: 100%; object-fit: cover; } .nxs-prod-img .nxs-ic { width: 34px; height: 34px; }
.nxs-prod-out { position: absolute; left: 8px; top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 20, 36, .75); color: #fff; font-size: 12px; font-weight: 600; }
.nxs-prod.is-out .nxs-prod-img img { filter: grayscale(.7); opacity: .7; }
.nxs-prod h3 { margin: 10px 4px 0; font-size: 15px; } .nxs-prod-price { margin: 4px 4px 0; font: 700 16px/1.2 var(--nx-display); color: var(--accent-text); }
.nxs-prod-desc { margin: 5px 4px 0; color: var(--s-ink2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nxs-grow { flex: 1 1 auto; min-height: 12px; } .nxs-prod .nxs-btn { min-height: 38px; font-size: 13.5px; }

.nxs-about { padding: 20px; display: flex; flex-direction: column; gap: 12px; } .nxs-about h2 { font-size: 19px; }
.nxs-prose { line-height: 1.6; overflow-wrap: anywhere; }
.nxs-contact { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.nxs-contact li { display: flex; align-items: flex-start; gap: 12px; } .nxs-contact .nxs-ic { width: 20px; height: 20px; margin-top: 1px; color: var(--accent-text); }
.nxs .nxs-contact a, .nxs .nxs-about p a { color: var(--accent-text); font-weight: 600; }
.nxs-hours { width: 100%; border-collapse: collapse; font-size: 14.5px; } .nxs-hours th { text-align: left; font-weight: 500; color: var(--s-ink2); padding: 7px 0; } .nxs-hours td { text-align: right; font-variant-numeric: tabular-nums; }
.nxs-hours tr + tr th, .nxs-hours tr + tr td { border-top: 1px solid var(--divider); } .nxs-hours .is-today th, .nxs-hours .is-today td { color: var(--s-ink); font-weight: 700; }
.nxs-team { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nxs-team li { display: flex; align-items: center; gap: 12px; } .nxs-team li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .nxs-team li span { color: var(--s-ink3); font-size: 13px; }
.nxs-team .nxs-btn { min-height: 40px; padding: 0 16px; }
.nxs-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--s-ink2); font-size: 13.5px; } .nxs-rating b { font: 700 34px/1 var(--nx-display); color: var(--s-ink); }
.nxs-stars { --rate: 0; display: inline-block; width: 100px; height: 18px; background: linear-gradient(90deg, var(--star) calc(var(--rate) * 20%), var(--border) calc(var(--rate) * 20%)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='m10 1 2.5 5.2 5.7.8-4.1 4 1 5.7L10 14l-5.1 2.7 1-5.7-4.1-4 5.7-.8Z'/%3E%3C/svg%3E") 0 0 / 20px 18px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='m10 1 2.5 5.2 5.7.8-4.1 4 1 5.7L10 14l-5.1 2.7 1-5.7-4.1-4 5.7-.8Z'/%3E%3C/svg%3E") 0 0 / 20px 18px repeat-x; }
.nxs-stars--sm { width: 80px; height: 14.4px; -webkit-mask-size: 16px 14.4px; mask-size: 16px 14.4px; }
.nxs-reviews { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; } .nxs-reviews li { padding-top: 14px; border-top: 1px solid var(--divider); } .nxs-reviews p { margin-top: 6px; } .nxs-reviews small { color: var(--s-ink3); }
.nxs-faq { border-top: 1px solid var(--divider); padding: 12px 0; } .nxs-faq:first-of-type { border-top: 0; }
.nxs-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; } .nxs-faq summary::-webkit-details-marker { display: none; }
.nxs-faq summary::after { content: "+"; font: 400 22px/1 var(--nx-display); color: var(--accent-text); transition: transform .3s var(--nx-ease); } .nxs-faq[open] summary::after { transform: rotate(45deg); }
.nxs-faq p { margin-top: 8px; color: var(--s-ink2); }

/* ---------- post page: comments ---------- */
.nxs .nxs-back { display: inline-flex; align-items: center; gap: 6px; color: var(--s-ink2); font-weight: 600; font-size: 14.5px; } .nxs-back:hover { color: var(--s-ink); }
.nxs-comments { padding: 18px; display: flex; flex-direction: column; gap: 14px; } .nxs-comments h2 { font-size: 19px; } .nxs-comments h2 span { margin-left: 6px; color: var(--s-ink3); font-weight: 500; }
.nxs-cm-form { display: flex; align-items: flex-end; gap: 10px; } .nxs-cm-input { flex: 1; min-width: 0; }
.nxs-cm-input textarea { width: 100%; min-height: 44px; max-height: 160px; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface-sunken); color: var(--s-ink); font: inherit; resize: none; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.nxs-cm-input textarea:focus { outline: 0; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px #34D39933; }
.nxs-cm-replying { margin-bottom: 6px; padding-left: 6px; color: var(--s-ink2); font-size: 13px; } .nxs-cm-replying button { border: 0; background: none; color: var(--accent-text); font-weight: 600; }
.nxs-cms, .nxs-cm-replies { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .nxs-cm-replies:empty { display: none; } .nxs-cm-replies { margin-top: 10px; }
.nxs-cm { display: flex; gap: 10px; animation: nx-rise .4s var(--nx-ease) backwards; } .nxs-cm-main { flex: 1; min-width: 0; }
.nxs-cm-bubble { display: inline-block; max-width: 100%; padding: 10px 14px; border-radius: 6px 18px 18px 18px; background: var(--surface-sunken); } .nxs-cm-bubble b { font-size: 14px; } .nxs-cm-bubble p { margin-top: 2px; overflow-wrap: anywhere; }
.nxs-cm--biz > .nxs-cm-main > .nxs-cm-bubble { background: var(--accent-softer); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.nxs-cm-tag { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.nxs-cm-meta { display: flex; gap: 14px; margin: 5px 0 0 8px; color: var(--s-ink3); font-size: 12.5px; } .nxs-cm-meta button { border: 0; padding: 0; background: none; color: inherit; font-weight: 600; } .nxs-cm-meta button:hover { color: var(--s-ink); }
.nxs-minis { display: grid; gap: 10px; } .nxs .nxs-mini { display: flex; align-items: center; gap: 12px; padding: 10px; font-weight: 550; font-size: 14.5px; transition: transform .3s var(--nx-ease); } .nxs-mini:hover { transform: translateX(4px); }
.nxs-mini img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; } .nxs-mini span { padding: 6px 4px; }

/* ---------- side boxes, alerts, me, empty ---------- */
.nxs-sidebox { padding: 18px; } .nxs-sidebox h2 { font-size: 16.5px; margin-bottom: 10px; }
.nxs-taglist { list-style: none; margin: 0; padding: 0; } .nxs .nxs-taglist a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; transition: background-color .2s; } .nxs-taglist a:hover { background: color-mix(in srgb, var(--s-ink) 6%, transparent); } .nxs-taglist span { color: var(--s-ink3); font-size: 12.5px; }
.nxs-sidepage { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; } .nxs-sidepage h2 { margin: 6px 0 0; } .nxs-sidepage p { color: var(--s-ink2); font-size: 14px; } .nxs-sidepage .nxs-follow { margin-top: 10px; align-self: stretch; }
.nxs-alerts { list-style: none; margin: 0; padding: 6px; } .nxs .nxs-alerts a { display: flex; gap: 12px; padding: 12px; border-radius: 18px; transition: background-color .2s; } .nxs-alerts a:hover { background: color-mix(in srgb, var(--s-ink) 5%, transparent); }
.nxs-alerts li.is-new a { background: var(--accent-softer); }
.nxs-alert-ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); } .nxs-alert-ic--reply { background: var(--info-tint); color: var(--info-text); } .nxs-alert-ic--booking { background: var(--secondary-tint); color: var(--secondary-text); }
.nxs-alert-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .nxs-alert-txt span { color: var(--s-ink2); font-size: 14px; overflow-wrap: anywhere; } .nxs-alert-txt time { color: var(--s-ink3); font-size: 12.5px; }
.nxs-me { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 16px; padding: 20px; } .nxs-me h1 { font-size: 24px; } .nxs-me p { margin-top: 4px; color: var(--s-ink2); font-size: 14px; }
.nxs-me-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; } .nxs-me-stats div { padding: 12px 6px; border-radius: 16px; background: var(--surface-sunken); text-align: center; } .nxs-me-stats dd { margin: 0; font: 700 20px/1.1 var(--nx-display); } .nxs-me-stats dt { margin-top: 3px; color: var(--s-ink3); font-size: 12px; }
.nxs-form-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; } .nxs-form-card h2 { font-size: 19px; }
.nxs-form { display: grid; gap: 14px; } .nxs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nxs-field { display: grid; gap: 6px; } .nxs-field > span { font-size: 13.5px; font-weight: 600; color: var(--s-ink2); }
.nxs-field input, .nxs-field textarea, .nxs-field select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--s-ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.nxs-field input:focus, .nxs-field textarea:focus, .nxs-field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px #34D39933; }
.nxs-colors { border: 0; margin: 0; padding: 0; display: flex; gap: 10px; align-items: center; } .nxs-colors legend { padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--s-ink2); }
.nxs-colors input { position: absolute; opacity: 0; } .nxs-colors .nxs-av { cursor: pointer; transition: transform .25s var(--nx-ease), box-shadow .25s; } .nxs-colors input:checked + .nxs-av { transform: scale(1.12); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); } .nxs-colors input:focus-visible + .nxs-av { outline: 2px solid var(--ring); outline-offset: 5px; }
.nxs-rows { list-style: none; margin: 0; padding: 0; } .nxs-rows li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--divider); } .nxs-rows li:first-child { border-top: 0; padding-top: 0; } .nxs-rows div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .nxs-rows span { color: var(--s-ink2); font-size: 14px; }
.nxs-quote { font-style: italic; }
.nxs-pill { flex: none; padding: 4px 11px; border-radius: 999px; background: var(--warning-tint); color: var(--warning-text) !important; font-size: 12.5px !important; font-weight: 700; } .nxs-pill--accepted, .nxs-pill--done { background: var(--success-tint); color: var(--success-text) !important; } .nxs-pill--declined { background: var(--danger-tint); color: var(--danger-text) !important; }
.nxs-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 22px; } .nxs-empty--tall { padding: 70px 22px; }
.nxs-empty-ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 22px; background: var(--nx-night); color: var(--nx-bright); margin-bottom: 6px; animation: nx-float 6s ease-in-out infinite; } .nxs-empty-ic .nxs-ic { width: 28px; height: 28px; }
.nxs-empty h1 { font-size: 24px; } .nxs-empty h3 { font-size: 18px; } .nxs-empty p { color: var(--s-ink2); max-width: 38ch; } .nxs-empty .nxs-btn { margin-top: 10px; }

/* ---------- sheet, toasts, lightbox ---------- */
.nxs-sheet { width: min(100%, 480px); max-width: none; margin: auto auto 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); border: 0; border-radius: 30px 30px 0 0; background: var(--surface); color: var(--s-ink); box-shadow: 0 -30px 80px -20px rgba(11, 20, 36, .6); }
.nxs-sheet[open] { animation: nx-sheet-up .45s var(--nx-ease); } .nxs-sheet::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nxs-sheet h2 { font-size: 21px; margin: 0 44px 14px 0; } .nxs-sheet-x { position: absolute; right: 12px; top: 12px; }
.nxs-sheet-list { display: grid; gap: 6px; } .nxs-sheet-list button, .nxs .nxs-sheet-list a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--surface-sunken); font-weight: 600; text-align: left; transition: transform .2s var(--nx-ease), background-color .2s; }
.nxs-sheet-list button:hover, .nxs-sheet-list a:hover { transform: translateX(3px); background: var(--accent-softer); } .nxs-sheet-list .nxs-ic { color: var(--accent-text); }
@media (min-width: 620px) { .nxs-sheet { margin: auto; border-radius: 30px; } }
.nxs-toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--s-dock) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.nxs-toast { padding: 11px 18px; border-radius: 999px; background: var(--nx-ink); color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: 0 16px 36px -12px rgba(11, 20, 36, .7); animation: nx-rise .35s var(--nx-ease) backwards; text-align: center; }
.nxs-toast.is-bad { background: #B4231F; } .nxs-toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@media (min-width: 1000px) { .nxs-toasts { bottom: 28px; } }
.nxs-lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(4, 7, 14, .94); animation: nxs-fade .25s ease-out; }
.nxs-lightbox img { max-width: 100vw; max-height: 100dvh; object-fit: contain; animation: nx-pop .4s var(--nx-ease); }
.nxs-lightbox button { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }
.nxs-lightbox .nxs-lb-x { right: 14px; top: calc(14px + env(safe-area-inset-top)); } .nxs-lightbox .nxs-lb-prev { left: 12px; } .nxs-lightbox .nxs-lb-next { right: 12px; }
.nxs-lightbox .nxs-lb-n { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: 13.5px; font-weight: 600; }
@keyframes nxs-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .nxs *, .nxs *::before, .nxs *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Second pass: tighter and simpler. Four tabs, one clear action per screen.
   ========================================================================== */
.nxs { --s-top: 54px; --s-dock: 74px; font-size: 15px; background-image: none; }
.nxs-top { gap: 10px; }
.nxs-brand { font-size: 17px; gap: 9px; } .nxs-mark { width: 30px; height: 30px; border-radius: 9px; } .nxs-mark svg { width: 22px; height: 22px; }
.nxs-iconbtn { width: 38px; height: 38px; } .nxs-ic { width: 20px; height: 20px; }
.nxs-av { width: 34px; height: 34px; font-size: 12.5px; }
.nxs-shell { padding-top: 10px; } .nxs-main { gap: 14px; }
.nxs-card { border-radius: 18px; }
.nxs-btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }
.nxs-follow { min-width: 108px; } .nxs-follow--big { min-width: 120px; min-height: 42px; }
.nxs-head h1 { font-size: 24px; } .nxs-head p { margin-top: 4px; font-size: 14px; }
.nxs-sec-head { margin: 4px 2px 8px; } .nxs-sec-head h2 { font-size: 17px; }

.nxs-dock { left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); height: 58px; padding: 6px 4px; border-radius: 20px; }
.nxs .nxs-dock-item { font-size: 10px; line-height: 12px; } .nxs-dock-ic { width: 42px; height: 28px; }

/* explore */
.nxs-hero { padding: 22px 18px 18px; border-radius: 22px; }
.nxs-hero h1 { font-size: clamp(22px, 5.6vw, 30px); } .nxs-hero p { margin-top: 8px; font-size: 14px; }
.nxs-bigsearch { margin-top: 14px; padding: 5px; border-radius: 14px; } .nxs-bigsearch input { height: 40px; } .nxs-bigsearch .nxs-btn { min-height: 40px; border-radius: 10px; }
.nxs .nxs-chip { min-height: 32px; padding: 0 13px; font-size: 13.5px; }
.nxs-pcs { gap: 10px; }
.nxs-pcs--row { display: flex; overflow-x: auto; margin: 0 calc(var(--s-pad) * -1); padding: 2px var(--s-pad) 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.nxs-pcs--row::-webkit-scrollbar { display: none; }
.nxs-pcs--row .nxs-pc { flex: 0 0 156px; scroll-snap-align: start; }
.nxs-pc { padding: 0 12px 12px; } .nxs-pc-cover { height: 52px; margin: 0 -12px; }
.nxs-pc .nxs-logo--lg { width: 50px; height: 50px; border-radius: 15px; margin-top: -25px; font-size: 17px; }
.nxs-pc h3 { margin-top: 8px; font-size: 14.5px; } .nxs-pc-sub { font-size: 12.5px; } .nxs-pc-count { margin: 6px 0 10px; font-size: 12.5px; }
.nxs-pc .nxs-follow { min-height: 34px; min-width: 0; font-size: 13.5px; border-radius: 10px; }

/* posts */
.nxs-feed { gap: 12px; } .nxs-post { padding: 14px; }
.nxs-logo { width: 38px; height: 38px; border-radius: 12px; font-size: 13.5px; }
.nxs-post-name { font-size: 14.5px; } .nxs-post-meta { font-size: 12.5px; }
.nxs-post-body { margin-top: 10px; font-size: 15px; line-height: 1.5; }
.nxs-media { margin-top: 12px; border-radius: 14px; gap: 3px; }
.nxs-post-acts { margin-top: 8px; } .nxs .nxs-act { min-height: 38px; min-width: 40px; padding: 0 9px; font-size: 13.5px; }
.nxs-offer, .nxs-event { margin-top: 12px; padding: 12px; border-radius: 14px; } .nxs-offer h3 { font-size: 17px; } .nxs-event h3 { font-size: 16px; }
.nxs-event-day { width: 54px; height: 58px; border-radius: 13px; } .nxs-event-day b { font-size: 21px; }
.nxs-poll { gap: 6px; margin-top: 12px; } .nxs-poll-opt { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14.5px; }

/* business page */
.nxs-ph-cover { height: 132px; }
.nxs-logo--xl { width: 76px; height: 76px; border-radius: 22px; font-size: 26px; box-shadow: 0 0 0 3px var(--surface), 0 12px 26px -12px rgba(15, 27, 51, .5); }
.nxs-ph-body { padding: 0 16px 16px; } .nxs-ph-body > .nxs-logo { margin-top: -38px; }
.nxs-ph-id { margin-top: 10px; } .nxs-ph-id h1 { font-size: 22px; } .nxs-ph-sub { font-size: 13px; } .nxs-ph-tag { margin-top: 8px; font-size: 14.5px; }
.nxs-ph-stats { gap: 22px; margin-top: 12px; } .nxs-ph-stats dd { font-size: 18px; } .nxs-ph-stats dt { font-size: 12px; }
.nxs-ph-acts { margin-top: 14px; flex-wrap: nowrap; } .nxs-ph-acts .nxs-follow, .nxs-ph-acts .nxs-btn--chat { flex: 1 1 0; min-width: 0; }
.nxs-ph-acts .nxs-iconbtn { flex: none; width: 42px; height: 42px; border-radius: 12px; }
@media (min-width: 620px) { .nxs-ph-cover { height: 190px; } .nxs-ph-acts .nxs-follow, .nxs-ph-acts .nxs-btn--chat { flex: 0 0 150px; } }
.nxs-tabs { padding: 4px; border-radius: 14px; top: calc(var(--s-top) + 6px); } .nxs .nxs-tab { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.nxs-ticket { width: 190px; padding: 12px 14px; border-radius: 14px; } .nxs-ticket b { font-size: 14.5px; }
.nxs-about { padding: 16px; gap: 10px; } .nxs-about h2 { font-size: 17px; }
.nxs-prod { padding: 8px 8px 10px; } .nxs-prod-img { border-radius: 12px; } .nxs-prod h3 { margin-top: 8px; font-size: 14px; } .nxs-prod-price { font-size: 14.5px; } .nxs-prod .nxs-btn { min-height: 34px; font-size: 13px; border-radius: 10px; }
.nxs-team li { gap: 10px; } .nxs-team .nxs-btn { min-height: 36px; padding: 0 14px; }

/* the sticky bar of a business page on phones: Follow and Chat are always under the thumb */
.nxs-cta { position: fixed; z-index: 56; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 7px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(15, 27, 51, .92); -webkit-backdrop-filter: saturate(1.6) blur(22px); backdrop-filter: saturate(1.6) blur(22px); box-shadow: 0 16px 36px -10px rgba(11, 20, 36, .55); animation: nx-rise .45s var(--nx-ease) .1s backwards; }
.nxs-cta-in { display: flex; gap: 7px; }
.nxs-cta .nxs-btn { min-height: 44px; flex: 1 1 0; min-width: 0; padding: 0 10px; }
.nxs-cta .nxs-btn--chat { flex: 1.5 1 0; font-size: 15px; }
.nxs .nxs-cta .nxs-follow { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .14); }
.nxs .nxs-cta .nxs-follow.is-on { background: transparent; color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .2); }
.nxs .nxs-cta .nxs-btn--soft { background: rgba(255, 255, 255, .1); color: #fff; }
.nxs-dock--withcta { display: none; }
@media (min-width: 1000px) { .nxs-cta { display: none; } }

/* comments, alerts, me */
.nxs-comments { padding: 14px; gap: 12px; } .nxs-comments h2 { font-size: 17px; }
.nxs-cm-input textarea { min-height: 40px; padding: 9px 14px; border-radius: 14px; }
.nxs-cm-bubble { padding: 8px 12px; border-radius: 4px 14px 14px 14px; } .nxs-cm-bubble b { font-size: 13.5px; } .nxs-cm-bubble p { font-size: 14.5px; }
.nxs .nxs-alerts a { padding: 10px; border-radius: 14px; } .nxs-alert-ic { width: 36px; height: 36px; border-radius: 11px; } .nxs-alert-txt b { font-size: 14.5px; } .nxs-alert-txt span { font-size: 13.5px; }
.nxs-me { padding: 16px; gap: 12px 14px; } .nxs-me h1 { font-size: 20px; } .nxs-av--xl { width: 58px; height: 58px; font-size: 20px; }
.nxs-me-stats div { padding: 9px 4px; border-radius: 12px; } .nxs-me-stats dd { font-size: 17px; } .nxs-me-stats dt { font-size: 11.5px; }
.nxs-links { padding: 4px; display: grid; }
.nxs .nxs-links a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px; font-weight: 550; transition: background-color .2s; }
.nxs-links a + a { box-shadow: 0 -1px 0 var(--divider); } .nxs-links a:hover { background: color-mix(in srgb, var(--s-ink) 5%, transparent); }
.nxs-links .nxs-ic { color: var(--accent-text); } .nxs-links span { flex: 1; }
.nxs-links b { min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--surface-sunken); color: var(--s-ink2); font-size: 12.5px; text-align: center; } .nxs-links b.is-new { background: var(--nx-ember); color: #3A2500; }
.nxs-form-card { padding: 16px; gap: 12px; } .nxs-form-card h2 { font-size: 17px; }
.nxs-field input, .nxs-field textarea, .nxs-field select { min-height: 44px; padding: 10px 12px; border-radius: 12px; font-size: 16px; }
.nxs-empty { padding: 28px 18px; } .nxs-empty-ic { width: 52px; height: 52px; border-radius: 16px; } .nxs-empty h3 { font-size: 16.5px; } .nxs-empty p { font-size: 14px; }
.nxs-sheet { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; } .nxs-sheet h2 { font-size: 18px; margin-bottom: 12px; }
.nxs-sheet-list button, .nxs .nxs-sheet-list a { min-height: 46px; border-radius: 12px; font-size: 15px; }
@media (min-width: 620px) { .nxs-sheet { border-radius: 22px; } }
@media (min-width: 1000px) { .nxs-shell { grid-template-columns: 200px minmax(0, 620px); gap: 28px; padding-top: 18px; } .nxs .nxs-rail-item { min-height: 40px; padding: 0 12px; border-radius: 11px; font-size: 14.5px; gap: 11px; } }
@media (min-width: 1260px) { .nxs-shell { grid-template-columns: 200px minmax(0, 620px) 280px; } }
/* phones: Follow and Chat live in the sticky bar, so the header keeps only the menu */
@media (max-width: 999px) {
  .nxs-ph-acts { position: absolute; top: 12px; right: 14px; margin: 0; }
  .nxs-ph-acts .nxs-follow, .nxs-ph-acts .nxs-btn--chat { display: none; }
  .nxs-ph-acts .nxs-iconbtn { width: 38px; height: 38px; }
}

/* flat brand marks */
.nxs-mark { background: #08805F; box-shadow: none; }
.nxs .nxs-btn--primary { background: #08805F; box-shadow: 0 6px 14px -8px rgba(8, 128, 95, .8); } .nxs-btn--primary:hover { background: #066B50; }
.nxs .nxs-btn--chat { background: #34D399; color: #062B20; box-shadow: none; } .nxs-btn--chat:hover { background: #4ADE9E; box-shadow: none; }
.nxs .nxs-bigsearch .nxs-btn { background: #34D399; color: #062B20; }
.nxs-hero { box-shadow: 0 16px 34px -22px rgba(15, 27, 51, .7); }
.nxs-logo, .nxs-pc-cover, .nxs-ph-cover, .nxs-empty-ic, .nxs-event-day { background-color: #0F1B33; }

/* ==========================================================================
   Third pass: chat inside the page, orders, reviews, notice, notifications
   ========================================================================== */
.nxs-notice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--secondary-tint); color: var(--secondary-text); font-size: 14px; font-weight: 550; }
.nxs-notice .nxs-ic { width: 18px; height: 18px; margin-top: 1px; }
.nxs-starfill { width: 15px; height: 15px; margin-left: 3px; vertical-align: -1px; fill: #F59E0B; stroke: #F59E0B; }
.nxs-prod-acts { display: flex; gap: 6px; } .nxs-prod-acts .nxs-btn { flex: 1 1 0; min-width: 0; padding: 0 10px; } .nxs-prod-acts .nxs-btn--soft:not(:only-child) { flex: 0 0 40px; padding: 0; }
.nxs-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; } .nxs .nxs-social .nxs-btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; background: var(--surface-sunken); border-color: transparent; }
.nxs .nxs-social--whatsapp { color: #0B7A47; } .nxs .nxs-social--instagram { color: #B4236A; } .nxs .nxs-social--facebook { color: #1B5FCC; } .nxs .nxs-social--youtube { color: #C4221C; }

/* reviews */
.nxs-rate { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; } .nxs-rate legend { display: block; width: 100%; padding: 0; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--s-ink2); }
.nxs-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nxs-rate label { cursor: pointer; padding: 4px; color: var(--border); transition: transform .2s var(--nx-ease), color .15s; } .nxs-rate label .nxs-ic { width: 32px; height: 32px; fill: currentColor; stroke: currentColor; }
.nxs-rate label:hover, .nxs-rate label:hover ~ label, .nxs-rate input:checked ~ label { color: #F59E0B; } .nxs-rate label:active { transform: scale(.85); }
.nxs-rate input:focus-visible + label { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
.nxs-review-form { padding-top: 12px; border-top: 1px solid var(--divider); }
.nxs-reviews li { padding-top: 12px; } .nxs-reviews li:first-child { border-top: 0; padding-top: 0; }
.nxs-review-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } .nxs-review-head b { font-size: 14.5px; } .nxs-review-head time { margin-left: auto; color: var(--s-ink3); font-size: 12.5px; }
.nxs-review-reply { margin-top: 8px !important; padding: 9px 12px; border-radius: 12px; background: var(--accent-softer); font-size: 14px; } .nxs-review-reply b { display: block; font-size: 12.5px; color: var(--accent-text); }

/* order sheet */
.nxs-order-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken); } .nxs-order-item > div:first-child { display: flex; flex-direction: column; min-width: 0; } .nxs-order-item span { color: var(--accent-text); font-weight: 700; font-size: 14px; }
.nxs-qty { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.nxs-qty button { width: 36px; height: 36px; border: 0; border-radius: 9px; background: none; font-size: 20px; font-weight: 600; } .nxs-qty button:hover { background: var(--surface-sunken); } .nxs-qty output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.nxs-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-sunken); } .nxs-seg label { position: relative; cursor: pointer; } .nxs-seg input { position: absolute; opacity: 0; }
.nxs-seg span { display: grid; place-items: center; min-height: 38px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--s-ink2); transition: background-color .2s, color .2s; } .nxs-seg input:checked + span { background: var(--surface); color: var(--s-ink); box-shadow: var(--shadow-e1); } .nxs-seg input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 1px; }

/* notifications */
.nxs .nxs-links button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px; background: none; font-weight: 550; text-align: left; box-shadow: 0 -1px 0 var(--divider); } .nxs-links button:hover { background: color-mix(in srgb, var(--s-ink) 5%, transparent); }
.nxs-links b.is-on { background: var(--success-tint); color: var(--success-text); }
.nxs .nxs-pushcard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-softer); }
.nxs-sheet .nxs-form .nxs-btn { width: 100%; }

/* the chat panel: full screen on phones, a docked window on computers */
.nxs-chat { position: fixed; z-index: 80; inset: 0; display: flex; flex-direction: column; background: var(--surface); animation: nx-sheet-up .35s var(--nx-ease); }
.nxs-chat header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; padding: 0 6px 0 16px; padding-top: env(safe-area-inset-top); background: #0F1B33; color: #fff; box-sizing: content-box; }
.nxs-chat header b { font: 600 15px/1 var(--nx-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nxs-chat header .nxs-iconbtn { color: #fff; }
.nxs-chat iframe { flex: 1 1 auto; width: 100%; border: 0; background: var(--surface); }
html.nxs-chat-on { overflow: hidden; }
@media (min-width: 760px) {
  .nxs-chat { inset: auto 20px 20px auto; width: 400px; height: min(660px, calc(100dvh - 90px)); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(15, 27, 51, .55), 0 0 0 1px var(--s-line); }
  html.nxs-chat-on { overflow: auto; }
}
