/* ── Ethos Header Countdown Timer — Public Bar ──────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

.ehct-bar {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 20px;
	margin-bottom: 0;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	animation: ehct-slide-down 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ehct-slide-down {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ehct-bar.ehct-closing {
	animation: ehct-slide-up 0.25s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes ehct-slide-up {
	from { opacity: 1; transform: translateY(0); max-height: 200px; }
	to   { opacity: 0; transform: translateY(-6px); max-height: 0; margin: 0; padding: 0; }
}

.ehct-bar-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
	pointer-events: none;
}

.ehct-bar-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding: 18px 22px;
}

/* ── Left section ─────────────────────────────────────────────────────── */
.ehct-bar-left {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 260px;
	flex: 1 1 420px;
}

.ehct-bar-icon {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.ehct-bar-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.ehct-bar-heading {
	font-size: clamp(18px, 2.5vw, 30px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.ehct-bar-subtitle {
	font-size: 14px;
	font-weight: 500;
	opacity: 0.82;
	line-height: 1.35;
}

/* ── Right section ────────────────────────────────────────────────────── */
.ehct-bar-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex: 1 1 360px;
	flex-wrap: wrap;
}

/* ── Pills ────────────────────────────────────────────────────────────── */
.ehct-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 17px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* ── Countdown inside pill ────────────────────────────────────────────── */
.ehct-countdown {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	letter-spacing: 0.01em;
	margin-left: 5px;
}

.ehct-cd-days,
.ehct-cd-hours,
.ehct-cd-mins,
.ehct-cd-secs {
	font-weight: 800;
	min-width: 1.6ch;
	display: inline-block;
	text-align: center;
}

.ehct-cd-sep {
	font-size: 0.72em;
	font-weight: 600;
	opacity: 0.65;
	margin: 0 1px 0 1px;
}

.ehct-countdown.ehct-expired {
	opacity: 0.4;
}

/* ── Close button ─────────────────────────────────────────────────────── */
.ehct-bar-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	opacity: 0.6;
	transition: opacity 0.15s ease, background 0.15s ease;
	flex-shrink: 0;
	margin-left: 4px;
}

.ehct-bar-close:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.15);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.ehct-bar { border-radius: 14px; }
	.ehct-bar-inner { padding: 14px 16px; gap: 10px; }
	.ehct-bar-left { min-width: 0; flex: 1 1 100%; }
	.ehct-bar-right { flex: 1 1 100%; justify-content: flex-start; }
	.ehct-bar-heading { font-size: clamp(16px, 4vw, 22px); }
	.ehct-pill { padding: 8px 13px; font-size: 13px; }
}

@media (max-width: 480px) {
	.ehct-bar-icon { width: 36px; height: 36px; font-size: 17px; }
	.ehct-bar-subtitle { font-size: 13px; }
	.ehct-pill { padding: 7px 11px; font-size: 12px; }
	.ehct-cd-sep { margin: 0; }
}
