/**
 * SEO Checker, credits and dashboard components (cards, panels, tables,
 * inputs, buttons, the domain report). The dashboard shell is in app.css.
 *
 * Part 1: report blocks (metric cards, rings, panels, tables).
 * Part 2: SEO Checker page (search, loading, recent domains).
 * Part 3: credits, forms and settings components.
 * Part 4: tool-style report (tabs, metric strip, charts, comparisons).
 */

/* ════════════ Part 1 — report blocks ════════════ */
	.zt-seo {
	--zsw2-ink:        #14233f;
	--zsw2-ink-soft:   #1b2b47;
	--zsw2-muted:      #66758f;
	--zsw2-line:       #dfe6ef;
	--zsw2-line-soft:  #edf1f6;
	--zsw2-surface:    #ffffff;
	--zsw2-ahrefs:     #2563eb;
	--zsw2-semrush:    #7c3aed;
	--zsw2-radius:     12px;
}

	.zsw2-card {
		background: var(--zsw2-surface);
		border: 1px solid var(--zsw2-line);
		border-radius: var(--zsw2-radius);
	}

	.zsw2-sr {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.zsw2-head__title a:hover {
		color: var(--zsw2-ahrefs);
	}

	.zsw2-met:hover {
		border-color: #d3dcea;
		transform: translateY(-1px);
	}

	.zsw2-panel {
		display: flex;
		flex-direction: column;
		padding: 14px 16px 16px;
		min-width: 0;
	}

	.zsw2-panel__head {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12px;
		margin-bottom: 14px;
	}

	.zsw2-panel__title {
		margin: 0;
		font-size: 14px;
		font-weight: 700;
		line-height: 1.25;
		color: var(--zsw2-tone, var(--zsw2-ink));
	}

	.zsw2-panel__sub {
		margin: 3px 0 0;
		font-size: 11px;
		font-weight: 500;
		line-height: 1.3;
		color: var(--zsw2-muted);
	}

	.zt-seo .zsw2-range select:focus {
		outline: none;
		border-color: var(--zsw2-tone, var(--zsw2-ahrefs));
	}

	.zsw2-empty {
		display: grid;
		place-items: center;
		gap: 8px;
		height: 190px;
		padding: 16px;
		border-radius: 10px;
		background: #fafbfe;
		color: var(--zsw2-muted);
		text-align: center;
		font-size: 12px;
		line-height: 1.5;
	}

	.zsw2-empty svg {
		width: 22px;
		height: 22px;
		opacity: 0.6;
	}

	.zt-seo table.zsw2-ctable {
		width: 100%;
		margin: 0;
		border: 0;
		border-collapse: collapse;
		table-layout: fixed;
		background: transparent;
		font-size: 12px;
	}

	.zt-seo .zsw2-ctable th,
	.zt-seo .zsw2-ctable td {
		padding: 8px 0;
		border: 0;
		border-bottom: 1px solid var(--zsw2-line-soft);
		background: transparent;
		vertical-align: middle;
		line-height: 1.3;
	}

	.zt-seo .zsw2-ctable th {
		font-size: 10.5px;
		font-weight: 600;
		color: var(--zsw2-muted);
		text-align: left;
		white-space: nowrap;
	}

	.zt-seo .zsw2-ctable tbody tr:last-child th,
	.zt-seo .zsw2-ctable tbody tr:last-child td {
		border-bottom: 0;
	}

	.zsw2-ctable__num {
		width: 74px;
		text-align: right;
		font-weight: 600;
		color: var(--zsw2-ink);
		white-space: nowrap;
	}

	.zt-seo .zsw2-ctable th.zsw2-ctable__num {
		text-align: right;
	}

	.zsw2-panel__link:hover {
		text-decoration: underline;
	}

	@media (max-width: 720px) {

		
		.zsw2-empty {
			height: 165px;
		}
	}

	@media (max-width: 420px) {

		.zsw2-panel {
			padding: 13px 13px 15px;
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.zsw2-met:hover {
			transform: none;
		}
	}
	/* ══════════════════════════════════════════════════════════════
	 * Fixes applied after seeing the block on the live page.
	 * These sit last in the \3c style> block so they win the cascade.
	 * ══════════════════════════════════════════════════════════════ */


	/* Six cards across a ~1345px column is ~215px each — the original
	   sizing was tuned for ~135px and left the cards looking half-empty.
	   Scale the contents up to fill the real width. */

/* =========================================================
   FINAL HEADER / META FIX
   Desktop = one row
   Laptop/tablet = clean second row
   Mobile = equal responsive columns
   ========================================================= */


/* ---------- Laptop / small desktop ---------- */


/* ---------- Mobile ---------- */

	/* Cards read as cards again now that the parent is not white. */
	.zsw2-card {
		box-shadow: 0 1px 2px rgba(19, 43, 87, 0.04);
	}

	.zsw2-met__logo {
		display: block;
		height: 14px;
		width: auto;
		max-width: 100%;
		/* Paths without their own fill inherit this — Semrush and Moz
		   both draw their wordmark in the inherited colour. */
		color: #132b57;
	}

	/* Links Allowed has no provider, so it gets a labelled icon instead
	   of a wordmark — same height, so all six headers line up. */

	/* Ring takes the provider's brand colour. A low score now reads as
	   a small orange arc, not a dead grey card. */
	/* Niche chips are links now — match the plain chips exactly, no underline. */

	.zsw-chip--link:hover,
	.zsw-chip--link:focus-visible {
		background: #2563eb;
		color: #fff;
		text-decoration: none;
	}
		/* ══════════════════════════════════════════════════════════════
	 * HEADER META v2 — Delivery / Language / Last Updated
	 * Redesigned as one soft segmented panel: uppercase icon labels,
	 * a premium animated "Instant" pill, a crisp retina flag chip and
	 * a pulsing LIVE badge that advertises the auto-refreshing scores.
	 * Placed last in this sheet so it wins over the earlier meta rules.
	 * ══════════════════════════════════════════════════════════════ */

	/* ---- Delivery: "Instant" pill v2 ------------------------------ */

	/* Shimmer sweep across the pill every few seconds. */

	/* Soft radiating pulse behind the bolt. */

	/* ---- Language: retina flag chip ------------------------------- */

	/* Glass highlight over the top half of the flag. */

	/* ---- Last Updated: LIVE badge --------------------------------- */

	/* ══════════════════════════════════════════════════════════════
	 * LIVE SCORES — count-up priming + change-bump animation
	 * ══════════════════════════════════════════════════════════════ */

	/* Numbers stay invisible (layout preserved) until their count-up
	   starts; the primer script under the grid adds this class and the
	   live script removes it. A safety timeout clears it regardless. */

	/* A live value just changed: quick scale + glow, then settle. */

	/* ---- Responsive tweaks for the new meta panel ----------------- */

	/* ---- Accessibility: honour reduced-motion --------------------- */

/* ════════════ Part 2 — SEO Checker page ════════════ */

.zt-seo {
	--zsw2-ink: #14233f;
	--zsw2-ink-soft: #1b2b47;
	--zsw2-muted: #66758f;
	--zsw2-line: #dfe6ef;
	--zsw2-line-soft: #edf1f6;
	--zsw2-surface: #ffffff;
	--zsw2-ahrefs: #2563eb;
	--zsw2-semrush: #7c3aed;
	--zsw2-radius: 12px;
	--zt-seo-blue: #2563eb;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 40px;
	color: var(--zsw2-ink);
	font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.zt-seo h1,
.zt-seo h2,
.zt-seo h3,
.zt-seo p {
	margin: 0;
}

/* Reset button padding from WordPress styles. */
.zt-seo button {
	padding: 0;
	font-family: inherit;
}

/* ---- Top row ---- */
.zt-seo-top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 20px;
	flex-wrap: wrap;
}

.zt-seo-title {
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--zsw2-ink);
	line-height: 1.2;
}

.zt-seo-lede {
	margin-top: 4px !important;
	color: var(--zsw2-muted);
	font-size: 14px;
}

.zt-seo-quota {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	border-radius: 999px;
	background: #eef2ff;
	border: 1px solid #dfe5ff;
	color: #3730a3;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.zt-seo-quota svg {
	width: 14px;
	height: 14px;
}

.zt-seo-quota.is-low {
	background: #fff7ed;
	border-color: #fed7aa;
	color: #9a3412;
}

/* ---- Search ---- */

.zt-seo-field {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 14px;
	border: 1.5px solid var(--zsw2-line);
	border-radius: 12px;
	background: #fbfcfe;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.zt-seo-field:focus-within {
	border-color: var(--zt-seo-blue);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.zt-seo-field__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: #8494ab;
}

.zt-seo-field input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 10px 4px !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--zsw2-ink);
}

