/*!
 * Nuso Giya Registration UI — v2.0.0
 * Responsive, mobile-first e-commerce design system.
 *
 * Layers:  1. Design tokens   2. Base/reset   3. Layout shell
 *          4. Components      5. Steps (OTP/success)   6. Breakpoints
 * Base styles target phones (320px+); larger screens only add to them.
 */

/* =====================================================================
 * 1. DESIGN TOKENS
 * =================================================================== */
.ngr-root {
	/* Brand */
	--ngr-green-700: #0b7a2e;
	--ngr-green-600: #12923a;
	--ngr-green-500: #169a3f;
	--ngr-lime-500: #7ccb3a;
	--ngr-green-100: #e4f5e8;
	--ngr-green-50: #f1faf3;
	--ngr-navy-900: #0a2a5c;
	--ngr-navy-700: #1d3c70;

	/* Neutrals */
	--ngr-ink: #0a2a5c;
	--ngr-muted: #6b7c93;
	--ngr-placeholder: #93a1b3;
	--ngr-border: #e1ebe4;
	--ngr-surface: #ffffff;
	--ngr-page: #f6fbf7;

	/* Feedback */
	--ngr-danger: #d93a3a;
	--ngr-danger-bg: #fdecec;

	/* Radius */
	--ngr-r-sm: 12px;
	--ngr-r-md: 18px;
	--ngr-r-lg: 24px;
	--ngr-r-pill: 999px;

	/* Space (4px scale) */
	--ngr-s-1: 4px;
	--ngr-s-2: 8px;
	--ngr-s-3: 12px;
	--ngr-s-4: 16px;
	--ngr-s-5: 20px;
	--ngr-s-6: 24px;
	--ngr-s-8: 32px;

	/* Elevation */
	--ngr-shadow-sm: 0 1px 2px rgba(10, 42, 92, 0.04), 0 4px 14px rgba(22, 154, 63, 0.07);
	--ngr-shadow-md: 0 10px 28px rgba(22, 154, 63, 0.14);
	--ngr-shadow-btn: 0 10px 22px rgba(18, 146, 58, 0.32);

	/* Type */
	--ngr-font: "Plus Jakarta Sans", "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, "Noto Sans Ethiopic", "Abyssinica SIL", sans-serif;
	--ngr-fs-xs: 0.78rem;
	--ngr-fs-sm: 0.86rem;
	--ngr-fs-md: 1rem;
	--ngr-fs-lg: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);

	/* Motion */
	--ngr-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =====================================================================
 * 2. BASE / RESET (scoped to the registration screen)
 * =================================================================== */
html.ngr-html,
body.ngr-register-body {
	margin: 0;
	padding: 0;
}

body.ngr-register-body {
	background: var(--ngr-page);
	color: var(--ngr-ink);
	font-family: var(--ngr-font);
	font-size: var(--ngr-fs-md);
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	min-height: 100vh;
	min-height: 100dvh;
}

.ngr-root,
.ngr-root *,
.ngr-root *::before,
.ngr-root *::after {
	box-sizing: border-box;
}

.ngr-root h1,
.ngr-root h2,
.ngr-root p {
	margin: 0;
}

