/* ==========================================================================
   Niccodome Partner Network — app stylesheet
   One token set; light and dark; no external assets.
   Scope: everything lives under .ncp-app so the theme's own CSS is untouched.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
.ncp-app {
	--ncp-plum: #321847;
	--ncp-purple: #4b276d;
	--ncp-gold: #c9a24a;
	--ncp-gold-soft: rgba(201, 162, 74, .14);
	--ncp-good: #15803d;
	--ncp-good-soft: rgba(21, 128, 61, .12);
	--ncp-warn: #b45309;
	--ncp-warn-soft: rgba(180, 83, 9, .12);
	--ncp-bad: #b91c1c;
	--ncp-bad-soft: rgba(185, 28, 28, .1);
	--ncp-info: #1d4ed8;
	--ncp-info-soft: rgba(29, 78, 216, .1);

	--ncp-bg: #f6f6f9;
	--ncp-surface: #ffffff;
	--ncp-surface-2: #f0f0f5;
	--ncp-surface-3: #e7e7ee;
	--ncp-text: #16182b;
	--ncp-text-2: #5c6071;
	--ncp-text-3: #8d91a2;
	--ncp-line: rgba(22, 24, 43, .08);
	--ncp-line-strong: rgba(22, 24, 43, .16);
	--ncp-on-primary: #ffffff;
	--ncp-primary: var(--ncp-plum);
	--ncp-primary-hover: #3f1f58;
	--ncp-ring: rgba(75, 39, 109, .35);

	--ncp-skel: #ececf2;
	--ncp-skel-hi: rgba(255, 255, 255, .7);

	--ncp-shadow-sm: 0 1px 2px rgba(22, 24, 43, .05);
	--ncp-shadow-md: 0 8px 24px rgba(22, 24, 43, .07);
	--ncp-shadow-lg: 0 24px 60px rgba(22, 24, 43, .14);

	--ncp-r-sm: 10px;
	--ncp-r-md: 16px;
	--ncp-r-lg: 24px;
	--ncp-r-pill: 999px;

	--ncp-s1: 4px;
	--ncp-s2: 8px;
	--ncp-s3: 12px;
	--ncp-s4: 16px;
	--ncp-s5: 24px;
	--ncp-s6: 32px;
	--ncp-s7: 48px;

	--ncp-fast: 150ms;
	--ncp-normal: 240ms;
	--ncp-slow: 380ms;
	--ncp-ease: cubic-bezier(.2, .7, .2, 1);

	--ncp-font: var(--font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	--ncp-font-display: var(--font-display, var(--ncp-font));
	--ncp-side-w: 264px;
	--ncp-top-h: 64px;
	--ncp-tab-h: 64px;

	color: var(--ncp-text);
	font-family: var(--ncp-font);
	font-feature-settings: "tnum" 1, "cv11" 1;
	-webkit-font-smoothing: antialiased;
}

html.dark .ncp-app {
	--ncp-bg: #0f111a;
	--ncp-surface: #161925;
	--ncp-surface-2: #1d2130;
	--ncp-surface-3: #262b3c;
	--ncp-text: #eef0f6;
	--ncp-text-2: #a6abbd;
	--ncp-text-3: #6f7488;
	--ncp-line: rgba(238, 240, 246, .08);
	--ncp-line-strong: rgba(238, 240, 246, .16);
	--ncp-primary: #c9a24a;
	--ncp-primary-hover: #d9b55f;
	--ncp-on-primary: #1a1206;
	--ncp-ring: rgba(201, 162, 74, .4);
	--ncp-gold-soft: rgba(201, 162, 74, .18);
	--ncp-good: #4ade80;
	--ncp-good-soft: rgba(74, 222, 128, .14);
	--ncp-warn: #fbbf24;
	--ncp-warn-soft: rgba(251, 191, 36, .14);
	--ncp-bad: #f87171;
	--ncp-bad-soft: rgba(248, 113, 113, .14);
	--ncp-info: #93c5fd;
	--ncp-info-soft: rgba(147, 197, 253, .14);
	--ncp-skel: #222638;
	--ncp-skel-hi: rgba(255, 255, 255, .06);
	--ncp-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
	--ncp-shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
	--ncp-shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
.ncp-body { margin: 0; background: var(--ncp-bg); }
html.dark .ncp-body { background: #0f111a; }
.ncp-app *, .ncp-app *::before, .ncp-app *::after { box-sizing: border-box; }
.ncp-app [hidden] { display: none !important; }
.ncp-app a { color: inherit; }
.ncp-app button { font: inherit; }
.ncp-app h1, .ncp-app h2, .ncp-app h3, .ncp-app h4 { font-family: var(--ncp-font-display); margin: 0; line-height: 1.15; letter-spacing: -.015em; }
.ncp-app p { margin: 0; }
.ncp-app :focus-visible { outline: 2px solid var(--ncp-ring); outline-offset: 2px; border-radius: var(--ncp-r-sm); }
.ncp-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--ncp-primary); color: var(--ncp-on-primary); border-radius: var(--ncp-r-sm); }
.ncp-skip:focus { left: 8px; }
.ncp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ncp-muted { color: var(--ncp-text-2); }
.ncp-small { font-size: 12px; color: var(--ncp-text-3); }
.ncp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; letter-spacing: .04em; }
.ncp-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ncp-gold); margin-bottom: var(--ncp-s2); }
.ncp-num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Shell: sidebar + main + mobile tab bar
   -------------------------------------------------------------------------- */
.ncp-shell { display: grid; grid-template-columns: var(--ncp-side-w) 1fr; min-height: 100vh; min-height: 100dvh; background: var(--ncp-bg); }

