/* ==========================================================================
   NGMC Mobile App Experience — app shell
   All components carry .ngmc-ui and are hidden above the breakpoint (inline CSS).
   ========================================================================== */

.ngmc-ui,
.ngmc-ui *,
.ngmc-ui *::before,
.ngmc-ui *::after { box-sizing: border-box; }

.ngmc-ui {
	-webkit-tap-highlight-color: transparent;
	-webkit-font-smoothing: antialiased;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

.ngmc-ui .ngmc-ico { width: 22px; height: 22px; display: block; flex: none; }

html.ngmc-locked,
html.ngmc-locked body { overflow: hidden !important; overscroll-behavior: none; }

/* Neutralise theme button styling on our controls */
.ngmc-ui button,
.ngmc-icon-btn,
.ngmc-tab,
.ngmc-top,
.ngmc-sub-toggle,
.ngmc-search-cancel,
.ngmc-btn,
.ngmc-install-inline {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	border: 0;
	box-shadow: none;
	font: inherit;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
	min-width: 0;
	cursor: pointer;
	text-decoration: none;
}

.ngmc-ui a { text-decoration: none !important; box-shadow: none; }

.ngmc-ui :focus-visible {
	outline: 2px solid var(--ngmc-accent);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- Brand mark */
.ngmc-mark {
	width: 36px;
	height: 36px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, .14);
	color: inherit;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .02em;
	overflow: hidden;
}
.ngmc-mark.has-logo { background: #fff; padding: 3px; }
.ngmc-mark img { width: 100%; height: 100%; object-fit: contain; display: block; margin: 0; max-width: none; border: 0; }
.ngmc-mark-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 17px; }
.ngmc-mark-lg.has-logo { padding: 5px; }
.ngmc-mark-xl { width: 92px; height: 92px; border-radius: 26px; font-size: 26px; }
.ngmc-mark-xl.has-logo { padding: 9px; }

/* ---------------------------------------------------------------- Header */
.ngmc-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99990;
	padding-top: env(safe-area-inset-top, 0px);
	background: var(--ngmc-primary);
	color: var(--ngmc-on-primary);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 24px -16px rgba(0, 0, 0, .45);
	transition: transform .32s cubic-bezier(.2, .8, .2, 1);
	will-change: transform;
}
.ngmc-header.is-hidden { transform: translateY(-100%); }
body.admin-bar .ngmc-header { top: 46px; }
@media (min-width: 783px) { body.admin-bar .ngmc-header { top: 32px; } }

.ngmc-bar {
	display: flex;
	align-items: center;
	gap: 2px;
	height: 58px;
	padding: 0 6px;
}

.ngmc-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: none;
	padding: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	overflow: hidden;
	transition: background .2s;
}
.ngmc-icon-btn:active { background: rgba(127, 127, 127, .2); }
.ngmc-icon-btn[hidden] { display: none; }

