/**
 * Coolioo Affiliates - frontend styling.
 * Premium design system: navy #0a1f3d, lime #ceff00, orange #ff5722.
 * Glassmorphism, bold typography, accent dots.
 */

/* ---------------- Tokens ---------------- */
.coolioo-aff {
	--cf-navy: #0a1f3d;
	--cf-navy-2: #14294d;
	--cf-navy-3: #1e3361;
	--cf-lime: #ceff00;
	--cf-lime-dark: #b8e600;
	--cf-orange: #ff5722;
	--cf-orange-hover: #e64a19;
	--cf-teal: #5dd5c8;
	--cf-blue: #7c8edc;
	--cf-purple: #9683df;
	--cf-brand-gradient: linear-gradient(90deg, #5dd5c8 0%, #7c8edc 45%, #9683df 100%);

	--cf-bg: #f4f6fb;
	--cf-surface: #ffffff;
	--cf-surface-2: #f8fafc;
	--cf-border: #e3e7ef;
	--cf-border-strong: #c8cfdc;
	--cf-text: #0a1f3d;
	--cf-text-soft: #5a6480;
	--cf-text-mute: #8b94a8;

	--cf-success: #15803d;
	--cf-success-bg: #ecfdf3;
	--cf-success-border: #bbf7d0;
	--cf-error: #b91c1c;
	--cf-error-bg: #fef2f2;
	--cf-error-border: #fecaca;
	--cf-info-bg: #eff4ff;
	--cf-info-border: #c7d8f7;
	--cf-warn-bg: #fef3c7;
	--cf-warn-border: #fde68a;

	--cf-radius: 18px;
	--cf-radius-sm: 10px;
	--cf-radius-xs: 6px;

	--cf-shadow-sm: 0 1px 2px rgba(10, 31, 61, 0.06);
	--cf-shadow: 0 1px 2px rgba(10, 31, 61, 0.04), 0 8px 24px rgba(10, 31, 61, 0.06);
	--cf-shadow-lg: 0 4px 8px rgba(10, 31, 61, 0.04), 0 20px 50px rgba(10, 31, 61, 0.1);

	--cf-font-head: 'Sora', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--cf-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

	font-family: var(--cf-font-body);
	color: var(--cf-text);
	line-height: 1.55;
	max-width: 980px;
	margin: 0 auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.coolioo-aff *,
.coolioo-aff *::before,
.coolioo-aff *::after { box-sizing: border-box; }

.coolioo-aff a {
	color: var(--cf-orange);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}
.coolioo-aff a:hover { color: var(--cf-orange-hover); }

/* ---------------- Card ---------------- */
.coolioo-aff-card {
	background: var(--cf-surface);
	border: 1px solid var(--cf-border);
	border-radius: var(--cf-radius);
	padding: 40px;
	box-shadow: var(--cf-shadow);
	position: relative;
	overflow: hidden;
}

.coolioo-aff-card-hero {
	background:
		radial-gradient(circle at 0% 0%, rgba(93, 213, 200, 0.08) 0%, transparent 45%),
		radial-gradient(circle at 100% 100%, rgba(150, 131, 223, 0.07) 0%, transparent 40%),
		var(--cf-surface);
	padding: 48px;
}

.coolioo-aff-card-success { text-align: center; }

@media (max-width: 600px) {
	.coolioo-aff-card,
	.coolioo-aff-card-hero { padding: 28px 22px; }
}

/* ---------------- Typography ---------------- */
.coolioo-aff-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--cf-font-body);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cf-navy);
	margin-bottom: 16px;
}
.coolioo-aff-eyebrow-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cf-lime);
	box-shadow: 0 0 0 4px rgba(206, 255, 0, 0.3);
}
.coolioo-aff-eyebrow-light { color: rgba(255, 255, 255, 0.85); }
.coolioo-aff-eyebrow-light .coolioo-aff-eyebrow-dot {
	box-shadow: 0 0 0 4px rgba(206, 255, 0, 0.25);
}

