/* Floating pill header (ZenLove style), shared by every page -------------- */

.dtc-zen-header {
	--header-h: 76px;
	--zhh-brand: var(--brand, #e8405a);
	--zhh-soft: color-mix(in srgb, var(--zhh-brand) 9%, #fff);
	--zhh-blush: #ffc2d1;
	--zhh-gold: #ffd98a;
}
.dtc-zen-header .header {
	padding: 8px 10px;
	background: transparent; border: 0;
	-webkit-backdrop-filter: none; backdrop-filter: none;
}

/* Let the first block's background run up behind the transparent header. */
body.dtc-zen-header:not(.dtc-zen) .header { margin-bottom: calc(-1 * var(--header-h)); }
body.dtc-zen-header:not(.dtc-zen) .site-main > :first-child:not(.dtc-canvas, .read-progress),
body.dtc-zen-header:not(.dtc-zen) .site-main > .dtc-canvas:first-child > :first-child,
body.dtc-zen-header:not(.dtc-zen) .site-main > .read-progress:first-child + * > :first-child {
	border-top: var(--header-h) solid transparent;
	background-origin: border-box;
}

/* Pill: frosted glass with a slowly shimmering blush border */
.dtc-zen-header .header-inner {
	position: relative; isolation: isolate;
	max-width: 1280px; min-height: 60px; margin: 0 auto; padding: 0 10px 0 18px;
	transition: max-width .55s cubic-bezier(.25, .8, .25, 1), min-height .45s ease;
	border: 1.5px solid transparent;
	border-radius: 999px;
	background:
		linear-gradient(rgba(255, 255, 255, .82), rgba(255, 255, 255, .82)) padding-box,
		linear-gradient(115deg,
			color-mix(in srgb, var(--zhh-brand) 22%, #fff) 0%,
			var(--zhh-blush) 25%,
			var(--zhh-gold) 45%,
			color-mix(in srgb, var(--zhh-brand) 45%, #fff) 65%,
			color-mix(in srgb, var(--zhh-brand) 22%, #fff) 100%) border-box;
	background-size: 100% 100%, 300% 100%;
	background-position: 0 0, 0 0;
	-webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
	box-shadow:
		0 10px 30px color-mix(in srgb, var(--zhh-brand) 10%, transparent),
		0 2px 6px rgba(16, 24, 40, .04);
	animation:
		zhh-drop .8s cubic-bezier(.2, .9, .3, 1.2) both,
		zhh-border 8s ease-in-out infinite alternate;
}
.dtc-zen-header .header.is-scrolled .header-inner {
	max-width: min(1080px, 100% - 64px);
	min-height: 56px;
}
@media (max-width: 767px) {
	.dtc-zen-header .header.is-scrolled .header-inner { max-width: calc(100% - 20px); }
}
@supports (animation-timeline: scroll()) {
	.dtc-zen-header .header-inner {
		animation:
			zhh-drop .8s cubic-bezier(.2, .9, .3, 1.2) both,
			zhh-border 8s ease-in-out infinite alternate,
			zhh-lift linear both;
		animation-timeline: auto, auto, scroll(root);
		animation-range: normal, normal, 0 140px;
	}
}
.dtc-zen-header .header-inner::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	border-radius: inherit; pointer-events: none;
	background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .9) 50%, transparent 58%) no-repeat;
	background-size: 250% 100%;
	background-position: 160% 0;
	animation: zhh-glass 7s ease-in-out 1.2s infinite;
}

/* Floating hearts drifting beside the logo */
.dtc-zen-header .header__logo { position: relative; display: flex; align-items: center; align-self: center; line-height: 0; }
.dtc-zen-header .header__logo .dtc-logo { display: flex; align-items: center; }
.dtc-zen-header .header__logo::before,
.dtc-zen-header .header__logo::after {
	content: "\2665";
	position: absolute; pointer-events: none;
	color: color-mix(in srgb, var(--zhh-brand) 55%, #fff);
	line-height: 1;
	animation: zhh-float 4.5s ease-in-out infinite;
}
.dtc-zen-header .header__logo::before { top: 2px; right: -14px; font-size: 10px; }
.dtc-zen-header .header__logo::after  { bottom: 2px; right: -24px; font-size: 7px; opacity: .7; animation-delay: -2.2s; }
.dtc-zen-header .header .dtc-logo__img {
	display: block; max-height: 50px !important; width: auto !important;
	transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), max-height .45s ease;
}
.dtc-zen-header .header.is-scrolled .dtc-logo__img { max-height: 44px !important; }
.dtc-zen-header .header__logo:hover .dtc-logo__img { animation: zhh-wiggle .7s ease-in-out; }

/* Nav: soft blush pills with a tiny heart */
.dtc-zen-header .nav-menu { gap: 4px; }
.dtc-zen-header .nav-link {
	padding: 8px 14px; border-radius: 999px;
	font-family: var(--font, system-ui), sans-serif; font-size: 14px; font-weight: 500; color: #2a2230;
	transition: color .25s ease, background-color .25s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.dtc-zen-header .nav-link::after {
	content: "\2665";
	left: 50%; right: auto; bottom: -5px; height: auto;
	background: none; color: var(--zhh-brand);
	font-size: 9px; line-height: 1;
	opacity: 0; transform: translate(-50%, 6px) scale(.4);
	transition: opacity .25s ease, transform .35s cubic-bezier(.3, 1.8, .5, 1);
}
.dtc-zen-header .nav-link:hover {
	color: var(--zhh-brand);
	background: var(--zhh-soft);
	transform: translateY(-1px);
}
.dtc-zen-header .nav-link:hover::after {
	opacity: 1; transform: translate(-50%, 0) scale(1);
	animation: zhh-beat-nav 1.2s ease-in-out .35s infinite;
}
.dtc-zen-header .nav-link[aria-current="page"] {
	color: var(--zhh-brand); font-weight: 700;
	background: linear-gradient(135deg, var(--zhh-soft), color-mix(in srgb, var(--zhh-blush) 35%, #fff));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zhh-brand) 14%, transparent);
}
.dtc-zen-header .nav-link[aria-current="page"]::after { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* CTA: glossy blush gradient, light sweep, beating heart, twinkling stars */
.dtc-zen-header .header-account__cta {
	position: relative; isolation: isolate;
	gap: 8px;
	padding: 10px 20px 10px 16px;
	border-radius: 999px;
	color: #fff;
	font-family: var(--font, system-ui), sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .01em;
	background:
		linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%),
		linear-gradient(135deg,
			color-mix(in srgb, var(--zhh-brand) 60%, #ffb3c6) 0%,
			var(--zhh-brand) 55%,
			color-mix(in srgb, var(--zhh-brand) 80%, #8a0f33) 100%);
	background-size: 250% 100%, 100% 100%;
	background-position: 160% 0, 0 0;
	background-repeat: no-repeat;
	box-shadow:
		0 8px 20px color-mix(in srgb, var(--zhh-brand) 38%, transparent),
		inset 0 1px 0 rgba(255, 255, 255, .45),
		inset 0 -2px 0 rgba(0, 0, 0, .08);
	text-shadow: 0 1px 1px rgba(0, 0, 0, .12);
	animation: zhh-sweep 3.6s ease-in-out 1s infinite;
	transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease;
}
.dtc-zen-header .header-account__cta::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	border-radius: inherit;
	animation: zhh-ring 2.4s ease-out infinite;
}
.dtc-zen-header .header-account__cta:hover {
	background-color: transparent;
	transform: translateY(-2px) scale(1.04);
	box-shadow:
		0 12px 28px color-mix(in srgb, var(--zhh-brand) 48%, transparent),
		inset 0 1px 0 rgba(255, 255, 255, .5),
		inset 0 -2px 0 rgba(0, 0, 0, .08);
}
.dtc-zen-header .header-account__cta:active { transform: translateY(0) scale(.98); }
.dtc-zen-header .header-account__heart {
	width: 16px; height: 16px; flex: none;
	fill: #fff; stroke: #fff;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .15));
	animation: zhh-beat 1.6s ease-in-out infinite;
}
.dtc-zen-header .header-account__cta:hover .header-account__heart { animation-duration: .8s; }
.dtc-zen-header .header-account__sparkle {
	position: absolute; pointer-events: none;
	width: 10px; height: 10px;
	background: var(--zhh-gold);
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
	filter: drop-shadow(0 0 3px rgba(255, 217, 138, .9));
	animation: zhh-twinkle 2.4s ease-in-out infinite;
}
.dtc-zen-header .header-account__sparkle--1 { top: -5px; right: 10px; }
.dtc-zen-header .header-account__sparkle--2 { bottom: -4px; right: -3px; width: 7px; height: 7px; background: #fff; animation-delay: -.8s; }
.dtc-zen-header .header-account__sparkle--3 { top: -3px; left: 6px; width: 7px; height: 7px; background: var(--zhh-blush); animation-delay: -1.6s; }
.dtc-zen-header .header-account__cta:hover .header-account__sparkle { animation-duration: 1.1s; }

/* Mobile tab bar: floating glass pill with a raised heart button */
@media (max-width: 767px) {
	body.dtc-zen-header:not(.dtc-no-tabbar) { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
	.dtc-zen-header:not(.dtc-no-tabbar) .support-widget { bottom: calc(100px + env(safe-area-inset-bottom)); }
	.dtc-zen-header:not(.dtc-no-tabbar) .float-contact { bottom: calc(100px + env(safe-area-inset-bottom)); }
}
.dtc-zen-header .mobile-tabbar {
	left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
	align-items: end;
	padding: 8px 6px;
	border: 1.5px solid color-mix(in srgb, var(--zhh-brand) 16%, #fff);
	border-radius: 26px;
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
	box-shadow:
		0 16px 36px -12px color-mix(in srgb, var(--zhh-brand) 32%, transparent),
		0 2px 8px rgba(16, 24, 40, .06);
	transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), opacity .3s ease;
	animation: zhh-tab-in .7s cubic-bezier(.3, 1.4, .5, 1) backwards .2s;
}
.dtc-zen-header .mobile-tabbar.is-hidden { transform: translateY(calc(100% + 24px)); opacity: 0; }
.dtc-zen-header .mobile-tabbar__item,
.dtc-zen-header .mobile-tabbar__fab {
	position: relative;
	display: flex; flex-direction: column; align-items: center; gap: 3px;
	min-width: 0; padding: 2px 0;
	color: #6b5a63;
	-webkit-tap-highlight-color: transparent;
}
.dtc-zen-header .mobile-tabbar__icon {
	display: grid; place-items: center;
	width: 46px; height: 30px; border-radius: 999px;
	transition: background-color .3s ease, transform .4s cubic-bezier(.3, 1.8, .5, 1);
}
.dtc-zen-header .mobile-tabbar__item .dtc-icon { width: 21px; height: 21px; stroke-width: 1.8; }
.dtc-zen-header .mobile-tabbar__label {
	max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-size: 11px; font-weight: 600; letter-spacing: .01em;
}
.dtc-zen-header .mobile-tabbar__item:active .mobile-tabbar__icon { transform: scale(.86); }
.dtc-zen-header .mobile-tabbar__item[aria-current="page"] { color: var(--zhh-brand); }
.dtc-zen-header .mobile-tabbar__item[aria-current="page"] .mobile-tabbar__icon {
	background: linear-gradient(135deg, var(--zhh-soft), color-mix(in srgb, var(--zhh-blush) 45%, #fff));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zhh-brand) 14%, transparent);
	animation: zhh-pop .6s cubic-bezier(.3, 1.8, .5, 1);
}
.dtc-zen-header .mobile-tabbar__item[aria-current="page"] .mobile-tabbar__label { font-weight: 700; }
.dtc-zen-header .mobile-tabbar__item[aria-current="page"]::after {
	content: "\2665"; position: absolute; top: -9px; left: 50%;
	font-size: 9px; line-height: 1; color: var(--zhh-brand);
	transform: translateX(-50%);
	animation: zhh-beat 1.6s ease-in-out infinite;
}

.dtc-zen-header .mobile-tabbar__fab { color: var(--zhh-brand); }
.dtc-zen-header .mobile-tabbar__fab .mobile-tabbar__label { font-weight: 700; }
.dtc-zen-header .mobile-tabbar__fab-btn {
	position: relative;
	display: grid; place-items: center;
	width: 54px; height: 54px; margin-top: -30px;
	border: 4px solid #fff; border-radius: 50%;
	background:
		radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .45), transparent 45%),
		linear-gradient(135deg, color-mix(in srgb, var(--zhh-brand) 60%, #ffb3c6), var(--zhh-brand) 60%, color-mix(in srgb, var(--zhh-brand) 80%, #8a0f33));
	color: #fff;
	box-shadow: 0 10px 22px -6px color-mix(in srgb, var(--zhh-brand) 65%, transparent);
	transition: transform .4s cubic-bezier(.3, 1.8, .5, 1);
}
.dtc-zen-header .mobile-tabbar__fab-btn::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%;
	animation: zhh-ring 2.4s ease-out infinite;
}
.dtc-zen-header .mobile-tabbar__fab-btn .dtc-icon {
	width: 24px; height: 24px; fill: #fff; stroke: #fff;
	animation: zhh-beat 1.6s ease-in-out infinite;
}
.dtc-zen-header .mobile-tabbar__fab:active .mobile-tabbar__fab-btn { transform: scale(.9) rotate(-8deg); }

@keyframes zhh-tab-in {
	from { opacity: 0; transform: translateY(40px) scale(.96); }
}
@keyframes zhh-pop {
	0%   { transform: scale(.6); }
	60%  { transform: scale(1.12); }
	100% { transform: scale(1); }
}

@keyframes zhh-drop {
	from { opacity: 0; transform: translateY(-18px) scale(.97); }
}
@keyframes zhh-border {
	to { background-position: 0 0, 100% 0; }
}
@keyframes zhh-glass {
	0%, 70%  { background-position: 160% 0; }
	100%     { background-position: -60% 0; }
}
@keyframes zhh-lift {
	to {
		box-shadow:
			0 14px 40px color-mix(in srgb, var(--zhh-brand) 18%, transparent),
			0 4px 10px rgba(16, 24, 40, .06);
	}
}
@keyframes zhh-sweep {
	0%, 55% { background-position: 160% 0, 0 0; }
	100%    { background-position: -60% 0, 0 0; }
}
@keyframes zhh-ring {
	0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--zhh-brand) 45%, transparent); }
	80%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--zhh-brand) 0%, transparent); }
}
@keyframes zhh-beat {
	0%, 40%, 100% { transform: scale(1); }
	15% { transform: scale(1.25); }
	28% { transform: scale(.95); }
}
@keyframes zhh-beat-nav {
	0%, 40%, 100% { transform: translate(-50%, 0) scale(1); }
	15% { transform: translate(-50%, 0) scale(1.35); }
	28% { transform: translate(-50%, 0) scale(.9); }
}
@keyframes zhh-twinkle {
	0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
	50%      { opacity: 1; transform: scale(1) rotate(90deg); }
}
@keyframes zhh-float {
	0%, 100% { transform: translateY(0) rotate(-8deg); opacity: .35; }
	50%      { transform: translateY(-6px) rotate(8deg); opacity: 1; }
}
@keyframes zhh-wiggle {
	0%, 100% { transform: rotate(0); }
	25% { transform: rotate(-6deg) scale(1.06); }
	50% { transform: rotate(5deg) scale(1.06); }
	75% { transform: rotate(-3deg); }
}

@media (max-width: 767px) {
	.dtc-zen-header .header-inner { padding: 0 8px 0 14px; }
	.dtc-zen-header .header-account__cta { padding: 9px 16px 9px 13px; font-size: 13.5px; }
	.dtc-zen-header.dtc-no-tabbar .header-inner:has(.nav-menu.is-open) { padding: 8px 16px; border-radius: 22px; }
}
@media (min-width: 640px) {
	.dtc-zen-header .header { padding: 8px 24px; }
}
@media (min-width: 1024px) {
	.dtc-zen-header .header { padding: 8px 32px; }
	.dtc-zen-header .header-inner { padding: 0 10px 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.dtc-zen-header .header-inner,
	.dtc-zen-header .header-inner *,
	.dtc-zen-header .header-inner *::before,
	.dtc-zen-header .header-inner *::after,
	.dtc-zen-header .header__logo::before,
	.dtc-zen-header .header__logo::after,
	.dtc-zen-header .mobile-tabbar,
	.dtc-zen-header .mobile-tabbar *,
	.dtc-zen-header .mobile-tabbar *::before,
	.dtc-zen-header .mobile-tabbar *::after { animation: none !important; transition: none !important; }
	.dtc-zen-header .header-account__sparkle { opacity: .8; }
}
