
.pwa-sheet, .pwa-sheet *, .pwa-sheet *::before, .pwa-sheet *::after {
	box-sizing: border-box;
}

.pwa-sheet {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	pointer-events: none;
}
.pwa-sheet[hidden] { display: none; }

.pwa-sheet__scrim {
	position: absolute;
	inset: 0;
	background: rgba(6, 8, 20, 0.62);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.28s ease;
	pointer-events: auto;
}
.pwa-sheet.is-open .pwa-sheet__scrim { opacity: 1; }

.pwa-sheet__panel {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	max-width: 480px;
	margin: 0 auto;
	padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px));
	background: var(--mp-card, rgba(15, 18, 38, 0.97));
	border: 1px solid var(--mp-line, rgba(255, 255, 255, 0.10));
	border-bottom: none;
	border-radius: 24px 24px 0 0;
	box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.55);
	color: var(--mp-text, #e9e9ea);
	overflow: hidden;
	pointer-events: auto;
	transform: translateY(110%);
	transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.pwa-sheet.is-open .pwa-sheet__panel { transform: translateY(0); }

.pwa-sheet__panel::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg,
		var(--primary, #FF3F8E), var(--magenta, #e879f9), var(--secondary, #5F5BFF));
}

.pwa-sheet__glow {
	position: absolute;
	top: -60px; left: 50%;
	width: 320px; height: 220px;
	margin-left: -160px;
	background:
		radial-gradient(closest-side, rgba(255, 63, 142, 0.45), rgba(255, 63, 142, 0) 70%),
		radial-gradient(closest-side, rgba(95, 91, 255, 0.40), rgba(95, 91, 255, 0) 70%);
	background-position: 20% 0, 80% 30%;
	background-repeat: no-repeat;
	background-size: 70% 100%, 70% 100%;
	filter: blur(8px);
	opacity: 0.45;
	pointer-events: none;
}

.pwa-sheet__grip {
	position: absolute;
	top: 9px; left: 50%;
	width: 42px; height: 4px;
	margin-left: -21px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
}

.pwa-sheet__close {
	position: absolute;
	top: 14px; right: 14px;
	width: 32px; height: 32px;
	display: flex; align-items: center; justify-content: center;
	font-size: 18px; line-height: 1;
	color: var(--mp-muted, rgba(255, 255, 255, 0.6));
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--mp-line, rgba(255, 255, 255, 0.10));
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.pwa-sheet__close:hover {
	color: #fff;
	background: rgba(255, 45, 134, 0.16);
	border-color: var(--primary, #FF3F8E);
}

.pwa-sheet__head {
	position: relative;
	text-align: center;
	margin: 6px 0 16px;
}
.pwa-sheet__icon {
	display: block;
	width: 66px; height: 66px;
	margin: 0 auto 12px;
	border-radius: 16px;
	box-shadow: 0 4px 14px rgba(255, 63, 142, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.pwa-sheet__title {
	font-size: 1.32rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	background: linear-gradient(90deg, var(--primary, #FF3F8E), var(--magenta, #e879f9) 55%, var(--secondary, #5F5BFF));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--primary, #FF3F8E);
}
.pwa-sheet__sub {
	margin-top: 4px;
	font-size: 0.86rem;
	color: var(--mp-muted, rgba(255, 255, 255, 0.6));
}

.pwa-sheet__body[hidden] { display: none; }

.pwa-perks {
	list-style: none;
	margin: 0 auto 18px;
	padding: 0;
	display: grid;
	gap: 9px;
	width: max-content;
	max-width: 100%;
	text-align: left;
}
.pwa-perks li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	color: var(--mp-text, #e9e9ea);
}
.pwa-perks li span { min-width: 0; overflow-wrap: anywhere; }
.pwa-perks svg { flex: 0 0 auto; color: var(--primary, #FF3F8E); }

.pwa-steps {
	margin: 0 auto 18px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
	counter-reset: pwa-step;
	width: max-content;
	max-width: 100%;
	text-align: left;
}
.pwa-steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.92rem;
	line-height: 1.35;
	color: var(--mp-text, #e9e9ea);
	min-width: 0;
	overflow-wrap: anywhere;
}
.pwa-steps li::before {
	counter-increment: pwa-step;
	content: counter(pwa-step);
	flex: 0 0 auto;
	width: 26px; height: 26px;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.82rem; font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, var(--primary, #FF3F8E), var(--secondary, #5F5BFF));
	border-radius: 999px;
}
.pwa-ios-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px; height: 26px;
	margin: 0 2px;
	vertical-align: middle;
	color: #0a84ff;
	background: rgba(255, 255, 255, 0.10);
	border-radius: 7px;
}

.pwa-sheet__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 6px;
}
.pwa-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 14px;
	padding: 13px 16px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	width: 100%;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pwa-btn--primary {
	color: #fff;
	background: linear-gradient(135deg, var(--primary, #FF3F8E), var(--secondary, #5F5BFF));
}
.pwa-btn--primary:hover { transform: translateY(-1px); }
.pwa-btn--primary:active { transform: translateY(0) scale(0.99); }
.pwa-btn--ghost {
	color: var(--mp-muted, rgba(255, 255, 255, 0.66));
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--mp-line, rgba(255, 255, 255, 0.10));
}
.pwa-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.10); }

.pwa-never {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 6px;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.42);
	background: none;
	border: none;
	cursor: pointer;
	text-align: center;
}
.pwa-never:hover { color: rgba(255, 255, 255, 0.7); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	.pwa-sheet__panel { transition: none; }
}
