/**
 * AffiStyle Admin Dashboard & Metabox Styles
 *
 * @package AffiStyle
 *
 * Table of Contents:
 *
 * 1.0 General Container Setup
 * 2.0 Field Groups & Form Controls
 * 2.1 Quick-Fill Product URL Grabber
 * 3.0 Grid Rows & Layout Columns
 * 4.0 Media Image Uploader Component
 * 5.0 Helper Text & Headings
 * 6.0 Analytics Header & Action Buttons
 * 7.0 Admin List Table Shortcode & Quick Preview Modal
 * 8.0 Animations & Utilities
 * 9.0 Responsive Media Queries
 */

/**
 * 1.0 General Container Setup
 */
.affistyle-metabox-wrapper {
	box-sizing: border-box;
	padding: 12px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.affistyle-metabox-wrapper *,
.affistyle-metabox-wrapper *::before,
.affistyle-metabox-wrapper *::after {
	box-sizing: border-box;
}

/*-----------------------------------------------------------------------------
 * 1.0 Full-Width Application Canvas & Side Panel Removal
 *----------------------------------------------------------------------------*/
body[class*="post-type-affistyle_box"] [id="postbox-container-1"],
body[class*="post-type-aff_box"] [id="postbox-container-1"],
body.post-type-affistyle_box [id="postbox-container-1"],
body.post-type-aff_box [id="postbox-container-1"],
body.affistyle-builder-active [id="postbox-container-1"] {
	display: none;
}

body[class*="post-type-affistyle_box"] [id="postbox-container-2"],
body[class*="post-type-aff_box"] [id="postbox-container-2"],
body.post-type-affistyle_box [id="postbox-container-2"],
body.post-type-aff_box [id="postbox-container-2"],
body.affistyle-builder-active [id="postbox-container-2"],
body[class*="post-type-affistyle_box"] [id="post-body"].columns-2 [id="postbox-container-2"],
body[class*="post-type-aff_box"] [id="post-body"].columns-2 [id="postbox-container-2"],
body.post-type-affistyle_box [id="post-body"].columns-2 [id="postbox-container-2"],
body.post-type-aff_box [id="post-body"].columns-2 [id="postbox-container-2"],
body.affistyle-builder-active [id="post-body"].columns-2 [id="postbox-container-2"] {
	width: 100%;
	margin-right: 0;
	float: none;
}

body[class*="post-type-affistyle_box"] .wp-heading-inline,
body[class*="post-type-aff_box"] .wp-heading-inline,
body.post-type-affistyle_box .wp-heading-inline,
body.post-type-aff_box .wp-heading-inline,
body.affistyle-builder-active .wp-heading-inline,
body[class*="post-type-affistyle_box"] .page-title-action,
body[class*="post-type-aff_box"] .page-title-action,
body.post-type-affistyle_box .page-title-action,
body.post-type-aff_box .page-title-action,
body.affistyle-builder-active .page-title-action,
body[class*="post-type-affistyle_box"] hr.wp-header-end,
body[class*="post-type-aff_box"] hr.wp-header-end,
body.post-type-affistyle_box hr.wp-header-end,
body.post-type-aff_box hr.wp-header-end,
body.affistyle-builder-active hr.wp-header-end,
body[class*="post-type-affistyle_box"] [id="titlediv"],
body[class*="post-type-aff_box"] [id="titlediv"],
body.post-type-affistyle_box [id="titlediv"],
body.post-type-aff_box [id="titlediv"],
body.affistyle-builder-active [id="titlediv"] {
	display: none;
}

body[class*="post-type-affistyle_box"] [id="affistyle_card_details"].postbox,
body[class*="post-type-aff_box"] [id="affistyle_card_details"].postbox,
body.post-type-affistyle_box [id="affistyle_card_details"].postbox,
body.post-type-aff_box [id="affistyle_card_details"].postbox,
body.affistyle-builder-active [id="affistyle_card_details"].postbox {
	background: transparent;
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

body[class*="post-type-affistyle_box"] [id="affistyle_card_details"] .postbox-header,
body[class*="post-type-aff_box"] [id="affistyle_card_details"] .postbox-header,
body.post-type-affistyle_box [id="affistyle_card_details"] .postbox-header,
body.post-type-aff_box [id="affistyle_card_details"] .postbox-header,
body.affistyle-builder-active [id="affistyle_card_details"] .postbox-header {
	display: none;
}

body[class*="post-type-affistyle_box"] [id="affistyle_card_details"] .inside,
body[class*="post-type-aff_box"] [id="affistyle_card_details"] .inside,
body.post-type-affistyle_box [id="affistyle_card_details"] .inside,
body.post-type-aff_box [id="affistyle_card_details"] .inside,
body.affistyle-builder-active [id="affistyle_card_details"] .inside {
	margin: 0;
	padding: 0;
}

body[class*="post-type-affistyle_box"] [id="poststuff"],
body[class*="post-type-aff_box"] [id="poststuff"],
body.post-type-affistyle_box [id="poststuff"],
body.post-type-aff_box [id="poststuff"],
body.affistyle-builder-active [id="poststuff"] {
	padding-top: 0;
	min-width: 0;
}

/*-----------------------------------------------------------------------------
 * 1.1 SaaS Application Workspace & Layout
 *----------------------------------------------------------------------------*/
.affistyle-app-workspace,
.affistyle-analytics-wrap,
.affistyle-importer-wrap,
.affistyle-list-header-wrapper,
body.post-type-affistyle_box .wrap,
body.post-type-aff_box .wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	box-sizing: border-box;
	color: #0f172a;
}

.affistyle-app-workspace *,
.affistyle-app-workspace *::before,
.affistyle-app-workspace *::after,
.affistyle-analytics-wrap *,
.affistyle-analytics-wrap *::before,
.affistyle-analytics-wrap *::after,
.affistyle-importer-wrap *,
.affistyle-importer-wrap *::before,
.affistyle-importer-wrap *::after {
	box-sizing: border-box;
}

/* --- Branded Top Header --- */
.affistyle-app-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	border-radius: 12px;
	color: #ffffff;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	box-shadow: 0 4px 14px -2px rgba(79, 70, 229, 0.18);
}

.affistyle-builder-workspace .affistyle-app-header,
.affistyle-analytics-wrap .affistyle-app-header,
.affistyle-importer-wrap .affistyle-app-header {
	border-radius: 12px 12px 0 0;
	margin-bottom: 0;
}

.affistyle-app-header-left {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.affistyle-brand-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #ffffff;
}

.affistyle-brand-icon {
	font-size: 20px;
	line-height: 1;
}

.affistyle-brand-logo {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}

.affistyle-list-header-wrapper .affistyle-app-header {
	border-radius: 12px;
}

.affistyle-builder-workspace .affistyle-app-header {
	border-radius: 12px 12px 0 0;
	margin-bottom: 0;
}

.affistyle-analytics-wrap .affistyle-app-header,
.affistyle-importer-wrap .affistyle-app-header {
	border-radius: 12px 12px 0 0;
	margin-top: 15px;
}

.affistyle-brand-title {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.3px;
	color: #ffffff;
}

.affistyle-brand-version {
	font-size: 11px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.2);
	padding: 2px 7px;
	border-radius: 12px;
	color: #ffffff;
}

.affistyle-app-header-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.affistyle-nav-link {
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s ease;
}

.affistyle-nav-link:hover,
.affistyle-nav-link.active {
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
}

.affistyle-app-header-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* --- Common Buttons in Workspace --- */
.affistyle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	padding: 8px 16px;
	border-radius: 8px;
	cursor: pointer;
	border: 1px solid transparent;
	text-decoration: none;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.affistyle-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
}

.affistyle-btn-primary {
	background: #059669;
	color: #ffffff;
	border-color: #059669;
	box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.affistyle-btn-primary:hover {
	background: #047857;
	border-color: #047857;
	color: #ffffff;
}

.affistyle-btn-light {
	background: #ffffff;
	color: #4f46e5;
	border-color: #ffffff;
}

.affistyle-btn-light:hover {
	background: #f1f5f9;
	color: #4338ca;
}

.affistyle-btn-ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.25);
}

.affistyle-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.affistyle-btn-outline {
	background: #ffffff;
	color: #334155;
	border-color: #cbd5e1;
}

.affistyle-btn-outline:hover {
	background: #f8fafc;
	color: #0f172a;
	border-color: #94a3b8;
}

.affistyle-btn-outline-sm {
	padding: 4px 10px;
	font-size: 12px;
	background: #ffffff;
	color: #475569;
	border-color: #cbd5e1;
}

.affistyle-btn-outline-sm:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.affistyle-btn-link-danger {
	background: transparent;
	border: 0;
	color: #dc2626;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 0;
	margin-top: 6px;
	display: inline-block;
	text-decoration: underline;
}

.affistyle-btn-link-danger:hover {
	color: #b91c1c;
}

/* --- Contextual Sub-Header & Tab Filter Bars --- */
.affistyle-sub-header,
.affistyle-filters-bar,
.affistyle-importer-sub-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-top: 0;
	border-radius: 0 0 12px 12px;
	box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.affistyle-filters-bar-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.affistyle-filters-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
}

.affistyle-filters-label .dashicons {
	font-size: 17px;
	width: 17px;
	height: 17px;
	color: #6366f1;
}

.affistyle-filters-select,
select.affistyle-filters-select {
	appearance: none;
	-webkit-appearance: none;
	background-color: #f8fafc;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
	background-position: right 10px center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 6px 32px 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: #1e293b;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.affistyle-filters-select:hover {
	background-color: #ffffff;
	border-color: #94a3b8;
}

.affistyle-filters-select:focus {
	background-color: #ffffff;
	border-color: #6366f1;
	outline: none;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.affistyle-custom-date-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.affistyle-filters-date-input,
input[type="date"].affistyle-filters-date-input {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 5px 10px;
	font-size: 13px;
	color: #1e293b;
	font-weight: 500;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.affistyle-filters-date-input:focus {
	border-color: #6366f1;
	background: #ffffff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.affistyle-filters-to {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
}

.affistyle-filters-apply-btn {
	border-radius: 8px;
	font-weight: 600;
	font-size: 12.5px;
	padding: 4px 14px;
}

.affistyle-filters-bar-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.affistyle-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	font-size: 11.5px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	letter-spacing: 0.02em;
}

.affistyle-live-dot {
	width: 6px;
	height: 6px;
	background: #10b981;
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/*-----------------------------------------------------------------------------
 * 8.0 Affiliate Importer & Migration Deck
 *----------------------------------------------------------------------------*/
.affistyle-importer-sub-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-top: 0;
	border-radius: 0 0 12px 12px;
	box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.04);
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.affistyle-importer-banner-left {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	flex: 1;
}

.affistyle-importer-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #eef2ff;
	border: 1px solid #e0e7ff;
	color: #4f46e5;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.affistyle-importer-badge .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.affistyle-importer-desc {
	margin: 0;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
}

.affistyle-safety-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	font-size: 11.5px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.affistyle-safety-pill .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: #10b981;
}

/* Importer Settings Control Deck */
.affistyle-importer-config-bar {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	padding: 14px 20px;
	margin-bottom: 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.affistyle-importer-config-left {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.affistyle-importer-config-field {
	display: flex;
	align-items: center;
	gap: 10px;
}

.affistyle-importer-config-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 13px;
	color: #0f172a;
	white-space: nowrap;
}

.affistyle-importer-config-label .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #6366f1;
}

.affistyle-importer-style-select,
select.affistyle-importer-style-select {
	appearance: none;
	-webkit-appearance: none;
	background-color: #f8fafc;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
	background-position: right 10px center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 6px 32px 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: #1e293b;
	line-height: 1.4;
	min-width: 260px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.affistyle-importer-style-select:hover {
	background-color: #ffffff;
	border-color: #94a3b8;
}

.affistyle-importer-style-select:focus {
	background-color: #ffffff;
	border-color: #6366f1;
	outline: none;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.affistyle-importer-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 13px;
	color: #334155;
	cursor: pointer;
	user-select: none;
}

.affistyle-importer-checkbox {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: 1px solid #cbd5e1;
	accent-color: #6366f1;
	cursor: pointer;
}

.affistyle-btn-rescan-db {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.affistyle-btn-rescan-db .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	transition: transform 0.4s ease;
}

.affistyle-btn-rescan-db:hover,
.affistyle-btn-rescan-db:focus {
	background: #f8fafc;
	border-color: #6366f1;
	color: #4f46e5;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.affistyle-btn-rescan-db:hover .dashicons {
	transform: rotate(180deg);
}

/* Provider Grid & Cards */
.affistyle-provider-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

@media screen and (max-width: 1200px) {
	.affistyle-provider-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 768px) {
	.affistyle-provider-grid {
		grid-template-columns: 1fr;
	}
}

.affistyle-provider-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.affistyle-provider-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--provider-color, #3b82f6);
	transition: height 0.2s ease;
}

.affistyle-provider-card.is-active:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.09), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
	border-color: #cbd5e1;
}

.affistyle-provider-card.is-active:hover::before {
	height: 4px;
}

.affistyle-provider-card.is-empty {
	background: #fafbfc;
	border-color: #f1f5f9;
}

