/**
 * TabloTala Gold Board — Iranian premium visual language
 * تمام کلاس‌ها با پیشوند ttgb تا از تداخل با قالب جلوگیری شود.
 */

.ttgb-board {
	--ttgb-bg: #f5efe0;
	--ttgb-card: #fffbf2;
	--ttgb-text: #22303b;
	--ttgb-muted: #7a7466;
	--ttgb-border: #c9a227;
	--ttgb-accent: #1f8a8c;
	--ttgb-gold: #c9a227;
	--ttgb-up: #16a34a;
	--ttgb-down: #dc2626;
	--ttgb-flat: #8a8a8a;
	--ttgb-radius: 20px;
	--ttgb-gap: 14px;
	--ttgb-font-size: 15px;
	--ttgb-shadow: 0 18px 40px -28px rgba(11, 20, 36, 0.55);
	position: relative;
	isolation: isolate;
	background: var(--ttgb-bg);
	color: var(--ttgb-text);
	font-family: "Vazirmatn", "IRANSans", Tahoma, sans-serif;
	font-size: var(--ttgb-font-size);
	line-height: 1.7;
	border-radius: calc(var(--ttgb-radius) + 12px);
	padding: 14px;
	direction: rtl;
	box-sizing: border-box;
	transition: background 0.3s ease, color 0.3s ease;
}

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

.ttgb-board[data-mode="dark"] {
	--ttgb-muted: #b9ac8d;
	color-scheme: dark;
}


/* ────────── قاب تزئینی ────────── */
.ttgb-frame {
	border: 1.5px solid var(--ttgb-border);
	box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.28), inset 0 0 0 1px rgba(201, 162, 39, 0.18);
	overflow: hidden;
}

.ttgb-frame::before {
	content: "";
	position: absolute;
	inset: 7px;
	border: 1px solid rgba(201, 162, 39, 0.38);
	border-radius: calc(var(--ttgb-radius) + 6px);
	pointer-events: none;
	z-index: 1;
}

.ttgb-corner {
	position: absolute;
	width: 52px;
	height: 52px;
	z-index: 2;
	pointer-events: none;
	opacity: 0.7;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M2 26V9a7 7 0 0 1 7-7h17'/%3E%3Cpath d='M7 34V15a8 8 0 0 1 8-8h19' opacity='.45'/%3E%3Cpath d='M18 24c0-8 6-14 14-14 0 8-6 14-14 14Z' opacity='.7'/%3E%3Cpath d='M24 24c6 0 10 4 10 10-6 0-10-4-10-10Z' opacity='.55'/%3E%3Ccircle cx='15' cy='15' r='2'/%3E%3C/g%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}
.ttgb-corner-tr { top: 8px; right: 8px; }
.ttgb-corner-tl { top: 8px; left: 8px; transform: rotate(90deg); }
.ttgb-corner-br { bottom: 8px; right: 8px; transform: rotate(-90deg); }
.ttgb-corner-bl { bottom: 8px; left: 8px; transform: rotate(180deg); }

/* ────────── هدر ────────── */
.ttgb-head {
	position: relative;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-radius: calc(var(--ttgb-radius) + 2px);
	border: 1px solid rgba(201, 162, 39, 0.4);
	background:
		linear-gradient(120deg, rgba(31, 138, 140, 0.16), rgba(201, 162, 39, 0.2)),
		var(--ttgb-card);
	overflow: hidden;
}

.ttgb-head::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='0.9' opacity='0.5'%3E%3Cpath d='M22 2 L28 15 L41 22 L28 29 L22 42 L16 29 L3 22 L16 15 Z'/%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.1;
	pointer-events: none;
}

.ttgb-head-main,
.ttgb-head-actions {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ttgb-mark {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid rgba(201, 162, 39, 0.55);
	background: rgba(255, 251, 242, 0.65);
	color: var(--ttgb-gold);
	font-size: 22px;
	box-shadow: inset 0 0 0 3px rgba(255, 251, 242, 0.5);
}

.ttgb-board-title {
	margin: 0;
	font-family: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--ttgb-text);
}

