@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/tabler-icons/3.31.0/tabler-icons.min.css');

/* ==========================================================
	Contents
	1. Design tokens
	2. Base reset and utilities
	3. App shell and sidebar navigation
	4. Main header, menus, and global controls
	5. Dashboard cards and homepage sections
	6. Dialogs, forms, and shared focus states
	7. Sidebar collapsed state and base responsive rules
	8. Shared interaction and refinement layer
	9. Route-level views and reusable page components
	10. Page modules: wallet, trips, expenses, map, shop, passport, quests

	Note: cascade order is intentional. Later sections refine or override
	earlier shared styles for route-specific screens.
========================================================== */

/* ==========================================================
	1. Design tokens
========================================================== */

:root {
	--font-sans: "Plus Jakarta Sans", system-ui, sans-serif;

	--c-page: #0d0d0d;
	--c-app: #111111;
	--c-sidebar: #141414;

	--c-app-rgb: 17,17,17;
	--c-surface-rgb: 26, 26, 26;
	--c-accent-rgb: 255,107,0;
	--c-warning-rgb: 245,158,11;

	--c-surface: #1a1a1a;
	--c-surface-2: #1b1b1b;
	--c-surface-3: #202020;
	--c-surface-hover: #1f1f1f;
	--c-map: #161616;


	--c-border: #2a2a2a;
	--c-border-soft: #242424;
	--c-border-muted: #252525;
	--c-border-strong: #2b2b2b;
	--c-border-control: #2c2c2c;

	--c-text: #f4f4f4;
	--c-text-strong: #ffffff;
	--c-text-soft: #e5e5e5;
	--c-text-muted: #8e8e8e;
	--c-text-dim: #737373;
	--c-text-faint: #575757;


	--c-accent: #ff6b00;
	--c-accent-2: #ff7a18;
	--c-accent-3: #ff9b25;
	--c-success: #22c55e;
	--c-warning: #fbbf24;
	--c-solana: #924afa;
	--c-white: #ffffff;
	--c-focus: rgba(var(--c-accent-rgb),.38);

	--r-xs: 5px;
	--r-sm: 8px;
	--r-md: 10px;
	--r-lg: 12px;
	--r-chart: 4px;
	--r-round: 50%;
	--r-pill: 999px;
	--r-map-pin: var(--r-round) var(--r-round) var(--r-round) var(--r-xs);

	--shadow-card: 0 18px 44px rgba(0,0,0,.18);
	--shadow-pin: 0 10px 24px rgba(0,0,0,.35);
	--border-width: 1px;

	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-7: 28px;
	--text-2xs: 9.5px;
	--text-xs: 11px;
	--text-sm: 12px;
	--text-md: 13px;
	--text-lg: 16px;
	--text-xl: 20px;
	--text-2xl: 30px;
	--text-3xl: 36px;
	--text-4xl: 42px;
	--control-sm: 32px;
	--control-md: 36px;
	--control-lg: 42px;
	--ease-standard: cubic-bezier(.2, .8, .2, 1);
	--ease-emphasis: cubic-bezier(.16, 1, .3, 1);
	--motion-fast: 120ms;
	--motion-base: 180ms;
	--motion-slow: 320ms;
	--shadow-popover: 0 20px 70px rgba(0,0,0,.45);
	
	--app-bg: url('../data/images/app/bg_id_01.png');
}

/* ==========================================================
	2. Base reset and utilities
========================================================== */

::selection {
	color: var(--c-text);
	background: var(--c-accent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--c-page); font-family: var(--font-sans); color: var(--c-text); }
body { overflow: hidden; }

img	{ width: 100%; height: auto; object-fit: cover; flex-shrink: 0; }
img.img-circle	{ border-radius: 50%; }

.hidden { display: none !important; }

/* ==========================================================
	3. App shell and sidebar navigation
========================================================== */

.nw-root { display: flex; height: 100vh; background: var(--c-app); overflow: hidden; }
.nw-side {
	position: sticky; top: 0; align-self: flex-start;
	width: 220px; height: 100vh; max-height: 100vh; flex-shrink: 0; display: flex; flex-direction: column;
	background: var(--c-sidebar); border-right: var(--border-width) solid var(--c-border);
	overflow: visible;
	z-index: 30;
	transition: width .2s ease, transform .2s ease;
}
.nw-logo { display: flex; align-items: center; gap: 10px; padding: 24px 14px 22px 20px; border-bottom: var(--border-width) solid var(--c-border-soft); }

.nw-logomark {
	width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm);
	background: var(--c-accent); color: var(--c-white); font-weight: 900; font-size: 14px;
}
.nw-logomark img	{ width: 100%; }


.nw-brandname { font-size: 15px; font-weight: 800; letter-spacing: -0.3px; }
.nw-collapse-btn {
	width: 30px; height: 30px; display: grid; place-items: center; margin-left: auto;
	border: var(--border-width) solid var(--c-border); border-radius: var(--r-sm) 0 0 var(--r-sm);
	background: var(--c-surface-2); color: var(--c-text-muted); cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
	position: absolute; right: 0;
}
.nw-collapse-btn:hover,
.nw-mobile-menu:hover { background: var(--c-surface-hover); color: var(--c-text-soft); border-color: var(--c-border-control); }
.nw-collapse-btn:active { transform: scale(.96); }
.nw-mobile-menu:active { transform: scale(.96); }
.nw-mobile-close { display: none; }

