/* =========================================================================
   WOW Token Live Price — premium glassmorphism dashboard (RTL / Persian)
   Scoped under .wtlp so it never leaks into the host theme.
   ========================================================================= */

.wtlp {
	--wtlp-bg: transparent;
	--wtlp-ink: #1f2233;
	--wtlp-muted: #8a90a6;
	--wtlp-faint: #aeb4c7;

	--wtlp-purple: #5e57f3;
	--wtlp-purple-2: #6a6cf6;
	--wtlp-blue: #3b82f6;
	--wtlp-pink: #ec4899;
	--wtlp-up: #16b364;
	--wtlp-down: #ef4444;
	--wtlp-gold: #f5b301;

	--wtlp-glass: rgba(255, 255, 255, .55);
	--wtlp-glass-strong: rgba(255, 255, 255, .72);
	--wtlp-stroke: rgba(255, 255, 255, .6);
	--wtlp-inner: rgba(247, 248, 252, .65);
	/* Low-opacity brand tint for the live-price panel so it reads as a
	   distinct, slightly-more-saturated layer over the card behind it. */
	--wtlp-price-tint: rgba(94, 87, 243, .09);
	--wtlp-price-stroke: rgba(94, 87, 243, .2);
	--wtlp-shadow: 0 8px 32px rgba(31, 38, 135, .12);
	--wtlp-shadow-lift: 0 18px 48px rgba(31, 38, 135, .18);
	--wtlp-radius: 24px;
	--wtlp-radius-sm: 16px;

	font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	color: var(--wtlp-ink);
	direction: rtl !important;
	text-align: right;
	unicode-bidi: isolate;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 16px 8px;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Belt-and-braces: keep every descendant in the RTL writing mode even if the
   host theme sets direction:ltr on a wrapping container. */
.wtlp,
.wtlp * { direction: rtl; font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }
.wtlp .wtlp__title,
.wtlp .wtlp__region-name,
.wtlp .wtlp__chart-title { text-align: center; }

/* Gentle premium entrance on first paint */
.wtlp { animation: wtlp-enter .6s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes wtlp-enter {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

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

/* ----------------------------------------------------------------- Header */
.wtlp__header { text-align: center; margin-bottom: 18px; margin-top: 0; padding-top: 0; }

.wtlp__title {
	font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -.01em;
	margin: 0;
	line-height: 1.25;
}

.wtlp__title-accent {
	background: linear-gradient(135deg, var(--wtlp-purple) 0%, var(--wtlp-blue) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 900;
}

.wtlp__title-rule {
	display: block;
	width: 120px;
	height: 5px;
	margin: 14px auto 0;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--wtlp-purple), var(--wtlp-blue));
	opacity: .85;
}

/* ----------------------------------------------------------- Version tabs */
.wtlp__tabs {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 18px;
	margin-bottom: 26px;
	flex-wrap: wrap;
}

.wtlp__tab {
	position: relative;
	min-width: 180px;
	padding: 9px 18px 9px 14px;
	border: 1.5px solid var(--wtlp-stroke);
	border-radius: 18px;
	background: linear-gradient(150deg, rgba(255,255,255,.62), rgba(255,255,255,.42));
	backdrop-filter: blur(24px) saturate(140%);
	-webkit-backdrop-filter: blur(24px) saturate(140%);
	box-shadow: var(--wtlp-shadow), inset 0 1px 0 rgba(255,255,255,.7);
	cursor: pointer;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
	overflow: hidden;
	font-family: inherit;
}

@media (hover: hover) {
	.wtlp__tab:hover { transform: translateY(-3px); box-shadow: var(--wtlp-shadow-lift); }
}

/* Active tab: clear brand border + tinted glass + soft glow, no checkmark */
.wtlp__tab.is-active {
	border-color: var(--wtlp-purple);
	background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(94,87,243,.1));
	box-shadow: 0 10px 28px rgba(94, 87, 243, .25), 0 0 0 1px var(--wtlp-purple) inset;
}
.wtlp__tab.is-active .wtlp__tab-label { color: var(--wtlp-purple); }

.wtlp__tab-glow {
	position: absolute;
	inset: -60% -10% auto -10%;
	height: 160%;
	background: radial-gradient(60% 60% at 80% 0%, rgba(94, 87, 243, .22), transparent 70%);
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}
.wtlp__tab.is-active .wtlp__tab-glow { opacity: 1; }

/* Uploadable square version icon — sits at the start (right in RTL) */
.wtlp__tab-icon {
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	border-radius: 12px;
	display: grid;
	place-items: center;
	overflow: hidden;
	order: 1;
	transition: transform .25s ease;
}
@media (hover: hover) {
	.wtlp__tab:hover .wtlp__tab-icon { transform: scale(1.06); }
}
.wtlp__tab-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.wtlp__tab-label { font-weight: 700; font-size: 1rem; order: 2; margin-inline-end: auto; text-align: start; transition: color .25s ease; }

/* --------------------------------------------------------------- Regions */
.wtlp__regions {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
	margin-bottom: 22px;
}

/* Smooth version-switch transition: cards fade + blur while new data loads,
   so the user clearly sees the dashboard refreshing. */
.wtlp__regions,
.wtlp__chart-card {
	transition: opacity .35s ease, filter .35s ease, transform .35s ease;
}
.wtlp.is-switching .wtlp__regions,
.wtlp.is-switching .wtlp__chart-card {
	opacity: .45;
	filter: blur(4px) saturate(.8);
	transform: scale(.992);
	pointer-events: none;
}

/* A slim progress shimmer under the tabs during a switch */
.wtlp__switch-bar {
	position: relative;
	height: 3px;
	width: 220px;
	margin: 0 auto 18px;
	border-radius: 99px;
	background: rgba(94, 87, 243, .12);
	overflow: hidden;
	opacity: 0;
	transition: opacity .3s ease;
}
.wtlp__switch-bar::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 40%;
	border-radius: 99px;
	background: linear-gradient(90deg, transparent, var(--wtlp-purple), var(--wtlp-blue), transparent);
	transform: translateX(-120%);
}
.wtlp.is-switching .wtlp__switch-bar { opacity: 1; }
.wtlp.is-switching .wtlp__switch-bar::before {
	animation: wtlp-switch-load 1.1s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes wtlp-switch-load {
	0%   { transform: translateX(-120%); }
	100% { transform: translateX(370%); }
}

/* Clean, quick swap feedback on tab switches — a soft fade + gentle lift,
   staggered lightly across the cards and chart. No blur (avoids any eye-strain),
   short enough to feel snappy but smooth. */
.wtlp.is-swapping .wtlp__card,
.wtlp.is-swapping .wtlp__chart-card {
	animation: wtlp-swap .5s cubic-bezier(.22, .61, .36, 1) both;
}
.wtlp.is-swapping .wtlp__card--eu { animation-delay: 0s; }
.wtlp.is-swapping .wtlp__card--us { animation-delay: .06s; }
.wtlp.is-swapping .wtlp__chart-card { animation-delay: .1s; }
@keyframes wtlp-swap {
	0%   { opacity: 0; transform: translateY(12px); }
	100% { opacity: 1; transform: translateY(0); }
}

.wtlp__card {
	position: relative;
	border: 0;
	border-radius: var(--wtlp-radius);
	background: linear-gradient(150deg, rgba(255,255,255,.65), rgba(255,255,255,.42));
	backdrop-filter: blur(28px) saturate(140%);
	-webkit-backdrop-filter: blur(28px) saturate(140%);
	box-shadow:
		var(--wtlp-shadow),
		inset 0 1px 0 rgba(255, 255, 255, .8),
		inset 0 0 0 1px var(--wtlp-stroke);
	padding: 22px;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
/* Subtle diagonal sheen across the frosted surface */
.wtlp__card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,.35) 0%, transparent 40%);
	pointer-events: none;
}
.wtlp__card > * { position: relative; }
.wtlp__card:hover { transform: translateY(-4px); box-shadow: var(--wtlp-shadow-lift), inset 0 1px 0 rgba(255,255,255,.8); }

