/* =============================================================
   ویزارد ثبت تبلیغ تلگرام — آنی ادز (فارسی، مدرن)
   ============================================================= */

.ani-wizard {
	--ani-primary: #2563eb;
	--ani-primary-dark: #1d4ed8;
	--ani-accent: #7c3aed;
	--ani-teal: #14d9b0;
	--ani-text: #0f172a;
	--ani-muted: #64748b;
	--ani-border: #e2e8f0;
	--ani-bg: #f8fafc;
	--ani-card: #ffffff;
	--ani-radius: 14px;
	--ani-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);

	font-family: 'Vazirmatn', Tahoma, sans-serif;
	direction: rtl;
	max-width: 1060px;
	margin: 0 auto;
	padding: 0 0 32px;
	color: var(--ani-text);
}

/* ── سربرگ ── */
.ani-wiz-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
	padding: 20px 24px;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.06) 100%);
	border: 1px solid var(--ani-border);
	border-radius: var(--ani-radius);
}

.ani-wiz-head-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, #229ed9 0%, #1a8bc4 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
	box-shadow: 0 8px 20px rgba(34, 158, 217, 0.35);
}

.ani-wiz-head-icon svg {
	width: 28px;
	height: 28px;
}

.ani-wiz-head-title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 800;
}

.ani-wiz-head-sub {
	margin: 0;
	font-size: 14px;
	color: var(--ani-muted);
}

/* ── پیشرفت ── */
.ani-wiz-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 0 0 28px;
}

.ani-wiz-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	opacity: 0.35;
	transition: opacity 0.25s;
}

.ani-wiz-step.active {
	opacity: 1;
}

.ani-wiz-step-dot {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ani-border);
	color: var(--ani-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.ani-wiz-step.active .ani-wiz-step-dot {
	background: linear-gradient(135deg, var(--ani-primary) 0%, var(--ani-accent) 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.ani-wiz-step span {
	font-size: 13px;
	color: var(--ani-muted);
	white-space: nowrap;
}

.ani-wiz-step.active span {
	color: var(--ani-primary);
	font-weight: 600;
}

.ani-wiz-step-line {
	flex: 1;
	min-width: 48px;
	max-width: 120px;
	height: 2px;
	background: var(--ani-border);
	margin: 0 10px 24px;
}

.ani-wiz-pane {
	display: none;
}

.ani-wiz-pane.active {
	display: block;
	animation: ani-wiz-in 0.3s ease;
}

@keyframes ani-wiz-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ── گرید فرم + پیش‌نمایش ── */
.ani-order-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 24px;
	align-items: start;
}

@media (max-width: 900px) {
	.ani-order-grid {
		grid-template-columns: 1fr;
	}
}

.ani-order-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ani-order-block {
	background: var(--ani-card);
	border: 1px solid var(--ani-border);
	border-radius: var(--ani-radius);
	padding: 22px 24px;
	box-shadow: var(--ani-shadow);
}

.ani-order-block-title {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 700;
}

.ani-order-block-desc {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--ani-muted);
}

/* ── چیپ‌ها ── */
.ani-chip-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ani-chip {
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid var(--ani-border);
	background: var(--ani-bg);
	color: var(--ani-muted);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s;
}

.ani-chip:hover {
	border-color: var(--ani-primary);
	color: var(--ani-primary);
}

.ani-chip.is-active {
	background: linear-gradient(135deg, var(--ani-primary) 0%, var(--ani-accent) 100%);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ── فیلدها ── */
.ani-field {
	margin-bottom: 18px;
}

.ani-field:last-child {
	margin-bottom: 0;
}

.ani-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--ani-text);
}

.ani-req {
	color: #ef4444;
}

.ani-input,
.ani-textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ani-border);
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	color: var(--ani-text);
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ani-input-lg {
	font-size: 18px;
	font-weight: 600;
}

