/**
 * Laptop BD Premium Notice - frontend styles.
 * Non-blocking floating corner notice. All selectors are scoped to .lbdpn-overlay.
 */

.lbdpn-overlay[hidden] {
	display: none !important;
}

.lbdpn-overlay,
.lbdpn-overlay * {
	box-sizing: border-box;
}

.lbdpn-overlay {
	--lbdpn-primary: #0a8f5a;
	--lbdpn-secondary: #18b673;
	--lbdpn-primary-rgb: 10, 143, 90;
	position: fixed;
	right: 18px;
	right: max(18px, env(safe-area-inset-right));
	bottom: 18px;
	bottom: max(18px, env(safe-area-inset-bottom));
	z-index: 2147483000;
	width: 400px;
	width: min(400px, calc(100vw - 28px));
	max-width: calc(100vw - 28px);
	margin: 0;
	padding: 0;
	background: transparent;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate3d(18px, 18px, 0) scale(0.985);
	transform-origin: right bottom;
	transition:
		opacity 220ms ease,
		visibility 220ms ease,
		transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Bengali", sans-serif;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.lbdpn-overlay.lbdpn-is-open {
	opacity: 1;
	visibility: visible;
	transform: translate3d(0, 0, 0) scale(1);
}

.lbdpn-dialog {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-height: calc(100vh - 36px);
	max-height: calc(100dvh - 36px);
	overflow: hidden auto;
	pointer-events: auto;
	border: 1px solid rgba(255, 255, 255, 0.78);
	border-radius: 20px;
	box-shadow:
		0 24px 60px rgba(8, 28, 18, 0.2),
		0 8px 24px rgba(var(--lbdpn-primary-rgb), 0.12),
		0 1px 0 rgba(255, 255, 255, 0.72) inset;
	scrollbar-width: thin;
	scrollbar-color: rgba(var(--lbdpn-primary-rgb), 0.3) transparent;
}

.lbdpn-dialog::-webkit-scrollbar {
	width: 6px;
}

.lbdpn-dialog::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(var(--lbdpn-primary-rgb), 0.28);
}

.lbdpn-dialog--light {
	--lbdpn-card: #ffffff;
	--lbdpn-card-soft: #f7faf8;
	--lbdpn-card-border: #e2ece6;
	--lbdpn-text: #13231b;
	--lbdpn-muted: #607067;
	--lbdpn-item: rgba(246, 250, 247, 0.86);
	--lbdpn-item-hover: #eef8f2;
	color: var(--lbdpn-text);
	background: rgba(255, 255, 255, 0.985);
}

.lbdpn-dialog--dark {
	--lbdpn-card: #101813;
	--lbdpn-card-soft: #172019;
	--lbdpn-card-border: rgba(255, 255, 255, 0.1);
	--lbdpn-text: #f4faf6;
	--lbdpn-muted: #b7c5bc;
	--lbdpn-item: rgba(255, 255, 255, 0.045);
	--lbdpn-item-hover: rgba(255, 255, 255, 0.075);
	color: var(--lbdpn-text);
	background: rgba(16, 24, 19, 0.985);
	border-color: rgba(255, 255, 255, 0.13);
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.34),
		0 8px 24px rgba(var(--lbdpn-primary-rgb), 0.14);
}

.lbdpn-topline {
	position: absolute;
	z-index: 3;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, var(--lbdpn-primary), var(--lbdpn-secondary), #d9ff91, var(--lbdpn-secondary));
	background-size: 240% 100%;
	animation: lbdpn-shimmer 5s linear infinite;
}

.lbdpn-glow {
	position: absolute;
	z-index: -1;
	border-radius: 999px;
	pointer-events: none;
}

.lbdpn-glow--one {
	top: -90px;
	right: -55px;
	width: 175px;
	height: 175px;
	background: radial-gradient(circle, rgba(var(--lbdpn-primary-rgb), 0.2), transparent 70%);
}

