/**
 * Mira Prep page — Elementor widget styles.
 *
 * Ported from src/pages/MiraPrep.tsx and its section components
 * (RfidScanSimulator, StakeholderTabs, RfidAnalyticsPreview).
 *
 * All selectors are scoped under an `ig-mp-` prefix to avoid collisions with
 * other pages' widgets. Brand tokens mirror assets/css/widgets.css and are
 * declared on the widget wrappers (NOT on :root) so each widget is
 * self-contained regardless of stylesheet load order.
 */

/* =========================================================================
   Brand tokens (mirrored from base widgets.css — not a :root redefine)
   ========================================================================= */
.ig-mp-hero,
.ig-mp-intro,
.ig-mp-scan,
.ig-mp-advantages,
.ig-mp-stakeholders,
.ig-mp-analytics,
.ig-mp-cta {
	--ig-navy: hsl(225 70% 17%);
	--ig-navy-light: hsl(225 50% 30%);
	--ig-gold: hsl(38 91% 55%);
	--ig-gold-light: hsl(38 91% 70%);
	--ig-teal: hsl(174 60% 42%);
	--ig-teal-light: hsl(174 50% 60%);
	--ig-background: var(--ig-surface, hsl(0 0% 100%));
	--ig-foreground: var(--ig-ink, hsl(225 70% 17%));
	--ig-muted: hsl(220 20% 96%);
	--ig-muted-foreground: hsl(220 10% 46%);
	--ig-border: hsl(220 20% 90%);
	--ig-card: hsl(0 0% 100%);
	--ig-radius: 0.75rem;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	box-sizing: border-box;
}

.ig-mp-hero *,
.ig-mp-intro *,
.ig-mp-scan *,
.ig-mp-advantages *,
.ig-mp-stakeholders *,
.ig-mp-analytics *,
.ig-mp-cta * {
	box-sizing: border-box;
}

/* Centered container — matches Tailwind container (max 1400px). */
.ig-mp-container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding-left: 2rem;
	padding-right: 2rem;
}

.ig-mp-container--6xl { max-width: 72rem; }
.ig-mp-container--3xl { max-width: 48rem; }

/* Shared pill buttons (reused across hero + cta). */
.ig-mp-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	border-radius: 9999px;
	padding: 0.75rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ig-mp-btn--gold {
	background: var(--ig-gold);
	color: var(--ig-navy);
}

.ig-mp-btn--gold:hover {
	background: var(--ig-gold-light);
	color: var(--ig-navy);
}

.ig-mp-btn--glass {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.ig-mp-btn--glass:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.ig-mp-btn--lg {
	padding: 0.75rem 2.5rem;
	font-size: 1.0625rem;
}

/* =========================================================================
   Hero
   ========================================================================= */
.ig-mp-hero {
	position: relative;
	min-height: 60vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--ig-surface, var(--ig-navy));
}

.ig-mp-hero__bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom right, var(--ig-navy), var(--ig-navy-light), var(--ig-navy));
}

.ig-mp-hero__inner {
	position: relative;
	z-index: 10;
	padding-top: 5rem;
	padding-bottom: 5rem;
	max-width: 72rem;
	display: grid;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.ig-mp-hero__inner { grid-template-columns: repeat(2, 1fr); }
	.ig-mp-hero__content { padding-left: 2rem; }
}

.ig-mp-hero__content {
	animation: ig-mp-fade-in-up 0.7s ease-out both;
}

.ig-mp-hero__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	margin-bottom: 1.5rem;
}

.ig-mp-hero__badge svg,
.ig-mp-hero__badge i {
	width: 1.75rem;
	height: 1.75rem;
	font-size: 1.75rem;
	color: var(--ig-gold);
}

.ig-mp-hero__heading {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
	margin: 0 0 1.5rem;
}

.ig-mp-hero__heading em {
	font-style: normal;
	color: var(--ig-gold);
}