.ncp-side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--ncp-surface); border-right: 1px solid var(--ncp-line); padding: var(--ncp-s5) var(--ncp-s4); gap: var(--ncp-s5); z-index: 30; }
.ncp-side__brand { display: flex; align-items: center; justify-content: space-between; gap: var(--ncp-s3); }
.ncp-iconbtn.ncp-side__close { display: none; }
.ncp-brand { display: flex; align-items: center; gap: var(--ncp-s3); text-decoration: none; min-width: 0; }
.ncp-brand__mark { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 13px; letter-spacing: .04em; color: #1a1206; background: linear-gradient(135deg, #f1dc9a 0%, var(--ncp-gold) 55%, #9c7a2c 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px rgba(201,162,74,.3); }
.ncp-brand__text { display: flex; flex-direction: column; min-width: 0; }
.ncp-brand__text strong { font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncp-brand__text small { font-size: 11px; color: var(--ncp-text-3); }

.ncp-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.ncp-nav__group { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ncp-text-3); padding: var(--ncp-s4) var(--ncp-s3) var(--ncp-s1); }
.ncp-nav__item { display: flex; align-items: center; gap: var(--ncp-s3); padding: 10px var(--ncp-s3); border-radius: var(--ncp-r-sm); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ncp-text-2); position: relative; transition: background var(--ncp-fast) var(--ncp-ease), color var(--ncp-fast) var(--ncp-ease), transform var(--ncp-fast) var(--ncp-ease); }
.ncp-nav__item svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.ncp-nav__item:hover { background: var(--ncp-surface-2); color: var(--ncp-text); }
.ncp-nav__item:active { transform: scale(.98); }
.ncp-nav__item.is-active { background: var(--ncp-gold-soft); color: var(--ncp-text); }
.ncp-nav__item.is-active::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--ncp-gold); }
.ncp-nav__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--ncp-r-pill); background: var(--ncp-primary); color: var(--ncp-on-primary); font-size: 11px; font-weight: 800; display: grid; place-items: center; }

.ncp-side__foot { display: flex; align-items: center; gap: var(--ncp-s3); padding-top: var(--ncp-s4); border-top: 1px solid var(--ncp-line); }
.ncp-user { display: flex; align-items: center; gap: var(--ncp-s3); min-width: 0; flex: 1; }
.ncp-user img, .ncp-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--ncp-surface-3); flex: none; }
.ncp-user__meta { display: flex; flex-direction: column; min-width: 0; }
.ncp-user__meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncp-user__meta small { font-size: 11px; color: var(--ncp-text-3); }
.ncp-user__meta a { font-size: 11px; color: var(--ncp-text-3); text-decoration: none; }
.ncp-user__meta a:hover { color: var(--ncp-text); }

