/* =============================================================================
   NEARBYHOOD — Design System (Phase 1)
   Fonts: Fraunces (serif) + Nunito (body)
   Palette: coral/teal/amber/blue/purple on warm cream
   ============================================================================= */

:root {
	/* Colors */
	--p: #ff6b47;       /* coral-orange — primary */
	--p-dk: #e85a36;
	--p-soft: #ffe8e0;
	--t: #00b896;       /* teal — success */
	--t-soft: #d5f5ec;
	--am: #f59e0b;      /* amber — tokens */
	--am-soft: #fef0c7;
	--sk: #3b82f6;      /* sky — events, verified */
	--sk-soft: #dbeafe;
	--pu: #7c3aed;      /* purple — platinum */
	--pu-soft: #ede5ff;
	--rose: #e11d48;
	--ink: #1a1410;     /* primary text */
	--ink-2: #4a3f36;
	--ink-3: #8a7d72;
	--c: #faf7f2;       /* warm white — page bg */
	--c-2: #f4eee3;
	--bd: #ddd0c4;      /* beige borders */
	--bd-2: #ebe1d3;
	--white: #ffffff;

	/* Radius */
	--r-xs: 6px;
	--r-sm: 10px;
	--r: 14px;
	--r-lg: 20px;
	--r-xl: 28px;
	--r-full: 999px;

	/* Shadows */
	--sh-sm: 0 1px 2px rgba(26,20,16,.06), 0 1px 3px rgba(26,20,16,.04);
	--sh: 0 4px 12px rgba(26,20,16,.06), 0 2px 4px rgba(26,20,16,.04);
	--sh-lg: 0 12px 32px rgba(26,20,16,.10), 0 4px 8px rgba(26,20,16,.04);
	--sh-coral: 0 8px 20px rgba(255,107,71,.35);

	/* Typography */
	--ff-serif: 'Fraunces', ui-serif, Georgia, serif;
	--ff-body: 'Nunito', ui-sans-serif, system-ui, -apple-system, sans-serif;

	/* Layout */
	--topbar-h: 68px;
	--bottomnav-h: 62px;
}

/* =============================================================================
   RESET / BASE within #nbh-root only (don't leak to host theme)
   ============================================================================= */

.nbh-root {
	font-family: var(--ff-body);
	color: var(--ink);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 16px;
}
.nbh-root *,
.nbh-root *::before,
.nbh-root *::after {
	box-sizing: border-box;
}
.nbh-root button {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.nbh-root input,
.nbh-root textarea,
.nbh-root select {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}
.nbh-root h1, .nbh-root h2, .nbh-root h3, .nbh-root h4 {
	margin: 0;
	font-weight: 700;
}
.nbh-root p {
	margin: 0;
}
.nbh-root [hidden] {
	display: none !important;
}

/* =============================================================================
   AUTH SCREEN
   ============================================================================= */

.nbh-auth {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: clamp(16px, 4vw, 48px) 16px;
	background:
		radial-gradient(ellipse 80% 60% at 10% 0%, #fff1e8 0%, transparent 60%),
		radial-gradient(ellipse 70% 50% at 90% 100%, #ffe1d6 0%, transparent 60%),
		linear-gradient(180deg, #fffaf4 0%, #fceadd 100%);
}
.nbh-auth__stage {
	width: 100%;
	max-width: 440px;
	animation: nbh-up .5s ease both;
}
.nbh-auth__brand {
	text-align: center;
	margin-bottom: 28px;
}
.nbh-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ff-serif);
	font-weight: 700;
	font-size: 26px;
	color: var(--ink);
	letter-spacing: -0.01em;
}
.nbh-logo__pin {
	width: 38px;
	height: 38px;
	border-radius: var(--r-sm);
	background: var(--p);
	color: white;
	display: grid;
	place-items: center;
	font-size: 20px;
	box-shadow: var(--sh-coral);
}
.nbh-auth__tagline {
	margin-top: 22px;
	font-family: var(--ff-serif);
	font-weight: 400;
	font-size: clamp(26px, 5vw, 36px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ink);
}
.nbh-auth__tagline-em {
	display: block;
	font-style: italic;
	font-weight: 400;
	color: var(--p);
}

.nbh-auth__card {
	background: white;
	border-radius: var(--r-xl);
	padding: 28px;
	box-shadow: var(--sh-lg);
	border: 1px solid var(--bd-2);
}
@media (max-width: 420px) {
	.nbh-auth__card { padding: 22px; border-radius: var(--r-lg); }
}

.nbh-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--c-2);
	border-radius: var(--r-full);
	padding: 4px;
	margin-bottom: 20px;
}
.nbh-tab {
	padding: 10px 14px;
	border-radius: var(--r-full);
	font-weight: 700;
	color: var(--ink-2);
	transition: background .2s, color .2s;
}
.nbh-tab.is-active {
	background: white;
	color: var(--ink);
	box-shadow: var(--sh-sm);
}

.nbh-field { margin-bottom: 14px; }
.nbh-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	font-size: 13px;
	color: var(--ink-2);
}
.nbh-hint {
	font-weight: 400;
	color: var(--ink-3);
	font-size: 12px;
}
.nbh-input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--bd);
	border-radius: var(--r);
	background: var(--c);
	color: var(--ink);
	transition: border-color .15s, background .15s;
	outline: none;
}
.nbh-input:focus {
	border-color: var(--p);
	background: white;
	box-shadow: 0 0 0 4px var(--p-soft);
}
.nbh-input::placeholder { color: var(--ink-3); }

.nbh-authmsg {
	padding: 10px 12px;
	margin-bottom: 12px;
	border-radius: var(--r-sm);
	font-size: 13px;
	font-weight: 600;
	background: #fde2e2;
	color: #a91e1e;
	border: 1px solid #f5a6a6;
}
.nbh-authmsg.is-success {
	background: var(--t-soft);
	color: #047857;
	border-color: #6ee7b7;
}

.nbh-tinynote {
	margin-top: 12px;
	text-align: center;
	font-size: 12px;
	color: var(--ink-3);
}

.nbh-auth__foot {
	margin-top: 22px;
	text-align: center;
	color: var(--ink-2);
	font-weight: 600;
	font-size: 14px;
}
.nbh-auth__foot span {
	color: var(--am);
	font-size: 18px;
	vertical-align: -2px;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.nbh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: var(--r-full);
	font-weight: 700;
	font-size: 14px;
	transition: transform .12s, box-shadow .2s, background .15s;
	white-space: nowrap;
}
.nbh-btn:active { transform: translateY(1px); }