.ngmc-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
	padding: 4px 6px;
	color: inherit !important;
}
.ngmc-brand-text { display: flex; flex-direction: column; min-width: 0; }
.ngmc-brand-title,
.ngmc-brand-sub {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ngmc-brand-title { font-size: 16px; font-weight: 700; letter-spacing: -.005em; }
.ngmc-brand-sub { font-size: 11.5px; opacity: .75; margin-top: 1px; }

/* Notice ticker */
.ngmc-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 12px;
	background: var(--ngmc-accent);
	color: var(--ngmc-on-accent) !important;
	font-size: 12.5px;
	font-weight: 600;
}
.ngmc-notice-icon .ngmc-ico { width: 16px; height: 16px; }
.ngmc-notice-viewport { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
.ngmc-notice-track {
	display: inline-block;
	padding-left: 100%;
	animation: ngmc-marquee 16s linear infinite;
}
@keyframes ngmc-marquee { to { transform: translateX(-100%); } }

/* ---------------------------------------------------------------- Tab bar */
.ngmc-tabbar {
	position: fixed;
	z-index: 99980;
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	background: var(--ngmc-surface);
	color: var(--ngmc-muted);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.ngmc-tabbar {
		background: var(--ngmc-surface-glass);
		-webkit-backdrop-filter: saturate(1.6) blur(18px);
		backdrop-filter: saturate(1.6) blur(18px);
	}
}
.ngmc-tabbar.is-floating {
	left: 12px;
	right: 12px;
	bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	height: 66px;
	padding: 6px;
	border-radius: calc(var(--ngmc-radius) + 8px);
	box-shadow: 0 0 0 1px var(--ngmc-line), 0 14px 34px -12px rgba(10, 22, 44, .38);
}
.ngmc-tabbar.is-docked {
	left: 0;
	right: 0;
	bottom: 0;
	height: calc(64px + env(safe-area-inset-bottom, 0px));
	padding: 4px 4px env(safe-area-inset-bottom, 0px);
	box-shadow: 0 -1px 0 var(--ngmc-line), 0 -10px 30px -22px rgba(10, 22, 44, .5);
}

.ngmc-tab {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 0 2px;
	border-radius: var(--ngmc-radius);
	background: transparent;
	color: inherit !important;
	font-size: 11px;
	font-weight: 600;
}
.ngmc-tab-icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 30px;
	border-radius: 999px;
	transition: background .25s ease, transform .2s ease, color .25s ease;
}
.ngmc-tab-label {
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ngmc-tab:active .ngmc-tab-icon { transform: scale(.88); }
.ngmc-tab.is-active { color: var(--ngmc-primary-ink) !important; }
.ngmc-tab.is-active .ngmc-tab-icon { background: var(--ngmc-primary-soft); }
.ngmc-tab.is-active .ngmc-ico { stroke-width: 2.3; }

.no-labels .ngmc-tab-label {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.no-labels .ngmc-tab-icon { width: 58px; height: 40px; }

/* Raised centre action */
.ngmc-tab.is-center { color: var(--ngmc-text) !important; }
.ngmc-tab.is-center .ngmc-tab-icon {
	width: 56px;
	height: 56px;
	margin-top: -30px;
	border-radius: 20px;
	background: linear-gradient(150deg, var(--ngmc-primary), var(--ngmc-primary-2));
	color: var(--ngmc-on-primary);
	box-shadow: 0 0 0 5px var(--ngmc-surface), 0 12px 22px -8px var(--ngmc-primary-shadow);
	transform: rotate(0);
}
.ngmc-tab.is-center .ngmc-ico { width: 26px; height: 26px; }
.ngmc-tab.is-center.is-active .ngmc-tab-icon { background: linear-gradient(150deg, var(--ngmc-primary), var(--ngmc-primary-2)); }
.ngmc-tab.is-center.is-active::after {
	content: "";
	position: absolute;
	bottom: 2px;
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--ngmc-accent);
}
.no-labels .ngmc-tab.is-center .ngmc-tab-icon { margin-top: -22px; }

/* ---------------------------------------------------------------- Drawer */
.ngmc-scrim {
	position: fixed;
	inset: 0;
	z-index: 99995;
	background: rgba(6, 12, 24, .52);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility 0s linear .3s;
}
html.ngmc-drawer-open .ngmc-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }

.ngmc-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 99996;
	width: min(86vw, 360px);
	display: flex;
	flex-direction: column;
	background: var(--ngmc-surface);
	color: var(--ngmc-text);
	border-radius: 0 calc(var(--ngmc-radius) + 10px) calc(var(--ngmc-radius) + 10px) 0;
	box-shadow: 18px 0 50px -20px rgba(0, 0, 0, .45);
	overflow: hidden;
	transform: translateX(-104%);
	visibility: hidden;
	transition: transform .36s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .36s;
	outline: none;
}
html.ngmc-drawer-open .ngmc-drawer { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.ngmc-drawer.is-dragging { transition: none; }

.ngmc-drawer-head {
	position: relative;
	padding: calc(22px + env(safe-area-inset-top, 0px)) 20px 20px;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .14), transparent 55%),
		linear-gradient(160deg, var(--ngmc-primary), var(--ngmc-primary-2));
	color: var(--ngmc-on-primary);
}
.ngmc-drawer-head::after {
	content: "";
	position: absolute;
	left: 20px;
	bottom: 0;
	width: 44px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--ngmc-accent);
}
.ngmc-drawer-name { margin-top: 14px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.ngmc-drawer-tag { margin-top: 2px; font-size: 13px; opacity: .78; }
.ngmc-drawer-close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 8px; }