.ncp-main { min-width: 0; display: flex; flex-direction: column; }
.ncp-top { position: sticky; top: 0; z-index: 20; height: var(--ncp-top-h); display: flex; align-items: center; gap: var(--ncp-s3); padding: 0 var(--ncp-s6); background: color-mix(in srgb, var(--ncp-bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--ncp-line); }
.ncp-iconbtn.ncp-top__menu { display: none; }
.ncp-top__title { font-weight: 800; font-size: 15px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncp-top__actions { margin-left: auto; display: flex; align-items: center; gap: var(--ncp-s2); }
.ncp-content { padding: var(--ncp-s6); max-width: 1320px; width: 100%; margin: 0 auto; flex: 1; }
.ncp-content:focus { outline: none; }

.ncp-tabbar { display: none; }
.ncp-scrim { position: fixed; inset: 0; background: rgba(10, 8, 20, .45); z-index: 29; opacity: 0; transition: opacity var(--ncp-normal) var(--ncp-ease); }
.ncp-scrim.is-on { opacity: 1; }

/* Screen transitions */
.ncp-screen { animation: ncp-rise var(--ncp-slow) var(--ncp-ease) both; }
@keyframes ncp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ncp-stagger > * { animation: ncp-rise var(--ncp-slow) var(--ncp-ease) both; }
.ncp-stagger > *:nth-child(2) { animation-delay: 40ms; }
.ncp-stagger > *:nth-child(3) { animation-delay: 80ms; }
.ncp-stagger > *:nth-child(4) { animation-delay: 120ms; }
.ncp-stagger > *:nth-child(5) { animation-delay: 160ms; }
.ncp-stagger > *:nth-child(6) { animation-delay: 200ms; }

/* --------------------------------------------------------------------------
   Page header, sections, grids
   -------------------------------------------------------------------------- */
.ncp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ncp-s4); margin-bottom: var(--ncp-s5); flex-wrap: wrap; }
.ncp-head h1 { font-size: 26px; font-weight: 800; }
.ncp-head p { color: var(--ncp-text-2); margin-top: var(--ncp-s1); font-size: 14px; max-width: 60ch; }
.ncp-head__actions { display: flex; gap: var(--ncp-s2); flex-wrap: wrap; }
.ncp-section { margin-top: var(--ncp-s6); }
.ncp-section__title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ncp-s3); margin-bottom: var(--ncp-s3); }
.ncp-section__title h2 { font-size: 15px; font-weight: 800; }
.ncp-grid { display: grid; gap: var(--ncp-s4); }
.ncp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ncp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ncp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ncp-grid--side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.ncp-card { background: var(--ncp-surface); border: 1px solid var(--ncp-line); border-radius: var(--ncp-r-md); padding: var(--ncp-s5); box-shadow: var(--ncp-shadow-sm); transition: transform 220ms var(--ncp-ease), box-shadow 220ms var(--ncp-ease), border-color 220ms var(--ncp-ease); }
.ncp-card--hover:hover { transform: translateY(-3px); box-shadow: var(--ncp-shadow-md); }
.ncp-card--tight { padding: var(--ncp-s4); }
.ncp-card--dark { background: linear-gradient(135deg, #1b1030 0%, var(--ncp-plum) 60%, #4b276d 100%); color: #fff; border-color: transparent; }
.ncp-card--dark .ncp-eyebrow { color: #e7cf8a; }
.ncp-card--dark .ncp-muted { color: rgba(255, 255, 255, .72); }
.ncp-card--gold { background: linear-gradient(135deg, #fff8e6 0%, #fdf1cf 100%); border-color: rgba(201,162,74,.35); }
html.dark .ncp-card--gold { background: linear-gradient(135deg, #2a2412 0%, #1f1b10 100%); }
.ncp-card__title { font-size: 15px; font-weight: 800; margin-bottom: var(--ncp-s3); }

/* Stat */
.ncp-stat { display: flex; flex-direction: column; gap: 6px; min-height: 118px; }
.ncp-stat__label { font-size: 12px; font-weight: 700; color: var(--ncp-text-2); display: flex; align-items: center; gap: 6px; }
.ncp-stat__value { font-family: var(--ncp-font-display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-top: auto; }
.ncp-stat__sub { font-size: 12px; color: var(--ncp-text-3); }
.ncp-stat__sub b { color: var(--ncp-good); font-weight: 700; }
.ncp-stat__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ncp-gold-soft); color: var(--ncp-gold); margin-bottom: var(--ncp-s2); }
.ncp-stat__icon svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ncp-btn { --_bg: var(--ncp-surface-2); --_fg: var(--ncp-text); --_bd: transparent; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--ncp-r-pill); border: 1px solid var(--_bd); background: var(--_bg); color: var(--_fg); font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ncp-ease), background 180ms var(--ncp-ease), box-shadow 180ms var(--ncp-ease), border-color 180ms var(--ncp-ease), opacity 180ms; }
.ncp-btn svg { width: 16px; height: 16px; }
.ncp-btn:hover { background: var(--ncp-surface-3); }
.ncp-btn:active { transform: scale(.97); }
.ncp-btn:disabled, .ncp-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.ncp-btn--primary { --_bg: var(--ncp-primary); --_fg: var(--ncp-on-primary); box-shadow: 0 6px 18px rgba(50,24,71,.25); }
html.dark .ncp-btn--primary { box-shadow: 0 6px 18px rgba(201,162,74,.25); }
.ncp-btn--primary:hover { background: var(--ncp-primary-hover); }
.ncp-btn--ghost { --_bg: transparent; --_bd: var(--ncp-line-strong); }
.ncp-btn--ghost:hover { background: var(--ncp-surface-2); }
.ncp-btn--danger { --_bg: var(--ncp-bad-soft); --_fg: var(--ncp-bad); }
.ncp-btn--good { --_bg: var(--ncp-good-soft); --_fg: var(--ncp-good); }
.ncp-btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.ncp-btn--lg { height: 48px; padding: 0 24px; font-size: 15px; }
.ncp-btn--block { width: 100%; }
.ncp-btn__spin { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ncp-spin .7s linear infinite; }
.ncp-btn.is-loading .ncp-btn__label { opacity: 0; }
.ncp-btn.is-loading .ncp-btn__spin { display: block; position: absolute; }
.ncp-btn.is-loading { pointer-events: none; }
@keyframes ncp-spin { to { transform: rotate(360deg); } }
@keyframes ncp-pulse { 0% { box-shadow: 0 0 0 0 rgba(21,128,61,.45); } 70% { box-shadow: 0 0 0 8px rgba(21,128,61,0); } 100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); } }
.ncp-kpi { display: flex; align-items: baseline; gap: 10px; }
.ncp-kpi__v { font-family: var(--ncp-font-display); font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; transition: color var(--ncp-fast); }
.ncp-kpi__v.is-bump { color: var(--ncp-gold); }
.ncp-dtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--ncp-line); margin: 20px 0 16px; overflow-x: auto; scrollbar-width: none; }
.ncp-dtabs::-webkit-scrollbar { display: none; }
.ncp-dtab { position: relative; height: 40px; padding: 0 14px; border: 0; background: none; font-size: 13.5px; font-weight: 700; color: var(--ncp-text-2); cursor: pointer; white-space: nowrap; }
.ncp-dtab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ncp-gold); transform: scaleX(0); transition: transform var(--ncp-normal) var(--ncp-ease); }
.ncp-dtab.is-active { color: var(--ncp-text); }
.ncp-dtab.is-active::after { transform: scaleX(1); }
.ncp-stream { max-height: 520px; overflow: auto; }
.ncp-stream .ncp-row.is-new { animation: ncp-rise var(--ncp-slow) var(--ncp-ease) both; background: var(--ncp-gold-soft); }

