/* ===================================================================
   آنی ادز — نمایش آمار کمپین تلگرام (مشترک بین ادمین و پنل مشتری)
=================================================================== */

.ani-camp {
	--c-accent: #4f5bd5;
	--c-ink: #1f2733;
	--c-ink-2: #475063;
	--c-muted: #8a93a3;
	--c-line: #e9edf3;
	--c-soft: #f1f3f7;
	--c-ok: #2f9e7a;
	--c-warn: #b07d2e;
	--c-bad: #c4584f;
	font-family: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, sans-serif;
	color: var(--c-ink);
	direction: rtl;
}

.ani-camp * {
	box-sizing: border-box;
}

/* سربرگ */
.ani-camp-head {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--c-line);
	margin-bottom: 18px;
}

.ani-camp-thumb {
	width: 84px;
	height: 84px;
	border-radius: 14px;
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
	border: 1px solid var(--c-line);
}

.ani-camp-head-body {
	min-width: 0;
	flex: 1;
}

.ani-camp-title-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ani-camp-title-row h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--c-ink);
}

.ani-camp-text {
	margin: 8px 0 6px;
	color: var(--c-ink-2);
	font-size: 14px;
	line-height: 1.9;
}

.ani-camp-link {
	display: inline-block;
	color: var(--c-accent);
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
}

.ani-camp-status {
	font-size: 12.5px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 8px;
}

.ani-camp-status.is-ok { background: rgba(47, 158, 122, 0.12); color: var(--c-ok); }
.ani-camp-status.is-warn { background: rgba(176, 125, 46, 0.14); color: var(--c-warn); }
.ani-camp-status.is-bad { background: rgba(196, 88, 79, 0.12); color: var(--c-bad); }
.ani-camp-status.is-info { background: rgba(79, 91, 213, 0.12); color: var(--c-accent); }

/* کاشی‌های آماری */
.ani-camp-tiles {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.ani-camp-tile {
	background: var(--c-soft);
	border: 1px solid var(--c-line);
	border-radius: 12px;
	padding: 14px;
	text-align: center;
}

.ani-camp-tile-label {
	display: block;
	font-size: 12px;
	color: var(--c-muted);
	margin-bottom: 6px;
}

.ani-camp-tile-value {
	display: block;
	font-size: 19px;
	font-weight: 800;
	color: var(--c-ink);
}

/* نمودار ستونی بازدید */
.ani-camp-chart-box {
	background: var(--c-soft);
	border: 1px solid var(--c-line);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 20px;
}

.ani-camp-chart-title {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--c-ink-2);
}

.ani-camp-chart {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 120px;
}

.ani-camp-bar-wrap {
	flex: 1;
	height: 100%;
	display: flex;
	align-items: flex-end;
	min-width: 2px;
}

.ani-camp-bar {
	width: 100%;
	background: var(--c-accent);
	border-radius: 3px 3px 0 0;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

.ani-camp-bar-wrap:hover .ani-camp-bar {
	opacity: 1;
}

/* فهرست کانال‌ها */
.ani-camp-channels-box {
	border: 1px solid var(--c-line);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
}

.ani-camp-channels-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.ani-camp-chan-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--c-ink-2);
}

.ani-camp-chan-count {
	background: rgba(79, 91, 213, 0.1);
	color: var(--c-accent);
	font-size: 12.5px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
	white-space: nowrap;
}

.ani-camp-channels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ani-camp-chan {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--c-soft);
	border: 1px solid var(--c-line);
	border-radius: 999px;
	padding: 7px 14px 7px 10px;
	font-size: 13px;
	color: var(--c-ink-2);
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
	max-width: 260px;
}

a.ani-camp-chan:hover {
	border-color: var(--c-accent);
	color: var(--c-accent);
	background: #fff;
}

.ani-camp-chan.is-plain {
	opacity: 0.7;
}

.ani-camp-chan-ico {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--c-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.ani-camp-chan.is-plain .ani-camp-chan-ico {
	background: var(--c-muted);
}

.ani-camp-chan-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ani-camp-foot {
	font-size: 12.5px;
	color: var(--c-muted);
}

.ani-camp-muted {
	color: var(--c-muted);
	font-size: 13px;
}

@media (max-width: 900px) {
	.ani-camp-tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
	.ani-camp-tiles { grid-template-columns: repeat(2, 1fr); }
	.ani-camp-chan { max-width: 100%; }
}

/* ===================================================================
   پنل مشتری (فرانت‌اند)
=================================================================== */

.ani-panel {
	background: #f6f7f9;
	font-family: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, sans-serif;
	padding: 30px 16px 50px;
	min-height: 70vh;
	direction: rtl;
}

.ani-panel-inner {
	max-width: 980px;
	margin-inline: auto;
}

.ani-panel-inner:has(.ani-panel-pane[data-pane="new-order"].is-active) {
	max-width: 1060px;
}

.ani-panel-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
}