/* Sidebar nav and shared tooltip shell. */
.nw-nav { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; flex: 1; }
.nw-navlabel {
	padding: 14px 12px 5px; color: var(--c-text-faint); font-size: 10px; font-weight: 700;
	letter-spacing: 1px; text-transform: uppercase;
}
.nw-nav-divider { height: 1px; background: var(--c-border-muted); margin: 10px 12px 2px; }
.nw-navitem {
	display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px;
	border-radius: var(--r-sm); color: #9a9a9a; text-decoration: none; font-size: 13px; font-weight: 600;
	transition: background .15s ease, color .15s ease, transform .12s ease;
}
.nw-navitem i { width: 18px; font-size: 18px; text-align: center; }
.nw-navitem:hover { background: var(--c-surface-hover); color: #e0e0e0; }
.nw-navitem.active { background: rgba(var(--c-accent-rgb),.12); color: var(--c-accent-2); }
.nw-navitem:active { transform: translateY(1px); }
.nw-navitem[data-tooltip], .nw-bottom-nav a[data-tooltip], .nw-notification-btn[data-tooltip] { position: relative; }
.nw-root.sidebar-collapsed .nw-navitem[data-tooltip]::after,
.nw-bottom-nav a[data-tooltip]::after,
.nw-notification-btn[data-tooltip]::after {
	content: attr(data-tooltip); position: absolute; z-index: 120; pointer-events: none;
	padding: 6px 8px; border-radius: var(--r-sm); background: var(--c-surface);
	border: var(--border-width) solid var(--c-border); color: var(--c-text-soft);
	font-size: 11px; font-weight: 800; white-space: nowrap; opacity: 0;
	transform: translateY(4px); transition: opacity .15s ease, transform .15s ease;
	box-shadow: 0 12px 36px rgba(0,0,0,.28);
}

.nw-root.sidebar-collapsed .nw-streak[data-tooltip]::after { left: calc(100% + 10px); top: 50%; transform: translate(-4px, -50%); }
.nw-root.sidebar-collapsed .nw-streak[data-tooltip]:hover::after,
.nw-root.sidebar-collapsed .nw-streak[data-tooltip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

.nw-root.sidebar-collapsed .nw-navitem[data-tooltip]::after { left: calc(100% + 10px); top: 50%; transform: translate(-4px, -50%); }
.nw-bottom-nav a[data-tooltip]::after { bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); }
.nw-notification-btn[data-tooltip]::after { top: calc(100% + 8px); right: 0; transform: translateY(-4px); }
.nw-root.sidebar-collapsed .nw-navitem[data-tooltip]:hover::after,
.nw-root.sidebar-collapsed .nw-navitem[data-tooltip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.nw-bottom-nav a[data-tooltip]:hover::after,
.nw-bottom-nav a[data-tooltip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.nw-notification-btn[data-tooltip]:hover::after,
.nw-notification-btn[data-tooltip]:focus-visible::after { opacity: 1; transform: translateY(0); }
.nw-bottom { padding: 16px; border-top: var(--border-width) solid var(--c-border-muted); }
.nw-bottom2 { padding: 16px; border-top: var(--border-width) solid transparent; }

/* Sidebar user/profile controls. */
.nw-avatar {
	display: flex; 
	align-items: center; 
	justify-content: space-between; 
	gap: 10px; padding: 10px; border-radius: var(--r-sm);
	background: var(--c-surface-2); border: var(--border-width) solid var(--c-border);
	text-align: left;
	cursor: pointer;
	font-family: var(--font-sans);
	width: 100%;
}
.nw-avatar:hover	{ background: var(--c-surface-hover); color: #e0e0e0; box-shadow: 0 0 0 4px rgba(var(--c-surface-rgb),0.8); }
.nw-avatar:active { transform: translateY(1px); }

.nw-avatar > div {
	display: flex; 
	align-items: center; 
	justify-content: space-between;
	gap: 6px;
}
.nw-ava-circle {
	width: 34px; height: 34px; border-radius: var(--r-round); display: grid; place-items: center;
	background: linear-gradient(135deg, var(--c-accent), var(--c-accent-3)); color: var(--c-white); font-size: 12px; font-weight: 800;
}

.nw-ava-name { font-size: 14px; color: var(--c-text-soft); font-weight: 700; }
.nw-ava-sub { margin-top: 2px; color: var(--c-text-dim); font-size: 14px; font-weight: 900; }

/* ==========================================================
	4. Main header, menus, and global controls
========================================================== */

.nw-main { 
	flex: 1; 
	overflow-y: auto; 
	scrollbar-width: thin; 
	scrollbar-color: #333 transparent; 
	background: var(--app-bg) center top / contain no-repeat;
	position: relative;
}
.nw-main::before {
	content: '';
	position: sticky;
	display: block;
	top: 0;
	height: 100vh;
	margin-bottom: -100vh;
	pointer-events: none;
	z-index: 0;
	background: linear-gradient(180deg, 
		rgba(var(--c-app-rgb),.00) 20%, 
		rgba(var(--c-app-rgb),.60) 60%, 
		rgba(var(--c-app-rgb),.99) 100%);
}
.nw-main > * {
	position: relative;
	z-index: 1;
}

.nw-main::-webkit-scrollbar { width: 5px; }
.nw-main::-webkit-scrollbar-thumb { background: #333; border-radius: var(--r-xs); }
.nw-topbar {
	position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
	padding: 12px 28px 12px; background: rgba(var(--c-app-rgb),.76); border-bottom: var(--border-width) solid var(--c-surface-3); backdrop-filter: blur(18px);
}
.nw-top-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nw-mobile-menu {
	width: 36px; height: 36px; display: none; place-items: center; flex-shrink: 0;
	font-size: 18px;
	border: var(--border-width) solid transparent; border-radius: var(--r-sm);
	background: transparent; color: var(--c-text-soft); cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.nw-greeting { padding: 9px 15px 9px 10px; }
.nw-greeting h1 { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; }
.nw-greeting p { margin-top: 6px; color: var(--c-text-dim); font-size: 12px; }

.nw-greeting .icon {
	width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0;
	border-radius: var(--r-sm); background: transparent; color: var(--c-accent-2); font-size: 36px;
}

.nw-topright { display: flex; align-items: center; gap: 10px; }
.nw-topright .ti { font-size: 14px; }
.nw-mobile-brand, .nw-mobile-avatar, .nw-mobile-user { display: none; }
.nw-mobile-user { position: relative; margin-left: auto; }
.nw-nw-xp-badge-big, .nw-walletbadge, .nw-currency-card {
	display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px;
	background: var(--c-surface-2); border: var(--border-width) solid var(--c-border); border-radius: var(--r-sm); color: #b8b8b8; font-size: 12px; font-weight: 700;
}
.nw-currency-card {
	flex-direction: row; align-items: center; justify-content: center; min-width: 104px;
	cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.nw-currency-card strong { display: inline-flex; align-items: center; gap: 7px; color: var(--c-text-soft); font-size: 12px; line-height: 1; }
.nw-currency-card:hover { background: var(--c-surface-hover); border-color: var(--c-border-control); }
.nw-currency-card[aria-expanded="true"] { border-color: var(--c-accent); }
.nw-currency-card:active { transform: translateY(1px); }
.nw-currency-card i, .nw-wallet-wrap i { color: var(--c-text-muted); }
.nw-currency-card strong > i:first-child { color: var(--c-accent-2); margin-left: 0; }
.nw-copy-btn {
	width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: var(--r-xs);
	background: transparent; color: var(--c-text-muted); cursor: pointer; margin-right: -4px;
	transition: background .15s ease, color .15s ease, transform .12s ease;
}
.nw-copy-btn:hover { background: var(--c-surface-3); color: var(--c-text-soft); }
.nw-copy-btn:active { transform: scale(.92); }
.nw-copy-btn.copied { color: var(--c-success); }
.nw-mobile-avatar { border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .15s ease; }
.nw-mobile-avatar:hover { box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb),.14); }
.nw-mobile-avatar:active { transform: scale(.96); }


.nw-mobile-user-menu {
	position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; display: none;
	width: 228px; padding: 8px; border-radius: var(--r-lg); background: var(--c-surface);
	border: var(--border-width) solid var(--c-border); box-shadow: 0 18px 60px rgba(0,0,0,.36);
}
.nw-mobile-user-menu.open { display: block; }
.nw-user-menu-item {
	width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 10px;
	border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-text-soft);
	font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; text-align: left;
	transition: background .15s ease, color .15s ease, transform .12s ease;
}
.nw-user-menu-item:hover { background: var(--c-surface-3); }
.nw-user-menu-item:active { transform: translateY(1px); }
.nw-user-menu-item i { color: var(--c-accent-2); font-size: 17px; }
.nw-user-menu-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nw-user-menu-text strong { color: var(--c-text-soft); font-size: 12px; font-weight: 900; }
.nw-user-menu-text span { color: var(--c-text-dim); font-size: 10.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-notification-count {
	margin-left: auto; min-width: 18px; height: 18px; display: grid; place-items: center;
	border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-white);
	font-size: 10px; font-weight: 900;
}
.nw-bottom-nav { display: none; }
.nw-dot { width: 7px; height: 7px; border-radius: var(--r-round); background: var(--c-success); box-shadow: 0 0 0 4px rgba(34,197,94,.1); }
.nw-walletbadge .ti-currency-solana { color: var(--c-solana); font-size: 16px; border-radius: var(--r-sm); }
.nw-walletbadge img { width: 16px; height: auto; }
.nw-icon-btn {
	width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm);
	background: var(--c-surface-2); border: var(--border-width) solid var(--c-border); color: var(--c-text-muted); font-size: 16px;
	cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.nw-icon-btn:hover { background: var(--c-surface-hover); border-color: var(--c-border-control); color: var(--c-text-soft); }
.nw-icon-btn:active { transform: scale(.96); }
.nw-notification-btn { position: relative; margin: 0 12px 0 0; }
.nw-notification-btn .nw-notification-count {
	position: absolute; top: -6px; right: -6px; border: 2px solid var(--c-app);
}

/* ==========================================================
	5. Dashboard cards and homepage sections
========================================================== */

.nw-content { 
	display: flex; 
	flex-direction: column; 
	gap: 18px; 
	padding: 160px 28px 60px;
}

.nw-card {
	background: rgba(var(--c-surface-rgb), 0.76); 
	border: var(--border-width) solid var(--c-border); border-radius: var(--r-lg);
	box-shadow: var(--shadow-card);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}
.nw-card h2 { margin: 0 0 10px; }
.nw-card h3 { margin: 0 0 10px; }

.nw-section-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.nw-section-hd h2 { color: #f2f2f2; font-size: 20px; font-weight: 800; letter-spacing: -0.2px; margin: 0px 0 0; }
.nw-section-hd p { margin-top: 6px; color: var(--c-text-dim); font-size: 11.5px; }
.nw-section-link {
	display: inline-flex; align-items: center; gap: 5px; color: var(--c-accent-2); font-size: 11.5px;
	font-weight: 800; text-decoration: none; white-space: nowrap;
	transition: color .15s ease, transform .12s ease;
}
.nw-section-link:hover { color: var(--c-accent-3); }
.nw-section-link:active { transform: translateY(1px); }

.nw-metrics { display: grid; grid-template-columns: 1.05fr .85fr 1.15fr; gap: 14px; }
.nw-metric { min-height: 180px; padding: 20px; overflow: hidden; position: relative; }
.nw-balance-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nw-balance-toggle {
	width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-sm);
	background: var(--c-surface-2); border: var(--border-width) solid var(--c-border);
	color: var(--c-text-muted); cursor: pointer; transition: background .15s ease, color .15s ease, transform .12s ease;
}
.nw-balance-toggle:hover { background: var(--c-surface-hover); color: var(--c-text-soft); }
.nw-balance-toggle:active { transform: scale(.96); }
.nw-root.balances-hidden :is(.nw-metric-value, .nw-txn-amt) {
	color: transparent;
	text-shadow: none;
	position: relative;
}
.nw-root.balances-hidden :is(.nw-metric-value, .nw-txn-amt) * { color: transparent; }
.nw-root.balances-hidden :is(.nw-metric-value, .nw-txn-amt)::after {
	content: "●●●●●";
	position: absolute; inset: 0; display: flex; align-items: center;
	color: var(--c-text-soft); letter-spacing: 2px; text-shadow: none;
}
.nw-root.balances-hidden .nw-metric-value::after { justify-content: flex-start; }
.nw-root.balances-hidden .nw-txn-amt::after { justify-content: flex-end; }
.nw-trip-card { display: flex; flex-direction: column; }
.nw-metric-title {
	display: flex; align-items: center; gap: 7px; color: #7a7a7a; font-size: var(--text-xs);
	font-weight: 800; letter-spacing: .9px; text-transform: uppercase;
}
.nw-metric-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nw-trip-dates { color: #787878; font-size: var(--text-xs); font-weight: 800; text-align: right; line-height: 1.35; }
.nw-metric-title i { color: var(--c-accent-2); font-size: var(--text-lg); }
.nw-metric-value { margin-top: 12px; color: var(--c-text-strong); font-size: var(--text-3xl); line-height: 1; font-weight: 800; letter-spacing: -1.4px; }
.nw-metric-value .currency { color: #7a7a7a; font-size: var(--text-2xl); font-weight: 700; margin: 0 4px 0 0; }
.nw-metric-value small { color: #656565; font-size: var(--text-xl); font-weight: 700; }
.nw-metric-value .nw-money {
	display: inline-flex;
	align-items: baseline;
	max-width: 100%;
	white-space: nowrap;
}
.nw-metric-value .nw-money-currency {
	margin-right: 5px;
	color: var(--c-text-muted);
	font-size: .92em;
	font-weight: 800;
	letter-spacing: 0;
}
.nw-metric-value .nw-money-cents {
	color: var(--c-text-dim);
	font-size: .52em;
	font-weight: 800;
	letter-spacing: -.02em;
}
.nw-metric-value small .nw-money-currency {
	margin-right: 3px;
	font-size: .72em;
}
.nw-metric-value small .nw-money-cents { font-size: .68em; }
.nw-metric-sub { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: #777; font-size: var(--text-sm); font-weight: 600; }
.nw-spent-card .nw-spent-body + .nw-metric-sub { margin-top: 5px; }
.nw-spent-card .nw-metric-sub + .nw-metric-sub { margin-top: 8px; }
.nw-trip-total {
	color: var(--c-text-muted);
	font-size: var(--text-xl);
	font-weight: 800;
	letter-spacing: -.02em;
}
.nw-green { color: var(--c-success); }
.nw-xp-badge {
	display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 0 8px; margin: 0px 0 0;
	border-radius: var(--r-pill); 
	background: rgba(var(--c-warning-rgb),.14); 
	border: var(--border-width) solid rgba(var(--c-warning-rgb),.26);
	color: var(--c-warning); 
	font-size: 11px; font-weight: 900; white-space: nowrap;
}
.nw-xp-badge-big { 
	background: rgba(var(--c-warning-rgb),.14); 
	border: var(--border-width) solid rgba(var(--c-warning-rgb),.26);
	color: var(--c-warning); 
	border-radius: var(--r-sm);
	display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; margin: 0;
	font-size: 12px; font-weight: 700;
}
.nw-level-badge {
	display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 0 8px;
	border-radius: var(--r-pill); background: rgba(var(--c-accent-rgb),.12); border: var(--border-width) solid rgba(var(--c-accent-rgb),.25);
	color: var(--c-accent-3); font-size: 11px; font-weight: 900; white-space: nowrap;
}
.nw-streak {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	margin: 0; padding: 10px; border-radius: var(--r-sm);
	background: rgba(var(--c-accent-rgb),.08); 
	border: var(--border-width) solid rgba(var(--c-accent-rgb),.18);
	text-align: left;
	cursor: pointer;
	font-family: var(--font-sans);
	width: 100%;
}
.nw-streak:hover	{ 
	background: rgba(var(--c-accent-rgb),.20); color: #e0e0e0; box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), 0.13); 
}
.nw-streak:active { transform: translateY(1px); }

.nw-streak span { display: flex; align-items: center; gap: 7px; color: #d8d8d8; font-size: var(--text-sm); font-weight: 800; }
.nw-streak i { color: var(--c-accent-2); font-size: var(--text-xl); }
.nw-streak strong { color: var(--c-accent-2); font-size: var(--text-lg); font-weight: 900; }
.nw-spent-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, 156px); align-items: start; gap: 16px; margin-top: 12px; }
.nw-spent-body .nw-metric-value {
	min-width: 0;
	margin-top: 8px;
	font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
	overflow: hidden;
}
.nw-bars { display: flex; align-items: end; gap: 6px; height: 46px; margin-left: auto; }
.nw-bars span { width: 8px; border-radius: var(--r-chart) var(--r-chart) 0 0; background: var(--c-accent); opacity: .95; }
.nw-trip-meta { display: flex; justify-content: space-between; margin-top: 13px; color: #8b8b8b; font-size: 12px; font-weight: 700; }
.nw-trip-card .nw-range { margin-top: auto; }
.nw-range { height: 8px; background: #333; border-radius: var(--r-pill); overflow: hidden; margin-top: 12px; }
.nw-range span { display: block; width: 60%; height: 100%; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-3)); border-radius: inherit; }
.nw-rate-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.nw-rate { padding: 9px 10px; background: rgba(var(--c-surface-rgb),0.4); border: var(--border-width) solid var(--c-border-strong); border-radius: var(--r-sm); }
.nw-rate span { display: block; color: #676767; font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.nw-rate strong { display: block; margin-top: 3px; color: #cfcfcf; font-size: 11px; }

.nw-activity-map { 
	display: grid; 
	grid-template-columns: minmax(400px, 1fr) minmax(300px, 1fr); 
	gap: 14px; 
}

.nw-activity { padding: 18px; }
.nw-txn {
	display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: start;
	gap: 14px; min-height: 64px; padding: 12px 0; border-bottom: var(--border-width) solid var(--c-border-soft);
}
.nw-txn:last-child { border-bottom: 0; padding-bottom: 2px; }
.nw-txn-icon {
	width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-sm);
	background: var(--c-border-soft); color: #9a9a9a; font-size: 17px;
}
.nw-txn-name { color: var(--c-text); font-size: 13px; font-weight: 800; }
.nw-txn-hour { color: var(--c-text-dim); font-size: 12px; font-weight: 800; margin: 0 6px 0 0; display: inline-block; }
.nw-txn-meta { margin-top: 4px; color: var(--c-text-dim); font-size: 12px; line-height: 1.35; }
.nw-txn-amt { text-align: right; font-size: 16px; font-weight: 800; color: #ededed; }
.nw-txn-local { margin-top: 4px; color: #696969; font-size: 12px; font-weight: 600; }

.nw-badge {
	display: inline-flex; align-items: center; min-height: 18px; padding: 0 7px; margin-left: 7px;
	font-weight: 800;
	border-radius: var(--r-xs);
	background: rgba(var(--c-accent-rgb),.12);
	color: var(--c-accent-2); font-size: 9.5px;
}
.nw-badge.gray { background: rgba(37,37,37,.80); color:#777; }
.nw-badge.green { background: rgba(34,197,94,.12); color:#22c55e; }

.nw-map-card { padding: 18px; }
.nw-map-frame {
	position: relative; height: 270px; overflow: hidden; border-radius: var(--r-md); border: var(--border-width) solid var(--c-border);
	background: var(--c-map);
}
.nw-map-grid {
	position: absolute; inset: 0;
	background:
		linear-gradient(25deg, transparent 0 26%, rgba(92,92,92,.28) 26% 27.5%, transparent 27.5% 100%),
		linear-gradient(150deg, transparent 0 36%, rgba(92,92,92,.24) 36% 37.5%, transparent 37.5% 100%),
		linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
		linear-gradient(0deg, rgba(255,255,255,.035) 1px, transparent 1px),
		#151515;
	background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px, auto;
}
.nw-map-road {
	position: absolute; height: 12px; border-radius: var(--r-pill); background: rgba(105,105,105,.28);
	box-shadow: 0 0 0 1px rgba(255,255,255,.035) inset;
}
.road-1 { left: -40px; right: -30px; top: 128px; transform: rotate(-23deg); }
.road-2 { left: 120px; width: 310px; top: 80px; transform: rotate(65deg); }
.road-3 { left: 28px; width: 250px; bottom: 55px; transform: rotate(5deg); }
.nw-map-label {
	position: absolute; color: rgba(255,255,255,.33); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.label-1 { left: 42%; top: 26%; }
.label-2 { left: 58%; top: 52%; }
.label-3 { left: 23%; top: 68%; }
.nw-map-overlay {
	pointer-events: none; position: absolute; inset: 0;
	background: radial-gradient(circle at 48% 48%, rgba(var(--c-accent-rgb),.13), transparent 25%), linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.34));
}
.nw-map-pin {
	position: absolute; width: 30px; height: 30px; display: grid; place-items: center;
	border-radius: var(--r-map-pin); transform: rotate(-45deg);
	background: var(--c-accent); color: var(--c-white); box-shadow: var(--shadow-pin);
}
.nw-map-pin i { transform: rotate(45deg); font-size: 14px; }
.pin-1 { left: 18%; top: 33%; }
.pin-2 { left: 55%; top: 22%; }
.pin-3 { left: 71%; top: 52%; }
.pin-4 { left: 36%; top: 62%; }
.nw-map-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nw-filter {
	display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill);
	background: var(--c-surface-3); border: var(--border-width) solid var(--c-border-control); color: #8d8d8d; font-size: 11px; font-weight: 700;
	cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.nw-filter.active { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-white); }
.nw-filter:hover { border-color: var(--c-accent); color: var(--c-text-soft); }
.nw-filter:active { transform: translateY(1px); }

.nw-quick-card { 
	padding: 18px; 
	background: transparent;
	border: none;
	backdrop-filter: none;
	box-shadow: none;
}

.nw-quick-list { 
	display: flex; 
	justify-content: stretch;
	flex: 1 1 auto !important; 
	gap: 10px; 
}

.nw-quick-list > * {
	flex: 1 1 0;
	min-width: 0;
}

.nw-quick-item {
	display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 9px 10px;
	cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .12s ease;
	font-family: var(--font-sans);
	text-align: left;
	color: var(--c-text);
}
.nw-quick-item:hover	{ background: var(--c-surface-hover); color: #e0e0e0; box-shadow: 0 0 0 4px rgba(var(--c-surface-rgb),0.3); }
.nw-quick-item:active { transform: translateY(1px); }

.nw-quick-item i {
	width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0;
	border-radius: var(--r-sm); background: rgba(var(--c-accent-rgb),.11); color: var(--c-accent-2); font-size: 18px;
}
.nw-quick-item strong { display: block; font-size: var(--text-lg); font-weight: 800; }
.nw-quick-item span { display: block; margin-top: 2px; color: var(--c-text-dim); font-size: var(--text-xs); font-weight: 600; }

.nw-passport { padding: 18px; }
.nw-passport-summary {
	display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: stretch;
}
.nw-passport-progress {
	display: flex; flex-direction: column; justify-content: center; gap: 12px;
	padding: 16px; border-radius: var(--r-md); background: var(--c-surface-3); border: var(--border-width) solid var(--c-border-strong);
}
.nw-progress-big { color: var(--c-text-strong); font-size: 36px; line-height: 1; font-weight: 800; letter-spacing: -1.2px; }
.nw-progress-sub { color: #767676; font-size: 12px; font-weight: 700; margin: 6px 0 0; }
.nw-country-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; }
.nw-country {
	min-height: 132px; 
	padding: 14px; 
	border-radius: var(--r-md); 
	background: var(--c-surface-3); 
	border: var(--border-width) solid var(--c-border-strong);
	display: flex; 
	flex-direction: column; 
	justify-content: start; 
	align-items: center;
	text-align: center;
	gap: 6px;
}
.nw-country.claimable { background: rgba(var(--c-accent-rgb),.03); border-color: rgba(var(--c-accent-rgb),.18); }
.nw-stamp {
	width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-md);
	background: rgba(var(--c-accent-rgb),.1); color: var(--c-accent-2); border: var(--border-width) solid rgba(var(--c-accent-rgb),.24); font-size: 20px;
}
.nw-country strong { display: block; color: #f0f0f0; font-size: 13px; font-weight: 800; margin: 8px 0 6px; }
.nw-country span { display: block;	color: #777; font-size: 12px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; }
.nw-country-date { display: block;	color: #777; font-size: 11px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; }
.nw-country .nw-check { align-self: center; color: var(--c-success); font-size: 18px; display: none; }
.nw-country .nw-locked { align-self: center; color: var(--c-text-dim); font-size: 18px; }

.nw-country.locked { border-style:dashed; background:#1b1b1b; }
.nw-country.locked .nw-stamp { background:#202020; border-color:#373737; color:#777; }

.nw-claim-btn {
	width: auto;
	min-height: 30px; 
	color: var(--c-white); 
	background: rgba(var(--c-warning-rgb),.70);
	border: var(--border-width) solid rgba(var(--c-warning-rgb),.90); 
	border-radius: var(--r-sm);
	font: inherit; font-size: 11px; font-weight: 900; cursor: pointer;
	padding: 6px 10px;
	display: inline-flex; align-items: center; justify-content: center; gap: 5px;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.nw-claim-btn:hover { 
	background: rgba(var(--c-warning-rgb),.86); 
	border-color: var(--c-warning); 
	box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), 0.13);
}
.nw-claim-btn:active { transform: translateY(1px); }

.nw-add-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px;
	padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--c-accent); color: var(--c-white);
	font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
	transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
}
.nw-add-btn:hover { background: var(--c-accent-2); box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb),.13); }
.nw-add-btn:active { transform: translateY(1px); box-shadow: none; }

/* ==========================================================
	6. Dialogs, forms, and shared focus states
========================================================== */

.nw-modal-backdrop {
	position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center;
	padding: 18px; background: rgba(0,0,0,.76); backdrop-filter: blur(18px);
}
.nw-modal-backdrop.open { display: flex; }
.nw-modal {
	width: min(440px, 100%); padding: 20px; background: var(--c-surface); border: var(--border-width) solid var(--c-border);
	border-radius: var(--r-lg); box-shadow: 0 24px 80px rgba(0,0,0,.45);
	text-align: center;
}
.nw-modal-hd { display: flex; align-items: flex-start; justify-content: center; gap: 16px; margin-bottom: 18px; }
.nw-modal-hd h2 { font-size: 16px; font-weight: 900; letter-spacing: -.2px; }
.nw-modal-hd p { margin-top: 5px; color: var(--c-text-dim); font-size: 12px; }
.nw-modal-close {
	width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0;
	background: var(--c-surface-2); border: var(--border-width) solid transparent; border-radius: var(--r-sm);
	color: var(--c-text-muted); cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.nw-modal-close:hover { background: var(--c-surface-hover); border-color: var(--c-border-control); color: var(--c-text-soft); }
.nw-modal-close:active { transform: scale(.96); }
.nw-currency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nw-expense-scroll { display: grid; gap: var(--space-3); min-height: 0; }
.nw-expense-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.nw-field label { display: block; margin: 0px 0 7px; color: var(--c-text-dim); font-size: var(--text-xs); font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.nw-amount-field { grid-column: 1 / -1; }
.nw-amount-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 124px;
	align-items: stretch;
	border: var(--border-width) solid var(--c-border-strong);
	border-radius: var(--r-lg);
	background: var(--c-surface-3);
	overflow: hidden;
}
.nw-amount-input,
.nw-amount-currency {
	border: 0;
	border-radius: 0;
	background-color: transparent;
}
.nw-amount-input {
	min-height: 76px;
	padding: 0 var(--space-4);
	color: var(--c-text-strong);
	font-size: var(--text-4xl);
	font-weight: 900;
	letter-spacing: -.04em;
}
.nw-amount-currency {
	min-height: 76px;
	border-left: var(--border-width) solid var(--c-border-strong);
	border-radius: 0;
	font-size: var(--text-lg);
}
.nw-amount-group--compact .nw-amount-input,
.nw-amount-group--compact .nw-amount-currency { min-height: 64px; }
.nw-amount-group--compact .nw-amount-input { font-size: var(--text-3xl); }
.nw-amount-group:focus-within {
	border-color: rgba(var(--c-accent-rgb), .55);
	box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), .12);
}
.nw-amount-group .nw-amount-input {
	border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.nw-select {
	width: 100%;
	min-height: 42px;
	padding: 0 42px 0 12px;
	border-radius: var(--r-sm);
	border: var(--border-width) solid var(--c-border-strong);
	background-color: var(--c-surface-3);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
	color: var(--c-text-soft);
	font: inherit;
	font-size: var(--text-md);
	font-weight: 800;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}
.nw-select::-ms-expand {
	display: none;
}
.nw-select:hover {
	border-color: var(--c-border-control);
	background-color: var(--c-surface-hover);
}

.nw-select:disabled {
	cursor: not-allowed;
	opacity: .6;
}
.nw-amount-group .nw-amount-currency {
	border: 0;
	border-left: var(--border-width) solid var(--c-border-strong);
	border-radius: 0;
	background-color: transparent;
}
.nw-trip-image-auto {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-2);
	border: var(--border-width) solid var(--c-border-strong);
	border-radius: var(--r-sm);
	background: var(--c-surface-3);
	color: var(--c-text-muted);
	font-size: var(--text-sm);
	font-weight: 800;
}
.nw-trip-image-auto img {
	width: 72px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--r-xs);
}
.nw-modal-rate {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	margin-top: 14px; padding: 12px; border-radius: var(--r-sm); background: var(--c-surface-2);
	border: var(--border-width) solid var(--c-border);
}
.nw-modal-rate span { color: var(--c-text-dim); font-size: 11px; font-weight: 800; }
.nw-modal-rate strong { color: var(--c-accent-3); font-size: 14px; }
.nw-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.nw-secondary-btn {
	min-height: 36px; padding: 0 14px; border-radius: var(--r-sm);
	background: var(--c-surface-2); border: var(--border-width) solid var(--c-border); color: var(--c-text-soft);
	font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.nw-secondary-btn:hover { background: var(--c-surface-hover); border-color: var(--c-border-control); }
.nw-secondary-btn:active { transform: translateY(1px); }

.nw-access-gate {
	z-index: 200;
	background:
		linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.9)),
		radial-gradient(circle at 50% 0%, rgba(var(--c-accent-rgb),.24), transparent 42%),
		rgba(0,0,0,.82);
}
.nw-access-pending .nw-root,
.nw-access-pending .nw-bottom-nav {
	visibility: hidden;
}
.nw-access-locked .nw-root,
.nw-access-locked .nw-bottom-nav {
	filter: blur(4px);
	pointer-events: none;
	user-select: none;
}
.nw-access-card {
	width: min(420px, 100%);
	padding: 26px;
	border-color: rgba(var(--c-accent-rgb), .32);
	background: rgba(var(--c-surface-rgb), .94);
	box-shadow: 0 28px 90px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.nw-access-lock {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	margin: 0 auto 16px;
	border-radius: var(--r-sm);
	background: rgba(var(--c-accent-rgb), .14);
	color: var(--c-accent-3);
	font-size: 22px;
}
.nw-access-hd {
	margin-bottom: 18px;
}
.nw-access-hd h2 {
	font-size: 22px;
}
.nw-access-hd p {
	max-width: 28em;
	line-height: 1.55;
}
.nw-access-input {
	text-align: center;
	font-weight: 900;
	letter-spacing: 1px;
}
.nw-access-error {
	min-height: 20px;
	margin-top: 10px;
	color: #fca5a5;
	font-size: var(--text-sm);
	font-weight: 800;
	text-align: center;
}
.nw-access-actions {
	justify-content: stretch;
	margin-top: 12px;
}
.nw-access-actions .nw-add-btn {
	width: 100%;
	min-height: 42px;
}

:is(a, button, .nw-filter, .nw-quick-item):focus-visible {
	outline: 2px solid var(--c-focus);
	outline-offset: 2px;
}

/* ==========================================================
	7. Sidebar collapsed state and base responsive rules
========================================================== */

.nw-root.sidebar-collapsed .nw-side { width: 74px; }
.nw-root.sidebar-collapsed .nw-logo { justify-content: center; padding-inline: 12px; }
.nw-root.sidebar-collapsed .nw-brandname,
.nw-root.sidebar-collapsed .nw-navitem span,
.nw-root.sidebar-collapsed .nw-navlabel,
.nw-root.sidebar-collapsed .nw-nav-divider,
.nw-root.sidebar-collapsed .nw-streak span span,
.nw-root.sidebar-collapsed .nw-streak strong,
.nw-root.sidebar-collapsed .nw-ava-name,
.nw-root.sidebar-collapsed .nw-ava-sub {
	display: none;
}
.nw-root.sidebar-collapsed .nw-collapse-btn { margin-left: 0; }
.nw-root.sidebar-collapsed .nw-collapse-btn i { transform: rotate(180deg); }
.nw-root.sidebar-collapsed .nw-nav { padding-inline: 12px; }
.nw-root.sidebar-collapsed .nw-navitem { justify-content: center; padding-inline: 0; }

.nw-root.sidebar-collapsed .nw-streak { justify-content: center; padding: 10px 0; }
.nw-root.sidebar-collapsed .nw-avatar { justify-content: center; padding: 0px 0; border-radius: 50%; width: auto; }

@media (max-width: 1120px) {
	body { overflow: auto; }
	.nw-root { min-height: 100vh; height: auto; overflow: visible; }
	.nw-metrics, .nw-activity-map, .nw-passport-summary { grid-template-columns: 1fr; }
	.nw-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	body { overflow: auto; }
	.nw-root { display: block; min-height: 100vh; height: auto; overflow: visible; }
	.nw-mobile-menu { display: grid; }
	.nw-mobile-close {
		display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto;
		border: var(--border-width) solid transparent; border-radius: var(--r-sm);
		background: transparent; color: var(--c-text-muted); cursor: pointer;
		transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
		font-size: 20px;
	}
	.nw-mobile-close:hover { background: var(--c-surface-hover); border-color: var(--c-border-control); color: var(--c-text-soft); }
	.nw-mobile-close:active { transform: scale(.96); }
	.nw-mobile-brand { display: flex; align-items: center; gap: 9px; position: absolute; left: 50%; transform: translateX(-50%); }
	.nw-mobile-brand .nw-brandname { display: inline; }
	.nw-mobile-user { display: block; }
	.nw-mobile-avatar {
		display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-round);
		background: linear-gradient(135deg, var(--c-accent), var(--c-accent-3)); color: var(--c-white); font-weight: 900; font-size: 12px;
	}
	.nw-side {
		position: fixed; inset: 0; z-index: 30; width: 100vw; height: 100vh;
		overflow-y: auto; transform: translateX(-100%); box-shadow: none;
	}
	.nw-root.sidebar-open .nw-side { transform: translateX(0); box-shadow: 24px 0 80px rgba(0,0,0,.42); }
	.nw-root.sidebar-collapsed .nw-side { width: 100vw; }
	.nw-root.sidebar-collapsed .nw-logo { justify-content: flex-start; padding: 24px 20px 22px; }
	.nw-root.sidebar-collapsed .nw-brandname,
	.nw-root.sidebar-collapsed .nw-navitem span,
	.nw-root.sidebar-collapsed .nw-navlabel,
	.nw-root.sidebar-collapsed .nw-nav-divider,
	.nw-root.sidebar-collapsed .nw-streak span span,
	.nw-root.sidebar-collapsed .nw-streak strong,
	.nw-root.sidebar-collapsed .nw-avatar > div:not(.nw-ava-circle) { display: revert; }
	.nw-root.sidebar-collapsed .nw-navitem { justify-content: flex-start; padding-inline: 12px; }
	.nw-root.sidebar-collapsed .nw-navitem[data-tooltip]::after { display: none; }
	.nw-collapse-btn { display: none; }
	.nw-main { min-height: 100vh; overflow: visible; background-size: auto 70vh; }
	.nw-main::before {
		height: 70vh;
		margin-bottom: -70vh;
	}
	.nw-topbar {
		align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px;
		background: rgba(var(--c-app-rgb),.76);
		border-bottom-color: rgba(42,42,42,.72);
		-webkit-backdrop-filter: blur(18px);
		backdrop-filter: blur(18px);
	}
	.nw-top-left { flex: 1; justify-content: flex-start; }
	.nw-greeting, .nw-topright { display: none; }
	.nw-mobile-avatar { margin-left: auto; flex-shrink: 0; }
	.nw-currency-card, .nw-nw-xp-badge-big, .nw-walletbadge { min-height: 32px; }
	.nw-add-btn { min-height: 34px; padding-inline: 12px; }
	.nw-content { padding: 160px 16px 88px; }
	.nw-metric-value { font-size: 30px; }
	.nw-trip-card { margin-top: auto; }
	.nw-range { margin: 30px 0 0; }
	.nw-passport-summary { gap: 12px; }
	.nw-bottom-nav {
		position: fixed; left: 6px; right: 6px; bottom: 6px; z-index: 25;
		display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 8px;
		border-radius: var(--r-lg); background: rgba(20,20,20,.76); border: var(--border-width) solid rgba(42,42,42,.78);
		-webkit-backdrop-filter: blur(18px);
		backdrop-filter: blur(18px); box-shadow: 0 18px 60px rgba(0,0,0,.4);
	}
	.nw-bottom-nav a {
		min-height: 42px; display: grid; place-items: center; border-radius: var(--r-sm);
		color: var(--c-text-muted); text-decoration: none; font-size: 21px;
		transition: background .15s ease, color .15s ease, transform .12s ease;
	}
	.nw-bottom-nav a:hover { background: var(--c-surface-3); color: var(--c-text-soft); }
	.nw-bottom-nav a.active { color: var(--c-accent-2); background: rgba(var(--c-accent-rgb),.1); }
	.nw-bottom-nav a:active { transform: translateY(1px); }
}

@media (max-width: 560px) {
	.nw-walletbadge { max-width: 100%; }
	.nw-metrics { gap: 12px; }
	.nw-country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.nw-country { min-height: 118px; padding: 10px 8px; }
	.nw-stamp { width: 36px; height: 36px; font-size: 17px; }
	.nw-country strong { font-size: 11px; }
	.nw-country span { font-size: 9.5px; }
	.nw-claim-btn { min-height: 28px; padding-inline: 7px; font-size: 9.5px; }
	.nw-txn { grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; }
	.nw-txn-amt { grid-column: auto; text-align: right; }
}
/* ==========================================================
	8. Shared interaction and refinement layer
========================================================== */

/* MVP polish pass: states, animation, responsive behavior. */

@keyframes nwFadeUp {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes nwPopIn {
	from { opacity: 0; transform: scale(.97) translateY(6px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes nwPulseGlow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(var(--c-accent-rgb), .0); }
	50% { box-shadow: 0 0 0 5px rgba(var(--c-accent-rgb), .14); }
}

body.modal-open { overflow: hidden; }

.nw-card { animation: nwFadeUp var(--motion-slow) var(--ease-emphasis) both; }

button,
a,
.nw-filter,
.nw-quick-item {
	-webkit-tap-highlight-color: transparent;
}

:is(button, a, .nw-filter, .nw-quick-item):focus-visible {
	outline: 2px solid var(--c-focus);
	outline-offset: 3px;
}

:is(button, .nw-filter):disabled,
:is(button, .nw-filter)[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: .48;
	box-shadow: none;
	transform: none;
}

:is(.nw-add-btn, .nw-secondary-btn, .nw-icon-btn, .nw-currency-card, .nw-walletbadge, .nw-streak, .nw-avatar, .nw-claim-btn, .nw-quick-item, .nw-filter, .nw-modal-close, .nw-mobile-close, .nw-mobile-avatar, .nw-user-menu-item) {
	transition:
		background var(--motion-base) var(--ease-standard),
		border-color var(--motion-base) var(--ease-standard),
		box-shadow var(--motion-base) var(--ease-standard),
		color var(--motion-base) var(--ease-standard),
		transform var(--motion-fast) var(--ease-standard),
		opacity var(--motion-base) var(--ease-standard);
}

:is(.nw-add-btn, .nw-secondary-btn, .nw-icon-btn, .nw-currency-card, .nw-walletbadge, .nw-streak, .nw-avatar, .nw-claim-btn, .nw-quick-item, .nw-filter, .nw-modal-close, .nw-mobile-close, .nw-mobile-avatar, .nw-user-menu-item):active:not(:disabled) {
	transform: translateY(1px) scale(.99);
}

.nw-collapse-btn {
	top: 26px;
	right: -15px;
	z-index: 5;
	border-radius: var(--r-pill);
	box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

.nw-root.sidebar-collapsed .nw-collapse-btn {
	right: -15px;
	top: 26px;
}

.nw-root.sidebar-collapsed .nw-logo { position: relative; }

.nw-topright,
.nw-notification-wrap,
.nw-wallet-wrap,
.nw-bottom { position: relative; }

.nw-walletbadge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: var(--control-md);
	padding: 0 var(--space-3);
	background: var(--c-surface-2);
	border: var(--border-width) solid var(--c-border);
	border-radius: var(--r-sm);
	color: var(--c-text-soft);
	font: inherit;
	font-size: var(--text-sm);
	font-weight: 800;
	cursor: pointer;
}
.nw-walletbadge:hover { background: var(--c-surface-hover); border-color: var(--c-border-control); box-shadow: 0 0 0 4px rgba(var(--c-surface-rgb), .34); }
.nw-walletbadge[aria-expanded="true"] { border-color: rgba(var(--c-accent-rgb), .6); }
.nw-walletbadge img { width: 16px; height: 16px; }

.nw-notifications-menu,
.nw-profile-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 40;
	display: none;
	width: min(320px, calc(100vw - 24px));
	padding: var(--space-2);
	border: var(--border-width) solid var(--c-border);
	border-radius: var(--r-lg);
	background: rgba(var(--c-surface-rgb), .96);
	box-shadow: var(--shadow-popover);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	animation: nwPopIn var(--motion-base) var(--ease-emphasis) both;
}
.nw-profile-menu { left: 0; right: auto; bottom: calc(100% + 10px); top: auto; width: 270px; }
.nw-notifications-menu.open,
.nw-profile-menu.open { display: block; }

.nw-popover-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-2) var(--space-2) var(--space-3);
}
.nw-popover-head h3,
.nw-profile-card h3 { color: var(--c-text-strong); font-size: var(--text-md); font-weight: 900; }
.nw-popover-head span { color: var(--c-accent-3); font-size: var(--text-xs); font-weight: 900; }

.nw-profile-card {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3);
	border-radius: var(--r-md);
	background: var(--c-surface-3);
	border: var(--border-width) solid var(--c-border-strong);
	margin-bottom: var(--space-2);
}
.nw-profile-card.compact { margin: 0 0 var(--space-2); }
.nw-profile-card img { width: 38px; height: 38px; }
.nw-profile-card p { margin-top: 3px; color: var(--c-text-dim); font-size: var(--text-xs); font-weight: 700; line-height: 1.35; }

.nw-alert-row,
.nw-menu-row,
.nw-view-all {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: var(--control-lg);
	padding: var(--space-2) var(--space-3);
	border-radius: var(--r-sm);
	color: var(--c-text-soft);
	text-decoration: none;
}
.nw-alert-row:hover,
.nw-menu-row:hover,
.nw-view-all:hover { background: var(--c-surface-3); }
.nw-alert-row i,
.nw-menu-row i { color: var(--c-accent-2); font-size: 18px; }
.nw-alert-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nw-alert-row strong,
.nw-menu-row span { font-size: var(--text-sm); font-weight: 900; }
.nw-alert-row small { color: var(--c-text-dim); font-size: var(--text-xs); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-view-all { justify-content: center; margin-top: var(--space-1); color: var(--c-accent-2); font-size: var(--text-sm); font-weight: 900; }

.nw-content {
	gap: clamp(var(--space-3), 2vw, var(--space-5));
	padding: clamp(96px, 14vh, 160px) clamp(var(--space-4), 2.4vw, var(--space-7)) var(--space-7);
}

.nw-section-hd.compact { margin-bottom: var(--space-3); }
.nw-section-hd h2 { font-size: clamp(var(--text-lg), 1.4vw, var(--text-xl)); }
.nw-section-hd p { font-size: var(--text-sm); line-height: 1.35; }
.nw-metric-title { font-size: var(--text-xs); }
.nw-metric-value { font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); }
.nw-metric-value .currency { font-size: .82em; }

.nw-quick-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--space-3);
}
.nw-quick-list > * { min-width: 0; }
.nw-quick-item { min-height: 54px; padding: var(--space-2); }
.nw-quick-item:hover { transform: translateY(-1px); }
.nw-quick-item[data-tooltip] { position: relative; }
.nw-quick-item[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	z-index: 25;
	padding: 6px 8px;
	border-radius: var(--r-sm);
	background: var(--c-surface);
	border: var(--border-width) solid var(--c-border);
	box-shadow: 0 12px 34px rgba(0,0,0,.3);
	color: var(--c-text-soft);
	font-size: var(--text-xs);
	font-weight: 900;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard);
}
.nw-quick-item[data-tooltip]:hover::after,
.nw-quick-item[data-tooltip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.nw-map-stack {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
	gap: var(--space-3);
	min-width: 0;
}
.nw-map-card,
.nw-leaderboard-card { min-width: 0; }
.nw-map-frame { height: clamp(240px, 32vw, 360px); isolation: isolate; }
.nw-real-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	filter: saturate(.72) contrast(1.04) brightness(.78);
}
.nw-map-overlay {
	background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.22));
}
.nw-map-actions .nw-filter { text-decoration: none; }