.lbdpn-glow--two {
	bottom: -115px;
	left: -80px;
	width: 190px;
	height: 190px;
	background: radial-gradient(circle, rgba(var(--lbdpn-primary-rgb), 0.1), transparent 72%);
}

.lbdpn-close {
	position: absolute;
	z-index: 6;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--lbdpn-card-border);
	border-radius: 11px;
	color: var(--lbdpn-muted);
	background: var(--lbdpn-card-soft);
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.lbdpn-close:hover {
	color: var(--lbdpn-text);
	border-color: rgba(var(--lbdpn-primary-rgb), 0.3);
	background: var(--lbdpn-item-hover);
	transform: rotate(4deg);
}

.lbdpn-close svg {
	display: block;
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.lbdpn-header {
	padding: 22px 56px 12px 20px;
}

.lbdpn-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 25px;
	margin: 0 0 9px;
	padding: 4px 9px;
	border: 1px solid rgba(var(--lbdpn-primary-rgb), 0.2);
	border-radius: 999px;
	color: var(--lbdpn-primary);
	background: rgba(var(--lbdpn-primary-rgb), 0.075);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.035em;
	line-height: 1.2;
	text-transform: uppercase;
}

.lbdpn-dialog--dark .lbdpn-badge {
	color: #8ff0b9;
	background: rgba(var(--lbdpn-primary-rgb), 0.16);
}

.lbdpn-pulse {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--lbdpn-secondary);
	box-shadow: 0 0 0 0 rgba(var(--lbdpn-primary-rgb), 0.44);
	animation: lbdpn-pulse 2s infinite;
}

.lbdpn-title {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--lbdpn-text) !important;
	font: inherit !important;
	font-size: 20px !important;
	font-weight: 850 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.28 !important;
}

.lbdpn-subtitle {
	margin: 6px 0 0 !important;
	padding: 0 !important;
	color: var(--lbdpn-muted) !important;
	font: inherit !important;
	font-size: 12.75px !important;
	font-weight: 500 !important;
	line-height: 1.55 !important;
}

.lbdpn-content {
	padding: 0 16px 15px;
}

.lbdpn-list {
	display: grid;
	gap: 4px;
	margin: 0 !important;
	padding: 6px !important;
	border: 1px solid var(--lbdpn-card-border);
	border-radius: 15px;
	background: var(--lbdpn-item);
	list-style: none !important;
}

.lbdpn-list-item {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	align-items: center;
	gap: 9px;
	min-height: 45px;
	margin: 0 !important;
	padding: 6px 7px !important;
	border: 0;
	border-radius: 10px;
	color: var(--lbdpn-text);
	background: transparent;
	transition: transform 160ms ease, background 160ms ease;
}

.lbdpn-list-item:hover {
	transform: translateX(2px);
	background: var(--lbdpn-item-hover);
}

.lbdpn-overlay.lbdpn-is-open .lbdpn-list-item {
	animation: lbdpn-item-in 360ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.lbdpn-overlay.lbdpn-is-open .lbdpn-list-item:nth-child(1) {
	animation-delay: 45ms;
}

.lbdpn-overlay.lbdpn-is-open .lbdpn-list-item:nth-child(2) {
	animation-delay: 80ms;
}

.lbdpn-overlay.lbdpn-is-open .lbdpn-list-item:nth-child(3) {
	animation-delay: 115ms;
}

.lbdpn-overlay.lbdpn-is-open .lbdpn-list-item:nth-child(4) {
	animation-delay: 150ms;
}

.lbdpn-icon {
	display: grid;
	place-items: center;
	width: 31px;
	height: 31px;
	border: 1px solid rgba(var(--lbdpn-primary-rgb), 0.15);
	border-radius: 9px;
	background:
		linear-gradient(145deg, rgba(var(--lbdpn-primary-rgb), 0.12), rgba(var(--lbdpn-primary-rgb), 0.025)),
		var(--lbdpn-card);
	box-shadow: 0 5px 12px rgba(var(--lbdpn-primary-rgb), 0.07);
	font-size: 15.5px;
	line-height: 1;
}

.lbdpn-message {
	color: var(--lbdpn-text);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.48;
}

.lbdpn-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	margin-top: 11px;
}