.ani-panel-logo {
	height: 52px;
	width: auto;
}

.ani-panel-head-text h1 {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: #1f2733;
}

.ani-panel-head-text p {
	margin: 2px 0 0;
	color: #8a93a3;
	font-size: 14px;
}

.ani-panel-welcome {
	background: #fff;
	border: 1px solid #e9edf3;
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 18px;
	font-size: 15px;
}

.ani-panel .ani-camp {
	background: #fff;
	border: 1px solid #e9edf3;
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 18px;
	box-shadow: 0 6px 18px rgba(31, 39, 51, 0.04);
}

.ani-panel-auth,
.ani-panel-empty {
	background: #fff;
	border: 1px solid #e9edf3;
	border-radius: 16px;
	padding: 44px 24px;
	text-align: center;
	box-shadow: 0 6px 18px rgba(31, 39, 51, 0.04);
}

.ani-panel-auth h2 {
	margin: 0 0 10px;
	font-size: 20px;
}

.ani-panel-auth p,
.ani-panel-empty p {
	color: #64748b;
	margin: 0 0 18px;
}

.ani-panel-btn {
	display: inline-block;
	background: linear-gradient(120deg, #2563eb, #7c3aed);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	padding: 12px 28px;
	border-radius: 999px;
}

.ani-panel-btn-outline {
	background: transparent;
	border: 2px solid #2563eb;
	color: #2563eb;
	box-shadow: none;
}

.ani-panel-auth-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.ani-panel-logout {
	margin-inline-start: auto;
	color: #64748b;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	padding: 8px 14px;
	border: 1px solid #e9edf3;
	border-radius: 10px;
}

.ani-panel-logout:hover {
	color: #c4584f;
	border-color: #c4584f;
}

.ani-panel-header {
	flex-wrap: wrap;
}

/* اطلاعات حساب */
.ani-panel-account {
	background: #fff;
	border: 1px solid #e9edf3;
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 22px;
	box-shadow: 0 6px 18px rgba(31, 39, 51, 0.04);
}

.ani-panel-account-head h2 {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 800;
	color: #1f2733;
}

.ani-panel-account-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.ani-panel-account-item {
	background: #f6f7f9;
	border: 1px solid #e9edf3;
	border-radius: 12px;
	padding: 14px 16px;
}

.ani-panel-account-label {
	display: block;
	font-size: 12px;
	color: #8a93a3;
	margin-bottom: 4px;
}

.ani-panel-account-value {
	font-size: 15px;
	font-weight: 700;
	color: #1f2733;
	word-break: break-all;
}

.ani-panel-account-link {
	font-size: 14px;
	font-weight: 700;
	color: #4f5bd5;
	text-decoration: none;
}

.ani-panel-section-title {
	font-size: 17px;
	font-weight: 800;
	color: #1f2733;
	margin-bottom: 14px;
}

@media (max-width: 560px) {
	.ani-panel-account-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   پنل چندبخشی — تب‌ها، نمای کلی، سفارش‌ها
=================================================================== */

/* تب‌ها */
.ani-panel-tabs {
	display: flex;
	gap: 4px;
	background: #fff;
	border: 1px solid #e9edf3;
	border-radius: 14px;
	padding: 6px;
	margin-bottom: 20px;
	overflow-x: auto;
}

.ani-panel-tab {
	flex: 1;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #64748b;
	padding: 11px 14px;
	border-radius: 10px;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

.ani-panel-tab:hover {
	color: #1f2733;
}

.ani-panel-tab.is-active {
	background: linear-gradient(120deg, #2563eb, #7c3aed);
	color: #fff;
}

.ani-panel-tab-cta {
	flex: 0 0 auto;
	margin-right: auto;
	background: linear-gradient(135deg, #229ed9 0%, #2563eb 100%);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(34, 158, 217, 0.35);
}

.ani-panel-tab-cta:hover {
	color: #fff !important;
	opacity: 0.92;
}

.ani-panel-tab-cta.is-active {
	background: linear-gradient(135deg, #1a8bc4 0%, #1d4ed8 100%);
	color: #fff !important;
}

.ani-panel-tab-badge {
	background: rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	padding: 1px 8px;
	font-size: 12px;
}

.ani-panel-tab:not(.is-active) .ani-panel-tab-badge {
	background: #eef2fb;
	color: #4f5bd5;
}

/* پنل‌ها (بخش‌ها) */
.ani-panel-pane {
	display: none;
}

.ani-panel-pane.is-active {
	display: block;
	animation: ani-panel-fade 0.25s ease;
}

@keyframes ani-panel-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

/* کاشی‌های آماری نمای کلی */
.ani-panel-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 20px;
}

.ani-panel-stat {
	background: #fff;
	border: 1px solid #e9edf3;
	border-radius: 14px;
	padding: 18px;
	box-shadow: 0 6px 18px rgba(31, 39, 51, 0.04);
}

.ani-panel-stat-label {
	display: block;
	font-size: 13px;
	color: #8a93a3;
	margin-bottom: 8px;
}

.ani-panel-stat-value {
	font-size: 24px;
	font-weight: 800;
	color: #1f2733;
}

.ani-panel-stat-value small {
	font-size: 12px;
	font-weight: 600;
	color: #8a93a3;
}

/* خلاصه‌ی تبلیغات در نمای کلی */
.ani-panel-overview-ads,
.ani-panel-recent {
	background: #fff;
	border: 1px solid #e9edf3;
	border-radius: 16px;
	padding: 20px 22px;
	margin-bottom: 18px;
	box-shadow: 0 6px 18px rgba(31, 39, 51, 0.04);
}

.ani-panel-overview-ads h3,
.ani-panel-recent h3 {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 800;
	color: #1f2733;
}

.ani-panel-mini-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.ani-panel-mini-tile {
	background: #f6f7f9;
	border: 1px solid #e9edf3;
	border-radius: 12px;
	padding: 14px;
	text-align: center;
}

.ani-panel-mini-tile span {
	display: block;
	font-size: 18px;
	font-weight: 800;
	color: #1f2733;
}

.ani-panel-mini-tile small {
	font-size: 12px;
	color: #8a93a3;
}

/* ردیف سفارش (نمای کلی) */
.ani-panel-order-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f1f3f7;
}

.ani-panel-order-row:last-child {
	border-bottom: 0;
}

.ani-panel-order-svc {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	color: var(--c, #4f5bd5);
	background: color-mix(in srgb, var(--c, #4f5bd5) 12%, #fff);
}

.ani-panel-order-svc svg {
	width: 22px;
	height: 22px;
}

.ani-panel-order-main {
	flex: 1;
	min-width: 0;
}

.ani-panel-order-main strong {
	display: block;
	font-size: 14px;
	color: #1f2733;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ani-panel-order-meta {
	font-size: 12.5px;
	color: #8a93a3;
}

/* کارت سفارش (تب سفارش‌ها) */
.ani-panel-orders {
	display: grid;
	gap: 14px;
}

.ani-panel-order-card {
	background: #fff;
	border: 1px solid #e9edf3;
	border-radius: 16px;
	padding: 18px 20px;
	box-shadow: 0 6px 18px rgba(31, 39, 51, 0.04);
}

.ani-panel-order-card-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f1f3f7;
	margin-bottom: 14px;
}

.ani-panel-order-card-body {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.ani-panel-order-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ani-panel-order-field span {
	font-size: 12px;
	color: #8a93a3;
}

.ani-panel-order-field b {
	font-size: 14px;
	color: #1f2733;
}

.ani-panel-order-report {
	font-size: 13.5px;
	font-weight: 700;
	color: #4f5bd5;
	text-decoration: none;
}

/* در تب آمار تبلیغات، هر کمپین کارت مستقل */
.ani-panel-pane[data-pane="ads"] .ani-camp {
	background: #fff;
	border: 1px solid #e9edf3;
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 18px;
	box-shadow: 0 6px 18px rgba(31, 39, 51, 0.04);
}

@media (max-width: 760px) {
	.ani-panel-stats { grid-template-columns: repeat(2, 1fr); }
	.ani-panel-mini-tiles { grid-template-columns: repeat(2, 1fr); }
	.ani-panel-order-card-body { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	.ani-panel-tab { font-size: 13px; padding: 10px 8px; }
}

/* ===================================================================
   داشبورد آمار تبلیغات مشتری (چند کمپین)
=================================================================== */

.ani-ads-dash {
	background: #fff;
	border: 1px solid #e9edf3;
	border-radius: 18px;
	padding: 22px 24px;
	margin-bottom: 18px;
	box-shadow: 0 8px 24px rgba(31, 39, 51, 0.05);
}

.ani-ads-dash-hero h2 {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 800;
	color: #1f2733;
}

.ani-ads-dash-hero p {
	margin: 0;
	font-size: 13.5px;
	color: #8a93a3;
}

.ani-ads-dash-kpis {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin: 20px 0;
}

.ani-ads-kpi {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border-radius: 14px;
	border: 1px solid #e9edf3;
	background: linear-gradient(145deg, #fafbfc 0%, #fff 100%);
}

.ani-ads-kpi-icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.ani-ads-kpi strong {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: #1f2733;
	line-height: 1.2;
}

.ani-ads-kpi small {
	display: block;
	font-size: 12px;
	color: #8a93a3;
	margin-top: 2px;
}

.ani-ads-kpi-views { border-color: rgba(37, 99, 235, 0.2); }
.ani-ads-kpi-clicks { border-color: rgba(124, 58, 237, 0.2); }
.ani-ads-kpi-joined { border-color: rgba(20, 184, 166, 0.2); }
.ani-ads-kpi-ctr { border-color: rgba(79, 91, 213, 0.2); }

.ani-ads-dash-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ani-ads-dash-card {
	background: #f8f9fb;
	border: 1px solid #e9edf3;
	border-radius: 14px;
	padding: 18px 20px;
}

.ani-ads-dash-card h3 {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 800;
	color: #1f2733;
}

.ani-ads-funnel-row {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.ani-ads-funnel-label {
	font-size: 13px;
	color: #64748b;
	font-weight: 600;
}

.ani-ads-funnel-track {
	height: 10px;
	background: #e9edf3;
	border-radius: 999px;
	overflow: hidden;
}

.ani-ads-funnel-bar {
	height: 100%;
	border-radius: 999px;
	transition: width 0.4s ease;
}

.ani-ads-funnel-num {
	font-size: 13px;
	font-weight: 700;
	color: #1f2733;
	min-width: 52px;
	text-align: left;
}

.ani-ads-dash-note {
	margin: 12px 0 0;
	font-size: 13px;
	color: #64748b;
}

.ani-ads-compare-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 1.2fr auto;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.ani-ads-compare-name {
	font-size: 12.5px;
	color: #475063;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ani-ads-compare-track {
	height: 8px;
	background: #e9edf3;
	border-radius: 999px;
	overflow: hidden;
}

.ani-ads-compare-bar {
	height: 100%;
	background: linear-gradient(90deg, #2563eb, #7c3aed);
	border-radius: 999px;
}

.ani-ads-compare-val {
	font-size: 12.5px;
	font-weight: 700;
	color: #1f2733;
}

.ani-ads-donut-wrap {
	display: flex;
	align-items: center;
	gap: 20px;
	justify-content: center;
	padding: 8px 0;
}

.ani-ads-donut {
	--p-clicks: 0;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: conic-gradient(
		#7c3aed 0 calc(var(--p-clicks) * 1%),
		#e9edf3 calc(var(--p-clicks) * 1%) 100%
	);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.ani-ads-donut-hole {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: #f8f9fb;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.ani-ads-donut-hole strong {
	font-size: 20px;
	font-weight: 800;
	color: #1f2733;
}

.ani-ads-donut-hole span {
	font-size: 11px;
	color: #8a93a3;
}

.ani-ads-donut-legend {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ani-ads-donut-legend li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #475063;
	margin-bottom: 8px;
}

.ani-ads-donut-legend span {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	flex-shrink: 0;
}

/* تب‌های فیلتر کمپین */
.ani-ads-camp-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
	padding: 6px;
	background: #fff;
	border: 1px solid #e9edf3;
	border-radius: 14px;
}

.ani-ads-camp-tab {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: #64748b;
	padding: 9px 16px;
	border-radius: 10px;
	transition: background 0.15s ease, color 0.15s ease;
}

.ani-ads-camp-tab:hover {
	color: #1f2733;
	background: #f1f3f7;
}

.ani-ads-camp-tab.is-active {
	background: linear-gradient(120deg, #2563eb, #7c3aed);
	color: #fff;
}

.ani-ads-camp-list {
	display: grid;
	gap: 18px;
}

.ani-ads-camp-item[hidden] {
	display: none !important;
}

.ani-panel-empty-ads {
	padding: 48px 28px;
}

.ani-panel-empty-icon {
	font-size: 48px;
	margin-bottom: 12px;
}

.ani-panel-empty-ads h3 {
	margin: 0 0 10px;
	font-size: 18px;
	color: #1f2733;
}

/* نمودار پیشرفته‌تر */
.ani-camp-chart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.ani-camp-chart-range {
	font-size: 12px;
	color: #8a93a3;
	font-weight: 600;
}

.ani-camp-chart-area {
	overflow-x: auto;
	padding-bottom: 4px;
}

.ani-camp-chart-area .ani-camp-chart {
	min-width: 280px;
	height: 140px;
	align-items: flex-end;
	gap: 2px;
}

.ani-camp-bar-wrap {
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	position: relative;
}

.ani-camp-bar {
	background: linear-gradient(180deg, #5b6de8 0%, #2563eb 100%);
	border-radius: 4px 4px 0 0;
	min-height: 3px;
}

.ani-camp-bar-label {
	font-size: 9px;
	color: #8a93a3;
	margin-top: 4px;
	white-space: nowrap;
	transform: rotate(-45deg);
	transform-origin: top center;
	height: 20px;
}

/* متریک‌های کوچک تک‌کمپین */
.ani-camp-mini-metrics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 20px;
}

.ani-camp-mini-metric {
	background: var(--c-soft);
	border: 1px solid var(--c-line);
	border-radius: 12px;
	padding: 14px 16px;
}

.ani-camp-mini-metric span {
	display: block;
	font-size: 12px;
	color: var(--c-muted);
	margin-bottom: 4px;
}

.ani-camp-mini-metric strong {
	font-size: 18px;
	font-weight: 800;
	color: var(--c-ink);
}

.ani-camp-mini-bar {
	height: 6px;
	background: #e9edf3;
	border-radius: 999px;
	margin-top: 10px;
	overflow: hidden;
}

.ani-camp-mini-bar div {
	height: 100%;
	background: linear-gradient(90deg, #2563eb, #7c3aed);
	border-radius: 999px;
}

.ani-camp-mini-bar.is-teal div {
	background: linear-gradient(90deg, #14b8a6, #0d9488);
}

@media (max-width: 900px) {
	.ani-ads-dash-kpis { grid-template-columns: repeat(2, 1fr); }
	.ani-ads-dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.ani-ads-dash-kpis { grid-template-columns: 1fr; }
	.ani-camp-mini-metrics { grid-template-columns: 1fr; }
	.ani-ads-donut-wrap { flex-direction: column; }
}

/* فرم لینک آمار تلگرام روی سفارش */
.ani-panel-order-stats-box,
.aniadm-order-stats-box {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #e9edf3;
}

.aniadm-order-stats-box {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.ani-order-stats-linked {
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.06));
	border: 1px solid rgba(37, 99, 235, 0.15);
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 12px;
}

.ani-order-stats-linked-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}

.ani-order-stats-linked-head strong {
	font-size: 14px;
	color: #1f2733;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ani-order-stats-pill {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(47, 158, 122, 0.14);
	color: #2f9e7a;
	flex-shrink: 0;
}

.ani-order-stats-mini {
	display: flex;
	gap: 14px;
	font-size: 12.5px;
	color: #64748b;
	margin-bottom: 6px;
}

.ani-order-stats-label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	color: #475063;
	margin-bottom: 8px;
}

.ani-order-stats-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.ani-order-stats-input {
	flex: 1;
	min-width: 0;
	border: 1px solid #e9edf3;
	border-radius: 10px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 13px;
	background: #fff;
}

.ani-order-stats-input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ani-order-stats-btn {
	border: 0;
	border-radius: 10px;
	padding: 10px 16px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(120deg, #2563eb, #7c3aed);
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.ani-order-stats-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.ani-order-stats-hint {
	margin: 8px 0 0;
	font-size: 12px;
	color: #8a93a3;
	line-height: 1.7;
}

.ani-order-stats-msg {
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 12px;
	border-radius: 8px;
}

.ani-order-stats-msg.is-ok {
	background: rgba(47, 158, 122, 0.12);
	color: #2f9e7a;
}

.ani-order-stats-msg.is-error {
	background: rgba(196, 88, 79, 0.12);
	color: #c4584f;
}

@media (max-width: 560px) {
	.ani-order-stats-row {
		flex-direction: column;
	}
}