/* Slim region-colored accent along the top edge. Thin and centered, fading
   out toward both corners so it reads as a refined highlight, not a heavy bar. */
.wtlp__card::after {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	opacity: .9;
	pointer-events: none;
	z-index: 1;
}
.wtlp__card--eu::after {
	background: linear-gradient(90deg, rgba(59,130,246,0) 8%, #3b82f6 50%, rgba(59,130,246,0) 92%);
}
.wtlp__card--us::after {
	background: linear-gradient(90deg, rgba(236,72,153,0) 8%, #ec4899 50%, rgba(236,72,153,0) 92%);
}

.wtlp__card.is-flash { animation: wtlp-flash 1.2s ease; }
@keyframes wtlp-flash {
	0%   { box-shadow: var(--wtlp-shadow); }
	30%  { box-shadow: 0 0 0 3px rgba(22, 179, 100, .35), 0 18px 48px rgba(22, 179, 100, .25); }
	100% { box-shadow: var(--wtlp-shadow); }
}

.wtlp__card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

/* Region name now leads on the right (start of RTL flow) */
.wtlp__card-title { display: flex; align-items: center; gap: 10px; order: 1; }
.wtlp__region-name { margin: 0; font-size: 1.1rem; font-weight: 800; }
.wtlp__flag { width: 26px; height: 26px; line-height: 1; flex: 0 0 auto; }
.wtlp__flag img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; box-shadow: 0 1px 3px rgba(31,38,135,.18); }

/* "Last update" chip sits on the left, styled as a soft pill */
.wtlp__card-meta {
	order: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 13px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(94,87,243,.1), rgba(59,130,246,.06));
	border: 1px solid rgba(94, 87, 243, .16);
	color: var(--wtlp-purple-2);
}
.wtlp__clock { color: var(--wtlp-purple-2); flex: 0 0 auto; opacity: .9; }
.wtlp__meta-text { display: inline-flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.wtlp__meta-label { font-size: .66rem; color: var(--wtlp-muted); font-weight: 600; letter-spacing: .01em; }
.wtlp__updated { font-size: .82rem; font-weight: 800; color: var(--wtlp-purple); white-space: nowrap; }

/* Live price panel — refined glassmorphism, clearly its own layer */
.wtlp__price-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: linear-gradient(135deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.32) 55%, var(--wtlp-price-tint) 100%);
	border: 1px solid var(--wtlp-price-stroke);
	border-radius: 20px;
	padding: 18px 20px;
	margin-bottom: 18px;
	flex-wrap: wrap;
	backdrop-filter: blur(22px) saturate(150%);
	-webkit-backdrop-filter: blur(22px) saturate(150%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .85),
		inset 0 -1px 0 rgba(255, 255, 255, .25),
		0 6px 24px rgba(94, 87, 243, .1);
	overflow: hidden;
}
/* Soft glossy highlight sweeping the top of the price panel */
.wtlp__price-row::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 50%;
	background: linear-gradient(180deg, rgba(255,255,255,.4), transparent);
	pointer-events: none;
}
.wtlp__price-row > * { position: relative; }