.ngmc-drawer-body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 12px 10px 20px;
}

.ngmc-drawer-nav ul,
.ngmc-drawer-nav li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	float: none !important;
	width: auto !important;
	position: relative;
}
.ngmc-drawer-nav li::before,
.ngmc-drawer-nav li::after { display: none !important; }

.ngmc-drawer-nav a {
	position: relative;
	display: flex !important;
	align-items: center;
	min-height: 48px;
	padding: 11px 52px 11px 14px !important;
	border-radius: 12px;
	color: var(--ngmc-text) !important;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	transition: background .2s;
}
.ngmc-drawer-nav a:active { background: var(--ngmc-primary-soft); }
.ngmc-drawer-nav .current-menu-item > a,
.ngmc-drawer-nav .current_page_item > a {
	background: var(--ngmc-primary-soft);
	color: var(--ngmc-primary-ink) !important;
}
.ngmc-drawer-nav .current-menu-item > a::before,
.ngmc-drawer-nav .current_page_item > a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--ngmc-accent);
}

.ngmc-drawer-nav .sub-menu,
.ngmc-drawer-nav .children {
	display: none;
	position: static !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	box-shadow: none !important;
	margin: 2px 0 6px 18px !important;
	padding-left: 8px !important;
	border-left: 2px solid var(--ngmc-line) !important;
}
.ngmc-drawer-nav li.is-open > .sub-menu,
.ngmc-drawer-nav li.is-open > .children { display: block; }
.ngmc-drawer-nav .sub-menu a,
.ngmc-drawer-nav .children a { min-height: 42px; font-size: 14px; font-weight: 500; }

.ngmc-sub-toggle {
	position: absolute !important;
	top: 4px;
	right: 4px;
	width: 40px;
	height: 40px;
	padding: 0;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: transparent;
	color: var(--ngmc-muted);
	z-index: 1;
}
.ngmc-sub-toggle .ngmc-ico { width: 18px; height: 18px; transition: transform .25s; }
.is-open > .ngmc-sub-toggle .ngmc-ico { transform: rotate(180deg); }
.ngmc-sub-toggle:active { background: var(--ngmc-surface-2); }

.ngmc-contact {
	margin: 16px 4px 0;
	padding: 6px;
	border-radius: calc(var(--ngmc-radius) + 2px);
	background: var(--ngmc-surface-2);
}
.ngmc-contact-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px;
	border-radius: 12px;
	color: var(--ngmc-text) !important;
	font-size: 14px;
	font-weight: 600;
}
.ngmc-contact-row:active { background: var(--ngmc-line); }
.ngmc-contact-row small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ngmc-muted); margin-bottom: 1px; }
.ngmc-contact-ico {
	width: 36px;
	height: 36px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: var(--ngmc-primary-soft);
	color: var(--ngmc-primary-ink);
}
.ngmc-contact-ico .ngmc-ico { width: 18px; height: 18px; }

.ngmc-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 4px 0; }
.ngmc-social a {
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--ngmc-line);
	color: var(--ngmc-text) !important;
	font-size: 13px;
	font-weight: 600;
}

.ngmc-install-inline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: calc(100% - 8px);
	margin: 16px 4px 0;
	padding: 13px 16px;
	border-radius: 999px;
	background: var(--ngmc-primary);
	color: var(--ngmc-on-primary);
	font-size: 14px;
	font-weight: 700;
}
.ngmc-install-inline[hidden] { display: none; }
.ngmc-install-inline .ngmc-ico { width: 18px; height: 18px; }

.ngmc-drawer-foot {
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--ngmc-line);
	color: var(--ngmc-muted);
	font-size: 12px;
}