.ngr-root button,
.ngr-root input {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

.ngr-root svg {
	display: block;
	flex-shrink: 0;
}

.ngr-root [hidden] {
	display: none !important;
}

.ngr-root a {
	color: var(--ngr-green-600);
}

.ngr-root :focus-visible {
	outline: 3px solid rgba(22, 154, 63, 0.4);
	outline-offset: 2px;
}

/* =====================================================================
 * 3. LAYOUT SHELL
 * =================================================================== */
.ngr-root {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: hidden;
	background:
		radial-gradient(120% 60% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
		linear-gradient(180deg, #f9fdfa 0%, var(--ngr-page) 100%);
}

/* Decorative corners + wave */
.ngr-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.ngr-bg-top-left,
.ngr-bg-top-right {
	position: absolute;
	top: 0;
	width: clamp(70px, 18vw, 150px);
	height: auto;
}

.ngr-bg-top-left { left: 0; }
.ngr-bg-top-right { right: 0; }

.ngr-bg-bottom {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: clamp(64px, 12vh, 110px);
}

.ngr-shell {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	padding:
		calc(var(--ngr-s-4) + env(safe-area-inset-top, 0px))
		var(--ngr-s-4)
		calc(clamp(72px, 14vh, 120px) + env(safe-area-inset-bottom, 0px));
}

/* Top bar: back button · brand · spacer */
.ngr-topbar {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	align-items: center;
	gap: var(--ngr-s-2);
	margin-bottom: var(--ngr-s-4);
}

.ngr-back {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--ngr-green-100);
	color: var(--ngr-green-600);
	cursor: pointer;
	transition: background 0.2s var(--ngr-ease), transform 0.15s var(--ngr-ease);
}

.ngr-back svg { width: 22px; height: 22px; }
.ngr-back:hover { background: #d3efd9; }
.ngr-back:active { transform: scale(0.94); }

.ngr-brand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ngr-s-3);
	text-decoration: none;
	min-width: 0;
}

.ngr-brand-mark {
	width: clamp(46px, 14vw, 64px);
	height: auto;
}

.ngr-brand-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ngr-brand-name {
	font-size: clamp(1.7rem, 1.2rem + 2.6vw, 2.2rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.ngr-brand-first { color: var(--ngr-navy-900); }
.ngr-brand-last { color: var(--ngr-green-500); }

.ngr-brand-tagline {
	margin-top: 6px;
	font-size: clamp(0.58rem, 0.5rem + 0.5vw, 0.74rem);
	font-weight: 700;
	color: var(--ngr-green-600);
	letter-spacing: 0.01em;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ngr-brand-tagline::before,
.ngr-brand-tagline::after {
	content: "";
	flex: 1 1 8px;
	min-width: 6px;
	height: 1.5px;
	background: var(--ngr-green-600);
	opacity: 0.55;
	border-radius: 2px;
}

.ngr-content { width: 100%; }

/* Steps */
.ngr-step { display: none; }
.ngr-step.is-active {
	display: block;
	animation: ngr-rise 0.35s var(--ngr-ease) both;
}

@keyframes ngr-rise {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

/* Global alert */
.ngr-alert {
	display: flex;
	gap: var(--ngr-s-3);
	align-items: flex-start;
	margin-bottom: var(--ngr-s-4);
	padding: var(--ngr-s-3) var(--ngr-s-4);
	border-radius: var(--ngr-r-sm);
	background: var(--ngr-danger-bg);
	color: var(--ngr-danger);
	font-size: var(--ngr-fs-sm);
	font-weight: 600;
}

.ngr-alert svg { width: 20px; height: 20px; margin-top: 1px; }

/* =====================================================================
 * 4. COMPONENTS
 * =================================================================== */

/* ---- Hero card ---- */
.ngr-hero {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--ngr-s-3);
	min-height: 112px;
	margin-bottom: var(--ngr-s-4);
	padding: var(--ngr-s-4);
	padding-right: clamp(86px, 26vw, 128px);
	border-radius: var(--ngr-r-lg);
	background: linear-gradient(120deg, #e3f5e7 0%, #f1faf3 70%, #ffffff 100%);
	border: 1px solid #d9efde;
	overflow: hidden;
}

.ngr-hero-icon {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(145deg, var(--ngr-green-500), var(--ngr-green-700));
	box-shadow: var(--ngr-shadow-md);
}

.ngr-hero-icon svg { width: 28px; height: 28px; }

.ngr-hero-copy { min-width: 0; }

.ngr-hero-title {
	font-size: var(--ngr-fs-lg);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--ngr-navy-900);
}

.ngr-hero-title span { color: var(--ngr-green-500); }

.ngr-hero-sub {
	margin-top: 4px;
	font-size: var(--ngr-fs-sm);
	color: var(--ngr-muted);
	line-height: 1.4;
}

.ngr-hero-art {
	position: absolute;
	right: -4px;
	bottom: -6px;
	width: clamp(84px, 26vw, 126px);
	height: auto;
}

/* ---- Form + field cards ---- */
.ngr-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ngr-s-3);
}

.ngr-field-group { min-width: 0; }

.ngr-field-card {
	display: flex;
	align-items: center;
	gap: var(--ngr-s-3);
	padding: var(--ngr-s-3);
	border-radius: var(--ngr-r-md);
	background: var(--ngr-surface);
	border: 1px solid var(--ngr-border);
	box-shadow: var(--ngr-shadow-sm);
	transition: border-color 0.2s var(--ngr-ease), box-shadow 0.2s var(--ngr-ease);
}

.ngr-field-card:focus-within {
	border-color: var(--ngr-green-500);
	box-shadow: 0 0 0 4px rgba(22, 154, 63, 0.12), var(--ngr-shadow-sm);
}

.ngr-chip {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: var(--ngr-green-100);
	color: var(--ngr-green-600);
}

.ngr-chip svg { width: 26px; height: 26px; }

.ngr-field-body {
	flex: 1 1 auto;
	min-width: 0;
}

.ngr-field-body label {
	display: block;
	margin-bottom: 4px;
	font-size: var(--ngr-fs-sm);
	font-weight: 700;
	color: var(--ngr-navy-900);
}

.ngr-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 46px;
	border-radius: var(--ngr-r-pill);
	background: #fbfdfb;
	border: 1px solid var(--ngr-border);
	transition: border-color 0.2s var(--ngr-ease), background 0.2s var(--ngr-ease);
}

.ngr-input-wrap:focus-within {
	background: #fff;
	border-color: rgba(22, 154, 63, 0.55);
}

.ngr-input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 0;
	background: transparent;
	/* 16px minimum prevents iOS Safari zoom-on-focus */
	font-size: 16px;
	color: var(--ngr-ink);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	border-radius: var(--ngr-r-pill);
}