/* Left cluster: change indicator + refresh button */
.wtlp__price-left {
	order: 2;
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

/* Right cluster: label + price (leads the RTL row, right-aligned) */
.wtlp__price-block { order: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: right; }
.wtlp__price-label {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: .92rem; color: var(--wtlp-muted); font-weight: 600;
}

.wtlp__status-dot {
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--wtlp-up);
	box-shadow: 0 0 0 0 rgba(22, 179, 100, .6);
	animation: wtlp-pulse 2s infinite;
}
@keyframes wtlp-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(22, 179, 100, .55); }
	70%  { box-shadow: 0 0 0 9px rgba(22, 179, 100, 0); }
	100% { box-shadow: 0 0 0 0 rgba(22, 179, 100, 0); }
}

.wtlp__price { display: flex; align-items: center; gap: 10px; }
.wtlp__coin { width: 24px; height: 24px; flex: 0 0 auto; display: block; }
.wtlp__price-value {
	font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
	font-weight: 900;
	letter-spacing: .01em;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	transition: color .3s ease;
}
.wtlp__price-value.is-bump { animation: wtlp-bump .5s ease; }
@keyframes wtlp-bump {
	0% { transform: scale(1); }
	40% { transform: scale(1.06); color: var(--wtlp-up); }
	100% { transform: scale(1); }
}