.coolioo-aff-hero-title {
	font-family: var(--cf-font-head);
	font-weight: 700;
	font-size: clamp(32px, 4.2vw, 44px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--cf-navy);
	margin: 0 0 16px;
}
.coolioo-aff-hero-title-accent {
	display: inline-block;
	background: linear-gradient(90deg, #5dd5c8 0%, #7c8edc 45%, #9683df 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #7c8edc;
}

.coolioo-aff-hero-sub {
	font-size: 17px;
	line-height: 1.55;
	color: var(--cf-text-soft);
	margin: 0 0 28px;
	max-width: 580px;
}

.coolioo-aff-text-muted {
	font-size: 14px;
	color: var(--cf-text-mute);
	margin: 0 0 24px;
}

.coolioo-aff-form-title {
	font-family: var(--cf-font-head);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	color: var(--cf-navy);
	margin: 0 0 6px;
	letter-spacing: -0.01em;
}
.coolioo-aff-form-lead {
	color: var(--cf-text-soft);
	margin: 0 0 24px;
	font-size: 15px;
}

.coolioo-aff-subtitle {
	font-family: var(--cf-font-head);
	font-weight: 700;
	font-size: 18px;
	margin: 28px 0 14px;
	color: var(--cf-navy);
	letter-spacing: -0.005em;
}

/* ---------------- Benefits ---------------- */
.coolioo-aff-benefits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 8px;
}
.coolioo-aff-benefit {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: var(--cf-surface-2);
	border: 1px solid var(--cf-border);
	border-radius: var(--cf-radius-sm);
	transition: border-color 0.15s, transform 0.15s;
}
.coolioo-aff-benefit:hover {
	border-color: var(--cf-lime);
	transform: translateY(-1px);
}
.coolioo-aff-benefit-num {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--cf-navy);
	color: var(--cf-lime);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--cf-font-head);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.01em;
}
.coolioo-aff-benefit-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}
.coolioo-aff-benefit-text strong {
	font-size: 15px;
	color: var(--cf-navy);
	font-weight: 700;
}
.coolioo-aff-benefit-text span {
	font-size: 13px;
	color: var(--cf-text-soft);
}
@media (max-width: 640px) {
	.coolioo-aff-benefits { grid-template-columns: 1fr; }
}

/* ---------------- Divider ---------------- */
.coolioo-aff-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, var(--cf-border) 20%, var(--cf-border) 80%, transparent 100%);
	margin: 36px 0 32px;
}

/* ---------------- Alerts ---------------- */
.coolioo-aff-alert {
	padding: 14px 18px;
	border-radius: var(--cf-radius-sm);
	margin-bottom: 20px;
	font-size: 15px;
	border: 1px solid;
	line-height: 1.5;
}
.coolioo-aff-alert strong { font-weight: 700; margin-right: 4px; }
.coolioo-aff-alert-error {
	background: var(--cf-error-bg);
	color: var(--cf-error);
	border-color: var(--cf-error-border);
}
.coolioo-aff-alert-success {
	background: var(--cf-success-bg);
	color: var(--cf-success);
	border-color: var(--cf-success-border);
}
.coolioo-aff-alert-info {
	background: var(--cf-info-bg);
	color: var(--cf-navy);
	border-color: var(--cf-info-border);
}