.nw-leaderboard-card { padding: var(--space-4); }
.nw-leaderboard-list { display: grid; gap: var(--space-2); }
.nw-leader-row {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--space-2);
	min-height: 40px;
	padding: 0 var(--space-3);
	border-radius: var(--r-sm);
	background: var(--c-surface-3);
	border: var(--border-width) solid var(--c-border-strong);
}
.nw-leader-row strong {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: var(--r-pill);
	background: var(--c-surface-2);
	color: var(--c-text-dim);
	font-size: var(--text-xs);
}
.nw-leader-row span { color: var(--c-text-soft); font-size: var(--text-sm); font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-leader-row em { color: var(--c-text-faint); font-size: var(--text-xs); font-style: normal; font-weight: 900; white-space: nowrap; }
.nw-leader-row.active em { color: var(--c-warning); }
.nw-leader-row.active { border-color: rgba(var(--c-accent-rgb), .45); background: rgba(var(--c-accent-rgb), .1); animation: nwPulseGlow 2.8s var(--ease-standard) infinite; }
.nw-leader-row.active strong { background: var(--c-accent); color: var(--c-white); }

.nw-modal-backdrop.open .nw-modal { animation: nwPopIn var(--motion-base) var(--ease-emphasis) both; }
.nw-input {
	width: 100%;
	min-height: var(--control-lg);
	padding: 0 var(--space-3);
	border-radius: var(--r-sm);
	background: var(--c-surface-3);
	border: var(--border-width) solid var(--c-border-strong);
	color: var(--c-text-soft);
	font: inherit;
	font-size: var(--text-md);
	font-weight: 800;
}
.nw-input:focus, .nw-input:focus-visible,
.nw-select:focus, .nw-select:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.nw-input.nw-amount-input {
	min-height: 76px;
	padding: 0 var(--space-4);
	font-size: var(--text-4xl);
	font-weight: 900;
	letter-spacing: -.04em;
}
.nw-amount-group--compact .nw-input.nw-amount-input {
	min-height: 64px;
	font-size: var(--text-3xl);
}

.nw-streak-modal { width: min(720px, 100%); }
.nw-streak-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: var(--space-2);
}
.nw-streak-day {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	min-height: 154px;
	padding: var(--space-3);
	border-radius: var(--r-md);
	background: var(--c-surface-3);
	border: var(--border-width) solid var(--c-border-strong);
}
.nw-streak-day span { color: var(--c-text-dim); font-size: var(--text-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.nw-streak-day strong { color: var(--c-text-strong); font-size: var(--text-lg); font-weight: 900; }
.nw-streak-day small { flex: 1; color: var(--c-text-muted); font-size: var(--text-xs); font-weight: 700; line-height: 1.35; }
.nw-streak-day.ready { border-color: rgba(var(--c-accent-rgb), .5); background: rgba(var(--c-accent-rgb), .08); }
.nw-streak-day.claimed { border-color: rgba(34,197,94,.34); background: rgba(34,197,94,.08); }
.nw-streak-day.claimed strong { color: var(--c-success); }
.nw-streak-note {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	margin-top: var(--space-4);
	padding: var(--space-3);
	border-radius: var(--r-sm);
	background: var(--c-surface-2);
	border: var(--border-width) solid var(--c-border);
	color: var(--c-text-dim);
	font-size: var(--text-sm);
	font-weight: 700;
	line-height: 1.5;
}
.nw-streak-note i { color: var(--c-accent-2); font-size: 18px; }
.nw-streak-note code { color: var(--c-text-soft); }

.nw-wallet-modal { width: min(560px, 100%); }
.nw-wallet-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-2);
	padding: var(--space-1);
	border-radius: var(--r-md);
	background: var(--c-surface-2);
	border: var(--border-width) solid var(--c-border);
	margin-bottom: var(--space-4);
}
.nw-wallet-tabs button {
	min-height: var(--control-md);
	border: 0;
	border-radius: var(--r-sm);
	background: transparent;
	color: var(--c-text-muted);
	font: inherit;
	font-size: var(--text-sm);
	font-weight: 900;
	cursor: pointer;
}
.nw-wallet-tabs button.active { background: var(--c-accent); color: var(--c-white); }
.nw-wallet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.nw-wallet-row {
	padding: var(--space-4);
	border-radius: var(--r-md);
	background: var(--c-surface-3);
	border: var(--border-width) solid var(--c-border-strong);
}
.nw-wallet-row span { display: block; color: var(--c-text-dim); font-size: var(--text-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.nw-wallet-row strong { display: block; margin-top: 6px; color: var(--c-text-strong); font-size: var(--text-lg); font-weight: 900; }
.nw-modal-actions.split { justify-content: space-between; }

.nw-txn.is-new { animation: nwFadeUp var(--motion-slow) var(--ease-emphasis) both; }

@media (max-width: 1280px) {
	.nw-activity-map { grid-template-columns: 1fr; }
	.nw-map-stack { grid-template-columns: minmax(0, 1fr) minmax(260px, .5fr); }
}

@media (max-width: 960px) {
	.nw-quick-list { grid-template-columns: repeat(5, minmax(70px, 1fr)); }
	.nw-quick-item { justify-content: center; }
	.nw-quick-item div { min-width: 0; }
	.nw-quick-item strong { font-size: var(--text-md); }
	.nw-map-stack { grid-template-columns: 1fr; }
	.nw-streak-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.nw-content { padding: 88px var(--space-4) 88px; }
	.nw-mobile-user-menu { animation: nwPopIn var(--motion-base) var(--ease-emphasis) both; }
	.nw-notifications-menu {
		position: fixed;
		top: 70px;
		right: var(--space-3);
	}
}

@media (max-width: 620px) {
	.nw-quick-card { padding: 0; }
	.nw-quick-list {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: var(--space-2);
	}
	.nw-quick-item {
		min-height: 54px;
		justify-content: center;
		padding: 2px;
	}
	.nw-quick-item div { display: none; }
	.nw-quick-item i { width: 100%; height: 100%; font-size: 24px; }
	.nw-streak-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nw-currency-grid,
	.nw-wallet-grid { grid-template-columns: 1fr; }
	.nw-modal-actions,
	.nw-modal-actions.split { flex-direction: column-reverse; align-items: stretch; }
	.nw-add-btn,
	.nw-secondary-btn { width: 100%; }
}

@media (max-width: 420px) {
	.nw-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nw-txn { grid-template-columns: 34px minmax(0,1fr); }
	.nw-txn-amt { grid-column: 2; text-align: left; }
	.nw-map-frame { height: 260px; }
}

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


/* ==========================================================
	9. Route-level views and reusable page components
========================================================== */

/* Route-rendered main views. */
.nw-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-1) 0 var(--space-1);
	animation: nwFadeUp var(--motion-slow) var(--ease-emphasis) both;
}
.nw-page-actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-3);
	flex-wrap: wrap;
	margin-left: auto;
}
.nw-page-eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 0 var(--space-2);
	border-radius: var(--r-pill);
	background: rgba(var(--c-accent-rgb), .1);
	color: var(--c-accent-3);
	font-size: var(--text-xs);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .7px;
}
.nw-page-head h2 {
	margin-top: var(--space-2);
	color: var(--c-text-strong);
	font-size: clamp(var(--text-2xl), 4vw, 42px);
	font-weight: 900;
	letter-spacing: -.04em;
}
.nw-page-head p {
	max-width: 720px;
	margin-top: var(--space-2);
	color: var(--c-text-dim);
	font-size: var(--text-md);
	font-weight: 700;
	line-height: 1.55;
}
.nw-page-card { padding: clamp(var(--space-4), 2vw, var(--space-6)); }
.nw-page-grid {
	display: grid;
	gap: var(--space-4);
}
.nw-page-grid.two { grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr); }
.nw-page-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nw-page-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* No inline bars/progress values. */
.nw-bar--12 { height: 12px; }
.nw-bar--18 { height: 18px; }
.nw-bar--22 { height: 22px; }
.nw-bar--28 { height: 28px; }
.nw-bar--31 { height: 31px; }
.nw-bar--36 { height: 36px; }
.nw-warning-text { color: var(--c-accent-2); }
.nw-range--trip span { width: 60%; }
.nw-range--passport span { width: 46%; }