.lbdpn-secondary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 9px 14px;
	border: 1px solid rgba(var(--lbdpn-primary-rgb), 0.2);
	border-radius: 12px;
	color: #ffffff !important;
	background: linear-gradient(135deg, var(--lbdpn-primary), var(--lbdpn-secondary));
	box-shadow: 0 8px 18px rgba(var(--lbdpn-primary-rgb), 0.2);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.lbdpn-secondary-button:hover {
	color: #ffffff !important;
	filter: saturate(1.06) brightness(1.02);
	transform: translateY(-1px);
	box-shadow: 0 11px 22px rgba(var(--lbdpn-primary-rgb), 0.25);
}

.lbdpn-secondary-button svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.lbdpn-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
	color: var(--lbdpn-muted);
	font-size: 10.25px;
	font-weight: 650;
	line-height: 1.4;
	text-align: center;
}

.lbdpn-trust svg {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	fill: none;
	stroke: var(--lbdpn-primary);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lbdpn-close:focus-visible,
.lbdpn-secondary-button:focus-visible {
	outline: 3px solid rgba(var(--lbdpn-primary-rgb), 0.35);
	outline-offset: 3px;
}

@keyframes lbdpn-shimmer {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 240% 50%;
	}
}

@keyframes lbdpn-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(var(--lbdpn-primary-rgb), 0.4);
	}
	70% {
		box-shadow: 0 0 0 7px rgba(var(--lbdpn-primary-rgb), 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(var(--lbdpn-primary-rgb), 0);
	}
}

@keyframes lbdpn-item-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 640px) {
	.lbdpn-overlay {
		right: 10px;
		right: max(10px, env(safe-area-inset-right));
		bottom: 10px;
		bottom: max(10px, env(safe-area-inset-bottom));
		width: calc(100vw - 20px);
		max-width: calc(100vw - 20px);
		transform: translate3d(0, 16px, 0) scale(0.99);
		transform-origin: center bottom;
	}

	.lbdpn-dialog {
		max-height: calc(100vh - 20px);
		max-height: min(70dvh, 520px);
		border-radius: 18px;
	}

	.lbdpn-header {
		padding: 20px 52px 10px 16px;
	}

	.lbdpn-close {
		top: 11px;
		right: 11px;
		width: 33px;
		height: 33px;
	}

	.lbdpn-badge {
		margin-bottom: 7px;
		font-size: 10px;
	}

	.lbdpn-title {
		font-size: 18px !important;
	}

	.lbdpn-subtitle {
		font-size: 12.25px !important;
	}

	.lbdpn-content {
		padding: 0 12px 12px;
	}

	.lbdpn-list {
		padding: 5px !important;
		border-radius: 14px;
	}

	.lbdpn-list-item {
		grid-template-columns: 30px minmax(0, 1fr);
		gap: 8px;
		min-height: 42px;
		padding: 5px 6px !important;
	}

	.lbdpn-icon {
		width: 29px;
		height: 29px;
		font-size: 14.5px;
	}

	.lbdpn-message {
		font-size: 12.5px;
		line-height: 1.45;
	}

	.lbdpn-secondary-button {
		min-height: 40px;
		font-size: 12.5px;
	}

	.lbdpn-trust {
		margin-top: 8px;
		font-size: 9.75px;
	}
}

@media (max-width: 360px) {
	.lbdpn-overlay {
		right: 8px;
		right: max(8px, env(safe-area-inset-right));
		bottom: 8px;
		bottom: max(8px, env(safe-area-inset-bottom));
		width: calc(100vw - 16px);
		max-width: calc(100vw - 16px);
	}

}

@media (max-height: 520px) {
	.lbdpn-dialog {
		max-height: calc(100dvh - 16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lbdpn-overlay,
	.lbdpn-close,
	.lbdpn-list-item,
	.lbdpn-secondary-button {
		transition: none !important;
		animation: none !important;
	}
}