.ani-input:focus,
.ani-textarea:focus {
	outline: none;
	border-color: var(--ani-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ani-textarea {
	min-height: 88px;
	resize: vertical;
	line-height: 1.6;
}

.ani-field-meta {
	font-size: 12px;
	color: var(--ani-muted);
	margin-top: 4px;
	text-align: left;
}

.ani-hint {
	font-size: 12px;
	color: var(--ani-muted);
	margin: 6px 0 0;
	line-height: 1.55;
}

/* ── آپلود ── */
.ani-upload-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px dashed var(--ani-border);
	border-radius: 10px;
	background: var(--ani-bg);
	color: var(--ani-primary);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.ani-upload-trigger:hover {
	border-color: var(--ani-primary);
	background: rgba(37, 99, 235, 0.04);
}

.ani-upload-input {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
	pointer-events: none;
}

.ani-upload-preview {
	margin-top: 12px;
	position: relative;
	display: inline-block;
}

.ani-upload-preview img {
	max-width: 200px;
	max-height: 130px;
	border-radius: 10px;
	object-fit: cover;
	border: 1px solid var(--ani-border);
	display: block;
}

.ani-upload-remove {
	position: absolute;
	top: -8px;
	left: -8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #ef4444;
	color: #fff;
	border: 2px solid #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.ani-upload-progress {
	height: 4px;
	background: var(--ani-border);
	border-radius: 2px;
	margin-top: 10px;
	max-width: 200px;
	overflow: hidden;
}

.ani-upload-bar {
	height: 100%;
	width: 0;
	background: var(--ani-primary);
	transition: width 0.3s;
}

/* ── اقدامات ── */
.ani-order-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 4px 0;
}

.ani-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 13px;
	color: var(--ani-muted);
	line-height: 1.5;
	flex: 1;
	min-width: 200px;
}

.ani-check input {
	display: none;
}

.ani-check-box {
	width: 20px;
	height: 20px;
	border: 2px solid var(--ani-border);
	border-radius: 6px;
	flex-shrink: 0;
	position: relative;
	margin-top: 2px;
	transition: background 0.15s, border-color 0.15s;
}

.ani-check input:checked + .ani-check-box {
	background: var(--ani-primary);
	border-color: var(--ani-primary);
}

.ani-check input:checked + .ani-check-box::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ani-btn {
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.ani-btn-primary {
	background: linear-gradient(135deg, var(--ani-primary) 0%, var(--ani-accent) 100%);
	color: #fff;
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.ani-btn-primary:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.ani-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ani-btn-ghost {
	background: #fff;
	border: 1px solid var(--ani-border);
	color: var(--ani-text);
}

.ani-btn-ghost:hover {
	background: var(--ani-bg);
}

.ani-btn-pay {
	min-width: 180px;
}

/* ── پیش‌نمایش ── */
.ani-order-aside {
	position: sticky;
	top: 16px;
}

@media (max-width: 900px) {
	.ani-order-aside {
		position: static;
		order: -1;
	}
}

.ani-preview-card {
	background: var(--ani-card);
	border: 1px solid var(--ani-border);
	border-radius: var(--ani-radius);
	overflow: hidden;
	box-shadow: var(--ani-shadow);
}

.ani-preview-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(124, 58, 237, 0.04) 100%);
	border-bottom: 1px solid var(--ani-border);
}

.ani-preview-badge {
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	background: #229ed9;
	color: #fff;
}

.ani-preview-label {
	font-size: 13px;
	color: var(--ani-muted);
	font-weight: 600;
}

.ani-preview-body-tg {
	padding: 0 !important;
	min-height: auto !important;
	background: #8cc98a;
}

.ani-preview-target-mini {
	margin-top: 8px;
	font-size: 11px;
	color: var(--ani-muted);
	text-align: center;
}

/* ── پیش‌نمایش تلگرام ادز ── */
.ani-tg-preview {
	width: 100%;
}

.ani-tg-chat {
	background-color: #9cc99a;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3Ccircle cx='70' cy='35' r='2'/%3E%3Ccircle cx='95' cy='18' r='2.5'/%3E%3Ccircle cx='40' cy='75' r='2'/%3E%3Ccircle cx='88' cy='82' r='3'/%3E%3Ccircle cx='15' cy='95' r='2'/%3E%3C/g%3E%3C/svg%3E");
	padding: 18px 14px 22px;
	min-height: 280px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.ani-tg-empty {
	text-align: center;
	color: rgba(255, 255, 255, 0.92);
	padding: 40px 16px;
	font-size: 13px;
	line-height: 1.65;
}

.ani-tg-empty span {
	font-size: 28px;
	display: block;
	margin-bottom: 8px;
}

.ani-tg-empty[hidden],
.ani-tg-ad-card[hidden],
.ani-tg-ad-banner[hidden] {
	display: none !important;
}

.ani-tg-ad-card {
	width: 100%;
	max-width: 280px;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.ani-tg-ad-banner img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 160px;
	object-fit: cover;
}

.ani-tg-ad-inner {
	padding: 10px 12px 8px;
}

.ani-tg-ad-badge-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.ani-tg-ad-badge {
	font-size: 11px;
	font-weight: 700;
	color: #707579;
	background: #f0f2f5;
	padding: 2px 7px;
	border-radius: 4px;
	letter-spacing: 0.02em;
}

.ani-tg-ad-whats {
	border: none;
	background: none;
	padding: 0;
	font-size: 11px;
	color: #3390ec;
	cursor: default;
	font-family: inherit;
}

.ani-tg-ad-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: #000;
	word-break: break-word;
	white-space: normal;
}