.nbh-btn--primary {
	background: var(--p);
	color: white;
	box-shadow: var(--sh-coral);
}
.nbh-btn--primary:hover { background: var(--p-dk); }
.nbh-btn--primary[disabled] { opacity: .6; cursor: wait; }

.nbh-btn--ghost {
	background: transparent;
	color: var(--ink);
	border: 1.5px solid var(--bd);
}
.nbh-btn--ghost:hover { background: var(--c-2); }

.nbh-btn--dark {
	background: var(--ink);
	color: white;
}
.nbh-btn--dark:hover { background: #2a1f18; }

.nbh-btn--block { width: 100%; padding: 13px 18px; }

/* =============================================================================
   APP SHELL
   ============================================================================= */

.nbh-app {
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--c);
	padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
}

/* Desktop top bar */
.nbh-topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	height: var(--topbar-h);
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--bd-2);
	padding: 0 clamp(16px, 3vw, 32px);
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	gap: 16px;
	align-items: center;
}
@media (max-width: 900px) {
	.nbh-topbar { grid-template-columns: auto 1fr auto; }
	.nbh-topnav { display: none; }
}
@media (max-width: 600px) {
	.nbh-topbar { padding: 0 14px; gap: 10px; }
	.nbh-topbar .nbh-logo__word { display: none; }
	.nbh-search__input { font-size: 14px; }
}

.nbh-topbar .nbh-logo {
	font-size: 20px;
}
.nbh-topbar .nbh-logo__pin {
	width: 34px;
	height: 34px;
	font-size: 18px;
}

.nbh-search {
	position: relative;
	max-width: 420px;
	width: 100%;
}
.nbh-search__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	opacity: .5;
	font-size: 14px;
}
.nbh-search__input {
	width: 100%;
	padding: 10px 14px 10px 38px;
	border: 1.5px solid var(--bd);
	border-radius: var(--r-full);
	background: var(--c);
	outline: none;
	transition: border-color .15s, background .15s;
}
.nbh-search__input:focus {
	border-color: var(--p);
	background: white;
	box-shadow: 0 0 0 4px var(--p-soft);
}

.nbh-topnav {
	display: flex;
	align-items: center;
	gap: 4px;
}
.nbh-topnav__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: var(--r-full);
	font-weight: 700;
	font-size: 14px;
	background: var(--p);
	color: white;
	box-shadow: var(--sh-coral);
	transition: background .15s, transform .12s;
}
.nbh-topnav__btn:hover { background: var(--p-dk); }
.nbh-topnav__link {
	padding: 9px 14px;
	border-radius: var(--r-full);
	font-weight: 600;
	color: var(--ink-2);
	transition: background .15s, color .15s;
}
.nbh-topnav__link:hover { background: var(--c-2); color: var(--ink); }
.nbh-topnav__link.is-active {
	background: var(--c-2);
	color: var(--ink);
	font-weight: 700;
}

.nbh-topside {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nbh-tokenpill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: var(--r-full);
	background: var(--am-soft);
	color: #8a5a00;
	font-weight: 800;
	font-size: 13px;
	border: 1px solid #f5d37a;
}
.nbh-tokenpill__hex {
	color: var(--am);
	font-size: 15px;
}

.nbh-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: white;
	font-weight: 800;
	font-size: 14px;
	background: var(--p);
	border: 2px solid white;
	box-shadow: var(--sh);
	transition: transform .15s;
}
.nbh-avatar:hover { transform: scale(1.05); }

/* Main view area */
.nbh-view {
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(20px, 4vw, 40px) clamp(16px, 3vw, 32px);
	animation: nbh-up .4s ease both;
}

.nbh-loading {
	display: grid;
	place-items: center;
	padding: 80px 20px;
	color: var(--ink-3);
}
.nbh-loading__pulse {
	font-size: 48px;
	animation: nbh-pulse 1.6s ease-in-out infinite;
	margin-bottom: 12px;
}
@keyframes nbh-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.15); opacity: .6; }
}

/* Mobile bottom nav */
.nbh-bottomnav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 40;
	height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	background: rgba(255,255,255,.96);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-top: 1px solid var(--bd-2);
	grid-template-columns: repeat(5, 1fr);
	align-items: stretch;
}
@media (max-width: 900px) {
	.nbh-bottomnav { display: grid; }
}
.nbh-bottomnav__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	color: var(--ink-3);
	font-weight: 700;
	font-size: 11px;
	padding: 4px;
	transition: color .15s, transform .12s;
}
.nbh-bottomnav__btn.is-active {
	color: var(--p);
}
.nbh-bottomnav__icon {
	font-size: 20px;
	line-height: 1;
}
.nbh-bottomnav__btn--hero {
	position: relative;
}
.nbh-bottomnav__btn--hero .nbh-bottomnav__icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--p);
	color: white;
	display: grid;
	place-items: center;
	box-shadow: var(--sh-coral);
	margin-top: -20px;
	font-size: 22px;
}
.nbh-bottomnav__btn--hero.is-active { color: var(--p); }
.nbh-bottomnav__btn--hero .nbh-bottomnav__label { margin-top: -4px; }

.nbh-bottomnav__avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--p);
	color: white;
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 800;
	border: 2px solid white;
}

/* =============================================================================
   TOASTS
   ============================================================================= */