.affistyle-provider-card.is-empty::before {
	opacity: 0.35;
}

.affistyle-provider-card.is-empty:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.affistyle-provider-card-body {
	flex: 1;
}

.affistyle-provider-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.affistyle-provider-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.affistyle-provider-icon-badge {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	border: 1px solid transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.affistyle-provider-card:hover .affistyle-provider-icon-badge {
	transform: scale(1.06);
}

.affistyle-provider-icon-badge .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
}

.affistyle-provider-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.25;
}

.affistyle-provider-badge-found {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ecfdf5;
	color: #065f46;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid #a7f3d0;
	white-space: nowrap;
	flex-shrink: 0;
}

.affistyle-provider-pulse-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.affistyle-provider-badge-empty {
	background: #f1f5f9;
	color: #64748b;
	font-size: 11.5px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
}

.affistyle-provider-desc {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 18px 0;
	line-height: 1.55;
	min-height: 40px;
}

.affistyle-provider-actions {
	border-top: 1px solid #f1f5f9;
	padding-top: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
}

.affistyle-btn-import-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
	border: none;
	color: #ffffff;
	font-size: 12.5px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
	flex: 1;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.affistyle-btn-import-all .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
}

.affistyle-btn-import-all:hover,
.affistyle-btn-import-all:focus {
	background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
	color: #ffffff;
	transform: translateY(-1px);
}

.affistyle-btn-inspect-select {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #334155;
	font-size: 12.5px;
	font-weight: 600;
	padding: 7px 12px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.affistyle-btn-inspect-select .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: #64748b;
	transition: color 0.15s ease;
}

.affistyle-btn-inspect-select:hover,
.affistyle-btn-inspect-select:focus {
	background: #f8fafc;
	border-color: #6366f1;
	color: #4f46e5;
	transform: translateY(-1px);
}

.affistyle-btn-inspect-select:hover .dashicons {
	color: #4f46e5;
}

.affistyle-btn-no-items {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #94a3b8;
	font-size: 12.5px;
	font-weight: 600;
	padding: 7px 14px;
	border-radius: 8px;
	cursor: not-allowed;
	width: 100%;
}

/* Live Import Progress Box */
.affistyle-import-progress-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 22px;
	margin-bottom: 24px;
	box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

.affistyle-progress-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.affistyle-progress-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 8px;
}

.affistyle-progress-title .dashicons {
	color: #4f46e5;
}

.affistyle-progress-percentage {
	font-weight: 800;
	font-size: 15px;
	color: #4f46e5;
}

.affistyle-progress-track {
	background: #e2e8f0;
	height: 10px;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 16px;
}

.affistyle-progress-bar-fill {
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg, #4f46e5, #3b82f6);
	border-radius: 999px;
	transition: width 0.25s ease;
}

.affistyle-import-log-console {
	background: #0f172a;
	color: #cbd5e1;
	font-family: ui-monospace, SFMono-Regular, Consolas, Monaco, monospace;
	font-size: 12px;
	padding: 14px 16px;
	border-radius: 10px;
	height: 180px;
	overflow-y: auto;
	line-height: 1.6;
	border: 1px solid #1e293b;
}

.affistyle-progress-actions {
	margin-top: 14px;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

/* Selective Item Inspection Modal */
.affistyle-inspect-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.6);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.affistyle-inspect-modal-dialog {
	background: #ffffff;
	width: 90%;
	max-width: 920px;
	max-height: 85vh;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.affistyle-inspect-modal-header {
	padding: 18px 24px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
}

.affistyle-inspect-modal-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 8px;
}

.affistyle-inspect-modal-title .dashicons {
	color: #6366f1;
}

.affistyle-inspect-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 20px;
	color: #64748b;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: all 0.15s ease;
}

.affistyle-inspect-modal-close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.affistyle-inspect-modal-body {
	padding: 20px 24px;
	overflow-y: auto;
	flex: 1;
}

.affistyle-inspect-modal-toolbar {
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.affistyle-inspect-select-all-label {
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #334155;
}

.affistyle-selected-count {
	font-size: 12.5px;
	font-weight: 600;
	color: #6366f1;
}

.affistyle-inspect-table {
	border-radius: 8px;
	overflow: hidden;
}

.affistyle-inspect-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.affistyle-sub-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	min-width: 0;
}

.affistyle-back-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 6px;
	background: #f1f5f9;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.affistyle-back-link:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.affistyle-title-crumb {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.affistyle-card-display-title {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	line-height: 1.25;
	letter-spacing: -0.3px;
}

.affistyle-dest-url-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 3px 8px;
	font-size: 12px;
	color: #64748b;
	max-width: 520px;
}

.affistyle-chip-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.affistyle-chip-copy-btn {
	background: transparent;
	border: 0;
	cursor: pointer;
	color: #94a3b8;
	padding: 0;
	display: inline-flex;
	align-items: center;
}

.affistyle-chip-copy-btn:hover {
	color: #2563eb;
}

.affistyle-sub-header-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* --- Quick-Fill Amazon Drawer --- */
.affistyle-quick-fill-drawer {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-top: 0;
	padding: 16px 20px;
	display: none;
}

.affistyle-quick-fill-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #1e293b;
	font-size: 14px;
	margin-bottom: 6px;
}

.affistyle-quick-fill-badge .dashicons {
	color: #f59e0b;
}

.affistyle-quick-fill-row {
	display: flex;
	gap: 10px;
	align-items: center;
	max-width: 820px;
}

.affistyle-quick-fill-row .affistyle-input {
	flex: 1;
}

/* --- Main Workspace 2-Column Grid --- */
.affistyle-workspace-grid {
	display: grid;
	grid-template-columns: 1.12fr 1fr;
	gap: 24px;
	padding: 0 0 60px 0;
	align-items: start;
	width: 100%;
}

.affistyle-col-left {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.affistyle-col-right {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	position: sticky;
	top: 32px;
	align-self: start;
}

/* --- Panel Cards --- */
.affistyle-panel-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.affistyle-panel-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
}

.affistyle-panel-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 20px;
	background: #ffffff;
	border-bottom: 1px solid #f1f5f9;
}

.affistyle-panel-title-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
}

.affistyle-panel-icon-wrap {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #eff6ff;
	color: #2563eb;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 18px;
}

.affistyle-panel-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.affistyle-panel-desc {
	font-size: 12.5px;
	color: #64748b;
	margin: 2px 0 0;
	line-height: 1.45;
}

.affistyle-panel-card-body {
	padding: 22px 20px;
}

/* --- Form Fields & Inputs --- */
.affistyle-form-group {
	margin-bottom: 16px;
}

.affistyle-form-group:last-child {
	margin-bottom: 0;
}

.affistyle-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.affistyle-label {
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.4;
}

.affistyle-req {
	color: #ef4444;
}

.affistyle-info-tooltip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	cursor: help;
	user-select: none;
}

.affistyle-app-workspace input.affistyle-input,
.affistyle-app-workspace select.affistyle-select,
.affistyle-app-workspace textarea.affistyle-textarea,
.affistyle-panel-card input.affistyle-input,
.affistyle-panel-card select.affistyle-select,
.affistyle-panel-card textarea.affistyle-textarea,
.affistyle-quick-fill-drawer input.affistyle-input,
input.affistyle-input,
select.affistyle-select,
textarea.affistyle-textarea {
	width: 100%;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	padding: 9px 13px;
	min-height: 38px;
	font-size: 13px;
	color: #0f172a;
	background-color: #ffffff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	line-height: 1.5;
	box-sizing: border-box;
}

.affistyle-app-workspace select.affistyle-select,
.affistyle-panel-card select.affistyle-select,
select.affistyle-select {
	padding-right: 32px;
	cursor: pointer;
}

.affistyle-app-workspace input.affistyle-input:hover,
.affistyle-app-workspace select.affistyle-select:hover,
.affistyle-app-workspace textarea.affistyle-textarea:hover,
.affistyle-panel-card input.affistyle-input:hover,
.affistyle-panel-card select.affistyle-select:hover,
.affistyle-panel-card textarea.affistyle-textarea:hover,
input.affistyle-input:hover,
select.affistyle-select:hover,
textarea.affistyle-textarea:hover {
	border-color: #94a3b8;
}

.affistyle-app-workspace input.affistyle-input:focus,
.affistyle-app-workspace select.affistyle-select:focus,
.affistyle-app-workspace textarea.affistyle-textarea:focus,
.affistyle-panel-card input.affistyle-input:focus,
.affistyle-panel-card select.affistyle-select:focus,
.affistyle-panel-card textarea.affistyle-textarea:focus,
input.affistyle-input:focus,
select.affistyle-select:focus,
textarea.affistyle-textarea:focus {
	border-color: #4f46e5;
	outline: 0;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.affistyle-app-workspace input.affistyle-input::placeholder,
.affistyle-app-workspace textarea.affistyle-textarea::placeholder,
input.affistyle-input::placeholder,
textarea.affistyle-textarea::placeholder {
	color: #94a3b8;
	font-size: 13px;
	opacity: 1;
}

.affistyle-form-row {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.affistyle-col-half {
	flex: 1;
	min-width: 0;
	margin-bottom: 0;
}

.affistyle-app-workspace input.affistyle-color-input,
.affistyle-panel-card input.affistyle-color-input,
input.affistyle-color-input {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 100%;
	height: 38px;
	min-height: 38px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	padding: 4px;
	cursor: pointer;
	background-color: #ffffff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.affistyle-app-workspace input.affistyle-color-input:hover,
.affistyle-panel-card input.affistyle-color-input:hover,
input.affistyle-color-input:hover {
	border-color: #94a3b8;
}

.affistyle-app-workspace input.affistyle-color-input:focus,
.affistyle-panel-card input.affistyle-color-input:focus,
input.affistyle-color-input:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.affistyle-color-input::-webkit-color-swatch-wrapper {
	padding: 0;
}

.affistyle-color-input::-webkit-color-swatch {
	border: 0;
	border-radius: 5px;
}

.affistyle-color-input::-moz-color-swatch {
	border: 0;
	border-radius: 5px;
}

.affistyle-inline-toggle {
	display: inline-flex;
	align-items: center;
}

/* --- iOS Toggle Switches --- */
.affistyle-switches-block {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 8px 14px;
	margin: 16px 0;
}

.affistyle-switch-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
}

.affistyle-switch-row:last-child {
	border-bottom: 0;
}

.affistyle-switch-meta {
	display: flex;
	align-items: center;
	gap: 6px;
}

.affistyle-switch-label {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.affistyle-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
	margin: 0;
}

.affistyle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}

.affistyle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #cbd5e1;
	transition: background-color 0.25s ease;
	border-radius: 24px;
}

.affistyle-slider::before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: #ffffff;
	transition: transform 0.25s ease;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.affistyle-switch input:checked + .affistyle-slider {
	background-color: #059669;
}

.affistyle-switch input:checked + .affistyle-slider::before {
	transform: translateX(20px);
}

.affistyle-switch.affistyle-switch-sm {
	width: 36px;
	height: 20px;
}

.affistyle-switch.affistyle-switch-sm .affistyle-slider::before {
	height: 14px;
	width: 14px;
	left: 3px;
	bottom: 3px;
}

.affistyle-switch.affistyle-switch-sm input:checked + .affistyle-slider::before {
	transform: translateX(16px);
}

/* --- Details / Collapsible Cards --- */
.affistyle-details-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	margin-top: 14px;
}

.affistyle-details-card[open] {
	border-color: #cbd5e1;
	background: #ffffff;
	box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
}

.affistyle-details-summary {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	cursor: pointer;
	user-select: none;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: #f8fafc;
	list-style: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.affistyle-details-summary::-webkit-details-marker {
	display: none;
}

.affistyle-details-summary:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.affistyle-details-icon-wrap {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #eff6ff;
	color: #2563eb;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.affistyle-details-icon-wrap .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: inherit;
}

.affistyle-details-summary:hover .affistyle-details-icon-wrap {
	transform: scale(1.05);
}

.affistyle-details-summary .dashicons {
	color: #64748b;
	font-size: 18px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.affistyle-details-summary::after {
	content: "\f347";
	font-family: dashicons;
	font-size: 18px;
	color: #94a3b8;
	margin-left: auto;
	transition: transform 0.2s ease, color 0.2s ease;
	line-height: 1;
}

.affistyle-details-card[open] > .affistyle-details-summary::after {
	transform: rotate(180deg);
	color: #475569;
}

.affistyle-details-card[open] > .affistyle-details-summary {
	border-bottom: 1px solid #f1f5f9;
	background: #ffffff;
}

.affistyle-details-content {
	padding: 16px;
	background: #ffffff;
}

/* --- Keywords Grid & Intelligence Elements --- */
.affistyle-keywords-grid {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.affistyle-epc-preview-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	color: #4338ca;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	margin-top: 10px;
}

/* --- Media Uploader & Image Wrap --- */
.affistyle-image-input-wrap {
	display: flex;
	gap: 8px;
	align-items: center;
}

.affistyle-image-input-wrap .affistyle-input {
	flex: 1;
}

.affistyle-thumb-preview-box {
	margin-top: 10px;
	width: 100px;
	height: 100px;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	overflow: hidden;
}

.affistyle-thumb-preview-box img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.affistyle-thumb-placeholder {
	font-size: 32px;
	color: #94a3b8;
}

/* --- Persistent Live Preview Dock --- */
.affistyle-preview-dock-card {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 80px);
}

.affistyle-preview-dock-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	gap: 12px;
	flex-wrap: wrap;
}