.ttgb-board-subtitle {
	margin: 0;
	font-size: 10.5px;
	font-weight: 500;
	color: var(--ttgb-muted);
}

.ttgb-clock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 10px;
	border: 1px solid rgba(201, 162, 39, 0.42);
	background: rgba(255, 251, 242, 0.75);
	font-size: 11.5px;
	font-weight: 700;
	color: var(--ttgb-text);
	font-variant-numeric: tabular-nums;
}

.ttgb-board[data-mode="dark"] .ttgb-clock,
.ttgb-board[data-mode="dark"] .ttgb-mark,
.ttgb-board[data-mode="dark"] .ttgb-icon-btn {
	background: rgba(11, 20, 36, 0.35);
}

.ttgb-clock .ttgb-svg { width: 16px; height: 16px; color: var(--ttgb-accent); }
.ttgb-clock [data-ttgb-clock] { direction: ltr; }
.ttgb-clock [data-ttgb-date] { font-size: 10.5px; font-weight: 500; color: var(--ttgb-muted); }
.ttgb-sep { width: 1px; height: 13px; background: rgba(120, 110, 85, 0.3); }

.ttgb-icon-btn {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	border: 1px solid rgba(201, 162, 39, 0.45);
	background: rgba(255, 251, 242, 0.8);
	color: var(--ttgb-text);
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease;
	padding: 0;
}

.ttgb-icon-btn .ttgb-svg { width: 18px; height: 18px; }
.ttgb-icon-btn.is-spinning .ttgb-svg { animation: ttgb-spin 0.9s linear infinite; }

.ttgb-statusbar {
	position: relative;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 16px;
	margin-top: 6px;
	font-size: 10px;
	color: var(--ttgb-muted);
	border-inline: 1px solid rgba(201, 162, 39, 0.28);
	border-bottom: 1px solid rgba(201, 162, 39, 0.28);
	border-radius: 0 0 calc(var(--ttgb-radius) - 4px) calc(var(--ttgb-radius) - 4px);
}