.ngr-input::placeholder {
	color: var(--ngr-placeholder);
	opacity: 1;
}

.ngr-input-wrap.is-valid { border-color: rgba(22, 154, 63, 0.6); }
.ngr-input-wrap.is-invalid { border-color: var(--ngr-danger); background: #fffafa; }

.ngr-input-status {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	margin-right: 8px;
	display: none;
	align-items: center;
	justify-content: center;
}

.ngr-input-wrap.is-checking .ngr-input-status,
.ngr-input-wrap.is-valid .ngr-input-status { display: inline-flex; }

.ngr-icon-check {
	display: none !important;
	width: 18px;
	height: 18px;
	color: var(--ngr-green-500);
}

.ngr-input-wrap.is-valid .ngr-icon-check { display: block !important; }

.ngr-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(22, 154, 63, 0.25);
	border-top-color: var(--ngr-green-500);
	animation: ngr-spin 0.7s linear infinite;
}

.ngr-input-wrap.is-checking .ngr-spinner { display: block; }

@keyframes ngr-spin { to { transform: rotate(360deg); } }

.ngr-toggle-password {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin-right: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: var(--ngr-green-600);
	cursor: pointer;
	border-radius: 50%;
}

.ngr-toggle-password svg { width: 22px; height: 22px; }

.ngr-field-error {
	display: block;
	min-height: 0;
	margin: 4px 0 0 var(--ngr-s-3);
	font-size: var(--ngr-fs-xs);
	font-weight: 600;
	color: var(--ngr-danger);
}

.ngr-field-error:empty { display: none; }
.ngr-field-error--center { text-align: center; margin: 0 0 var(--ngr-s-3); }