/* ---------------- Forms ---------------- */
.coolioo-aff-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.coolioo-aff-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 600px) {
	.coolioo-aff-grid-2 { grid-template-columns: 1fr; }
}
.coolioo-aff-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.coolioo-aff-field label {
	font-weight: 600;
	font-size: 14px;
	color: var(--cf-navy);
	letter-spacing: -0.005em;
}
.coolioo-aff-req {
	color: var(--cf-orange);
	font-weight: 700;
}
.coolioo-aff-field input[type="text"],
.coolioo-aff-field input[type="email"],
.coolioo-aff-field input[type="url"],
.coolioo-aff-field input[type="number"],
.coolioo-aff-field textarea,
.coolioo-aff-field select,
.coolioo-aff-deeplink input {
	font: inherit;
	color: var(--cf-text);
	background: #fff;
	border: 1.5px solid var(--cf-border);
	border-radius: var(--cf-radius-sm);
	padding: 12px 16px;
	font-size: 15px;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
	width: 100%;
	font-family: var(--cf-font-body);
}
.coolioo-aff-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.coolioo-aff-field input:focus,
.coolioo-aff-field textarea:focus,
.coolioo-aff-field select:focus,
.coolioo-aff-deeplink input:focus {
	outline: none;
	border-color: var(--cf-navy);
	box-shadow: 0 0 0 4px rgba(10, 31, 61, 0.08);
}
.coolioo-aff-field input[readonly],
.coolioo-aff-field input:read-only {
	background: var(--cf-surface-2);
	color: var(--cf-text-soft);
	cursor: not-allowed;
}
.coolioo-aff-hint {
	color: var(--cf-text-mute);
	font-size: 13px;
	margin-top: -2px;
}
.coolioo-aff-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-weight: 400;
	cursor: pointer;
	padding: 14px 16px;
	background: var(--cf-surface-2);
	border: 1.5px solid var(--cf-border);
	border-radius: var(--cf-radius-sm);
	transition: border-color 0.15s;
}
.coolioo-aff-checkbox label:hover { border-color: var(--cf-border-strong); }
.coolioo-aff-checkbox input[type="checkbox"] {
	margin-top: 2px;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	accent-color: var(--cf-orange);
	cursor: pointer;
}
.coolioo-aff-checkbox label span {
	color: var(--cf-text);
	font-size: 14.5px;
	line-height: 1.45;
}
.coolioo-aff-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.coolioo-aff-details {
	background: var(--cf-surface-2);
	border: 1.5px solid var(--cf-border);
	border-radius: var(--cf-radius-sm);
	overflow: hidden;
	transition: border-color 0.15s;
}
.coolioo-aff-details:hover { border-color: var(--cf-border-strong); }
.coolioo-aff-details summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--cf-navy);
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	list-style: none;
	font-size: 15px;
}
.coolioo-aff-details summary::-webkit-details-marker { display: none; }
.coolioo-aff-details-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: var(--cf-navy);
	color: var(--cf-lime);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
	transition: transform 0.2s;
}
.coolioo-aff-details[open] .coolioo-aff-details-icon { transform: rotate(45deg); }
.coolioo-aff-details-content {
	padding: 0 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.coolioo-aff-fineprint {
	color: var(--cf-text-mute);
	font-size: 13px;
	margin: 12px 0 0;
	line-height: 1.5;
}

.coolioo-aff-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 12px;
	align-items: center;
}

/* ---------------- Buttons ---------------- */
.coolioo-aff-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--cf-font-body);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: -0.005em;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform 0.05s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
	line-height: 1.2;
	white-space: nowrap;
}
.coolioo-aff-btn:active { transform: translateY(1px); }
.coolioo-aff-btn-lg {
	padding: 16px 32px;
	font-size: 16px;
}
.coolioo-aff-btn-primary {
	background: var(--cf-orange);
	color: #fff !important;
	border-color: var(--cf-orange);
	box-shadow: 0 4px 14px rgba(255, 87, 34, 0.25);
}
.coolioo-aff-btn-primary:hover {
	background: var(--cf-orange-hover);
	border-color: var(--cf-orange-hover);
	color: #fff !important;
	box-shadow: 0 6px 20px rgba(255, 87, 34, 0.35);
	transform: translateY(-1px);
}
.coolioo-aff-btn-secondary {
	background: transparent;
	color: var(--cf-navy) !important;
	border-color: var(--cf-navy);
}
.coolioo-aff-btn-secondary:hover {
	background: var(--cf-navy);
	color: #fff !important;
}
.coolioo-aff-btn[disabled],
.coolioo-aff-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
}
.coolioo-aff-btn-arrow {
	transition: transform 0.2s;
}
.coolioo-aff-btn:hover .coolioo-aff-btn-arrow { transform: translateX(3px); }

