/**
 * Show Certificates Anywhere for LearnDash — modern WordPress admin UI.
 *
 * @package ShowCertificatesAnywhereForLearnDash
 */

@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/outfit/Outfit-Variable.woff2") format("woff2");
}

.slca-settings-wrap {
	--slca-admin-blue: #2271b1;
	--slca-admin-blue-dark: #135e96;
	--slca-admin-ink: #1d2327;
	--slca-admin-muted: #646970;
	--slca-admin-border: #dcdcde;
	--slca-admin-border-soft: #e7e8ea;
	--slca-admin-surface: #fff;
	--slca-admin-surface-soft: #f6f7f7;
	--slca-admin-success: #18794e;
	--slca-admin-danger: #b32d2e;
	max-width: 1440px;
	margin-top: 20px;
	color: var(--slca-admin-ink);
}

.slca-settings-wrap,
.slca-settings-wrap * {
	box-sizing: border-box;
}

/* Never let any child push the screen wider than the viewport. */
.slca-settings-wrap {
	width: auto;
	min-width: 0;
	max-width: min(1440px, 100%);
}

.slca-admin-layout > *,
.slca-settings-sidebar > *,
.slca-page-header > * {
	min-width: 0;
}

/* Global admin notices belong to WordPress, not inside this focused screen. */
body.toplevel_page_slca-certificate-customizer #wpbody-content > .notice,
body.toplevel_page_slca-certificate-customizer #wpbody-content > .updated,
body.toplevel_page_slca-certificate-customizer #wpbody-content > .error,
body.toplevel_page_slca-certificate-customizer #wpbody-content > .update-nag {
	display: none !important;
}

.slca-settings-wrap > .slca-settings-feedback {
	display: block !important;
	margin: 0 0 14px;
}

.slca-page-header .notice,
.slca-page-header .updated,
.slca-page-header .error,
.slca-page-header .update-nag {
	display: none !important;
}

/* ─── Branded page header ───────────────────────────────────── */

.slca-page-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	overflow: hidden;
	isolation: isolate;
	padding: 28px 30px;
	margin-bottom: 14px;
	color: #0b2a5b;
	background:
		radial-gradient(circle at 78% 10%, rgba(29, 111, 224, 0.10), transparent 45%),
		linear-gradient(135deg, #ffffff 0%, #f4f8ff 55%, #eaf2ff 100%);
	border: 1px solid #dbe7f7;
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(11, 42, 91, 0.04), 0 18px 40px -32px rgba(29, 111, 224, 0.55);
	font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Fine grid pattern that fades out toward the title. */
.slca-page-header::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%231d6fe0' fill-opacity='0.13'/%3E%3C/svg%3E");
	-webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
	mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
}

.slca-header-identity {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}

.slca-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	color: #fff;
	background: linear-gradient(145deg, #3b8cff 0%, #1559c4 100%);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 16px;
	box-shadow: 0 14px 28px -14px rgba(29, 111, 224, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.slca-brand-mark svg {
	display: block;
}

.slca-header-copy {
	min-width: 0;
}

.slca-page-header h1 {
	padding: 0;
	margin: 0;
	color: #0b2a5b;
	font-family: inherit;
	font-size: 26px;
	font-weight: 650;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.slca-page-header p {
	margin: 6px 0 0;
	color: #5b6b82;
	font-size: 14px;
	line-height: 1.5;
}

.slca-maker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	color: #5b6b82;
	font-size: 12.5px;
	text-decoration: none;
	border-radius: 999px;
	transition: color 0.15s ease;
}

.slca-maker strong {
	color: #0b2a5b;
	font-weight: 600;
}

.slca-maker:hover,
.slca-maker:focus {
	color: #1d6fe0;
}

.slca-maker:focus-visible,
.slca-header-links a:focus-visible {
	outline: 2px solid #1d6fe0;
	outline-offset: 3px;
	box-shadow: none;
}

.slca-maker-logo {
	display: inline-flex;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	box-shadow: 0 2px 6px -2px rgba(11, 42, 91, 0.4);
}

.slca-maker-logo svg {
	display: block;
}

.slca-maker .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
	opacity: 0.6;
}

.slca-header-aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
	flex-shrink: 1;
}

.slca-header-meta,
.slca-header-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
}

.slca-version-pill,
.slca-connection-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 30px;
	padding: 5px 12px;
	color: #24406b;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid #dbe7f7;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.slca-version-pill {
	color: #6b7a90;
	font-variant-numeric: tabular-nums;
}

.slca-status-dot {
	width: 8px;
	height: 8px;
	background: currentColor;
	border-radius: 50%;
}

.slca-connection-pill--ok {
	color: #0f8a5f;
}

.slca-connection-pill--ok .slca-status-dot {
	box-shadow: 0 0 0 0 rgba(15, 138, 95, 0.6);
	animation: slca-pulse 2.4s ease-out infinite;
}

.slca-connection-pill--error {
	color: #c2410c;
}

@keyframes slca-pulse {
	0% { box-shadow: 0 0 0 0 rgba(15, 138, 95, 0.55); }
	70% { box-shadow: 0 0 0 7px rgba(15, 138, 95, 0); }
	100% { box-shadow: 0 0 0 0 rgba(15, 138, 95, 0); }
}

.slca-header-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 6px 13px;
	color: #0b2a5b;
	background: #fff;
	border: 1px solid #dbe7f7;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.slca-header-links a:hover,
.slca-header-links a:focus {
	color: #1d6fe0;
	background: #fff;
	border-color: #9cc2f5;
}