.ttgb-source { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.ttgb-source[data-source="simulated"] { color: #b45309; }
.ttgb-source[data-source="cache"] { color: #9a7b12; }
.ttgb-source[data-source="live"] { color: var(--ttgb-up); }

.ttgb-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: currentColor;
	animation: ttgb-pulse 2s infinite;
	display: inline-block;
}

.ttgb-crenel {
	height: 9px;
	margin-top: 2px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M0 12V7c0-3 2-5 5-5s5 2 5 5v5m0 0V7c0-3 2-5 5-5s5 2 5 5v5' fill='none' stroke='%23C9A227' stroke-width='1' opacity='.55'/%3E%3C/svg%3E");
	background-size: 20px 12px;
	background-repeat: repeat-x;
	opacity: 0.8;
}

/* ────────── شبکه و کارت‌ها ────────── */
.ttgb-grid {
	position: relative;
	z-index: 3;
	display: grid;
	gap: var(--ttgb-gap);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 14px 0;
}

.ttgb-card {
	position: relative;
	background: var(--ttgb-card);
	border: 1px solid rgba(201, 162, 39, 0.42);
	border-radius: var(--ttgb-radius);
	padding: 14px 15px 12px;
	overflow: hidden;
	box-shadow: var(--ttgb-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	text-align: right;
}

.ttgb-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='0.7' opacity='0.5'%3E%3Cpath d='M27 4 L32 19 L47 27 L32 35 L27 50 L22 35 L7 27 L22 19 Z'/%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.08;
	pointer-events: none;
}

.ttgb-board:not(.ttgb-ornaments) .ttgb-card::after { display: none; }



.ttgb-card-accent {
	position: absolute;
	inset-inline: 22%;
	top: 0;
	height: 3px;
	border-radius: 0 0 999px 999px;
	background: linear-gradient(90deg, transparent, var(--ttgb-gold), var(--ttgb-accent), transparent);
}

.ttgb-arch {
	position: absolute;
	top: -1px;
	left: 50%;
	transform: translateX(-50%);
	width: 46px;
	height: 23px;
	border: 1px solid rgba(201, 162, 39, 0.45);
	border-top: 0;
	border-radius: 0 0 46px 46px;
	pointer-events: none;
}

.ttgb-card-head {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.ttgb-card-id { display: flex; align-items: center; gap: 8px; min-width: 0; }

.ttgb-icon-badge {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border-radius: 13px;
	border: 1px solid rgba(201, 162, 39, 0.42);
	color: var(--ttgb-accent);
	background: linear-gradient(145deg, rgba(201, 162, 39, 0.2), var(--ttgb-card));
	box-shadow: inset 0 0 0 3px rgba(255, 251, 242, 0.55);
}

.ttgb-card-title {
	display: block;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 150px;
}

.ttgb-card-caption {
	display: block;
	font-size: 10px;
	color: var(--ttgb-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ttgb-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 7px;
	border-radius: 8px;
	font-size: 11.5px;
	font-weight: 800;
	border: 1px solid currentColor;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	flex-shrink: 0;
}

.ttgb-up { color: var(--ttgb-up); }
.ttgb-down { color: var(--ttgb-down); }
.ttgb-flat { color: var(--ttgb-flat); }
.ttgb-badge.ttgb-up { background: rgba(22, 163, 74, 0.1); }
.ttgb-badge.ttgb-down { background: rgba(220, 38, 38, 0.1); }
.ttgb-badge.ttgb-flat { background: rgba(138, 138, 138, 0.1); }

.ttgb-card-price-row {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.ttgb-card-price {
	font-size: clamp(17px, 1.4vw, 21px);
	font-weight: 900;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.ttgb-card-unit { font-size: 10px; font-weight: 700; color: var(--ttgb-muted); }
.ttgb-card-change {
	font-size: 10px;
	font-weight: 800;
	margin-inline-start: auto;
	direction: ltr;
	font-variant-numeric: tabular-nums;
}

.ttgb-spark { position: relative; height: 26px; margin-top: 8px; }
.ttgb-spark-svg { width: 100%; height: 26px; display: block; }

.ttgb-divider {
	height: 1px;
	margin: 8px 0;
	background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.55), transparent);
}

.ttgb-card-foot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	font-size: 10px;
	color: var(--ttgb-muted);
}

.ttgb-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 1px 7px;
	border-radius: 999px;
	border: 1px solid rgba(201, 162, 39, 0.35);
	background: rgba(255, 251, 242, 0.7);
	font-size: 9.5px;
	white-space: nowrap;
}

.ttgb-board[data-mode="dark"] .ttgb-chip { background: rgba(11, 20, 36, 0.35); }

/* ────────── فوتر و هشدار ────────── */
.ttgb-footer {
	position: relative;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
	padding: 8px 12px;
	border-radius: 12px;
	border: 1px solid rgba(201, 162, 39, 0.25);
	font-size: 9.5px;
	color: var(--ttgb-muted);
}

.ttgb-alert {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid rgba(220, 38, 38, 0.45);
	background: rgba(220, 38, 38, 0.1);
	color: #b91c1c;
	font-size: 12px;
	font-weight: 800;
}

.ttgb-alert[hidden] { display: none; }

.ttgb-retry {
	border: 1px solid rgba(185, 28, 28, 0.45);
	background: rgba(255, 255, 255, 0.75);
	color: #b91c1c;
	border-radius: 8px;
	padding: 3px 10px;
	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
}

/* ────────── انیمیشن‌ها ────────── */
@keyframes ttgb-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
	50% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}

@keyframes ttgb-spin { to { transform: rotate(360deg); } }

@keyframes ttgb-flash-up {
	0% { background-color: rgba(22, 163, 74, 0.22); }
	100% { background-color: var(--ttgb-card); }
}

@keyframes ttgb-flash-down {
	0% { background-color: rgba(220, 38, 38, 0.22); }
	100% { background-color: var(--ttgb-card); }
}

@keyframes ttgb-nudge {
	0%, 100% { transform: translateY(0); }
	35% { transform: translateY(-3px); }
	70% { transform: translateY(2px); }
}

.ttgb-flash-up { animation: ttgb-flash-up 1.4s ease-out; }
.ttgb-flash-down { animation: ttgb-flash-down 1.4s ease-out; }
.ttgb-nudge { animation: ttgb-nudge 0.7s ease-in-out; }

/* ────────── ریسپانسیو ────────── */
@media (max-width: 1024px) {
	.ttgb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.ttgb-board { padding: 10px; }
	.ttgb-grid { grid-template-columns: minmax(0, 1fr); }
	.ttgb-board-title { font-size: 22px; }
	.ttgb-clock [data-ttgb-date] { display: none; }
	.ttgb-corner { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.ttgb-board *,
	.ttgb-board *::before,
	.ttgb-board *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

/* ═══════════════════════════════════════════════════════════
   استایل‌دهی فونت‌ها و آیکون‌ها (نسخهٔ ۱٫۱)
   ═══════════════════════════════════════════════════════════ */

.ttgb-board {
	--ttgb-font: Vazirmatn, IRANSans, Sahel, Tahoma, system-ui, sans-serif;
	--ttgb-font-title: Lalezar, Vazirmatn, IRANSans, Tahoma, sans-serif;
	--ttgb-font-price: Vazirmatn, IRANSans, Tahoma, system-ui, sans-serif;
	--ttgb-icon-size: 20px;
	font-family: var(--ttgb-font);
}

/* هر سه خانوادهٔ Material Symbols + نسخهٔ SVG */




/* SVG درون‌خطی — جانشین کاملاً آفلاین آیکون‌ها */
.ttgb-board .ttgb-svg,
.ttgb-board .ttgb-svg-icon {
	width: var(--ttgb-icon-size);
	height: var(--ttgb-icon-size);
	display: inline-block;
	flex-shrink: 0;
	color: inherit;
	vertical-align: middle;
}

.ttgb-board .ttgb-icon-badge .ttgb-svg,
.ttgb-board .ttgb-icon-badge .ttgb-svg-icon {
	width: var(--ttgb-icon-size);
	height: var(--ttgb-icon-size);
}

.ttgb-board .ttgb-icon-btn .ttgb-svg,
.ttgb-board .ttgb-clock .ttgb-svg {
	width: 17px;
	height: 17px;
}

/* تایپوگرافی اختصاصی هر بخش */
.ttgb-board .ttgb-board-title {
	font-family: var(--ttgb-font-title);
}

.ttgb-board .ttgb-card-price,
.ttgb-board .ttgb-clock [data-ttgb-clock],
.ttgb-board .ttgb-badge,
.ttgb-board .ttgb-card-change {
	font-family: var(--ttgb-font-price);
}

/* شکل‌های قاب آیکون */
.ttgb-board[data-icon-shape="circle"] .ttgb-icon-badge { border-radius: 999px; }
.ttgb-board[data-icon-shape="arch"] .ttgb-icon-badge { border-radius: 22px 22px 8px 8px; }
.ttgb-board[data-icon-shape="plain"] .ttgb-icon-badge {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

/* وقتی فونت آیکون بارگذاری نشود، متن ligature نباید بزرگ و آشفته دیده شود */

/* ═══════════════════════════════════════════════════════════
   رفع مشکلات نمایش (نسخهٔ ۱٫۲)
   ═══════════════════════════════════════════════════════════ */

/* ۱) مقدار liga باید صریح باشد؛ نوشتن "liga" بدون مقدار کل اعلان را باطل می‌کند */

/* ۲) آیکون SVG جایگزین (زمانی که فونت Material بارگذاری نشود) */

/* ۳) تضمین دیده‌شدن شبکه و کارت‌ها حتی با قالب‌های تهاجمی */
.ttgb-board .ttgb-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: 100%;
	visibility: visible;
	opacity: 1;
}
.ttgb-board .ttgb-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	min-height: 132px;
	visibility: visible;
	opacity: 1;
}
.ttgb-board .ttgb-card-head { width: 100%; }
.ttgb-board .ttgb-card-price-row { width: 100%; }

/* ۵) وقتی قالب‌ها i/span را بازنویسی می‌کنند */

/* ۶) نمایش آیکون‌ها در حالت SVG (پیش‌فرض) */

/* ۷) شکل قاب آیکون */
.ttgb-board[data-icon-shape="circle"] .ttgb-icon-badge { border-radius: 999px !important; }
.ttgb-board[data-icon-shape="arch"] .ttgb-icon-badge { border-radius: 22px 22px 8px 8px !important; }
.ttgb-board[data-icon-shape="plain"] .ttgb-icon-badge {
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
}

/* هشدار «داده زنده نیست» */
.ttgb-board .ttgb-stale-banner {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	position: relative;
	z-index: 6;
	margin: 0 0 10px;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid rgba(180, 83, 9, 0.45);
	background: rgba(251, 191, 36, 0.16);
	color: #92400e;
	font-size: 11.5px;
	font-weight: 700;
}
.ttgb-board[data-mode="dark"] .ttgb-stale-banner {
	border-color: rgba(251, 191, 36, 0.4);
	background: rgba(251, 191, 36, 0.14);
	color: #fbbf24;
}
.ttgb-board .ttgb-stale-banner .ttgb-live-dot {
	background: #f59e0b;
}
.ttgb-board .ttgb-stale-banner .ttgb-retry {
	margin-inline-start: auto;
	border-color: currentColor;
	color: inherit;
	background: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════
   سازگاری کامل با المنتور و قالب — نسخهٔ ۱٫۶
   ۱) پس‌زمینهٔ المنتور/قالب نباید داخل ویجت دیده شود
   ۲) هیچ رنگ بنفش/آبی پیش‌فرض روی کلیک و فوکوس دکمه‌ها باقی نماند
   ═══════════════════════════════════════════════════════════════════ */

/* ── ۱) خنثی‌سازی wrapper المنتور ── */
.elementor-widget-ttgb_gold_board,
.elementor-widget-ttgb_gold_board .elementor-widget-container {
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible;
	isolation: isolate;
	direction: rtl;
}

/* تابلو همیشه پس‌زمینهٔ مات خودش را دارد؛ هرگز شفاف نیست */
.elementor-widget-ttgb_gold_board .ttgb-board,
.ttgb-board.ttgb-frame,
.ttgb-board.ttgb-no-frame {
	background-color: var(--ttgb-bg) !important;
	background-image: none !important;
	color: var(--ttgb-text);
	font-family: var(--ttgb-font);
	text-align: right;
	direction: rtl;
	box-shadow: 0 24px 60px -46px rgba(11, 20, 36, 0.7);
}

/* لایه‌های سطحی: به‌جای rgba از رنگ مات ترکیبی استفاده می‌کنیم تا رنگ المنتور نشت نکند */
.ttgb-board .ttgb-head {
	background-color: var(--ttgb-card) !important;
	background-image: linear-gradient(
		120deg,
		color-mix(in srgb, var(--ttgb-accent) 16%, var(--ttgb-card)),
		color-mix(in srgb, var(--ttgb-gold) 20%, var(--ttgb-card))
	) !important;
}
.ttgb-board .ttgb-clock,
.ttgb-board .ttgb-icon-btn,
.ttgb-board .ttgb-mark,
.ttgb-board .ttgb-chip,
.ttgb-board .ttgb-card,
.ttgb-board .ttgb-footer,
.ttgb-board .ttgb-footer {
	background-color: color-mix(in srgb, var(--ttgb-card) 94%, var(--ttgb-bg)) !important;
}
.ttgb-board .ttgb-icon-btn,
.ttgb-board .ttgb-chip {
	background-color: color-mix(in srgb, var(--ttgb-card) 88%, var(--ttgb-bg)) !important;
}
.ttgb-board[data-mode="dark"] .ttgb-clock,
.ttgb-board[data-mode="dark"] .ttgb-icon-btn,
.ttgb-board[data-mode="dark"] .ttgb-chip {
	background-color: color-mix(in srgb, var(--ttgb-card) 90%, #0b1424) !important;
}
.ttgb-board .ttgb-statusbar {
	background-color: color-mix(in srgb, var(--ttgb-bg) 96%, var(--ttgb-card)) !important;
}

/* ── ۲) خنثی‌سازی کامل دکمه‌ها، لینک‌ها و حالت‌های کلیک ── */
.ttgb-board,
.ttgb-board * {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
	-webkit-touch-callout: none;
}

.ttgb-board :where(button, [role="button"], select, input, textarea) {
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
	text-transform: none;
	letter-spacing: inherit;
}

.ttgb-board button,
.ttgb-board button:hover,
.ttgb-board button:active,
.ttgb-board button:focus,
.ttgb-board button:focus-visible {
	outline: none !important;
	box-shadow: none;
	text-decoration: none !important;
}

/* حلقهٔ فوکوس اختصاصی ایرانی (دسترسی‌پذیری) */
.ttgb-board button:focus-visible,
.ttgb-board select:focus-visible {
	outline: 2px solid var(--ttgb-accent) !important;
	outline-offset: 2px !important;
}

/* دکمه‌های آیکونی: رنگ ثابت در همهٔ حالت‌ها */
.ttgb-board .ttgb-icon-btn {
	background-color: color-mix(in srgb, var(--ttgb-card) 88%, var(--ttgb-bg)) !important;
	color: var(--ttgb-text) !important;
	border-color: color-mix(in srgb, var(--ttgb-border) 45%, transparent) !important;
}
.ttgb-board[data-mode="dark"] .ttgb-icon-btn,
.ttgb-board[data-mode="dark"] .ttgb-icon-btn:hover,
.ttgb-board[data-mode="dark"] .ttgb-icon-btn:focus,
.ttgb-board[data-mode="dark"] .ttgb-icon-btn:active {
	background-color: color-mix(in srgb, var(--ttgb-card) 90%, #0b1424) !important;
	color: var(--ttgb-text) !important;
}

/* دکمهٔ تلاش مجدد */
.ttgb-board .ttgb-retry,
.ttgb-board .ttgb-retry:hover,
.ttgb-board .ttgb-retry:focus,
.ttgb-board .ttgb-retry:active {
	background: rgba(255, 255, 255, 0.9) !important;
	color: #b91c1c !important;
	border: 1px solid rgba(185, 28, 28, 0.45) !important;
	box-shadow: none !important;
}
.ttgb-board .ttgb-stale-banner .ttgb-retry,
.ttgb-board .ttgb-stale-banner .ttgb-retry:hover,
.ttgb-board .ttgb-stale-banner .ttgb-retry:focus,
.ttgb-board .ttgb-stale-banner .ttgb-retry:active {
	background: rgba(255, 255, 255, 0.6) !important;
	color: inherit !important;
	border-color: currentColor !important;
}

/* انتخابگر نمودار */
.ttgb-board .ttgb-select,
.ttgb-board .ttgb-select:focus,
.ttgb-board .ttgb-select:active {
	background-color: var(--ttgb-card) !important;
	color: var(--ttgb-text) !important;
	border: 1px solid color-mix(in srgb, var(--ttgb-border) 45%, transparent) !important;
	box-shadow: none !important;
}

/* لینک‌ها هرگز رنگ بنفش «بازدیدشده» نگیرند */
.elementor-widget-ttgb_gold_board .ttgb-board a,
.elementor-widget-ttgb_gold_board .ttgb-board a:link,
.elementor-widget-ttgb_gold_board .ttgb-board a:visited,
.elementor-widget-ttgb_gold_board .ttgb-board a:hover,
.elementor-widget-ttgb_gold_board .ttgb-board a:active,
.elementor-widget-ttgb_gold_board .ttgb-board a:focus {
	color: inherit !important;
	text-decoration: none !important;
	background: transparent !important;
}

/* جلوگیری از override شدن تایپوگرافی توسط قالب */
.elementor-widget-ttgb_gold_board .ttgb-board h2,
.elementor-widget-ttgb_gold_board .ttgb-board h3,
.elementor-widget-ttgb_gold_board .ttgb-board b,
.elementor-widget-ttgb_gold_board .ttgb-board small,
.elementor-widget-ttgb_gold_board .ttgb-board p,
.elementor-widget-ttgb_gold_board .ttgb-board span {
	color: inherit;
	font-family: inherit;
}

/* انتخاب متن همرنگ تم */
.ttgb-board ::selection {
	background: color-mix(in srgb, var(--ttgb-gold) 35%, transparent);
	color: var(--ttgb-text);
}

/* شمارشگر به‌روزرسانی (۳۰ ثانیه) */
.ttgb-board .ttgb-countdown {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}
.ttgb-board .ttgb-countdown.is-due {
	color: var(--ttgb-accent);
}
.ttgb-board .ttgb-progress {
	position: relative;
	width: 100%;
	height: 2px;
	margin-top: 4px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ttgb-border) 25%, transparent);
	overflow: hidden;
}
.ttgb-board .ttgb-progress > span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--ttgb-gold), var(--ttgb-accent));
	transition: width 0.95s linear;
}

