/* ============================================================
   قیمت زنده دلار — ظاهر سمت کاربر
   نوار نرخ · شورت‌کد [dlp_usd] · نمودار [dlp_chart]
   ============================================================ */

/* ---------- نوار نرخ دلار ---------- */

.dlp-bar{
	box-sizing:border-box;
	width:100%;
	display:flex;
	align-items:center;
	justify-content:center;
	gap:.8em;
	flex-wrap:wrap;
	padding:.62em 1.2em;
	direction:ltr;
	line-height:1.7;
	font-size:14px;
	font-family:inherit;
	letter-spacing:.1px;
	position:relative;
	z-index:99999;
	box-shadow:inset 0 -1px 0 rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.06);
}
.dlp-bar__t,
.dlp-bar__p{direction:rtl;unicode-bidi:isolate}
.dlp-bar__t{
	display:inline-flex;
	align-items:center;
	gap:.55em;
	opacity:.88;
	font-weight:400;
}
.dlp-bar__t::before{
	content:'';
	width:6px;height:6px;
	flex:none;
	border-radius:50%;
	background:currentColor;
	opacity:.5;
	box-shadow:0 0 0 3px rgba(127,127,127,.16);
}
.dlp-bar__p{
	display:inline-flex;
	align-items:baseline;
	gap:.45em;
	font-weight:700;
	font-variant-numeric:tabular-nums;
	font-feature-settings:'tnum' 1;
	padding:.08em .62em;
	border-radius:8px;
	background:rgba(127,132,140,.16);
	border:1px solid rgba(127,132,140,.14);
	line-height:1.9;
}
.dlp-bar__p>span{font-variant-numeric:tabular-nums;font-feature-settings:'tnum' 1}

.dlp-bar--inline_right{justify-content:flex-start}
.dlp-bar--inline_left{justify-content:flex-end}
.dlp-bar--inline_center{justify-content:center}
.dlp-bar--split_right{justify-content:space-between}
.dlp-bar--split_left{justify-content:space-between;flex-direction:row}

@media (max-width:520px){
	.dlp-bar{font-size:13px;gap:.5em;padding:.55em .9em}
	.dlp-bar__t{font-size:.94em}
}

/* ---------- شورت‌کد قیمت ---------- */

.dlp-sc{
	display:inline-flex;
	align-items:baseline;
	gap:.5em;
	font-family:inherit;
	line-height:1.8;
}
.dlp-sc__t{opacity:.8}
.dlp-sc__p{
	font-weight:700;
	font-variant-numeric:tabular-nums;
	font-feature-settings:'tnum' 1;
}
.dlp-sc--card{
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	gap:.15em;
	padding:14px 20px;
	border-radius:16px;
	color:#0f2a22;
	background:linear-gradient(150deg,#ffffff,#f4faf7 62%,#eef7f2);
	border:1px solid #d8e8e0;
	box-shadow:0 10px 26px -18px rgba(7,35,28,.45);
	position:relative;
	overflow:hidden;
}
.dlp-sc--card::before{
	content:'';
	position:absolute;
	inset-inline-start:0;
	top:0;
	bottom:0;
	width:3px;
	background:linear-gradient(180deg,#1aa57c,#0e6f52);
}
.dlp-sc--card .dlp-sc__t{
	font-size:.82em;
	font-weight:500;
	color:#5b766c;
}
.dlp-sc--card .dlp-sc__p{
	font-size:1.42em;
	font-weight:700;
	color:#0b5c44;
	letter-spacing:-.2px;
}

/* ---------- نمودار تاریخچه ---------- */

.dlp-ch{
	box-sizing:border-box;
	width:100%;
	max-width:100%;
	font-family:inherit;
	direction:rtl;
}
.dlp-ch [hidden]{display:none!important}
.dlp-ch__head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	flex-wrap:wrap;
	margin-bottom:10px;
}
.dlp-ch__title{font-weight:700;font-size:13.5px;color:#0f172a}
.dlp-ch__tabs{display:inline-flex;gap:3px;padding:3px;background:#f2f5f8;border:1px solid #e3e9f0;border-radius:11px}
.dlp-ch__tabs button{
	appearance:none;
	border:0;
	background:transparent;
	color:#4b5b70;
	border-radius:8px;
	padding:4px 13px;
	font:inherit;
	font-size:12px;
	font-weight:600;
	line-height:1.9;
	cursor:pointer;
	transition:background .14s ease,color .14s ease,box-shadow .14s ease;
}
.dlp-ch__tabs button:hover{color:#0e6f52}
.dlp-ch__tabs button.on{
	background:#fff;
	color:#0b5c44;
	box-shadow:0 1px 3px rgba(15,23,42,.12);
}
.dlp-ch__meta{margin:2px 0 4px}
.dlp-ch__chg{
	display:inline-block;
	padding:2px 11px;
	border-radius:999px;
	font-size:12.2px;
	font-weight:700;
	font-variant-numeric:tabular-nums;
	background:#f2f5f8;
	color:#5b6b80;
	border:1px solid #e3e9f0;
}
.dlp-ch__chg--up{background:#e7f6ee;color:#0b7a4b;border-color:#c9e9d9}
.dlp-ch__chg--down{background:#fdeceb;color:#b42318;border-color:#f6cbc7}
.dlp-ch__svg{
	display:block;
	width:100%;
	height:auto;
	direction:ltr;
	overflow:visible;
}
.dlp-ch__grid{stroke:#e6edf3;stroke-width:1;stroke-dasharray:3 5}
.dlp-ch__lbl{fill:#7b8b9e;font-size:15px;font-family:inherit}
.dlp-ch__line{
	fill:none;
	stroke:#0e6f52;
	stroke-width:2.4;
	stroke-linejoin:round;
	stroke-linecap:round;
}
.dlp-ch__dot{fill:#0e6f52;stroke:#fff;stroke-width:2}
.dlp-ch__hit{fill:transparent;cursor:crosshair}
.dlp-ch__hit:hover{fill:rgba(14,111,82,.16)}
.dlp-ch__stats{
	display:flex;
	flex-wrap:wrap;
	gap:6px 20px;
	margin-top:8px;
	padding-top:8px;
	border-top:1px solid #eef2f6;
	font-size:12.2px;
	color:#64748b;
}
.dlp-ch__stats b{color:#0f172a;font-weight:700;font-variant-numeric:tabular-nums}
.dlp-ch__empty{
	margin:8px 0;
	padding:20px;
	text-align:center;
	font-size:12.8px;
	line-height:2;
	color:#64748b;
	background:#f8fafc;
	border:1px dashed #dbe3ec;
	border-radius:12px;
}
@media (max-width:520px){
	.dlp-ch__lbl{font-size:19px}
	.dlp-ch__stats{font-size:11.6px;gap:4px 14px}
}