.affistyle-preview-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.affistyle-preview-title {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
}

.affistyle-style-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: #4338ca;
	background: #e0e7ff;
	padding: 2px 8px;
	border-radius: 6px;
}

.affistyle-viewport-toggles {
	display: flex;
	gap: 4px;
	background: #e2e8f0;
	padding: 2px;
	border-radius: 6px;
}

.affistyle-vp-btn {
	background: transparent;
	border: 0;
	padding: 4px 8px;
	border-radius: 4px;
	cursor: pointer;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	transition: all 0.2s ease;
}

.affistyle-vp-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.affistyle-vp-btn.active {
	background: #ffffff;
	color: #2563eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.affistyle-preview-canvas-stage {
	position: relative;
	background: #f8fafc;
	padding: 20px 14px;
	min-height: 280px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	overflow-y: auto;
	overflow-x: hidden;
	flex: 1;
}

.affistyle-viewport-wrapper {
	width: 100%;
	transition: max-width 0.25s ease;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.affistyle-viewport-wrapper.vp-desktop {
	max-width: 100%;
}

.affistyle-viewport-wrapper.vp-tablet {
	max-width: 580px;
}

.affistyle-viewport-wrapper.vp-mobile {
	max-width: 360px;
}

.affistyle-preview-canvas {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: opacity 0.2s ease;
}

.affistyle-preview-canvas .affistyle-card-wrapper {
	flex-shrink: 0;
	box-sizing: border-box;
}

.affistyle-preview-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	color: #64748b;
	font-size: 13px;
	gap: 10px;
}

.affistyle-preview-loader {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(255, 255, 255, 0.9);
	padding: 4px 8px;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.affistyle-preview-dock-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 16px;
	background: #ffffff;
	border-top: 1px solid #f1f5f9;
	font-size: 11px;
	color: #64748b;
}

.affistyle-preview-hint {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.affistyle-preview-hint .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.affistyle-scale-pill {
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 700;
	color: #475569;
}

/* --- Sticky Bottom Action Bar --- */
.affistyle-bottom-action-bar {
	position: sticky;
	bottom: 0;
	z-index: 100;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	border-radius: 0 0 12px 12px;
	margin-top: 16px;
}

.affistyle-delete-card-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #dc2626;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.affistyle-delete-card-link:hover {
	color: #b91c1c;
}

.affistyle-shortcode-pill-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 4px 10px;
}

.affistyle-shortcode-label {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
}

.affistyle-shortcode-snippet {
	font-family: Consolas, Monaco, "Andale Mono", monospace;
	font-size: 12px;
	color: #1e293b;
	background: transparent;
	padding: 0;
}

@media (max-width: 1024px) {
	.affistyle-workspace-grid {
		grid-template-columns: 1fr;
	}

	.affistyle-preview-dock-card {
		position: static;
	}
}

/* --- Preview Dock Component --- */
.affistyle-live-preview-dock {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.affistyle-live-preview-dock:hover {
	box-shadow: 0 14px 30px -5px rgba(15, 23, 42, 0.12), 0 6px 10px -2px rgba(15, 23, 42, 0.06);
}

.affistyle-live-preview-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	gap: 12px;
	flex-wrap: wrap;
}

.affistyle-live-preview-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex-shrink: 0;
}

.affistyle-live-pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #10b981;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: affistylePulse 2s infinite;
	flex-shrink: 0;
}

@keyframes affistylePulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

.affistyle-live-preview-heading {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
}

.affistyle-preview-style-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: #4338ca;
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	padding: 2px 8px;
	border-radius: 9999px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 160px;
}

.affistyle-preview-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.affistyle-preview-viewport-toggles,
.affistyle-builder-layout-toggles {
	display: inline-flex;
	background: #e2e8f0;
	padding: 2px;
	border-radius: 6px;
	gap: 2px;
	flex-shrink: 0;
}

.affistyle-preview-vp-btn,
.affistyle-layout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 4px 8px;
	border: none;
	background: transparent;
	color: #64748b;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s ease;
	line-height: 1;
	font-size: 11px;
	font-weight: 600;
}

.affistyle-preview-vp-btn .dashicons,
.affistyle-layout-btn .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
}

.affistyle-preview-vp-btn:hover,
.affistyle-layout-btn:hover {
	color: #0f172a;
	background: rgba(255, 255, 255, 0.6);
}

.affistyle-preview-vp-btn.active,
.affistyle-layout-btn.active {
	background: #ffffff;
	color: #2563eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.affistyle-toolbar-divider {
	display: inline-block;
	width: 1px;
	height: 18px;
	background: #cbd5e1;
	margin: 0 2px;
}

.affistyle-live-preview-stage {
	position: relative;
	background: #f1f5f9;
	padding: 24px 16px;
	min-height: 360px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	overflow-x: hidden;
}

.affistyle-live-viewport-wrapper {
	width: 100%;
	transition: max-width 0.25s ease;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.affistyle-live-viewport-wrapper.vp-desktop {
	max-width: 100%;
}

.affistyle-live-viewport-wrapper.vp-tablet {
	max-width: 580px;
}

.affistyle-live-viewport-wrapper.vp-mobile {
	max-width: 360px;
}

.affistyle-live-preview-canvas {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: opacity 0.2s ease;
}

.affistyle-live-preview-canvas .affistyle-card-wrapper {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	flex-shrink: 0;
}

.affistyle-live-preview-canvas .affistyle-disclosure-text,
.affistyle-disclosure-text {
	display: block;
	width: 100%;
	max-width: 820px;
	margin: 14px auto 0;
	padding: 0 12px;
	color: #64748b;
	font-size: 11.5px;
	font-style: italic;
	line-height: 1.5;
	text-align: center;
	box-sizing: border-box;
	clear: both;
}

.affistyle-live-preview-canvas a,
.affistyle-live-preview-canvas button {
	cursor: default;
}

.affistyle-live-preview-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	text-align: center;
	color: #64748b;
}

.affistyle-live-preview-loader {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(255, 255, 255, 0.9);
	padding: 6px;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	z-index: 10;
}

.affistyle-live-preview-footer {
	padding: 8px 14px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.affistyle-live-preview-hint {
	font-size: 11px;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.affistyle-live-preview-hint .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: #94a3b8;
}

.affistyle-preview-scale-pill {
	font-size: 11px;
	font-weight: 600;
	color: #059669;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	padding: 2px 6px;
	border-radius: 4px;
}

/* Quick-Fill UX Enhancements */
.affistyle-quick-fill-input-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
	flex-wrap: wrap;
}

.affistyle-quick-fill-input-row input[type="url"] {
	flex: 1 1 260px;
	min-width: 0;
}

.affistyle-quick-fill-input-row button {
	flex-shrink: 0;
	white-space: nowrap;
}

/**
 * 1.2 Step-Wise Wizard Form Navigation & Panels
 */
.affistyle-step-wizard-nav {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 24px;
	background: #f8fafc;
	padding: 10px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
}

.affistyle-step-pill {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	border-radius: 10px;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	color: #64748b;
	outline: none;
	width: 100%;
	box-sizing: border-box;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.affistyle-step-pill:hover {
	background: #f8fafc;
	border-color: #94a3b8;
	color: #0f172a;
}

.affistyle-step-pill:focus-visible {
	border-color: #2563eb;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.affistyle-step-pill.active {
	background: #eff6ff;
	color: #1d4ed8;
	border-color: #3b82f6;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.affistyle-step-pill-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.affistyle-step-pill.active .affistyle-step-pill-num {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

.affistyle-step-pill.completed {
	border-color: #10b981;
}

.affistyle-step-pill.completed .affistyle-step-pill-num {
	background: #10b981;
	border-color: #10b981;
	color: #ffffff;
}

.affistyle-step-pill-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
	gap: 2px;
}

.affistyle-step-pill-title {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.affistyle-step-pill.active .affistyle-step-pill-title {
	color: #1d4ed8;
}

.affistyle-step-pill-sub {
	font-size: 11px;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.affistyle-step-pill.active .affistyle-step-pill-sub {
	color: #3b82f6;
}



.affistyle-step-panel {
	animation: affistyleStepFadeIn 0.2s ease;
}

@keyframes affistyleStepFadeIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.affistyle-step-panel-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid #e2e8f0;
}

.affistyle-step-footer-spacer {
	flex: 1;
}

/* Button & Icon Horizontal Alignment */
.wp-core-ui .affistyle-metabox-wrapper .button,
.wp-core-ui .affistyle-builder-form-col .button,
.wp-core-ui .affistyle-live-preview-dock .button,
.wp-core-ui .affistyle-scroll-preview-btn,
.wp-core-ui .affistyle-scroll-form-btn,
.wp-core-ui .affistyle-quick-fill-input-row .button,
.wp-core-ui .affistyle-quick-fill-input-row .button-primary,
.affistyle-metabox-wrapper .button,
.affistyle-builder-form-col .button,
.affistyle-live-preview-dock .button,
.affistyle-scroll-preview-btn,
.affistyle-scroll-form-btn,
.affistyle-quick-fill-input-row .button-primary {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	vertical-align: middle;
	line-height: 1.4;
	min-height: 32px;
	box-sizing: border-box;
}

.wp-core-ui .affistyle-metabox-wrapper .button .dashicons,
.wp-core-ui .affistyle-builder-form-col .button .dashicons,
.wp-core-ui .affistyle-live-preview-dock .button .dashicons,
.wp-core-ui .affistyle-scroll-preview-btn .dashicons,
.wp-core-ui .affistyle-scroll-form-btn .dashicons,
.wp-core-ui .affistyle-quick-fill-input-row .button .dashicons,
.wp-core-ui .affistyle-quick-fill-input-row .button-primary .dashicons,
.affistyle-metabox-wrapper .button .dashicons,
.affistyle-builder-form-col .button .dashicons,
.affistyle-live-preview-dock .button .dashicons,
.affistyle-scroll-preview-btn .dashicons,
.affistyle-scroll-form-btn .dashicons,
.affistyle-quick-fill-input-row .button-primary .dashicons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
	margin: 0;
	padding: 0;
	vertical-align: middle;
	flex-shrink: 0;
}

.wp-core-ui .affistyle-metabox-wrapper .button .dashicons::before,
.wp-core-ui .affistyle-builder-form-col .button .dashicons::before,
.wp-core-ui .affistyle-live-preview-dock .button .dashicons::before,
.wp-core-ui .affistyle-scroll-preview-btn .dashicons::before,
.wp-core-ui .affistyle-scroll-form-btn .dashicons::before,
.wp-core-ui .affistyle-quick-fill-input-row .button .dashicons::before,
.wp-core-ui .affistyle-quick-fill-input-row .button-primary .dashicons::before,
.affistyle-metabox-wrapper .button .dashicons::before,
.affistyle-builder-form-col .button .dashicons::before,
.affistyle-live-preview-dock .button .dashicons::before,
.affistyle-scroll-preview-btn .dashicons::before,
.affistyle-scroll-form-btn .dashicons::before,
.affistyle-quick-fill-input-row .button-primary .dashicons::before {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	padding: 0;
}

.wp-core-ui .affistyle-metabox-wrapper .button > span,
.affistyle-metabox-wrapper .button > span {
	display: inline-block;
	line-height: 1.4;
	vertical-align: middle;
	white-space: nowrap;
}

.affistyle-finish-save-btn {
	background: #059669;
	border-color: #047857;
	color: #ffffff;
}

.affistyle-finish-save-btn:hover {
	background: #047857;
}

/* Pre-Publish Checklist & Shortcode Box */
.affistyle-review-checklist-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	margin-top: 20px;
}

.affistyle-review-checklist-header {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #0f172a;
	font-size: 13.5px;
}

.affistyle-review-shortcode-box {
	margin-top: 14px;
}

.affistyle-shortcode-copy-row {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 6px;
}

.affistyle-shortcode-input {
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	padding: 6px 10px;
	border-radius: 6px;
	flex: 1;
	color: #1e293b;
}

.affistyle-copy-shortcode-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