.ncp-iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ncp-line); background: var(--ncp-surface); display: grid; place-items: center; cursor: pointer; color: var(--ncp-text-2); transition: background var(--ncp-fast), color var(--ncp-fast), transform var(--ncp-fast); }
.ncp-iconbtn:hover { background: var(--ncp-surface-2); color: var(--ncp-text); }
.ncp-iconbtn:active { transform: scale(.94); }
.ncp-ico-sun { display: none; }
html.dark .ncp-ico-sun { display: block; }
html.dark .ncp-ico-moon { display: none; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.ncp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ncp-field > span { font-size: 12.5px; font-weight: 700; color: var(--ncp-text-2); }
.ncp-field small { font-size: 11.5px; color: var(--ncp-text-3); }
.ncp-field--wide { grid-column: 1 / -1; }
.ncp-app input[type="text"], .ncp-app input[type="email"], .ncp-app input[type="password"], .ncp-app input[type="number"], .ncp-app input[type="tel"], .ncp-app input[type="date"], .ncp-app input[type="url"], .ncp-app input[type="search"], .ncp-app select, .ncp-app textarea {
	width: 100%; height: 44px; padding: 0 14px; font: inherit; font-size: 14px; color: var(--ncp-text); background: var(--ncp-surface); border: 1px solid var(--ncp-line-strong); border-radius: 12px; outline: none; transition: border-color var(--ncp-fast), box-shadow var(--ncp-fast), background var(--ncp-fast); -webkit-appearance: none; appearance: none;
}
.ncp-app textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.ncp-app select { background-image: linear-gradient(45deg, transparent 50%, var(--ncp-text-3) 50%), linear-gradient(135deg, var(--ncp-text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.ncp-app input:focus, .ncp-app select:focus, .ncp-app textarea:focus { border-color: var(--ncp-primary); box-shadow: 0 0 0 4px var(--ncp-ring); }
.ncp-app input::placeholder, .ncp-app textarea::placeholder { color: var(--ncp-text-3); }
.ncp-app input[aria-invalid="true"], .ncp-app select[aria-invalid="true"], .ncp-app textarea[aria-invalid="true"] { border-color: var(--ncp-bad); }
.ncp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ncp-text-2); cursor: pointer; }
.ncp-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ncp-primary); flex: none; }
.ncp-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ncp-s4); }
.ncp-form__error { color: var(--ncp-bad); font-size: 13px; font-weight: 600; }
.ncp-form__foot { display: flex; align-items: center; gap: var(--ncp-s4); flex-wrap: wrap; margin-top: var(--ncp-s4); }
.ncp-inline { display: flex; gap: var(--ncp-s2); align-items: center; flex-wrap: wrap; }

/* Toggle */
.ncp-toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.ncp-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ncp-toggle__track { width: 42px; height: 24px; border-radius: 24px; background: var(--ncp-surface-3); position: relative; transition: background var(--ncp-normal) var(--ncp-ease); flex: none; }
.ncp-toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--ncp-normal) var(--ncp-ease); }
.ncp-toggle input:checked + .ncp-toggle__track { background: var(--ncp-primary); }
.ncp-toggle input:checked + .ncp-toggle__track::after { transform: translateX(18px); }
.ncp-toggle input:focus-visible + .ncp-toggle__track { box-shadow: 0 0 0 4px var(--ncp-ring); }

/* Copy field */
.ncp-copy { display: flex; align-items: center; gap: 8px; background: var(--ncp-surface-2); border: 1px dashed var(--ncp-line-strong); border-radius: 12px; padding: 6px 6px 6px 14px; }
.ncp-copy code { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Badges, chips, tabs
   -------------------------------------------------------------------------- */
.ncp-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--ncp-r-pill); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; background: var(--ncp-surface-2); color: var(--ncp-text-2); white-space: nowrap; }
.ncp-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ncp-badge--good { background: var(--ncp-good-soft); color: var(--ncp-good); }
.ncp-badge--warn { background: var(--ncp-warn-soft); color: var(--ncp-warn); }
.ncp-badge--bad { background: var(--ncp-bad-soft); color: var(--ncp-bad); }
.ncp-badge--info { background: var(--ncp-info-soft); color: var(--ncp-info); }
.ncp-badge--gold { background: var(--ncp-gold-soft); color: #8a6b26; }
html.dark .ncp-badge--gold { color: var(--ncp-gold); }
.ncp-badge--plain::before { display: none; }

.ncp-tabs { display: flex; gap: 4px; padding: 4px; background: var(--ncp-surface-2); border-radius: var(--ncp-r-pill); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ncp-tabs::-webkit-scrollbar { display: none; }
.ncp-tab { height: 34px; padding: 0 14px; border-radius: var(--ncp-r-pill); border: 0; background: transparent; font-size: 13px; font-weight: 700; color: var(--ncp-text-2); cursor: pointer; white-space: nowrap; transition: background var(--ncp-normal) var(--ncp-ease), color var(--ncp-normal), box-shadow var(--ncp-normal); }
.ncp-tab.is-active { background: var(--ncp-surface); color: var(--ncp-text); box-shadow: var(--ncp-shadow-sm); }
.ncp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ncp-chip { height: 30px; padding: 0 12px; border-radius: var(--ncp-r-pill); border: 1px solid var(--ncp-line-strong); background: var(--ncp-surface); font-size: 12.5px; font-weight: 700; color: var(--ncp-text-2); cursor: pointer; transition: all var(--ncp-fast); }
.ncp-chip.is-active, .ncp-chip:hover { border-color: var(--ncp-primary); color: var(--ncp-text); background: var(--ncp-gold-soft); }

/* --------------------------------------------------------------------------
   Tables (responsive: stack on small screens)
   -------------------------------------------------------------------------- */
.ncp-tablewrap { background: var(--ncp-surface); border: 1px solid var(--ncp-line); border-radius: var(--ncp-r-md); overflow: hidden; overflow-x: auto; box-shadow: var(--ncp-shadow-sm); }
.ncp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ncp-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ncp-text-3); padding: 14px 16px; border-bottom: 1px solid var(--ncp-line); background: var(--ncp-surface); white-space: nowrap; }
.ncp-table td { padding: 14px 16px; border-bottom: 1px solid var(--ncp-line); vertical-align: middle; }
.ncp-table tbody tr { transition: background var(--ncp-fast); }
.ncp-table tbody tr:hover { background: var(--ncp-surface-2); }
.ncp-table tbody tr:last-child td { border-bottom: 0; }
.ncp-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ncp-table .is-actions { text-align: right; white-space: nowrap; }
.ncp-table tr.is-click { cursor: pointer; }
.ncp-cell-main { font-weight: 700; }
.ncp-cell-sub { font-size: 12px; color: var(--ncp-text-3); }
.ncp-toolbar { display: flex; gap: var(--ncp-s2); align-items: center; flex-wrap: wrap; margin-bottom: var(--ncp-s4); }
.ncp-toolbar .ncp-search { flex: 1; min-width: 200px; max-width: 360px; }
.ncp-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--ncp-s3); padding: 12px 16px; border-top: 1px solid var(--ncp-line); font-size: 12.5px; color: var(--ncp-text-3); }
.ncp-pager__btns { display: flex; gap: 6px; }

