/* Pricing Section By Helal | helalwebandads.com */
.hpsh-wrap {
	--hpsh-accent: #c8001e;
	--hpsh-section-bg: transparent;
	--hpsh-eyebrow: #c8001e;
	--hpsh-heading: #0b0b0f;
	--hpsh-sub: #6b7280;
	--hpsh-sw-track: #fbdde2;
	--hpsh-sw-on: #f0113a;
	--hpsh-sw-on-text: #fff;
	--hpsh-sw-off: #f3f6fb;
	--hpsh-sw-off-text: #1f2937;
	--hpsh-card-bg: #fff;
	--hpsh-card-border: #ececf0;
	--hpsh-label: #c8001e;
	--hpsh-price: #000;
	--hpsh-meta: #8b8f98;
	--hpsh-feature: #4b5563;
	--hpsh-check: #c8001e;
	--hpsh-btn-bg: #c8001e;
	--hpsh-btn-hover: #a80019;
	--hpsh-btn-text: #fff;
	--hpsh-custom-bg: #f5f7fb;
	--hpsh-custom-title: #0b0b0f;
	--hpsh-custom-text: #8b8f98;
	--hpsh-icon: #c8001e;
	--hpsh-sym-bdt-1: #ff1f4b;
	--hpsh-sym-bdt-2: #ff9500;
	--hpsh-sym-usd-1: #00b37e;
	--hpsh-sym-usd-2: #2f6bff;
	--hpsh-cols-d: 4;
	--hpsh-cols-t: 2;
	--hpsh-cols-m: 1;
	--hpsh-gap: 24px;
	--hpsh-max: 1300px;
	--hpsh-pad-y: 40px;
	--hpsh-radius: 20px;
	--hpsh-btn-radius: 999px;
	--hpsh-card-pad: 28px;
	--hpsh-h-size: 36px;
	--hpsh-price-size: 46px;
	--hpsh-font: inherit;

	font-family: var(--hpsh-font);
	background: var(--hpsh-section-bg);
	padding: var(--hpsh-pad-y) 0;
	line-height: 1.5;
	width: 100%;
	overflow-x: clip;
}

/* Full width: section spans the whole screen, content stays inside max width */
.hpsh-wrap.hpsh-fullwidth {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
/* JS (frontend.js) re-measures the real position and overrides these margins, so the section
   stays centered even inside Elementor / flex / offset parents. */
body:has(.hpsh-fullwidth) {
	overflow-x: clip;
}

.hpsh-wrap *,
.hpsh-wrap *::before,
.hpsh-wrap *::after {
	box-sizing: border-box;
}

.hpsh-wrap .hpsh-inner {
	max-width: var(--hpsh-max);
	margin: 0 auto;
	padding: 0 24px;
}

/* Header */
.hpsh-wrap .hpsh-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px 24px;
	margin: 0 0 32px;
}
.hpsh-wrap.hpsh-head-center .hpsh-head {
	flex-direction: column;
	justify-content: center;
	text-align: center;
}
.hpsh-wrap.hpsh-head-left .hpsh-head {
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}
.hpsh-wrap .hpsh-eyebrow {
	color: var(--hpsh-eyebrow);
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 4px;
}
.hpsh-wrap .hpsh-heading {
	margin: 0;
	padding: 0;
	color: var(--hpsh-heading);
	font-family: inherit;
	font-size: clamp(26px, 5.2vw, var(--hpsh-h-size));
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
}
.hpsh-wrap .hpsh-sub {
	margin: 8px 0 0;
	color: var(--hpsh-sub);
	font-size: 14px;
}

/* Currency switch */
.hpsh-wrap .hpsh-switch {
	display: inline-flex;
	gap: 8px;
	padding: 8px;
	background: var(--hpsh-sw-track);
	border-radius: 999px;
}
.hpsh-wrap .hpsh-switch .hpsh-sw {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	margin: 0;
	cursor: pointer;
	padding: 12px 26px;
	border-radius: 999px;
	background: var(--hpsh-sw-off);
	color: var(--hpsh-sw-off-text);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	transition: background 0.2s, color 0.2s;
}
.hpsh-wrap[data-currency="bdt"] .hpsh-switch .hpsh-sw-bdt,
.hpsh-wrap[data-currency="usd"] .hpsh-switch .hpsh-sw-usd {
	background: var(--hpsh-sw-on);
	color: var(--hpsh-sw-on-text);
}
.hpsh-wrap .hpsh-switch .hpsh-sw:focus-visible {
	outline: 2px solid var(--hpsh-sw-on);
	outline-offset: 2px;
}