.slca-header-links .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	opacity: 0.8;
}

.slca-stars {
	color: #f5b400;
	font-size: 11px;
	letter-spacing: 1px;
}

/* ─── Section navigation ────────────────────────────────────── */

.slca-section-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	position: sticky;
	top: 32px;
	z-index: 20;
	padding: 7px;
	margin-bottom: 18px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--slca-admin-border);
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	backdrop-filter: blur(8px);
}

.slca-section-nav a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 36px;
	padding: 7px 13px;
	color: #3c434a;
	font-weight: 600;
	text-decoration: none;
	border-radius: 7px;
}

.slca-section-nav a:hover {
	color: var(--slca-admin-blue-dark);
	background: #f0f6fc;
}

.slca-section-nav a.is-active {
	color: #1559c4;
	background: #eaf2fe;
	box-shadow: inset 0 0 0 1px #c9dcf6;
}

.slca-section-nav a.is-active .dashicons {
	color: #1d6fe0;
}

[data-slca-panel][hidden] {
	display: none !important;
}

.slca-section-nav a:focus-visible {
	outline: 2px solid var(--slca-admin-blue);
	outline-offset: 1px;
	box-shadow: none;
}

.slca-section-nav a.slca-section-nav__pro {
	color: #0b2a5b;
	background: linear-gradient(135deg, #fff8e1 0%, #fff1c2 100%);
	border: 1px solid #f7dc8a;
}

.slca-section-nav a.slca-section-nav__pro:hover {
	color: #0b2a5b;
	background: #ffefb3;
}

.slca-crown {
	display: block;
	flex: 0 0 16px;
}

.slca-section-nav .dashicons {
	width: 17px;
	height: 17px;
	font-size: 17px;
}

/* ─── Main page layout ──────────────────────────────────────── */

.slca-admin-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
	gap: 20px;
	align-items: start;
}

.slca-settings-main {
	min-width: 0;
}

.slca-settings-card,
.slca-side-card,
.slca-save-bar {
	background: var(--slca-admin-surface);
	border: 1px solid var(--slca-admin-border);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
}

.slca-settings-card {
	margin-bottom: 18px;
	scroll-margin-top: 92px;
}

.slca-settings-card:target {
	border-color: #9ec5e5;
	box-shadow: 0 0 0 1px #c6ddf0, 0 5px 18px rgba(34, 113, 177, 0.08);
}

.slca-card-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 20px 22px;
	border-bottom: 1px solid var(--slca-admin-border-soft);
}

.slca-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	color: var(--slca-admin-blue-dark);
	background: #f0f6fc;
	border-radius: 9px;
}

.slca-card-icon .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

.slca-card-header h2,
.slca-side-card h2 {
	padding: 0;
	margin: 0;
	color: var(--slca-admin-ink);
	font-size: 16px;
	font-weight: 650;
	line-height: 1.35;
}

.slca-card-header p {
	margin: 3px 0 0;
	color: var(--slca-admin-muted);
	font-size: 13px;
	line-height: 1.45;
}

.slca-card-body {
	padding: 22px;
}

.slca-card-body > .slca-setting-field + .slca-setting-field,
.slca-card-body--advanced > .slca-setting-field + .slca-setting-field {
	padding-top: 22px;
	margin-top: 22px;
	border-top: 1px solid var(--slca-admin-border-soft);
}

/* ─── Settings controls ─────────────────────────────────────── */

.slca-setting-field {
	min-width: 0;
	padding: 0;
	margin: 0;
	border: 0;
}

.slca-setting-label {
	display: block;
	padding: 0;
	margin: 0 0 8px;
	color: #2c3338;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.4;
}

.slca-setting-description {
	max-width: 620px;
	margin: 8px 0 0;
	color: var(--slca-admin-muted);
	font-size: 12px;
	font-style: normal;
	line-height: 1.5;
}

.slca-setting-field select,
.slca-text-field {
	width: 100%;
	max-width: 340px;
	min-height: 40px;
	margin: 0;
	color: #2c3338;
	background-color: #fff;
	border-color: #b8bcc1;
	border-radius: 6px;
}

.slca-setting-field select:hover,
.slca-text-field:hover {
	border-color: #8c8f94;
}

.slca-setting-field select:focus,
.slca-text-field:focus {
	border-color: var(--slca-admin-blue);
	box-shadow: 0 0 0 1px var(--slca-admin-blue);
}

.slca-control-group + .slca-control-group {
	padding-top: 24px;
	margin-top: 26px;
	border-top: 1px solid var(--slca-admin-border-soft);
}

.slca-group-heading {
	margin-bottom: 18px;
}

.slca-group-heading h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.4;
}

.slca-group-heading p {
	margin: 3px 0 0;
	color: var(--slca-admin-muted);
	font-size: 12px;
	line-height: 1.45;
}

.slca-field-grid {
	display: grid;
	gap: 22px 24px;
}

.slca-field-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slca-field-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ─── WordPress color picker ────────────────────────────────── */

.slca-setting-field .wp-picker-container {
	display: block;
	width: 100%;
}

.slca-setting-field .wp-color-result.button {
	display: inline-flex;
	align-items: center;
	width: 100%;
	max-width: 180px;
	min-height: 40px;
	padding: 0 0 0 38px;
	margin: 0;
	background: #fff;
	border-color: #b8bcc1;
	border-radius: 6px;
	box-shadow: none;
}

.rtl .slca-setting-field .wp-color-result.button {
	padding: 0 38px 0 0;
}