/* --------------------------------------------------------------------------
   Lists, feed, empty states
   -------------------------------------------------------------------------- */
.ncp-list { display: flex; flex-direction: column; }
.ncp-row { display: flex; align-items: center; gap: var(--ncp-s3); padding: 12px 0; border-bottom: 1px solid var(--ncp-line); }
.ncp-row:last-child { border-bottom: 0; }
.ncp-row__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ncp-surface-2); color: var(--ncp-text-2); flex: none; }
.ncp-row__icon svg { width: 16px; height: 16px; }
.ncp-row__body { flex: 1; min-width: 0; }
.ncp-row__body strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncp-row__body span { font-size: 12px; color: var(--ncp-text-3); }
.ncp-row__end { text-align: right; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ncp-row__end small { display: block; font-weight: 500; color: var(--ncp-text-3); font-size: 11.5px; }

.ncp-empty { text-align: center; padding: var(--ncp-s7) var(--ncp-s5); color: var(--ncp-text-2); }
.ncp-empty__art { width: 56px; height: 56px; margin: 0 auto var(--ncp-s4); border-radius: 18px; background: var(--ncp-gold-soft); color: var(--ncp-gold); display: grid; place-items: center; }
.ncp-empty__art svg { width: 24px; height: 24px; }
.ncp-empty h3 { font-size: 15px; margin-bottom: 6px; color: var(--ncp-text); }
.ncp-empty p { font-size: 13px; max-width: 40ch; margin: 0 auto; }
.ncp-empty .ncp-btn { margin-top: var(--ncp-s4); }

.ncp-notice { padding: 12px 14px; border-radius: 12px; font-size: 13px; background: var(--ncp-info-soft); color: var(--ncp-info); }
.ncp-notice--warn { background: var(--ncp-warn-soft); color: var(--ncp-warn); }
.ncp-notice--bad { background: var(--ncp-bad-soft); color: var(--ncp-bad); }
.ncp-notice--good { background: var(--ncp-good-soft); color: var(--ncp-good); }

/* Progress */
.ncp-bar { height: 8px; border-radius: 8px; background: var(--ncp-surface-3); overflow: hidden; }
.ncp-bar > span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--ncp-gold), #e2c372); transition: width var(--ncp-slow) var(--ncp-ease); }
.ncp-bar--good > span { background: var(--ncp-good); }
.ncp-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--ncp-gold) calc(var(--p) * 1%), var(--ncp-surface-3) 0); display: grid; place-items: center; flex: none; }
.ncp-ring::after { content: attr(data-label); width: 50px; height: 50px; border-radius: 50%; background: var(--ncp-surface); display: grid; place-items: center; font-size: 13px; font-weight: 800; }

/* Level steps */
.ncp-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ncp-level { padding: 10px 12px; border-radius: 12px; background: var(--ncp-surface-2); font-size: 12px; color: var(--ncp-text-3); }
.ncp-level strong { display: block; font-size: 12.5px; color: var(--ncp-text-2); }
.ncp-level.is-done { background: var(--ncp-good-soft); color: var(--ncp-good); }
.ncp-level.is-done strong { color: var(--ncp-good); }
.ncp-level.is-now { background: var(--ncp-gold-soft); color: var(--ncp-text-2); outline: 1px solid rgba(201,162,74,.5); }
.ncp-level.is-now strong { color: var(--ncp-text); }

/* --------------------------------------------------------------------------
   Chart (inline SVG)
   -------------------------------------------------------------------------- */