.ig-mp-hero__sub {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.8);
	max-width: 36rem;
	line-height: 1.6;
	margin: 0 0 2rem;
}

.ig-mp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.ig-mp-hero__media {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.ig-mp-hero__img {
	position: relative;
	z-index: 2;
	height: 500px;
	max-width: 100%;
	object-fit: contain;
	filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.35));
	animation: ig-mp-fade-in-right 0.7s ease-out 0.1s both;
}

/* =========================================================================
   Intro — "It All Starts Here"
   ========================================================================= */
.ig-mp-intro {
	padding: 5rem 0;
	background: var(--ig-background);
	text-align: center;
}

.ig-mp-intro__heading {
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 700;
	color: var(--ig-navy);
	margin: 0 0 1.5rem;
}

.ig-mp-intro__body {
	color: var(--ig-muted-foreground);
	line-height: 1.7;
	font-size: 1.125rem;
	margin: 0;
}

/* =========================================================================
   Section headings (shared: scan / advantages / stakeholders)
   ========================================================================= */
.ig-mp-sectionhead {
	text-align: center;
	max-width: 42rem;
	margin: 0 auto 3.5rem;
}

.ig-mp-sectionhead__title {
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 700;
	color: var(--ig-navy);
	margin: 0 0 1rem;
}

.ig-mp-sectionhead__desc {
	color: var(--ig-muted-foreground);
	line-height: 1.6;
	margin: 0 auto;
}

/* =========================================================================
   RFID Scan Simulator
   ========================================================================= */
.ig-mp-scan {
	padding: 5rem 0;
	background: var(--ig-surface, hsl(220 20% 96% / 0.5));
}

.ig-mp-scan__grid {
	display: grid;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.ig-mp-scan__grid { grid-template-columns: repeat(2, 1fr); }
}

.ig-mp-scan__visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2.5rem;
	padding: 1.5rem 0;
}

.ig-mp-scan__tag {
	position: relative;
	width: 20rem;
	max-width: 100%;
	height: 13rem;
	border-radius: 1rem;
	border: 2px dashed var(--ig-border);
	background: var(--ig-card);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: border-color 0.3s ease;
}

.ig-mp-scan.is-scanning .ig-mp-scan__tag {
	animation: ig-mp-tag-pulse 0.8s ease-in-out infinite;
}

.ig-mp-scan.is-complete .ig-mp-scan__tag {
	border-color: var(--ig-teal);
}