/* ---------------- Status / pills ---------------- */
.coolioo-aff-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.coolioo-aff-status::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}
.coolioo-aff-status-active { background: var(--cf-lime); color: var(--cf-navy); }
.coolioo-aff-status-pending { background: #fde68a; color: #92400e; }
.coolioo-aff-status-rejected { background: var(--cf-error-bg); color: var(--cf-error); }
.coolioo-aff-status-paused { background: #e2e8f0; color: var(--cf-text); }
.coolioo-aff-status-active::before { background: var(--cf-navy); }
.coolioo-aff-status-pending::before { background: #92400e; }

/* ---------------- Success icon ---------------- */
.coolioo-aff-signup,
.coolioo-aff-success-wrap,
.coolioo-aff-empty-state { padding: 32px 0; }
.coolioo-aff-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--cf-lime);
	color: var(--cf-navy);
	margin: 0 auto 24px;
	box-shadow: 0 0 0 8px rgba(206, 255, 0, 0.2);
}

/* ---------------- Dashboard header ---------------- */
.coolioo-aff-dashboard { padding: 24px 0; }
.coolioo-aff-dashboard-header {
	position: relative;
	background: var(--cf-navy);
	border-radius: var(--cf-radius);
	margin-bottom: 28px;
	overflow: hidden;
	color: #fff;
}
.coolioo-aff-dashboard-header-bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 0% 0%, rgba(206, 255, 0, 0.18) 0%, transparent 45%),
		radial-gradient(circle at 100% 100%, rgba(255, 87, 34, 0.18) 0%, transparent 40%),
		linear-gradient(135deg, var(--cf-navy) 0%, var(--cf-navy-2) 50%, var(--cf-navy-3) 100%);
	pointer-events: none;
}
.coolioo-aff-dashboard-header-inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: space-between;
	align-items: flex-end;
	padding: 36px 40px;
}
@media (max-width: 700px) {
	.coolioo-aff-dashboard-header-inner { padding: 28px 24px; }
}
.coolioo-aff-welcome-title {
	font-family: var(--cf-font-head);
	font-weight: 700;
	font-size: clamp(26px, 3.5vw, 34px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 14px;
}
.coolioo-aff-welcome-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.coolioo-aff-code-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 5px 10px 5px 12px;
	border-radius: 999px;
	backdrop-filter: blur(6px);
}
.coolioo-aff-code-pill-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.6);
}
.coolioo-aff-code-pill code {
	font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
	font-size: 13px;
	color: var(--cf-lime);
	background: transparent;
	padding: 0;
}
.coolioo-aff-rate-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.08);
	color: var(--cf-lime);
	letter-spacing: 0.02em;
}

/* ---------------- Copybox ---------------- */
.coolioo-aff-quicklinks { min-width: 320px; }
.coolioo-aff-copybox {
	background: var(--cf-surface-2);
	border: 1px solid var(--cf-border);
	border-radius: var(--cf-radius-sm);
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.coolioo-aff-copybox-dark {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
}
.coolioo-aff-copybox-coupon {
	background: linear-gradient(135deg, rgba(206,255,0,0.08), rgba(93,213,200,0.08));
	border-color: rgba(206,255,0,0.35);
	box-shadow: 0 4px 14px rgba(206,255,0,0.08);
}
.coolioo-aff-copybox-coupon .coolioo-aff-copybox-value {
	font-size: 18px;
	color: var(--cf-navy);
	font-weight: 700;
}
.coolioo-aff-copybox-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.coolioo-aff-copybox-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--cf-text-mute);
}
.coolioo-aff-copybox-dark .coolioo-aff-copybox-label { color: rgba(255, 255, 255, 0.6); }
.coolioo-aff-copybox-value {
	font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
	font-size: 13.5px;
	word-break: break-all;
	color: var(--cf-navy);
	line-height: 1.4;
}
.coolioo-aff-copybox-dark .coolioo-aff-copybox-value { color: #fff; }
.coolioo-aff-copybtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--cf-lime);
	color: var(--cf-navy);
	border: none;
	border-radius: 999px;
	padding: 5px 12px;
	font-family: var(--cf-font-body);
	font-weight: 700;
	font-size: 12px;
	cursor: pointer;
	transition: background 0.15s, transform 0.05s;
	flex-shrink: 0;
}
.coolioo-aff-copybtn:hover { background: var(--cf-lime-dark); }
.coolioo-aff-copybtn:active { transform: translateY(1px); }
.coolioo-aff-copybtn.is-copied { background: var(--cf-success); color: #fff; }

/* ---------------- Tabs ---------------- */
.coolioo-aff-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 24px;
	background: var(--cf-surface);
	border: 1px solid var(--cf-border);
	border-radius: var(--cf-radius-sm);
	padding: 6px;
	box-shadow: var(--cf-shadow-sm);
}
.coolioo-aff-tab {
	flex: 1;
	min-width: max-content;
	padding: 10px 18px;
	font-weight: 600;
	font-size: 14.5px;
	color: var(--cf-text-soft);
	text-decoration: none !important;
	border-radius: var(--cf-radius-xs);
	text-align: center;
	transition: background 0.15s, color 0.15s;
}
.coolioo-aff-tab:hover { color: var(--cf-navy); background: var(--cf-surface-2); }
.coolioo-aff-tab.is-active {
	color: #fff !important;
	background: var(--cf-navy);
}
@media (max-width: 600px) {
	.coolioo-aff-tab { font-size: 13.5px; padding: 9px 12px; }
}