/* Transaction template variants. */
.nw-txn-icon--food { background: rgba(var(--c-accent-rgb), .1); color: var(--c-accent-2); }
.nw-txn-icon--crypto { background: rgba(34, 197, 94, .1); color: var(--c-success); }
.nw-txn-icon--travel { background: rgba(59, 130, 246, .1); color: #60a5fa; }
.nw-txn-icon--shop { background: rgba(146, 74, 250, .12); color: var(--c-solana); }
.nw-txn-icon--neutral { background: var(--c-border-soft); color: #9a9a9a; }
.nw-txn-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-1);
}
.nw-txn-meta .nw-badge { margin-left: 0; }
.nw-badge i { font-size: 12px; margin-right: 4px; }
.nw-badge--method { color: var(--c-text-muted); background: rgba(255,255,255,.05); }

/* Expenses route. */
.nw-filter-nav {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding-bottom: var(--space-4);
	margin-bottom: var(--space-2);
	overflow-x: auto;
	scrollbar-width: thin;
}
.nw-filter-nav .nw-filter {
	white-space: nowrap;
	text-decoration: none;
}
.nw-expense-groups {
	display: grid;
	gap: var(--space-5);
}
.nw-expense-day {
	display: grid;
	gap: var(--space-2);
}
.nw-expense-day-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding-bottom: var(--space-2);
	border-bottom: var(--border-width) solid var(--c-border-soft);
}
.nw-expense-day-hd h3 {
	color: var(--c-text-soft);
	font-size: var(--text-lg);
	font-weight: 900;
}
.nw-expense-day-hd span {
	color: var(--c-text-muted);
	font-size: var(--text-sm);
	font-weight: 900;
}
.nw-empty-state {
	display: grid;
	place-items: center;
	gap: var(--space-2);
	min-height: 220px;
	padding: var(--space-6);
	text-align: center;
	border-radius: var(--r-lg);
	background: var(--c-surface-3);
	border: var(--border-width) dashed var(--c-border-strong);
}
.nw-empty-state i { color: var(--c-accent-2); font-size: 30px; }
.nw-empty-state h3 { color: var(--c-text-soft); font-size: var(--text-xl); font-weight: 900; }
.nw-empty-state p { color: var(--c-text-dim); font-size: var(--text-sm); font-weight: 700; }