.ig-mp-scan__chip {
	width: 2.5rem;
	height: 1.75rem;
	border-radius: 2px;
	border: 2px solid hsl(220 10% 46% / 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ig-mp-scan__chip span {
	width: 1rem;
	height: 0.75rem;
	border-radius: 2px;
	border: 1px solid hsl(220 10% 46% / 0.2);
}

.ig-mp-scan__tag-label {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	color: var(--ig-muted-foreground);
}

.ig-mp-scan__epc {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.625rem;
	color: hsl(220 10% 46% / 0.5);
	text-align: center;
}

/* Scan wave rings + radio icon, shown while scanning. */
.ig-mp-scan__wave {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
}

.ig-mp-scan.is-scanning .ig-mp-scan__wave { display: flex; }

.ig-mp-scan__ring {
	position: absolute;
	border: 2px solid hsl(174 60% 42% / 0.4);
	border-radius: 9999px;
	animation: ig-mp-scan-ring 1.5s ease-out infinite;
}

.ig-mp-scan__ring:nth-child(2) { animation-delay: 0.4s; }
.ig-mp-scan__ring:nth-child(3) { animation-delay: 0.8s; }

.ig-mp-scan__radio {
	color: var(--ig-teal);
	animation: ig-mp-pulse 1.2s ease-in-out infinite;
	position: relative;
	z-index: 2;
}

.ig-mp-scan__radio svg { width: 2rem; height: 2rem; display: block; }

/* Success check badge. */
.ig-mp-scan__check {
	position: absolute;
	top: -0.75rem;
	right: -0.75rem;
	width: 2rem;
	height: 2rem;
	border-radius: 9999px;
	background: var(--ig-teal);
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.ig-mp-scan.is-complete .ig-mp-scan__check {
	display: flex;
	animation: ig-mp-pop 0.3s ease-out both;
}

.ig-mp-scan__check svg { width: 1.25rem; height: 1.25rem; }

.ig-mp-scan__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: none;
	cursor: pointer;
	border-radius: 9999px;
	padding: 0.75rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	background: var(--ig-teal);
	color: #fff;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ig-mp-scan__btn:hover { background: hsl(174 60% 42% / 0.9); }
.ig-mp-scan__btn:disabled { opacity: 0.7; cursor: default; }

.ig-mp-scan.is-complete .ig-mp-scan__btn {
	background: var(--ig-muted);
	color: var(--ig-muted-foreground);
}

.ig-mp-scan__btn svg { width: 1.25rem; height: 1.25rem; }
.ig-mp-scan__btn-label--scanning,
.ig-mp-scan__btn-label--complete { display: none; }
.ig-mp-scan.is-scanning .ig-mp-scan__btn-label--idle,
.ig-mp-scan.is-complete .ig-mp-scan__btn-label--idle { display: none; }
.ig-mp-scan.is-scanning .ig-mp-scan__btn-label--scanning { display: inline-flex; align-items: center; gap: 0.5rem; }
.ig-mp-scan.is-complete .ig-mp-scan__btn-label--complete { display: inline; }

/* Data readout card. */
.ig-mp-scan__readout {
	background: var(--ig-card);
	border-radius: 1rem;
	border: 1px solid var(--ig-border);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.ig-mp-scan__readout-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: var(--ig-navy);
}

.ig-mp-scan__readout-head svg { width: 1.25rem; height: 1.25rem; color: var(--ig-gold); }

.ig-mp-scan__readout-title {
	color: #fff;
	font-weight: 600;
	font-size: 0.875rem;
}

.ig-mp-scan__readout-status {
	margin-left: auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
}

.ig-mp-scan__field {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.875rem 1.5rem;
	border-top: 1px solid var(--ig-border);
}

.ig-mp-scan__field:first-child { border-top: none; }

.ig-mp-scan__field-icon {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	background: var(--ig-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background-color 0.3s ease;
}

.ig-mp-scan__field-icon svg { width: 1rem; height: 1rem; color: hsl(220 10% 46% / 0.4); }

.ig-mp-scan__field-body { flex: 1; min-width: 0; }

.ig-mp-scan__field-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: hsl(220 10% 46% / 0.6);
	margin: 0;
}

.ig-mp-scan__field-value {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ig-navy);
	margin: 0.125rem 0 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ig-mp-scan__field-skeleton {
	height: 1rem;
	width: 8rem;
	background: var(--ig-muted);
	border-radius: 0.25rem;
	margin-top: 0.25rem;
}

/* Reveal state — populated fields after a successful scan. */
.ig-mp-scan .ig-mp-scan__field-value,
.ig-mp-scan .ig-mp-scan__field-label--active { display: none; }
.ig-mp-scan .ig-mp-scan__field-skeleton { display: block; }

.ig-mp-scan.is-complete .ig-mp-scan__field.is-revealed .ig-mp-scan__field-skeleton,
.ig-mp-scan.is-complete .ig-mp-scan__field.is-revealed .ig-mp-scan__field-label { display: none; }
.ig-mp-scan.is-complete .ig-mp-scan__field.is-revealed .ig-mp-scan__field-value,
.ig-mp-scan.is-complete .ig-mp-scan__field.is-revealed .ig-mp-scan__field-label--active { display: block; }
.ig-mp-scan.is-complete .ig-mp-scan__field.is-revealed {
	animation: ig-mp-fade-in-right 0.3s ease-out both;
}
.ig-mp-scan.is-complete .ig-mp-scan__field.is-revealed .ig-mp-scan__field-icon {
	background: hsl(174 60% 42% / 0.1);
}
.ig-mp-scan.is-complete .ig-mp-scan__field.is-revealed .ig-mp-scan__field-icon svg {
	color: var(--ig-teal);
}

/* =========================================================================
   Advantages — 3 cards
   ========================================================================= */
.ig-mp-advantages {
	padding: 5rem 0;
	background: var(--ig-surface, var(--ig-muted));
}

.ig-mp-advantages__grid {
	display: grid;
	gap: 2rem;
	max-width: 64rem;
	margin: 0 auto;
}

@media (min-width: 640px) {
	.ig-mp-advantages__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.ig-mp-advantages__grid { grid-template-columns: repeat(3, 1fr); }
}

.ig-mp-advantage {
	background: var(--ig-card);
	border-radius: 1rem;
	padding: 2rem;
	text-align: center;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.2s ease;
}

.ig-mp-advantage:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12); }

.ig-mp-advantage__icon {
	width: 3.5rem;
	height: 3.5rem;
	margin: 0 auto 1.25rem;
	border-radius: 0.75rem;
	background: hsl(38 91% 55% / 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ig-mp-advantage__icon svg,
.ig-mp-advantage__icon i {
	width: 1.75rem;
	height: 1.75rem;
	font-size: 1.75rem;
	color: var(--ig-gold);
}

.ig-mp-advantage__title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--ig-navy);
	margin: 0 0 0.75rem;
}

.ig-mp-advantage__desc {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--ig-muted-foreground);
	margin: 0;
}