.zt-seo-field input::placeholder {
	color: #9aa6b8;
	font-weight: 500;
}

.zt-seo .zt-seo-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 11px 18px;
	border: 0;
	border-radius: 9px;
	background: var(--zt-seo-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.zt-seo .zt-seo-btn svg {
	width: 16px;
	height: 16px;
}

.zt-seo .zt-seo-btn:hover {
	background: #1d4ed8;
}

.zt-seo .zt-seo-btn:focus-visible {
	outline: 2px solid #1d4ed8;
	outline-offset: 2px;
}

.zt-seo .zt-seo-btn:disabled {
	opacity: 0.7;
	cursor: progress;
}

.zt-seo-error {
	margin: 9px 2px 0 !important;
	color: #b91c1c;
	font-size: 13px;
	font-weight: 600;
}

.zt-seo-recent {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.zt-seo-recent__label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7c8aa5;
	margin-right: 2px;
}

.zt-seo .zt-seo-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding: 5px 12px;
	border: 1px solid var(--zsw2-line);
	border-radius: 999px;
	background: #f8fafc;
	color: var(--zsw2-ink);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.zt-seo .zt-seo-chip b {
	font-size: 13px;
	font-weight: 700;
}

.zt-seo .zt-seo-chip small {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--zsw2-muted);
	font-variant-numeric: tabular-nums;
}