/* ---------------- Sections ---------------- */
.coolioo-aff-section {
	background: var(--cf-surface);
	border: 1px solid var(--cf-border);
	border-radius: var(--cf-radius);
	padding: 28px;
	margin-bottom: 20px;
	box-shadow: var(--cf-shadow);
}
.coolioo-aff-section-head { margin-bottom: 20px; }
.coolioo-aff-section-title {
	font-family: var(--cf-font-head);
	font-weight: 700;
	font-size: 19px;
	color: var(--cf-navy);
	margin: 0 0 6px;
	letter-spacing: -0.01em;
}
.coolioo-aff-section-lead {
	color: var(--cf-text-soft);
	margin: 0;
	font-size: 15px;
}
.coolioo-aff-section-footer { margin: 18px 0 0; }
.coolioo-aff-link-row { margin: 0 0 12px; }
.coolioo-aff-link-row:last-child { margin-bottom: 0; }
.coolioo-aff-deeplink {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.coolioo-aff-deeplink label {
	font-weight: 600;
	font-size: 14px;
	color: var(--cf-navy);
}
.coolioo-aff-deeplink-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.coolioo-aff-deeplink-row input { flex: 1 1 240px; }
.coolioo-aff-deep-result { margin-top: 10px; }

/* ---------------- Stats ---------------- */
.coolioo-aff-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}
.coolioo-aff-stat {
	background: var(--cf-surface);
	border: 1px solid var(--cf-border);
	border-radius: var(--cf-radius);
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-shadow: var(--cf-shadow);
	position: relative;
	overflow: hidden;
}
.coolioo-aff-stat-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--cf-surface-2);
	color: var(--cf-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}
.coolioo-aff-stat-highlight {
	background:
		radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
		linear-gradient(135deg, var(--cf-lime) 0%, var(--cf-lime-dark) 100%);
	border-color: var(--cf-lime);
	color: var(--cf-navy);
}
.coolioo-aff-stat-highlight .coolioo-aff-stat-icon {
	background: var(--cf-navy);
	color: var(--cf-lime);
}
.coolioo-aff-stat-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--cf-text-soft);
}
.coolioo-aff-stat-highlight .coolioo-aff-stat-label { color: var(--cf-navy); opacity: 0.7; }
.coolioo-aff-stat-value {
	font-family: var(--cf-font-head);
	font-weight: 700;
	font-size: 30px;
	color: var(--cf-navy);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 2px 0;
}
.coolioo-aff-stat-meta {
	font-size: 13px;
	color: var(--cf-text-soft);
	line-height: 1.4;
}
.coolioo-aff-stat-meta strong {
	color: var(--cf-navy);
	font-weight: 700;
}
.coolioo-aff-stat-highlight .coolioo-aff-stat-meta { color: var(--cf-navy); opacity: 0.75; }

.coolioo-aff-stat-spark {
	margin-top: 14px;
	width: 100%;
	opacity: 0.92;
}
.coolioo-aff-stat-spark svg {
	display: block;
}

/* ---------------- Tables ---------------- */
.coolioo-aff-table-wrap {
	overflow-x: auto;
	border-radius: var(--cf-radius-sm);
	border: 1px solid var(--cf-border);
}
.coolioo-aff-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--cf-surface);
	font-size: 14.5px;
}
.coolioo-aff-table th,
.coolioo-aff-table td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--cf-border);
}
.coolioo-aff-table thead th {
	background: var(--cf-surface-2);
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--cf-text-soft);
	font-weight: 700;
}
.coolioo-aff-table tbody tr:last-child td { border-bottom: none; }
.coolioo-aff-table tbody tr:hover { background: var(--cf-surface-2); }