/* In-page wallet/profile/notifications/shop/quest views. */
.nw-wallet-actions {
	display: flex;
	justify-content: flex-end;
	gap: var(--space-3);
	margin-top: var(--space-4);
}
.nw-notification-list {
	display: grid;
	gap: var(--space-2);
}
.nw-alert-row--page {
	grid-template-columns: 38px minmax(0, 1fr) auto;
	min-height: 64px;
	text-decoration: none;
}
.nw-alert-row--page em {
	color: var(--c-text-faint);
	font-size: var(--text-xs);
	font-style: normal;
	font-weight: 800;
	white-space: nowrap;
}
.nw-profile-page-card { padding: var(--space-5); }
.nw-profile-layout .nw-profile-appearance-card { grid-column: 1 / -1; }
.nw-profile-hero {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	align-items: start;
	gap: var(--space-4);
}
.nw-profile-hero img {
	width: 120px;
	height: auto;
	border-radius: var(--r-round);
	border: 3px solid rgba(var(--c-accent-rgb), .35);
}
.nw-profile-hero h3 {
	color: var(--c-text-strong);
	font-size: var(--text-xl);
	font-weight: 900;
}
.nw-profile-hero p {
	margin-top: var(--space-1);
	color: var(--c-text-dim);
	font-size: var(--text-sm);
	font-weight: 700;
}
.nw-passport-metric-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-3);
}
.nw-country-select { font-family: var(--font-sans), "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.nw-profile-appearance-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
}
.nw-country-grid--full {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}
.nw-quest-card {
	display: grid;
	align-content: start;
	gap: var(--space-3);
	min-height: 220px;
	padding: var(--space-5);
	text-decoration: none;
}
.nw-quest-card > i {
	display: grid;
	place-items: center;
	width: 120px;
	height: 120px;
	border-radius: var(--r-md);
	background: rgba(var(--c-accent-rgb), .12);
	color: var(--c-accent-2);
	font-size: 64px;
}
.nw-quest-card h3 {
	color: var(--c-text-soft);
	font-size: var(--text-lg);
	font-weight: 900;
}
.nw-quest-card p {
	color: var(--c-text-dim);
	font-size: var(--text-sm);
	font-weight: 700;
	line-height: 1.5;
}
/* Route controls should behave like consistent buttons, even when rendering as links. */
.nw-filter,
.nw-menu-row,
.nw-quest-card {
	transition: background var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard), transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard);
}
.nw-filter:hover,
.nw-menu-row:hover,
.nw-quest-card:hover {
	transform: translateY(-1px);
}
.nw-filter:active,
.nw-menu-row:active,
.nw-quest-card:active {
	transform: translateY(0);
}

@media (max-width: 960px) {
	.nw-page-grid.two { grid-template-columns: 1fr; }
	.nw-page-grid.three { grid-template-columns: 1fr; }
	.nw-country-grid--full { grid-template-columns: 1fr; }
	.nw-page-head { align-items: flex-start; flex-direction: column; }
	.nw-page-head > * { width: 100%; }
	.nw-wallet-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 620px) {
	.nw-page-card,
	.nw-profile-page-card { padding: var(--space-4); }
	.nw-alert-row--page { grid-template-columns: 34px minmax(0, 1fr); }
	.nw-alert-row--page em { grid-column: 2; }
	.nw-profile-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.nw-passport-metric-row { justify-content: center; }
	.nw-profile-appearance-grid { grid-template-columns: 1fr; }
}

.nw-secondary-btn.nw-copy-btn {
	width: auto;
	height: auto;
	min-height: var(--control-md);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	margin-right: 0;
	padding: 0 var(--space-4);
	border: var(--border-width) solid var(--c-border);
	background: var(--c-surface-2);
}
.nw-wallet-tabs button:focus-visible,
.nw-filter:focus-visible,
.nw-menu-row:focus-visible,
.nw-quest-card:focus-visible {
	outline: 2px solid var(--c-focus);
	outline-offset: 2px;
}

/* ==========================================================
	10. Page modules: wallet, trips, expenses, map, shop, passport, quests
========================================================== */

.nw-logo-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	color: var(--c-text-soft);
	text-decoration: none;
	min-width: 0;
}
.nw-mobile-brand {
	align-items: center;
	gap: var(--space-2);
	color: var(--c-text-soft);
	text-decoration: none;
}
.nw-logo-link:hover .nw-brandname,
.nw-mobile-brand:hover .nw-brandname { color: var(--c-text-strong); }
.nw-root.sidebar-collapsed .nw-logo-link .nw-brandname { display: none; }
.nw-root.sidebar-collapsed .nw-logo-link { justify-content: center; }

.nw-field-full { margin-top: var(--space-3); }
.nw-textarea { min-height: 86px; padding-top: var(--space-3); resize: vertical; line-height: 1.45; }

.nw-notifications-menu { right: 0; }
.nw-notification-btn[aria-expanded="true"] { border-color: rgba(var(--c-accent-rgb), .55); color: var(--c-accent-2); }

.nw-streak-total-card {
	display: grid;
	align-content: center;
	gap: var(--space-2);
	min-height: 320px;
	padding: clamp(var(--space-5), 3vw, 36px);
	background:
		radial-gradient(circle at 80% 20%, rgba(var(--c-accent-rgb), .18), transparent 34%),
		var(--c-surface);
}
.nw-streak-total-card > span {
	color: var(--c-text-dim);
	font-size: var(--text-xs);
	font-weight: 900;
	letter-spacing: .9px;
	text-transform: uppercase;
}
.nw-streak-total-card > strong {
	color: var(--c-text-strong);
	font-size: clamp(72px, 9vw, 118px);
	font-weight: 900;
	letter-spacing: -6px;
	line-height: .86;
}
.nw-streak-total-card small {
	color: var(--c-accent-2);
	font-size: var(--text-2xl);
	font-weight: 900;
	align-self: flex-end;
	margin-bottom: 8px;
	letter-spacing: -1px;
}
.nw-streak-total-card p {
	color: var(--c-text-muted);
	font-size: var(--text-md);
	font-weight: 700;
	line-height: 1.5;
}
.nw-freeze-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
	min-height: 30px;
	padding: 0 10px;
	border-radius: var(--r-pill);
	background: rgba(96,165,250,.13);
	border: var(--border-width) solid rgba(96,165,250,.28);
	color: #93c5fd;
	font-size: var(--text-xs);
	font-weight: 900;
}
.streak-layout { align-items: stretch; }
.streak-layout .nw-page-card { display: grid; align-content: center; }
.nw-streak-day.ready {
	border-color: rgba(var(--c-accent-rgb), .58);
	box-shadow: inset 0 0 0 1px rgba(var(--c-accent-rgb), .16), 0 0 0 4px rgba(var(--c-accent-rgb), .06);
}
.nw-streak-day.claimed::after {
	content: "✓";
	position: absolute;
	top: var(--space-3);
	right: var(--space-3);
	color: var(--c-success);
	font-weight: 900;
}

.nw-leader-row.nw-rank-gold strong { background: linear-gradient(135deg, #facc15, #f59e0b); color: #2b1700; }
.nw-leader-row.nw-rank-silver strong { background: linear-gradient(135deg, #e5e7eb, #94a3b8); color: #111827; }
.nw-leader-row.nw-rank-bronze strong { background: linear-gradient(135deg, #f59e0b, #92400e); color: #fff7ed; }

.nw-wallet-sections { align-items: stretch; }
.nw-wallet-section-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	min-height: 440px;
	padding: var(--space-5);
}
.nw-wallet-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}
.nw-wallet-section-head > div {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}
.nw-wallet-section-head i {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--r-md);
	background: rgba(var(--c-accent-rgb), .12);
	color: var(--c-accent-2);
	font-size: 22px;
}
.nw-wallet-section-head h3 {
	color: var(--c-text-strong);
	font-size: var(--text-xl);
	font-weight: 900;
}
.nw-wallet-section-head span {
	color: var(--c-text-faint);
	font-size: var(--text-xs);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .7px;
}
.nw-wallet-asset-list {
	display: grid;
	gap: var(--space-3);
}
.nw-wallet-asset-row {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	align-items: start;
	gap: var(--space-3);
	min-height: 74px;
	padding: var(--space-3);
	border: var(--border-width) solid var(--c-border-strong);
	border-radius: var(--r-md);
	background: var(--c-surface-3);
}
.nw-asset-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: var(--r-md);
	background: rgba(255,255,255,.06);
	color: var(--c-accent-2);
	font-size: 22px;
	overflow: hidden;
}
.nw-asset-icon img { width: 24px; height: 24px; object-fit: contain; }
.nw-asset-main { min-width: 0; }
.nw-asset-main strong,
.nw-asset-main span,
.nw-asset-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-asset-main strong { color: var(--c-text-soft); font-size: var(--text-md); font-weight: 900; }
.nw-asset-main span { margin-top: 3px; color: var(--c-text-strong); font-size: var(--text-lg); font-weight: 900; }
.nw-asset-main small { margin-top: 3px; color: var(--c-text-dim); font-size: var(--text-xs); font-weight: 700; }
.nw-wallet-asset-row .nw-copy-btn {
	width: 34px;
	height: 34px;
	margin: 0;
	border: var(--border-width) solid var(--c-border);
	background: var(--c-surface-2);
}
.nw-wallet-asset-row .nw-copy-btn.copied { color: var(--c-success); border-color: rgba(34,197,94,.45); }

.nw-expense-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: var(--space-3);
	margin-bottom: var(--space-3);
}
.nw-expense-toolbar .nw-filter-nav { margin-bottom: 0; padding-bottom: var(--space-2); }
.nw-trip-filter-wrap {
	display: grid;
	gap: var(--space-1);
	min-width: 210px;
}
.nw-trip-filter-label {
	color: var(--c-text-dim);
	font-size: var(--text-2xs);
	font-weight: 900;
	letter-spacing: .8px;
	text-transform: uppercase;
}
.nw-trip-filter { height: var(--control-lg); }
.nw-badge--trip { color: #c7d2fe; background: rgba(99,102,241,.12); }
.nw-txn {
	color: inherit;
	text-decoration: none;
	margin: 0 calc(-1 * var(--space-2));
	padding: 12px var(--space-2);
	border: 1px solid transparent;
	border-bottom-color: var(--c-border-soft);
	border-radius: var(--r-sm);
	transition: background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}
.nw-txn:hover {
	border-color: rgba(var(--c-accent-rgb), .34);
	background: rgba(255,255,255,.045);
	transform: translateY(-1px);
}
.nw-expense-detail-card { display: grid; gap: var(--space-5); }
.nw-expense-detail-top {
	display: flex;
	align-items: start;
	gap: var(--space-4);
	padding-bottom: var(--space-4);
	border-bottom: var(--border-width) solid var(--c-border-soft);
}
.nw-expense-detail-top > div:last-child { display: grid; gap: 4px; min-width: 0; }
.nw-expense-detail-top span,
.nw-expense-detail-grid span,
.nw-expense-note span {
	color: var(--c-text-dim);
	font-size: var(--text-xs);
	font-weight: 900;
	letter-spacing: .7px;
	text-transform: uppercase;
}
.nw-expense-detail-top strong {
	color: var(--c-text-strong);
	font-size: var(--text-3xl);
	font-weight: 900;
	letter-spacing: -.04em;
}
.nw-expense-detail-top small {
	color: var(--c-text-muted);
	font-size: var(--text-sm);
	font-weight: 800;
}
.nw-expense-detail-grid {
	display: grid;
	gap: -1px;
}
.nw-expense-detail-grid div {
	display: grid;
	grid-template-columns: minmax(112px, .42fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--space-3);
	min-height: 54px;
	padding: var(--space-3) var(--space-4);
	border-radius: 0;
	background: rgba(255,255,255,.035);
	border: var(--border-width) solid var(--c-border-soft);
}
.nw-expense-detail-grid div:first-child {
	border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.nw-expense-detail-grid div:last-child {
	border-radius: 0 0 var(--r-sm) var(--r-sm);
}

.nw-expense-detail-grid strong {
	color: var(--c-text-soft);
	font-size: var(--text-md);
	font-weight: 900;
	overflow-wrap: anywhere;
	text-align: right;
	justify-self: end;
}
.nw-detail-muted { color: var(--c-text-muted) !important; }
.nw-expense-detail-link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
	padding: 4px 6px;
	margin: -4px -6px;
	border-radius: var(--r-xs);
	color: var(--c-text-soft);
	text-decoration: none;
	justify-self: end;
	text-align: right;
	transition: color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}
.nw-expense-detail-link:hover {
	background: rgba(var(--c-accent-rgb), .1);
	color: var(--c-accent-2);
}
.nw-expense-detail-link:focus-visible {
	outline: 2px solid var(--c-focus);
	outline-offset: 3px;
	background: rgba(var(--c-accent-rgb), .12);
	color: var(--c-accent-2);
}
.nw-expense-detail-link:active {
	transform: translateY(1px);
	background: rgba(var(--c-accent-rgb), .16);
	color: var(--c-accent-3);
}
.nw-expense-detail-link:visited { color: var(--c-text-soft); }
.nw-expense-detail-link:visited:hover,
.nw-expense-detail-link:visited:focus-visible { color: var(--c-accent-2); }
.nw-expense-detail-link .ti-arrow-right { color: var(--c-text-muted); font-size: var(--text-md); }
.nw-mini-category-icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	border-radius: var(--r-xs);
	background: color-mix(in srgb, var(--category-color, var(--c-accent-2)) 18%, transparent);
	color: var(--category-color, var(--c-accent-2));
}
.nw-mini-category-icon i { font-size: var(--text-lg); }
.nw-expense-detail-link--category strong { text-transform: capitalize; }
.nw-receipt-thumb {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-2);
	min-width: 0;
	max-width: 100%;
	padding: 4px;
	border: var(--border-width) solid var(--c-border-soft);
	border-radius: var(--r-sm);
	background: rgba(255,255,255,.04);
	color: var(--c-text-soft);
	font: inherit;
	font-weight: 900;
	cursor: pointer;
	justify-self: end;
	text-align: right;
	transition: border-color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}