/* ---------------------------------------------------------------- Search */
.ngmc-search {
	position: fixed;
	inset: 0;
	z-index: 99997;
	padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 24px;
	background: var(--ngmc-surface);
	color: var(--ngmc-text);
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
html.ngmc-search-open .ngmc-search { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.ngmc-search-form { display: flex; align-items: center; gap: 10px; margin: 0; }
.ngmc-search-field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--ngmc-surface-2);
	color: var(--ngmc-muted);
	box-shadow: inset 0 0 0 1px var(--ngmc-line);
}
.ngmc-search-field:focus-within { box-shadow: inset 0 0 0 2px var(--ngmc-primary-ink); }
.ngmc-search-field .ngmc-ico { width: 20px; height: 20px; }
.ngmc-search-field input[type="search"] {
	flex: 1;
	min-width: 0;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--ngmc-text) !important;
	font: inherit;
	font-size: 16px !important;
	-webkit-appearance: none;
}
.ngmc-search-cancel { padding: 10px 4px; background: none; color: var(--ngmc-primary-ink); font-size: 15px; font-weight: 600; }

.ngmc-quick { margin-top: 26px; }
.ngmc-quick-title { margin: 0 4px 12px; color: var(--ngmc-muted); font-size: 13px; font-weight: 600; }
.ngmc-quick-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ngmc-quick-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px;
	border-radius: var(--ngmc-radius);
	background: var(--ngmc-surface-2);
	color: var(--ngmc-text) !important;
	font-size: 14px;
	font-weight: 600;
}
.ngmc-quick-list .ngmc-ico { color: var(--ngmc-primary-ink); width: 20px; height: 20px; }

/* ---------------------------------------------------------------- Floating actions */
.ngmc-floaters {
	position: fixed;
	right: 16px;
	bottom: calc(var(--ngmc-tab-space) + env(safe-area-inset-bottom, 0px) + 10px);
	z-index: 99970;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	pointer-events: none;
}
.ngmc-top {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	background: var(--ngmc-surface);
	color: var(--ngmc-text);
	box-shadow: 0 0 0 1px var(--ngmc-line), 0 8px 20px -8px rgba(0, 0, 0, .35);
	opacity: 0;
	transform: translateY(12px) scale(.9);
	transition: opacity .25s, transform .25s;
	pointer-events: none;
}
.ngmc-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ngmc-top .ngmc-ico { width: 20px; height: 20px; }

.ngmc-fab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 52px;
	padding: 0 20px 0 16px;
	border-radius: 18px;
	background: var(--ngmc-accent);
	color: var(--ngmc-on-accent) !important;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45);
	pointer-events: auto;
	transition: padding .25s ease, width .25s ease;
	overflow: hidden;
	white-space: nowrap;
}
.ngmc-fab-label { transition: opacity .2s, max-width .25s; max-width: 160px; }
.ngmc-fab.is-compact { padding: 0 14px; }
.ngmc-fab.is-compact .ngmc-fab-label { opacity: 0; max-width: 0; }
.ngmc-fab:active { transform: scale(.96); }