.nbh-toasts {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 100;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
	max-width: calc(100vw - 40px);
}
.nbh-toast {
	pointer-events: auto;
	background: var(--ink);
	color: white;
	padding: 12px 18px;
	border-radius: var(--r);
	box-shadow: var(--sh-lg);
	font-weight: 600;
	font-size: 14px;
	max-width: 360px;
	animation: nbh-ti .3s ease both;
	display: flex;
	align-items: center;
	gap: 10px;
}
.nbh-toast.is-closing { animation: nbh-to .3s ease both; }
.nbh-toast--success { background: #047857; }
.nbh-toast--error { background: #b91c1c; }
.nbh-toast--token {
	background: linear-gradient(135deg, var(--am) 0%, #d97706 100%);
	color: white;
}

/* =============================================================================
   MODALS
   ============================================================================= */

.nbh-modal-root {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(26,20,16,.55);
	display: grid;
	place-items: center;
	padding: 16px;
	animation: nbh-fade-in .2s ease both;
}
.nbh-modal {
	background: white;
	border-radius: var(--r-xl);
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: var(--sh-lg);
	animation: nbh-mi .25s ease both;
}
.nbh-modal__head {
	padding: 20px 24px;
	border-bottom: 1px solid var(--bd-2);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.nbh-modal__title {
	font-family: var(--ff-serif);
	font-size: 22px;
	font-weight: 700;
}
.nbh-modal__close {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--c-2);
	color: var(--ink-2);
	display: grid;
	place-items: center;
	font-size: 16px;
	transition: background .15s;
}
.nbh-modal__close:hover { background: var(--bd); }
.nbh-modal__body { padding: 24px; }
.nbh-modal__foot {
	padding: 16px 24px;
	border-top: 1px solid var(--bd-2);
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

/* =============================================================================
   ANIMATIONS (per spec)
   ============================================================================= */

@keyframes nbh-up {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes nbh-ti {
	from { opacity: 0; transform: translateX(30px); }
	to { opacity: 1; transform: translateX(0); }
}
@keyframes nbh-to {
	from { opacity: 1; transform: translateX(0); }
	to { opacity: 0; transform: translateX(30px); }
}
@keyframes nbh-mi {
	from { opacity: 0; transform: scale(.94) translateY(12px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes nbh-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes plat-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,.4); }
	50% { box-shadow: 0 0 0 8px rgba(124,58,237,0); }
}
@keyframes land-rush {
	0%, 100% { opacity: 1; }
	50% { opacity: .55; }
}

/* =============================================================================
   UTILITIES — used across phases
   ============================================================================= */

.nbh-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: var(--r-full);
	font-size: 12px;
	font-weight: 700;
	background: var(--c-2);
	color: var(--ink-2);
}
.nbh-chip--coral { background: var(--p-soft); color: var(--p-dk); }
.nbh-chip--teal { background: var(--t-soft); color: #047857; }
.nbh-chip--amber { background: var(--am-soft); color: #8a5a00; }
.nbh-chip--sky { background: var(--sk-soft); color: #1e40af; }

.nbh-verified {
	display: inline-flex;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sk);
	color: white;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 900;
}

/* =============================================================================
   PHASE 1 — view stubs (replaced in later phases)
   ============================================================================= */

.nbh-placeholder {
	max-width: 540px;
	margin: 40px auto;
	text-align: center;
	padding: 48px 24px;
	background: white;
	border: 1px solid var(--bd-2);
	border-radius: var(--r-xl);
	box-shadow: var(--sh);
}
.nbh-placeholder__icon {
	font-size: 48px;
	margin-bottom: 16px;
}
.nbh-placeholder__title {
	font-family: var(--ff-serif);
	font-size: 28px;
	margin-bottom: 10px;
	letter-spacing: -0.01em;
}
.nbh-placeholder__desc {
	color: var(--ink-2);
	margin-bottom: 6px;
}
.nbh-placeholder__hint {
	color: var(--ink-3);
	font-size: 13px;
	margin-bottom: 24px;
}
.nbh-placeholder code {
	background: var(--c-2);
	padding: 2px 8px;
	border-radius: var(--r-xs);
	font-size: 13px;
	color: var(--p-dk);
}

.nbh-hero-stub {
	text-align: center;
	padding: 24px 8px 32px;
	margin-bottom: 20px;
}
.nbh-hero-stub .nbh-chip { margin-bottom: 22px; }
.nbh-hero-stub__h1 {
	font-family: var(--ff-serif);
	font-weight: 400;
	font-size: clamp(28px, 5.5vw, 52px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-bottom: 16px;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.nbh-hero-stub__h1 em {
	font-style: italic;
	color: var(--p);
	font-weight: 400;
}
.nbh-hero-stub__sub {
	color: var(--ink-2);
	font-size: 16px;
	max-width: 540px;
	margin: 0 auto 24px;
}
.nbh-hero-stub__pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.nbh-phasenote {
	max-width: 760px;
	margin: 0 auto;
	padding: 18px 22px;
	background: var(--ink);
	color: white;
	border-radius: var(--r);
	font-size: 14px;
	line-height: 1.6;
	box-shadow: var(--sh);
}
.nbh-phasenote strong { color: var(--am); font-weight: 800; }

.nbh-profile-stub {
	max-width: 560px;
	margin: 20px auto;
}
.nbh-profile-stub__card {
	background: white;
	border-radius: var(--r-xl);
	overflow: hidden;
	border: 1px solid var(--bd-2);
	box-shadow: var(--sh);
}
.nbh-profile-stub__hero {
	height: 130px;
}
.nbh-profile-stub__body {
	padding: 0 24px 28px;
	text-align: center;
	margin-top: -44px;
}
.nbh-profile-stub__avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	color: white;
	font-family: var(--ff-serif);
	font-weight: 700;
	font-size: 32px;
	border: 4px solid white;
	box-shadow: var(--sh);
}
.nbh-profile-stub__name {
	font-family: var(--ff-serif);
	font-size: 26px;
	margin-bottom: 4px;
	letter-spacing: -0.01em;
}
.nbh-profile-stub__handle {
	color: var(--ink-3);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
}
.nbh-profile-stub__city {
	color: var(--ink-2);
	font-size: 14px;
	margin-bottom: 20px;
}
.nbh-profile-stub__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	padding: 16px;
	background: var(--c);
	border-radius: var(--r);
	margin-bottom: 20px;
}
.nbh-profile-stub__statv {
	font-family: var(--ff-serif);
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 2px;
}
.nbh-profile-stub__statl {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ink-3);
}
.nbh-profile-stub__coming {
	padding: 14px;
	background: var(--c-2);
	border-radius: var(--r);
	font-size: 13px;
	color: var(--ink-2);
	margin-bottom: 18px;
}
.nbh-profile-stub__coming strong { color: var(--p); }

/* =============================================================================
   PHASE 2 — Discover, Community page, Create community, Members list
   ============================================================================= */

/* Hero */
.nbh-hero {
	text-align: center;
	padding: 16px 8px 28px;
}
.nbh-hero .nbh-chip { margin-bottom: 18px; }
.nbh-hero__h1 {
	font-family: var(--ff-serif);
	font-weight: 400;
	font-size: clamp(28px, 5.5vw, 52px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-bottom: 14px;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.nbh-hero__h1 em {
	font-style: italic;
	color: var(--p);
	font-weight: 400;
}
.nbh-hero__sub {
	color: var(--ink-2);
	font-size: 16px;
	max-width: 540px;
	margin: 0 auto;
}

/* Category pills */
.nbh-catpills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}
.nbh-catpill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: var(--r-full);
	border: 1.5px solid var(--bd);
	background: white;
	font-weight: 700;
	font-size: 13px;
	color: var(--ink-2);
	transition: all .15s;
}
.nbh-catpill:hover { border-color: var(--p); color: var(--ink); }
.nbh-catpill.is-active {
	background: var(--ink);
	color: white;
	border-color: var(--ink);
}

/* Map strip */
.nbh-mapstrip {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	background: var(--ink);
	color: white;
	border-radius: var(--r);
	text-decoration: none;
	margin: 20px 0;
	transition: transform .12s, background .15s;
}
.nbh-mapstrip:hover { background: #2a1f18; transform: translateY(-1px); }
.nbh-mapstrip__icon { font-size: 20px; }
.nbh-mapstrip__text { font-weight: 700; flex: 1; }
.nbh-mapstrip__tag {
	background: var(--p);
	color: white;
	padding: 2px 10px;
	border-radius: var(--r-full);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.nbh-mapstrip__arrow { font-size: 18px; opacity: .7; }

/* Community grid */
.nbh-clist__loading,
.nbh-clist__empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--ink-3);
}
.nbh-clist__empty {
	background: white;
	border-radius: var(--r-xl);
	border: 2px dashed var(--bd);
}
.nbh-clist__emptyicon { font-size: 48px; margin-bottom: 12px; }
.nbh-clist__empty h3 {
	font-family: var(--ff-serif);
	font-size: 24px;
	margin-bottom: 8px;
	color: var(--ink);
}
.nbh-clist__empty p { margin-bottom: 20px; }

.nbh-cgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 18px;
	margin-top: 20px;
}

.nbh-ccard {
	background: white;
	border-radius: var(--r-lg);
	overflow: hidden;
	border: 1px solid var(--bd-2);
	box-shadow: var(--sh-sm);
	transition: transform .2s, box-shadow .2s;
	text-align: left;
	display: block;
	width: 100%;
	padding: 0;
}
.nbh-ccard:hover {
	transform: translateY(-3px);
	box-shadow: var(--sh-lg);
}
.nbh-ccard__banner {
	height: 110px;
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 18px;
}
.nbh-ccard__emoji {
	font-size: 40px;
	line-height: 1;
}
.nbh-ccard__cat {
	position: absolute;
	top: 10px;
	right: 12px;
	background: rgba(26,20,16,.75);
	color: white;
	padding: 3px 10px;
	border-radius: var(--r-full);
	font-size: 11px;
	font-weight: 700;
}
.nbh-ccard__tier {
	position: absolute;
	bottom: 10px;
	right: 12px;
	padding: 2px 8px;
	border-radius: var(--r-full);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.nbh-ccard__tier--bronze { background: #b45309; color: white; }
.nbh-ccard__tier--silver { background: #6b7280; color: white; }
.nbh-ccard__tier--gold { background: var(--am); color: #4a2600; }
.nbh-ccard__tier--platinum { background: var(--pu); color: white; animation: plat-glow 2s ease-in-out infinite; }

.nbh-ccard__body { padding: 16px 18px 18px; }
.nbh-ccard__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}
.nbh-ccard__name {
	font-family: var(--ff-serif);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
	display: flex;
	align-items: center;
	gap: 6px;
}
.nbh-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: var(--r-full);
	font-size: 11px;
	font-weight: 800;
	background: var(--c-2);
	color: var(--ink-2);
}
.nbh-badge--paid { background: var(--am-soft); color: #8a5a00; }
.nbh-ccard__loc {
	font-size: 12px;
	color: var(--ink-3);
	margin-bottom: 6px;
}
.nbh-ccard__desc {
	font-size: 13px;
	color: var(--ink-2);
	line-height: 1.5;
	margin-bottom: 10px;
	min-height: 38px;
}
.nbh-ccard__stats {
	display: flex;
	gap: 14px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-2);
	margin-bottom: 10px;
}
.nbh-ccard__joined { color: var(--t); margin-left: auto; }

/* Vibrancy bar */
.nbh-vibrancy {
	height: 4px;
	background: var(--c-2);
	border-radius: var(--r-full);
	overflow: hidden;
}
.nbh-vibrancy__bar {
	height: 100%;
	background: linear-gradient(90deg, var(--t) 0%, var(--am) 50%, var(--p) 100%);
	border-radius: var(--r-full);
	transition: width .4s;
}

/* Community page */
.nbh-cpage { max-width: 960px; margin: 0 auto; }
.nbh-cpage__hero {
	border-radius: var(--r-xl);
	padding: 24px 28px;
	margin-bottom: 22px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	min-height: 178px;
	position: relative;
}
.nbh-cpage__hero-inner {
	display: flex;
	align-items: flex-end;
	gap: 16px;
}
.nbh-cpage__emoji {
	font-size: 56px;
	line-height: 1;
}
.nbh-cpage__name {
	font-family: var(--ff-serif);
	font-size: clamp(24px, 3.5vw, 36px);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.nbh-cpage__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink-2);
}
.nbh-cpage__meta span { padding: 3px 0; }
.nbh-cpage__hero-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}
@media (max-width: 640px) {
	.nbh-cpage__hero { flex-direction: column; align-items: flex-start; padding: 20px; }
	.nbh-cpage__emoji { font-size: 44px; }
}

.nbh-ctabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--bd-2);
	margin-bottom: 22px;
	overflow-x: auto;
	scrollbar-width: none;
}
.nbh-ctabs::-webkit-scrollbar { display: none; }
.nbh-ctab {
	padding: 12px 18px;
	font-weight: 700;
	color: var(--ink-3);
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: color .15s, border-color .15s;
}
.nbh-ctab:hover { color: var(--ink-2); }
.nbh-ctab.is-active { color: var(--p); border-bottom-color: var(--p); }

.nbh-cpanel { animation: nbh-up .3s ease both; }

.nbh-feedstub {
	background: white;
	border: 2px dashed var(--bd);
	border-radius: var(--r-xl);
	padding: 48px 24px;
	text-align: center;
	max-width: 540px;
	margin: 0 auto;
}
.nbh-feedstub__icon { font-size: 42px; margin-bottom: 12px; }
.nbh-feedstub h3 {
	font-family: var(--ff-serif);
	font-size: 22px;
	margin-bottom: 10px;
}

.nbh-cabout__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin-bottom: 22px;
}
.nbh-cabout__row {
	background: white;
	border: 1px solid var(--bd-2);
	border-radius: var(--r);
	padding: 14px 18px;
}
.nbh-cabout__row span {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ink-3);
	margin-bottom: 4px;
}
.nbh-cabout__row strong {
	display: block;
	font-weight: 700;
	color: var(--ink);
}
.nbh-cabout__desc h4 {
	font-family: var(--ff-serif);
	font-size: 20px;
	margin-bottom: 8px;
}
.nbh-cabout__desc p {
	color: var(--ink-2);
	line-height: 1.6;
}