@container (max-width: 640px) {
	.affistyle-step-wizard-nav {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 782px) {
	.affistyle-step-wizard-nav {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Live Preview Stage Adaptive Grid Styles */
.affistyle-live-preview-canvas .affistyle-card-style-1 {
	margin: 0 auto;
}

.affistyle-live-preview-canvas .affistyle-card-style-1-grid {
	grid-template-columns: minmax(180px, 240px) 1fr;
}

.affistyle-live-viewport-wrapper.vp-mobile .affistyle-card-style-1-grid,
.affistyle-live-viewport-wrapper.vp-tablet .affistyle-card-style-1-grid {
	grid-template-columns: 1fr !important;
}

.affistyle-live-viewport-wrapper.vp-tablet .affistyle-pros-cons-wrapper {
	grid-template-columns: 1fr !important;
}


/**
 * 2.0 Field Groups & Form Controls
 */
.affistyle-field-group {
	margin-bottom: 20px;
}

.affistyle-field-group label {
	display: block;
	margin-bottom: 6px;
	color: #1d2327;
	font-size: 13px;
	font-weight: 600;
}

.affistyle-field-group input[type="text"],
.affistyle-field-group input[type="url"],
.affistyle-field-group input[type="number"],
.affistyle-field-group textarea,
.affistyle-field-group select {
	width: 100%;
	max-width: 100%;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	color: #2c3338;
	font-size: 14px;
	line-height: 1.4;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.affistyle-field-group input[type="color"] {
	height: 38px;
	padding: 4px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	vertical-align: middle;
	cursor: pointer;
}

.affistyle-field-group input[type="text"]:focus,
.affistyle-field-group input[type="url"]:focus,
.affistyle-field-group input[type="number"]:focus,
.affistyle-field-group input[type="color"]:focus,
.affistyle-field-group textarea:focus,
.affistyle-field-group select:focus {
	border-color: #2271b1;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 1px #2271b1;
}

.affistyle-field-group textarea {
	min-height: 90px;
	resize: vertical;
}


/**
 * 2.1 Quick-Fill Product URL Grabber
 */
.affistyle-quick-fill-card {
	margin-bottom: 24px;
	padding: 16px;
	border: 1px solid #c7d2fe;
	border-radius: 8px;
	background: #f8faff;
}

.affistyle-quick-fill-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.affistyle-quick-fill-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	color: #4f46e5;
	font-size: 24px;
}

.affistyle-quick-fill-header strong {
	color: #312e81;
	font-size: 14px;
}

.affistyle-quick-fill-input-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.affistyle-quick-fill-input-row input[type="url"] {
	flex: 1;
	min-width: 0;
	height: 36px;
	padding: 0 12px;
	border: 1px solid #a5b4fc;
	border-radius: 4px;
	background: #fff;
	color: #1e1b4b;
	font-size: 13px;
}

.affistyle-quick-fill-input-row input[type="url"]:focus {
	border-color: #4f46e5;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 1px #4f46e5;
}

.affistyle-quick-fill-input-row .button-primary {
	display: inline-flex;
	flex-direction: row;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	height: 36px;
	padding: 0 16px;
	border-color: #4338ca;
	border-radius: 4px;
	background: #4f46e5;
	color: #fff;
	font-weight: 600;
	transition: background 0.15s ease-in-out;
}

.affistyle-quick-fill-input-row .button-primary:hover,
.affistyle-quick-fill-input-row .button-primary:focus {
	border-color: #3730a3;
	background: #4338ca;
	color: #fff;
}

.affistyle-quick-fill-status {
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.4;
}

.affistyle-quick-fill-status.affistyle-status-loading {
	border: 1px solid #bfdbfe;
	background: #eff6ff;
	color: #1e40af;
}

.affistyle-quick-fill-status.affistyle-status-success {
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

.affistyle-quick-fill-status.affistyle-status-error {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
}


/**
 * 2.2 Sitewide Auto-Monetization Keywords
 */
.affistyle-keywords-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.affistyle-keywords-heading-title {
	display: flex;
	align-items: center;
	gap: 6px;
}

.affistyle-keywords-heading-title .dashicons {
	color: #2563eb;
	font-size: 18px;
}

.affistyle-badge-free-limit {
	padding: 2px 8px;
	border: 1px solid #bfdbfe;
	border-radius: 12px;
	background: #eff6ff;
	color: #1e40af;
	font-size: 11px;
	font-weight: 600;
}

.affistyle-keywords-desc {
	margin-top: 4px;
	margin-bottom: 14px;
	color: #64748b;
	font-size: 13px;
}

.affistyle-pro-upsell-callout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	padding: 10px 14px;
	border: 1px dashed #cbd5e1;
	border-radius: 6px;
	background: #f8fafc;
}

.affistyle-pro-upsell-text {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #475569;
	font-size: 12px;
}

.affistyle-pro-upsell-text .dashicons {
	width: 16px;
	height: 16px;
	color: #f59e0b;
	font-size: 16px;
}

.affistyle-btn-unlock-pro {
	flex-shrink: 0;
	border-color: #4338ca;
	background: #4f46e5;
	color: #ffffff;
}

.affistyle-btn-unlock-pro:hover,
.affistyle-btn-unlock-pro:focus {
	background: #4338ca;
	color: #ffffff;
}


/**
 * 3.0 Grid Rows & Layout Columns
 */
.affistyle-field-row {
	display: flex;
	gap: 20px;
	width: 100%;
}

.affistyle-field-row .affistyle-field-group {
	flex: 1;
	min-width: 0;
}


/**
 * 4.0 Media Image Uploader Component
 */
.affistyle-image-upload-container {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 6px;
}

.affistyle-image-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	background: #f6f7f7;
}

.affistyle-image-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.affistyle-image-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}


/**
 * 5.0 Helper Text & Headings
 */
.affistyle-description {
	display: block;
	margin-top: 6px;
	color: #646970;
	font-size: 12px;
	line-height: 1.4;
}

.affistyle-section-heading {
	margin: 24px 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #dcdcde;
	color: #1d2327;
	font-size: 15px;
	font-weight: 700;
}


/**
 * 6.0 Analytics Header & Action Buttons
 */
.affistyle-analytics-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.affistyle-analytics-header .wp-heading-inline {
	margin-right: 0;
	padding-top: 0;
	padding-bottom: 0;
}

.affistyle-read-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
}

.affistyle-analytics-chart-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	margin-top: 20px;
	margin-bottom: 24px;
}

.affistyle-analytics-chart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.affistyle-analytics-chart-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.affistyle-analytics-chart-icon {
	font-size: 20px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #eff6ff;
	color: #2563eb;
}

.affistyle-analytics-chart-icon .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

.affistyle-analytics-chart-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.affistyle-analytics-chart-subtitle {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
}

.affistyle-analytics-chart-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.affistyle-chart-meta-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 9999px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid #dbeafe;
}

.affistyle-chart-meta-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2563eb;
}

.affistyle-chart-wrapper {
	position: relative;
	width: 100%;
	height: 260px;
}

.affistyle-analytics-canvas {
	display: block;
	width: 100%;
	height: 100%;
	cursor: crosshair;
}

.affistyle-chart-tooltip {
	position: absolute;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -100%);
	transition: opacity 0.15s ease, transform 0.15s ease;
	background: #0f172a;
	color: #ffffff;
	padding: 6px 12px;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
	z-index: 10;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	white-space: nowrap;
}

.affistyle-chart-tooltip.affistyle-tooltip-visible {
	opacity: 1;
	transform: translate(-50%, -100%) translateY(-6px);
}

.affistyle-chart-tooltip-date {
	font-size: 11px;
	color: #94a3b8;
	font-weight: 500;
	margin-bottom: 2px;
}

.affistyle-chart-tooltip-val {
	display: flex;
	align-items: center;
	gap: 6px;
}

.affistyle-chart-tooltip-badge {
	font-size: 13px;
	font-weight: 700;
	color: #38bdf8;
}

.affistyle-chart-meta-pill.affistyle-pill-revenue {
	background: #ecfdf5;
	color: #047857;
	border-color: #a7f3d0;
}

.affistyle-dot-revenue {
	background: #10b981;
}

.affistyle-chart-tooltip-revenue {
	color: #34d399;
	font-weight: 700;
	font-size: 13px;
}

.affistyle-chart-tooltip-divider {
	width: 1px;
	height: 12px;
	background: #334155;
	margin: 0 4px;
}

.affistyle-trend-badge {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 9999px;
	vertical-align: middle;
	margin-left: 6px;
}

.affistyle-trend-badge.is-up {
	background: #dcfce7;
	color: #15803d;
}

.affistyle-trend-badge.is-down {
	background: #fee2e2;
	color: #b91c1c;
}

.affistyle-trend-badge.is-neutral {
	background: #f1f5f9;
	color: #64748b;
}

.affistyle-btn-inline-cfg {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	color: #334155;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 6px;
	cursor: pointer;
	margin-left: 6px;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.affistyle-btn-inline-cfg:hover,
.affistyle-btn-inline-cfg:focus {
	background: #e2e8f0;
	border-color: #94a3b8;
	color: #0f172a;
}

/*-----------------------------------------------------------------------------
 * Analytics Dashboard 5-KPI Grid, Financial Section, Empty State & Tables
 *----------------------------------------------------------------------------*/
.affistyle-dashboard-kpi-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 20px 0;
}

@media screen and (max-width: 1400px) {
	.affistyle-dashboard-kpi-grid {
		grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	}
}

@media screen and (max-width: 768px) {
	.affistyle-dashboard-kpi-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 480px) {
	.affistyle-dashboard-kpi-grid {
		grid-template-columns: 1fr;
	}
}

.affistyle-kpi-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 20px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.affistyle-kpi-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: transparent;
	transition: background 0.2s ease;
}

.kpi-total-clicks::before {
	background: #4338ca;
}

.kpi-period-clicks::before {
	background: #2563eb;
}

.kpi-unique-visitors::before {
	background: #7c3aed;
}

.kpi-published-boxes::before {
	background: #059669;
}

.kpi-active-boxes::before {
	background: #d97706;
}

.affistyle-kpi-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 10px 22px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
	transform: translateY(-2px);
}

.affistyle-kpi-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	min-height: 36px;
	margin-bottom: 12px;
}

.affistyle-kpi-label {
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.35;
	padding-top: 4px;
}

.affistyle-kpi-icon-wrap {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.2s ease;
	line-height: 1;
}

.affistyle-kpi-card:hover .affistyle-kpi-icon-wrap {
	transform: scale(1.08);
}

.kpi-total-clicks .affistyle-kpi-icon-wrap {
	background: #eef2ff;
	color: #4338ca;
}

.kpi-period-clicks .affistyle-kpi-icon-wrap {
	background: #eff6ff;
	color: #2563eb;
}

.kpi-unique-visitors .affistyle-kpi-icon-wrap {
	background: #f5f3ff;
	color: #7c3aed;
}

.kpi-published-boxes .affistyle-kpi-icon-wrap {
	background: #ecfdf5;
	color: #059669;
}

.kpi-active-boxes .affistyle-kpi-icon-wrap {
	background: #fffbeb;
	color: #d97706;
}

.affistyle-kpi-icon {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin: 0;
	padding: 0;
}

.affistyle-kpi-icon.dashicons:before {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	display: inline-block;
	text-align: center;
}

.affistyle-kpi-value {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
}

.kpi-total-clicks .affistyle-kpi-value {
	color: #312e81;
}

.kpi-period-clicks .affistyle-kpi-value {
	color: #1e40af;
}

.kpi-unique-visitors .affistyle-kpi-value {
	color: #5b21b6;
}

.kpi-published-boxes .affistyle-kpi-value {
	color: #065f46;
}

.kpi-active-boxes .affistyle-kpi-value {
	color: #92400e;
}

.affistyle-kpi-sub {
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
	margin-top: auto;
}

.affistyle-kpi-link {
	color: #059669;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.15s ease;
}

.affistyle-kpi-link:hover,
.affistyle-kpi-link:focus {
	color: #047857;
	text-decoration: underline;
}

/* Financial Earnings Section & Notice */
.affistyle-earnings-dashboard-section {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	padding: 20px 24px;
	margin: 20px 0;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.affistyle-earnings-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 18px;
}

.affistyle-earnings-section-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 8px;
}

.affistyle-earnings-section-subtitle {
	font-size: 12px;
	color: #059669;
	font-weight: 500;
	margin-top: 3px;
}

.affistyle-btn-valuation-cfg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	min-height: 36px;
	background: #ffffff;
	border: 1px solid #3b82f6;
	color: #2563eb;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	text-decoration: none;
	box-sizing: border-box;
}

.affistyle-btn-valuation-cfg:hover,
.affistyle-btn-valuation-cfg:focus {
	background: #eff6ff;
	border-color: #1d4ed8;
	color: #1d4ed8;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.16);
	transform: translateY(-1px);
}

.affistyle-btn-valuation-cfg:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}

.affistyle-btn-valuation-cfg .dashicons,
.affistyle-open-epc-modal-trigger .dashicons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
	margin: 0;
	padding: 0;
	color: inherit;
	vertical-align: middle;
	flex-shrink: 0;
}

.affistyle-btn-valuation-cfg .dashicons::before,
.affistyle-open-epc-modal-trigger .dashicons::before {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
	display: block;
	margin: 0;
	padding: 0;
}

.affistyle-earnings-metrics-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.affistyle-earning-metric-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px 18px;
}