/* Grid */
.hpsh-wrap .hpsh-grid {
	display: grid;
	grid-template-columns: repeat(var(--hpsh-cols-d), minmax(0, 1fr));
	gap: var(--hpsh-gap);
	align-items: stretch;
}
@media (max-width: 1024px) {
	.hpsh-wrap .hpsh-grid {
		grid-template-columns: repeat(var(--hpsh-cols-t), minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.hpsh-wrap .hpsh-grid {
		grid-template-columns: repeat(var(--hpsh-cols-m), minmax(0, 1fr));
	}
	.hpsh-wrap .hpsh-switch .hpsh-sw {
		padding: 11px 18px;
		font-size: 14px;
	}
}

/* Card */
.hpsh-wrap .hpsh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--hpsh-card-bg);
	border: 1px solid var(--hpsh-card-border);
	border-radius: var(--hpsh-radius);
	padding: var(--hpsh-card-pad);
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background-color 0.3s ease;
	will-change: transform;
}
.hpsh-wrap.hpsh-shadow .hpsh-card {
	box-shadow: 0 4px 24px rgba(16, 24, 40, 0.06);
}
.hpsh-wrap .hpsh-card.is-featured {
	border-color: var(--hpsh-btn-bg);
	box-shadow: 0 8px 30px rgba(16, 24, 40, 0.12);
}
.hpsh-wrap .hpsh-ribbon {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 0 0 12px 12px !important;
	background: var(--hpsh-btn-bg);
	color: var(--hpsh-btn-text);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 16px;
	white-space: nowrap;
}
.hpsh-wrap .hpsh-label {
	color: var(--hpsh-label);
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 8px;
}
.hpsh-wrap .hpsh-price {
	color: var(--hpsh-price);
	font-size: clamp(32px, 7vw, var(--hpsh-price-size));
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
}
.hpsh-wrap .hpsh-subtitle {
	color: var(--hpsh-meta);
	font-size: 14px;
	margin: 6px 0 18px;
}
.hpsh-wrap .hpsh-price + .hpsh-features {
	margin-top: 18px;
}

/* Currency symbol: colorful gradient + animation (BDT and USD each have their own colors) */
.hpsh-wrap .hpsh-sym {
	display: inline-block;
	margin-right: 0.04em;
	color: var(--hpsh-sym-c1);
	transform-origin: 50% 80%;
	will-change: transform, background-position;
}
.hpsh-wrap .hpsh-p-bdt .hpsh-sym {
	--hpsh-sym-c1: var(--hpsh-sym-bdt-1);
	--hpsh-sym-c2: var(--hpsh-sym-bdt-2);
}
.hpsh-wrap .hpsh-p-usd .hpsh-sym {
	--hpsh-sym-c1: var(--hpsh-sym-usd-1);
	--hpsh-sym-c2: var(--hpsh-sym-usd-2);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.hpsh-wrap .hpsh-sym {
		background-image: linear-gradient(90deg, var(--hpsh-sym-c1), var(--hpsh-sym-c2), var(--hpsh-sym-c1));
		background-size: 200% 100%;
		background-repeat: repeat-x;
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		color: transparent;
	}
}
.hpsh-wrap.hpsh-sym-flow .hpsh-sym {
	animation: hpsh-sym-flow 3s linear infinite;
}
.hpsh-wrap.hpsh-sym-float .hpsh-sym {
	animation: hpsh-sym-bounce 2.2s ease-in-out infinite;
}
.hpsh-wrap.hpsh-sym-both .hpsh-sym {
	animation: hpsh-sym-flow 3s linear infinite, hpsh-sym-bounce 2.2s ease-in-out infinite;
}
@keyframes hpsh-sym-flow {
	from { background-position: 0% 50%; }
	to { background-position: 200% 50%; }
}
@keyframes hpsh-sym-bounce {
	0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
	40% { transform: translateY(-0.09em) scale(1.1) rotate(-7deg); }
	70% { transform: translateY(0.01em) scale(0.97) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
	.hpsh-wrap .hpsh-sym { animation: none !important; }
}

/* Currency visibility */
.hpsh-wrap[data-currency="bdt"] .hpsh-p-usd,
.hpsh-wrap[data-currency="usd"] .hpsh-p-bdt {
	display: none;
}

/* Features */
.hpsh-wrap .hpsh-features {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	flex: 1 1 auto;
}
.hpsh-wrap .hpsh-features li {
	position: relative;
	list-style: none;
	margin: 0 0 12px;
	padding: 0 0 0 26px;
	color: var(--hpsh-feature);
	font-size: 14px;
	line-height: 1.4;
}
.hpsh-wrap .hpsh-features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 15px;
	height: 15px;
	background: var(--hpsh-check);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.3 5.3a1 1 0 0 1 0 1.4l-11 11a1 1 0 0 1-1.4 0l-5-5a1 1 0 1 1 1.4-1.4l4.3 4.3L18.9 5.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.3 5.3a1 1 0 0 1 0 1.4l-11 11a1 1 0 0 1-1.4 0l-5-5a1 1 0 1 1 1.4-1.4l4.3 4.3L18.9 5.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Button */
.hpsh-wrap .hpsh-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: auto;
	align-self: stretch;
	flex-shrink: 0;
	padding: 14px 20px;
	background: var(--hpsh-btn-bg);
	color: var(--hpsh-btn-text);
	border: 1.5px solid var(--hpsh-btn-bg);
	border-radius: var(--hpsh-btn-radius);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.25s, color 0.25s, border-color 0.25s;
}
.hpsh-wrap .hpsh-btn:hover,
.hpsh-wrap .hpsh-btn:focus {
	background: var(--hpsh-btn-hover);
	border-color: var(--hpsh-btn-hover);
	color: var(--hpsh-btn-text);
	text-decoration: none;
}
.hpsh-wrap .hpsh-btn.is-outline {
	background: transparent;
	color: var(--hpsh-btn-bg);
}
.hpsh-wrap .hpsh-btn.is-outline:hover,
.hpsh-wrap .hpsh-btn.is-outline:focus {
	background: var(--hpsh-btn-bg);
	border-color: var(--hpsh-btn-bg);
	color: var(--hpsh-btn-text);
}
.hpsh-wrap .hpsh-arrow {
	flex: 0 0 auto;
}

