.egr-widget {
	--egr-primary: #0b3d2e;
	--egr-accent: #c9a84c;
	--egr-surface: #fff;
	--egr-text: #17221d;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	margin: 28px 0;
	color: var(--egr-text);
	font-family: "Tajawal", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.65;
}
.egr-widget *, .egr-widget *::before, .egr-widget *::after { box-sizing: border-box; }
.egr-brand-line { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; color: #60756c; font-size: 12px; font-weight: 700; }
.egr-live-dot, .egr-live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #19a66b; box-shadow: 0 0 0 5px rgba(25,166,107,.11); }
.egr-table-section, .egr-dollar-widget {
	position: relative;
	overflow: hidden;
	margin-bottom: 24px;
	border: 1px solid rgba(11,61,46,.24);
	border-radius: 20px;
	background: var(--egr-surface);
	box-shadow: 0 18px 55px rgba(8,45,35,.08);
}
.egr-table-section::before, .egr-dollar-widget::before {
	position: absolute;
	z-index: 4;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--egr-primary), #146b50 70%, var(--egr-accent));
	content: "";
}
.egr-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 26px 20px;
	border-bottom: 1px solid rgba(11,61,46,.08);
	background: linear-gradient(125deg, rgba(11,61,46,.07), rgba(201,168,76,.05) 55%, transparent);
}
.egr-heading h3 { margin: 2px 0 0; color: var(--egr-primary); font-family: inherit; font-size: clamp(19px, 2.4vw, 27px); font-weight: 800; line-height: 1.35; }
.egr-eyebrow { color: var(--egr-accent); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.egr-live-pill { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid rgba(25,166,107,.18); border-radius: 99px; color: #087949; background: rgba(25,166,107,.07); font-size: 11px; font-weight: 800; }
.egr-table-scroll { width: 100%; overflow-x: auto; scrollbar-color: rgba(11,61,46,.2) transparent; }
.egr-table { width: 100%; min-width: 860px; margin: 0; border: 0; border-collapse: collapse; table-layout: auto; background: transparent; }
.egr-table th, .egr-table td { padding: 17px 14px; border: 0; border-bottom: 1px solid rgba(11,61,46,.13); text-align: center; vertical-align: middle; white-space: nowrap; }
.egr-table th:first-child, .egr-table td:first-child { padding-right: 24px; text-align: right; }
.egr-table th { color: #637169; background: rgba(11,61,46,.025); font-size: 12px; font-weight: 800; }
.egr-table th small { display: block; color: #9ca69f; font-size: 10px; font-weight: 500; }
.egr-table tbody tr { transition: background-color .2s ease, transform .2s ease; }
.egr-table tbody tr:hover { background: rgba(11,61,46,.027); }
.egr-table tbody tr:last-child td { border-bottom: 0; }
.egr-table td b { display: inline-block; direction: ltr; color: #17221d; font-size: 15px; font-variant-numeric: tabular-nums; transition: color .25s ease, transform .25s ease; }
.egr-table td b.is-updated, .egr-rate-main b.is-updated { transform: translateY(-1px); }
.egr-widget .is-up { color: #0b8a57 !important; text-shadow: 0 0 18px rgba(11,138,87,.16); }
.egr-widget .is-down { color: #c94747 !important; text-shadow: 0 0 18px rgba(201,71,71,.14); }
.egr-table td > small { display: block; margin-top: 2px; color: #8a9891; font-size: 10px; }
.egr-country { min-width: 145px; }
.egr-country strong { display: inline-block; margin: 0 9px; color: var(--egr-primary); font-weight: 800; }
.egr-country small { display: inline !important; color: #a3ada8 !important; font-size: 9px !important; letter-spacing: .1em; }
.egr-flag { display: inline-grid; width: 31px; height: 24px; place-items: center; border: 1px solid rgba(11,61,46,.12); border-radius: 7px; color: var(--egr-primary); background: #f6faf8; font-size: 9px; font-weight: 900; letter-spacing: .07em; }
.egr-code { display: inline-block; direction: ltr; padding: 3px 8px; border-radius: 7px; color: var(--egr-primary); background: rgba(11,61,46,.07); font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.egr-fx-cell { min-width: 126px; }
.egr-fx-cell b { padding: 3px 9px; border-radius: 8px; color: var(--egr-primary) !important; background: rgba(11,61,46,.075); }
.egr-fx-cell small { direction: ltr; letter-spacing: .025em; }
.egr-fx-cell small span { color: var(--egr-primary); font-weight: 800; }
.egr-mode-usd { margin-top: 26px; }
.egr-mode-usd .egr-heading { background: linear-gradient(125deg, rgba(201,168,76,.09), rgba(11,61,46,.035) 60%, transparent); }
.egr-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: -10px 4px 0; color: #819089; font-size: 11px; }
.egr-footer > div { display: flex; flex-wrap: wrap; gap: 14px; }
.egr-footer small { max-width: 520px; color: #919d97; font-size: 11px; text-align: left; }
.egr-dollar-widget { padding-bottom: 20px; }
.egr-dollar-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; padding: 20px; }
.egr-rate-card { overflow: hidden; padding: 18px; border: 1px solid rgba(11,61,46,.09); border-radius: 15px; background: linear-gradient(150deg,#fff,#f7faf8); transition: transform .2s ease, box-shadow .2s ease; }
.egr-rate-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(8,45,35,.08); }
.egr-rate-card-top { display: flex; align-items: center; gap: 10px; }
.egr-rate-card-top div { display: flex; flex-direction: column; }
.egr-rate-card-top strong { color: var(--egr-primary); font-size: 15px; }
.egr-rate-card-top small { color: #8c9992; font-size: 10px; letter-spacing: .09em; }
.egr-rate-main { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 8px; margin: 20px 0 12px; direction: ltr; }
.egr-rate-main span, .egr-rate-main em { color: #839089; font-size: 11px; font-style: normal; }
.egr-rate-main b { color: var(--egr-primary); font-size: 26px; font-variant-numeric: tabular-nums; }
.egr-rate-inverse { padding-top: 10px; border-top: 1px solid rgba(11,61,46,.07); color: #8a9790; direction: ltr; font-size: 10px; text-align: left; }
.egr-dollar-widget > .egr-footer { margin: 5px 20px 0; }
@media (max-width: 840px) {
	.egr-dollar-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.egr-heading { padding: 19px; }
	.egr-table th, .egr-table td { padding: 14px 11px; }
}
@media (max-width: 560px) {
	.egr-widget { margin: 20px 0; font-size: 14px; }
	.egr-table-section, .egr-dollar-widget { border-radius: 15px; }
	.egr-heading { align-items: flex-start; padding: 16px 12px 14px; gap: 8px; }
	.egr-heading h3 { font-size: 17px; }
	.egr-live-pill { margin-top: 4px; }
	.egr-dollar-grid { grid-template-columns: 1fr; padding: 14px; }
	.egr-table-scroll { overflow-x: visible; }
	.egr-table { width: 100%; min-width: 0; table-layout: fixed; }
	.egr-table th, .egr-table td {
		padding: 9px 2px;
		overflow-wrap: anywhere;
		white-space: normal;
		font-size: 8px;
		line-height: 1.25;
	}
	.egr-table th:first-child, .egr-table td:first-child {
		position: static;
		z-index: auto;
		width: 19%;
		padding-right: 2px;
		background: inherit;
		box-shadow: none;
		text-align: center;
	}
	.egr-table th:first-child { background: rgba(11,61,46,.025); }
	.egr-table th small { margin-top: 2px; font-size: 6.5px; line-height: 1.2; }
	.egr-table td b { max-width: 100%; font-size: 10px; letter-spacing: -.02em; }
	.egr-table td > small { margin-top: 2px; font-size: 6.5px; line-height: 1.15; }
	.egr-country { min-width: 0; }
	.egr-country .egr-flag { width: 24px; height: 19px; border-radius: 6px; font-size: 7px; }
	.egr-country strong { display: block; margin: 3px 0 0; font-size: 9px; line-height: 1.2; }
	.egr-code { padding: 2px 3px; border-radius: 5px; font-size: 8px; letter-spacing: 0; }
	.egr-fx-cell { min-width: 0; }
	.egr-fx-cell b { padding: 2px 3px; border-radius: 5px; }
	.egr-fx-cell small span { display: block; }
	.egr-footer { display: block; padding: 0 8px; }
	.egr-footer small { display: block; margin-top: 7px; text-align: right; }
}
@media (max-width: 380px) {
	.egr-table th, .egr-table td { padding: 8px 1px; }
	.egr-table td b { font-size: 9px; }
	.egr-country strong { font-size: 8px; }
	.egr-heading h3 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.egr-widget *, .egr-widget *::before, .egr-widget *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