.slca-setting-field .wp-color-result.button:hover,
.slca-setting-field .wp-color-result.button:focus {
	border-color: var(--slca-admin-blue);
}

.slca-setting-field .wp-color-result-text {
	flex: 1;
	padding: 0 10px;
	text-align: start;
	border: 0;
}

.slca-setting-field .wp-color-result::after {
	border: 0;
}

.slca-setting-field .wp-picker-open + .wp-picker-input-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
}

.slca-setting-field .wp-picker-input-wrap label {
	margin: 0;
}

/* ─── Layout cards ──────────────────────────────────────────── */

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

.slca-template-option,
.slca-icon-option {
	display: block;
	position: relative;
	cursor: pointer;
}

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

.slca-template-card {
	display: block;
	height: 100%;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--slca-admin-border);
	border-radius: 9px;
	transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.slca-template-option:hover .slca-template-card {
	border-color: #8c8f94;
}

.slca-choice-input:checked + .slca-template-card {
	background: #f6faff;
	border-color: var(--slca-admin-blue);
	box-shadow: inset 0 0 0 1px var(--slca-admin-blue);
}

.slca-choice-input:focus-visible + .slca-template-card,
.slca-choice-input:focus-visible + .slca-icon-option-body {
	outline: 2px solid var(--slca-admin-blue);
	outline-offset: 2px;
}

.slca-template-preview {
	display: block;
	height: 66px;
	padding: 9px;
	margin-bottom: 9px;
	background: var(--slca-admin-surface-soft);
	border: 1px solid #eceef0;
	border-radius: 6px;
}

.slca-template-preview i {
	display: block;
	background: #fff;
	border: 1px solid #d8dadd;
	border-radius: 3px;
}

.slca-template-preview--list i {
	height: 12px;
	margin-bottom: 5px;
}

.slca-template-preview--grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 5px;
}

.slca-template-preview--grid i {
	height: 19px;
}

.slca-template-preview--portal {
	background: #172033;
	border-color: #172033;
}

.slca-template-preview--portal i {
	height: 12px;
	margin-bottom: 5px;
	background: #26334b;
	border-color: #43516c;
}

.slca-template-copy strong,
.slca-template-copy small {
	display: block;
}

.slca-template-copy strong {
	color: #2c3338;
	font-size: 13px;
	line-height: 1.35;
}

.slca-template-copy small {
	margin-top: 2px;
	color: var(--slca-admin-muted);
	font-size: 11px;
	line-height: 1.35;
}

/* ─── Icon cards ────────────────────────────────────────────── */

.slca-icon-selector {
	display: grid;
	grid-template-columns: repeat(7, minmax(64px, 1fr));
	gap: 10px;
}

.slca-icon-option-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 82px;
	padding: 10px 8px;
	color: #3c434a;
	background: #fff;
	border: 1px solid var(--slca-admin-border);
	border-radius: 9px;
	transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.slca-icon-option:hover .slca-icon-option-body {
	border-color: #8c8f94;
}

.slca-choice-input:checked + .slca-icon-option-body {
	color: var(--slca-admin-blue-dark);
	background: #f6faff;
	border-color: var(--slca-admin-blue);
	box-shadow: inset 0 0 0 1px var(--slca-admin-blue);
}

.slca-icon-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
}

.slca-icon-preview svg {
	display: block;
	width: 25px;
	height: 25px;
}

.slca-no-icon {
	font-size: 24px;
	line-height: 1;
}

.slca-icon-label {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
}

/* ─── Accessible switches ───────────────────────────────────── */

.slca-setting-field--toggle {
	padding: 18px;
	background: #fbfcfd;
	border: 1px solid var(--slca-admin-border-soft);
	border-radius: 9px;
}

.slca-card-body--advanced > .slca-setting-field--toggle + .slca-setting-field--toggle {
	padding-top: 18px;
	margin-top: 14px;
	border-top: 1px solid var(--slca-admin-border-soft);
}

.slca-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	position: relative;
	cursor: pointer;
}

.slca-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.slca-switch-control {
	display: inline-block;
	position: relative;
	flex: 0 0 40px;
	width: 40px;
	height: 22px;
	background: #8c8f94;
	border-radius: 999px;
	transition: background 140ms ease;
}

.slca-switch-control::after {
	content: '';
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: transform 140ms ease;
}

.slca-switch input:checked + .slca-switch-control {
	background: var(--slca-admin-blue);
}

.slca-switch input:checked + .slca-switch-control::after {
	transform: translateX(18px);
}

.rtl .slca-switch input:checked + .slca-switch-control::after {
	transform: translateX(-18px);
}

.slca-switch input:focus-visible + .slca-switch-control {
	outline: 2px solid var(--slca-admin-blue);
	outline-offset: 2px;
}

.slca-switch-text {
	color: #2c3338;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

/* ─── Save action ───────────────────────────────────────────── */

.slca-save-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 16px;
	margin-top: 2px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
}

.slca-save-bar strong,
.slca-save-bar span {
	display: block;
}

.slca-save-bar strong {
	font-size: 13px;
}

.slca-save-bar span {
	margin-top: 2px;
	color: var(--slca-admin-muted);
	font-size: 12px;
}

.slca-save-button.button {
	min-width: 126px;
	min-height: 40px;
	padding: 6px 18px;
	font-weight: 600;
}

/* ─── Live preview ──────────────────────────────────────────── */

.slca-preview-panel {
	position: sticky;
	top: 100px;
	min-width: 0;
}