/* ---------------- Pills (status in tables) ---------------- */
.coolioo-aff-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #e2e8f0;
	color: var(--cf-text);
}
.coolioo-aff-pill-pending { background: var(--cf-warn-bg); color: #92400e; }
.coolioo-aff-pill-approved { background: var(--cf-success-bg); color: var(--cf-success); }
.coolioo-aff-pill-paid { background: var(--cf-lime); color: var(--cf-navy); }
.coolioo-aff-pill-refunded { background: var(--cf-error-bg); color: var(--cf-error); }
.coolioo-aff-pill-rejected { background: var(--cf-error-bg); color: var(--cf-error); }
.coolioo-aff-pill-failed { background: var(--cf-error-bg); color: var(--cf-error); }
.coolioo-aff-pill-processing { background: #dbeafe; color: #1e40af; }
.coolioo-aff-pill-recurring {
	background: linear-gradient(135deg, #5dd5c8, #7c8edc);
	color: #fff;
	text-transform: none;
	letter-spacing: 0;
	padding: 3px 10px;
}
.coolioo-aff-pill-recurring::before {
	content: "↻ ";
	margin-right: 2px;
}
.coolioo-aff-pill-muted {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--cf-text-mute);
	background: rgba(0,0,0,0.04);
}

.coolioo-aff-empty {
	color: var(--cf-text-mute);
	padding: 28px;
	text-align: center;
	background: var(--cf-surface-2);
	border-radius: var(--cf-radius-sm);
	font-size: 15px;
}

/* ---------------- Toolbar ---------------- */
.coolioo-aff-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
}
.coolioo-aff-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.coolioo-aff-filter label {
	font-weight: 600;
	font-size: 13.5px;
	color: var(--cf-navy);
}
.coolioo-aff-filter select {
	border: 1.5px solid var(--cf-border);
	border-radius: var(--cf-radius-sm);
	padding: 9px 14px;
	font: inherit;
	font-size: 14.5px;
	background: var(--cf-surface);
	color: var(--cf-text);
	cursor: pointer;
}
.coolioo-aff-toolbar-meta {
	color: var(--cf-text-soft);
	font-size: 14px;
}

/* ---------------- Pagination ---------------- */
.coolioo-aff-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 20px;
	flex-wrap: wrap;
}
.coolioo-aff-pagination a,
.coolioo-aff-pagination span {
	padding: 8px 14px;
	border-radius: var(--cf-radius-sm);
	border: 1px solid var(--cf-border);
	color: var(--cf-navy);
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14px;
	background: var(--cf-surface);
}
.coolioo-aff-pagination a:hover { background: var(--cf-surface-2); }
.coolioo-aff-pagination .current {
	background: var(--cf-navy);
	color: #fff;
	border-color: var(--cf-navy);
}

/* ---------------- Asset grid ---------------- */
.coolioo-aff-asset-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}
.coolioo-aff-asset-card {
	background: var(--cf-surface);
	border: 1px solid var(--cf-border);
	border-radius: var(--cf-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--cf-shadow);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.coolioo-aff-asset-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--cf-shadow-lg);
	border-color: var(--cf-border-strong);
}
.coolioo-aff-asset-thumb {
	aspect-ratio: 4 / 3;
	background: var(--cf-surface-2);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}
/* Video-thumbnail is een button: reset button-styling en maak hem klikbaar. */
button.coolioo-aff-asset-thumb {
	width: 100%;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font: inherit;
	color: inherit;
	transition: transform 0.18s ease;
}
button.coolioo-aff-asset-thumb:hover {
	transform: scale(1.01);
}
button.coolioo-aff-asset-thumb:hover .coolioo-aff-asset-play {
	background: var(--cf-navy);
	transform: translate(-50%, -50%) scale(1.08);
}
button.coolioo-aff-asset-thumb:focus-visible {
	outline: 3px solid var(--cf-lime);
	outline-offset: 2px;
}
.coolioo-aff-asset-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.coolioo-aff-asset-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--cf-navy);
	display: block;
}
.coolioo-aff-asset-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(10, 31, 61, 0.85);
	color: var(--cf-lime);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	backdrop-filter: blur(4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
	transition: transform 0.18s ease, background 0.18s ease;
}
.coolioo-aff-asset-play svg {
	margin-left: 3px;
}

