@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	--nsp-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;

	--nsp-bg: #f5f5f7;
	--nsp-bg-2: #fbfbfd;
	--nsp-surface: #ffffff;
	--nsp-surface-2: #f2f2f5;
	--nsp-surface-3: #e8e8ed;

	--nsp-border: rgba(0,0,0,.08);
	--nsp-border-soft: rgba(0,0,0,.05);
	--nsp-hairline: rgba(0,0,0,.06);

	--nsp-text: #1d1d1f;
	--nsp-text-2: #3a3a3c;
	--nsp-muted: #6e6e73;
	--nsp-subtle: #8e8e93;

	--nsp-primary: #6366f1;
	--nsp-primary-2: #8b5cf6;
	--nsp-primary-3: #ec4899;
	--nsp-primary-container: rgba(99,102,241,.10);
	--nsp-accent-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #ec4899 100%);
	--nsp-accent-grad-soft: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.06) 55%, rgba(236,72,153,.05));

	--nsp-success: #30d158;
	--nsp-warn: #ff9f0a;
	--nsp-danger: #ff3b30;
	--nsp-info: #0a84ff;

	--nsp-radius-xs: 8px;
	--nsp-radius-sm: 12px;
	--nsp-radius: 18px;
	--nsp-radius-lg: 24px;
	--nsp-radius-xl: 32px;

	/* Apple-like soft, spread shadows */
	--nsp-e1: 0 1px 2px rgba(0,0,0,.04);
	--nsp-e2: 0 4px 14px -4px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.03);
	--nsp-e3: 0 14px 36px -10px rgba(0,0,0,.10), 0 4px 10px -4px rgba(0,0,0,.04);
	--nsp-e4: 0 28px 64px -12px rgba(0,0,0,.18), 0 8px 20px -6px rgba(0,0,0,.06);
	--nsp-ring: 0 0 0 4px rgba(99,102,241,.14);

	--nsp-ease: cubic-bezier(.4,0,.2,1);
	--nsp-spring: cubic-bezier(.34,1.56,.64,1);
}

@media (prefers-color-scheme: dark) {
	/* Keep light — Apple-like dashboards often stay in their chosen mode. */
}