.slca-preview-card {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--slca-admin-border);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035), 0 18px 40px -32px rgba(15, 23, 42, 0.55);
}

.slca-preview-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--slca-admin-border-soft);
}

.slca-preview-head h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	color: var(--slca-admin-ink);
	font-size: 15px;
	font-weight: 650;
	line-height: 1.3;
}

.slca-preview-head p {
	margin: 2px 0 0;
	color: var(--slca-admin-muted);
	font-size: 12px;
}

.slca-live-dot {
	width: 8px;
	height: 8px;
	background: #10b981;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.slca-device-toggle {
	display: inline-flex;
	flex-shrink: 0;
	padding: 3px;
	background: #f1f3f6;
	border-radius: 9px;
}

.slca-device-toggle button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 30px;
	padding: 0;
	color: #646970;
	background: transparent;
	border: 0;
	border-radius: 7px;
	cursor: pointer;
}

.slca-device-toggle button.is-active {
	color: var(--slca-admin-ink);
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
}

.slca-device-toggle button:focus-visible {
	outline: 2px solid var(--slca-admin-blue);
	outline-offset: 1px;
}

.slca-device-toggle .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

/* The stage imitates a theme page; the frame renders at real width and is scaled to fit. */
.slca-preview-stage {
	position: relative;
	overflow: hidden;
	min-height: 260px;
	max-height: calc(100vh - 250px);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 16px;
	background-color: #f6f7f9;
	background-image: radial-gradient(#d9dee6 1px, transparent 1px);
	background-size: 16px 16px;
	transition: height 0.18s ease;
}

.slca-preview-frame {
	width: 620px;
	transform-origin: 0 0;
	opacity: 0;
	color: #1f2937;
	font-size: 15px;
	line-height: 1.55;
	transition: opacity 0.2s ease;
}

.slca-preview-stage.is-ready .slca-preview-frame {
	opacity: 1;
}

.slca-preview-frame .slca-certificates {
	margin-bottom: 0;
	box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.6);
}

.slca-preview-frame .slca-cert-item {
	margin: 0;
}

.slca-preview-frame .slca-cert-heading h3 {
	padding: 0;
	font-size: 1.3em;
	line-height: 1.3;
}

.slca-preview-frame .slca-cert-link:focus {
	box-shadow: none;
}

.slca-preview-frame .slca-certificates,
.slca-preview-frame .slca-certificates * {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Mirror the front-end small-screen rules for the mobile preview. */
.slca-preview-frame.is-mobile .slca-certificates {
	padding: 18px;
}

.slca-preview-frame.is-mobile .slca-cert-header {
	align-items: flex-start;
	flex-direction: column;
}

.slca-preview-frame.is-mobile .slca-template-list .slca-cert-link,
.slca-preview-frame.is-mobile .slca-template-portal .slca-cert-link {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
}

.slca-preview-frame.is-mobile .slca-template-list .slca-cert-badge,
.slca-preview-frame.is-mobile .slca-template-list .slca-cert-action,
.slca-preview-frame.is-mobile .slca-template-portal .slca-cert-badge,
.slca-preview-frame.is-mobile .slca-template-portal .slca-cert-action {
	grid-column: 2;
	justify-self: start;
}

.slca-preview-frame.is-mobile .slca-cert-title {
	white-space: normal;
}

.slca-preview-frame.is-mobile .slca-template-grid .slca-cert-list {
	grid-template-columns: 1fr;
}

.slca-preview-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 16px;
	color: var(--slca-admin-muted);
	border-top: 1px solid var(--slca-admin-border-soft);
	font-size: 12px;
}

.slca-preview-dirty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px;
	color: #92400e;
	background: #fef3c7;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
}

.slca-preview-dirty[hidden] {
	display: none;
}

.slca-preview-dirty::before {
	content: '';
	width: 6px;
	height: 6px;
	background: #f59e0b;
	border-radius: 50%;
}

/* ─── Sidebar cards ─────────────────────────────────────────── */

.slca-settings-sidebar {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 18px;
	position: static;
	margin-bottom: 18px;
}

.slca-side-card {
	padding: 18px;
}

.slca-side-card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.slca-side-card-header > .dashicons {
	width: 18px;
	height: 18px;
	color: var(--slca-admin-blue-dark);
	font-size: 18px;
}

.slca-side-card p {
	margin: 7px 0;
	color: #50575e;
	font-size: 12px;
	line-height: 1.55;
}

code.slca-shortcode-display {
	display: block;
	padding: 9px 10px;
	margin: 8px 0;
	overflow-wrap: anywhere;
	color: #2c3338;
	background: var(--slca-admin-surface-soft);
	border: 1px solid #e1e3e5;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.35;
}

.slca-block-tip {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px;
	margin: 12px 0;
	background: #f0f6fc;
	border-radius: 7px;
}

.slca-block-tip > .dashicons {
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
	margin-top: 1px;
	color: var(--slca-admin-blue-dark);
	font-size: 17px;
}

.slca-block-tip p {
	margin: 0;
	color: #3c434a;
}

.slca-details {
	margin-top: 12px;
	border-top: 1px solid var(--slca-admin-border-soft);
}

.slca-details summary {
	padding: 12px 2px 2px;
	color: var(--slca-admin-blue-dark);
	font-size: 12px;
	font-weight: 650;
	cursor: pointer;
}

.slca-details summary:focus-visible {
	outline: 2px solid var(--slca-admin-blue);
	outline-offset: 2px;
}