.ncp-chart { position: relative; width: 100%; height: 220px; }
.ncp-chart svg { width: 100%; height: 100%; overflow: visible; }
.ncp-chart .grid { stroke: var(--ncp-line); stroke-dasharray: 2 4; }
.ncp-chart .area { fill: url(#ncpArea); }
.ncp-chart .line { fill: none; stroke: var(--ncp-gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: ncp-draw 1.1s var(--ncp-ease) forwards; }
.ncp-chart .bar { fill: var(--ncp-purple); opacity: .35; transform-origin: bottom; animation: ncp-grow .6s var(--ncp-ease) both; }
html.dark .ncp-chart .bar { fill: #8b6cc1; }
.ncp-chart .dot { fill: var(--ncp-surface); stroke: var(--ncp-gold); stroke-width: 2; opacity: 0; transition: opacity var(--ncp-fast); }
.ncp-chart .lbl { font-size: 10px; fill: var(--ncp-text-3); font-family: var(--ncp-font); }
.ncp-chart__tip { position: absolute; pointer-events: none; transform: translate(-50%, -110%); background: var(--ncp-text); color: var(--ncp-bg); font-size: 11.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; transition: opacity var(--ncp-fast); }
.ncp-chart__tip.is-on { opacity: 1; }
.ncp-chart__legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ncp-text-3); margin-bottom: 8px; }
.ncp-chart__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
@keyframes ncp-draw { to { stroke-dashoffset: 0; } }
@keyframes ncp-grow { from { transform: scaleY(0); } }

/* --------------------------------------------------------------------------
   Modal / drawer / toasts
   -------------------------------------------------------------------------- */
.ncp-modal-root:empty { display: none; }
.ncp-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 8, 20, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: ncp-fade var(--ncp-normal) var(--ncp-ease) both; padding: 0; }
.ncp-overlay.is-closing { animation: ncp-fade var(--ncp-normal) var(--ncp-ease) reverse both; }
.ncp-dialog { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: var(--ncp-surface); border-radius: var(--ncp-r-lg) var(--ncp-r-lg) 0 0; padding: var(--ncp-s5); box-shadow: var(--ncp-shadow-lg); animation: ncp-up var(--ncp-slow) var(--ncp-ease) both; }
.ncp-overlay.is-closing .ncp-dialog { animation: ncp-up var(--ncp-normal) var(--ncp-ease) reverse both; }
.ncp-dialog--wide { max-width: 860px; }
.ncp-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--ncp-s3); margin-bottom: var(--ncp-s4); }
.ncp-dialog__head h2 { font-size: 18px; font-weight: 800; }
.ncp-dialog__body { display: flex; flex-direction: column; gap: var(--ncp-s4); }
.ncp-dialog__foot { display: flex; justify-content: flex-end; gap: var(--ncp-s2); margin-top: var(--ncp-s5); }
.ncp-overlay--side { align-items: stretch; justify-content: flex-end; }
.ncp-overlay--side .ncp-dialog { max-width: 520px; max-height: none; height: 100%; border-radius: 0; animation: ncp-slide var(--ncp-slow) var(--ncp-ease) both; }
.ncp-overlay--side.is-closing .ncp-dialog { animation: ncp-slide var(--ncp-normal) var(--ncp-ease) reverse both; }
@keyframes ncp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ncp-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ncp-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.ncp-toasts { position: fixed; z-index: 70; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.ncp-toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--ncp-text); color: var(--ncp-bg); font-size: 13.5px; font-weight: 600; box-shadow: var(--ncp-shadow-lg); animation: ncp-up var(--ncp-normal) var(--ncp-ease) both; max-width: 360px; }
.ncp-toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ncp-gold); flex: none; }
.ncp-toast--good::before { background: #4ade80; }
.ncp-toast--bad::before { background: #f87171; }
.ncp-toast.is-leaving { animation: ncp-fade var(--ncp-normal) reverse both; }

/* --------------------------------------------------------------------------
   Skeletons
   -------------------------------------------------------------------------- */
.ncp-skel { position: relative; overflow: hidden; background: var(--ncp-skel); border-radius: 10px; }
.ncp-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--ncp-skel-hi), transparent); animation: ncp-shimmer 1.5s infinite; }
@keyframes ncp-shimmer { 100% { transform: translateX(100%); } }
.ncp-skel--text { height: 12px; width: 60%; }
.ncp-skel--title { height: 22px; width: 40%; border-radius: 8px; }
.ncp-skel--stat { height: 118px; border-radius: var(--ncp-r-md); }
.ncp-skel--card { height: 180px; border-radius: var(--ncp-r-md); }
.ncp-skel--chart { height: 260px; border-radius: var(--ncp-r-md); }
.ncp-skel--row { height: 52px; border-radius: 0; }
.ncp-skel--row + .ncp-skel--row { border-top: 1px solid var(--ncp-line); }
.ncp-skel--avatar { width: 34px; height: 34px; border-radius: 50%; }
.ncp-skel--btn { height: 40px; width: 120px; border-radius: var(--ncp-r-pill); }
.ncp-skel-stack { display: flex; flex-direction: column; gap: 10px; }
.ncp-swap { animation: ncp-fade var(--ncp-normal) var(--ncp-ease) both; }

/* --------------------------------------------------------------------------
   Join page (inside the theme)
   -------------------------------------------------------------------------- */