.wtlp__change {
	display: inline-flex; align-items: center; gap: 5px;
	font-weight: 800; font-size: .98rem; font-variant-numeric: tabular-nums;
	padding: 6px 11px; border-radius: 999px;
}
.wtlp__change.is-up { color: var(--wtlp-up); background: rgba(22, 179, 100, .1); }
.wtlp__change.is-down { color: var(--wtlp-down); background: rgba(239, 68, 68, .1); }
.wtlp__change-arrow { font-size: .8rem; }

/* Refresh button — perfectly square, sized to match the change pill.
   font-size/line-height are zeroed so an inherited theme font can't
   inflate the button's line-box and make it taller than wide. */
.wtlp__refresh {
	width: 36px; height: 36px; flex: 0 0 auto;
	min-width: 36px; min-height: 36px;
	box-sizing: border-box;
	aspect-ratio: 1 / 1;
	border-radius: 11px;
	border: 1px solid var(--wtlp-price-stroke);
	background: rgba(255,255,255,.7);
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0;
	font-size: 0; line-height: 0;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.wtlp__refresh-img { width: 18px; height: 18px; object-fit: contain; display: block; }
.wtlp__refresh:hover { background: #fff; box-shadow: var(--wtlp-shadow); transform: translateY(-1px); }
.wtlp__refresh:disabled { cursor: progress; opacity: .8; }
.wtlp__refresh.is-loading .wtlp__refresh-img { animation: wtlp-spin .9s linear infinite; }
.wtlp__refresh.is-success { animation: wtlp-success .8s ease; }
@keyframes wtlp-spin { to { transform: rotate(360deg); } }
@keyframes wtlp-success {
	0% { box-shadow: 0 0 0 0 rgba(22,179,100,.5); }
	100% { box-shadow: 0 0 0 12px rgba(22,179,100,0); }
}

/* Stats table */
.wtlp__stats {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: clamp(.72rem, 2.6vw, .92rem);
}
.wtlp__stats th,
.wtlp__stats td {
	padding: clamp(8px, 1.6vw, 11px) clamp(2px, .8vw, 6px);
	text-align: center;
	border-top: 1px solid rgba(31,38,135,.07);
	white-space: nowrap;
}
/* Row-label column stays compact; the three value columns share the rest. */
.wtlp__stats thead th:first-child,
.wtlp__stats tbody th { width: 19%; }
.wtlp__stats thead th:not(:first-child),
.wtlp__stats td { width: 27%; }
/* Only the middle column (۷ روز) gets vertical separators on both sides,
   matching the original reference — no other column dividers. */
.wtlp__stats th:nth-child(3),
.wtlp__stats td:nth-child(3) {
	border-inline-start: 1px solid rgba(31,38,135,.1);
	border-inline-end: 1px solid rgba(31,38,135,.1);
}
.wtlp__stats thead th {
	color: var(--wtlp-muted); font-weight: 700; font-size: clamp(.66rem, 2.2vw, .82rem); border-top: 0;
}
.wtlp__stats tbody th { color: var(--wtlp-ink); font-weight: 700; text-align: start; }
/* Up/down arrow chip beside the بالاترین / پایین‌ترین labels. */
.wtlp__stat-label { display: inline-flex; align-items: center; gap: 5px; }
.wtlp__stat-arrow {
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 6px;
}
.wtlp__stat-arrow svg { display: block; }
.wtlp__stat-arrow--up { color: var(--wtlp-up); background: rgba(22, 179, 100, .12); }
.wtlp__stat-arrow--down { color: var(--wtlp-down); background: rgba(239, 68, 68, .12); }
.wtlp__stats td { font-weight: 600; font-variant-numeric: tabular-nums; }
.wtlp__stats td .wtlp__cell { display: inline-flex; align-items: center; gap: 5px; justify-content: center; }
/* A small gold coin sits before each value on wider screens. It's purely
   decorative, so it's hidden on phones (≤600px) where space is tight — this
   guarantees the numbers always fit and never clip. */
.wtlp__stats td:not(.is-empty)::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-inline-start: 5px;
	vertical-align: middle;
	background-image: var(--wtlp-coin-sm);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.wtlp__stats-corner { border-top: 0; }

/* ----------------------------------------------------------------- Chart */
.wtlp__chart-card {
	position: relative;
	border: 1px solid var(--wtlp-stroke);
	border-radius: var(--wtlp-radius);
	background: linear-gradient(150deg, rgba(255,255,255,.6), rgba(255,255,255,.4));
	backdrop-filter: blur(28px) saturate(140%);
	-webkit-backdrop-filter: blur(28px) saturate(140%);
	box-shadow: var(--wtlp-shadow), inset 0 1px 0 rgba(255,255,255,.8);
	padding: 22px 22px 14px;
	margin-bottom: 4px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.wtlp__chart-card:hover { transform: translateY(-4px); box-shadow: var(--wtlp-shadow-lift); }

.wtlp__chart-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px; margin-bottom: 12px; flex-wrap: wrap;
}
.wtlp__chart-title { margin: 0; font-size: 1.05rem; font-weight: 800; order: 2; flex: 1 1 auto; text-align: center; }
.wtlp__legend { order: 1; display: flex; gap: 16px; }
.wtlp__range { order: 3; }

.wtlp__legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--wtlp-muted); font-weight: 600; }
.wtlp__legend .wtlp__dot { width: 10px; height: 10px; border-radius: 50%; }
.wtlp__legend-item--eu .wtlp__dot { background: var(--wtlp-blue); }
.wtlp__legend-item--us .wtlp__dot { background: var(--wtlp-pink); }