/* وقتی فونت در دسترس نیست یا گلیف وجود ندارد: آیکون‌های SVG نمایش داده می‌شوند */



/* ═══════════════════════════════════════════════════════════════════
   آیکون‌ها — نسخهٔ ۱٫۹ : فقط SVG درون‌خطی، بدون فونت، بدون هاور
   ═══════════════════════════════════════════════════════════════════ */

.ttgb-board .ttgb-icon-badge {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	transition: none;
}

.ttgb-board .ttgb-icon-badge::before,
.ttgb-board .ttgb-icon-badge::after {
	content: none !important;
	display: none !important;
}

/* آیکون همیشه و در همهٔ حالت‌ها ثابت و خوانا */
.ttgb-board .ttgb-icon-badge svg {
	display: block;
	width: var(--ttgb-icon-size, 20px);
	height: var(--ttgb-icon-size, 20px);
	flex-shrink: 0;
	color: var(--ttgb-icon-color, currentColor);
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

/* حذف کامل هر افکت هاور/فوکوس روی کارت و آیکون */
.ttgb-board .ttgb-card,
.ttgb-board .ttgb-card:hover,
.ttgb-board .ttgb-card:focus,
.ttgb-board .ttgb-card:focus-within {
	transform: none !important;
	animation: none !important;
}

.ttgb-board .ttgb-card:hover .ttgb-icon-badge,
.ttgb-board .ttgb-card:hover .ttgb-icon-badge svg,
.ttgb-board .ttgb-card:hover .ttgb-icon-badge i,
.ttgb-board .ttgb-card:focus-within .ttgb-icon-badge {
	animation: none !important;
	transform: none !important;
	color: inherit;
	box-shadow: none !important;
}

/* اگر آیکون Material باقی مانده باشد، متن ligature آن دیده نشود */
.ttgb-board .ttgb-icon-badge i {
	display: none !important;
}


/* شمارندهٔ تازه‌سازی خودکار (بدون دکمه و بدون آیکون) */
.ttgb-board .ttgb-countdown {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.ttgb-board .ttgb-countdown [data-ttgb-countdown-value] {
	font-weight: 800;
	color: var(--ttgb-accent);
}

/* دکمهٔ آیکونی حذف شده است؛ اگر قالبی باقی‌مانده را رندر کرد، پنهان شود */
.ttgb-board .ttgb-head-actions .ttgb-icon-btn,
.ttgb-board [data-ttgb-theme-toggle],
.ttgb-board [data-ttgb-refresh] {
	display: none !important;
}