.ncp-join { display: flex; flex-direction: column; gap: var(--ncp-s7); padding: var(--ncp-s4) 0 var(--ncp-s6); }
.ncp-hero { position: relative; overflow: hidden; border-radius: var(--ncp-r-lg); padding: clamp(32px, 6vw, 72px); background: radial-gradient(1200px 500px at 10% -10%, #4b276d 0%, #1b1030 55%, #0f0a1a 100%); color: #fff; display: flex; flex-direction: column; gap: var(--ncp-s4); align-items: flex-start; }
.ncp-hero__glow { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,74,.5), transparent 65%); filter: blur(20px); pointer-events: none; }
.ncp-hero__title { font-size: clamp(30px, 5vw, 56px); font-weight: 900; max-width: 14ch; line-height: 1.02; }
.ncp-hero__text { max-width: 58ch; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.6; }
.ncp-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.ncp-hero__facts span { padding: 6px 12px; border-radius: var(--ncp-r-pill); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); font-size: 12px; font-weight: 700; }
.ncp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ncp-s4); }
.ncp-step { background: var(--ncp-surface); border: 1px solid var(--ncp-line); border-radius: var(--ncp-r-md); padding: var(--ncp-s5); box-shadow: var(--ncp-shadow-sm); transition: transform 220ms var(--ncp-ease), box-shadow 220ms var(--ncp-ease); }
.ncp-step:hover { transform: translateY(-3px); box-shadow: var(--ncp-shadow-md); }
.ncp-step__n { font-family: var(--ncp-font-display); font-size: 28px; font-weight: 900; color: var(--ncp-gold); }
.ncp-step h3 { font-size: 16px; margin: var(--ncp-s3) 0 var(--ncp-s2); }
.ncp-step p { font-size: 13.5px; color: var(--ncp-text-2); line-height: 1.55; }
.ncp-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ncp-s4); }
.ncp-panel { background: var(--ncp-surface); border: 1px solid var(--ncp-line); border-radius: var(--ncp-r-lg); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: var(--ncp-s3); }
.ncp-panel h2 { font-size: 26px; font-weight: 800; }
.ncp-panel p { font-size: 14px; color: var(--ncp-text-2); line-height: 1.6; }
.ncp-panel--dark { background: var(--ncp-plum); color: #fff; border-color: transparent; }
.ncp-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ncp-rules li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; }
.ncp-rules li::before { content: "✓"; color: var(--ncp-gold); font-weight: 900; flex: none; }
.ncp-joinform { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: var(--ncp-s6); align-items: start; scroll-margin-top: 100px; }
.ncp-joinform__intro h2 { font-size: 28px; font-weight: 800; margin-bottom: var(--ncp-s3); }
.ncp-joinform__intro p { color: var(--ncp-text-2); font-size: 14px; line-height: 1.6; }
.ncp-joinform .ncp-form { background: var(--ncp-surface); border: 1px solid var(--ncp-line); border-radius: var(--ncp-r-lg); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: var(--ncp-s4); box-shadow: var(--ncp-shadow-sm); }
.ncp-joinform__done { grid-column: 2; background: var(--ncp-surface); border: 1px solid var(--ncp-line); border-radius: var(--ncp-r-lg); padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--ncp-s3); animation: ncp-up var(--ncp-slow) var(--ncp-ease) both; }
.ncp-done__tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ncp-good-soft); color: var(--ncp-good); font-size: 28px; font-weight: 900; display: grid; place-items: center; }
.ncp-joinform__done h3 { font-size: 22px; }
.ncp-joinform__done p { color: var(--ncp-text-2); max-width: 44ch; }
.ncp-disclaimer { font-size: 12px; color: var(--ncp-text-3); text-align: center; max-width: 80ch; margin: 0 auto; }

/* Short hero + how-it-works + wizard */
.ncp-hero--short { padding: clamp(28px, 5vw, 56px); gap: var(--ncp-s3); }
.ncp-hero--short .ncp-hero__title { font-size: clamp(28px, 4.5vw, 46px); }
.ncp-hero--short .ncp-btn { margin-top: var(--ncp-s2); }
.ncp-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ncp-s3); }
.ncp-how__step { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--ncp-surface); border: 1px solid var(--ncp-line); border-radius: var(--ncp-r-md); padding: 16px 18px; }
.ncp-how__n { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #1a1206; background: linear-gradient(135deg, #f1dc9a, var(--ncp-gold)); }
.ncp-how__step strong { font-size: 14px; }
.ncp-how__step > span:last-child { font-size: 12.5px; color: var(--ncp-text-2); }
.ncp-wizard { max-width: 560px; margin: 0 auto; width: 100%; scroll-margin-top: 90px; }
.ncp-wizard__form { background: var(--ncp-surface); border: 1px solid var(--ncp-line); border-radius: var(--ncp-r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--ncp-shadow-sm); }
.ncp-wizard__steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 6px; }
.ncp-wizard__steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ncp-text-3); padding-bottom: 10px; border-bottom: 2px solid var(--ncp-line); transition: color var(--ncp-normal), border-color var(--ncp-normal); }
.ncp-wizard__steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--ncp-surface-2); }
.ncp-wizard__steps li.is-active { color: var(--ncp-text); border-color: var(--ncp-primary); }
.ncp-wizard__steps li.is-active span { background: var(--ncp-primary); color: var(--ncp-on-primary); }
.ncp-wizard__steps li.is-done { color: var(--ncp-good); border-color: var(--ncp-good); }
.ncp-wizard__steps li.is-done span { background: var(--ncp-good-soft); color: var(--ncp-good); }
.ncp-wizard__pane { display: none; flex-direction: column; gap: var(--ncp-s4); }
.ncp-wizard__pane.is-active { display: flex; animation: ncp-rise var(--ncp-normal) var(--ncp-ease) both; }
.ncp-wizard__pane h2 { font-size: 20px; font-weight: 800; }
.ncp-wizard__summary { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--ncp-surface-2); font-size: 13.5px; }
.ncp-wizard__summary div { display: flex; justify-content: space-between; gap: 12px; }
.ncp-wizard__summary span { color: var(--ncp-text-2); }
.ncp-wizard__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: var(--ncp-s5); }
.ncp-wizard__nav [data-step-next], .ncp-wizard__nav [data-step-submit] { margin-left: auto; }
.ncp-wizard .ncp-form__error { margin-top: var(--ncp-s3); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.ncp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ncp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ncp-grid--side { grid-template-columns: 1fr; }
	.ncp-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	/* Tablet: sidebar becomes a drawer, top bar gets the menu button. */
	.ncp-shell { grid-template-columns: 1fr; }
	.ncp-side { position: fixed; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); transform: translateX(-100%); transition: transform var(--ncp-slow) var(--ncp-ease); box-shadow: var(--ncp-shadow-lg); }
	.ncp-side.is-open { transform: none; }
	.ncp-iconbtn.ncp-side__close { display: grid; }
	.ncp-iconbtn.ncp-top__menu { display: grid; }
	.ncp-top { padding: 0 var(--ncp-s4); }
	.ncp-content { padding: var(--ncp-s4); }
	.ncp-head h1 { font-size: 22px; }
	.ncp-two, .ncp-joinform { grid-template-columns: 1fr; }
	.ncp-joinform__done { grid-column: auto; }
	.ncp-levels { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	/* Phone: app shell — compact top bar, bottom tab bar, stacked tables, sheets. */
	.ncp-shell { padding-bottom: calc(var(--ncp-tab-h) + env(safe-area-inset-bottom, 0px)); }
	.ncp-top { height: 56px; padding: 0 12px; background: var(--ncp-bg); }
	.ncp-top__title { font-size: 17px; }
	.ncp-content { padding: 14px 14px 24px; }
	.ncp-head { margin-bottom: 14px; }
	.ncp-head h1 { font-size: 24px; }
	.ncp-head p { font-size: 13px; }
	.ncp-card { padding: 16px; border-radius: 18px; }
	.ncp-section { margin-top: 22px; }
	.ncp-btn { height: 44px; }
	.ncp-btn--sm { height: 36px; }
	.ncp-iconbtn { width: 40px; height: 40px; }
	.ncp-tabs { width: 100%; }
	.ncp-tab { flex: 1; text-align: center; }
	.ncp-toolbar .ncp-search { max-width: none; }
	.ncp-how { grid-template-columns: 1fr; }
	.ncp-wizard__steps li { font-size: 0; gap: 0; justify-content: center; }
	.ncp-wizard__steps li span { font-size: 11px; }
	.ncp-wizard__form { border-radius: 18px; }
	.ncp-levels { grid-template-columns: 1fr 1fr; }
	.ncp-tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); height: var(--ncp-tab-h); z-index: 40; background: color-mix(in srgb, var(--ncp-surface) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--ncp-line); border-radius: 22px; box-shadow: var(--ncp-shadow-lg); padding: 6px; gap: 2px; }
	.ncp-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 16px; text-decoration: none; font-size: 10px; font-weight: 700; color: var(--ncp-text-3); transition: background var(--ncp-normal) var(--ncp-ease), color var(--ncp-normal); }
	.ncp-tabbar a svg { width: 20px; height: 20px; }
	.ncp-tabbar a.is-active { background: var(--ncp-gold-soft); color: var(--ncp-text); }
	.ncp-iconbtn.ncp-top__menu { display: grid; }
	.ncp-grid--4, .ncp-grid--3, .ncp-grid--2 { grid-template-columns: 1fr 1fr; }
	.ncp-grid--2.ncp-grid--stack, .ncp-form__grid { grid-template-columns: 1fr; }
	.ncp-stat { min-height: 104px; }
	.ncp-stat__value { font-size: 24px; }
	.ncp-steps { grid-template-columns: 1fr; }
	.ncp-head { flex-direction: column; align-items: flex-start; }
	.ncp-toasts { left: 12px; right: 12px; bottom: calc(var(--ncp-tab-h) + 22px); }
	.ncp-toast { max-width: none; }
	.ncp-overlay--side .ncp-dialog { max-width: none; }

	.ncp-table thead { display: none; }
	.ncp-table, .ncp-table tbody, .ncp-table tr, .ncp-table td { display: block; }
	.ncp-table tr { padding: 10px 16px; border-bottom: 1px solid var(--ncp-line); }
	.ncp-table td { padding: 4px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; text-align: left; }
	.ncp-table td[data-th]::before { content: attr(data-th); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ncp-text-3); flex: none; }
	.ncp-table .is-num, .ncp-table .is-actions { text-align: right; }
	.ncp-table td.is-actions { justify-content: flex-end; padding-top: 8px; }
	.ncp-table td.is-primary { font-weight: 700; font-size: 14px; }
}