.zt-seo .zt-seo-chip:hover,
.zt-seo .zt-seo-chip:focus-visible {
	border-color: var(--zt-seo-blue);
	background: #fff;
	outline: none;
}

/* ---- Loading ---- */
.zt-seo-loading {
	padding: 20px 22px;
	max-width: 620px;
}

.zt-seo-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.zt-seo-steps li {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 22px;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--zsw2-line-soft);
	border-radius: 10px;
	background: #fbfcfe;
}


.zt-seo-tool__logo {
	display: grid;
	place-items: center;
	height: 32px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--zsw2-line-soft);
}

.zt-seo-steps__state {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 800;
	color: #fff;
}

.zt-seo-steps .is-wait .zt-seo-steps__state {
	border: 2px solid #dbe3ee;
	border-top-color: var(--zt-seo-blue);
	animation: zt-seo-spin 0.8s linear infinite;
}

.zt-seo-steps .is-done .zt-seo-steps__state {
	background: #0ea86f;
}

.zt-seo-steps .is-done .zt-seo-steps__state::before {
	content: "";
	width: 9px;
	height: 5px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translateY(-1px) rotate(-45deg);
}

.zt-seo-steps .is-fail .zt-seo-steps__state {
	background: #f59e0b;
}

.zt-seo-steps .is-fail .zt-seo-steps__state::before {
	content: "!";
}

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