/* Members list */
.nbh-members {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.nbh-member {
	display: grid;
	grid-template-columns: 48px 44px 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 12px 16px;
	background: white;
	border: 1px solid var(--bd-2);
	border-radius: var(--r);
	transition: transform .12s, box-shadow .15s;
}
.nbh-member:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); }
.nbh-member__rank {
	font-size: 22px;
	font-weight: 800;
	text-align: center;
	color: var(--ink-3);
}
.nbh-member__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: white;
	font-weight: 800;
	font-size: 16px;
}
.nbh-member__name {
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.nbh-member__sub {
	font-size: 12px;
	color: var(--ink-3);
	margin-top: 2px;
}
.nbh-member__awards {
	display: flex;
	gap: 4px;
	margin-top: 4px;
}
.nbh-awardbadge {
	display: inline-block;
	font-size: 14px;
	padding: 2px 6px;
	background: var(--am-soft);
	border-radius: var(--r-xs);
}
.nbh-member__stats { text-align: right; }
.nbh-member__rep {
	font-family: var(--ff-serif);
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
}
.nbh-member__statl {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ink-3);
	letter-spacing: 0.05em;
}

.nbh-cpage__back {
	margin-top: 30px;
	text-align: center;
}
.nbh-linkbtn {
	color: var(--p);
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
}
.nbh-linkbtn:hover { text-decoration: underline; }