@media (min-width: 641px) {
	.ncp-overlay { align-items: center; padding: 24px; }
	.ncp-dialog { border-radius: var(--ncp-r-lg); }
}

@media (prefers-reduced-motion: reduce) {
	.ncp-app *, .ncp-app *::before, .ncp-app *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.ncp-chart .line { stroke-dashoffset: 0; }
}

@media print {
	.ncp-side, .ncp-top, .ncp-tabbar, .ncp-toasts { display: none !important; }
	.ncp-shell { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Join pop-up (printed on theme pages) and password eye
   -------------------------------------------------------------------------- */
.ncp-modal[hidden] { display: none !important; }
.ncp-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; }
.ncp-modal__scrim { position: absolute; inset: 0; background: rgba(10, 8, 20, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--ncp-normal) var(--ncp-ease); }
.ncp-modal__panel { position: relative; width: 100%; max-width: 580px; max-height: 92dvh; overflow: auto; background: var(--ncp-bg); border-radius: var(--ncp-r-lg) var(--ncp-r-lg) 0 0; padding: 20px 18px 28px; box-shadow: var(--ncp-shadow-lg); transform: translateY(24px); opacity: 0; transition: transform var(--ncp-slow) var(--ncp-ease), opacity var(--ncp-normal) var(--ncp-ease); }
.ncp-modal.is-open .ncp-modal__scrim { opacity: 1; }
.ncp-modal.is-open .ncp-modal__panel { transform: none; opacity: 1; }
.ncp-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ncp-modal__head h2 { font-size: 22px; font-weight: 800; }
.ncp-modal .ncp-wizard { max-width: none; }
.ncp-modal .ncp-wizard__form { padding: 18px; }
body.ncp-modal-open { overflow: hidden; }
@media (min-width: 641px) { .ncp-modal { align-items: center; padding: 24px; } .ncp-modal__panel { border-radius: var(--ncp-r-lg); } }
.ncp-pass { position: relative; display: block; }
.ncp-pass input { padding-right: 46px; }
.ncp-pass__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--ncp-text-3); display: grid; place-items: center; cursor: pointer; }
.ncp-pass__eye:hover { background: var(--ncp-surface-2); color: var(--ncp-text); }
.ncp-pass .eye-off { display: none; }
.ncp-pass.is-shown .eye-off { display: block; }
.ncp-pass.is-shown .eye-on { display: none; }