/* Range dropdown */
.wtlp__range { position: relative; }
.wtlp__range-toggle {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 14px; border-radius: 12px;
	border: 1px solid rgba(255,255,255,.7);
	background: rgba(255,255,255,.65);
	font-family: inherit; font-weight: 700; font-size: .9rem; color: var(--wtlp-ink);
	cursor: pointer; transition: background .2s ease, box-shadow .2s ease;
}
.wtlp__range-toggle:hover { background: #fff; box-shadow: var(--wtlp-shadow); }
.wtlp__chevron { transition: transform .25s ease; color: var(--wtlp-muted); }
.wtlp__range-toggle[aria-expanded="true"] .wtlp__chevron { transform: rotate(180deg); }

.wtlp__range-menu {
	position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
	margin: 0; padding: 6px; list-style: none; min-width: 130px;
	background: var(--wtlp-glass-strong);
	backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--wtlp-stroke);
	border-radius: 14px; box-shadow: var(--wtlp-shadow-lift);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 20;
}
.wtlp__range-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.wtlp__range-menu li {
	padding: 9px 12px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .9rem;
	transition: background .15s ease;
}
.wtlp__range-menu li:hover { background: rgba(139,92,246,.12); }
.wtlp__range-menu li.is-active { background: rgba(139,92,246,.18); color: var(--wtlp-purple-2); }

.wtlp__chart-wrap { position: relative; height: 320px; }
.wtlp__chart { width: 100% !important; }