/* ============ Base ============ */
.nsp-app, .nsp-wrap, .nsp-landing {
	font-family: var(--nsp-font);
	color: var(--nsp-text);
	line-height: 1.5;
	font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
.nsp-app *, .nsp-wrap *, .nsp-landing * { box-sizing: border-box; }
.nsp-app ::selection, .nsp-landing ::selection { background: rgba(99,102,241,.2); }

/* ============ App Shell ============ */
.nsp-app {
	display: grid;
	grid-template-columns: 264px 1fr;
	min-height: 100vh;
	background: var(--nsp-bg);
	margin: 0;
}
body.admin-bar .nsp-app { min-height: calc(100vh - 32px); }
body.admin-bar .nsp-sidebar { top: 32px; height: calc(100vh - 32px); }
@media (max-width: 782px) { body.admin-bar .nsp-sidebar { top: 46px; height: calc(100vh - 46px); } }

/* ============ Sidebar ============ */
.nsp-sidebar {
	position: sticky; top: 0;
	height: 100vh;
	padding: 24px 16px;
	background: #ffffff;
	border-right: 1px solid var(--nsp-border);
	box-shadow: 1px 0 0 rgba(0,0,0,.02), 6px 0 24px -12px rgba(0,0,0,.08);
	display: flex; flex-direction: column; gap: 20px;
	z-index: 20;
}
.nsp-sidebar__brand {
	display: flex; align-items: center; gap: 12px;
	padding: 4px 10px 18px;
	border-bottom: 1px solid var(--nsp-hairline);
}
.nsp-logo {
	width: 38px; height: 38px;
	border-radius: 11px;
	background: var(--nsp-accent-grad);
	box-shadow: 0 8px 20px -6px rgba(99,102,241,.6), inset 0 1px 0 rgba(255,255,255,.3);
	position: relative;
}
.nsp-logo::after {
	content: ""; position: absolute; inset: 10px;
	border: 2px solid #fff; border-radius: 50%;
	border-top-color: transparent;
}
.nsp-sidebar__brand-name {
	font-weight: 700; font-size: 18px; letter-spacing: -.022em;
	background: var(--nsp-accent-grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nsp-sidebar__user {
	display: flex; align-items: center; gap: 12px;
	padding: 14px;
	background: var(--nsp-surface-2);
	border: 1px solid var(--nsp-hairline);
	border-radius: 14px;
}
.nsp-avatar {
	width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(99,102,241,.25);
}
.nsp-sidebar__user strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--nsp-text); }
.nsp-sidebar__user span { display: block; font-size: 12px; color: var(--nsp-muted); overflow: hidden; text-overflow: ellipsis; max-width: 170px; white-space: nowrap; margin-top: 2px; }

.nsp-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; margin-top: 4px; }
.nsp-nav__item {
	display: flex; align-items: center; gap: 12px;
	padding: 11px 14px;
	border-radius: 11px;
	color: var(--nsp-text-2);
	font-weight: 500; font-size: 14px; letter-spacing: -.005em;
	text-decoration: none;
	transition: background .2s var(--nsp-ease), color .2s var(--nsp-ease), transform .2s var(--nsp-ease);
	position: relative;
}
.nsp-nav__item:hover { background: var(--nsp-surface-2); color: var(--nsp-text); }
.nsp-nav__item:active { transform: scale(.98); }
.nsp-nav__item.is-active {
	background: var(--nsp-accent-grad);
	color: #fff;
	font-weight: 600;
	box-shadow: 0 8px 20px -8px rgba(99,102,241,.6), inset 0 1px 0 rgba(255,255,255,.2);
}
.nsp-nav__item.is-active:hover { background: var(--nsp-accent-grad); color: #fff; filter: brightness(1.05); }
.nsp-nav__icon { flex-shrink: 0; opacity: .72; }
.nsp-nav__item:hover .nsp-nav__icon { opacity: 1; }
.nsp-nav__item.is-active .nsp-nav__icon { opacity: 1; }

.nsp-sidebar__footer { padding-top: 12px; border-top: 1px solid var(--nsp-hairline); }

.nsp-menu-toggle {
	display: none;
	position: fixed; top: 14px; left: 14px; z-index: 30;
	width: 42px; height: 42px;
	border-radius: 12px; border: 1px solid var(--nsp-hairline);
	background: rgba(255,255,255,.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	color: var(--nsp-text); cursor: pointer;
	box-shadow: var(--nsp-e2);
}

/* ============ Main ============ */
.nsp-main {
	padding: 32px 40px 80px;
	max-width: 1440px;
	width: 100%;
}

.nsp-topbar {
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.nsp-topbar__title {
	margin: 0; font-size: 32px; font-weight: 700;
	letter-spacing: -.028em; line-height: 1.08;
}
.nsp-topbar__sub { margin: 4px 0 0; color: var(--nsp-muted); font-size: 14px; text-transform: capitalize; letter-spacing: -.005em; }

.nsp-topbar__actions { display: flex; gap: 10px; align-items: center; }

/* ============ Modern ref pill (topbar) ============ */
.nsp-ref-pill {
	appearance: none; font: inherit; cursor: pointer;
	display: inline-flex; align-items: center; gap: 12px;
	padding: 5px 14px 5px 5px;
	background: var(--nsp-surface);
	border: 1px solid var(--nsp-hairline);
	border-radius: 999px;
	box-shadow: var(--nsp-e1);
	color: var(--nsp-text);
	text-decoration: none;
	position: relative;
	transition: transform .18s var(--nsp-ease), box-shadow .18s var(--nsp-ease), border-color .18s var(--nsp-ease);
}
.nsp-ref-pill::before {
	content: ""; position: absolute; inset: -1px;
	border-radius: inherit; padding: 1px;
	background: var(--nsp-accent-grad);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	opacity: 0; transition: opacity .2s var(--nsp-ease);
	pointer-events: none;
}
.nsp-ref-pill:hover { transform: translateY(-1px); box-shadow: var(--nsp-e2); border-color: transparent; }
.nsp-ref-pill:hover::before { opacity: 1; }
.nsp-ref-pill:active { transform: translateY(0); }
.nsp-ref-pill:focus-visible { outline: 0; box-shadow: var(--nsp-e2), var(--nsp-ring); }

.nsp-ref-pill__glyph {
	flex: none;
	width: 34px; height: 34px;
	border-radius: 999px;
	background: var(--nsp-accent-grad);
	color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 14px -6px rgba(99,102,241,.55);
	transition: transform .3s var(--nsp-spring);
}
.nsp-ref-pill:hover .nsp-ref-pill__glyph { transform: rotate(-10deg) scale(1.05); }
.nsp-ref-pill__glyph svg { display: block; }

.nsp-ref-pill__text {
	display: inline-flex; flex-direction: column; align-items: flex-start;
	line-height: 1; gap: 3px;
	padding-right: 2px;
}
.nsp-ref-pill__label {
	font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--nsp-muted);
}
.nsp-ref-pill__code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 15px; font-weight: 700; letter-spacing: .02em;
	color: var(--nsp-text);
	background: linear-gradient(135deg, var(--nsp-primary) 0%, var(--nsp-primary-2) 50%, var(--nsp-primary-3) 100%);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nsp-ref-pill__hint {
	position: relative;
	flex: none; width: 22px; height: 22px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--nsp-subtle);
	transition: color .15s var(--nsp-ease);
}
.nsp-ref-pill:hover .nsp-ref-pill__hint { color: var(--nsp-primary); }
.nsp-ref-pill__hint svg { position: absolute; inset: 0; margin: auto; display: block; transition: opacity .2s var(--nsp-ease), transform .3s var(--nsp-spring); }
.nsp-ref-pill__check-icon { opacity: 0; transform: scale(.6); color: var(--nsp-success); }
.nsp-ref-pill.is-copied .nsp-ref-pill__copy-icon { opacity: 0; transform: scale(.6); }
.nsp-ref-pill.is-copied .nsp-ref-pill__check-icon { opacity: 1; transform: scale(1); }

.nsp-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px;
	border-radius: 10px;
	border: 0; background: var(--nsp-surface-2);
	color: var(--nsp-text-2); cursor: pointer;
	transition: background .15s var(--nsp-ease), color .15s var(--nsp-ease), transform .15s var(--nsp-ease);
	text-decoration: none;
}
.nsp-icon-btn:hover { background: var(--nsp-surface-3); color: var(--nsp-text); }
.nsp-icon-btn:active { transform: scale(.94); }
.nsp-icon-btn--fb:hover { background: rgba(24,119,242,.12); color: #1877f2; }
.nsp-icon-btn--x:hover { background: rgba(0,0,0,.08); color: #000; }
.nsp-icon-btn--wa:hover { background: rgba(37,211,102,.12); color: #25d366; }
.nsp-icon-btn.nsp-share__copy {
	padding: 0;
	background: var(--nsp-surface-2);
	color: var(--nsp-text-2);
	box-shadow: none;
}
.nsp-icon-btn.nsp-share__copy:hover {
	background: var(--nsp-surface-3);
	color: var(--nsp-text);
	filter: none;
	box-shadow: none;
	transform: none;
}
.nsp-icon-btn.nsp-share__copy svg { display: block; width: 18px; height: 18px; }

/* ============ Welcome banner ============ */
.nsp-banner {
	display: flex; align-items: center; gap: 16px;
	padding: 18px 22px;
	margin-bottom: 24px;
	background: var(--nsp-surface);
	border: 1px solid var(--nsp-hairline);
	border-radius: var(--nsp-radius);
	box-shadow: var(--nsp-e1);
	position: relative; overflow: hidden;
}
.nsp-banner::before {
	content: ""; position: absolute; inset: 0;
	background: var(--nsp-accent-grad-soft);
	pointer-events: none;
}
.nsp-banner > * { position: relative; }
.nsp-banner__emoji { font-size: 30px; line-height: 1; }
.nsp-banner strong { display: block; font-weight: 600; letter-spacing: -.01em; }
.nsp-banner p { margin: 2px 0 0; color: var(--nsp-muted); font-size: 14px; }

/* ============ Onboarding checklist ============ */
.nsp-onboarding {
	margin-bottom: 24px;
	padding: 20px 22px;
	background: var(--nsp-surface);
	border: 1px solid var(--nsp-hairline);
	border-radius: var(--nsp-radius);
	box-shadow: var(--nsp-e1);
	position: relative; overflow: hidden;
}
.nsp-onboarding::before {
	content: ""; position: absolute; inset: 0;
	background: var(--nsp-accent-grad-soft);
	pointer-events: none;
}
.nsp-onboarding > * { position: relative; }
.nsp-onboarding__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.nsp-onboarding__emoji { font-size: 26px; line-height: 1; }
.nsp-onboarding__head strong { display: block; font-weight: 600; letter-spacing: -.01em; }
.nsp-onboarding__head p { margin: 2px 0 0; color: var(--nsp-muted); font-size: 13px; }
.nsp-onboarding__steps {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
}
.nsp-onboarding__steps li {
	display: flex; gap: 12px; padding: 14px 16px;
	background: rgba(99,102,241,.04);
	border: 1px solid rgba(99,102,241,.12);
	border-radius: 14px;
	opacity: .72;
	transition: opacity .2s;
}
.nsp-onboarding__steps li.is-current { opacity: 1; border-color: var(--nsp-primary); background: rgba(99,102,241,.08); }
.nsp-onboarding__steps li.is-done { opacity: 1; background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.3); }
.nsp-onboarding__check {
	flex: none; width: 28px; height: 28px; border-radius: 50%;
	background: var(--nsp-primary); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 13px;
}
.nsp-onboarding__steps li.is-done .nsp-onboarding__check { background: #10b981; }
.nsp-onboarding__steps li > div { min-width: 0; flex: 1; }
.nsp-onboarding__steps li strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.nsp-onboarding__steps li small { display: block; margin-top: 3px; color: var(--nsp-muted); font-size: 12.5px; line-height: 1.4; }
.nsp-onboarding__steps li code { background: rgba(99,102,241,.12); color: var(--nsp-primary); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.nsp-onboarding__steps li .nsp-btn--sm {
	margin-top: 14px;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	box-shadow: 0 10px 24px -8px rgba(99,102,241,.6), inset 0 1px 0 rgba(255,255,255,.22);
	animation: nspCtaPulse 2.4s ease-in-out infinite;
}
.nsp-onboarding__steps li .nsp-btn--sm:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 36px -10px rgba(99,102,241,.75), inset 0 1px 0 rgba(255,255,255,.28);
	animation: none;
}
@keyframes nspCtaPulse {
	0%, 100% { box-shadow: 0 10px 24px -8px rgba(99,102,241,.55), inset 0 1px 0 rgba(255,255,255,.22); }
	50%      { box-shadow: 0 16px 32px -8px rgba(99,102,241,.9),  inset 0 1px 0 rgba(255,255,255,.28); }
}

/* ============ KPIs ============ */
.nsp-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}
.nsp-kpi {
	background: var(--nsp-surface);
	border: 1px solid var(--nsp-hairline);
	border-radius: var(--nsp-radius);
	padding: 22px;
	box-shadow: var(--nsp-e1);
	transition: box-shadow .25s var(--nsp-ease), transform .25s var(--nsp-ease);
	position: relative; overflow: hidden;
}
.nsp-kpi:hover { box-shadow: var(--nsp-e3); transform: translateY(-2px); }
.nsp-kpi__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.nsp-kpi__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--nsp-muted); font-weight: 600; }
.nsp-kpi__value {
	font-size: 34px; font-weight: 700; display: block;
	letter-spacing: -.032em; font-variant-numeric: tabular-nums;
	line-height: 1.1;
}
.nsp-kpi__hint { font-size: 12px; color: var(--nsp-muted); display: block; margin-top: 10px; }
.nsp-kpi__cta {
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 18px;
	padding: 9px 16px;
	background: rgba(255,255,255,.95);
	color: var(--nsp-primary);
	font-size: 13px; font-weight: 600;
	text-decoration: none;
	letter-spacing: -.005em;
	border-radius: 999px;
	box-shadow: 0 6px 16px -6px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.9);
	transition: transform .15s var(--nsp-ease), box-shadow .15s var(--nsp-ease), background .15s;
	position: relative; z-index: 3;
	pointer-events: auto;
}
.nsp-kpi__cta:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(0,0,0,.3); gap: 10px; }
.nsp-kpi__cta:active { transform: scale(.97); }
.nsp-kpi__trend { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12px; font-weight: 600; }
.nsp-kpi__trend.is-up { color: var(--nsp-success); }
.nsp-kpi__trend.is-down { color: var(--nsp-danger); }
.nsp-kpi__trend small { color: var(--nsp-muted); font-weight: 500; margin-left: 4px; }

