/* PWA Install Pro — frontend styles */

.pip-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(15, 23, 42, 0);
	transition: background 0.28s ease;
	-webkit-tap-highlight-color: transparent;
}

.pip-overlay.pip-open {
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: saturate(120%) blur(2px);
	-webkit-backdrop-filter: saturate(120%) blur(2px);
}

html.pip-lock,
html.pip-lock body {
	overflow: hidden;
}

.pip-sheet {
	position: relative;
	width: 100%;
	max-width: 460px;
	margin: 0 12px 12px;
	padding: 26px 22px 22px;
	background: #fff;
	border-radius: 26px 26px 18px 18px;
	box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.25);
	transform: translateY(110%);
	transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
	font-family: inherit;
	text-align: center;
}

.pip-overlay.pip-open .pip-sheet {
	transform: translateY(0);
}

/* Grab handle */
.pip-sheet::before {
	content: "";
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 42px;
	height: 5px;
	border-radius: 99px;
	background: #e2e8f0;
}

.pip-close {
	position: absolute;
	top: 14px;
	left: 16px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s;
}
.pip-close:hover { background: #e2e8f0; }

.pip-logo-wrap {
	margin: 10px auto 14px;
	width: 76px;
	height: 76px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pip-logo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pip-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.4;
}

.pip-text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.9;
	color: #475569;
}

.pip-install-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 15px 20px;
	border: 0;
	border-radius: 16px;
	background: var(--pip-accent, #0B6BCB);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	font-family: inherit;
	cursor: pointer;
	transition: transform 0.15s, filter 0.2s;
	box-shadow: 0 8px 20px rgba(11, 107, 203, 0.32);
}
.pip-install-btn:hover { filter: brightness(1.05); }
.pip-install-btn:active { transform: scale(0.98); }

.pip-dismiss {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 12px;
	border: 0;
	background: transparent;
	color: #94a3b8;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
}
.pip-dismiss:hover { color: #64748b; }

/* iOS steps */
.pip-steps {
	list-style: none;
	margin: 4px 0 14px;
	padding: 0;
	text-align: right;
}
.pip-steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	margin-bottom: 10px;
	background: #f8fafc;
	border: 1px solid #eef2f7;
	border-radius: 14px;
}
.pip-step-num {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--pip-accent, #0B6BCB);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pip-step-text {
	flex: 1;
	font-size: 14.5px;
	color: #334155;
	line-height: 1.7;
}
.pip-step-icon {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	object-fit: contain;
}

/* iOS bouncing arrow pointing to Safari share button (bottom center) */
.pip-arrow-hint {
	width: 34px;
	height: 34px;
	margin: 2px auto 14px;
	border-right: 3px solid var(--pip-accent, #0B6BCB);
	border-bottom: 3px solid var(--pip-accent, #0B6BCB);
	transform: rotate(45deg);
	opacity: 0.85;
	animation: pip-bounce 1.4s infinite;
}

@keyframes pip-bounce {
	0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.85; }
	50%      { transform: rotate(45deg) translateY(8px); opacity: 0.4; }
}

@media (prefers-color-scheme: dark) {
	.pip-sheet { background: #0f172a; box-shadow: 0 -8px 40px rgba(0,0,0,0.5); }
	.pip-sheet::before { background: #334155; }
	.pip-close { background: #1e293b; color: #cbd5e1; }
	.pip-close:hover { background: #334155; }
	.pip-title { color: #f1f5f9; }
	.pip-text { color: #94a3b8; }
	.pip-steps li { background: #1e293b; border-color: #1e293b; }
	.pip-step-text { color: #cbd5e1; }
	.pip-logo-wrap { background: #1e293b; }
}
