/*
 * Affiliate Tracking portal styles: the brand design tokens scoped to
 * .afftrk-root (DESIGN_GUIDELINES D9 — never leak globals).
 * Paper surface, lime accent, Inter Tight stack, tabular money.
 */
.afftrk-root {
	--afftrk-paper: #FBFAF6;
	--afftrk-ink: #1f2937;
	--afftrk-muted: #57534e;
	--afftrk-line: #e4e1d8;
	--afftrk-lime: #7FB069;
	--afftrk-lime-deep: #3f6212;
	--afftrk-blue: #3A7CA5;
	--afftrk-red: #b91c1c;
	--afftrk-amber: #b45309;
	font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--afftrk-ink);
	background: var(--afftrk-paper);
	border: 1px solid var(--afftrk-line);
	border-radius: 14px;
	padding: 22px 24px;
	max-width: 720px;
	box-sizing: border-box;
}
.afftrk-root * { box-sizing: border-box; }
.afftrk-h { font-size: 18px; font-weight: 650; margin: 0 0 12px; letter-spacing: -0.01em; }
.afftrk-num, .afftrk-amount { font-variant-numeric: tabular-nums; }
.afftrk-amount { font-size: 22px; font-weight: 700; }
.afftrk-note { color: var(--afftrk-muted); font-size: 14px; }
.afftrk-proof { font-size: 13px; color: var(--afftrk-muted); margin-top: 14px; }
.afftrk-proof--ok::before { content: "\2713 "; color: var(--afftrk-lime-deep); font-weight: 700; }
.afftrk-proof--bad::before { content: "\2717 "; color: var(--afftrk-red); font-weight: 700; }
.afftrk-badge {
	display: inline-block; padding: 2px 9px; border-radius: 999px;
	font-size: 12px; font-weight: 600; line-height: 1.6;
}
.afftrk-badge--pending  { background: #fef3c7; color: var(--afftrk-amber); }
.afftrk-badge--approved { background: #dcfce7; color: var(--afftrk-lime-deep); }
.afftrk-badge--paid, .afftrk-badge--active { background: #dbeafe; color: #1d4ed8; }
.afftrk-badge--frozen, .afftrk-badge--rejected { background: #fee2e2; color: var(--afftrk-red); }
.afftrk-btn {
	display: inline-block; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--afftrk-lime); color: #fff; font-weight: 600;
	font-size: 14px; padding: 9px 18px;
}
.afftrk-btn:hover { background: #6fa35a; }
.afftrk-copy {
	width: 100%; min-height: 64px; border: 1px solid var(--afftrk-line);
	border-radius: 8px; padding: 8px 10px; font: 12px/1.5 ui-monospace, monospace;
	background: #fff; color: var(--afftrk-ink); resize: vertical;
}
.afftrk-root input[type="text"], .afftrk-root input[type="email"] {
	width: 100%; padding: 9px 11px; border: 1px solid var(--afftrk-line);
	border-radius: 8px; font-size: 14px; background: #fff;
}
.afftrk-root label { font-size: 13.5px; color: var(--afftrk-muted); }
.afftrk-creatives, .afftrk-chartcard, .afftrk-payoutreq { margin-top: 18px; }
.afftrk-creative { border: 1px solid var(--afftrk-line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.afftrk-creative h3 { margin: 0 0 8px; font-size: 15px; }
[dir="rtl"] .afftrk-root { text-align: right; }