.nsp-kpi--hero {
	background: var(--nsp-accent-grad);
	color: #fff;
	border: 0;
	box-shadow: 0 20px 40px -14px rgba(99,102,241,.45), 0 8px 16px -8px rgba(236,72,153,.35);
}
.nsp-kpi--hero::after {
	content: ""; position: absolute;
	top: -50%; right: -30%; width: 240px; height: 240px;
	background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%);
	border-radius: 50%;
	pointer-events: none;
}
.nsp-kpi--hero::before {
	content: ""; position: absolute;
	bottom: -40%; left: -10%; width: 200px; height: 200px;
	background: radial-gradient(circle, rgba(255,255,255,.12), transparent 60%);
	border-radius: 50%;
	pointer-events: none;
}
.nsp-kpi--hero > * { position: relative; z-index: 1; }
.nsp-kpi--hero .nsp-kpi__label,
.nsp-kpi--hero .nsp-kpi__hint { color: rgba(255,255,255,.88); }
.nsp-kpi--hero .nsp-kpi__value { color: #fff; }

.nsp-chip {
	display: inline-flex; align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.22);
	color: #fff;
	font-size: 11px; font-weight: 600;
	letter-spacing: .04em;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.nsp-chip--success { background: rgba(48,209,88,.14); color: #0a7a2f; backdrop-filter: none; }

.nsp-progress {
	height: 6px; border-radius: 999px;
	background: rgba(255,255,255,.25);
	overflow: hidden;
	margin-top: 14px;
	position: relative;
}
.nsp-kpi:not(.nsp-kpi--hero) .nsp-progress { background: var(--nsp-surface-3); }
.nsp-progress__bar {
	height: 100%;
	background: #fff;
	border-radius: 999px;
	transition: width .8s var(--nsp-spring);
}
.nsp-kpi:not(.nsp-kpi--hero) .nsp-progress__bar { background: var(--nsp-accent-grad); }
.nsp-progress--sm { height: 4px; margin-top: 6px; }

/* ============ Grid ============ */
.nsp-grid { display: grid; gap: 18px; margin-bottom: 20px; }
.nsp-grid--2-1 { grid-template-columns: 2fr 1fr; }
.nsp-grid--1-1 { grid-template-columns: 1fr 1fr; }

/* ============ Card ============ */
.nsp-card {
	background: var(--nsp-surface);
	border: 1px solid var(--nsp-hairline);
	border-radius: var(--nsp-radius);
	padding: 26px;
	box-shadow: var(--nsp-e1);
	transition: box-shadow .25s var(--nsp-ease);
}
.nsp-card:hover { box-shadow: var(--nsp-e2); }
.nsp-card__head {
	display: flex; justify-content: space-between; align-items: flex-start;
	gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.nsp-card__head h2 {
	margin: 0 0 3px; font-size: 19px; font-weight: 600;
	letter-spacing: -.02em;
}
.nsp-card__desc { margin: 0; color: var(--nsp-muted); font-size: 13px; letter-spacing: -.005em; }

.nsp-card--accent {
	background: var(--nsp-accent-grad);
	color: #fff;
	border: 0;
	padding: 28px;
	box-shadow: 0 20px 40px -14px rgba(99,102,241,.4);
}
.nsp-card--accent .nsp-kpi__label,
.nsp-card--accent .nsp-kpi__value,
.nsp-card--accent .nsp-card__desc { color: rgba(255,255,255,.95); }
.nsp-card--accent .nsp-kpi__value { font-size: 40px; margin: 8px 0; display: block; letter-spacing: -.032em; }

/* ============ Line chart ============ */
.nsp-linechart { width: 100%; height: 260px; }
.nsp-linechart svg { width: 100%; height: 100%; display: block; }
.nsp-linechart .nsp-line { fill: none; stroke: var(--nsp-primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.nsp-linechart .nsp-area { fill: url(#nsp-area-grad); opacity: .35; }
.nsp-linechart .nsp-axis { stroke: var(--nsp-hairline); stroke-width: 1; }
.nsp-linechart .nsp-axis-text { font-size: 10px; fill: var(--nsp-muted); font-family: var(--nsp-font); }
.nsp-linechart .nsp-bars { fill: var(--nsp-primary-2); opacity: .28; }
.nsp-linechart .nsp-dot { fill: #fff; stroke: var(--nsp-primary); stroke-width: 2; }
.nsp-linechart .nsp-tooltip { fill: #fff; opacity: 0; transition: opacity .15s; }
.nsp-linechart .nsp-tooltip-bg { fill: var(--nsp-text); }

.nsp-chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--nsp-muted); }
.nsp-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.nsp-chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }

/* ============ Donut ============ */
.nsp-donut { display: flex; align-items: center; gap: 28px; padding: 4px 0; }
.nsp-donut svg { width: 160px; height: 160px; flex-shrink: 0; }
.nsp-donut__legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.nsp-donut__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.nsp-donut__item-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nsp-donut__dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.nsp-donut__label { color: var(--nsp-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsp-donut__value { color: var(--nsp-muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.nsp-donut__total { text-align: center; }
.nsp-donut__total strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.028em; }
.nsp-donut__total span { font-size: 11px; color: var(--nsp-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ============ Achievements ============ */
.nsp-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.nsp-badge {
	display: flex; gap: 12px;
	padding: 14px;
	background: var(--nsp-surface-2);
	border: 1px solid transparent;
	border-radius: 14px;
	transition: background .25s var(--nsp-ease), border-color .25s var(--nsp-ease), box-shadow .25s var(--nsp-ease);
	opacity: .55;
}
.nsp-badge.is-unlocked {
	opacity: 1;
	background: var(--nsp-surface);
	border-color: var(--nsp-hairline);
	box-shadow: var(--nsp-e1);
}
.nsp-badge__icon {
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	background: var(--nsp-surface); border: 1px solid var(--nsp-hairline);
	border-radius: 10px;
	font-size: 22px;
	flex-shrink: 0;
}
.nsp-badge.is-unlocked .nsp-badge__icon {
	background: var(--nsp-accent-grad);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 6px 16px -6px rgba(99,102,241,.5);
}
.nsp-badge__body { flex: 1; min-width: 0; }
.nsp-badge__body strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.005em; }
.nsp-badge__body span { font-size: 11px; color: var(--nsp-muted); font-weight: 600; }

/* ============ Top list ============ */
.nsp-top { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.nsp-top li {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 0; border-bottom: 1px solid var(--nsp-hairline);
}
.nsp-top li:last-child { border: 0; }
.nsp-top__rank {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px;
	background: var(--nsp-primary-container);
	color: var(--nsp-primary);
	border-radius: 8px;
	font-size: 12px; font-weight: 700;
	letter-spacing: -.01em;
}
.nsp-top a { flex: 1; color: var(--nsp-text); text-decoration: none; font-weight: 500; font-size: 14px; line-height: 1.35; letter-spacing: -.005em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nsp-top a:hover { color: var(--nsp-primary); }
.nsp-top__count { color: var(--nsp-text-2); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }

/* ============ Heatmap ============ */
.nsp-heatmap { display: flex; flex-direction: column; gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.nsp-heatmap__row { display: grid; grid-template-columns: 40px repeat(24, minmax(16px, 1fr)); gap: 3px; align-items: center; }
.nsp-heatmap__hours { display: grid; grid-template-columns: 40px repeat(24, minmax(16px, 1fr)); gap: 3px; margin-bottom: 4px; }
.nsp-heatmap__hours span { font-size: 10px; color: var(--nsp-muted); text-align: center; }
.nsp-heatmap__day { font-size: 11px; color: var(--nsp-muted); font-weight: 600; }
.nsp-heatmap__cell {
	height: 22px; border-radius: 5px;
	background: var(--nsp-surface-2);
	transition: transform .18s var(--nsp-spring);
	cursor: help;
}
.nsp-heatmap__cell:hover { transform: scale(1.22); outline: 1px solid var(--nsp-primary); outline-offset: 1px; }
.nsp-heatmap__cell--1 { background: rgba(99,102,241,.2); }
.nsp-heatmap__cell--2 { background: rgba(99,102,241,.42); }
.nsp-heatmap__cell--3 { background: rgba(99,102,241,.68); }
.nsp-heatmap__cell--4 { background: var(--nsp-primary); }

/* ============ Articles (minimal list) ============ */
.nsp-articles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nsp-article {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--nsp-hairline);
}
.nsp-article:last-child { border-bottom: 0; }
.nsp-article__title {
	flex: 1; min-width: 0;
	color: var(--nsp-text);
	text-decoration: none;
	font-size: 15px; font-weight: 500;
	line-height: 1.4; letter-spacing: -.01em;
	overflow: hidden; text-overflow: ellipsis;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	transition: color .15s var(--nsp-ease);
}
.nsp-article__title:hover { color: var(--nsp-primary); }

.nsp-share--compact { flex-shrink: 0; }
.nsp-share--compact .nsp-share__copy {
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--nsp-surface-2);
	color: var(--nsp-text);
	border: 1px solid var(--nsp-hairline);
	font-size: 13px; font-weight: 500;
	cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
	transition: background .15s var(--nsp-ease), color .15s var(--nsp-ease), border-color .15s var(--nsp-ease), transform .15s var(--nsp-ease);
	letter-spacing: -.005em;
}
.nsp-share--compact .nsp-share__copy:hover {
	background: var(--nsp-primary);
	color: #fff;
	border-color: var(--nsp-primary);
	filter: none; box-shadow: none; transform: translateY(-1px);
}
.nsp-share--compact .nsp-share__copy:active { transform: scale(.96); }

/* ============ Share ============ */
.nsp-share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; position: relative; }
.nsp-share__input {
	flex: 1; min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--nsp-hairline);
	border-radius: 10px;
	background: var(--nsp-surface-2);
	font-size: 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--nsp-text-2);
	transition: all .15s;
}
.nsp-share__input:focus { outline: 0; border-color: var(--nsp-primary); background: #fff; box-shadow: var(--nsp-ring); }
.nsp-share__copy {
	padding: 10px 16px;
	border: 0; border-radius: 10px;
	background: var(--nsp-accent-grad);
	color: #fff;
	font: inherit; font-size: 13px; font-weight: 600;
	cursor: pointer;
	transition: transform .15s var(--nsp-ease), box-shadow .15s var(--nsp-ease), filter .15s;
	display: inline-flex; align-items: center; gap: 6px;
	letter-spacing: -.005em;
}
.nsp-share__copy:hover { filter: brightness(1.06); box-shadow: 0 8px 20px -6px rgba(99,102,241,.5); transform: translateY(-1px); }
.nsp-share__copy:active { transform: scale(.97); }

.nsp-share__toast {
	position: absolute;
	top: -40px; left: 50%;
	transform: translateX(-50%) translateY(4px) scale(.96);
	background: rgba(29,29,31,.92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	color: #fff;
	font-size: 12px; font-weight: 600;
	padding: 7px 14px; border-radius: 10px;
	opacity: 0; pointer-events: none;
	transition: all .25s var(--nsp-spring);
	white-space: nowrap;
	z-index: 10;
}
.nsp-share__toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

/* ============ Form ============ */
.nsp-form { display: flex; flex-direction: column; gap: 16px; }
.nsp-field { display: flex; flex-direction: column; gap: 6px; }
.nsp-field > span { font-size: 13px; font-weight: 600; color: var(--nsp-text); letter-spacing: -.005em; }
.nsp-field input, .nsp-field select, .nsp-field textarea {
	padding: 12px 14px;
	border: 1px solid var(--nsp-border);
	border-radius: 12px;
	background: var(--nsp-surface);
	font: inherit; font-size: 14px;
	color: var(--nsp-text);
	transition: border-color .15s var(--nsp-ease), box-shadow .15s var(--nsp-ease), background .15s;
	letter-spacing: -.005em;
}
.nsp-field input:hover, .nsp-field select:hover, .nsp-field textarea:hover { border-color: var(--nsp-subtle); }
.nsp-field input:focus, .nsp-field select:focus, .nsp-field textarea:focus { outline: 0; border-color: var(--nsp-primary); box-shadow: var(--nsp-ring); }

/* ============ Button ============ */
.nsp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border: 0; border-radius: 999px;
	font: inherit; font-weight: 600; font-size: 14px;
	cursor: pointer; text-decoration: none;
	letter-spacing: -.005em;
	transition: transform .15s var(--nsp-ease), box-shadow .18s var(--nsp-ease), filter .15s, background .18s;
	position: relative; overflow: hidden;
}
.nsp-btn.nsp-btn--primary {
	background: var(--nsp-accent-grad); color: #fff;
	box-shadow: 0 8px 20px -8px rgba(99,102,241,.55), inset 0 1px 0 rgba(255,255,255,.18);
}
.nsp-btn.nsp-btn--primary:hover { filter: brightness(1.06); color: #fff; box-shadow: 0 14px 28px -8px rgba(99,102,241,.55); transform: translateY(-1px); }
.nsp-btn.nsp-btn--primary:active { transform: scale(.97); }
.nsp-btn.nsp-btn--ghost {
	background: var(--nsp-surface);
	color: var(--nsp-text);
	box-shadow: inset 0 0 0 1px var(--nsp-hairline);
}
.nsp-btn.nsp-btn--ghost:hover { background: var(--nsp-surface-2); color: var(--nsp-text); }
.nsp-btn.nsp-btn--white { background: #fff; color: var(--nsp-primary); box-shadow: 0 8px 24px -6px rgba(0,0,0,.18); }
.nsp-btn.nsp-btn--white:hover { background: #fafafa; color: var(--nsp-primary); transform: translateY(-1px); }
.nsp-btn--block { width: 100%; }
.nsp-btn--lg { padding: 14px 26px; font-size: 15px; }
.nsp-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }

.nsp-btn::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(255,255,255,.35) 0%, transparent 50%);
	opacity: 0; transition: opacity .3s;
	pointer-events: none;
}
.nsp-btn:hover::after { opacity: 1; }

/* ============ Segmented control + Billing form ============ */
.nsp-segmented {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	background: var(--nsp-surface-2);
	border-radius: 12px;
	margin-bottom: 4px;
}
.nsp-segmented input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.nsp-segmented label {
	display: flex; align-items: center; justify-content: center;
	padding: 10px 12px;
	border-radius: 9px;
	font-size: 14px; font-weight: 600;
	color: var(--nsp-muted);
	cursor: pointer;
	transition: background .22s var(--nsp-ease), color .22s var(--nsp-ease), box-shadow .22s var(--nsp-ease);
	letter-spacing: -.005em;
	user-select: none;
}
.nsp-segmented input[type="radio"]:checked + label {
	background: #fff;
	color: var(--nsp-text);
	box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
}
.nsp-segmented input[type="radio"]:focus-visible + label { outline: 2px solid var(--nsp-primary); outline-offset: 2px; }

.nsp-billing__pf, .nsp-billing__pj { display: none; flex-direction: column; gap: 14px; }
.nsp-billing:has(#nsp-bt-pf:checked) .nsp-billing__pf { display: flex; }
.nsp-billing:has(#nsp-bt-pj:checked) .nsp-billing__pj { display: flex; }

.nsp-billing__section {
	margin: 18px 0 4px;
	font-size: 12px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .1em;
	color: var(--nsp-muted);
	padding-bottom: 6px;
	border-bottom: 1px solid var(--nsp-hairline);
}

.nsp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nsp-field-row--3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 680px) {
	.nsp-field-row, .nsp-field-row--3 { grid-template-columns: 1fr; }
}
.nsp-check--pj { align-self: end; padding-bottom: 12px; }

.nsp-card--billing { max-width: 100%; }

/* Billing summary (in withdraw form) */
.nsp-billing-summary {
	position: relative;
	padding: 14px 16px;
	background: var(--nsp-surface-2);
	border: 1px solid var(--nsp-hairline);
	border-radius: 12px;
	display: flex; flex-direction: column; gap: 8px;
}
.nsp-billing-summary .nsp-chip--success { align-self: flex-start; }
.nsp-billing-summary pre {
	margin: 0; white-space: pre-wrap; word-break: break-word;
	font-family: var(--nsp-font);
	font-size: 13px; color: var(--nsp-text-2); line-height: 1.5;
	letter-spacing: -.005em;
}

/* ============ Alerts ============ */
.nsp-alert {
	padding: 13px 16px;
	border-radius: 12px;
	margin-bottom: 16px;
	font-size: 14px; letter-spacing: -.005em;
	display: flex; gap: 10px; align-items: center;
	border: 1px solid transparent;
}
.nsp-alert--success { background: rgba(48,209,88,.08); color: #0a7a2f; border-color: rgba(48,209,88,.2); }
.nsp-alert--error { background: rgba(255,59,48,.08); color: #c41e1e; border-color: rgba(255,59,48,.2); }

/* ============ Table ============ */
.nsp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nsp-table { width: 100%; border-collapse: collapse; }
.nsp-table th, .nsp-table td { padding: 14px 14px; text-align: left; border-bottom: 1px solid var(--nsp-hairline); font-size: 14px; letter-spacing: -.005em; }
.nsp-table th { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--nsp-muted); }
.nsp-table tr:last-child td { border: 0; }

.nsp-table--articles tbody tr { transition: background .15s var(--nsp-ease); }
.nsp-table--articles tbody tr:hover { background: var(--nsp-surface-2); }
.nsp-table--articles .nsp-col-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nsp-table--articles .nsp-col-date { color: var(--nsp-muted); font-size: 13px; white-space: nowrap; }
.nsp-table--articles .nsp-col-action { text-align: right; width: 1%; }
.nsp-table__title {
	color: var(--nsp-text); text-decoration: none; font-weight: 600;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden; max-width: 440px;
}
.nsp-table__title:hover { color: var(--nsp-primary); }
@media (max-width: 640px) {
	.nsp-table--articles .nsp-col-date { display: none; }
}

/* ============ Sort form ============ */
.nsp-sort-form { display: inline-flex; align-items: center; gap: 10px; }
.nsp-sort-form__label { font-size: 12px; color: var(--nsp-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.nsp-select {
	appearance: none; -webkit-appearance: none;
	padding: 8px 34px 8px 14px;
	font: inherit; font-size: 13px; font-weight: 600;
	color: var(--nsp-text);
	background: var(--nsp-surface-2); border: 1px solid var(--nsp-hairline);
	border-radius: 10px; cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat; background-position: right 12px center;
	transition: border-color .15s, background-color .15s;
}
.nsp-select:hover { border-color: var(--nsp-primary); }
.nsp-select:focus { outline: none; border-color: var(--nsp-primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }

/* ============ Pager ============ */
.nsp-pager {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; padding: 16px 4px 4px; flex-wrap: wrap;
}
.nsp-pager__info { font-size: 13px; color: var(--nsp-muted); }
.nsp-pager__btns { display: inline-flex; gap: 8px; }
.nsp-pager .nsp-btn.is-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.nsp-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.nsp-status--pending { background: rgba(255,159,10,.12); color: #9a5a00; }
.nsp-status--approved { background: rgba(10,132,255,.12); color: #0a5cbf; }
.nsp-status--paid { background: rgba(48,209,88,.12); color: #0a7a2f; }
.nsp-status--rejected { background: rgba(255,59,48,.12); color: #c41e1e; }

.nsp-empty { text-align: center; color: var(--nsp-muted); padding: 48px 0; font-size: 14px; }

/* ============ Activity ============ */
.nsp-activity { list-style: none; margin: 0; padding: 0; }
.nsp-activity__item {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--nsp-hairline);
}
.nsp-activity__item:last-child { border: 0; }
.nsp-activity__dot {
	width: 10px; height: 10px; border-radius: 50%;
	background: var(--nsp-subtle);
	flex-shrink: 0;
	box-shadow: 0 0 0 4px var(--nsp-surface-2);
}
.nsp-activity__dot.is-paid { background: var(--nsp-success); box-shadow: 0 0 0 4px rgba(48,209,88,.14); animation: nspPulse 2s infinite; }
@keyframes nspPulse { 0%,100% { box-shadow: 0 0 0 4px rgba(48,209,88,.14); } 50% { box-shadow: 0 0 0 8px rgba(48,209,88,.06); } }
.nsp-activity__body { flex: 1; min-width: 0; }
.nsp-activity__body strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsp-activity__meta { font-size: 12px; color: var(--nsp-muted); }

/* ============ Share box (inline on articles) ============ */
.nsp-sharebox {
	font-family: var(--nsp-font);
	color: var(--nsp-text);
	-webkit-font-smoothing: antialiased;
	background: var(--nsp-surface);
	border: 1px solid var(--nsp-hairline);
	border-radius: 20px;
	padding: 0;
	box-shadow: var(--nsp-e2);
	margin: 28px 0;
	overflow: hidden;
	max-width: 720px;
	position: relative;
}
.nsp-sharebox::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
	background: var(--nsp-accent-grad);
}
.nsp-sharebox__head {
	display: flex; justify-content: space-between; align-items: center;
	gap: 16px; flex-wrap: wrap;
	padding: 18px 22px 14px;
	border-bottom: 1px solid var(--nsp-hairline);
}
.nsp-sharebox__user { display: flex; flex-direction: column; gap: 2px; }
.nsp-sharebox__greet { font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--nsp-text); }
.nsp-sharebox__ref {
	font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
	color: var(--nsp-muted); font-weight: 600;
	display: inline-flex; align-items: center; gap: 6px;
}
.nsp-sharebox__ref code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px; font-weight: 700;
	padding: 2px 8px; border-radius: 6px;
	background: var(--nsp-primary-container);
	color: var(--nsp-primary);
	text-transform: none; letter-spacing: 0;
}
.nsp-sharebox__rpm { text-align: right; line-height: 1.2; }
.nsp-sharebox__rpm strong {
	display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em;
	background: var(--nsp-accent-grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
}
.nsp-sharebox__rpm span { font-size: 11px; color: var(--nsp-muted); }

.nsp-sharebox__body {
	padding: 18px 22px;
	display: flex; flex-direction: column; gap: 8px;
}
.nsp-sharebox__label {
	font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
	color: var(--nsp-muted); font-weight: 600;
}
.nsp-sharebox .nsp-share { flex-wrap: nowrap; gap: 8px; }
.nsp-sharebox .nsp-share__input {
	flex: 1; min-width: 0; cursor: text;
}

.nsp-sharebox__stats {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
	border-top: 1px solid var(--nsp-hairline);
	background: var(--nsp-surface-2);
}
.nsp-sharebox__stat {
	padding: 14px 18px;
	border-right: 1px solid var(--nsp-hairline);
	text-align: left;
	display: flex; flex-direction: column; gap: 4px;
}
.nsp-sharebox__stat:last-child { border-right: 0; }
.nsp-sharebox__stat span {
	font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
	color: var(--nsp-muted); font-weight: 600;
}
.nsp-sharebox__stat strong {
	font-size: 18px; font-weight: 700; letter-spacing: -.02em;
	font-variant-numeric: tabular-nums; color: var(--nsp-text);
}

.nsp-sharebox__foot {
	display: flex; justify-content: space-between; align-items: center;
	gap: 12px; flex-wrap: wrap;
	padding: 12px 22px;
	border-top: 1px solid var(--nsp-hairline);
	background: var(--nsp-surface);
}
.nsp-sharebox__last { font-size: 12px; color: var(--nsp-muted); letter-spacing: -.005em; }
.nsp-sharebox__last b { color: var(--nsp-text); font-weight: 600; }
.nsp-sharebox__dash {
	font-size: 13px; font-weight: 600; letter-spacing: -.005em;
	color: var(--nsp-primary); text-decoration: none;
	display: inline-flex; align-items: center; gap: 4px;
	transition: gap .18s var(--nsp-ease);
}
.nsp-sharebox__dash:hover { gap: 8px; }

@media (max-width: 560px) {
	.nsp-sharebox__stats { grid-template-columns: repeat(2, 1fr); }
	.nsp-sharebox__stat:nth-child(2) { border-right: 0; }
	.nsp-sharebox__stat:nth-child(1), .nsp-sharebox__stat:nth-child(2) { border-bottom: 1px solid var(--nsp-hairline); }
	.nsp-sharebox .nsp-share { flex-wrap: wrap; }
}

/* ============ Link Builder ============ */
.nsp-builder { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.nsp-builder__qr {
	display: flex; gap: 16px; align-items: center;
	padding: 16px;
	background: var(--nsp-surface-2);
	border-radius: 14px;
	margin-top: 8px;
}
.nsp-builder__qr-img { width: 120px; height: 120px; background: #fff; border-radius: 10px; padding: 8px; box-shadow: var(--nsp-e1); }
.nsp-builder__qr strong { display: block; font-size: 14px; margin-bottom: 4px; letter-spacing: -.005em; }
.nsp-builder__qr p { margin: 0; font-size: 13px; color: var(--nsp-muted); }

/* ============================================================
   LANDING — Apple-like editorial
   ============================================================ */
.nsp-landing { background: var(--nsp-bg-2); }

.nsp-hero {
	position: relative; overflow: hidden;
	padding: 112px 24px 144px;
	background: var(--nsp-bg-2);
}
.nsp-hero::before {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(circle at 1px 1px, rgba(99,102,241,.14) 1px, transparent 0);
	background-size: 28px 28px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 75%);
	opacity: .6; pointer-events: none; z-index: 0;
}
.nsp-hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.nsp-blob {
	position: absolute; border-radius: 50%;
	filter: blur(120px); opacity: .38;
	animation: nspBlob 22s ease-in-out infinite;
}
.nsp-blob--1 { width: 560px; height: 560px; background: #6366f1; top: -200px; left: -220px; }
.nsp-blob--3 { width: 480px; height: 480px; background: #8b5cf6; top: 10%; right: -180px; animation-delay: -12s; }
@keyframes nspBlob {
	0%,100% { transform: translate(0,0) scale(1); }
	50% { transform: translate(60px,-50px) scale(1.12); }
}

.nsp-hero__inner {
	position: relative; z-index: 1;
	max-width: 1200px; margin: 0 auto;
	display: grid; grid-template-columns: 1fr 460px;
	gap: 72px; align-items: center;
}

.nsp-pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 13px;
	border-radius: 999px;
	background: rgba(255,255,255,.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	color: var(--nsp-text);
	font-size: 12.5px; font-weight: 500; letter-spacing: -.005em;
	margin-bottom: 32px;
	border: 1px solid var(--nsp-hairline);
	box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.nsp-hero__title {
	font-size: clamp(46px, 6.4vw, 76px);
	font-weight: 700;
	line-height: .98;
	letter-spacing: -.042em;
	margin: 0 0 28px;
}
.nsp-gradient-text {
	background: var(--nsp-accent-grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}
.nsp-hero__lead {
	font-size: 19px;
	color: var(--nsp-muted);
	margin: 0 0 40px; max-width: 560px;
	line-height: 1.55;
	letter-spacing: -.008em;
}
.nsp-hero__lead strong { color: var(--nsp-text); font-weight: 600; }
.nsp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.nsp-hero__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; color: var(--nsp-muted); font-size: 14px; letter-spacing: -.005em; }
.nsp-hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.nsp-hero__trust svg { color: var(--nsp-success); }

/* Auth card — glassy */
.nsp-auth {
	background: rgba(255,255,255,.72);
	backdrop-filter: saturate(180%) blur(30px);
	-webkit-backdrop-filter: saturate(180%) blur(30px);
	border: 1px solid rgba(255,255,255,.8);
	border-radius: 28px;
	padding: 34px;
	box-shadow: var(--nsp-e4), inset 0 1px 0 rgba(255,255,255,.9);
}
.nsp-auth__tabs {
	display: flex;
	background: var(--nsp-surface-2);
	border-radius: 12px;
	padding: 4px; margin-bottom: 28px;
}
.nsp-auth__tab {
	flex: 1; padding: 10px;
	border: 0; background: transparent;
	font: inherit; font-size: 14px; font-weight: 600;
	color: var(--nsp-muted);
	border-radius: 9px; cursor: pointer;
	transition: background .22s var(--nsp-ease), color .22s var(--nsp-ease), box-shadow .22s var(--nsp-ease);
	letter-spacing: -.005em;
}
.nsp-auth__tab.is-active {
	background: #fff;
	color: var(--nsp-text);
	box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
}
.nsp-auth__form { display: none; flex-direction: column; gap: 14px; }
.nsp-auth__form.is-visible { display: flex; }
.nsp-auth__title { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.028em; }
.nsp-auth__sub { margin: -6px 0 8px; color: var(--nsp-muted); font-size: 14px; letter-spacing: -.005em; }
.nsp-auth__link { font-size: 13px; color: var(--nsp-primary); text-decoration: none; text-align: center; }
.nsp-auth__link:hover { text-decoration: underline; }
.nsp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--nsp-muted); cursor: pointer; letter-spacing: -.005em; }
.nsp-check input { margin-top: 2px; accent-color: var(--nsp-primary); }

/* Stats strip */
.nsp-stats {
	width: calc(100% - 48px);
	max-width: 1040px; margin: 0 auto;
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 0;
	transform: translateY(-48px);
	background: rgba(255,255,255,.85);
	backdrop-filter: saturate(180%) blur(24px);
	-webkit-backdrop-filter: saturate(180%) blur(24px);
	border: 1px solid var(--nsp-hairline);
	border-radius: var(--nsp-radius);
	box-shadow: 0 30px 60px -30px rgba(15,23,42,.12);
	overflow: hidden;
}
.nsp-stat {
	padding: 30px 24px; text-align: center;
	position: relative;
}
.nsp-stat + .nsp-stat::before {
	content: ""; position: absolute;
	left: 0; top: 22%; bottom: 22%; width: 1px;
	background: var(--nsp-hairline);
}
.nsp-stat strong {
	display: block; font-size: 36px; font-weight: 700;
	background: var(--nsp-accent-grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -.035em; line-height: 1;
	font-variant-numeric: tabular-nums;
	margin-bottom: 6px;
}
.nsp-stat span { font-size: 13px; color: var(--nsp-muted); letter-spacing: -.005em; font-weight: 500; }

/* Section heads */
.nsp-section__head { text-align: center; max-width: 680px; margin: 0 auto 72px; }
.nsp-eyebrow {
	display: inline-block; font-size: 11.5px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .16em;
	color: var(--nsp-primary); margin-bottom: 16px;
}
.nsp-eyebrow--light { color: rgba(255,255,255,.92); }
.nsp-section__head h2 {
	font-size: clamp(34px, 4.2vw, 50px);
	font-weight: 700; letter-spacing: -.036em;
	margin: 0 0 16px; line-height: 1.04;
}
.nsp-section__head p {
	color: var(--nsp-muted);
	font-size: 17px; margin: 0;
	letter-spacing: -.008em; line-height: 1.55;
}

/* How it works */
.nsp-how { max-width: 1160px; margin: 0 auto; padding: 96px 24px 96px; }
.nsp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nsp-step {
	position: relative;
	background: var(--nsp-surface);
	border: 1px solid var(--nsp-hairline);
	border-radius: var(--nsp-radius-lg);
	padding: 36px 32px;
	transition: border-color .3s var(--nsp-ease), box-shadow .3s var(--nsp-ease);
}
.nsp-step:hover { border-color: rgba(99,102,241,.28); box-shadow: 0 18px 40px -18px rgba(99,102,241,.22); }
.nsp-step__num {
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--nsp-primary-container);
	color: var(--nsp-primary); font-weight: 700; font-size: 17px;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 24px;
	letter-spacing: -.01em;
	font-variant-numeric: tabular-nums;
}
.nsp-step h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.nsp-step p { margin: 0; color: var(--nsp-muted); font-size: 15px; letter-spacing: -.005em; line-height: 1.6; }

/* Calculator */
.nsp-calc {
	width: calc(100% - 48px);
	max-width: 1160px; margin: 24px auto;
	background: var(--nsp-surface);
	border: 1px solid var(--nsp-hairline);
	border-radius: var(--nsp-radius-lg);
	padding: 64px 48px;
	position: relative; overflow: hidden;
	box-shadow: 0 30px 60px -30px rgba(15,23,42,.08);
}
.nsp-calc::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(99,102,241,.08), transparent 60%);
	pointer-events: none;
}
.nsp-calc__inner {
	position: relative; z-index: 1;
	max-width: 1080px; margin: 0 auto;
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 56px; align-items: center;
}
.nsp-calc__left h2 {
	margin: 0 0 14px;
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 700; color: var(--nsp-text);
	letter-spacing: -.032em; line-height: 1.06;
}
.nsp-calc__left p { margin: 0; font-size: 16px; color: var(--nsp-muted); letter-spacing: -.005em; line-height: 1.6; }
.nsp-calc .nsp-eyebrow--light { color: var(--nsp-primary); }
.nsp-calc__right {
	background: var(--nsp-surface-2);
	border: 1px solid var(--nsp-hairline);
	border-radius: 20px;
	padding: 32px;
}
.nsp-calc__result { margin-bottom: 28px; }
.nsp-calc__label {
	display: block; font-size: 11.5px;
	color: var(--nsp-muted);
	margin-bottom: 12px;
	text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
}
.nsp-calc__value {
	font-size: 52px; font-weight: 700;
	background: var(--nsp-accent-grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -.036em; line-height: 1;
	font-variant-numeric: tabular-nums;
}
.nsp-calc__slider span { display: block; font-size: 13.5px; margin-bottom: 14px; color: var(--nsp-muted); letter-spacing: -.005em; }
.nsp-calc__slider b { font-weight: 600; color: var(--nsp-text); font-variant-numeric: tabular-nums; }
.nsp-calc__slider input[type="range"] {
	width: 100%; height: 6px;
	-webkit-appearance: none; appearance: none;
	background: rgba(99,102,241,.16);
	border-radius: 999px; outline: 0;
}
.nsp-calc__slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 22px; height: 22px;
	background: #fff; border-radius: 50%;
	cursor: pointer;
	border: 2px solid var(--nsp-primary);
	box-shadow: 0 4px 12px rgba(99,102,241,.28);
	transition: transform .18s var(--nsp-spring);
}
.nsp-calc__slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.nsp-calc__slider input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; background: #fff; border: 2px solid var(--nsp-primary); border-radius: 50%; cursor: pointer; box-shadow: 0 4px 12px rgba(99,102,241,.28); }

/* Features */
.nsp-features { max-width: 1080px; margin: 0 auto; padding: 96px 24px 96px; }
.nsp-features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.nsp-feature {
	background: var(--nsp-surface);
	border: 1px solid var(--nsp-hairline);
	border-radius: var(--nsp-radius-lg);
	padding: 32px;
	transition: border-color .3s var(--nsp-ease), box-shadow .3s var(--nsp-ease);
}
.nsp-feature:hover {
	border-color: rgba(99,102,241,.25);
	box-shadow: 0 18px 40px -20px rgba(99,102,241,.18);
}
.nsp-feature__icon {
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--nsp-primary-container);
	color: var(--nsp-primary);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 22px;
}
.nsp-feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.nsp-feature p { margin: 0; color: var(--nsp-muted); font-size: 14.5px; line-height: 1.6; letter-spacing: -.005em; }

/* FAQ */
.nsp-faq { max-width: 780px; margin: 0 auto; padding: 96px 24px 96px; }
.nsp-faq__grid { display: flex; flex-direction: column; gap: 10px; }
.nsp-faq__item {
	background: var(--nsp-surface);
	border: 1px solid var(--nsp-hairline);
	border-radius: 16px;
	padding: 22px 26px;
	transition: border-color .25s var(--nsp-ease), box-shadow .25s var(--nsp-ease);
}
.nsp-faq__item[open] {
	border-color: rgba(99,102,241,.28);
	box-shadow: 0 14px 34px -10px rgba(99,102,241,.14);
}
.nsp-faq__item summary {
	font-weight: 600; font-size: 16px;
	cursor: pointer; list-style: none;
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	letter-spacing: -.015em;
}
.nsp-faq__item summary::-webkit-details-marker { display: none; }
.nsp-faq__item summary::after {
	content: "+"; font-size: 26px; color: var(--nsp-primary);
	font-weight: 300; transition: transform .3s var(--nsp-ease);
	line-height: 1;
}
.nsp-faq__item[open] summary::after { transform: rotate(45deg); }
.nsp-faq__item p { margin: 14px 0 0; color: var(--nsp-muted); font-size: 15px; line-height: 1.6; letter-spacing: -.005em; }

/* Bottom CTA */
.nsp-cta {
	width: calc(100% - 48px);
	max-width: 1160px; margin: 0 auto 96px;
	background: var(--nsp-surface);
	border: 1px solid var(--nsp-hairline);
	border-radius: var(--nsp-radius-lg);
	padding: 80px 32px;
	text-align: center;
	position: relative; overflow: hidden;
	box-shadow: 0 30px 60px -30px rgba(15,23,42,.1);
}
.nsp-cta::before {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(circle at 1px 1px, rgba(99,102,241,.14) 1px, transparent 0);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 70%);
	mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 70%);
	opacity: .55; pointer-events: none;
}
.nsp-cta__inner { position: relative; max-width: 600px; margin: 0 auto; }
.nsp-cta h2 {
	font-size: clamp(32px, 4vw, 46px);
	font-weight: 700; margin: 0 0 14px;
	color: var(--nsp-text);
	letter-spacing: -.036em; line-height: 1.04;
}
.nsp-cta p { margin: 0 0 32px; font-size: 17px; color: var(--nsp-muted); letter-spacing: -.008em; line-height: 1.55; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
	.nsp-grid--2-1, .nsp-grid--1-1 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.nsp-app { grid-template-columns: 1fr; }
	.nsp-sidebar { position: fixed; top: 0; left: -300px; width: 280px; transition: left .28s var(--nsp-ease); box-shadow: var(--nsp-e4); }
	.nsp-app.is-sidebar-open .nsp-sidebar { left: 0; }

	/* Sidebar backdrop */
	.nsp-app::before {
		content: ""; position: fixed; inset: 0;
		background: rgba(15,23,42,.35);
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);
		opacity: 0; pointer-events: none;
		transition: opacity .25s var(--nsp-ease);
		z-index: 19;
	}
	.nsp-app.is-sidebar-open::before { opacity: 1; pointer-events: auto; }

	.nsp-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	body.admin-bar .nsp-menu-toggle { top: 46px; }
	.nsp-main { padding: 76px 20px 60px; }
	body.admin-bar .nsp-main { padding-top: 92px; }
	.nsp-topbar__actions { flex: 1 1 100%; }
	.nsp-topbar__actions .nsp-ref-pill { width: 100%; justify-content: flex-start; }
	.nsp-topbar__actions .nsp-ref-pill__text { flex: 1; min-width: 0; }

	.nsp-hero__inner { grid-template-columns: 1fr; gap: 48px; }
	.nsp-stats { grid-template-columns: repeat(2, 1fr); }
	.nsp-stat + .nsp-stat::before { display: none; }
	.nsp-steps, .nsp-features__grid { grid-template-columns: 1fr; }
	.nsp-calc__inner { grid-template-columns: 1fr; gap: 32px; }
	.nsp-calc { padding: 48px 28px; }
	.nsp-donut { flex-direction: column; align-items: stretch; gap: 20px; }
	.nsp-donut svg { align-self: center; }
}

@media (max-width: 782px) {
	body.admin-bar .nsp-menu-toggle { top: 60px; }
	body.admin-bar .nsp-main { padding-top: 106px; }
}

@media (max-width: 640px) {
	.nsp-main { padding: 74px 16px 56px; max-width: 100%; }

	/* Topbar: tighter, title scales down, menu toggle gets clear space */
	.nsp-topbar { gap: 14px; margin-bottom: 20px; }
	.nsp-topbar > div:first-child { min-width: 0; flex: 1 1 auto; }
	.nsp-topbar__title { font-size: 24px; letter-spacing: -.024em; }
	.nsp-topbar__sub { font-size: 13px; margin-top: 2px; }

	/* Ref pill — full width, code can truncate */
	.nsp-ref-pill { padding: 5px 14px 5px 5px; gap: 10px; }
	.nsp-ref-pill__glyph { width: 32px; height: 32px; }
	.nsp-ref-pill__code { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 58vw; }

	/* Grids / gaps */
	.nsp-kpis { gap: 12px; grid-template-columns: 1fr; }
	.nsp-grid { gap: 14px; }

	/* Cards */
	.nsp-card { padding: 20px 18px; border-radius: 18px; }
	.nsp-card--accent { padding: 22px 18px; }
	.nsp-card__head { margin-bottom: 16px; gap: 12px; }
	.nsp-card__head h2 { font-size: 17px; }
	.nsp-card__desc { font-size: 12.5px; }

	/* KPIs */
	.nsp-kpi { padding: 18px; border-radius: 18px; }
	.nsp-kpi__head { margin-bottom: 10px; }
	.nsp-kpi__value { font-size: 28px; }
	.nsp-kpi--hero .nsp-kpi__value { font-size: 32px; }
	.nsp-card--accent .nsp-kpi__value { font-size: 32px; }
	.nsp-kpi__cta { margin-top: 14px; padding: 9px 14px; font-size: 12.5px; }
	.nsp-kpi__hint { font-size: 11.5px; margin-top: 8px; }

	/* Onboarding */
	.nsp-onboarding { padding: 18px 16px; border-radius: 18px; margin-bottom: 18px; }
	.nsp-onboarding__head { gap: 12px; margin-bottom: 12px; }
	.nsp-onboarding__emoji { font-size: 22px; }
	.nsp-onboarding__head strong { font-size: 15px; }
	.nsp-onboarding__head p { font-size: 12.5px; }
	.nsp-onboarding__steps { gap: 10px; }
	.nsp-onboarding__steps li { padding: 12px 14px; }
	.nsp-onboarding__steps li strong { font-size: 13.5px; }
	.nsp-onboarding__steps li small { font-size: 12px; }
	.nsp-onboarding__steps li .nsp-btn--sm { margin-top: 10px; padding: 9px 16px; font-size: 12.5px; }

	/* Charts */
	.nsp-linechart { height: 220px; }
	.nsp-chart-legend { font-size: 11.5px; gap: 12px; }
	.nsp-donut svg { width: 150px; height: 150px; }
	.nsp-donut__total strong { font-size: 22px; }

	/* Heatmap */
	.nsp-heatmap { margin: -4px -4px 0; padding: 0 4px 8px; }
	.nsp-heatmap__row,
	.nsp-heatmap__hours { grid-template-columns: 32px repeat(24, minmax(12px, 1fr)); gap: 2px; }
	.nsp-heatmap__cell { height: 18px; border-radius: 4px; }
	.nsp-heatmap__day { font-size: 10px; }

	/* Achievements */
	.nsp-badges { grid-template-columns: 1fr; gap: 10px; }
	.nsp-badge { padding: 12px; }

	/* Top list */
	.nsp-top li { padding: 11px 0; gap: 10px; }
	.nsp-top a { font-size: 13.5px; }

	/* Tables */
	.nsp-table th, .nsp-table td { padding: 12px 10px; font-size: 13px; }
	.nsp-table th { font-size: 10.5px; }
	.nsp-table__title { font-size: 13.5px; max-width: 180px; }
	.nsp-table--articles .nsp-col-num,
	.nsp-table--articles .nsp-col-action { padding-left: 6px; padding-right: 6px; }

	/* Compact share button inside tables — keep 44px touch target */
	.nsp-share--compact .nsp-share__copy {
		padding: 9px 12px;
		font-size: 12px;
		min-height: 36px;
	}
	.nsp-share--compact .nsp-share__copy svg { width: 12px; height: 12px; }

	/* Forms */
	.nsp-field input, .nsp-field select, .nsp-field textarea { padding: 12px 13px; font-size: 14px; }
	.nsp-field > span { font-size: 12.5px; }
	.nsp-form { gap: 14px; }
	.nsp-segmented label { font-size: 13px; padding: 10px 8px; }

	/* Billing summary / pre */
	.nsp-billing-summary { padding: 12px 14px; }
	.nsp-billing-summary pre { font-size: 12.5px; }

	/* Alerts */
	.nsp-alert { padding: 12px 14px; font-size: 13px; }

	/* Activity */
	.nsp-activity__item { gap: 12px; padding: 12px 0; align-items: flex-start; }
	.nsp-activity__body { overflow: hidden; }
	.nsp-activity__body strong { white-space: normal; font-size: 13.5px; line-height: 1.3; }
	.nsp-activity__meta { font-size: 11.5px; display: block; margin-top: 2px; }
	.nsp-activity__item .nsp-chip { flex-shrink: 0; font-size: 10.5px; padding: 3px 8px; }

	/* Pager — stacked, equal-width buttons */
	.nsp-pager { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 14px; }
	.nsp-pager__info { text-align: center; }
	.nsp-pager__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.nsp-pager__btns > * { text-align: center; justify-content: center; }

	/* Sort form — label hidden, select full width inside card head */
	.nsp-card__head .nsp-sort-form { width: 100%; justify-content: space-between; }
	.nsp-sort-form__label { display: none; }
	.nsp-select { flex: 1; }

	/* Sidebar — wider drawer on phones */
	.nsp-sidebar { width: 86vw; max-width: 320px; left: -90vw; padding: 22px 14px; }
	.nsp-sidebar__user span { max-width: 100%; }

	/* Menu toggle stays clearly visible */
	.nsp-menu-toggle { top: 12px; left: 12px; }

	/* Link builder */
	.nsp-builder__qr { flex-direction: column; align-items: flex-start; text-align: left; padding: 14px; }
	.nsp-builder__qr-img { width: 140px; height: 140px; align-self: center; }

	/* Share (general) — ensure copy button stays on its own row when needed */
	.nsp-share__copy { padding: 11px 16px; min-height: 42px; }

	/* Status chip readability in table */
	.nsp-status { font-size: 10.5px; padding: 3px 8px; }

	/* Welcome banner */
	.nsp-banner { padding: 16px 18px; gap: 12px; border-radius: 18px; }
	.nsp-banner__emoji { font-size: 26px; }
}

@media (max-width: 480px) {
	.nsp-hero { padding: 72px 20px 96px; }
	.nsp-stats { grid-template-columns: 1fr; }
	.nsp-main { padding: 70px 14px 44px; }
	.nsp-calc { padding: 48px 28px; border-radius: 24px; }
	.nsp-cta { padding: 56px 24px; border-radius: 24px; }

	.nsp-topbar__title { font-size: 22px; }
	.nsp-topbar__sub { font-size: 12.5px; }

	.nsp-card { padding: 18px 14px; border-radius: 16px; }
	.nsp-kpi { padding: 16px; border-radius: 16px; }
	.nsp-kpi__value { font-size: 26px; }
	.nsp-kpi--hero .nsp-kpi__value { font-size: 30px; }
	.nsp-card--accent .nsp-kpi__value { font-size: 30px; }
	.nsp-kpi__cta { padding: 9px 12px; font-size: 12px; }

	.nsp-onboarding { padding: 16px 14px; }
	.nsp-onboarding__emoji { font-size: 20px; }

	.nsp-ref-pill__label { font-size: 9px; letter-spacing: .1em; }
	.nsp-ref-pill__code { font-size: 13px; }

	.nsp-linechart { height: 200px; }

	/* Heatmap: collapse hour labels to every 6 for readability */
	.nsp-heatmap__row,
	.nsp-heatmap__hours { grid-template-columns: 28px repeat(24, minmax(10px, 1fr)); gap: 2px; }
	.nsp-heatmap__cell { height: 16px; border-radius: 3px; }

	.nsp-table__title { max-width: 140px; }

	/* Smaller gap between card and content on very small screens */
	.nsp-kpis { margin-bottom: 14px; }
	.nsp-grid { margin-bottom: 14px; }
}

@media (max-width: 360px) {
	.nsp-main { padding: 68px 12px 40px; }
	.nsp-card { padding: 16px 12px; }
	.nsp-kpi { padding: 14px; }
	.nsp-topbar__title { font-size: 20px; }
	.nsp-kpi__value { font-size: 24px; }
	.nsp-ref-pill__code { font-size: 12px; max-width: 48vw; }
}

/* Lock body scroll when the sidebar drawer is open on mobile */
@media (max-width: 900px) {
	body:has(.nsp-app.is-sidebar-open) { overflow: hidden; }
}

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