/* ---------------------------------------------------------------- Splash */
.ngmc-splash {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background:
		radial-gradient(90% 60% at 50% 38%, rgba(255, 255, 255, .1), transparent 70%),
		var(--ngmc-splash-bg);
	color: var(--ngmc-on-splash);
	text-align: center;
	animation: ngmc-splash-failsafe .4s ease 4.5s forwards;
}
html.ngmc-no-splash .ngmc-splash { display: none !important; }
.ngmc-splash.is-leaving { opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.ngmc-splash .ngmc-mark { box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); animation: ngmc-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.ngmc-splash-name { margin-top: 22px; font-size: 24px; font-weight: 800; letter-spacing: -.015em; animation: ngmc-rise .55s .15s ease-out both; }
.ngmc-splash-tag { margin-top: 4px; font-size: 14px; opacity: .75; animation: ngmc-rise .55s .25s ease-out both; }
.ngmc-splash-loader {
	position: absolute;
	bottom: calc(56px + env(safe-area-inset-bottom, 0px));
	width: 120px;
	height: 3px;
	border-radius: 3px;
	background: rgba(127, 127, 127, .28);
	overflow: hidden;
}
.ngmc-splash-loader span {
	display: block;
	width: 40%;
	height: 100%;
	border-radius: inherit;
	background: var(--ngmc-accent);
	animation: ngmc-load 1.1s ease-in-out infinite;
}
@keyframes ngmc-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes ngmc-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ngmc-load { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes ngmc-splash-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------------------------------------------------------------- Install sheet */
.ngmc-sheet {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: flex-end;
	background: rgba(6, 12, 24, .45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility 0s linear .3s;
}
.ngmc-sheet.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.ngmc-sheet-card {
	width: 100%;
	padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
	border-radius: 26px 26px 0 0;
	background: var(--ngmc-surface);
	color: var(--ngmc-text);
	transform: translateY(100%);
	transition: transform .38s cubic-bezier(.2, .8, .2, 1);
}
.ngmc-sheet.is-open .ngmc-sheet-card { transform: none; }
.ngmc-sheet-grab { width: 40px; height: 4px; margin: 0 auto 18px; border-radius: 4px; background: var(--ngmc-line); }
.ngmc-sheet-head { display: flex; gap: 14px; align-items: flex-start; }
.ngmc-sheet-head .ngmc-mark { background: var(--ngmc-primary); color: var(--ngmc-on-primary); }
.ngmc-sheet-head .ngmc-mark.has-logo { background: #fff; box-shadow: 0 0 0 1px var(--ngmc-line); }
.ngmc-sheet-title { margin: 2px 0 4px; font-size: 17px; font-weight: 800; }
.ngmc-sheet-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ngmc-muted); }
.ngmc-ios-hint {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--ngmc-surface-2);
	font-size: 13.5px;
	line-height: 1.45;
}
.ngmc-ios-hint[hidden] { display: none; }
.ngmc-ios-hint .ngmc-ico { color: var(--ngmc-primary-ink); }
.ngmc-sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.ngmc-btn { flex: 1; height: 48px; padding: 0 18px; border-radius: 14px; font-size: 15px; font-weight: 700; }
.ngmc-btn-ghost { background: var(--ngmc-surface-2); color: var(--ngmc-text); }
.ngmc-btn-primary { background: var(--ngmc-primary); color: var(--ngmc-on-primary); }

/* ---------------------------------------------------------------- Progress / toast */
.ngmc-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100001; pointer-events: none; }
.ngmc-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--ngmc-accent);
	box-shadow: 0 0 10px var(--ngmc-accent);
	opacity: 0;
	transition: width .3s ease, opacity .4s ease;
}
.ngmc-progress.is-loading span { width: 85%; opacity: 1; transition: width 6s cubic-bezier(.08, .7, .2, 1), opacity .1s; }

.ngmc-toast {
	position: fixed;
	left: 50%;
	bottom: calc(var(--ngmc-tab-space) + env(safe-area-inset-bottom, 0px) + 18px);
	z-index: 100000;
	max-width: calc(100vw - 32px);
	padding: 12px 18px;
	border-radius: 14px;
	background: #1d2433;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 16px);
	transition: opacity .25s, transform .25s, visibility 0s linear .25s;
}
.ngmc-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

/* Page leaving state */
html.ngmc-leaving body.ngmc-app > :not(.ngmc-ui):not(script):not(style) { opacity: .55; transition: opacity .2s ease; }

/* Ripple */
.ngmc-ripple {
	position: absolute;
	border-radius: 50%;
	background: currentColor;
	opacity: .18;
	transform: scale(0);
	pointer-events: none;
	animation: ngmc-ripple .55s ease-out forwards;
}
@keyframes ngmc-ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------------------------------------------------------------- Dark (follows the phone) */
@media (prefers-color-scheme: dark) {
	html.ngmc-dark-auto {
		--ngmc-surface: #12161d;
		--ngmc-surface-2: #1c222c;
		--ngmc-surface-glass: rgba(18, 22, 29, .88);
		--ngmc-text: #e8ecf2;
		--ngmc-muted: #98a2b2;
		--ngmc-line: rgba(255, 255, 255, .09);
		--ngmc-primary-ink: var(--ngmc-primary-ink-dk);
		--ngmc-primary-soft: rgba(255, 255, 255, .08);
	}
	html.ngmc-dark-auto .ngmc-toast { background: #e8ecf2; color: #12161d; }
}

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.ngmc-ui,
	.ngmc-ui * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.ngmc-notice-track { animation: none !important; padding-left: 0; }
	.ngmc-notice-viewport { white-space: normal; overflow: hidden; text-overflow: ellipsis; mask-image: none; }
	.ngmc-splash { animation: ngmc-splash-failsafe .01ms ease 4.5s forwards !important; }
}

@media print { .ngmc-ui { display: none !important; } }