.ani-tg-ad-cta {
	display: block;
	text-align: center;
	padding: 12px 10px;
	font-size: 13px;
	font-weight: 700;
	color: #3390ec;
	border-top: 1px solid #e8e8e8;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: #fff;
}

.ani-preview-empty[hidden],
.ani-preview-content[hidden],
.ani-preview-media[hidden],
.ani-preview-text[hidden],
.ani-upload-preview[hidden],
.ani-upload-progress[hidden],
.ani-pay-error[hidden],
.ani-pay-loading[hidden] {
	display: none !important;
}

.ani-preview-media img {
	width: 100%;
	border-radius: 10px;
	margin-bottom: 12px;
	max-height: 160px;
	object-fit: cover;
}

.ani-preview-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	word-break: break-word;
}

.ani-preview-text {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--ani-muted);
	line-height: 1.55;
	white-space: normal;
	word-break: break-word;
}

.ani-preview-url {
	font-size: 12px;
	color: var(--ani-primary);
	direction: ltr;
	text-align: right;
	word-break: break-all;
	margin-bottom: 8px;
}

.ani-preview-target {
	font-size: 12px;
	color: var(--ani-muted);
	padding: 6px 10px;
	background: var(--ani-bg);
	border-radius: 8px;
	display: inline-block;
}

.ani-preview-foot {
	padding: 14px 18px;
	border-top: 1px solid var(--ani-border);
	background: var(--ani-bg);
}

.ani-preview-budget {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: var(--ani-muted);
}

.ani-preview-budget strong {
	font-size: 16px;
	color: var(--ani-primary);
	font-weight: 800;
}

.ani-order-tips {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ani-order-tips li {
	font-size: 12px;
	color: var(--ani-muted);
	line-height: 1.5;
	padding-right: 18px;
	position: relative;
}

.ani-order-tips li::before {
	content: '•';
	position: absolute;
	right: 0;
	color: var(--ani-teal);
	font-weight: 700;
}

/* ── تأیید ── */
.ani-confirm-wrap {
	display: flex;
	justify-content: center;
	padding: 8px 0 24px;
}

.ani-confirm-card {
	background: var(--ani-card);
	border: 1px solid var(--ani-border);
	border-radius: calc(var(--ani-radius) + 4px);
	padding: 32px 36px;
	max-width: 520px;
	width: 100%;
	box-shadow: var(--ani-shadow);
}

.ani-confirm-top {
	text-align: center;
	margin-bottom: 24px;
}

.ani-confirm-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 16px;
	background: linear-gradient(135deg, #229ed9, #1a8bc4);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.ani-confirm-icon svg {
	width: 30px;
	height: 30px;
}

.ani-confirm-top h3 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 800;
}

.ani-confirm-top p {
	margin: 0;
	font-size: 14px;
	color: var(--ani-muted);
}

.ani-confirm-fields {
	background: var(--ani-bg);
	border-radius: 12px;
	padding: 4px 18px;
	margin-bottom: 20px;
}

.ani-confirm-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ani-border);
	font-size: 14px;
}

.ani-confirm-row:last-child {
	border-bottom: none;
}

.ani-confirm-row span {
	color: var(--ani-muted);
	flex-shrink: 0;
}

.ani-confirm-row b {
	text-align: left;
	word-break: break-word;
	font-weight: 600;
	max-width: 60%;
}

.ani-confirm-price {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(20, 217, 176, 0.08) 100%);
	border-radius: 12px;
	margin-bottom: 16px;
	font-size: 15px;
}

.ani-confirm-amount {
	font-size: 22px;
	font-weight: 800;
	color: var(--ani-primary);
}