.wtlp__chart-skeleton {
	position: absolute; inset: 0; border-radius: var(--wtlp-radius-sm);
	background: linear-gradient(100deg, rgba(255,255,255,.2) 30%, rgba(255,255,255,.6) 50%, rgba(255,255,255,.2) 70%);
	background-size: 200% 100%;
	animation: wtlp-shimmer 1.3s linear infinite;
	opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.wtlp.is-chart-loading .wtlp__chart-skeleton { opacity: 1; visibility: visible; }
@keyframes wtlp-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Skeleton for the big price value before first data lands */
.wtlp__price-value.is-skeleton {
	color: transparent;
	border-radius: 10px;
	background: linear-gradient(100deg, rgba(180,185,205,.25) 30%, rgba(180,185,205,.5) 50%, rgba(180,185,205,.25) 70%);
	background-size: 200% 100%;
	animation: wtlp-shimmer 1.3s linear infinite;
}

/* Skeleton for low/high stat cells — a tidy centered shimmer pill */
.wtlp__stats td.is-skeleton {
	color: transparent;
	position: relative;
}
.wtlp__stats td.is-skeleton::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64%;
	height: 14px;
	margin: 0;
	border-radius: 99px;
	background: linear-gradient(100deg, rgba(180,185,205,.22) 30%, rgba(180,185,205,.5) 50%, rgba(180,185,205,.22) 70%);
	background-size: 200% 100%;
	animation: wtlp-shimmer 1.3s linear infinite;
}

/* ------------------------------------------------------------- Responsive */
@media (max-width: 768px) {
	.wtlp { padding-inline: 12px; }
	.wtlp__regions { grid-template-columns: 1fr; }
	.wtlp__card { padding: 18px; }
	.wtlp__chart-title { order: 1; flex-basis: 100%; }
	.wtlp__legend { order: 2; }
	.wtlp__range { order: 3; margin-inline-start: auto; }
	.wtlp__price-row { justify-content: space-between; gap: 12px; }
	.wtlp__chart-wrap { height: 260px; }
	/* On phones, hide the decorative coin in the table entirely so the numbers
	   always have full room and never clip — fully removes the half-coin issue
	   on iOS/Safari and any narrow device. NOTE: we scope this to non-skeleton
	   cells so the loading shimmer pill still shows during loading. */
	.wtlp__stats td:not(.is-skeleton)::after,
	.wtlp__stats td:not(.is-empty):not(.is-skeleton)::after,
	.wtlp__stats td .wtlp__cell-coin,
	.wtlp__stat-arrow { display: none !important; content: none !important; }
	.wtlp__stats td { padding-inline: clamp(3px, 1.4vw, 8px); }
	/* Make sure the skeleton shimmer pill still renders on mobile. */
	.wtlp__stats td.is-skeleton::after { display: block !important; content: "" !important; }
}

@media (max-width: 480px) {
	.wtlp { padding-inline: 10px; }
	.wtlp__card { padding: 16px 14px; }
	.wtlp__tabs { gap: 10px; }
	.wtlp__tab { min-width: 0; flex: 1 1 0; padding: 9px 12px; gap: 9px; }
	.wtlp__tab-label { font-size: .9rem; }
	.wtlp__tab-icon { width: 36px; height: 36px; }
	/* The price number can be huge; let it shrink so nothing overflows. */
	.wtlp__price-value { font-size: clamp(1.35rem, 7.5vw, 2rem); }
	.wtlp__price-row { padding: 14px; }
	.wtlp__chart-wrap { height: 230px; }
	.wtlp__stats { font-size: clamp(.68rem, 3vw, .82rem); }
}

@media (max-width: 360px) {
	.wtlp__card { padding: 14px 12px; }
	.wtlp__region-name { font-size: 1rem; }
	.wtlp__price-value { font-size: clamp(1.2rem, 7vw, 1.7rem); }
}

/* Hard overflow guards so nothing can ever poke outside its container,
   regardless of device width (e.g. very narrow phones). */
.wtlp,
.wtlp__regions,
.wtlp__card,
.wtlp__chart-card,
.wtlp__price-row,
.wtlp__price-block,
.wtlp__price-left { min-width: 0; }
.wtlp__card,
.wtlp__chart-card { overflow: hidden; }
.wtlp__price-value { overflow-wrap: anywhere; }

/* ----------------------------------------------------- Reduced motion a11y */
@media (prefers-reduced-motion: reduce) {
	.wtlp *,
	.wtlp *::before,
	.wtlp *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}

.wtlp__tab:focus-visible,
.wtlp__refresh:focus-visible,
.wtlp__range-toggle:focus-visible,
.wtlp__range-menu li:focus-visible {
	outline: 2px solid var(--wtlp-purple);
	outline-offset: 2px;
}