/* Telegram "Get ID" button */
.ngr-get-id {
	flex: 0 0 auto;
	align-self: flex-end;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 14px;
	border-radius: var(--ngr-r-pill);
	background: linear-gradient(135deg, var(--ngr-green-500), var(--ngr-green-700));
	color: #fff !important;
	font-weight: 700;
	font-size: var(--ngr-fs-sm);
	text-decoration: none;
	box-shadow: 0 6px 14px rgba(18, 146, 58, 0.28);
	transition: transform 0.15s var(--ngr-ease), box-shadow 0.2s var(--ngr-ease);
}

.ngr-get-id svg { width: 18px; height: 18px; }
.ngr-get-id:hover { transform: translateY(-1px); box-shadow: 0 9px 18px rgba(18, 146, 58, 0.34); }
.ngr-get-id:active { transform: scale(0.97); }

.ngr-info {
	display: flex;
	align-items: flex-start;
	gap: var(--ngr-s-3);
	margin-top: var(--ngr-s-2);
	padding: var(--ngr-s-3) var(--ngr-s-4);
	border-radius: var(--ngr-r-sm);
	background: var(--ngr-green-100);
	color: var(--ngr-green-700);
	font-size: var(--ngr-fs-xs);
	line-height: 1.5;
}

.ngr-info svg { width: 22px; height: 22px; margin-top: 1px; }
.ngr-info strong { font-weight: 800; }

/* ---- Consent ---- */
.ngr-consent {
	display: grid;
	gap: var(--ngr-s-3);
	padding: var(--ngr-s-4);
	border-radius: var(--ngr-r-md);
	background: var(--ngr-green-50);
	border: 1px solid #dcefe1;
}

.ngr-checkbox {
	display: flex;
	align-items: center;
	gap: var(--ngr-s-3);
	min-height: 28px;
	cursor: pointer;
	position: relative;
	-webkit-tap-highlight-color: transparent;
}

.ngr-checkbox input {
	position: absolute;
	opacity: 0;
	width: 24px;
	height: 24px;
	margin: 0;
	cursor: pointer;
}

.ngr-checkbox-box {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 7px;
	border: 2px solid #b9d9c1;
	background: #fff;
	transition: background 0.18s var(--ngr-ease), border-color 0.18s var(--ngr-ease);
}

.ngr-checkbox-box svg { width: 12px; height: 10px; opacity: 0; transform: scale(0.6); transition: all 0.18s var(--ngr-ease); }
.ngr-checkbox input:checked + .ngr-checkbox-box { background: var(--ngr-green-500); border-color: var(--ngr-green-500); }
.ngr-checkbox input:checked + .ngr-checkbox-box svg { opacity: 1; transform: none; }
.ngr-checkbox input:focus-visible + .ngr-checkbox-box { outline: 3px solid rgba(22, 154, 63, 0.4); outline-offset: 2px; }

.ngr-checkbox-label {
	font-size: var(--ngr-fs-sm);
	color: var(--ngr-navy-700);
	line-height: 1.35;
}

.ngr-checkbox-label a {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ngr-checkbox-label a::after {
	content: "\203A";
	display: inline-block;
	margin-left: 10px;
	font-weight: 700;
	text-decoration: none;
}

.ngr-consent-note {
	font-size: var(--ngr-fs-xs);
	color: var(--ngr-muted);
	line-height: 1.5;
}

.ngr-consent .ngr-field-error { margin-left: 0; }

/* ---- Primary button ---- */
.ngr-btn-primary {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--ngr-s-3);
	width: 100%;
	min-height: 56px;
	padding: 0 var(--ngr-s-6);
	border: 0;
	border-radius: var(--ngr-r-pill);
	background: linear-gradient(135deg, #1aa545 0%, var(--ngr-green-700) 100%);
	color: #fff !important;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--ngr-shadow-btn);
	transition: transform 0.15s var(--ngr-ease), box-shadow 0.2s var(--ngr-ease), opacity 0.2s;
	-webkit-tap-highlight-color: transparent;
}

.ngr-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(18, 146, 58, 0.36); }
.ngr-btn-primary:active { transform: scale(0.985); }
.ngr-btn-primary:disabled { opacity: 0.75; cursor: not-allowed; transform: none; }