.slca-details-body {
	padding-top: 10px;
}

.slca-details-body h3 {
	margin: 14px 0 5px;
	font-size: 12px;
}

.slca-shortcode-table {
	width: 100%;
	border-collapse: collapse;
}

.slca-shortcode-table th,
.slca-shortcode-table td {
	padding: 7px 4px;
	font-size: 11px;
	line-height: 1.4;
	text-align: start;
	vertical-align: top;
	border-bottom: 1px solid #eceef0;
}

.slca-shortcode-table th {
	width: 76px;
	font-weight: 600;
}

.slca-pro-card {
	position: relative;
	overflow: hidden;
	padding: 22px;
	color: #0b2a5b;
	background:
		radial-gradient(circle at 100% 0%, rgba(29, 111, 224, 0.12), transparent 45%),
		linear-gradient(160deg, #ffffff 0%, #f2f7ff 100%);
	border-color: #dbe7f7;
	font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.slca-pro-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 9px 4px 7px;
	margin-bottom: 10px;
	color: #fff;
	background: linear-gradient(180deg, #2a7bea, #1559c4);
	border-radius: 7px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.slca-pro-badge .slca-crown {
	width: 13px;
	height: 13px;
}

.slca-pro-card h2 {
	color: #0b2a5b;
	font-family: inherit;
	font-size: 17px;
}

.slca-side-card.slca-pro-card p {
	color: #4a5b75;
	font-size: 13px;
}

.slca-pro-benefits {
	display: grid;
	gap: 7px;
	margin: 12px 0 16px;
	padding: 0;
	list-style: none;
}

.slca-pro-benefits li {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 0;
	color: #24406b;
	font-size: 13px;
	line-height: 1.4;
}

.slca-pro-benefits .dashicons {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	color: #1d6fe0;
	font-size: 16px;
}

.slca-pro-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 16px;
	color: #fff !important;
	background: linear-gradient(180deg, #2a7bea 0%, #1d6fe0 100%);
	border-radius: 10px;
	box-shadow: 0 8px 18px -10px rgba(29, 111, 224, 0.75);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.15s ease, transform 0.15s ease;
}

.slca-pro-button:hover,
.slca-pro-button:focus {
	background: #1559c4;
	transform: translateY(-1px);
}

.slca-pro-button:focus-visible {
	outline: 2px solid #1d6fe0;
	outline-offset: 2px;
	box-shadow: none;
}

.slca-pro-button .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.slca-status-list {
	margin: 4px 0 12px;
	padding: 0;
	list-style: none;
}

.slca-status-row {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px solid var(--slca-admin-border-soft);
	font-size: 12.5px;
}

.slca-status-row:last-child {
	border-bottom: 0;
}

.slca-status-icon {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	background: #12b76a;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.15);
}

.slca-status-row--warn .slca-status-icon {
	background: #f79009;
	box-shadow: 0 0 0 3px rgba(247, 144, 9, 0.16);
}

.slca-status-row--off .slca-status-icon {
	background: #c4cad4;
	box-shadow: 0 0 0 3px rgba(196, 202, 212, 0.25);
}

.slca-status-label {
	flex: 1;
	color: #50575e;
}

.slca-status-value {
	color: var(--slca-admin-ink);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: end;
}

.slca-status-row--warn .slca-status-value {
	color: #b54708;
}

.slca-status-support {
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}

.slca-status-support:hover {
	text-decoration: underline;
}

/* ─── Responsive behavior ───────────────────────────────────── */

@media (max-width: 1180px) {
	.slca-admin-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.slca-preview-panel {
		position: static;
		order: -1;
	}

	.slca-preview-stage {
		max-height: none;
	}
}

@media (max-width: 1280px) {
	.slca-page-header {
		flex-wrap: wrap;
	}

	.slca-header-aside {
		align-items: flex-start;
	}

	.slca-header-meta,
	.slca-header-links {
		justify-content: flex-start;
	}
}

@media (max-width: 900px) {
	.slca-field-grid--three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.slca-icon-selector {
		grid-template-columns: repeat(4, minmax(64px, 1fr));
	}
}

@media (max-width: 782px) {
	.slca-settings-wrap {
		margin-inline-end: 10px;
	}

	.slca-page-header {
		align-items: flex-start;
		padding: 20px;
	}

	.slca-page-header,
	.slca-header-meta,
	.slca-header-links {
		justify-content: flex-start;
	}

	.slca-header-aside {
		align-items: flex-start;
	}

	.slca-page-header {
		flex-direction: column;
	}

	.slca-section-nav {
		top: 46px;
		overflow-x: auto;
	}

	.slca-section-nav a {
		flex: 1 0 auto;
		justify-content: center;
	}

	.slca-field-grid--two,
	.slca-field-grid--three,
	.slca-settings-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.slca-save-bar {
		position: static;
	}
}

@media (max-width: 600px) {
	.slca-header-identity {
		align-items: flex-start;
	}

	.slca-brand-mark {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
		border-radius: 13px;
	}

	.slca-preview-head {
		align-items: flex-start;
	}

	.slca-page-header h1 {
		font-size: 21px;
	}

	.slca-template-selector {
		grid-template-columns: minmax(0, 1fr);
	}

	.slca-icon-selector {
		grid-template-columns: repeat(4, minmax(60px, 1fr));
	}

	.slca-card-header,
	.slca-card-body {
		padding: 17px;
	}

	.slca-save-bar {
		align-items: stretch;
		flex-direction: column;
	}

	.slca-save-button.button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.slca-settings-wrap *,
	.slca-settings-wrap *::before,
	.slca-settings-wrap *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation: none !important;
	}
}

/* ─── Pro page ──────────────────────────────────────────────── */

.slca-section-nav a.slca-section-nav__pro.is-active {
	background: #ffe9a3;
	border-color: #f5c84c;
}

.slca-pro-page {
	--slca-pro-navy: #0b2a5b;
	--slca-pro-text: #4a5b75;
	--slca-pro-blue: #1d6fe0;
	--slca-pro-line: #dbe7f7;
	font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.slca-pro-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
	align-items: center;
	gap: 40px;
	overflow: hidden;
	padding: 44px 48px;
	margin-bottom: 18px;
	background:
		radial-gradient(circle at 80% 30%, rgba(29, 111, 224, 0.14), transparent 50%),
		linear-gradient(135deg, #ffffff 0%, #f4f8ff 60%, #eaf2ff 100%);
	border: 1px solid var(--slca-pro-line);
	border-radius: 20px;
}

.slca-pro-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%231d6fe0' fill-opacity='0.12'/%3E%3C/svg%3E");
	-webkit-mask-image: linear-gradient(100deg, transparent 40%, #000 90%);
	mask-image: linear-gradient(100deg, transparent 40%, #000 90%);
	pointer-events: none;
}

.slca-pro-hero > * {
	position: relative;
}

.slca-pro-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px 5px 9px;
	color: #7a5200;
	background: #fff6d9;
	border: 1px solid #f7dc8a;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.slca-pro-hero h2 {
	max-width: 560px;
	margin: 16px 0 10px;
	padding: 0;
	color: var(--slca-pro-navy);
	font-family: inherit;
	font-size: 36px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.12;
}

.slca-pro-hero p {
	max-width: 520px;
	margin: 0;
	color: var(--slca-pro-text);
	font-size: 16px;
	line-height: 1.6;
}

.slca-pro-ticks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 26px;
	padding: 0;
	list-style: none;
}

.slca-pro-ticks li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 12px;
	color: #24406b;
	background: #fff;
	border: 1px solid var(--slca-pro-line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
}

.slca-pro-ticks li::before {
	content: '✓';
	color: var(--slca-pro-blue);
	font-weight: 700;
}

.slca-pro-hero__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

.slca-pro-button--lg {
	min-height: 48px;
	padding: 10px 22px;
	font-size: 15px;
}

.slca-pro-button--block {
	justify-content: center;
	width: 100%;
	margin-top: 14px;
}

.slca-pro-from {
	color: var(--slca-pro-text);
	font-size: 14px;
	font-weight: 500;
}

.slca-pro-active {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	color: #067647;
	background: #ecfdf3;
	border: 1px solid #abefc6;
	border-radius: 10px;
	font-weight: 600;
}

/* Certificate illustration */
.slca-pro-visual {
	position: relative;
	padding: 26px 30px 34px;
}

.slca-cert-mock {
	position: relative;
	padding: 30px 30px 24px;
	background: #fff;
	border: 1px solid var(--slca-pro-line);
	border-radius: 16px;
	box-shadow: 0 30px 60px -36px rgba(11, 42, 91, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.6);
	transform: rotate(-2deg);
	text-align: center;
}

.slca-cert-mock::after {
	content: '';
	position: absolute;
	inset: 9px;
	border: 1.5px solid #c9dcf6;
	border-radius: 10px;
	pointer-events: none;
}

.slca-cert-mock__ribbon {
	width: 46px;
	height: 46px;
	margin: 0 auto 12px;
	background: radial-gradient(circle at 35% 35%, #ffe08a, #f5b400 60%, #d99a00);
	border-radius: 50%;
	box-shadow: 0 6px 14px -6px rgba(217, 154, 0, 0.8);
}

.slca-cert-mock__kicker {
	display: block;
	color: #6b7a90;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.slca-cert-mock__name {
	display: block;
	margin: 8px 0 2px;
	color: var(--slca-pro-navy);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.slca-cert-mock__course {
	display: block;
	color: var(--slca-pro-blue);
	font-size: 14px;
	font-weight: 600;
}

.slca-cert-mock__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-top: 22px;
	text-align: start;
}

.slca-cert-mock__sign i {
	display: block;
	width: 110px;
	height: 18px;
	border-bottom: 1.5px solid #b6c6dd;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='18'%3E%3Cpath d='M4 14c10-12 16 2 24-6s8 8 18 0 14 6 22-2 12 4 18 0' fill='none' stroke='%230b2a5b' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}

.slca-cert-mock small {
	display: block;
	margin-top: 4px;
	color: #8a97ab;
	font-size: 10.5px;
}

.slca-cert-mock__qr {
	text-align: center;
}

.slca-qr {
	display: block;
	width: 64px;
	height: 64px;
	padding: 4px;
	background: #fff;
	border: 1px solid var(--slca-pro-line);
	border-radius: 6px;
}

.slca-float {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(219, 231, 247, 0.9);
	border-radius: 12px;
	box-shadow: 0 16px 30px -18px rgba(11, 42, 91, 0.5);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--slca-pro-navy);
	font-size: 13px;
	font-weight: 600;
}

.slca-float--verified {
	top: 6px;
	inset-inline-end: 0;
}

.slca-float--verified .dashicons {
	color: #12b76a;
}

.slca-float--share {
	bottom: 6px;
	inset-inline-start: 4px;
	gap: 6px;
	padding: 8px 10px;
}

.slca-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: #fff;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
}

.slca-share--in { background: #0a66c2; }
.slca-share--fb { background: #1877f2; }
.slca-share--x { background: #111623; }

/* Sections */
.slca-pro-section {
	margin-bottom: 18px;
	padding: 30px 32px;
	background: #fff;
	border: 1px solid var(--slca-pro-line);
	border-radius: 18px;
}

.slca-pro-section__title {
	margin: 0 0 18px;
	padding: 0;
	color: var(--slca-pro-navy);
	font-family: inherit;
	font-size: 20px;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.slca-pro-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: slca-step;
}

.slca-pro-steps li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 20px;
	background: #f7faff;
	border: 1px solid var(--slca-pro-line);
	border-radius: 14px;
	counter-increment: slca-step;
}

.slca-pro-steps li::after {
	content: counter(slca-step);
	position: absolute;
	top: 18px;
	inset-inline-end: 18px;
	color: #c3d5f0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

.slca-pro-steps strong {
	margin-top: 10px;
	color: var(--slca-pro-navy);
	font-size: 15px;
}

.slca-pro-steps span:not(.slca-pro-step__icon):not(.dashicons) {
	color: var(--slca-pro-text);
	font-size: 13.5px;
}

.slca-pro-step__icon,
.slca-pro-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: #fff;
	background: linear-gradient(145deg, #3b8cff, #1559c4);
	border-radius: 12px;
	box-shadow: 0 10px 20px -12px rgba(29, 111, 224, 0.9);
}

.slca-pro-step__icon .dashicons,
.slca-pro-feature__icon .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
}

.slca-pro-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.slca-pro-feature {
	padding: 20px;
	border: 1px solid var(--slca-pro-line);
	border-radius: 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.slca-pro-feature:hover {
	border-color: #9cc2f5;
	box-shadow: 0 14px 28px -22px rgba(29, 111, 224, 0.7);
	transform: translateY(-2px);
}

.slca-pro-feature h3 {
	margin: 14px 0 4px;
	color: var(--slca-pro-navy);
	font-family: inherit;
	font-size: 15px;
	font-weight: 650;
}

.slca-pro-feature p {
	margin: 0;
	color: var(--slca-pro-text);
	font-size: 13.5px;
	line-height: 1.5;
}

.slca-pro-split {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
	gap: 36px;
}

.slca-pro-compare {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.slca-pro-compare th,
.slca-pro-compare td {
	padding: 10px 12px;
	border-bottom: 1px solid #edf2fa;
	text-align: center;
}

.slca-pro-compare tbody th {
	color: #24406b;
	font-weight: 500;
	text-align: start;
}

.slca-pro-compare thead th {
	color: #6b7a90;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.slca-pro-compare .is-pro {
	background: #f4f8ff;
}

.slca-pro-compare thead .is-pro {
	color: var(--slca-pro-navy);
	border-radius: 10px 10px 0 0;
}

.slca-pro-compare thead .is-pro .slca-crown {
	display: inline-block;
	margin-inline-end: 4px;
	vertical-align: -1px;
}

.slca-yes {
	color: var(--slca-pro-blue);
	font-weight: 700;
}

.slca-no {
	color: #c4cad4;
}

.slca-tag {
	padding: 2px 8px;
	color: #7a5200;
	background: #fff6d9;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
}

.slca-pro-plans {
	display: grid;
	gap: 10px;
}

.slca-pro-plan {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--slca-pro-line);
	border-radius: 14px;
}

.slca-pro-plan.is-featured {
	background: linear-gradient(135deg, #f7faff, #eaf2ff);
	border-color: #9cc2f5;
}

.slca-pro-plan strong {
	display: block;
	color: var(--slca-pro-navy);
	font-size: 15px;
}

.slca-pro-plan span {
	color: var(--slca-pro-text);
	font-size: 13px;
}

.slca-pro-plan__price {
	color: var(--slca-pro-navy);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.slca-pro-plan__price small {
	margin-inline-start: 2px;
	color: #6b7a90;
	font-size: 12px;
	font-weight: 500;
}

.slca-pro-note {
	margin: 12px 0 0;
	color: #6b7a90;
	font-size: 12.5px;
	line-height: 1.5;
}

@media (max-width: 1100px) {
	.slca-pro-hero,
	.slca-pro-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.slca-pro-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.slca-pro-hero {
		padding: 28px 22px;
	}

	.slca-pro-hero h2 {
		font-size: 28px;
	}

	.slca-pro-steps,
	.slca-pro-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.slca-pro-section {
		padding: 22px 18px;
	}
}

/* ─── Dashboard Pro page ────────────────────────────────────── */

.slca-dp-watch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0b2a5b;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.slca-dp-watch .dashicons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: #1d6fe0;
	background: #fff;
	border: 1px solid #dbe7f7;
	border-radius: 50%;
	font-size: 18px;
}

.slca-dp-watch:hover {
	color: #1d6fe0;
}

/* Dashboard illustration */
.slca-dp-mock {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	overflow: hidden;
	background: #fff;
	border: 1px solid #dbe7f7;
	border-radius: 16px;
	box-shadow: 0 30px 60px -36px rgba(11, 42, 91, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.6);
	transform: rotate(-1.5deg);
}

.slca-dp-mock__side {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	background: #0b2a5b;
}

.slca-dp-mock__side span {
	width: 18px;
	height: 18px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 5px;
}

.slca-dp-mock__side .is-logo {
	width: 24px;
	height: 24px;
	margin-bottom: 6px;
	background: #fff;
	border-radius: 7px;
}

.slca-dp-mock__side .is-on {
	background: #3b8cff;
}

.slca-dp-mock__main {
	display: grid;
	gap: 10px;
	padding: 16px;
}

.slca-dp-mock__hello strong {
	display: block;
	color: #0b2a5b;
	font-size: 15px;
}

.slca-dp-mock__hello small,
.slca-dp-mock__stats small,
.slca-dp-mock__course small {
	color: #6b7a90;
	font-size: 10.5px;
}

.slca-dp-mock__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.slca-dp-mock__stats div {
	padding: 9px 10px;
	background: #f4f8ff;
	border: 1px solid #e3edfb;
	border-radius: 10px;
}

.slca-dp-mock__stats b {
	display: block;
	color: #0b2a5b;
	font-size: 16px;
}

.slca-dp-mock__course {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid #edf2fa;
	border-radius: 10px;
}

.slca-dp-mock__thumb {
	width: 30px;
	height: 30px;
	background: linear-gradient(145deg, #3b8cff, #1559c4);
	border-radius: 8px;
}

.slca-dp-mock__thumb.is-alt {
	background: linear-gradient(145deg, #ffd76a, #f5b400);
}

.slca-dp-mock__course strong {
	display: block;
	color: #0b2a5b;
	font-size: 11.5px;
}

.slca-dp-mock__course i {
	display: block;
	height: 5px;
	margin-top: 5px;
	background: #edf2fa;
	border-radius: 99px;
}

.slca-dp-mock__course em {
	display: block;
	height: 100%;
	background: #1d6fe0;
	border-radius: 99px;
}

.slca-dp-mock__chart {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	height: 54px;
	padding: 8px 10px 0;
	background: #f7faff;
	border-radius: 10px;
}

.slca-dp-mock__chart span {
	flex: 1;
	background: linear-gradient(180deg, #7fb2ff, #1d6fe0);
	border-radius: 4px 4px 0 0;
}

.slca-dp-flame {
	font-size: 15px;
}

.slca-dp-zoom .dashicons {
	color: #1d6fe0;
}

/* Replace 7 plugins */
.slca-dp-replace {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 22px;
}

.slca-dp-replace__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.slca-dp-replace__list li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 8px 12px 8px 8px;
	color: #6b7a90;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	font-size: 13.5px;
	text-decoration: line-through;
	text-decoration-color: rgba(107, 122, 144, 0.5);
}

.slca-dp-replace__list .dashicons {
	color: #e5484d;
	font-size: 18px;
}

.slca-dp-replace__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #fff;
	background: linear-gradient(145deg, #3b8cff, #1559c4);
	border-radius: 50%;
	box-shadow: 0 10px 20px -10px rgba(29, 111, 224, 0.9);
}

.slca-dp-replace__one {
	display: grid;
	justify-items: start;
	gap: 6px;
	padding: 22px;
	background: linear-gradient(135deg, #f7faff, #eaf2ff);
	border: 1px solid #9cc2f5;
	border-radius: 16px;
}

.slca-dp-replace__one strong {
	margin-top: 6px;
	color: #0b2a5b;
	font-size: 17px;
}

.slca-dp-replace__one span {
	color: #4a5b75;
	font-size: 13.5px;
}

/* Roles */
.slca-dp-roles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.slca-dp-role {
	padding: 20px;
	background: #f7faff;
	border: 1px solid #dbe7f7;
	border-radius: 14px;
}

.slca-dp-role h3 {
	margin: 14px 0 10px;
	color: #0b2a5b;
	font-family: inherit;
	font-size: 16px;
	font-weight: 650;
}

.slca-dp-role ul,
.slca-dp-assurances {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.slca-dp-role li {
	position: relative;
	margin: 0;
	padding-inline-start: 18px;
	color: #24406b;
	font-size: 13px;
	line-height: 1.45;
}

.slca-dp-role li::before {
	content: '✓';
	position: absolute;
	inset-inline-start: 0;
	color: #1d6fe0;
	font-weight: 700;
}

.slca-pro-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slca-dp-assurances {
	margin-top: 14px;
}

.slca-dp-assurances li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #4a5b75;
	font-size: 13px;
}

.slca-dp-assurances .dashicons {
	color: #12b76a;
}

@media (max-width: 1100px) {
	.slca-dp-roles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.slca-dp-replace {
		grid-template-columns: minmax(0, 1fr);
	}

	.slca-dp-replace__arrow {
		transform: rotate(90deg);
	}
}

@media (max-width: 700px) {
	.slca-dp-roles,
	.slca-pro-grid--two {
		grid-template-columns: minmax(0, 1fr);
	}
}


/* ─── Custom icon upload ────────────────────────────────────── */

.slca-icon-preview img.slca-custom-icon {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
	border-radius: 4px;
}

.slca-icon-preview .dashicons-upload {
	width: 22px;
	height: 22px;
	color: #1d6fe0;
	font-size: 22px;
}

.slca-custom-icon-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-top: 12px;
}

.slca-custom-icon-controls .button.slca-custom-icon-upload {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	color: #1559c4;
	border-color: #9cc2f5;
	background: #f4f8ff;
}

.slca-custom-icon-controls .button.slca-custom-icon-upload .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.slca-custom-icon-remove {
	color: #b42318;
}

.slca-custom-icon-remove[hidden] {
	display: none;
}

.slca-custom-icon-hint {
	color: var(--slca-admin-muted);
	font-size: 12px;
}