.affistyle-earning-metric-label {
	font-size: 11.5px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.affistyle-earning-metric-val {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	margin-top: 6px;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
}

.affistyle-revenue-unconfigured-card {
	background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
	border: 1px solid #fef08a;
	border-left: 4px solid #eab308;
	border-radius: 12px;
	padding: 20px 24px;
	margin: 20px 0;
	display: flex;
	align-items: flex-start;
	gap: 18px;
	box-shadow: 0 2px 6px -1px rgba(234, 179, 8, 0.08);
}

.affistyle-revenue-unconfigured-icon-wrap {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: #fef9c3;
	border: 1px solid #fef08a;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.affistyle-revenue-unconfigured-icon {
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: #ca8a04;
}

.affistyle-revenue-unconfigured-body {
	flex: 1;
}

.affistyle-revenue-unconfigured-title {
	font-size: 15px;
	font-weight: 700;
	color: #713f12;
	margin-bottom: 5px;
}

.affistyle-revenue-unconfigured-desc {
	font-size: 13px;
	color: #854d0e;
	line-height: 1.6;
	max-width: 960px;
}

.affistyle-revenue-unconfigured-actions {
	display: flex;
	gap: 12px;
	margin-top: 14px;
	flex-wrap: wrap;
	align-items: center;
}

.affistyle-btn-cfg-primary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
	border: none;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 18px;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.affistyle-btn-cfg-primary:hover,
.affistyle-btn-cfg-primary:focus {
	background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
	color: #ffffff;
	transform: translateY(-1px);
}

.affistyle-btn-cfg-primary .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.affistyle-btn-cfg-secondary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #334155;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s ease;
}

.affistyle-btn-cfg-secondary:hover,
.affistyle-btn-cfg-secondary:focus {
	background: #f8fafc;
	border-color: #94a3b8;
	color: #0f172a;
	transform: translateY(-1px);
}

/* Analytics Clean Empty State */
.affistyle-analytics-empty-state {
	background: #ffffff;
	border: 1.5px dashed #cbd5e1;
	border-radius: 16px;
	padding: 50px 24px;
	text-align: center;
	margin-top: 24px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.affistyle-analytics-empty-icon-wrap {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #eef2ff;
	border: 1px solid #e0e7ff;
	color: #6366f1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px auto;
}

.affistyle-analytics-empty-icon-wrap .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
}

.affistyle-analytics-empty-title {
	font-size: 19px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px 0;
}

.affistyle-analytics-empty-desc {
	color: #64748b;
	font-size: 14px;
	max-width: 520px;
	margin: 0 auto 24px auto;
	line-height: 1.6;
}

.affistyle-btn-cta-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	border: none;
	color: #ffffff;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.affistyle-btn-cta-primary:hover,
.affistyle-btn-cta-primary:focus {
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
	color: #ffffff;
	transform: translateY(-1px);
}

.affistyle-btn-cta-primary .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Analytics Data Tables Grid */
.affistyle-analytics-tables-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
	gap: 20px;
	margin-top: 24px;
}

.affistyle-analytics-table-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.affistyle-analytics-table-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 12px;
}

.affistyle-analytics-table-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.affistyle-analytics-table-badge {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	background: #f1f5f9;
	padding: 2px 8px;
	border-radius: 6px;
}

.affistyle-epc-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	transition: opacity 0.2s ease;
	box-sizing: border-box;
}

.affistyle-epc-modal-backdrop.is-open {
	display: flex;
	opacity: 1;
}

.affistyle-epc-modal-dialog {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
	width: 92%;
	max-width: 540px;
	overflow: hidden;
	transform: translateY(12px) scale(0.97);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.affistyle-epc-modal-backdrop.is-open .affistyle-epc-modal-dialog {
	transform: translateY(0) scale(1);
}

.affistyle-epc-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 18px 24px;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
	gap: 16px;
}

.affistyle-epc-modal-title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.affistyle-epc-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #64748b;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: all 0.15s ease;
	flex-shrink: 0;
}

.affistyle-epc-modal-close .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
}

.affistyle-epc-modal-close:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #ef4444;
}

.affistyle-epc-modal-body {
	padding: 24px;
	background: #ffffff;
}

.affistyle-epc-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.affistyle-epc-form-row {
	margin-bottom: 0;
}

.affistyle-epc-label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 6px;
}

.affistyle-epc-desc {
	font-size: 11px;
	color: #64748b;
	margin: 4px 0 0 0;
	line-height: 1.4;
}

.affistyle-epc-input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13.5px;
	color: #0f172a;
	background: #ffffff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.affistyle-epc-input:focus {
	border-color: #2563eb;
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.affistyle-epc-formula-card {
	margin-top: 20px;
	padding: 12px 16px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.affistyle-epc-modal-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 24px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
}