/* =========================================================================
   Stakeholder Tabs
   ========================================================================= */
.ig-mp-stakeholders {
	padding: 5rem 0;
	background: var(--ig-background);
}

.ig-mp-tabs {
	display: grid;
	gap: 2rem;
}

@media (min-width: 768px) {
	.ig-mp-tabs { grid-template-columns: repeat(3, 1fr); }
}

.ig-mp-tabs__nav {
	display: flex;
	flex-direction: row;
	gap: 0.5rem;
}

@media (min-width: 768px) {
	.ig-mp-tabs__nav { flex-direction: column; gap: 0.75rem; }
}

.ig-mp-tabs__btn {
	flex: 1;
	text-align: left;
	border-radius: 0.75rem;
	border: 1px solid var(--ig-border);
	background: hsl(0 0% 100% / 0.5);
	padding: 1rem 1.25rem;
	cursor: pointer;
	font-family: inherit;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ig-mp-tabs__btn:hover {
	border-color: hsl(38 91% 55% / 0.4);
	background: var(--ig-card);
}

.ig-mp-tabs__btn.is-active {
	border-color: var(--ig-gold);
	background: var(--ig-card);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ig-mp-tabs__btn-inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.ig-mp-tabs__marker {
	width: 0.5rem;
	height: 2rem;
	border-radius: 9999px;
	background: var(--ig-muted);
	transition: background-color 0.2s ease;
}

.ig-mp-tabs__btn.is-active .ig-mp-tabs__marker { background: var(--ig-gold); }

.ig-mp-tabs__label {
	font-size: 1rem;
	font-weight: 700;
	color: var(--ig-muted-foreground);
	transition: color 0.2s ease;
}

.ig-mp-tabs__btn.is-active .ig-mp-tabs__label { color: var(--ig-navy); }

@media (min-width: 768px) {
	.ig-mp-tabs__content { grid-column: span 2; }
}

.ig-mp-tabs__panel-wrap {
	position: relative;
	min-height: 200px;
	border-radius: 1rem;
	border: 1px solid var(--ig-border);
	background: var(--ig-card);
	padding: 2rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
	.ig-mp-tabs__panel-wrap { padding: 2.5rem; }
}

.ig-mp-tabs__panel { display: none; }
.ig-mp-tabs__panel.is-active {
	display: block;
	animation: ig-mp-fade-in-up 0.4s ease-out both;
}

.ig-mp-tabs__panel-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ig-navy);
	margin: 0 0 1.25rem;
}