/* Create community */
.nbh-createwrap {
	max-width: 640px;
	margin: 0 auto;
}
.nbh-createh1 {
	font-family: var(--ff-serif);
	font-size: clamp(28px, 4vw, 40px);
	letter-spacing: -0.02em;
	margin-bottom: 8px;
}
.nbh-createsub {
	color: var(--ink-2);
	margin-bottom: 22px;
}

.nbh-creatertep {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
}
.nbh-creatertep__step {
	flex: 1;
	padding: 12px;
	background: white;
	border-radius: var(--r);
	border: 1.5px solid var(--bd);
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 14px;
	color: var(--ink-3);
}
.nbh-creatertep__step span {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--c-2);
	display: grid;
	place-items: center;
	font-size: 13px;
	color: var(--ink-2);
}
.nbh-creatertep__step.is-active {
	border-color: var(--p);
	color: var(--ink);
}
.nbh-creatertep__step.is-active span {
	background: var(--p);
	color: white;
}

.nbh-createbanner {
	background: var(--sk-soft);
	color: #1e40af;
	padding: 14px 16px;
	border-radius: var(--r);
	font-size: 13px;
	margin-bottom: 22px;
	border: 1px solid #bfdbfe;
}

.nbh-createform {
	background: white;
	padding: 24px;
	border-radius: var(--r-xl);
	border: 1px solid var(--bd-2);
	box-shadow: var(--sh-sm);
}
.nbh-createform textarea.nbh-input { resize: vertical; min-height: 80px; }
.nbh-createform select.nbh-input { padding-right: 28px; }

.nbh-emojigrid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 6px;
	padding: 10px;
	background: var(--c);
	border-radius: var(--r);
	border: 1.5px solid var(--bd);
}
@media (max-width: 520px) {
	.nbh-emojigrid { grid-template-columns: repeat(6, 1fr); }
}
.nbh-emojibtn {
	aspect-ratio: 1;
	border-radius: var(--r-sm);
	font-size: 22px;
	background: white;
	transition: transform .12s, background .15s;
	border: 1.5px solid transparent;
}
.nbh-emojibtn:hover { background: var(--p-soft); }
.nbh-emojibtn.is-active {
	border-color: var(--p);
	background: var(--p-soft);
	transform: scale(1.08);
}

.nbh-mtoggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	background: var(--c);
	border-radius: var(--r-full);
	border: 1.5px solid var(--bd);
}
.nbh-mtoggle__btn {
	padding: 9px;
	border-radius: var(--r-full);
	font-weight: 700;
	color: var(--ink-2);
	transition: background .15s, color .15s;
}
.nbh-mtoggle__btn.is-active {
	background: white;
	color: var(--ink);
	box-shadow: var(--sh-sm);
}

.nbh-feefield { margin-top: 14px; }

.nbh-createmsg {
	padding: 10px 12px;
	margin: 14px 0;
	border-radius: var(--r-sm);
	font-size: 13px;
	font-weight: 600;
	background: #fde2e2;
	color: #a91e1e;
	border: 1px solid #f5a6a6;
}
.nbh-createmsg.is-success {
	background: var(--t-soft);
	color: #047857;
	border-color: #6ee7b7;
}

.nbh-createactions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
}

/* Profile stub — award badges row */
.nbh-profile-stub__awards {
	padding: 12px;
	background: var(--c);
	border-radius: var(--r);
	font-size: 13px;
	margin-bottom: 18px;
}

/* =============================================================================
   PHASE 3 — Map, block picker, popups, tier badges
   ============================================================================= */

/* Map wrapper */
.nbh-mapwrap {
	max-width: 1240px;
	margin: 0 auto;
}
.nbh-maphead {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.nbh-maphead__title {
	font-family: var(--ff-serif);
	font-size: 24px;
	margin: 0;
	flex: 1;
}
.nbh-maphead__hint {
	background: var(--am-soft);
	color: #8a5a00;
	padding: 6px 12px;
	border-radius: var(--r-full);
	font-size: 12px;
	font-weight: 700;
	border: 1px solid #f5d37a;
}

.nbh-map {
	height: min(70vh, 720px);
	border-radius: var(--r-xl);
	overflow: hidden;
	border: 1px solid var(--bd-2);
	box-shadow: var(--sh);
	background: #e8ebf0;
}

.nbh-maploading {
	height: 100%;
	display: grid;
	place-items: center;
	text-align: center;
	padding: 40px;
	color: var(--ink-3);
}
.nbh-maploading__spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--bd);
	border-top-color: var(--p);
	border-radius: 50%;
	margin: 0 auto 12px;
	animation: nbh-spin .8s linear infinite;
}
@keyframes nbh-spin { to { transform: rotate(360deg); } }