/* Video lightbox modal */
.coolioo-aff-video-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.coolioo-aff-video-modal[hidden] {
	display: none !important;
}
.coolioo-aff-video-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 31, 61, 0.85);
	backdrop-filter: blur(8px);
	cursor: pointer;
}
.coolioo-aff-video-modal-inner {
	position: relative;
	background: var(--cf-navy);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	max-width: min(1100px, 96vw);
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: coolioo-aff-modal-in 0.22s ease-out;
}
@keyframes coolioo-aff-modal-in {
	from { opacity: 0; transform: scale(0.96); }
	to   { opacity: 1; transform: scale(1); }
}
.coolioo-aff-video-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 0;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.15s ease;
	padding: 0;
}
.coolioo-aff-video-modal-close:hover {
	background: rgba(255, 255, 255, 0.22);
	transform: scale(1.08);
}
.coolioo-aff-video-modal-close:focus-visible {
	outline: 2px solid var(--cf-lime);
	outline-offset: 2px;
}
.coolioo-aff-video-modal-title {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	padding: 18px 64px 14px 24px;
	font-family: var(--cf-font-head);
}
.coolioo-aff-video-modal-player {
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 0;
}
.coolioo-aff-video-modal-video {
	width: 100%;
	height: auto;
	max-height: 78vh;
	display: block;
}
body.coolioo-aff-modal-open {
	overflow: hidden;
}
@media (max-width: 600px) {
	.coolioo-aff-video-modal { padding: 0; }
	.coolioo-aff-video-modal-inner { border-radius: 0; max-height: 100vh; height: 100vh; max-width: 100vw; }
	.coolioo-aff-video-modal-video { max-height: calc(100vh - 70px); }
}
.coolioo-aff-asset-thumb-placeholder {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--cf-navy);
	color: var(--cf-lime);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--cf-font-head);
	font-weight: 700;
	font-size: 26px;
}
.coolioo-aff-asset-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.coolioo-aff-asset-cat {
	display: inline-flex;
	width: max-content;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--cf-orange);
	background: #fff1ec;
	padding: 3px 8px;
	border-radius: 999px;
}
.coolioo-aff-asset-title {
	font-family: var(--cf-font-head);
	font-weight: 700;
	font-size: 17px;
	color: var(--cf-navy);
	margin: 0;
	letter-spacing: -0.005em;
	line-height: 1.3;
}
.coolioo-aff-asset-desc {
	font-size: 14px;
	color: var(--cf-text-soft);
	flex: 1;
	line-height: 1.45;
}
.coolioo-aff-asset-desc p { margin: 0 0 6px; }
.coolioo-aff-asset-desc p:last-child { margin-bottom: 0; }
.coolioo-aff-asset-meta {
	display: flex;
	gap: 8px;
	color: var(--cf-text-mute);
	font-size: 12px;
	margin-top: 4px;
}
.coolioo-aff-asset-meta span:not(:last-child)::after {
	content: '·';
	margin-left: 8px;
}
.coolioo-aff-asset-dl { margin-top: 8px; align-self: flex-start; }

/* ---------------- Tips ---------------- */
.coolioo-aff-tips-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.coolioo-aff-tips-list li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.55;
	color: var(--cf-text);
}
.coolioo-aff-tips-num {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--cf-lime);
	color: var(--cf-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--cf-font-head);
	font-weight: 700;
	font-size: 13px;
}

/* ---------------- Profile readonly emphasis ---------------- */
.coolioo-aff-profile .coolioo-aff-section .coolioo-aff-form { gap: 16px; }

/* ---------------- Form-wrap (separates form from hero) ---------------- */
.coolioo-aff-form-wrap > .coolioo-aff-form { margin-top: 4px; }

/* ---------------- Mobile final touches ---------------- */
@media (max-width: 700px) {
	.coolioo-aff-section { padding: 22px 20px; }
	.coolioo-aff-stat { padding: 18px 20px; }
	.coolioo-aff-stat-value { font-size: 26px; }
	.coolioo-aff-quicklinks { width: 100%; min-width: 0; }
	.coolioo-aff-table th,
	.coolioo-aff-table td { padding: 10px 12px; font-size: 13.5px; }
}

/* ---------------- Divi defensive overrides ----------------
   Divi (en sommige child themes) zetten agressieve regels op
   inputs, knoppen en links binnen .entry-content / #et-boc.
   Hieronder forceren we onze styling met hogere specificiteit. */

body .coolioo-aff input[type="text"],
body .coolioo-aff input[type="email"],
body .coolioo-aff input[type="url"],
body .coolioo-aff input[type="number"],
body .coolioo-aff input[type="password"],
body .coolioo-aff textarea,
body .coolioo-aff select {
	padding: 12px 16px !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	background-color: #fff !important;
	color: var(--cf-text) !important;
	border: 1.5px solid var(--cf-border) !important;
	border-radius: var(--cf-radius-sm) !important;
	height: auto !important;
	width: 100% !important;
	box-shadow: none !important;
	font-family: var(--cf-font-body) !important;
}
body .coolioo-aff input:focus,
body .coolioo-aff textarea:focus,
body .coolioo-aff select:focus {
	border-color: var(--cf-navy) !important;
	box-shadow: 0 0 0 4px rgba(10, 31, 61, 0.08) !important;
	outline: none !important;
}
body .coolioo-aff input[readonly],
body .coolioo-aff input:read-only {
	background-color: var(--cf-surface-2) !important;
	color: var(--cf-text-soft) !important;
}