.affistyle-epc-modal-footer .button {
	padding: 6px 16px;
	font-weight: 600;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

@media (max-width: 580px) {
	.affistyle-epc-grid {
		grid-template-columns: 1fr;
	}
}

.affistyle-pro-teaser-card {
	background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	padding: 20px;
	margin-top: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	box-shadow: 0 1px 3px rgba(37, 99, 235, 0.05);
}

.affistyle-pro-teaser-content {
	max-width: 720px;
}

.affistyle-pro-teaser-badge {
	display: inline-block;
	background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.affistyle-pro-teaser-title {
	margin: 0 0 6px 0;
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
}

.affistyle-pro-teaser-desc {
	margin: 0 0 12px 0;
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}

.affistyle-pro-teaser-features {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.affistyle-pro-feature-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: #334155;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.affistyle-pro-upgrade-btn {
	background: #2563eb;
	border-color: #1d4ed8;
	font-weight: 600;
	padding: 6px 16px;
	height: auto;
	font-size: 13px;
}


/**
 * 7.0 Admin List Table Shortcode & Quick Preview Modal
 */
.affistyle-shortcode-pill-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.affistyle-shortcode-pill {
	display: inline-block;
	padding: 3px 8px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	background: #f8fafc;
	color: #1e293b;
	font-size: 12px;
	font-family: Consolas, Monaco, monospace;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.affistyle-shortcode-pill:hover {
	border-color: #2271b1;
	background: #eff6ff;
	color: #1e40af;
}

.affistyle-copy-shortcode-btn.affistyle-copied,
.affistyle-copy-shortcode-btn:focus {
	border-color: #10b981;
	color: #10b981;
}

.affistyle-modal-backdrop {
	display: flex;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.75);
}

.affistyle-modal-box {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	width: 100%;
	max-width: 1040px;
	max-height: 90vh;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.affistyle-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.affistyle-modal-header-info {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.affistyle-modal-title {
	margin: 0;
	color: #0f172a;
	font-size: 15px;
	font-weight: 700;
}

.affistyle-modal-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 9999px;
	background: #e0e7ff;
	color: #3730a3;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.affistyle-viewport-switcher {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f1f5f9;
}

.affistyle-vp-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 30px;
	padding: 0 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.affistyle-vp-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.affistyle-vp-btn.active {
	border-color: #cbd5e1;
	background: #fff;
	color: #2271b1;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.affistyle-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.affistyle-modal-close:hover {
	background: #fee2e2;
	color: #dc2626;
}

.affistyle-modal-body {
	display: flex;
	overflow-y: auto;
	flex: 1;
	align-items: flex-start;
	justify-content: center;
	padding: 24px;
	background: #f1f5f9;
}

.affistyle-modal-loading {
	padding: 40px;
	color: #64748b;
	text-align: center;
}

.affistyle-viewport-canvas {
	width: 100%;
	margin: 0 auto;
	transition: max-width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.affistyle-viewport-canvas.viewport-desktop {
	max-width: 960px;
}

.affistyle-viewport-canvas.viewport-tablet {
	max-width: 768px;
}

.affistyle-viewport-canvas.viewport-mobile {
	max-width: 375px;
}

/* Responsive Viewport Simulation for Mobile Preview */
.affistyle-viewport-canvas.viewport-mobile [class*="affistyle-style-"],
.affistyle-viewport-canvas.viewport-mobile .affistyle-card-wrapper,
.affistyle-viewport-canvas.viewport-mobile .affistyle-widget {
	box-sizing: border-box !important;
	max-width: 100% !important;
	width: 100% !important;
	margin: 12px auto !important;
	padding: 16px !important;
	border-radius: 18px !important;
}

/* Style 1: Modern Horizontal Grid */
.affistyle-viewport-canvas.viewport-mobile .affistyle-card-style-1-grid,
.affistyle-viewport-canvas.viewport-mobile .affistyle-card-wrapper .affistyle-card-style-1-grid,
.affistyle-viewport-canvas.viewport-mobile .affistyle-box-container .affistyle-card-style-1-grid {
	grid-template-columns: 1fr !important;
	gap: 16px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-card-image-box,
.affistyle-viewport-canvas.viewport-mobile .affistyle-card-style-1 .affistyle-card-image-box {
	width: 100% !important;
	min-height: 180px !important;
	padding: 14px !important;
	box-sizing: border-box !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-card-image-box img,
.affistyle-viewport-canvas.viewport-mobile .affistyle-card-style-1 .affistyle-card-image-box img {
	max-height: 160px !important;
	width: auto !important;
	margin: 0 auto !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-card-title,
.affistyle-viewport-canvas.viewport-mobile .affistyle-card-style-1 .affistyle-card-title {
	font-size: 19px !important;
	line-height: 1.35 !important;
	text-align: left !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-pros-cons-wrapper,
.affistyle-viewport-canvas.viewport-mobile .affistyle-hero-pros-cons,
.affistyle-viewport-canvas.viewport-mobile .affistyle-darkspot-pros-cons,
.affistyle-viewport-canvas.viewport-mobile .affistyle-glass-pros-cons,
.affistyle-viewport-canvas.viewport-mobile .affistyle-v-criteria-grid,
.affistyle-viewport-canvas.viewport-mobile .affistyle-v-pros-cons {
	grid-template-columns: 1fr !important;
	gap: 12px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-card-style-1-footer,
.affistyle-viewport-canvas.viewport-mobile .affistyle-card-wrapper .affistyle-card-style-1-footer {
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 12px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-card-style-1-btn-wrap {
	width: 100% !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-card-sponsored,
.affistyle-viewport-canvas.viewport-mobile .affistyle-card-style-1 .affistyle-card-sponsored {
	text-align: center !important;
}

/* Style 3: Editorial Hero Review */
.affistyle-viewport-canvas.viewport-mobile .affistyle-hero-layout {
	flex-direction: column !important;
	align-items: center !important;
	gap: 18px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-hero-media {
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: 240px !important;
	min-height: 180px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-hero-media img {
	max-height: 160px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-hero-content {
	flex: 1 1 100% !important;
	min-width: 0 !important;
	width: 100% !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-hero-action-bar {
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 12px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-hero-cta-wrap,
.affistyle-viewport-canvas.viewport-mobile .affistyle-hero-btn {
	width: 100% !important;
}

/* Style 4: Dark Spotlight Pro */
.affistyle-viewport-canvas.viewport-mobile .affistyle-darkspot-layout {
	flex-direction: column !important;
	align-items: center !important;
	gap: 18px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-darkspot-media {
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: 240px !important;
	height: 200px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-darkspot-media img {
	max-height: 160px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-darkspot-content {
	flex: 1 1 100% !important;
	min-width: 0 !important;
	width: 100% !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-darkspot-title {
	font-size: 20px !important;
	line-height: 1.3 !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-darkspot-footer {
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 14px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-darkspot-cta-wrap,
.affistyle-viewport-canvas.viewport-mobile .affistyle-darkspot-btn {
	width: 100% !important;
}

/* Style 5: Hero Glass Overlay */
.affistyle-viewport-canvas.viewport-mobile .affistyle-glass-media-wrapper {
	flex-direction: column !important;
	min-height: auto !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-glass-bg-img {
	position: relative !important;
	width: 100% !important;
	height: 200px !important;
	border-radius: 16px 16px 0 0 !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-glass-gradient-shade {
	display: none !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-glass-panel {
	position: relative !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	width: calc(100% - 20px) !important;
	margin: -20px 10px 10px 10px !important;
	padding: 16px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-glass-header-row {
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 12px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-glass-actions,
.affistyle-viewport-canvas.viewport-mobile .affistyle-glass-btn {
	width: 100% !important;
}

/* Style 6: Verdict Score Card */
.affistyle-viewport-canvas.viewport-mobile .affistyle-style-6 .affistyle-v-wrap {
	flex-direction: column !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-style-6 .affistyle-v-badge {
	min-width: auto !important;
	width: calc(100% - 24px) !important;
	margin: 12px 12px 0 12px !important;
	padding: 18px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-style-6 .affistyle-v-body {
	width: 100% !important;
	padding: 16px 12px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-style-6 .affistyle-v-footer {
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 12px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-style-6 .affistyle-v-cta-wrap,
.affistyle-viewport-canvas.viewport-mobile .affistyle-style-6 .affistyle-v-btn {
	width: 100% !important;
}

/* Style 7: Multi-Retailer Price List */
.affistyle-viewport-canvas.viewport-mobile .affistyle-s7-header {
	padding: 16px !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-s7-meta {
	min-width: 0 !important;
	width: 100% !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-s7-row {
	flex-direction: column !important;
	align-items: stretch !important;
	padding: 14px 16px !important;
	gap: 10px !important;
	text-align: center !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-s7-row-left,
.affistyle-viewport-canvas.viewport-mobile .affistyle-s7-row-right {
	justify-content: space-between !important;
	width: 100% !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-s7-btn {
	width: 100% !important;
}

/* Style 8: Horizontal Review Card */
.affistyle-viewport-canvas.viewport-mobile .affistyle-style-8 .affistyle-v-top {
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-style-8 .affistyle-v-meta {
	min-width: 0 !important;
	width: 100% !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-style-8 .affistyle-v-grid {
	grid-template-columns: 1fr !important;
	gap: 12px !important;
}

/* Style 9, 10, 11, 12, 13: Compact, Deals, Showcase, Ranked */
.affistyle-viewport-canvas.viewport-mobile .affistyle-split-pricing-grid,
.affistyle-viewport-canvas.viewport-mobile .affistyle-compact-grid,
.affistyle-viewport-canvas.viewport-mobile .affistyle-deals-grid,
.affistyle-viewport-canvas.viewport-mobile .affistyle-showcase-grid,
.affistyle-viewport-canvas.viewport-mobile .affistyle-ranked-grid {
	display: flex !important;
	flex-direction: column !important;
	grid-template-columns: 1fr !important;
	width: 100% !important;
	gap: 16px !important;
}

/* Style 14 & 16: Versus Side-by-Side Dual Grids */
.affistyle-viewport-canvas.viewport-mobile .affistyle-versus-grid,
.affistyle-viewport-canvas.viewport-mobile .affistyle-cyber-grid,
.affistyle-viewport-canvas.viewport-mobile .affistyle-performance-showcase-16,
.affistyle-viewport-canvas.viewport-mobile [class*="versus-grid"],
.affistyle-viewport-canvas.viewport-mobile [class*="cyber-grid"] {
	grid-template-columns: 1fr !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-versus-badge,
.affistyle-viewport-canvas.viewport-mobile .affistyle-cyber-badge {
	margin: 10px auto !important;
}

/* Style 15: Spec Comparison Table */
.affistyle-viewport-canvas.viewport-mobile .affistyle-list-15,
.affistyle-viewport-canvas.viewport-mobile .affistyle-spec-table {
	overflow-x: auto !important;
	display: block !important;
	width: 100% !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-list-15-row {
	flex-direction: column !important;
	align-items: stretch !important;
}

/* Universal Button & CTA Sizing for Mobile Preview */
.affistyle-viewport-canvas.viewport-mobile .affistyle-card-button,
.affistyle-viewport-canvas.viewport-mobile .affistyle-btn,
.affistyle-viewport-canvas.viewport-mobile .affistyle-hero-btn,
.affistyle-viewport-canvas.viewport-mobile .affistyle-darkspot-btn,
.affistyle-viewport-canvas.viewport-mobile .affistyle-glass-btn,
.affistyle-viewport-canvas.viewport-mobile .affistyle-v-btn,
.affistyle-viewport-canvas.viewport-mobile .affistyle-retailer-btn,
.affistyle-viewport-canvas.viewport-mobile .affistyle-multi-store-group,
.affistyle-viewport-canvas.viewport-mobile .affistyle-multi-retailers-group {
	display: flex !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 44px !important;
	box-sizing: border-box !important;
}

.affistyle-viewport-canvas.viewport-mobile .affistyle-secondary-retailer-btn {
	flex: 1 1 calc(50% - 8px) !important;
	min-width: 120px !important;
	justify-content: center !important;
	box-sizing: border-box !important;
}

.affistyle-modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
}

.affistyle-modal-footer-left {
	display: flex;
	align-items: center;
	gap: 10px;
}


/**
 * 8.0 Animations & Utilities
 */
@keyframes affistyle-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.dashicons.spin,
.affistyle-spin {
	display: inline-block;
	animation: affistyle-spin 1s infinite linear;
}

/**
 * 8.1 Estimated Earnings Metabox & Valuation Styles
 */
.affistyle-earning-config-card {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	padding: 16px;
	margin: 20px 0;
}

.affistyle-earning-config-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}

.affistyle-earning-icon {
	color: #059669;
	font-size: 22px;
	width: 22px;
	height: 22px;
	margin-top: 2px;
}

.affistyle-earning-type-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding: 10px 14px;
	background: #ffffff;
	border: 1px solid #d1fae5;
	border-radius: 6px;
	margin-bottom: 14px;
}

.affistyle-earning-type-option {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
}

.affistyle-earning-panel {
	background: #ffffff;
	border: 1px solid #d1fae5;
	border-radius: 6px;
	padding: 14px;
	margin-bottom: 12px;
}

.affistyle-earning-preview-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid #a7f3d0;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #065f46;
}



/**
 * 9.0 Responsive Media Queries
 */
@media all and (max-width: 782px) {
	.affistyle-field-row {
		flex-direction: column;
		gap: 0;
	}

	.affistyle-quick-fill-input-row {
		flex-direction: column;
		align-items: stretch;
	}

	.affistyle-quick-fill-input-row .button-primary {
		width: 100%;
	}

	.affistyle-provider-grid {
		grid-template-columns: 1fr;
	}

	.affistyle-earning-type-selector {
		flex-direction: column;
		gap: 8px;
	}

	.affistyle-revenue-unconfigured-card {
		grid-column: span 1;
		flex-direction: column;
		text-align: center;
	}
}

/**
 * 10.0 Cards List Table SaaS Theme (edit.php?post_type=affistyle_box)
 */
body.post-type-affistyle_box.edit-php {
	background-color: #f1f5f9;
}

/* Screen Meta Links and Options Drawer */
body.post-type-affistyle_box [id="screen-meta-links"] {
	margin: 8px 20px 8px 0;
	float: right;
}

body.post-type-affistyle_box [id="screen-options-link-wrap"] {
	border: none;
	background: transparent;
	box-shadow: none;
}

body.post-type-affistyle_box [id="show-settings-link"] {
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #64748b;
	border-radius: 6px;
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.post-type-affistyle_box [id="show-settings-link"]:hover,
body.post-type-affistyle_box [id="show-settings-link"]:focus {
	color: #4f46e5;
	border-color: #818cf8;
	background: #eef2ff;
}

body.post-type-affistyle_box [id="screen-meta"] {
	margin: 0 20px 16px 0;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
	background: #ffffff;
}

/* Top Header Wrapper on List Screen */
body.post-type-affistyle_box .affistyle-list-header-wrapper {
	clear: both;
	margin: 0 20px 20px 0;
}

/* Main Content Card Wrapper */
body.post-type-affistyle_box.edit-php .wrap {
	margin: 0 20px 40px 0;
	padding: 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
	overflow: hidden;
}

/* Suppress Core Inline Heading & Actions */
body.post-type-affistyle_box.edit-php .wrap > .wp-heading-inline,
body.post-type-affistyle_box.edit-php .wrap > .page-title-action,
body.post-type-affistyle_box.edit-php .wrap > .wp-header-end {
	display: none;
}

/* Filter Navigation Pills (.subsubsub) */
body.post-type-affistyle_box .wrap .subsubsub {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 20px 14px 20px;
	margin: 0;
	border-bottom: none;
	float: none;
	list-style: none;
}

body.post-type-affistyle_box .wrap .subsubsub li {
	margin: 0;
	padding: 0;
	font-size: 0;
}

body.post-type-affistyle_box .wrap .subsubsub li a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	text-decoration: none;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.post-type-affistyle_box .wrap .subsubsub li a:hover {
	background: #eef2ff;
	color: #4f46e5;
	border-color: #c7d2fe;
}

body.post-type-affistyle_box .wrap .subsubsub li a.current {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: #ffffff;
	border-color: transparent;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

body.post-type-affistyle_box .wrap .subsubsub li a.current .count {
	color: #e0e7ff;
}

/* Table Toolbar Controls (.tablenav) */
body.post-type-affistyle_box .tablenav {
	height: auto;
	padding: 12px 20px;
	margin: 0;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	clear: none;
}

body.post-type-affistyle_box #posts-filter:has(.no-items) .tablenav {
	display: none;
}

body.post-type-affistyle_box .tablenav.top {
	border-bottom: 1px solid #f1f5f9;
}

body.post-type-affistyle_box .tablenav.bottom {
	border-top: 1px solid #f1f5f9;
	background: #f8fafc;
}

body.post-type-affistyle_box .tablenav .actions select {
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 13px;
	color: #334155;
	background-color: #ffffff;
	min-height: 38px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

body.post-type-affistyle_box .tablenav .actions select:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
	outline: none;
}

body.post-type-affistyle_box .tablenav .actions .button {
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
	font-weight: 600;
	font-size: 13px;
	border-radius: 8px;
	padding: 6px 14px;
	min-height: 38px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

body.post-type-affistyle_box .tablenav .actions .button:hover {
	background: #f8fafc;
	color: #0f172a;
	border-color: #94a3b8;
}

body.post-type-affistyle_box .tablenav .tablenav-pages {
	color: #64748b;
	font-size: 13px;
}

body.post-type-affistyle_box .tablenav .tablenav-pages .pagination-links .button {
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #ffffff;
	color: #475569;
}

/* WP List Table */
body.post-type-affistyle_box table.wp-list-table {
	border: none;
	box-shadow: none;
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	margin: 0;
	background: #ffffff;
}

body.post-type-affistyle_box table.wp-list-table thead th {
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 13px 16px;
}

body.post-type-affistyle_box table.wp-list-table tfoot {
	display: none;
}

body.post-type-affistyle_box table.wp-list-table thead th a {
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

body.post-type-affistyle_box table.wp-list-table thead th a:hover {
	color: #4f46e5;
}

body.post-type-affistyle_box table.wp-list-table tbody tr {
	transition: background-color 0.15s ease;
}

body.post-type-affistyle_box table.wp-list-table tbody tr:hover {
	background: #f8fafc;
}

body.post-type-affistyle_box table.wp-list-table tbody th,
body.post-type-affistyle_box table.wp-list-table tbody td {
	padding: 16px;
	vertical-align: middle !important;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
	font-size: 13px;
}

body.post-type-affistyle_box table.wp-list-table tbody tr:last-child th,
body.post-type-affistyle_box table.wp-list-table tbody tr:last-child td {
	border-bottom: none;
}

/* Checkbox Column */
body.post-type-affistyle_box table.wp-list-table th.check-column,
body.post-type-affistyle_box table.wp-list-table td.check-column {
	padding: 16px 10px 16px 18px;
	width: 2.5em;
	text-align: center;
	vertical-align: middle !important;
}

body.post-type-affistyle_box table.wp-list-table th.check-column input,
body.post-type-affistyle_box table.wp-list-table td.check-column input {
	margin: 0 auto;
	vertical-align: middle;
}

/* Thumbnail Column */
body.post-type-affistyle_box table.wp-list-table .column-affistyle_thumb {
	width: 58px;
	min-width: 58px;
	max-width: 58px;
	padding: 12px 6px 12px 14px;
	text-align: center;
	vertical-align: middle !important;
}

body.post-type-affistyle_box .affistyle-table-thumb-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	padding: 3px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.post-type-affistyle_box .affistyle-table-thumb-link:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}

body.post-type-affistyle_box .affistyle-table-thumb-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

body.post-type-affistyle_box .affistyle-thumb-empty {
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

body.post-type-affistyle_box .affistyle-thumb-empty .dashicons {
	color: #94a3b8;
	font-size: 22px;
	width: 22px;
	height: 22px;
}

/* Title Column */
body.post-type-affistyle_box table.wp-list-table .column-title,
body.post-type-affistyle_box table.wp-list-table .column-affistyle_card_title {
	padding: 16px 14px;
	vertical-align: middle !important;
}

body.post-type-affistyle_box table.wp-list-table .column-title strong,
body.post-type-affistyle_box table.wp-list-table .column-affistyle_card_title strong {
	display: block;
	margin-bottom: 4px;
}

body.post-type-affistyle_box table.wp-list-table .affistyle-list-title-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}

body.post-type-affistyle_box table.wp-list-table .column-title .row-title,
body.post-type-affistyle_box table.wp-list-table .column-affistyle_card_title .row-title {
	display: inline-block;
	color: #0f172a;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.2px;
	line-height: 1.35;
	text-decoration: none;
	transition: color 0.15s ease;
}

body.post-type-affistyle_box table.wp-list-table .column-title .row-title:hover,
body.post-type-affistyle_box table.wp-list-table .column-affistyle_card_title .row-title:hover {
	color: #2563eb;
}

body.post-type-affistyle_box table.wp-list-table .affistyle-title-meta-line {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

body.post-type-affistyle_box table.wp-list-table .affistyle-pill-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 7px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

body.post-type-affistyle_box table.wp-list-table .affistyle-badge-id {
	border: 1px solid #e2e8f0;
	background: #f1f5f9;
	color: #64748b;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 10.5px;
	font-weight: 600;
}

body.post-type-affistyle_box table.wp-list-table .affistyle-badge-style {
	border: 1px solid #dbeafe;
	background: #eff6ff;
	color: #2563eb;
	letter-spacing: 0.02em;
}

body.post-type-affistyle_box table.wp-list-table .affistyle-badge-price {
	border: 1px solid #a7f3d0;
	background: #ecfdf5;
	color: #059669;
	font-weight: 800;
}

body.post-type-affistyle_box table.wp-list-table .affistyle-title-subtitle {
	color: #64748b;
	font-size: 12px;
	font-weight: 500;
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.post-type-affistyle_box table.wp-list-table .row-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	margin-top: 6px;
	color: #94a3b8;
	font-size: 12px;
}

body.post-type-affistyle_box table.wp-list-table .row-actions a,
body.post-type-affistyle_box table.wp-list-table .row-actions button.button-link {
	padding: 2px 5px;
	border-radius: 4px;
	color: #6366f1;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body.post-type-affistyle_box table.wp-list-table .row-actions a:hover,
body.post-type-affistyle_box table.wp-list-table .row-actions button.button-link:hover {
	background: #eef2ff;
	color: #4338ca;
}

body.post-type-affistyle_box table.wp-list-table .row-actions .trash a {
	color: #ef4444;
}

body.post-type-affistyle_box table.wp-list-table .row-actions .trash a:hover {
	background: #fef2f2;
	color: #dc2626;
}

body.post-type-affistyle_box table.wp-list-table .row-actions [class~="affistyle_preview"] a {
	padding: 2px 7px;
	border: 1px solid #a7f3d0;
	border-radius: 4px;
	background: #ecfdf5;
	color: #059669;
	font-weight: 700;
}

body.post-type-affistyle_box table.wp-list-table .row-actions [class~="affistyle_preview"] a:hover {
	background: #d1fae5;
	color: #047857;
}

/* Shortcode Column Actions */
body.post-type-affistyle_box .affistyle-column-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

body.post-type-affistyle_box .affistyle-shortcode-pill {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 4px 8px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12px;
	color: #334155;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

body.post-type-affistyle_box .affistyle-shortcode-pill:hover {
	background: #e2e8f0;
	border-color: #cbd5e1;
}

body.post-type-affistyle_box .affistyle-copy-shortcode-btn {
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #475569;
	border-radius: 6px;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.post-type-affistyle_box .affistyle-copy-shortcode-btn:hover {
	background: #f8fafc;
	color: #0f172a;
	border-color: #94a3b8;
}

body.post-type-affistyle_box .affistyle-open-preview-btn {
	border: 1px solid #a7f3d0;
	background: #ecfdf5;
	color: #059669;
	border-radius: 6px;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.post-type-affistyle_box .affistyle-open-preview-btn:hover {
	background: #d1fae5;
	border-color: #6ee7b7;
	color: #047857;
}

/* Total Clicks Column */
body.post-type-affistyle_box table.wp-list-table .column-affistyle_clicks strong {
	display: inline-flex;
	align-items: center;
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 700;
}

/* Empty State */
body.post-type-affistyle_box table.wp-list-table .no-items td {
	padding: 56px 24px;
	text-align: center;
	background: #ffffff;
}

body.post-type-affistyle_box .affistyle-empty-state-wrap {
	max-width: 480px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

body.post-type-affistyle_box .affistyle-empty-state-icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: #eef2ff;
	color: #4f46e5;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin-bottom: 2px;
}

body.post-type-affistyle_box .affistyle-empty-state-title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	letter-spacing: -0.01em;
}

body.post-type-affistyle_box .affistyle-empty-state-desc {
	font-size: 13.5px;
	color: #64748b;
	margin: 0;
	line-height: 1.55;
	max-width: 420px;
}

body.post-type-affistyle_box .affistyle-empty-state-btn {
	margin-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 20px;
	border-radius: 8px;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: #ffffff;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.post-type-affistyle_box .affistyle-empty-state-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
	color: #ffffff;
}

/* PRO Feature Gates & Locked Controls (Dual Destination & FTC Disclosure) */

.affistyle-pro-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6366f1;
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	padding: 2px 7px;
	border-radius: 9999px;
	line-height: 1.2;
	vertical-align: middle;
}

.affistyle-pro-pill .dashicons {
	font-size: 11px;
	width: 11px;
	height: 11px;
	line-height: 11px;
}

.affistyle-switch-locked {
	opacity: 0.65;
	cursor: not-allowed;
}

.affistyle-switch-locked input:disabled + .affistyle-slider {
	cursor: not-allowed;
	background-color: #94a3b8;
}

.affistyle-pro-feature-lock-card {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	padding: 16px 20px;
	margin-top: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.affistyle-pro-feature-lock-card:hover {
	border-color: #6366f1;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.affistyle-pro-lock-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}

.affistyle-pro-lock-title-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.affistyle-pro-lock-title-wrap .dashicons {
	color: #6366f1;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.affistyle-pro-lock-title {
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
}

.affistyle-pro-lock-desc {
	font-size: 12px;
	line-height: 1.5;
	color: #64748b;
	margin: 0 0 12px;
}

.affistyle-pro-lock-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.affistyle-btn-pro-unlock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 7px 14px;
	border-radius: 8px;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.affistyle-btn-pro-unlock:hover {
	background: linear-gradient(135deg, #4f46e5, #4338ca);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
}

.affistyle-btn-pro-unlock .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/*----------------------------------------------------------------------------
 * 12. Cards List Screen Refinements (.edit-php)
 *----------------------------------------------------------------------------*/

body.post-type-affistyle_box.edit-php .search-box {
	margin: 12px 20px 14px;
	float: right;
	display: flex;
	align-items: center;
	gap: 8px;
}

body.post-type-affistyle_box.edit-php .search-box input[type="search"] {
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 13px;
	color: #0f172a;
	background: #f8fafc;
	min-height: 38px;
	width: 220px;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.post-type-affistyle_box.edit-php .search-box input[type="search"]:focus {
	background: #ffffff;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
	outline: none;
}

body.post-type-affistyle_box.edit-php .search-box input[type="submit"] {
	background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	min-height: 38px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.post-type-affistyle_box.edit-php .search-box input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}

body.post-type-affistyle_box .tablenav .displaying-num {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	background: #f1f5f9;
	padding: 4px 10px;
	border-radius: 20px;
	display: inline-block;
}

body.post-type-affistyle_box table.wp-list-table .column-link_health,
body.post-type-affistyle_box table.wp-list-table .column-health {
	color: #64748b;
	font-size: 12px;
	width: 140px;
	vertical-align: middle;
}

body.post-type-affistyle_box .affistyle-nav-link-pro {
	color: #fbbf24;
	font-weight: 700;
}

body.post-type-affistyle_box .affistyle-nav-link-pro:hover {
	color: #fef08a;
}

/*----------------------------------------------------------------------------
 * 13. Upgrade to Pro Showcase Page (.affistyle-go-pro-wrap)
 *----------------------------------------------------------------------------*/

.affistyle-go-pro-wrap {
	margin: 15px 20px 40px 0;
	max-width: 1200px;
}

.affistyle-pro-hero {
	background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
	border-radius: 16px;
	padding: 44px 36px 36px;
	color: #fff;
	margin: 20px 0 28px;
	box-shadow: 0 10px 30px -5px rgba(30, 27, 75, 0.35);
	position: relative;
	overflow: hidden;
}

.affistyle-pro-hero::after {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
	pointer-events: none;
}

.affistyle-pro-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 20px;
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #fef08a;
	margin-bottom: 14px;
}

.affistyle-pro-hero-title {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 12px;
	color: #fff;
	max-width: 820px;
}

.affistyle-pro-hero-subtitle {
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 24px;
	max-width: 780px;
}

.affistyle-pro-hero-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.affistyle-btn-pro-hero {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.affistyle-btn-pro-hero:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.affistyle-btn-pro-secondary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 10px;
	transition: background-color 0.15s ease;
}

.affistyle-btn-pro-secondary:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.affistyle-pro-hero-trust-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	margin-bottom: 24px;
}

.affistyle-pro-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: #e0e7ff;
}

.affistyle-pro-trust-item .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
	color: #a7f3d0;
}

.affistyle-pro-metrics-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}

.affistyle-pro-metric-box {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	backdrop-filter: blur(4px);
}

.affistyle-metric-val {
	font-size: 22px;
	font-weight: 800;
	color: #fef08a;
	line-height: 1.2;
}

.affistyle-metric-lbl {
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
	line-height: 1.35;
}

/* Section Common Headers */
.affistyle-pro-section-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 32px;
}

.affistyle-pro-pill {
	display: inline-block;
	background: #e0e7ff;
	color: #4338ca;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 10px;
}

.affistyle-pro-section-header h2 {
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 10px;
	line-height: 1.3;
}

.affistyle-pro-section-header p {
	font-size: 14.5px;
	line-height: 1.6;
	color: #64748b;
	margin: 0;
}

/* 2.0 The 6 Revenue Engines Grid */
.affistyle-pro-engines-section {
	margin-bottom: 40px;
}

.affistyle-pro-engines-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
}

.affistyle-engine-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 24px 22px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.affistyle-engine-card:hover {
	transform: translateY(-3px);
	border-color: #cbd5e1;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.affistyle-engine-icon-wrap {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.affistyle-engine-icon-wrap .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
	line-height: 22px;
}

.affistyle-engine-tag {
	display: inline-block;
	align-self: flex-start;
	background: #f1f5f9;
	color: #475569;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.affistyle-engine-card h3 {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 14px;
	line-height: 1.35;
}

.affistyle-engine-problem {
	background: #fff1f2;
	border-left: 3px solid #f43f5e;
	padding: 10px 12px;
	border-radius: 0 6px 6px 0;
	margin-bottom: 12px;
}

.affistyle-engine-problem strong {
	display: block;
	color: #9f1239;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.affistyle-engine-problem p {
	font-size: 12.5px;
	line-height: 1.5;
	color: #475569;
	margin: 0;
}

.affistyle-engine-solution {
	background: #f0fdf4;
	border-left: 3px solid #10b981;
	padding: 10px 12px;
	border-radius: 0 6px 6px 0;
	margin-bottom: 16px;
	flex-grow: 1;
}

.affistyle-engine-solution strong {
	display: block;
	color: #065f46;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.affistyle-engine-solution p {
	font-size: 12.5px;
	line-height: 1.5;
	color: #334155;
	margin: 0;
}

.affistyle-engine-footer {
	border-top: 1px solid #f1f5f9;
	padding-top: 12px;
	margin-top: auto;
}

.affistyle-engine-result-badge {
	font-size: 12px;
	font-weight: 700;
	color: #059669;
	background: #ecfdf5;
	padding: 4px 10px;
	border-radius: 20px;
	display: inline-block;
}

/* 3.0 Comparison Matrix Section */
.affistyle-pro-comparison-section {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 36px 32px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
	margin-bottom: 40px;
}

.affistyle-pro-comparison-header {
	text-align: center;
	margin-bottom: 28px;
}

.affistyle-pro-comparison-header h2 {
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px;
}

.affistyle-pro-comparison-header p {
	font-size: 14px;
	color: #64748b;
	margin: 0;
}

.affistyle-pro-table-wrapper {
	overflow-x: auto;
}

.affistyle-pro-comparison-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.affistyle-pro-comparison-table th {
	background: #f8fafc;
	padding: 14px 18px;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #475569;
	border-bottom: 2px solid #e2e8f0;
}

.affistyle-pro-comparison-table th.col-free {
	color: #64748b;
}

.affistyle-pro-comparison-table th.col-pro {
	color: #4338ca;
	background: #eef2ff;
}

.affistyle-pro-comparison-table td {
	padding: 14px 18px;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
	vertical-align: middle;
}

.affistyle-pro-comparison-table .row-category td {
	background: #f1f5f9;
	color: #1e293b;
	font-size: 13px;
	font-weight: 700;
	padding: 12px 18px;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

.affistyle-pro-comparison-table td.col-feature strong {
	display: block;
	color: #0f172a;
	font-size: 14px;
	margin-bottom: 2px;
}

.affistyle-pro-comparison-table td.col-feature span {
	font-size: 12px;
	color: #64748b;
}

.affistyle-pro-comparison-table td.col-free {
	color: #64748b;
}

.affistyle-pro-comparison-table td.col-free .cross {
	color: #dc2626;
	font-weight: 700;
	font-size: 16px;
}

.affistyle-pro-comparison-table td.col-pro {
	background: #faf5ff;
	color: #4338ca;
}

.affistyle-pro-comparison-table tbody tr:hover td {
	background-color: #f8fafc;
}

.affistyle-pro-comparison-table tbody tr:hover td.col-pro {
	background-color: #f3e8ff;
}

/* 4.0 Risk-Free 14-Day Guarantee Box */
.affistyle-pro-guarantee-card {
	background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
	border: 2px dashed #059669;
	border-radius: 16px;
	padding: 32px;
	display: flex;
	gap: 24px;
	align-items: center;
	margin-bottom: 40px;
}

.affistyle-pro-guarantee-shield {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #10b981;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.affistyle-pro-guarantee-shield .dashicons {
	font-size: 36px;
	width: 36px;
	height: 36px;
	line-height: 36px;
}

.affistyle-pro-guarantee-body h3 {
	font-size: 19px;
	font-weight: 800;
	color: #065f46;
	margin: 0 0 8px;
}

.affistyle-pro-guarantee-body p {
	font-size: 13.5px;
	line-height: 1.6;
	color: #1e3a2f;
	margin: 0;
}

/* 5.0 FAQ Accordion */
.affistyle-pro-faq-section {
	margin-bottom: 40px;
}

.affistyle-pro-faq-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 860px;
	margin: 0 auto;
}

.affistyle-faq-item {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	transition: border-color 0.15s ease;
}

.affistyle-faq-item[open] {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.affistyle-faq-item summary {
	padding: 16px 20px;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	user-select: none;
	list-style: none;
}

.affistyle-faq-item summary::-webkit-details-marker {
	display: none;
}

.affistyle-faq-item summary .dashicons {
	font-size: 18px;
	color: #64748b;
	transition: transform 0.2s ease;
}

.affistyle-faq-item[open] summary .dashicons {
	transform: rotate(180deg);
}

.affistyle-faq-content {
	padding: 0 20px 18px;
	font-size: 13.5px;
	line-height: 1.6;
	color: #475569;
}

.affistyle-faq-content p {
	margin: 0;
}

/* 6.0 Closing High-Converting CTA Box */
.affistyle-pro-footer-cta-card {
	background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
	border-radius: 16px;
	padding: 40px 32px;
	text-align: center;
	color: #fff;
	box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.3);
}

.affistyle-pro-footer-cta-card h3 {
	font-size: 24px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px;
}

.affistyle-pro-footer-cta-card p {
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.85);
	max-width: 620px;
	margin: 0 auto 24px;
	line-height: 1.55;
}

.affistyle-pro-footer-actions {
	display: flex;
	justify-content: center;
}

@media (max-width: 640px) {
	.affistyle-pro-hero {
		padding: 28px 20px;
	}

	.affistyle-pro-hero-title {
		font-size: 22px;
	}

	.affistyle-pro-guarantee-card {
		flex-direction: column;
		text-align: center;
	}

	.affistyle-pro-engines-grid {
		grid-template-columns: 1fr;
	}
}

/* A/B Split Testing Styles */

.affistyle-ab-preview-tabs {
	display: inline-flex;
	align-items: center;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 2px;
	gap: 2px;
	margin: 0 4px;
}

.affistyle-ab-tab-btn {
	background: transparent;
	border: none;
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 600;
	color: #64748b;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.affistyle-ab-tab-btn:hover {
	color: #0f172a;
}

.affistyle-ab-tab-btn.active {
	background: #ffffff;
	color: #2563eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.affistyle-ab-panel-card {
	transition: box-shadow 0.2s ease;
}

.affistyle-ab-panel-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/*-----------------------------------------------------------------------------
 * 10.0 Pro Keywords Tag Manager Dock
 *----------------------------------------------------------------------------*/
.affistyle-keywords-panel {
	margin-bottom: 20px;
}

.affistyle-keywords-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.affistyle-keywords-badges {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.affistyle-badge-pro-unlimited {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 12px;
	letter-spacing: 0.3px;
	box-shadow: 0 1px 3px rgba(217, 119, 6, 0.25);
	text-transform: uppercase;
}

.affistyle-badge-count {
	background: #e2e8f0;
	color: #334155;
	font-size: 11.5px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 12px;
}

.affistyle-tag-manager-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 6px;
}

.affistyle-keyword-tags-dock {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px 10px;
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	cursor: text;
}

.affistyle-keyword-tags-dock:focus-within {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.affistyle-keyword-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
	user-select: none;
}

.affistyle-keyword-tag:hover {
	background: #dbeafe;
	border-color: #93c5fd;
}

.affistyle-tag-text {
	display: inline-block;
}

.affistyle-tag-remove {
	background: none;
	border: none;
	padding: 0;
	margin-left: 2px;
	color: #60a5fa;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.affistyle-tag-remove:hover {
	background: #ef4444;
	color: #ffffff;
}

.affistyle-keyword-tag.is-duplicate {
	animation: affistyle-kw-pulse 0.4s ease-in-out;
	background: #fee2e2;
	border-color: #fca5a5;
	color: #991b1b;
}

@keyframes affistyle-kw-pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.08);
	}
}

.affistyle-tag-input {
	flex: 1;
	min-width: 180px;
	border: none;
	background: transparent;
	padding: 4px 6px;
	font-size: 13px;
	color: #1e293b;
	outline: none;
	box-shadow: none;
}

.affistyle-tag-input:focus {
	outline: none;
	box-shadow: none;
	border: none;
}

.affistyle-tag-actions-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.affistyle-tag-actions-left {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.affistyle-btn-suggest-kw {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 12px;
	color: #2563eb;
	border-color: #93c5fd;
	background: #f0f7ff;
}

.affistyle-btn-suggest-kw:hover {
	background: #dbeafe;
	color: #1d4ed8;
	border-color: #60a5fa;
}

.affistyle-btn-clear-kw {
	font-size: 12px;
	text-decoration: none;
	color: #94a3b8;
}

.affistyle-btn-clear-kw:hover {
	color: #ef4444;
}

.affistyle-tag-tip-text {
	font-size: 11.5px;
	color: #64748b;
	line-height: 1.4;
}

/*-----------------------------------------------------------------------------
 * 11.0 Pro Analytics Hub & Donut Charts
 *----------------------------------------------------------------------------*/
.affistyle-pro-analytics-section {
	margin-top: 24px;
	margin-bottom: 24px;
}

.affistyle-pro-analytics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.affistyle-pro-chart-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.affistyle-pro-chart-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	border-color: #cbd5e1;
}

.affistyle-pro-chart-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f1f5f9;
}

.affistyle-pro-chart-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.affistyle-pro-chart-icon {
	font-size: 20px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #f1f5f9;
	color: #4f46e5;
}

.affistyle-pro-chart-icon .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

.affistyle-pro-chart-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 3px;
	line-height: 1.3;
}

.affistyle-pro-chart-subtitle {
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
	display: block;
}

.affistyle-pro-pill {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

.affistyle-donut-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 24px;
	padding: 10px 0;
}

.affistyle-donut-canvas-container {
	position: relative;
	width: 220px;
	height: 220px;
	flex-shrink: 0;
	margin: 0 auto;
}

.affistyle-donut-canvas-container canvas {
	display: block;
	width: 220px;
	height: 220px;
	cursor: pointer;
}

.affistyle-donut-center-label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	text-align: center;
	width: 100px;
}

.affistyle-donut-center-val {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.1;
	font-feature-settings: "tnum";
}

.affistyle-donut-center-sub {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	margin-top: 2px;
}

.affistyle-donut-legend {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-width: 160px;
	padding: 4px 0;
}

.affistyle-donut-legend-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 12.5px;
	transition: background-color 0.15s ease, border-color 0.15s ease;
	cursor: default;
}

.affistyle-donut-legend-item:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

.affistyle-donut-legend-left {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #334155;
}

.affistyle-donut-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.affistyle-donut-legend-label {
	color: #1e293b;
}

.affistyle-donut-legend-right {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.affistyle-donut-legend-count {
	font-weight: 700;
	color: #0f172a;
	font-feature-settings: "tnum";
}

.affistyle-donut-legend-pct {
	font-size: 11.5px;
	color: #64748b;
	font-feature-settings: "tnum";
	min-width: 32px;
	text-align: right;
}

/*-----------------------------------------------------------------------------
 * 12.0 Pro Analytics Top Cards Bar Chart
 *----------------------------------------------------------------------------*/
.affistyle-top-cards-bars-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.affistyle-top-card-bar-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.affistyle-top-card-bar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 12.5px;
}

.affistyle-top-card-title-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.affistyle-top-card-rank {
	font-weight: 800;
	color: #64748b;
	font-size: 11px;
	background: #e2e8f0;
	padding: 1px 6px;
	border-radius: 4px;
}

.affistyle-top-card-title {
	font-weight: 600;
	color: #1e293b;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 220px;
}

.affistyle-top-card-edit-link {
	font-size: 11px;
	color: #2563eb;
	text-decoration: none;
	margin-left: 4px;
}

.affistyle-top-card-clicks-badge {
	font-size: 11.5px;
	font-weight: 700;
	color: #047857;
	background: #ecfdf5;
	padding: 2px 8px;
	border-radius: 10px;
	white-space: nowrap;
}

.affistyle-top-card-bar-track {
	height: 8px;
	background: #f1f5f9;
	border-radius: 4px;
	overflow: hidden;
	width: 100%;
}

.affistyle-top-card-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
	border-radius: 4px;
	transition: width 0.4s ease;
}

/*-----------------------------------------------------------------------------
 * 13.0 Hourly Peak Conversion Timeline & Tooltip
 *----------------------------------------------------------------------------*/
.affistyle-pro-hourly-card {
	margin-bottom: 24px;
}

.affistyle-hourly-chart-wrapper {
	position: relative;
	width: 100%;
	padding: 6px 0;
}

.affistyle-chart-tooltip {
	position: absolute;
	pointer-events: none;
	background: #0f172a;
	color: #ffffff;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	z-index: 10;
	opacity: 0;
	transition: opacity 0.15s ease;
}

/*-----------------------------------------------------------------------------
 * 14.0 Multi-Layer Conversion Attribution Flow Card
 *----------------------------------------------------------------------------*/
.affistyle-pro-attribution-card {
	margin-bottom: 24px;
}

.affistyle-attribution-flow-wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.affistyle-attribution-stacked-bar {
	display: flex;
	height: 18px;
	border-radius: 9px;
	overflow: hidden;
	background: #f1f5f9;
	width: 100%;
}

.affistyle-attribution-bar-segment {
	height: 100%;
	transition: width 0.3s ease;
}

.affistyle-attribution-channels-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}

.affistyle-attribution-channel-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.affistyle-attribution-channel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.affistyle-attribution-channel-name {
	font-size: 12.5px;
	font-weight: 700;
	color: #1e293b;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.affistyle-attribution-channel-name .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.affistyle-attribution-badge-pro {
	font-size: 9px;
	font-weight: 800;
	background: #e0e7ff;
	color: #4338ca;
	padding: 2px 5px;
	border-radius: 4px;
}

.affistyle-attribution-channel-metric {
	font-size: 18px;
	font-weight: 800;
	font-feature-settings: "tnum";
}

.affistyle-attribution-channel-sub {
	font-size: 11.5px;
	color: #64748b;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.affistyle-pro-roi-callout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	border-radius: 8px;
	padding: 12px 16px;
}

.affistyle-roi-lift-badge {
	background: #4338ca;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
}

/*-----------------------------------------------------------------------------
 * 15.0 Early-Warning Conversion Decay Radar
 *----------------------------------------------------------------------------*/
.affistyle-decay-radar-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	background: #fffbeb;
	border: 1px solid #fef3c7;
	border-left: 4px solid #f59e0b;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
}

.affistyle-decay-radar-content {
	display: flex;
	align-items: center;
	gap: 12px;
}

.affistyle-decay-radar-icon {
	font-size: 20px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #d97706;
}

.affistyle-decay-radar-icon .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
}

.affistyle-decay-radar-text {
	font-size: 13px;
	color: #92400e;
	line-height: 1.5;
}

.affistyle-decay-radar-badge {
	background: #ef4444;
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 7px;
	border-radius: 10px;
	margin-left: 6px;
}

.affistyle-decay-radar-btn {
	font-weight: 600;
}

/*-----------------------------------------------------------------------------
 * 16.0 Pro Panels, Quick Fetch & Retailer Rows
 *----------------------------------------------------------------------------*/
.affistyle-pro-card-panel {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-bottom: 18px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.affistyle-pro-card-panel:hover {
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
	border-color: #cbd5e1;
}

.affistyle-quick-fetch-bar {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

.affistyle-quick-fetch-query-wrap {
	flex: 1;
	min-width: 240px;
}

.affistyle-quick-fetch-label {
	font-size: 12px;
	font-weight: 700;
	color: #334155;
	display: block;
	margin-bottom: 4px;
}

.affistyle-quick-fetch-btn-wrap {
	flex-shrink: 0;
}

.affistyle-btn-quick-fetch {
	background: #4f46e5;
	border-color: #4338ca;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.affistyle-quick-fetch-status {
	width: 100%;
	display: none;
	font-size: 12px;
	font-weight: 600;
}

.affistyle-retailers-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.affistyle-retailer-row {
	display: grid;
	grid-template-columns: 1.5fr 2fr 1fr 1.2fr 0.7fr auto;
	gap: 8px;
	align-items: center;
	background: #f8fafc;
	padding: 10px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.affistyle-retailer-row:hover {
	border-color: #cbd5e1;
	background: #ffffff;
}

.affistyle-input-color {
	width: 100%;
	height: 34px;
	padding: 2px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	cursor: pointer;
	background: #ffffff;
}

.affistyle-remove-retailer-row {
	color: #b91c1c;
	border-color: #fca5a5;
	font-size: 13px;
	padding: 0 10px;
	line-height: 32px;
	height: 34px;
}

.affistyle-remove-retailer-row:hover {
	background: #fee2e2;
	color: #991b1b;
}

.affistyle-geo-fields-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	padding: 16px;
}

.affistyle-sub-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px;
}

.affistyle-sub-card-header {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}

.affistyle-sub-card-toggle-label {
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

@keyframes affistyle-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.spin {
	animation: affistyle-spin 1s linear infinite;
	display: inline-block;
}