.nbh-maplegend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 14px;
	padding: 12px 16px;
	background: white;
	border-radius: var(--r);
	border: 1px solid var(--bd-2);
}
.nbh-maplegend__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-2);
}
.nbh-maplegend__sw {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: 2px solid;
}
.nbh-maplegend__sw--free { background: rgba(0,184,150,.2); border-color: #00b896; }
.nbh-maplegend__sw--bronze { background: #fde68a; border-color: #b45309; }
.nbh-maplegend__sw--silver { background: #f3f4f6; border-color: #9ca3af; }
.nbh-maplegend__sw--gold { background: #fef3c7; border-color: #f59e0b; }
.nbh-maplegend__sw--platinum { background: #ede5ff; border-color: #7c3aed; animation: plat-glow 2s ease-in-out infinite; }
.nbh-maplegend__sw--premium { background: #fef0c7; border-color: #f59e0b; border-width: 3px; }

/* Leaflet cells — add animations via className hook */
.nbh-platinum-cell {
	animation: plat-glow 2s ease-in-out infinite;
}
.nbh-auction-cell {
	animation: land-rush 1.4s ease-in-out infinite;
}

/* Emoji markers on map */
.nbh-emojimarker-wrap { border: none !important; background: transparent !important; }
.nbh-emojimarker {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: white;
	display: grid;
	place-items: center;
	font-size: 18px;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
	border: 2px solid white;
}

/* Block popup */
.nbh-blockpopup .leaflet-popup-content-wrapper {
	border-radius: var(--r-lg);
	padding: 0;
	box-shadow: var(--sh-lg);
}
.nbh-blockpopup .leaflet-popup-content {
	margin: 0;
	padding: 16px;
	font-family: var(--ff-body);
}
.nbh-blockpop__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}
.nbh-blockpop__head strong {
	font-family: var(--ff-serif);
	font-size: 18px;
	letter-spacing: -0.01em;
}
.nbh-blockpop__lm {
	font-size: 12px;
	color: var(--ink-3);
	margin-bottom: 10px;
}
.nbh-blockpop__c {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 10px;
	background: var(--c);
	border-radius: var(--r-sm);
	margin-bottom: 10px;
}
.nbh-blockpop__emoji { font-size: 24px; }
.nbh-blockpop__cname { font-weight: 700; }
.nbh-blockpop__csub { font-size: 12px; color: var(--ink-3); }
.nbh-blockpop__avail {
	font-weight: 700;
	color: var(--t);
	margin-bottom: 10px;
}
.nbh-blockpop__price {
	font-weight: 700;
	color: var(--am);
}
.nbh-blockpop__stats {
	display: flex;
	gap: 10px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-2);
	margin-bottom: 12px;
}
.nbh-blockpop__auction { color: var(--rose); }
.nbh-blockpop__actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

/* Tier badges */
.nbh-tierbadge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: var(--r-full);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.nbh-tierbadge--free { background: var(--t-soft); color: #047857; }
.nbh-tierbadge--bronze { background: #fde68a; color: #92400e; }
.nbh-tierbadge--silver { background: #e5e7eb; color: #374151; }
.nbh-tierbadge--gold { background: var(--am); color: #4a2600; }
.nbh-tierbadge--platinum { background: var(--pu); color: white; }
.nbh-tierbadge--premium { background: #fef0c7; color: #8a5a00; border: 1px solid var(--am); }

.nbh-btn--tiny { padding: 7px 12px; font-size: 12px; }

/* Create wizard step 2 — picker layout */
.nbh-createwrap--wide { max-width: 1080px; }
.nbh-pickerlayout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 18px;
	margin-bottom: 22px;
}
@media (max-width: 900px) {
	.nbh-pickerlayout { grid-template-columns: 1fr; }
}
.nbh-pickerwrap { width: 100%; }
.nbh-pickermap {
	height: 520px;
	border-radius: var(--r-lg);
	overflow: hidden;
	border: 1px solid var(--bd-2);
	box-shadow: var(--sh);
	background: #e8ebf0;
}
@media (max-width: 900px) {
	.nbh-pickermap { height: 380px; }
}

.nbh-pickerside {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.nbh-pickerinfo {
	background: white;
	border: 1px solid var(--bd-2);
	border-radius: var(--r-lg);
	padding: 16px;
	min-height: 160px;
}
.nbh-pickerinfo__empty {
	color: var(--ink-3);
	font-size: 14px;
	text-align: center;
	padding: 24px 8px;
}
.nbh-pickerinfo__loading {
	color: var(--ink-3);
	text-align: center;
	padding: 20px;
	font-size: 13px;
}
.nbh-pickerinfo__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.nbh-pickerinfo__name {
	font-family: var(--ff-serif);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.nbh-pickerinfo__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-size: 13px;
}
.nbh-pickerinfo__stats {
	display: flex;
	gap: 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink-2);
}
.nbh-pickerinfo__taken {
	background: #fee2e2;
	color: #991b1b;
	padding: 10px;
	border-radius: var(--r-sm);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.nbh-pickersum {
	background: var(--ink);
	color: white;
	padding: 14px 16px;
	border-radius: var(--r-lg);
}
.nbh-pickersum__title {
	font-family: var(--ff-serif);
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 2px;
}
.nbh-pickersum__meta {
	font-size: 12px;
	color: rgba(255,255,255,.7);
	text-transform: capitalize;
}

.nbh-pickeraux {
	padding: 14px 16px;
	background: var(--c-2);
	border-radius: var(--r-lg);
	text-align: center;
}

/* Create wizard: done state */
.nbh-creatertep__step.is-done {
	border-color: var(--t);
	color: var(--ink);
}
.nbh-creatertep__step.is-done span {
	background: var(--t);
	color: white;
}

/* =============================================================================
   v5 — Aura, Arc tiers, block nickname, About improvements
   ============================================================================= */

/* Aura pill on community card banner */
.nbh-ccard__aura {
	position: absolute;
	top: 10px;
	left: 12px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
	padding: 3px 10px;
	border-radius: var(--r-full);
	font-size: 12px;
	font-weight: 800;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

/* Aura pill on community page hero */
.nbh-aurapill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--ink);
	padding: 3px 10px;
	border-radius: var(--r-full);
	font-weight: 800;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Create step 1 — small info strip for removed location field */
.nbh-createinfo {
	background: var(--sk-soft);
	color: #1e40af;
	padding: 10px 14px;
	border-radius: var(--r-sm);
	font-size: 13px;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #bfdbfe;
}

/* About: clickable location / block link */
.nbh-aboutloc {
	color: var(--p);
	text-decoration: none;
	font-weight: 700;
	transition: color 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}
.nbh-aboutloc:hover {
	color: var(--p-dk);
	text-decoration: underline;
}
.nbh-aboutloc__nick {
	color: var(--ink-3);
	font-weight: 400;
	font-size: 13px;
}

/* Map emoji marker with aura chip */
.nbh-emojimarker-wrap2 {
	display: flex;
	flex-direction: column;
	align-items: center;
	pointer-events: auto;
}
.nbh-emojimarker__aura {
	margin-top: 2px;
	background: white;
	color: var(--ink);
	padding: 1px 7px;
	border-radius: var(--r-full);
	font-size: 10px;
	font-weight: 800;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	white-space: nowrap;
}

/* =============================================================================
   PHASE 4 — Feed (posts, composer, comments) + Events (list, detail, host modal)
   ============================================================================= */

/* Feed composer */
.nbh-composer {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 12px;
	padding: 16px;
	background: white;
	border: 1px solid var(--bd-2);
	border-radius: var(--r-lg);
	margin-bottom: 18px;
	box-shadow: var(--sh-sm);
}
.nbh-composer__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: white;
	font-weight: 800;
	font-size: 14px;
}
.nbh-composer__input {
	width: 100%;
	border: 0;
	resize: none;
	padding: 10px 0;
	font-size: 15px;
	background: transparent;
	outline: none;
}
.nbh-composer__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 6px;
	border-top: 1px solid var(--bd-2);
}
.nbh-composer__hint {
	font-size: 12px;
	color: var(--ink-3);
	font-weight: 600;
}
.nbh-feednotice {
	background: var(--c-2);
	padding: 14px 16px;
	border-radius: var(--r);
	text-align: center;
	color: var(--ink-2);
	font-weight: 600;
	margin-bottom: 18px;
}

/* Post card */
.nbh-feedlist {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.nbh-post {
	background: white;
	border: 1px solid var(--bd-2);
	border-radius: var(--r-lg);
	padding: 16px 18px;
	box-shadow: var(--sh-sm);
	animation: nbh-up 0.3s ease both;
}
.nbh-post__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.nbh-post__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: white;
	font-weight: 800;
	font-size: 14px;
	flex-shrink: 0;
}
.nbh-post__name { font-weight: 700; }
.nbh-post__meta {
	font-size: 12px;
	color: var(--ink-3);
	margin-top: 1px;
}
.nbh-post__body {
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink);
	margin-bottom: 12px;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.nbh-post__bar {
	display: flex;
	gap: 16px;
	padding-top: 10px;
	border-top: 1px solid var(--bd-2);
}
.nbh-postbtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: var(--r-full);
	font-size: 13px;
	font-weight: 700;
	color: var(--ink-2);
	transition: background 0.15s, color 0.15s, transform 0.12s;
}
.nbh-postbtn:hover {
	background: var(--c-2);
	color: var(--ink);
}
.nbh-postbtn.is-liked {
	color: var(--rose);
}
.nbh-postbtn:active { transform: scale(0.96); }
.nbh-postbtn__icon { font-size: 16px; line-height: 1; }
.nbh-postbtn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Comments */
.nbh-comments {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--bd);
}
.nbh-commentlist {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
}
.nbh-comment {
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 10px;
	align-items: flex-start;
}
.nbh-comment__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: white;
	font-weight: 800;
	font-size: 11px;
}
.nbh-comment__bubble {
	background: var(--c);
	padding: 8px 12px;
	border-radius: var(--r);
}
.nbh-comment__head {
	font-size: 12px;
	margin-bottom: 2px;
}
.nbh-comment__body {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink);
	word-wrap: break-word;
}
.nbh-commentform {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	margin-top: 8px;
}
.nbh-commentform .nbh-input {
	padding: 8px 12px;
	font-size: 14px;
}

/* Events page */
.nbh-eventshead {
	margin-bottom: 22px;
	text-align: center;
}
.nbh-eventshead__h1 {
	font-family: var(--ff-serif);
	font-size: clamp(28px, 4vw, 40px);
	letter-spacing: -0.02em;
	margin-bottom: 8px;
}
.nbh-eventshead__sub {
	color: var(--ink-2);
	margin-bottom: 22px;
}
.nbh-eventsbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}
.nbh-eventsfilters {
	display: inline-flex;
	padding: 4px;
	background: var(--c-2);
	border-radius: var(--r-full);
	gap: 2px;
}
.nbh-eventsfilters__btn {
	padding: 8px 16px;
	border-radius: var(--r-full);
	font-weight: 700;
	font-size: 13px;
	color: var(--ink-2);
	transition: background 0.15s, color 0.15s;
}
.nbh-eventsfilters__btn:hover { color: var(--ink); }
.nbh-eventsfilters__btn.is-active {
	background: white;
	color: var(--ink);
	box-shadow: var(--sh-sm);
}

/* Event cards grid */
.nbh-egrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 18px;
}
.nbh-ecard {
	background: white;
	border: 1px solid var(--bd-2);
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--sh-sm);
	transition: transform 0.2s, box-shadow 0.2s;
	text-align: left;
	display: block;
	width: 100%;
	padding: 0;
}
.nbh-ecard:hover {
	transform: translateY(-3px);
	box-shadow: var(--sh-lg);
}
.nbh-ecard__banner {
	height: 120px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nbh-ecard__datechip {
	position: absolute;
	top: 12px;
	left: 12px;
	background: white;
	border-radius: var(--r);
	padding: 6px 12px;
	text-align: center;
	box-shadow: var(--sh);
	line-height: 1;
}
.nbh-ecard__day {
	font-family: var(--ff-serif);
	font-size: 22px;
	font-weight: 700;
	color: var(--p);
}
.nbh-ecard__month {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ink-3);
	margin-top: 2px;
}
.nbh-ecard__emoji {
	font-size: 52px;
	line-height: 1;
}
.nbh-ecard__typebadge {
	position: absolute;
	bottom: 10px;
	right: 12px;
	background: rgba(26, 20, 16, 0.75);
	color: white;
	padding: 4px 10px;
	border-radius: var(--r-full);
	font-size: 11px;
	font-weight: 700;
}
.nbh-ecard__body { padding: 14px 16px 16px; }
.nbh-ecard__title {
	font-family: var(--ff-serif);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin-bottom: 6px;
}
.nbh-ecard__community {
	font-size: 13px;
	color: var(--ink-2);
	margin-bottom: 4px;
}
.nbh-ecard__loc {
	font-size: 12px;
	color: var(--ink-3);
	margin-bottom: 8px;
}
.nbh-ecard__stats {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-2);
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--bd-2);
}
.nbh-ecard__rsvped { color: var(--t); }