.ngr-btn-icon { width: 26px; height: 26px; }
.ngr-btn-arrow { width: 22px; height: 22px; }

.ngr-btn-divider {
	width: 1.5px;
	height: 28px;
	background: rgba(255, 255, 255, 0.45);
	border-radius: 2px;
}

.ngr-btn-spinner {
	display: none;
	position: absolute;
	right: var(--ngr-s-5);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	animation: ngr-spin 0.7s linear infinite;
}

.ngr-btn-primary.is-loading .ngr-btn-spinner { display: block; }
.ngr-btn-primary.is-loading .ngr-btn-arrow { opacity: 0; }

.ngr-form .ngr-btn-primary { margin-top: var(--ngr-s-1); }

/* ---- Login row ---- */
.ngr-login-row {
	margin-top: var(--ngr-s-5);
	text-align: center;
	font-size: var(--ngr-fs-md);
	color: var(--ngr-navy-700);
}

.ngr-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 4px;
	font-weight: 800;
	text-decoration: none;
	color: var(--ngr-green-600);
	min-height: 44px;
}

.ngr-link svg { width: 18px; height: 18px; }
.ngr-link:hover { text-decoration: underline; }

/* ---- Toast ---- */
.ngr-toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 20;
	max-width: calc(100% - 32px);
	padding: 12px 18px;
	border-radius: var(--ngr-r-pill);
	background: var(--ngr-navy-900);
	color: #fff;
	font-size: var(--ngr-fs-sm);
	font-weight: 600;
	box-shadow: 0 10px 26px rgba(10, 42, 92, 0.3);
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s var(--ngr-ease), transform 0.2s var(--ngr-ease);
}

.ngr-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
 * 5. OTP + SUCCESS STEPS
 * =================================================================== */
.ngr-panel {
	padding: var(--ngr-s-6) var(--ngr-s-4);
	border-radius: var(--ngr-r-lg);
	background: var(--ngr-surface);
	border: 1px solid var(--ngr-border);
	box-shadow: var(--ngr-shadow-sm);
}

.ngr-panel--center { text-align: center; }

.ngr-title {
	font-size: var(--ngr-fs-lg);
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--ngr-navy-900);
}

.ngr-subtitle {
	margin-top: var(--ngr-s-2);
	margin-bottom: var(--ngr-s-5);
	font-size: var(--ngr-fs-sm);
	color: var(--ngr-muted);
	line-height: 1.55;
}

.ngr-otp-email { color: var(--ngr-navy-900); font-weight: 700; word-break: break-all; }

.ngr-otp-icon,
.ngr-success-icon {
	width: 68px;
	height: 68px;
	margin: 0 auto var(--ngr-s-4);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ngr-green-100);
	color: var(--ngr-green-600);
}

.ngr-otp-icon svg { width: 32px; height: 32px; }

.ngr-otp-boxes {
	display: flex;
	justify-content: center;
	gap: clamp(6px, 2vw, 10px);
	margin-bottom: var(--ngr-s-3);
}

.ngr-otp-box {
	flex: 1 1 0;
	min-width: 0;
	max-width: 54px;
	height: 58px;
	padding: 0;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--ngr-ink);
	background: #fff;
	border: 2px solid var(--ngr-border);
	border-radius: var(--ngr-r-sm);
	box-shadow: var(--ngr-shadow-sm);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.18s var(--ngr-ease), box-shadow 0.18s var(--ngr-ease);
}

.ngr-otp-box:focus { border-color: var(--ngr-green-500); box-shadow: 0 0 0 4px rgba(22, 154, 63, 0.14); }
.ngr-otp-box.is-invalid { border-color: var(--ngr-danger); }

.ngr-otp-meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--ngr-s-1);
	margin-bottom: var(--ngr-s-5);
}