.nw-receipt-thumb:hover {
	border-color: rgba(var(--c-accent-rgb), .4);
	background: rgba(var(--c-accent-rgb), .1);
	transform: translateY(-1px);
}
.nw-receipt-thumb:focus-visible {
	outline: 2px solid var(--c-focus);
	outline-offset: 3px;
	border-color: rgba(var(--c-accent-rgb), .5);
}
.nw-receipt-thumb:active { transform: translateY(1px); }
.nw-receipt-thumb img {
	width: 58px;
	height: 58px;
	border-radius: var(--r-xs);
	object-fit: cover;
	background: rgba(255,255,255,.06);
}
.nw-receipt-thumb span {
	max-width: 180px;
	color: var(--c-text-soft);
	font-size: var(--text-sm);
	letter-spacing: 0;
	text-transform: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.nw-receipt-modal {
	width: min(720px, 100%);
	max-height: min(820px, calc(100vh - 32px));
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
}
.nw-receipt-modal img {
	width: 100%;
	max-height: 70vh;
	object-fit: contain;
	border-radius: var(--r-md);
	background: rgba(255,255,255,.035);
	border: var(--border-width) solid var(--c-border-soft);
}
.nw-expense-note {
	display: grid;
	gap: var(--space-2);
	padding: var(--space-4);
	border-radius: var(--r-md);
	background: rgba(var(--c-accent-rgb), .08);
	border: var(--border-width) solid rgba(var(--c-accent-rgb), .18);
}
.nw-expense-note p {
	color: var(--c-text-soft);
	font-size: var(--text-sm);
	font-weight: 700;
	line-height: 1.5;
}

.nw-trip-list {
	display: grid;
	gap: var(--space-4);
}
.nw-trip-visual-card,
.nw-trip-detail-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-color: var(--c-surface-3);
	background-size: cover;
	background-position: center;
}
.nw-trip-visual-card::before,
.nw-trip-detail-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.2));
}
.nw-trip-visual-card {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-4);
	min-height: 230px;
	padding: var(--space-5);
	text-decoration: none;
	color: var(--c-text-soft);
	border-width: 2px;
}
.nw-trip-visual-card.featured { min-height: 310px; }
.nw-trip-visual-card span,
.nw-trip-detail-hero span {
	color: var(--c-accent-3);
	font-size: var(--text-xs);
	font-weight: 900;
	letter-spacing: .8px;
	text-transform: uppercase;
}
.nw-trip-visual-card h3,
.nw-trip-detail-hero h3 {
	margin-top: var(--space-1);
	color: var(--c-text-strong);
	font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
	font-weight: 900;
	letter-spacing: -1px;
}
.nw-trip-visual-card p,
.nw-trip-detail-hero p {
	margin-top: var(--space-1);
	color: rgba(255,255,255,.72);
	font-size: var(--text-sm);
	font-weight: 700;
}
.nw-trip-visual-card > strong {
	flex-shrink: 0;
	color: var(--c-text-strong);
	font-size: var(--text-xl);
	font-weight: 900;
}
.nw-trip-visual-card:hover { 
	transform: translateY(-2px); border-color: rgba(var(--c-accent-rgb), .38); 
	box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb),.13);
}
.nw-trip-detail-hero {
	display: flex;
	align-items: flex-end;
	min-height: 320px;
	padding: var(--space-6);
	border-radius: var(--r-lg);
	border: var(--border-width) solid var(--c-border);
	box-shadow: var(--shadow-card);
}
.nw-trip-bg--bangkok { background-image: url('../data/images/trips/bangkok.jpg'); }
.nw-trip-bg--hcmc { background-image: url('../data/images/trips/hcmc.jpg'); }
.nw-trip-bg--bali { background-image: url('../data/images/trips/bali.jpg'); }
.nw-trip-bg--lisbon { background-image: url('../data/images/trips/lisbon.jpg'); }
.nw-trip-stat {
	padding: var(--space-5);
}
.nw-trip-stat span,
.nw-trip-stat small {
	display: block;
	color: var(--c-text-dim);
	font-size: var(--text-xs);
	font-weight: 800;
}
.nw-trip-stat strong {
	display: block;
	margin: var(--space-2) 0;
	color: var(--c-text-strong);
	font-size: var(--text-2xl);
	font-weight: 900;
}

.nw-country-grid--passport {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-top: var(--space-4);
}
.nw-passport .nw-country-grid { gap: var(--space-2); }
.nw-passport .nw-country { min-height: 126px; }

.nw-quest-grid .nw-quest-card { min-height: 320px; }
.nw-quest-card em {
	align-self: end;
	color: var(--c-text-faint);
	font-size: var(--text-xs);
	font-style: normal;
	font-weight: 900;
}

.nw-billing-toggle {
	display: inline-grid;
	grid-template-columns: repeat(2, minmax(120px, 1fr));
	gap: var(--space-1);
	padding: var(--space-1);
	margin-bottom: var(--space-4);
	border: var(--border-width) solid var(--c-border);
	border-radius: var(--r-md);
	background: var(--c-surface-2);
}
.nw-billing-toggle a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: var(--control-lg);
	padding: 0 var(--space-4);
	border-radius: var(--r-sm);
	color: var(--c-text-muted);
	font-size: var(--text-sm);
	font-weight: 900;
	text-decoration: none;
}
.nw-billing-toggle a.active {
	background: var(--c-accent);
	color: var(--c-white);
}
.nw-billing-toggle span { font-size: var(--text-xs); opacity: .82; }
.nw-price-card {
	display: grid;
	gap: var(--space-4);
	padding: var(--space-5);
	min-height: 500px;
}
.nw-price-card.featured {
	border: 2px solid rgba(var(--c-accent-rgb), 0.45);
	box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), .08), var(--shadow-card);
}
.nw-price-card > span {
	width: fit-content;
	padding: 5px 12px;
	border-radius: var(--r-pill);
	background: rgba(var(--c-accent-rgb), .12);
	color: var(--c-accent-2);
	font-size: var(--text-xs);
	font-weight: 900;
}
.nw-price-card h3 {
	color: var(--c-text-strong);
	font-size: var(--text-2xl);
	font-weight: 900;
}
.nw-price-card p,
.nw-price-card li {
	color: var(--c-text-dim);
	font-size: var(--text-sm);
	font-weight: 700;
	line-height: 1.55;
}
.nw-price {
	display: flex;
	align-items: baseline;
	gap: var(--space-2);
}
.nw-price strong {
	color: var(--c-text-strong);
	font-size: clamp(42px, 5vw, 60px);
	font-weight: 900;
	letter-spacing: -2px;
}
.nw-price small { color: var(--c-text-dim); font-size: var(--text-sm); font-weight: 800; }
.nw-price-card ul {
	display: grid;
	gap: var(--space-2);
	list-style: none;
}
.nw-price-card li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
}
.nw-price-card li i { color: var(--c-success); margin-top: 2px; }
.nw-price-card .nw-add-btn { align-self: end; }

.nw-secondary-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	text-decoration: none;
}

@media (max-width: 1180px) {
	.nw-wallet-sections,
	.nw-pricing-grid,
	.nw-quest-grid { grid-template-columns: 1fr; }
	.nw-wallet-section-card { min-height: auto; }
}