/* Event detail page */
.nbh-epage { max-width: 1040px; margin: 0 auto; }
.nbh-epage__hero {
	border-radius: var(--r-xl);
	padding: 28px 32px;
	margin-bottom: 24px;
	min-height: 260px;
	display: flex;
	align-items: flex-end;
	gap: 20px;
}
@media (max-width: 640px) {
	.nbh-epage__hero { flex-direction: column; align-items: flex-start; padding: 22px; }
}
.nbh-epage__emoji {
	font-size: 72px;
	line-height: 1;
	flex-shrink: 0;
}
.nbh-epage__chip {
	display: inline-block;
	background: rgba(255, 255, 255, 0.85);
	padding: 4px 12px;
	border-radius: var(--r-full);
	font-size: 12px;
	font-weight: 800;
	margin-bottom: 8px;
	color: var(--ink);
}
.nbh-epage__title {
	font-family: var(--ff-serif);
	font-size: clamp(26px, 4vw, 40px);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 6px;
}
.nbh-epage__community {
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
}
.nbh-epage__community:hover {
	text-decoration: underline;
}

.nbh-epage__grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 22px;
}
@media (max-width: 860px) {
	.nbh-epage__grid { grid-template-columns: 1fr; }
}
.nbh-epage__section { margin-bottom: 24px; }
.nbh-epage__section h3 {
	font-family: var(--ff-serif);
	font-size: 20px;
	margin-bottom: 12px;
}
.nbh-epage__desc p {
	line-height: 1.7;
	color: var(--ink-2);
	margin-bottom: 16px;
}
.nbh-epage__desc h3 {
	font-family: var(--ff-serif);
	font-size: 20px;
	margin-bottom: 10px;
}