.ngr-otp-resend {
	min-height: 44px;
	padding: 0 var(--ngr-s-3);
	border: 0;
	background: transparent;
	color: var(--ngr-green-600);
	font-weight: 800;
	cursor: pointer;
}

.ngr-otp-resend:disabled { color: var(--ngr-placeholder); cursor: not-allowed; }
.ngr-otp-expiry { font-size: var(--ngr-fs-xs); color: var(--ngr-muted); }

.ngr-success-icon {
	width: 84px;
	height: 84px;
	background: linear-gradient(145deg, var(--ngr-green-500), var(--ngr-green-700));
	color: #fff;
	box-shadow: 0 0 0 10px rgba(22, 154, 63, 0.12);
}

.ngr-success-icon svg { width: 42px; height: 42px; }

.ngr-success-eyebrow {
	margin: var(--ngr-s-4) 0 var(--ngr-s-1);
	font-size: var(--ngr-fs-xs);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ngr-green-600);
}

.ngr-redirect-note { margin-top: var(--ngr-s-3); font-size: var(--ngr-fs-xs); color: var(--ngr-muted); }

/* =====================================================================
 * 6. BREAKPOINTS (mobile-first: only enhancements below)
 * =================================================================== */

/* Very small phones */
@media (max-width: 359px) {
	.ngr-shell { padding-left: var(--ngr-s-3); padding-right: var(--ngr-s-3); }
	.ngr-chip { width: 40px; height: 40px; border-radius: 12px; }
	.ngr-chip svg { width: 22px; height: 22px; }
	.ngr-field-card { gap: var(--ngr-s-2); padding: var(--ngr-s-2); }
	.ngr-field-card .ngr-get-id { flex-basis: 100%; }
	.ngr-field-group--telegram .ngr-field-card { flex-wrap: wrap; }
	.ngr-field-group--telegram .ngr-field-body { flex: 1 1 140px; }
	.ngr-brand-tagline { display: none; }
}

/* Large phones / small tablets */
@media (min-width: 600px) {
	.ngr-shell { max-width: 560px; padding-top: calc(var(--ngr-s-8) + env(safe-area-inset-top, 0px)); }
	.ngr-panel { padding: var(--ngr-s-8) var(--ngr-s-6); }
	.ngr-hero { padding: var(--ngr-s-6); padding-right: 150px; min-height: 132px; }
	.ngr-hero-art { width: 150px; }
	.ngr-field-card { padding: var(--ngr-s-4); }
}

/* Tablets — two-column form grid */
@media (min-width: 768px) {
	.ngr-shell { max-width: 760px; }

	.ngr-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--ngr-s-4);
		row-gap: var(--ngr-s-4);
	}

	.ngr-field-group--wide,
	.ngr-field-group--telegram,
	.ngr-consent,
	.ngr-form .ngr-btn-primary { grid-column: 1 / -1; }

	.ngr-form .ngr-btn-primary { max-width: 420px; justify-self: center; }

	/* Step panels stay narrow and centered */
	.ngr-step[data-step="otp"] .ngr-panel,
	.ngr-step[data-step="success"] .ngr-panel { max-width: 480px; margin: 0 auto; }
}

/* Desktop — gives the form a floating card feel */
@media (min-width: 1024px) {
	.ngr-shell { max-width: 820px; padding-bottom: 140px; }
	.ngr-step[data-step="register"] {
		padding: var(--ngr-s-6);
		border-radius: 32px;
		background: rgba(255, 255, 255, 0.82);
		border: 1px solid #e6f0e9;
		box-shadow: 0 24px 60px rgba(10, 42, 92, 0.08);
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
	}
}

/* Short landscape phones: avoid the fixed wave eating the viewport */
@media (max-height: 480px) {
	.ngr-bg-bottom { height: 48px; }
}

/* Honour reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.ngr-root *,
	.ngr-root *::before,
	.ngr-root *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