/* Custom card */
.hpsh-wrap .hpsh-card-custom {
	background: var(--hpsh-custom-bg);
	align-items: center;
	justify-content: flex-start;
	text-align: center;
}
/* Content sits in the middle of the free space, button is always pinned to the card bottom. */
.hpsh-wrap .hpsh-card-custom > :first-child {
	margin-top: auto;
}
.hpsh-wrap .hpsh-card-custom .hpsh-icon {
	display: block;
	width: 44px;
	height: 44px;
	margin: 0 0 14px;
	color: var(--hpsh-icon);
}
.hpsh-wrap .hpsh-card-custom .hpsh-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.hpsh-wrap .hpsh-custom-title {
	margin: 0 0 8px;
	padding: 0;
	color: var(--hpsh-custom-title);
	font-family: inherit;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}
.hpsh-wrap .hpsh-custom-desc {
	margin: 0 0 22px;
	color: var(--hpsh-custom-text);
	font-size: 14px;
	line-height: 1.6;
}
.hpsh-wrap .hpsh-card-custom .hpsh-btn {
	margin-top: auto;
}

/* ------------------------------------------------------------------
 * Premium hover effects (desktop / devices with real hover)
 * --------------------------------------------------------------- */
.hpsh-wrap .hpsh-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0;
	background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--hpsh-btn-bg) 9%, transparent), transparent 65%);
	transition: opacity 0.45s ease;
	pointer-events: none;
}
.hpsh-wrap .hpsh-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--hpsh-btn-bg), transparent);
	transform: scaleX(0);
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}
.hpsh-wrap .hpsh-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 55%;
	height: 100%;
	z-index: -1;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	transform: skewX(-20deg);
	pointer-events: none;
}
.hpsh-wrap .hpsh-arrow {
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hpsh-wrap .hpsh-features li::before {
	transition: transform 0.3s ease;
}

@keyframes hpsh-shine {
	from { left: -80%; }
	to { left: 140%; }
}

@media (hover: hover) and (pointer: fine) {
	.hpsh-wrap.hpsh-hover .hpsh-card:hover {
		transform: translateY(-10px);
		border-color: color-mix(in srgb, var(--hpsh-btn-bg) 45%, var(--hpsh-card-border));
		box-shadow:
			0 24px 48px -12px color-mix(in srgb, var(--hpsh-btn-bg) 28%, transparent),
			0 12px 24px -8px rgba(16, 24, 40, 0.12);
	}
	.hpsh-wrap.hpsh-hover .hpsh-card:hover::before { opacity: 1; }
	.hpsh-wrap.hpsh-hover .hpsh-card:hover::after { transform: scaleX(1); }
	.hpsh-wrap.hpsh-hover .hpsh-card:hover .hpsh-features li::before { transform: scale(1.18); }

	.hpsh-wrap.hpsh-hover .hpsh-btn:hover {
		transform: translateY(-3px);
		box-shadow: 0 14px 26px -8px color-mix(in srgb, var(--hpsh-btn-bg) 60%, transparent);
	}
	.hpsh-wrap.hpsh-hover .hpsh-btn:hover::before {
		animation: hpsh-shine 0.8s ease;
	}
	.hpsh-wrap.hpsh-hover .hpsh-btn:hover .hpsh-arrow {
		transform: translateX(5px);
	}
	.hpsh-wrap.hpsh-hover .hpsh-switch .hpsh-sw:hover {
		transform: translateY(-1px);
	}
}
.hpsh-wrap.hpsh-hover .hpsh-btn:active {
	transform: translateY(0) scale(0.98);
	box-shadow: none;
}
.hpsh-wrap .hpsh-switch .hpsh-sw {
	transition: transform 0.25s ease, background 0.25s, color 0.25s;
}

/* ------------------------------------------------------------------
 * Scroll entrance animation (added by JS, so cards never stay hidden)
 * --------------------------------------------------------------- */
.hpsh-wrap.hpsh-anim .hpsh-card {
	opacity: 0;
	transform: translateY(28px);
}
.hpsh-wrap.hpsh-anim .hpsh-card.is-in {
	opacity: 1;
	transform: none;
	transition: opacity 0.7s ease var(--hpsh-delay, 0ms), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--hpsh-delay, 0ms), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
	.hpsh-wrap.hpsh-anim.hpsh-hover .hpsh-card.is-in.is-ready:hover {
		transform: translateY(-10px);
		transition-delay: 0ms;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hpsh-wrap .hpsh-card,
	.hpsh-wrap .hpsh-btn,
	.hpsh-wrap .hpsh-arrow { transition: none !important; animation: none !important; }
	.hpsh-wrap.hpsh-anim .hpsh-card { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
 * Responsive
 * --------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hpsh-wrap .hpsh-inner { padding: 0 20px; }
	.hpsh-wrap .hpsh-head { margin-bottom: 28px; }
}

@media (max-width: 782px) {
	.hpsh-wrap .hpsh-head {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
	}
	.hpsh-wrap.hpsh-head-center .hpsh-head { align-items: center; }
	.hpsh-wrap .hpsh-switch {
		display: flex;
		width: 100%;
		gap: 6px;
		padding: 6px;
	}
	.hpsh-wrap .hpsh-switch .hpsh-sw {
		flex: 1 1 0;
		min-width: 0;
		padding: 12px 10px;
		font-size: 14px;
	}
}

@media (max-width: 640px) {
	.hpsh-wrap { padding-top: calc(var(--hpsh-pad-y) * 0.7); padding-bottom: calc(var(--hpsh-pad-y) * 0.7); }
	.hpsh-wrap .hpsh-inner { padding: 0 16px; }
	.hpsh-wrap .hpsh-card { padding: calc(var(--hpsh-card-pad) * 0.85); }
	.hpsh-wrap .hpsh-btn { padding: 15px 18px; }
	.hpsh-wrap .hpsh-card-custom { padding-top: 36px; padding-bottom: 36px; }
}

@media (max-width: 380px) {
	.hpsh-wrap .hpsh-switch .hpsh-sw { font-size: 13px; padding: 11px 6px; }
}

/* ------------------------------------------------------------------
 * Typography scale for tablet and mobile (v1.1)
 * --------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hpsh-wrap .hpsh-heading { font-size: clamp(24px, 3.6vw, var(--hpsh-h-size)); }
	.hpsh-wrap .hpsh-price { font-size: clamp(28px, 4vw, var(--hpsh-price-size)); }
	.hpsh-wrap .hpsh-custom-title { font-size: 20px; }
}
@media (max-width: 640px) {
	.hpsh-wrap .hpsh-eyebrow { font-size: 13px; }
	.hpsh-wrap .hpsh-heading { font-size: clamp(20px, 5.4vw, var(--hpsh-h-size)); line-height: 1.18; }
	.hpsh-wrap .hpsh-sub { font-size: 13px; }
	.hpsh-wrap .hpsh-label { font-size: 13px; margin-bottom: 6px; }
	.hpsh-wrap .hpsh-price { font-size: clamp(26px, 7vw, var(--hpsh-price-size)); }
	.hpsh-wrap .hpsh-subtitle { font-size: 13px; margin: 4px 0 14px; }
	.hpsh-wrap .hpsh-features li { font-size: 13px; margin-bottom: 10px; }
	.hpsh-wrap .hpsh-custom-title { font-size: 18px; }
	.hpsh-wrap .hpsh-custom-desc { font-size: 13px; }
	.hpsh-wrap .hpsh-btn { font-size: 13px; }
}