/* Itinerary timeline */
.nbh-itin {
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative;
}
.nbh-itin__step {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 14px;
	padding-bottom: 20px;
	position: relative;
}
.nbh-itin__step:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 19px;
	top: 32px;
	bottom: 0;
	width: 2px;
	background: var(--bd);
}
.nbh-itin__dot {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--p);
	color: white;
	display: grid;
	place-items: center;
	font-weight: 800;
	box-shadow: var(--sh-coral);
	z-index: 1;
}
.nbh-itin__time {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--p);
	margin-bottom: 2px;
}
.nbh-itin__title {
	font-family: var(--ff-serif);
	font-size: 17px;
	font-weight: 700;
}
.nbh-itin__desc {
	font-size: 14px;
	color: var(--ink-2);
	margin-top: 4px;
	line-height: 1.5;
}

/* Attendee avatars */
.nbh-eattendees {
	display: flex;
	flex-wrap: wrap;
	gap: -6px;
	margin-left: 0;
}
.nbh-eattendee {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	color: white;
	font-weight: 800;
	font-size: 12px;
	border: 2px solid white;
	margin-left: -6px;
	box-shadow: var(--sh-sm);
}
.nbh-eattendee:first-child { margin-left: 0; }

/* Ticket card */
.nbh-ticket {
	background: white;
	border: 1px solid var(--bd-2);
	border-radius: var(--r-lg);
	padding: 20px;
	box-shadow: var(--sh);
	position: sticky;
	top: calc(var(--topbar-h) + 16px);
}
.nbh-ticket__datechip {
	text-align: center;
	padding: 12px 16px;
	background: var(--p-soft);
	border-radius: var(--r);
	margin-bottom: 12px;
}
.nbh-ticket__day {
	font-family: var(--ff-serif);
	font-size: 38px;
	font-weight: 700;
	color: var(--p);
	line-height: 1;
}
.nbh-ticket__month {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ink-2);
	margin-top: 4px;
}
.nbh-ticket__when {
	font-weight: 700;
	margin-bottom: 8px;
	font-size: 14px;
}
.nbh-ticket__where {
	color: var(--ink-2);
	font-size: 13px;
	margin-bottom: 12px;
}
.nbh-ticket__price {
	font-family: var(--ff-serif);
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px dashed var(--bd);
}

/* Host modal */
.nbh-hostform { display: flex; flex-direction: column; gap: 4px; }
.nbh-hostform__community {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: var(--c);
	border-radius: var(--r);
	margin-bottom: 10px;
}
.nbh-hostform__commname { font-weight: 700; }
.nbh-hostform__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.nbh-field--half { flex: 1; }
@media (max-width: 500px) {
	.nbh-hostform__row { grid-template-columns: 1fr; }
}

/* Host picker modal */
.nbh-hostpicker {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.nbh-hostpicker__btn {
	display: grid;
	grid-template-columns: 36px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: white;
	border: 1.5px solid var(--bd);
	border-radius: var(--r);
	transition: border-color 0.15s, background 0.15s;
	text-align: left;
}
.nbh-hostpicker__btn:hover {
	border-color: var(--p);
	background: var(--p-soft);
}
.nbh-hostpicker__emoji { font-size: 24px; }
.nbh-hostpicker__name { font-weight: 700; }
.nbh-hostpicker__meta { font-size: 12px; color: var(--ink-3); }

/* Itinerary builder */
.nbh-itinbuild {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.nbh-itinbuild__row {
	display: grid;
	grid-template-columns: 100px 1fr 32px;
	gap: 6px;
}
.nbh-itinbuild__time, .nbh-itinbuild__title {
	padding: 8px 10px;
	font-size: 13px;
}
.nbh-itinbuild__del {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--c-2);
	color: var(--ink-2);
	display: grid;
	place-items: center;
	align-self: center;
	font-size: 12px;
	transition: background 0.15s, color 0.15s;
}
.nbh-itinbuild__del:hover { background: #fecaca; color: #991b1b; }

/* v7 — post page breadcrumb */
.nbh-postpage { max-width: 720px; margin: 0 auto; }
.nbh-postpage__crumb { margin-bottom: 16px; }
.nbh-postpage__crumb a {
	color: var(--p);
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
}
.nbh-postpage__crumb a:hover { text-decoration: underline; }