.ani-confirm-notice {
	font-size: 13px;
	color: var(--ani-muted);
	line-height: 1.65;
	margin-bottom: 24px;
	padding: 12px 14px;
	background: rgba(20, 217, 176, 0.08);
	border-radius: 10px;
	border: 1px solid rgba(20, 217, 176, 0.2);
}

.ani-confirm-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.ani-confirm-actions .ani-btn {
	flex: 1;
	min-width: 140px;
	text-align: center;
}

.ani-pay-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 13px;
	margin-top: 16px;
}

.ani-pay-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px;
	color: var(--ani-primary);
	font-size: 14px;
	margin-top: 12px;
}

.ani-pay-spinner {
	width: 22px;
	height: 22px;
	border: 3px solid rgba(37, 99, 235, 0.2);
	border-top-color: var(--ani-primary);
	border-radius: 50%;
	animation: ani-spin 0.7s linear infinite;
}

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

/* ── متن تک‌خط + اموجی ── */
.ani-hint-inline {
	margin: 0 0 8px !important;
}

.ani-text-single-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 0;
}

.ani-input-text-single {
	flex: 1;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	padding-left: 48px;
}

.ani-emoji-btn {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 44px;
	border: 1px solid var(--ani-border);
	border-left: none;
	border-radius: 10px 0 0 10px;
	background: var(--ani-bg);
	font-size: 20px;
	cursor: pointer;
	transition: background 0.15s;
}

.ani-emoji-btn:hover {
	background: rgba(37, 99, 235, 0.08);
}

.ani-emoji-panel[hidden] {
	display: none !important;
}

/* ── مودال اموجی کامل ── */
.ani-emoji-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ani-emoji-modal[hidden] {
	display: none !important;
}

body.ani-emoji-open {
	overflow: hidden;
}

.ani-emoji-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(4px);
}

.ani-emoji-modal-panel {
	position: relative;
	z-index: 1;
	width: min(420px, 100%);
	max-height: min(520px, 90vh);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ani-border);
}

.ani-emoji-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid var(--ani-border);
	background: var(--ani-bg);
}

.ani-emoji-modal-head strong {
	font-size: 15px;
}

.ani-emoji-modal-close {
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 8px;
	background: transparent;
	font-size: 22px;
	cursor: pointer;
	color: var(--ani-muted);
	line-height: 1;
}

.ani-emoji-modal-close:hover {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}

.ani-emoji-search {
	margin: 12px 14px 0;
	padding: 10px 12px;
	border: 1px solid var(--ani-border);
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
}

.ani-emoji-search:focus {
	outline: none;
	border-color: var(--ani-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ani-emoji-cats {
	display: flex;
	gap: 6px;
	padding: 10px 14px;
	overflow-x: auto;
	border-bottom: 1px solid var(--ani-border);
	scrollbar-width: thin;
}

.ani-emoji-cat {
	flex-shrink: 0;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--ani-border);
	background: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	color: var(--ani-muted);
	cursor: pointer;
}

.ani-emoji-cat.is-active {
	background: var(--ani-primary);
	border-color: var(--ani-primary);
	color: #fff;
}

.ani-emoji-grid-large {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 2px;
	padding: 10px 12px 14px;
	overflow-y: auto;
	max-height: 320px;
}

.ani-emoji-grid-large .ani-emoji-item {
	border: none;
	background: transparent;
	font-size: 22px;
	padding: 6px;
	border-radius: 8px;
	cursor: pointer;
	line-height: 1;
	aspect-ratio: 1;
}

.ani-emoji-grid-large .ani-emoji-item:hover {
	background: var(--ani-bg);
	transform: scale(1.08);
}

.ani-field-meta-warn {
	color: var(--ani-muted);
}

/* ── تگ‌های هدف ── */
.ani-target-counter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--ani-bg);
	border: 1px solid var(--ani-border);
	margin-bottom: 16px;
}

.ani-target-counter.is-warn {
	border-color: #fecaca;
	background: #fef2f2;
}

.ani-target-counter.is-warn .ani-target-counter-num strong {
	color: #dc2626;
}

.ani-target-counter.is-ok {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.ani-target-counter.is-ok .ani-target-counter-num strong {
	color: #059669;
}

.ani-target-counter-num {
	font-size: 14px;
}

.ani-target-counter-num strong {
	font-size: 18px;
	font-weight: 800;
}

.ani-target-counter-label {
	font-size: 13px;
	color: var(--ani-muted);
}

.ani-info-banner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.6;
	margin-bottom: 16px;
}