/* Buttons: voorkom Divi's eigen padding, border-radius en background */
body .coolioo-aff .coolioo-aff-btn,
body .coolioo-aff button.coolioo-aff-btn,
body .coolioo-aff a.coolioo-aff-btn {
	padding: 12px 24px !important;
	border-radius: 999px !important;
	font-size: 15px !important;
	font-family: var(--cf-font-body) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	letter-spacing: -0.005em !important;
	background-image: none !important;
}
body .coolioo-aff .coolioo-aff-btn-lg { padding: 16px 32px !important; font-size: 16px !important; }
body .coolioo-aff .coolioo-aff-btn-primary {
	background-color: var(--cf-orange) !important;
	color: #fff !important;
	border-color: var(--cf-orange) !important;
}
body .coolioo-aff .coolioo-aff-btn-primary:hover {
	background-color: var(--cf-orange-hover) !important;
	border-color: var(--cf-orange-hover) !important;
	color: #fff !important;
}
body .coolioo-aff .coolioo-aff-btn-secondary {
	background-color: transparent !important;
	color: var(--cf-navy) !important;
	border-color: var(--cf-navy) !important;
}
body .coolioo-aff .coolioo-aff-btn-secondary:hover {
	background-color: var(--cf-navy) !important;
	color: #fff !important;
}
body .coolioo-aff .coolioo-aff-btn::after { display: none !important; content: none !important; }
body .coolioo-aff .coolioo-aff-btn::before { display: none !important; content: none !important; }

/* Divi voegt vaak ::after pseudo elementen toe op a/buttons binnen .entry-content */
body .coolioo-aff a::after,
body .coolioo-aff .coolioo-aff-tab::after { display: none !important; }

/* Links binnen onze container: alleen ons styling, geen Divi underline-from-bottom */
body .coolioo-aff a {
	background-image: none !important;
	box-shadow: none !important;
}
body .coolioo-aff a.coolioo-aff-btn,
body .coolioo-aff a.coolioo-aff-copybtn,
body .coolioo-aff a.coolioo-aff-tab {
	text-decoration: none !important;
}

/* Tabs defensieve overrides tegen Divi link-kleur */
body .coolioo-aff a.coolioo-aff-tab {
	color: var(--cf-text-soft) !important;
	background: transparent !important;
	border-bottom: none !important;
}
body .coolioo-aff a.coolioo-aff-tab:hover {
	color: var(--cf-navy) !important;
	background: var(--cf-surface-2) !important;
}
body .coolioo-aff a.coolioo-aff-tab.is-active {
	color: #fff !important;
	background: var(--cf-navy) !important;
}
body .coolioo-aff a.coolioo-aff-tab.is-active:hover {
	color: #fff !important;
	background: var(--cf-navy) !important;
}

/* Discount badge naast kortingscode label */
.coolioo-aff-discount-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--cf-navy);
	background: var(--cf-lime);
	border-radius: 999px;
	text-transform: none;
	vertical-align: middle;
}

/* Lijsten binnen tips reset (Divi geeft list-style geforceerd) */
body .coolioo-aff .coolioo-aff-tips-list { list-style: none !important; padding-left: 0 !important; }
body .coolioo-aff .coolioo-aff-tips-list li { padding-left: 0 !important; }
body .coolioo-aff .coolioo-aff-tips-list li::before { display: none !important; content: none !important; }

/* Tabel reset tegen Divi tabel-styling */
body .coolioo-aff .coolioo-aff-table,
body .coolioo-aff .coolioo-aff-table th,
body .coolioo-aff .coolioo-aff-table td {
	background-image: none !important;
	border-spacing: 0 !important;
}

/* SVG iconen mogen niet door WP Rocket lazy load worden gepakt */
body .coolioo-aff svg { opacity: 1 !important; }

/* Headings binnen onze scope: laat Divi de standaard niet kapen */
body .coolioo-aff .coolioo-aff-hero-title,
body .coolioo-aff .coolioo-aff-welcome-title,
body .coolioo-aff .coolioo-aff-form-title,
body .coolioo-aff .coolioo-aff-section-title,
body .coolioo-aff .coolioo-aff-asset-title {
	font-family: var(--cf-font-head) !important;
	color: var(--cf-navy);
	line-height: 1.1;
}
body .coolioo-aff .coolioo-aff-welcome-title { color: #fff !important; }

/* Cookiebot of ander cookie consent overlay mag niet onze content overlappen op signup */
body .coolioo-aff { position: relative; z-index: 1; }