.ig-mp-tabs__panel-title .ig-mp-tabs__marker {
	background: var(--ig-gold);
}

.ig-mp-tabs__panel-body {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--ig-muted-foreground);
	margin: 0;
}

/* =========================================================================
   RFID Analytics Preview (Mira Intelligence dashboard)
   ========================================================================= */
.ig-mp-analytics {
	padding: 5rem 0;
	background: var(--ig-surface, var(--ig-muted));
}

.ig-mp-analytics__head {
	text-align: center;
	max-width: 48rem;
	margin: 0 auto 2.5rem;
}

.ig-mp-analytics__eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--ig-gold);
	margin-bottom: 0.75rem;
}

.ig-mp-analytics__heading {
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 700;
	color: var(--ig-navy);
	margin: 0 0 0.75rem;
}

.ig-mp-analytics__desc {
	color: var(--ig-muted-foreground);
	line-height: 1.7;
	margin: 0;
}

.ig-mp-analytics__panel {
	background: linear-gradient(to bottom right, var(--ig-card), hsl(220 20% 96% / 0.4));
	border-radius: 1.5rem;
	border: 1px solid var(--ig-border);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}

.ig-mp-analytics__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--ig-border);
	background: hsl(0 0% 100% / 0.6);
}

.ig-mp-analytics__brand { display: flex; align-items: center; gap: 0.75rem; }

.ig-mp-analytics__brand-icon {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	background: hsl(38 91% 55% / 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ig-mp-analytics__brand-icon svg { width: 1.25rem; height: 1.25rem; color: var(--ig-gold); }

.ig-mp-analytics__brand-title { font-size: 0.875rem; font-weight: 700; color: var(--ig-navy); }
.ig-mp-analytics__brand-sub { font-size: 0.75rem; color: var(--ig-muted-foreground); }

.ig-mp-analytics__live {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--ig-muted-foreground);
}

.ig-mp-analytics__live-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
	background: var(--ig-teal);
	animation: ig-mp-pulse 1.5s ease-in-out infinite;
}

.ig-mp-analytics__tiles {
	display: grid;
	gap: 1rem;
	padding: 1.5rem;
}

@media (min-width: 768px) {
	.ig-mp-analytics__tiles { grid-template-columns: repeat(3, 1fr); }
}

.ig-mp-tile {
	background: var(--ig-card);
	border-radius: 0.75rem;
	border: 1px solid var(--ig-border);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-height: 180px;
}

.ig-mp-tile__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ig-mp-tile__title { font-size: 0.75rem; font-weight: 600; color: var(--ig-navy); }

.ig-mp-tile__badge {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.625rem;
	padding: 0.125rem 0.375rem;
	border-radius: 0.25rem;
	background: var(--ig-muted);
	color: var(--ig-muted-foreground);
}

.ig-mp-tile__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Donut (conic-gradient approximation of the recharts pie). */
.ig-mp-donut__wrap { position: relative; height: 140px; display: flex; align-items: center; justify-content: center; }