/* ---- Intro (before the first search) ---- */
.zt-seo-intro {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.zt-seo-tool__logo {
	width: 64px;
	height: 36px;
}

.zt-seo-tool__logo .zsw2-met__logo {
	height: 13px;
	max-width: 52px;
}

.zt-seo.is-busy .zt-seo-intro {
	opacity: 0.5;
}

/* ---- Report additions ---- */

/* 3 × 2 metric grid inside the dashboard column. */

@media (max-width: 720px) {
	.zt-seo-intro {
		grid-template-columns: minmax(0, 1fr);
	}
	.zt-seo .zt-seo-btn span {
		display: none;
	}
}

.zt-seo-scroll {
	position: relative; /* keeps the absolutely-positioned .zsw2-sr labels inside the scroller */
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
	.zt-seo-steps .is-wait .zt-seo-steps__state {
		animation-duration: 2.4s;
	}
}

/* ════════════ Part 3 — credits + merchant settings ════════════ */

.zt-seo-wallet {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.zt-seo .zt-seo-buy {
	display: inline-flex;
	align-items: center;
	padding: 7px 13px;
	border-radius: 999px;
	border: 1px solid var(--zsw2-line);
	background: #fff;
	color: var(--zt-seo-blue);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.zt-seo .zt-seo-buy:hover {
	border-color: var(--zt-seo-blue);
	color: #1d4ed8;
}

.zt-seo-hint {
	margin: 9px 2px 0 !important;
	font-size: 12.5px;
	color: var(--zsw2-muted);
}

.zt-seo .zt-seo-error__link {
	color: var(--zt-seo-blue);
	font-weight: 700;
	text-decoration: underline;
}

/* ---- Credits page ---- */
.zt-credits-sum {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.zt-credits-stat {
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.zt-credits-stat--credits {
	background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 70%);
	border-color: #d9e3ff;
}

.zt-credits-stat__k {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7c8aa5;
}

.zt-credits-stat__v {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--zsw2-ink);
	font-variant-numeric: tabular-nums;
}

.zt-credits-stat__s {
	font-size: 13px;
	color: var(--zsw2-muted);
}

.zt-credits-stat__s a {
	color: var(--zt-seo-blue);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.zt-credits-packs {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.zt-credits-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.zt-credits-h2 {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.zt-credits-head__s {
	font-size: 13px;
	color: var(--zsw2-muted);
}

.zt-credits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.zt-pack {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 18px 18px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zt-pack:hover {
	border-color: #c9d6f2;
	box-shadow: 0 10px 24px -16px rgba(19, 43, 87, 0.35);
}

.zt-pack.is-best {
	border-color: var(--zt-seo-blue);
	box-shadow: 0 0 0 1px var(--zt-seo-blue) inset;
}

.zt-pack__badge {
	position: absolute;
	top: -10px;
	left: 16px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--zt-seo-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.zt-pack__credits {
	font-size: 13px;
	font-weight: 600;
	color: var(--zsw2-muted);
}

.zt-pack__credits b {
	font-size: 26px;
	font-weight: 800;
	color: var(--zsw2-ink);
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.zt-pack__price {
	font-size: 20px;
	font-weight: 800;
	color: var(--zsw2-ink);
}

.zt-pack__per {
	font-size: 12px;
	color: var(--zsw2-muted);
	font-variant-numeric: tabular-nums;
}

.zt-seo .zt-pack__btn {
	justify-content: center;
	margin-top: 8px;
	width: 100%;
}

.zt-seo .zt-pack__btn.is-confirm {
	background: #0f9f6e;
}

.zt-pack__msg {
	font-size: 12.5px;
	font-weight: 600;
	color: #0b7f57;
}

.zt-pack__msg.is-error {
	color: #b45309;
}

.zt-pack__msg a {
	color: var(--zt-seo-blue);
	white-space: nowrap;
}

.zt-credits-rules {
	margin: 0;
	padding: 0 0 0 18px;
	display: grid;
	gap: 4px;
	font-size: 13px;
	color: var(--zsw2-muted);
}

.zt-credits-empty {
	padding: 16px 18px;
	color: var(--zsw2-muted);
}

.zt-ledger td {
	vertical-align: top;
}

.zt-ledger__date {
	white-space: nowrap;
	color: var(--zsw2-muted);
	font-size: 12.5px;
}

.zt-ledger__note small {
	display: block;
	color: var(--zsw2-muted);
	font-size: 12px;
}

.zt-ledger__note a {
	color: var(--zsw2-ink);
	font-weight: 700;
	text-decoration: none;
}

.zt-ledger__delta {
	font-weight: 800;
}

.zt-ledger__delta.is-plus {
	color: #0b7f57;
}

.zt-ledger__delta.is-minus {
	color: var(--zsw2-ink);
}

.zt-kind {
	display: inline-flex;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
	background: #f1f5f9;
	color: #475569;
}

.zt-kind--purchase { background: #e8f0ff; color: #1d4ed8; }
.zt-kind--bonus    { background: #f3e8ff; color: #7e22ce; }
.zt-kind--refund   { background: #dcfce7; color: #15803d; }
.zt-kind--manual   { background: #fff7ed; color: #c2410c; }

.zt-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	font-size: 13px;
	color: var(--zsw2-muted);
}

.zt-pager a {
	color: var(--zt-seo-blue);
	font-weight: 700;
	text-decoration: none;
}

/* ---- Merchant settings ---- */
.zt-flash {
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
}

.zt-flash--ok {
	background: #ecfdf5;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.zt-flash--err {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
}

.zt-admin-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.zt-admin-h3 {
	font-size: 14px;
	font-weight: 800;
	padding-top: 12px;
	border-top: 1px solid var(--zsw2-line-soft);
}

.zt-api-list {
	display: grid;
	gap: 10px;
}

.zt-api {
	display: grid;
	grid-template-columns: minmax(200px, 1.1fr) minmax(160px, 1fr) minmax(260px, 1.4fr);
	align-items: center;
	gap: 10px 16px;
	padding: 12px 14px;
	border: 1px solid var(--zsw2-line-soft);
	border-radius: 10px;
	background: #fbfcfe;
}

.zt-api__id {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.zt-api__id .zt-seo-tool__logo {
	flex: 0 0 auto;
}

.zt-api__id b,
.zt-api__id small {
	display: block;
}

.zt-api__id small,
.zt-api__state small {
	font-size: 12px;
	color: var(--zsw2-muted);
}

.zt-api__state {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.zt-api__state code {
	font-size: 11.5px;
	color: #475569;
	background: #f1f5f9;
	padding: 1px 6px;
	border-radius: 5px;
}

.zt-api__edit {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	min-width: 0;
}

.zt-api__edit .zt-input {
	flex: 1 1 180px;
}

.zt-api__result {
	grid-column: 1 / -1;
	margin: 0 !important;
	padding: 8px 12px;
	border-radius: 8px;
	background: #ecfdf5;
	color: #166534;
	font-size: 12.5px;
	font-weight: 600;
}

.zt-api__result.is-error {
	background: #fff7ed;
	color: #9a3412;
}

.zt-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.zt-state::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.zt-state--on   { background: #dcfce7; color: #15803d; }
.zt-state--off  { background: #f1f5f9; color: #64748b; }
.zt-state--warn { background: #fff7ed; color: #c2410c; }

.zt-seo .zt-input {
	width: 100%;
	min-width: 0;
	padding: 9px 12px !important;
	border: 1px solid var(--zsw2-line) !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: var(--zsw2-ink);
	font: inherit;
	font-size: 14px;
	box-shadow: none !important;
	height: auto !important;
}

.zt-seo .zt-input:focus {
	outline: none;
	border-color: var(--zt-seo-blue) !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.zt-seo .zt-btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 14px;
	border: 1px solid var(--zsw2-line);
	border-radius: 9px;
	background: #fff;
	color: var(--zsw2-ink);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.zt-seo .zt-btn-ghost:hover:not(:disabled) {
	border-color: var(--zt-seo-blue);
	color: var(--zt-seo-blue);
}

.zt-seo .zt-btn-ghost:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.zt-seo .zt-btn-icon {
	width: 34px;
	height: 34px;
	border: 1px solid var(--zsw2-line);
	border-radius: 9px;
	background: #fff;
	color: #94a3b8;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.zt-seo .zt-btn-icon:hover {
	color: #dc2626;
	border-color: #fecaca;
}

.zt-fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 16px;
}

.zt-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0;
	min-width: 0;
}

.zt-field > span {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--zsw2-ink);
}

.zt-field small {
	font-size: 12px;
	color: var(--zsw2-muted);
}

.zt-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	cursor: pointer;
	font-size: 13px;
}

.zt-check input {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	accent-color: var(--zt-seo-blue);
}

.zt-check b,
.zt-check small {
	display: block;
}

.zt-check small {
	color: var(--zsw2-muted);
	font-size: 12px;
}

.zt-check--danger {
	align-items: center;
	color: #b91c1c;
	font-weight: 600;
	font-size: 12.5px;
}

.zt-check--danger input {
	margin-top: 0;
	accent-color: #dc2626;
}

.zt-packs-edit {
	display: grid;
	gap: 8px;
	max-width: 620px;
}

.zt-packs-edit__head,
.zt-packs-edit__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 90px 34px;
	gap: 8px;
	align-items: center;
}

.zt-packs-edit__head span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #7c8aa5;
}

.zt-packs-edit__per {
	font-size: 12.5px;
	color: var(--zsw2-muted);
	font-variant-numeric: tabular-nums;
}

.zt-packs-edit .zt-btn-ghost {
	justify-self: start;
}

.zt-packs-edit__note {
	font-size: 12px;
	color: var(--zsw2-muted);
}

.zt-admin-actions {
	display: flex;
	align-items: center;
	gap: 8px 18px;
	flex-wrap: wrap;
	padding-top: 4px;
}

.zt-admin-actions a {
	font-size: 13px;
	font-weight: 600;
	color: var(--zt-seo-blue);
	text-decoration: none;
}

.zt-inline-form {
	display: flex;
	align-items: flex-end;
	gap: 8px 10px;
	flex-wrap: wrap;
}

.zt-inline-form > .zt-input {
	flex: 1 1 260px;
	max-width: 420px;
}

.zt-field--sm {
	flex: 0 1 180px;
}

.zt-field--grow {
	flex: 1 1 260px;
}

@media (max-width: 1200px) {
	.zt-api {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
	.zt-api__edit {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.zt-credits-sum,
	.zt-fields,
	.zt-api {
		grid-template-columns: minmax(0, 1fr);
	}
	.zt-packs-edit__head,
	.zt-packs-edit__row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px;
	}
	.zt-packs-edit__per,
	.zt-packs-edit__head span:nth-child(3) {
		display: none;
	}
}

/* Dashboard heading colours win over dashboard.css element rules. */
.zt-seo .zt-credits-h2,
.zt-seo .zt-admin-h3,
.zt-seo .zt-seo-title {
	color: var(--zsw2-ink);
}

/* ════════════ Part 4 — SEO Checker tool view (Ahrefs / Semrush / Moz style) ════════════
   Dense, white cards on the dashboard grey, 8–10px radius, one metric strip,
   provider colours used only for identity (tags, lines, bars):
   Moz #0ea5e9 · Ahrefs #f97316 · Semrush #7c3aed. */

.zt-tool {
	--t-ink: #0f172a;
	--t-ink-2: #334155;
	--t-muted: #64748b;
	--t-faint: #94a3b8;
	--t-line: #e5e7eb;
	--t-line-soft: #f1f5f9;
	--t-blue: #2563eb;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	gap: 12px;
	color: var(--t-ink);
}

.zt-tool .zt-card,
.zt-toolbar {
	background: #ffffff;
	border: 1px solid var(--t-line);
	border-radius: 10px;
	padding: 16px 18px;
	min-width: 0;
}

/* ---- tool bar ---- */
.zt-toolbar {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.zt-toolbar__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	flex-wrap: wrap;
}

.zt-tool .zt-toolbar__title {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--t-ink);
}

.zt-toolbar__title span {
	margin-left: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--t-faint);
	letter-spacing: 0;
}

.zt-tool .zt-seo-field {
	border-radius: 8px;
	background: #ffffff;
	padding: 4px 4px 4px 12px;
}

.zt-tool .zt-seo-field input {
	font-size: 15px !important;
	font-weight: 500;
	padding: 9px 4px !important;
}

.zt-tool .zt-seo-btn {
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 14px;
}

.zt-toolbar__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
	flex-wrap: wrap;
}

.zt-tool .zt-seo-recent {
	margin: 0;
	gap: 4px 6px;
}

.zt-tool .zt-seo-chip {
	padding: 3px 9px;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	background: var(--t-line-soft);
	border-color: transparent;
	color: var(--t-ink-2);
}

.zt-tool .zt-seo-chip:hover,
.zt-tool .zt-seo-chip:focus-visible {
	background: #e8efff;
	border-color: transparent;
	color: var(--t-blue);
}

.zt-tool .zt-seo-hint {
	margin: 0 !important;
	font-size: 12px;
	color: var(--t-faint);
}

.zt-tool .zt-seo-quota,
.zt-tool .zt-seo-buy {
	padding: 6px 11px;
	font-size: 12.5px;
	border-radius: 8px;
}

/* ---- loading ---- */
.zt-loading {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.zt-loading__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--t-muted);
}

.zt-loading__head b {
	color: var(--t-ink);
}

.zt-tool .zt-loading .zt-seo-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.zt-tool .zt-loading .zt-seo-steps li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	grid-template-columns: none;
	padding: 4px 10px 4px 6px;
	border-radius: 999px;
	font-size: 12.5px;
	background: #fff;
}

.zt-tool .zt-loading .zt-seo-steps__state {
	width: 16px;
	height: 16px;
	font-size: 10px;
}

.zt-skel {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--t-line);
	border: 1px solid var(--t-line);
	border-radius: 10px;
	overflow: hidden;
}

.zt-skel i {
	height: 88px;
	background: linear-gradient(90deg, #f8fafc 0%, #eef2f7 40%, #f8fafc 80%) 0 0 / 200% 100%;
	animation: zt-skel 1.2s linear infinite;
}

.zt-skel--chart {
	grid-template-columns: 1fr;
}

.zt-skel--chart i {
	height: 220px;
}

@keyframes zt-skel {
	to { background-position: -200% 0; }
}

/* ---- intro ---- */
.zt-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 18px 32px;
	align-items: center;
}

.zt-tool .zt-intro__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--t-ink);
	margin-bottom: 4px !important;
}

.zt-intro__copy p {
	color: var(--t-muted);
	font-size: 14px;
	max-width: 52ch;
}

.zt-intro__tools {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.zt-intro__tools li {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
	border: 1px solid var(--t-line-soft);
	border-radius: 8px;
	font-size: 13px;
	color: var(--t-ink-2);
}

.zt-intro__logo .zsw2-met__logo {
	height: 14px;
	max-width: 80px;
}

/* ---- report ---- */
.zt-rep {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.zt-note {
	margin: 0 !important;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid #fed7aa;
	background: #fff7ed;
	color: #9a3412;
	font-size: 13.5px;
	font-weight: 600;
}

.zt-note small {
	display: block;
	font-weight: 500;
	opacity: 0.8;
}

.zt-rep__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	flex-wrap: wrap;
	padding: 2px 2px 0;
}

.zt-rep__id {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.zt-fav {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #eef2ff;
	color: #4338ca;
	font-size: 18px;
	font-weight: 800;
}

.zt-rep__titles {
	min-width: 0;
}

.zt-tool .zt-rep__domain {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.zt-rep__domain a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--t-ink) !important;
	text-decoration: none;
}

.zt-rep__domain a:hover {
	color: var(--t-blue) !important;
}

.zt-rep__domain svg {
	width: 15px;
	height: 15px;
	color: var(--t-faint);
}

.zt-rep__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 0;
	margin-top: 3px !important;
	font-size: 13px;
	color: var(--t-muted);
}

.zt-rep__meta span + span::before {
	content: "·";
	margin: 0 8px;
	color: var(--t-faint);
}

.zt-rep__links {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.zt-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid var(--t-line);
	border-radius: 8px;
	background: #fff;
	color: var(--t-ink-2) !important;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}

.zt-pill:hover {
	border-color: var(--t-ink-2);
}

.zt-pill i,
.zt-tab i,
.zt-legend__item i {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.zt-pill svg {
	width: 12px;
	height: 12px;
	color: var(--t-faint);
}

/* tabs */
.zt-tabs {
	display: flex;
	gap: 2px;
	border-bottom: 1px solid var(--t-line);
	overflow-x: auto;
	scrollbar-width: none;
}

.zt-tool .zt-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: -1px;
	padding: 10px 14px !important;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--t-muted);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.zt-tool .zt-tab:hover {
	color: var(--t-ink);
}

.zt-tool .zt-tab[aria-selected="true"] {
	color: var(--t-ink);
	border-bottom-color: var(--t-blue);
}

.zt-panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

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

/* metric strip */
.zt-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--t-line);
	border: 1px solid var(--t-line);
	border-radius: 10px;
	overflow: hidden;
}

.zt-strip--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.zt-strip--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (min-width: 1700px) {
	.zt-strip { grid-template-columns: repeat(8, minmax(0, 1fr)); }
	.zt-strip--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.zt-strip--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.zt-tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 14px 16px;
	background: #fff;
}

.zt-tile__k {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--t-muted);
}

.zt-src {
	display: inline-flex;
	padding: 1px 6px;
	border-radius: 4px;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.01em;
}

.zt-src--moz     { background: #e0f2fe; color: #0369a1; }
.zt-src--ahrefs  { background: #ffedd5; color: #c2410c; }
.zt-src--semrush { background: #ede9fe; color: #6d28d9; }

.zt-tile__v {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 36px;
}

.zt-tile__v b {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--t-ink);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.zt-donut {
	flex: 0 0 auto;
}

.zt-spark {
	flex: 0 1 96px;
	width: 96px;
	max-width: 50%;
	height: 28px;
}

.zt-tile__s {
	font-size: 12px;
	font-weight: 600;
	color: var(--t-muted);
}

.zt-delta.is-up   { color: #059669; }
.zt-delta.is-down { color: #dc2626; }

/* cards */
.zt-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.zt-tool .zt-card__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--t-ink);
}

.zt-card__hint {
	font-size: 12px;
	color: var(--t-faint);
}

.zt-card__tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.zt-legend {
	display: flex;
	gap: 6px;
}

.zt-tool .zt-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px !important;
	border: 1px solid var(--t-line);
	border-radius: 999px;
	background: #fff;
	color: var(--t-ink-2);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}

.zt-tool .zt-legend__item[aria-pressed="false"] {
	opacity: 0.45;
}

.zt-seg {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 8px;
	background: var(--t-line-soft);
}

.zt-tool .zt-seg button {
	padding: 4px 10px !important;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--t-muted);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.zt-tool .zt-seg button[aria-pressed="true"] {
	background: #fff;
	color: var(--t-ink);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.zt-chart {
	position: relative;
	height: 260px;
}

.zt-grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.zt-grid2--wide {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.zt-tool .zt-empty {
	margin: 0 !important;
	padding: 28px 16px;
	border-radius: 8px;
	background: #f8fafc;
	color: var(--t-muted);
	font-size: 13.5px;
	text-align: center;
}

/* tables */
.zt-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.zt-table th {
	padding: 0 8px 8px;
	border-bottom: 1px solid var(--t-line);
	text-align: left;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--t-faint);
	white-space: nowrap;
}

.zt-table td {
	padding: 9px 8px;
	border-bottom: 1px solid var(--t-line-soft);
	color: var(--t-ink-2);
	vertical-align: middle;
}

.zt-table tbody tr:last-child td {
	border-bottom: 0;
}

.zt-table tbody tr:hover td {
	background: #fafbfc;
}

.zt-table th:first-child,
.zt-table td:first-child {
	padding-left: 0;
}

.zt-table th:last-child,
.zt-table td:last-child {
	padding-right: 0;
}

.zt-num {
	text-align: right !important;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.zt-table td.zt-num {
	color: var(--t-ink);
	font-weight: 600;
}

.zt-share {
	width: 34%;
	white-space: nowrap;
}

.zt-share b {
	display: inline-block;
	min-width: 46px;
	text-align: right;
	color: var(--t-ink);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.zt-bar {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	width: calc(100% - 54px);
	max-width: 140px;
	height: 6px;
	margin-right: 6px;
	border-radius: 99px;
	background: #eef2f7;
	overflow: hidden;
}

.zt-bar i {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: 99px;
}

.zt-country {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--t-ink);
	font-weight: 500;
}

.zt-country img {
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.zt-country__blank {
	display: inline-block;
	width: 18px;
	height: 13px;
	border-radius: 2px;
	background: #e5e7eb;
}

.zt-tool .zt-muted,
.zt-table td.zt-muted {
	color: var(--t-faint);
	font-weight: 500;
}

.zt-table--cmp {
	min-width: 460px;
}

.zt-table--cmp td:first-child {
	color: var(--t-ink);
	font-weight: 600;
}

.zt-scroll {
	position: relative;
	overflow-x: auto;
}

/* authority bars */
.zt-auth {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.zt-auth li {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) 34px;
	align-items: center;
	gap: 10px;
}

.zt-auth__k {
	font-size: 13px;
	font-weight: 600;
	color: var(--t-ink-2);
}

.zt-auth__track {
	position: relative;
	height: 10px;
	border-radius: 99px;
	background: #eef2f7;
	overflow: hidden;
}

.zt-auth__track i {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: 99px;
}

.zt-auth b {
	text-align: right;
	font-size: 15px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.zt-auth__scale {
	display: flex;
	justify-content: space-between;
	margin: 8px 44px 0 102px;
	font-size: 11px;
	color: var(--t-faint);
}

.zt-tool .zt-open {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--t-blue) !important;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}

.zt-open svg {
	width: 13px;
	height: 13px;
}

/* ---- responsive ---- */
@media (max-width: 1100px) {
	.zt-grid2,
	.zt-grid2--wide,
	.zt-intro {
		grid-template-columns: minmax(0, 1fr);
	}
	.zt-strip--5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.zt-strip,
	.zt-strip--5,
	.zt-strip--6,
	.zt-skel {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.zt-tile {
		padding: 12px;
	}
	.zt-tile__v b {
		font-size: 21px;
	}
	.zt-spark {
		width: 64px;
	}
	.zt-donut {
		width: 30px;
		height: 30px;
	}
	.zt-chart {
		height: 220px;
	}
	.zt-tool .zt-card,
	.zt-toolbar {
		padding: 14px;
	}
	.zt-tool .zt-rep__domain {
		font-size: 19px;
	}
	.zt-tool .zt-seo-btn span {
		display: inline;
	}
	.zt-table--cmp {
		min-width: 0;
		font-size: 12.5px;
	}
	.zt-table--cmp th,
	.zt-table--cmp td {
		padding-left: 4px;
		padding-right: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zt-skel i {
		animation: none;
	}
}
