.ai-seo-input-group {
	display: flex;
	gap: 10px;
}

.ai-seo-input-group input {
	flex: 1;
	padding: 8px;
}

.ai-seo-input-group button:not(.custom-class) {
	padding: 8px 14px;
	cursor: pointer;
}


.ai-seo-input-group button:disabled {
	opacity: .4 !important;
  pointer-events: none !important;
}

.ai-seo-status {
	margin-top: 10px !important;
	min-height: 24px !important;
}

.ai-seo-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid #ccc;
	border-top: 2px solid #333;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-right: 8px;
}

.ai-seo-spinner.active {
  display: inline-block;
}

.ai-seo-message.success {
	color: #2e7d32;
	margin-bottom: 12px;
}

.ai-seo-message.error {
	color: #c62828;
	margin-bottom: 12px;
}

.ai-seo-results {
	margin-top: 15px;
	background: #f7f7f7;
  color: #333;
  text-transform: none;
	padding: 10px;
	font-size: 13px;
	max-height: 300px;
	overflow: auto;
  display: none;
}

.ai-seo-results.populated {
  display: block;
}

.ai-seo-dashboard, #ai-seo-dashboard {
	margin-top: 20px !important;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.ai-seo-dashboard.hidden {
	display: none !important;
}

.ai-seo-cards {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 16px !important;
}

.ai-seo-card {
	display: flex !important;
	flex-direction: column !important;
	background: #fff !important;
	border-radius: 12px !important;
	padding: 16px !important;
	box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
	position: relative !important;
	width: calc(50% - 8px) !important;
}

.ai-seo-card:first-child {
	background: #fff !important;
	border-radius: 12px !important;
	padding: 16px !important;
	box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
	position: relative !important;
	width: 100% !important;
}

.ai-seo-card h3 {
	margin: 0 0 8px !important;
	font-size: 22px !important;
	font-weight: 600 !important;
}

.ai-seo-card:first-child h3 {
	font-size: 26px !important;
	text-align: center !important;
}

.ai-description {
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: #444 !important;
}

.ai-seo-card:first-child .ai-description {
	font-size: 18px !important;
}

.score-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	font-size: 14px !important;
	margin-bottom: 8px !important;
}

.countup {
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #2c7be5;
}

.countup.good {
	color: #2ecc71;
}

.countup.medium {
	color: #f1c40f;
}

.countup.bad {
	color: #e74c3c;
}

.ai-gauge {
	position: relative !important;
	width: 140px !important;
	margin: 0 auto 8px !important;
}

.ai-gauge svg {
	width: 100% !important;
	height: auto !important;
}

.gauge-bg {
	fill: none !important;
	stroke: #eee !important;
	stroke-width: 10 !important;
}

.gauge-fill {
	fill: none;
	stroke: #2c7be5;
	stroke-width: 10;
	stroke-dasharray: 126;
	stroke-dashoffset: 126;
	transition: stroke-dashoffset 1.2s ease !important;
}

.gauge-value {
	position: absolute !important;
	bottom: 0 !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #2c7be5;
}

.ai-gauge.good .gauge-fill,
.ai-gauge.good .gauge-value {
	stroke: #2ecc71;
	color: #2ecc71;
}

.ai-gauge.medium .gauge-fill,
.ai-gauge.medium .gauge-value {
	stroke: #f1c40f;
	color: #f1c40f;
}

.ai-gauge.bad .gauge-fill,
.ai-gauge.bad .gauge-value {
	stroke: #e74c3c;
	color: #e74c3c;
}

.ai-gauges {
	margin-top: 12px !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	justify-content: flex-end !important;
	width: 100% !important;
	height: 100% !important;
}

.ai-gauges .ai-gauge {
	width: 100% !important;
}

.ai-gauges .ai-gauge-label {
	display: flex !important;
	justify-content: space-between !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	margin-bottom: 4px !important;
	opacity: 0.85 !important;
}

.ai-gauges .ai-gauge-bar {
	width: 100% !important;
	height: 8px !important;
	background: #e6e6e6 !important;
	border-radius: 6px !important;
	overflow: hidden !important;
}

.ai-gauges .ai-gauge-fill {
	height: 100% !important;
	width: 0%;
	border-radius: 6px !important;
	transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Score tiers */
.ai-gauge-fill.tier-good {
	background: linear-gradient(90deg, #22c55e, #16a34a);
}

.ai-gauge-fill.tier-mid {
	background: linear-gradient(90deg, #facc15, #eab308);
}

.ai-gauge-fill.tier-bad {
	background: linear-gradient(90deg, #ef4444, #dc2626);
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
	.ai-seo-card:first-child h3 {
		text-align: left !important;
		font-size: 23px !important;
	}
}
@media (max-width: 500px) {
	.ai-seo-card:first-child, .ai-seo-card {
		width: 100% !important;
	}
	.ai-seo-card h3 {
		text-align: center !important;
	}
}