.ig-mp-donut {
	width: 120px;
	height: 120px;
	border-radius: 9999px;
	background: conic-gradient(
		var(--ig-teal) 0 64%,
		var(--ig-gold) 64% 86%,
		var(--ig-navy-light) 86% 100%
	);
	-webkit-mask: radial-gradient(circle, transparent 42px, #000 43px);
	mask: radial-gradient(circle, transparent 42px, #000 43px);
}

.ig-mp-donut__center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.ig-mp-donut__center-label { font-size: 0.625rem; color: var(--ig-muted-foreground); }
.ig-mp-donut__center-value { font-size: 1.125rem; font-weight: 800; color: var(--ig-navy); }

.ig-mp-donut__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	justify-content: center;
	margin-top: 0.25rem;
}

.ig-mp-donut__legend-item { display: flex; align-items: center; gap: 0.375rem; }
.ig-mp-donut__swatch { width: 0.5rem; height: 0.5rem; border-radius: 9999px; }
.ig-mp-donut__legend-label { font-size: 0.625rem; color: var(--ig-muted-foreground); }

/* Horizontal bar list. */
.ig-mp-bars { display: flex; flex-direction: column; gap: 0.625rem; padding: 0.25rem 0; }
.ig-mp-bar__row { display: flex; align-items: center; justify-content: space-between; font-size: 0.6875rem; }
.ig-mp-bar__label { color: var(--ig-muted-foreground); padding-right: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-mp-bar__value { font-weight: 600; color: var(--ig-navy); }
.ig-mp-bar__track { height: 0.5rem; border-radius: 9999px; background: var(--ig-muted); overflow: hidden; margin-top: 0.25rem; }
.ig-mp-bar__fill { height: 100%; border-radius: 9999px; background: var(--ig-gold); }

/* Optimization queue list. */
.ig-mp-queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ig-mp-queue__item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.6875rem; }
.ig-mp-queue__icon {
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 0.375rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.ig-mp-queue__icon svg { width: 0.75rem; height: 0.75rem; }
.ig-mp-queue__icon--info { background: hsl(174 60% 42% / 0.1); color: var(--ig-teal); }
.ig-mp-queue__icon--warn { background: hsl(38 91% 55% / 0.15); color: var(--ig-navy); }
.ig-mp-queue__icon--good { background: hsl(174 60% 42% / 0.15); color: var(--ig-teal); }
.ig-mp-queue__label { color: var(--ig-muted-foreground); line-height: 1.4; }

.ig-mp-analytics__panel-foot {
	border-top: 1px solid var(--ig-border);
	padding: 0.75rem 1.5rem;
	background: hsl(220 20% 96% / 0.3);
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.75rem;
	color: var(--ig-muted-foreground);
	gap: 1rem;
}

.ig-mp-analytics__panel-foot span:last-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* =========================================================================
   CTA
   ========================================================================= */
.ig-mp-cta {
	padding: 5rem 0;
	background: var(--ig-surface, var(--ig-teal));
	color: var(--ig-ink, #fff);
	text-align: center;
}

.ig-mp-cta__heading {
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 700;
	color: #fff;
	margin: 0.75rem 0 1rem;
}

.ig-mp-cta__sub {
	color: rgba(255, 255, 255, 0.8);
	max-width: 36rem;
	margin: 0 auto 2rem;
	line-height: 1.6;
}

/* =========================================================================
   Keyframes
   ========================================================================= */
@keyframes ig-mp-fade-in-up {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes ig-mp-fade-in-right {
	from { opacity: 0; transform: translateX(20px); }
	to   { opacity: 1; transform: translateX(0); }
}

@keyframes ig-mp-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.4; }
}

@keyframes ig-mp-pop {
	from { opacity: 0; transform: scale(0); }
	to   { opacity: 1; transform: scale(1); }
}

@keyframes ig-mp-tag-pulse {
	0%, 100% { border-color: var(--ig-border); }
	50%      { border-color: var(--ig-teal); }
}

@keyframes ig-mp-scan-ring {
	0%   { width: 20px; height: 20px; opacity: 0.8; }
	100% { width: 160px; height: 160px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ig-mp-hero__content,
	.ig-mp-hero__img,
	.ig-mp-scan__ring,
	.ig-mp-scan__radio,
	.ig-mp-analytics__live-dot,
	.ig-mp-tabs__panel.is-active,
	.ig-mp-scan__field.is-revealed {
		animation: none !important;
	}
}