@media (max-width: 860px) {
	.nw-expense-toolbar { grid-template-columns: 1fr; }
	.nw-trip-filter-wrap { min-width: 0; }
	.nw-country-grid--passport { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
	.nw-trip-visual-card,
	.nw-trip-detail-hero { min-height: 240px; padding: var(--space-4); }
	.nw-trip-visual-card { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
	.nw-wallet-asset-row { grid-template-columns: 38px minmax(0, 1fr) auto; padding: var(--space-2); }
	.nw-asset-icon { width: 38px; height: 38px; }
	.nw-country-grid--passport { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nw-billing-toggle { display: grid; width: 100%; }
}

@media (max-width: 420px) {
	.nw-txn { grid-template-columns: 34px minmax(0,1fr) auto; align-items: start; }
	.nw-txn-amt { grid-column: auto; text-align: right; justify-self: end; min-width: max-content; }
	.nw-txn-local { text-align: right; }
	.nw-txn-meta { gap: 3px; }
}
.nw-streak-day { position: relative; }

/* --- MVP v5 consolidated refinements --- */
.nw-text-btn {
	border: 0;
	background: transparent;
	color: var(--c-accent-2);
	font: inherit;
	font-size: var(--text-sm);
	font-weight: 800;
	cursor: pointer;
	padding: 0;
}
.nw-text-btn:hover { color: #ffb766; }

.nw-xp-badge.xp-pop,
[data-xp-total].xp-pop { animation: nwXpPop 520ms var(--ease-emphasis); }
@keyframes nwXpPop {
	0% { transform: scale(1); }
	35% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(var(--c-accent-rgb), .14); }
	100% { transform: scale(1); }
}

/* Dropdown filters */
.nw-expense-toolbar--dropdowns,
.nw-shop-toolbar {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-3);
	margin-bottom: var(--space-7);
}
.nw-shop-toolbar { grid-template-columns: minmax(220px, 320px); }
.nw-filter-dropdown { position: relative; min-width: 0; }
.nw-filter-drop-btn {
	width: 100%;
	min-height: 44px;
	display: grid;
	grid-template-columns: 30px minmax(0,1fr) 18px;
	align-items: center;
	gap: var(--space-2);
	padding: 6px 10px;
	border-radius: var(--r-sm);
	border: var(--border-width) solid var(--c-border-strong);
	background: var(--c-surface-3);
	color: var(--c-text-soft);
	font: inherit;
	font-size: var(--text-sm);
	font-weight: 850;
	cursor: pointer;
	transition: background var(--motion-base), border-color var(--motion-base), transform var(--motion-fast);
}
.nw-filter-drop-btn:hover,
.nw-filter-dropdown.open .nw-filter-drop-btn { background: var(--c-surface-hover); border-color: var(--c-border-control); }
.nw-filter-drop-btn:active { transform: translateY(1px); }
.nw-filter-drop-btn > i:first-child,
.nw-alert-row > i {
	width: 30px;
	height: 30px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	background: rgba(var(--c-accent-rgb), .10);
	color: var(--c-accent-2);
}
.nw-filter-drop-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.nw-filter-menu {
	position: absolute;
	z-index: 40;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	padding: 8px;
	border-radius: var(--r-md);
	border: var(--border-width) solid var(--c-border-strong);
	background: rgba(18,18,20,.98);
	box-shadow: var(--shadow-popover, 0 20px 60px rgba(0,0,0,.45));
	display: none;
	max-height: 310px;
	overflow-y: auto;
}
.nw-filter-dropdown.open .nw-filter-menu { display: grid; gap: 4px; animation: nwFadeUp var(--motion-base) var(--ease-emphasis); }
.nw-filter-menu a {
	display: grid;
	grid-template-columns: 28px minmax(0,1fr);
	align-items: center;
	gap: var(--space-2);
	padding: 9px;
	border-radius: var(--r-sm);
	color: var(--c-text-soft);
	font-size: var(--text-sm);
	font-weight: 800;
	text-decoration: none;
}
.nw-filter-menu a:hover,
.nw-filter-menu a.active { background: var(--c-surface-hover); color: var(--c-text-strong); }
.nw-filter-menu a i { color: var(--c-accent-2); }

/* Notifications */
.nw-notification-summary { margin-bottom: var(--space-4); color: var(--c-text-soft); font-weight: 800; }
.nw-alert-row,
.nw-alert-row--page {
	display: grid;
	grid-template-columns: 34px minmax(0,1fr) auto;
	align-items: start;
	gap: 12px;
}
.nw-alert-row em,
.nw-alert-row--page em {
	justify-self: end;
	text-align: right;
	white-space: nowrap;
	color: var(--c-text-muted);
	font-style: normal;
	font-size: var(--text-xs);
	font-weight: 700;
}
.nw-alert-row.is-read,
.nw-alert-row--page.is-read { opacity: .66; }

/* Wallet */
.nw-wallet-sections { align-items: stretch; }
.nw-wallet-section-card { min-height: 100%; }
.nw-wallet-asset-row { align-items: start; grid-template-columns: 42px minmax(0,1fr) auto; }
.nw-wallet-asset-row .nw-asset-main { display: grid; gap: 4px; }
.nw-wallet-asset-row .nw-asset-main small { display: block; margin-top: 0; }
.nw-wallet-address { color: var(--c-text-muted); letter-spacing: .04em; }

/* Passport */
.nw-passport-hero-card {
	position: relative;
	overflow: hidden;
	padding: 22px;
	background: rgba(var(--c-surface-rgb), .62);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}
.nw-section-hd--passport,
.nw-passport-strip { position: relative; z-index: 1; }
.nw-passport-strip { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: stretch; }
.nw-passport-score-card {
	background: rgba(var(--c-surface-rgb), .42);
	border: var(--border-width) solid rgba(255,255,255,.06);
	border-radius: 22px;
	padding: 22px;
	display: grid;
	align-content: start;
	gap: 12px;
}
.nw-passport-score-card strong { font-size: clamp(48px, 4vw, 64px); line-height: .92; color: #fff; }
.nw-passport-score-card > span { color: var(--c-text-soft); font-weight: 800; }
.nw-passport-progress-line { height: 10px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.nw-passport-progress-line span { display: block; height: 100%; width: 46%; background: linear-gradient(90deg, var(--c-accent), #ff9b2f); border-radius: inherit; }
.nw-passport-chip-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-country-grid--passport { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.nw-country {
	min-height: 180px;
	background: rgba(var(--c-surface-rgb), .42);
	border: var(--border-width) solid rgba(255,255,255,.08);
	border-radius: 22px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	gap: 14px;
}
.nw-country.checked,
.nw-country.claimable { box-shadow: inset 0 0 0 1px rgba(255,140,0,.08); }
.nw-country .nw-stamp {
	width: 54px;
	height: 54px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	background: rgba(255,140,0,.08);
	border: 1px solid rgba(255,140,0,.28);
	color: var(--c-accent-2);
}
.nw-country span { color: var(--c-text-dim); }
.nw-country .nw-claim-btn { margin-top: auto; width: auto; }
.nw-country .nw-check,
.nw-country .nw-locked { margin-top: auto; font-size: 18px; color: var(--c-text-muted); }
.nw-country .nw-check { color: var(--c-success); }
.nw-passport-stats-grid .nw-page-card h3 { margin-bottom: 10px; }

/* Trips */
.nw-trip-list { display: grid; gap: var(--space-4); }
.nw-trip-grid-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.nw-trip-visual-card,
.nw-trip-detail-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 220px; padding: 0; }
.nw-trip-visual-card.featured { grid-column: 1 / -1; min-height: 320px; }
.nw-trip-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nw-trip-visual-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,16,.14) 0%, rgba(7,10,16,.60) 60%, rgba(7,10,16,.98) 100%); }
.nw-trip-visual-copy,
.nw-trip-detail-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; height: 100%; padding: 22px; }
.nw-trip-visual-copy span,
.nw-trip-detail-copy span { color: rgba(255,255,255,.82); }
.nw-trip-detail-copy h3,
.nw-trip-visual-copy h3 { color: #fff; }
.nw-trip-detail-copy p,
.nw-trip-visual-copy p { color: rgba(255,255,255,.86); }
.nw-trip-visual-card > strong { position: absolute; right: 20px; bottom: 20px; z-index: 1; color: #fff; }
.nw-trip-detail-hero { min-height: 360px; }

/* Quests and shop cards */
.nw-shop-grid,
.nw-quest-grid { align-items: stretch; }
.nw-shop-card,
.nw-quest-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 270px;
}
.nw-shop-card > i,
.nw-quest-card > i { flex: 0 0 auto; }
.nw-shop-card p,
.nw-quest-card p { flex: 0 0 auto; }
.nw-shop-bottom,
.nw-quest-bottom {
	margin-top: auto;
	display: grid;
	gap: 10px;
}
.nw-shop-price { display: grid; gap: 2px; }
.nw-shop-price strong { color: var(--c-text-strong); font-size: var(--text-xl); font-weight: 900; }
.nw-shop-price span { color: var(--c-text-muted); font-size: var(--text-xs); font-weight: 800; }
.nw-quest-progress-label { font-size: var(--text-md); font-weight: 800; color: var(--c-text-soft); }
.nw-quest-progress {
	width: 100%;
	height: 8px;
	border: 0;
	border-radius: var(--r-pill);
	background: rgba(255,255,255,.08);
	overflow: hidden;
	appearance: none;
	-webkit-appearance: none;
}
.nw-quest-progress::-webkit-progress-bar {
	border-radius: inherit;
	background: rgba(255,255,255,.08);
}
.nw-quest-progress::-webkit-progress-value {
	border-radius: inherit;
	background: linear-gradient(90deg, var(--c-accent), #ffb35c);
}
.nw-quest-progress::-moz-progress-bar {
	border-radius: inherit;
	background: linear-gradient(90deg, var(--c-accent), #ffb35c);
}
.nw-quest-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 0; }
.nw-quest-card .nw-xp-badge { width: auto; justify-self: start; }

.nw-shop-partner-note { margin-top: var(--space-4); }
.nw-shop-partner-note p { color: var(--c-text-dim); margin: 10px 0 0; }

/* Streaks */
.nw-streak-total-card > strong { display: inline-flex; align-items: center; gap: 10px; }
.nw-streak-total-card > strong i { color: var(--c-accent-2); }

/* Pricing */
.nw-billing-toggle { width: fit-content; max-width: 100%; display: inline-flex; }
.nw-billing-toggle a { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.nw-price-card { display: flex; flex-direction: column; }
.nw-price-card ul { flex: 1; }
.nw-price-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 34px; }
.nw-price-badges span,
.nw-save-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 30px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: var(--text-xs);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .7px;
	background: rgba(255,255,255, .01);
	color: var(--c-text-dim);
}
.nw-price-card.featured .nw-price-badges span { 
	background: rgba(var(--c-accent-rgb), .12);
	color: var(--c-accent-2);
}
.nw-save-badge { background: rgba(34,197,94,.12) !important; color: var(--c-success) !important; }
.nw-price-stack { display: grid; gap: 6px; margin-bottom: 12px; }
.nw-price-stack strong { font-size: clamp(30px, 2.4vw, 42px); color: #fff; }
.nw-price-stack strong small { font-size: var(--text-sm); margin-left: 6px; color: var(--c-text-dim); }
.nw-price-stack em { font-style: normal; color: var(--c-text-dim); font-weight: 700; }

/* Profile */
.nw-profile-avatar {
	width: 120px;
	height: 120px;
	border-radius: 20%;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(255,140,0,.2), rgba(255,205,120,.08));
	border: 1px solid rgba(255,140,0,.24);
	font-weight: 900;
	font-size: 24px;
	color: #fff;
	overflow: hidden;
}
.nw-profile-avatar img { width: 100%; height: 100%; object-fit: cover; border: none; border-radius: 20%; }
.nw-passport-country-field { margin-top: var(--space-4); }

/* Tooltips only when quick items collapse to icon-only. */
.nw-quick-item[data-tooltip]::after { opacity: 0 !important; pointer-events: none; }
@media (max-width: 767px) {
	.nw-quick-item[data-tooltip]:hover::after,
	.nw-quick-item[data-tooltip]:focus-visible::after { opacity: 1 !important; }
}

@media (max-width: 1100px) {
	.nw-country-grid--passport { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nw-passport-strip { grid-template-columns: 1fr; }
	.nw-expense-toolbar--dropdowns,
	.nw-trip-grid-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.nw-expense-toolbar--dropdowns,
	.nw-trip-grid-rows,
	.nw-country-grid--passport { grid-template-columns: 1fr; }
	.nw-shop-toolbar { grid-template-columns: 1fr; }
	.nw-passport-score-card,
	.nw-country { min-height: auto; }
	.nw-billing-toggle { width: fit-content; display: inline-grid; }
	.nw-txn { grid-template-columns: 34px minmax(0,1fr) auto !important; align-items: start; }
	.nw-txn-amt,
	.nw-txn-local { text-align: right !important; justify-self: end; }
	.nw-txn-amt { min-width: max-content; }
}


/* --- MVP v6 interaction/layout additions --- */
.nw-line-chart { width: 100%; max-width: 156px; height: 70px; overflow: visible; justify-self: end; }
.nw-line-area { fill: url(#spentGrad); }
.nw-line-path { fill: none; stroke: var(--c-accent-2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

.nw-copy-tip { position: relative; }
.nw-copy-tip::after {
	content: attr(data-copy-tooltip);
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	z-index: 4;
	white-space: nowrap;
	padding: 6px 8px;
	border-radius: var(--r-sm);
	background: rgba(12,12,12,.95);
	border: 1px solid var(--c-border-strong);
	color: var(--c-text-soft);
	font-size: var(--text-xs);
	font-weight: 800;
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
	transition: opacity var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}
.nw-copy-tip:hover::after,
.nw-copy-tip:focus-visible::after { opacity: 1; transform: translateY(0); }

.nw-leaderboard-view-all { margin-top: var(--space-3); justify-content: center; }
.nw-trip-section { display: grid; gap: var(--space-3); }
.nw-trip-list { gap: var(--space-5); }
.nw-past-trips-head { margin: 0; }

.nw-shop-card { overflow: hidden; padding-top: 0 !important; }
.nw-shop-card-media {
	height: 112px;
	margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-4);
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(255,107,0,.3), rgba(146,74,250,.16));
	border-bottom: 1px solid rgba(255,255,255,.06);
}
.nw-shop-card-media i { font-size: 38px; color: #fff; }
.nw-shop-img--esim { background: linear-gradient(135deg, #ff7a18, #7c3aed); }
.nw-shop-img--insurance { background: linear-gradient(135deg, #22c55e, #0f766e); }
.nw-shop-img--vpn { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.nw-shop-img--rentals { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.nw-shop-img--giftcards { background: linear-gradient(135deg, #a855f7, #ec4899); }
.nw-shop-img--coworking { background: linear-gradient(135deg, #14b8a6, #334155); }

.nw-checkout-card { margin-top: var(--space-5); }
.nw-checkout-methods { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.nw-checkout-methods .active { border-color: rgba(var(--c-accent-rgb), .55); color: var(--c-accent-2); }
.nw-checkout-box { display: grid; gap: 5px; padding: var(--space-4); border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid var(--c-border-soft); }
.nw-checkout-box span, .nw-muted-copy { color: var(--c-text-dim); font-size: var(--text-sm); font-weight: 700; line-height: 1.5; }

.nw-file-input {
	width: 100%;
	padding: 8px;
	border-radius: var(--r-sm);
	border: var(--border-width) solid var(--c-border-strong);
	background: var(--c-surface-3);
	color: var(--c-text-soft);
	font: inherit;
	font-size: var(--text-sm);
	font-weight: 800;
}
.nw-file-input::file-selector-button {
	min-height: 30px;
	margin-right: 10px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--r-sm);
	background: var(--c-accent);
	color: var(--c-white);
	font: inherit;
	font-size: var(--text-xs);
	font-weight: 900;
	cursor: pointer;
}
.nw-file-input:hover::file-selector-button { background: var(--c-accent-2); }

.nw-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-3); margin-top: var(--space-4); }
.nw-field-full { grid-column: 1 / -1; }
.nw-category-settings { margin-top: var(--space-5); }
.nw-category-list { display: grid; gap: var(--space-3); }
.nw-category-row { display: grid; grid-template-columns: 1.2fr 1fr 64px 1.6fr auto; gap: var(--space-3); align-items: center; }
.nw-color-input { width: 52px; min-height: 42px; border-radius: var(--r-sm); border: 1px solid var(--c-border-strong); background: var(--c-surface-3); padding: 6px; }

@media (max-width: 860px) {
	.nw-category-row, .nw-profile-fields { grid-template-columns: 1fr; }
	.nw-line-chart { max-width: 100%; width: 100%; }
	.nw-expense-form-grid { grid-template-columns: 1fr; }
}


/* --- Designer/developer polish pass: structured forms, catalog shop, real modals --- */
.nw-expense-modal,
.nw-trip-form-modal,
.nw-checkout-modal { width: min(720px, 100%); max-height: calc(100vh - 36px); overflow: auto; }
.nw-expense-modal { padding-bottom: var(--space-5); }
.nw-confirm-modal { width: min(460px, 100%); }

.nw-danger-btn {
	min-height: 36px;
	padding: 0 14px;
	border-radius: var(--r-sm);
	background: rgba(239, 68, 68, .12);
	border: var(--border-width) solid rgba(239, 68, 68, .26);
	color: #fca5a5;
	font: inherit;
	font-size: 12.5px;
	font-weight: 900;
	cursor: pointer;
	transition: background var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}
.nw-danger-btn:hover { background: rgba(239, 68, 68, .18); border-color: rgba(239, 68, 68, .5); color: #fecaca; }
.nw-danger-btn:active { transform: translateY(1px); }

.nw-select-icon-wrap { position: relative; }
.nw-select-leading-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	z-index: 1;
	width: 22px;
	height: 22px;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	border-radius: var(--r-xs);
	background: rgba(var(--c-accent-rgb), .12);
	color: var(--c-accent-2);
	pointer-events: none;
}
.nw-select--with-icon { padding-left: 42px; }

.nw-txn-icon { background: color-mix(in srgb, var(--category-color, var(--c-accent-2)) 18%, transparent); color: var(--category-color, var(--c-accent-2)); }
.nw-txn-description {
	margin-top: 3px;
	color: var(--c-text-muted);
	font-size: var(--text-xs);
	font-weight: 700;
	line-height: 1.35;
}

.nw-category-list { display: grid; gap: var(--space-3); }
.nw-category-row {
	display: grid;
	grid-template-columns: 44px minmax(150px, 1.15fr) minmax(160px, 1fr) minmax(150px, 1fr) minmax(170px, 1.25fr) auto;
	gap: var(--space-3);
	align-items: center;
	padding: var(--space-3);
	border: var(--border-width) solid var(--c-border-soft);
	border-radius: var(--r-lg);
	background: rgba(255,255,255,.025);
}
.nw-category-actions { display: inline-flex; align-items: center; gap: var(--space-2); }

.nw-shop-grid { align-items: stretch; }
.nw-shop-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-height: 360px;
	overflow: hidden;
	padding: 0 0 var(--space-5) !important;
	text-decoration: none;
}
.nw-shop-card-media {
	height: 148px;
	margin: 0 0 var(--space-2);
	border-bottom: 1px solid rgba(255,255,255,.08);
	background: var(--c-app);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nw-shop-card-media img {
	height: 100%;
	width: auto;
	display: block;
	object-fit: cover;
	mix-blend-mode: lighten;
}
.nw-shop-title,
.nw-shop-card p { margin: 0 var(--space-5) 0; }
.nw-shop-bottom { margin: auto var(--space-5) 0; }
.nw-shop-price { margin: var(--space-2) 0 var(--space-2); }
.nw-shop-title { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: var(--space-2); }
.nw-shop-title i {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: var(--r-sm);
	background: rgba(var(--c-accent-rgb), .12);
	color: var(--c-accent-2);
	font-size: 18px;
}
.nw-shop-title h3 { color: var(--c-text-soft); font-size: var(--text-lg); font-weight: 900; line-height: 1.2; }
.nw-shop-title span { color: var(--c-text-muted); font-size: var(--text-xs); font-weight: 800; }
.nw-shop-card p { color: var(--c-text-dim); font-size: var(--text-sm); font-weight: 700; line-height: 1.5; }
.nw-shop-price strong { color: var(--c-text-strong); font-size: var(--text-xl); font-weight: 900; }

.nw-price-stack .nw-save-badge { justify-self: start; width: fit-content; margin-top: 2px; }
.nw-checkout-summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}
.nw-checkout-summary > div {
	padding: var(--space-4);
	border-radius: var(--r-lg);
	background: rgba(255,255,255,.045);
	border: 1px solid var(--c-border-soft);
}
.nw-checkout-summary span { display: block; color: var(--c-text-dim); font-size: var(--text-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.nw-checkout-summary strong { display: block; margin-top: 4px; color: var(--c-text-strong); font-size: var(--text-lg); }

@media (max-width: 1120px) {
	.nw-page-grid.four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nw-category-row { grid-template-columns: 44px minmax(180px, 1fr) minmax(160px, 1fr); }
	.nw-category-actions { grid-column: 2 / -1; }
}
@media (max-width: 980px) {
	.nw-page-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.nw-page-grid.four { grid-template-columns: 1fr 1fr; }
	.nw-category-row { grid-template-columns: 1fr; }
	.nw-category-actions,
	.nw-checkout-summary { grid-template-columns: 1fr; width: 100%; }
	.nw-category-actions { display: grid; }
	.nw-shop-title { grid-template-columns: 1fr; }
}

/* --- Refinement pass: wallet, settings pickers, shop filters, passport glass, streak calendar --- */
.nw-wallet-asset-row {
	grid-template-columns: 42px minmax(0, 1fr) minmax(120px, auto) !important;
	align-items: start;
}
.nw-wallet-asset-row .nw-asset-main { display: grid; gap: 3px; min-width: 0; }
.nw-asset-values {
	display: grid;
	justify-items: end;
	text-align: right;
	gap: 2px;
	min-width: 118px;
}
.nw-asset-values small {
	color: var(--c-text-faint);
	font-size: var(--text-2xs);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .6px;
}
.nw-asset-values strong,
.nw-asset-values span {
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--c-text-strong);
	font-size: var(--text-sm);
	font-weight: 900;
}
.nw-asset-values span { color: var(--c-text-muted); font-size: var(--text-xs); }
.nw-wallet-address-line {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	max-width: 100%;
	margin-top: 3px;
	padding: 3px 4px 3px 8px;
	border: 1px solid var(--c-border-soft);
	border-radius: var(--r-pill);
	background: rgba(255,255,255,.035);
}
.nw-wallet-address-line .nw-wallet-address { margin: 0; color: var(--c-text-muted); letter-spacing: .04em; }
.nw-wallet-address-line .nw-copy-btn {
	width: 26px;
	height: 26px;
	min-height: 26px;
	border-radius: var(--r-pill);
	background: rgba(var(--c-accent-rgb), .1);
	border-color: rgba(var(--c-accent-rgb), .22);
	color: var(--c-accent-2);
}
.nw-wallet-address-line .nw-copy-btn:hover { border-color: rgba(var(--c-accent-rgb), .55); background: rgba(var(--c-accent-rgb), .16); }

.nw-thumb-picker {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
	gap: var(--space-3);
	margin-top: var(--space-2);
}
.nw-thumb-choice {
	position: relative;
	display: grid;
	gap: 7px;
	padding: 7px;
	border: 1px solid var(--c-border-strong);
	border-radius: 16px;
	background: rgba(255,255,255,.03);
	color: var(--c-text-muted);
	font: inherit;
	font-size: var(--text-xs);
	font-weight: 900;
	text-align: center;
	cursor: pointer;
	transition: border-color var(--motion-base) var(--ease-standard), background var(--motion-base) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}
.nw-thumb-choice img {
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
	background: var(--c-surface-3);
}
.nw-thumb-choice.active,
.nw-thumb-choice:hover {
	border-color: rgba(var(--c-accent-rgb), .55);
	background: rgba(var(--c-accent-rgb), .08);
	color: var(--c-text-soft);
}
.nw-thumb-choice.active::after {
	content: "✓";
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--c-accent);
	color: #fff;
	font-weight: 900;
}
.nw-thumb-choice:active { transform: translateY(1px); }

.nw-category-settings form { display: grid; gap: var(--space-4); }
.nw-category-row {
	grid-template-columns: 48px 48px minmax(150px, 1fr) minmax(180px, 1.1fr) 40px !important;
	position: relative;
}
.nw-category-picker-shell { position: relative; min-width: 0; }
.nw-category-picker-btn {
	width: 100%;
	min-height: var(--control-lg);
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 9px;
	padding: 0 12px;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--r-sm);
	background: var(--c-surface-3);
	color: var(--c-text-soft);
	font: inherit;
	font-size: var(--text-sm);
	font-weight: 900;
	cursor: pointer;
}
.nw-category-icon-btn,
.nw-category-color-btn {
	justify-content: center;
	padding: 0;
}
.nw-category-picker-btn:hover,
.nw-category-picker-btn[aria-expanded="true"] { border-color: rgba(var(--c-accent-rgb), .52); background: var(--c-surface-hover); }
.nw-category-picker-btn > i:first-child:not([style]) {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: var(--r-xs);
	background: color-mix(in srgb, var(--category-color, var(--c-accent)) 22%, transparent);
	color: var(--category-color, var(--c-accent-2));
	font-size: var(--text-xl);
}
.nw-category-color-btn i,
.nw-option-choice i[style] {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 0 0 3px rgba(255,255,255,.04);
}
.nw-option-popover {
	position: absolute;
	z-index: 999;
	top: calc(100% + 8px);
	left: 0;
	width: min(360px, calc(100vw - 40px));
	padding: 12px;
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 18px;
	background: rgba(20,20,20,.94);
	box-shadow: var(--shadow-popover);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}
.nw-option-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	max-height: 300px;
	overflow: auto;
	padding-right: 2px;
}
.nw-option-grid:not(.color) { grid-template-columns: repeat(4, minmax(44px, 1fr)); }
.nw-option-grid.color { grid-template-columns: repeat(4, minmax(44px, 1fr)); }
.nw-option-choice {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 38px;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: transparent;
	color: var(--c-text-muted);
	font: inherit;
	font-size: var(--text-xs);
	font-weight: 900;
	text-align: left;
	cursor: pointer;
}
.nw-option-choice:hover,
.nw-option-choice.active { background: rgba(255,255,255,.055); border-color: var(--c-border-control); color: var(--c-text-soft); }
.nw-option-choice .ti { color: var(--c-accent-2); font-size: 18px; }
.nw-option-choice.is-icon-only,
.nw-option-choice.is-color-only {
	justify-content: center;
	min-height: 48px;
	padding: 0;
}
.nw-option-choice.is-icon-only .ti {
	font-size: var(--text-2xl);
}
.nw-option-choice.is-color-only i[style] {
	width: 28px;
	height: 28px;
}
.nw-danger-icon-btn {
	width: 40px;
	height: 40px;
	min-height: 40px;
	background: rgba(239,68,68,.1);
	border-color: rgba(239,68,68,.2);
	color: #fca5a5;
}
.nw-danger-icon-btn:hover { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.48); }
.nw-category-savebar {
	position: sticky;
	bottom: -1px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: 12px;
	border: 1px solid var(--c-border-soft);
	border-radius: 18px;
	background: rgba(17,17,17,.82);
	box-shadow: 0 -12px 36px rgba(0,0,0,.18);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}
.nw-category-savebar span { color: var(--c-text-muted); font-size: var(--text-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }

.nw-shop-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
	align-items: center;
	gap: var(--space-3);
	margin-bottom: var(--space-7);
}
.nw-shop-toggle-row {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 2px 8px;
	scrollbar-width: thin;
}
.nw-shop-toggle {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 13px;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--r-pill);
	background: rgba(var(--c-surface-rgb), 0.8);
	color: var(--c-text-muted);
	font-size: var(--text-sm);
	font-weight: 900;
	white-space: nowrap;
	text-decoration: none;
}
.nw-shop-toggle:hover,
.nw-shop-toggle.active { 
	border-color: rgba(var(--c-accent-rgb), .55); 
	color: var(--c-text-strong); 
	background: rgba(var(--c-accent-rgb), 0.4); 
}
.nw-shop-toggle i { color: var(--c-accent-2); font-size: 17px; }
.nw-shop-mobile-filters { display: none; }
.nw-shop-mobile-select { display: grid; gap: 6px; }
.nw-shop-mobile-select span { color: var(--c-text-muted); font-size: var(--text-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }

.nw-shop-partner { 
	position: absolute;
	right: var(--space-3);
	top: var(--space-3);
	display: flex; 
	align-items: center; 
	justify-content: space-between; 
	gap: 10px;
	color: var(--c-text-muted); 
	font-size: var(--text-xs); 
	font-weight: 800;
}
.nw-shop-partner em {
	padding: 5px 8px;
	border-radius: var(--r-pill);
	background: rgba(var(--c-surface-rgb), 0.9);
	color: var(--c-text-soft);
	font-style: normal;
	font-size: var(--text-2xs);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.nw-shop-empty { grid-column: 1 / -1; }

.nw-passport-hero-card { background: rgba(var(--c-surface-rgb), .58); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nw-passport-score-card,
.nw-country,
.nw-passport-stats-grid .nw-page-card {
	background: rgba(var(--c-surface-rgb), .46) !important;
	border-color: rgba(255,255,255,.1) !important;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 44px rgba(0,0,0,.18);
}

.streak-layout--with-calendar { align-items: stretch; }
.streak-layout--with-calendar .nw-streak-calendar-card { grid-column: 1 / -1; }
.nw-streak-day { gap: 9px; }
.nw-streak-claim-btn {
	width: 100%;
	min-height: 32px;
	border: 1px solid rgba(var(--c-accent-rgb), .28);
	border-radius: var(--r-pill);
	background: rgba(var(--c-accent-rgb), .1);
	color: var(--c-accent-2);
	font: inherit;
	font-size: var(--text-xs);
	font-weight: 900;
	cursor: pointer;
}
.nw-streak-claim-btn:disabled {
	cursor: not-allowed;
	border-color: var(--c-border-soft);
	background: rgba(255,255,255,.025);
	color: var(--c-text-faint);
}
.nw-streak-day.ready .nw-streak-claim-btn:not(:disabled) { background: var(--c-accent); border-color: var(--c-accent); color: #fff; box-shadow: 0 12px 28px rgba(var(--c-accent-rgb), .24); }
.nw-streak-calendar { display: grid; gap: var(--space-3); }
.nw-streak-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.nw-streak-calendar-head > div:first-child { display: grid; gap: 4px; }
.nw-streak-calendar-head strong { color: var(--c-text-strong); font-size: var(--text-xl); font-weight: 900; }
.nw-streak-calendar-head span { color: var(--c-text-muted); font-size: var(--text-xs); font-weight: 800; }
.nw-streak-month-actions { display: inline-flex; align-items: center; gap: var(--space-2); }
.nw-streak-weekdays,
.nw-streak-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.nw-streak-weekdays span { color: var(--c-text-faint); font-size: var(--text-2xs); font-weight: 900; text-align: center; text-transform: uppercase; letter-spacing: .7px; }
.nw-streak-calendar-cell {
	position: relative;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 3px;
	padding: 16px 5px 5px;
	border: 1px solid var(--c-border-soft);
	border-radius: 14px;
	background: rgba(255,255,255,.025);
	color: var(--c-text-muted);
	font-size: var(--text-xs);
	font-weight: 900;
}
.nw-streak-day-num {
	position: absolute;
	top: 6px;
	left: 7px;
	color: var(--c-text-faint);
	font-size: var(--text-2xs);
	font-weight: 900;
	line-height: 1;
}
.nw-streak-calendar-cell strong {
	color: var(--c-text-soft);
	font-size: var(--text-xs);
	font-weight: 900;
	text-align: center;
	line-height: 1.1;
}
.nw-streak-calendar-cell.empty { opacity: 0; }
.nw-streak-calendar-cell.completed { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.35); color: #86efac; }
.nw-streak-calendar-cell.frozen { background: rgba(96,165,250,.13); border-color: rgba(96,165,250,.35); color: #93c5fd; }
.nw-streak-calendar-cell.frozen strong { color: #bfdbfe; font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .5px; }
.nw-streak-calendar-cell.ready { background: rgba(var(--c-accent-rgb), .15); border-color: rgba(var(--c-accent-rgb), .45); color: var(--c-accent-2); }
.nw-streak-calendar-cell.today { box-shadow: inset 0 0 0 2px rgba(255,255,255,.16); }
.nw-streak-calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--c-text-muted); font-size: var(--text-xs); font-weight: 800; }
.nw-streak-calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.nw-streak-calendar-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c-border-control); }
.nw-streak-calendar-legend i.completed { background: var(--c-success); }
.nw-streak-calendar-legend i.frozen { background: #60a5fa; }
.nw-streak-calendar-legend i.ready { background: var(--c-accent); }
.nw-streak-calendar-legend i.today { background: #fff; }
.nw-streak-popup {
	width: min(440px, 100%);
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 14px;
	background: rgba(20,20,20,.9);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
}
.nw-streak-popup-icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 20px;
	background: rgba(var(--c-accent-rgb), .14);
	color: var(--c-accent-2);
	font-size: 30px;
}
.nw-streak-popup h2 { color: var(--c-text-strong); font-size: 24px; font-weight: 900; }
.nw-streak-popup p { max-width: 320px; margin-top: 6px; color: var(--c-text-muted); font-size: var(--text-sm); font-weight: 700; line-height: 1.5; }
.nw-streak-popup-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	width: 100%;
}
.nw-streak-popup-reward {
	display: grid;
	gap: 2px;
	padding: 12px 18px;
	border-radius: 18px;
	background: rgba(var(--c-accent-rgb), .1);
	border: 1px solid rgba(var(--c-accent-rgb), .22);
}
.nw-streak-popup-reward strong { color: var(--c-text-strong); font-size: 28px; font-weight: 900; }
.nw-streak-popup-reward span { color: var(--c-accent-2); font-size: var(--text-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }

@media (max-width: 520px) {
	.nw-streak-popup-stats { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
	.nw-category-row {
		grid-template-columns: 52px 52px minmax(130px, .8fr) minmax(220px, 1.2fr) 42px !important;
		gap: var(--space-2);
		align-items: center;
	}
	.nw-category-row [data-category-role="icon"] { grid-column: 1; }
	.nw-category-row [data-category-role="color"] { grid-column: 2; }
	.nw-category-row input[name="name"] { grid-column: 3; min-width: 0; }
	.nw-category-row input[name="notes"] { grid-column: 4; min-width: 0; }
	.nw-category-row .nw-danger-icon-btn { grid-column: 5; }
	.nw-shop-toggle-row,
	.nw-shop-region-filter { display: none; }
	.nw-shop-mobile-filters { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
}
@media (max-width: 760px) {
	.nw-wallet-asset-row { grid-template-columns: 42px minmax(0,1fr) !important; }
	.nw-expense-detail-grid div { grid-template-columns: minmax(112px, .42fr) minmax(0, 1fr); }
	.nw-expense-detail-grid strong,
	.nw-expense-detail-link { justify-self: end; text-align: right; }
	.nw-asset-values { grid-column: 2; justify-items: start; text-align: left; grid-template-columns: auto 1fr; column-gap: 8px; min-width: 0; }
	.nw-asset-values strong,
	.nw-asset-values span { max-width: 100%; }
	.nw-category-row {
		grid-template-columns: 52px 52px minmax(0, 1fr) 42px !important;
		gap: var(--space-2);
		padding: var(--space-3);
	}
	.nw-category-row .nw-category-picker-shell { grid-column: auto !important; }
	.nw-category-row [data-category-role="icon"] { grid-column: 1; grid-row: 1; }
	.nw-category-row [data-category-role="color"] { grid-column: 2; grid-row: 1; }
	.nw-category-row input[name="name"] { grid-column: 3 / -1; grid-row: 1; min-width: 0; }
	.nw-category-row input[name="notes"] { grid-column: 1 / -1; grid-row: 2; }
	.nw-category-row .nw-danger-icon-btn { grid-column: 1; grid-row: 3; }
	.nw-category-picker-btn { min-height: 52px; }
	.nw-category-savebar {
		bottom: calc(78px + env(safe-area-inset-bottom));
		align-items: stretch;
		flex-direction: column;
		box-shadow: 0 -18px 44px rgba(0,0,0,.42);
	}
	.nw-category-savebar .nw-add-btn { width: 100%; }
	.nw-shop-toolbar { grid-template-columns: 1fr; }
	[data-expense-modal] {
		align-items: stretch;
		padding: 0;
	}
	.nw-expense-modal {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-height: 100vh;
		min-height: 100vh;
		border: 0;
		border-radius: 0;
		padding: 0;
		overflow: hidden;
	}
	.nw-expense-modal .nw-modal-hd {
		position: relative;
		flex: 0 0 auto;
		z-index: 2;
		margin: 0;
		padding: var(--space-4);
		background: rgba(var(--c-surface-rgb), .96);
		border-bottom: var(--border-width) solid rgba(255,255,255,.08);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
	}
	.nw-expense-modal .nw-modal-actions {
		position: relative;
		flex: 0 0 auto;
		z-index: 2;
		display: grid;
		grid-template-columns: 1fr 1.2fr;
		gap: var(--space-3);
		margin: 0;
		padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
		background: rgba(var(--c-app-rgb), .84);
		border-top: var(--border-width) solid rgba(255,255,255,.08);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
	}
	.nw-expense-modal .nw-expense-scroll {
		flex: 1 1 auto;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: var(--space-4);
	}
	.nw-expense-modal .nw-modal-actions .nw-add-btn,
	.nw-expense-modal .nw-modal-actions .nw-secondary-btn { width: 100%; }
	.nw-streak-calendar-head { display: grid; }
	.nw-streak-weekdays,
	.nw-streak-calendar-grid { gap: 4px; }
	.nw-streak-calendar-cell {
		border-radius: var(--r-xs);
		padding: 14px 3px 4px;
		min-width: 0;
	}
	.nw-streak-calendar-cell strong {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: clamp(8px, 2.15vw, 11px);
	}
}
@media (max-width: 520px) {
	.nw-shop-mobile-filters { grid-template-columns: 1fr; }
	.nw-thumb-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nw-option-popover {
		position: fixed;
		left: 12px;
		right: 12px;
		top: auto;
		bottom: calc(100px + env(safe-area-inset-bottom));
		width: auto;
		max-height: min(340px, 46vh);
	}
	[data-expense-modal] {
		align-items: stretch;
		padding: 0;
	}
	.nw-expense-modal {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-height: 100vh;
		min-height: 100vh;
		border: 0;
		border-radius: 0;
		padding: 0;
		overflow: hidden;
	}
	.nw-expense-modal .nw-modal-hd {
		position: relative;
		flex: 0 0 auto;
		z-index: 2;
		margin: 0;
		padding: var(--space-4);
		background: rgba(var(--c-surface-rgb), .96);
		border-bottom: var(--border-width) solid rgba(255,255,255,.08);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
	}
	.nw-expense-modal .nw-modal-actions {
		position: relative;
		flex: 0 0 auto;
		z-index: 2;
		display: grid;
		grid-template-columns: 1fr 1.2fr;
		gap: var(--space-3);
		margin: 0;
		padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
		background: rgba(var(--c-app-rgb), .82);
		border-top: var(--border-width) solid rgba(255,255,255,.08);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
	}
	.nw-expense-modal .nw-modal-actions .nw-add-btn,
	.nw-expense-modal .nw-modal-actions .nw-secondary-btn {
		width: 100%;
	}
	.nw-expense-modal .nw-expense-scroll {
		flex: 1 1 auto;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: var(--space-4);
	}
	.nw-amount-group { grid-template-columns: minmax(0, 1fr) 98px; }
	.nw-amount-input {
		min-height: 70px;
		font-size: var(--text-3xl);
	}
	.nw-amount-currency { min-height: 70px; font-size: var(--text-md); }
}