.ani-info-banner-warn {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.ani-info-banner-warn svg {
	flex-shrink: 0;
	color: #dc2626;
	margin-top: 2px;
}

.ani-tag-input-wrap {
	border: 1px solid var(--ani-border);
	border-radius: 10px;
	padding: 8px 10px;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ani-tag-input-wrap:focus-within {
	border-color: var(--ani-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ani-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.ani-tag-list:empty {
	margin-bottom: 0;
}

.ani-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px 4px 4px;
	background: rgba(37, 99, 235, 0.08);
	border: 1px solid rgba(37, 99, 235, 0.2);
	border-radius: 999px;
	font-size: 13px;
	color: var(--ani-primary);
}

.ani-tag-remove {
	width: 20px;
	height: 20px;
	border: none;
	border-radius: 50%;
	background: rgba(37, 99, 235, 0.15);
	color: var(--ani-primary);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.ani-tag-remove:hover {
	background: #ef4444;
	color: #fff;
}

.ani-tag-input {
	border: none !important;
	box-shadow: none !important;
	padding: 8px 4px !important;
}

.ani-tag-input:focus {
	outline: none;
}

/* ── picker پیشنهادی ── */
.ani-suggested-picker {
	margin: 20px 0;
	border: 1px solid var(--ani-border);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.ani-suggested-picker[hidden] {
	display: none !important;
}

.ani-suggested-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--ani-border);
	background: var(--ani-bg);
}

.ani-suggested-head h4 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

.ani-suggested-sub {
	font-size: 12px;
	color: var(--ani-muted);
}

.ani-suggested-tabs {
	display: flex;
	gap: 8px;
	padding: 12px 16px;
	overflow-x: auto;
	border-bottom: 1px solid var(--ani-border);
	scrollbar-width: thin;
}

.ani-suggested-tab {
	flex-shrink: 0;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--ani-border);
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--ani-muted);
	cursor: pointer;
	transition: all 0.15s;
}

.ani-suggested-tab.is-active {
	background: var(--ani-primary);
	border-color: var(--ani-primary);
	color: #fff;
}

.ani-suggested-list {
	max-height: 280px;
	overflow-y: auto;
	padding: 8px;
}

.ani-suggested-empty {
	margin: 16px;
	font-size: 13px;
	color: var(--ani-muted);
	text-align: center;
}

.ani-suggested-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.12s;
}

.ani-suggested-row:hover {
	background: var(--ani-bg);
}

.ani-suggested-check {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	accent-color: var(--ani-primary);
	cursor: pointer;
}

.ani-suggested-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ani-primary), var(--ani-accent));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
}

.ani-suggested-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ani-suggested-info strong {
	font-size: 14px;
	font-weight: 700;
}

.ani-suggested-meta {
	font-size: 12px;
	color: var(--ani-muted);
}

.ani-suggested-handle {
	font-size: 13px;
	color: var(--ani-primary);
	font-weight: 600;
	flex-shrink: 0;
}

.ani-check-block {
	align-items: flex-start !important;
}

.ani-check-block small {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--ani-muted);
	line-height: 1.55;
	font-weight: 400;
}

.ani-field-auto {
	margin-top: 8px;
}

/* ── راهنما و accordion ── */
.ani-guide-block .ani-accordion {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ani-acc-item {
	border: 1px solid var(--ani-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.ani-acc-item summary {
	padding: 14px 16px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	user-select: none;
}

.ani-acc-item summary::-webkit-details-marker {
	display: none;
}

.ani-acc-item summary::after {
	content: '▼';
	font-size: 10px;
	color: var(--ani-muted);
	transition: transform 0.2s;
}

.ani-acc-item[open] summary::after {
	transform: rotate(180deg);
}

.ani-acc-body {
	padding: 0 16px 16px;
	font-size: 13px;
	line-height: 1.75;
	color: var(--ani-muted);
}

.ani-acc-body p {
	margin: 0 0 10px;
}

.ani-acc-scroll {
	max-height: 220px;
	overflow-y: auto;
}

.ani-guide-list {
	margin: 0;
	padding: 0 18px 0 0;
}

.ani-guide-list li {
	margin-bottom: 8px;
}

.ani-acc-link a {
	color: var(--ani-primary);
	font-weight: 600;
}
