/**
 * Premium Frontend Styles for WordPress Audit Tool
 */

/* ============================================
   GLOBAL STYLES
   ============================================ */
.wp-audit-tool-container {
	max-width: 1200px;
	margin: 60px auto 40px;
	padding: 0 5px;	
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wp-audit-tool-error {
	background: rgba(220, 50, 50, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(220, 50, 50, 0.3);
	color: #dc3232;
	padding: 15px 20px;
	border-radius: 12px;
	margin: 20px 0;
	box-shadow: 0 4px 12px rgba(220, 50, 50, 0.2);
	animation: shake 0.5s ease-out;
}

.wp-audit-tool-error-notification {
	background: rgba(220, 50, 50, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(220, 50, 50, 0.3);
	color: #dc3232;
	padding: 20px 25px;
	border-radius: 12px;
	margin: 20px 0;
	box-shadow: 0 4px 15px rgba(220, 50, 50, 0.3);
	animation: slideInDown 0.4s ease-out, shake 0.5s ease-out 0.4s;
	font-weight: 500;
	text-align: center;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-10px); }
	75% { transform: translateX(10px); }
}

@keyframes slideInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================
   FORM STYLES - Apple Glassmorphism
   ============================================ */
.audit-form-wrapper {
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-radius: 24px;
	padding: 50px 50px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
	            0 0 0 1px rgba(255, 255, 255, 0.5) inset;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.18);
	animation: fadeInUp 0.8s ease-out;
}

.audit-form-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(0, 113, 227, 0.1), transparent);
	animation: lightSweep 4s infinite;
	pointer-events: none;
	z-index: 0;
}

.form-header {
	text-align: center;
	margin-bottom: 40px;
	position: relative;
	z-index: 1;
	animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.form-title {
	font-size: 42px;
	font-weight: 700;
	color: #1d1d1f;
	margin: 0 0 15px 0;
	letter-spacing: -0.5px;
}

.form-subtitle {
	font-size: 18px;
	color: #6e6e73;
	margin: 0;
	font-weight: 400;
}

.premium-audit-form {
	position: relative;
	z-index: 1;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 25px;
}

@media (max-width: 768px) {
	.form-row {
		grid-template-columns: 1fr;
	}
}

.form-group {
	margin-bottom: 25px;
}

.form-group-half {
	margin-bottom: 0;
}

.form-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1d1d1f;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.2;
}

.label-icon {
	font-size: 18px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.optional-badge {
	background: rgba(0, 0, 0, 0.08);
	color: #6e6e73;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 500;
	margin-left: auto;
}

.form-input,
.form-select {
	width: 100%;
	padding: 16px 20px;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	font-size: 16px;
	color: #1d1d1f;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-select:focus {
	outline: none;
	border-color: #0071e3;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 12px rgba(0, 113, 227, 0.15), 0 0 0 3px rgba(0, 113, 227, 0.1);
	transform: translateY(-2px);
	animation: inputPulse 0.3s ease-out;
}

@keyframes inputPulse {
	0% { transform: translateY(-2px) scale(1); }
	50% { transform: translateY(-2px) scale(1.01); }
	100% { transform: translateY(-2px) scale(1); }
}

.form-input::placeholder {
	color: #999;
}

.form-hint {
	font-size: 12px;
	color: #6e6e73;
	margin: 8px 0 0 0;
	font-style: italic;
}

/* Device Toggle - Premium Simple Design */
.device-toggle-group {
	display: flex;
	gap: 0;
	align-items: center;
	background: transparent;
	border: none;
}

.device-toggle-option {
	display: flex;
	align-items: center;
	cursor: pointer;
	position: relative;
	margin: 0;
}

.device-toggle-option input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.device-toggle-label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: transparent;
	border: none;
	cursor: pointer;
	user-select: none;
	position: relative;
	transition: all 0.2s ease;
}

.device-toggle-icon {
	font-size: 18px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.device-toggle-text {
	font-size: 15px;
	font-weight: 500;
	color: #6e6e73;
	transition: color 0.2s ease;
	letter-spacing: 0.2px;
}

/* Unselected state (default) - using :not(:checked) for better browser support */
.device-toggle-option input[type="checkbox"]:not(:checked) + .device-toggle-label .device-toggle-icon {
	filter: grayscale(0.5);
	opacity: 0.7;
}

.device-toggle-option input[type="checkbox"]:not(:checked) + .device-toggle-label .device-toggle-text {
	color: #6e6e73;
}

/* Selected state */
.device-toggle-option input[type="checkbox"]:checked + .device-toggle-label .device-toggle-icon {
	filter: none;
	opacity: 1;
}

.device-toggle-option input[type="checkbox"]:checked + .device-toggle-label .device-toggle-text {
	color: #0071e3;
	font-weight: 600;
}

/* Underline for selected state */
.device-toggle-option input[type="checkbox"]:checked + .device-toggle-label::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: #0071e3;
	border-radius: 1px;
}

/* Hover state */
.device-toggle-option:hover .device-toggle-label .device-toggle-text {
	color: #0071e3;
}

.device-toggle-option:hover .device-toggle-label .device-toggle-icon {
	opacity: 1;
	filter: none;
}

.btn-audit-submit {
	width: 100%;
	padding: 18px 30px;
	background: linear-gradient(135deg, #0071e3, #00d4ff);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
	position: relative;
	overflow: hidden;
	animation: buttonGlow 2s ease-in-out infinite;
}

.btn-audit-submit::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.btn-audit-submit:hover::before {
	width: 400px;
	height: 400px;
}

@keyframes buttonGlow {
	0%, 100% {
		box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
	}
	50% {
		box-shadow: 0 6px 20px rgba(0, 113, 227, 0.5);
	}
}
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 10px;
}

.btn-audit-submit:hover {
	background: linear-gradient(135deg, #0051a3, #00b8e6);
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 8px 25px rgba(0, 113, 227, 0.5);
}

.btn-audit-submit:active {
	transform: translateY(-1px) scale(0.98);
}

.btn-icon {
	font-size: 20px;
	transition: transform 0.3s ease;
}

.btn-audit-submit:hover .btn-icon {
	transform: translateX(8px) scale(1.1);
	animation: iconBounce 0.6s ease-in-out infinite;
}

@keyframes iconBounce {
	0%, 100% { transform: translateX(8px) scale(1.1); }
	50% { transform: translateX(12px) scale(1.15); }
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.audit-progress-wrapper {
	margin-top: 30px;
	position: relative;
	z-index: 1;
}

.progress-container {
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 16px;
	padding: 30px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-bar-wrapper {
	width: 100%;
	height: 8px;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 20px;
	position: relative;
}

.progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #0071e3, #0077ed);
	border-radius: 10px;
	width: 0%;
	transition: width 0.5s ease;
	box-shadow: 0 0 10px rgba(0, 113, 227, 0.4);
	position: relative;
	overflow: hidden;
}

.progress-bar-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

.progress-text {
	color: #1d1d1f;
	font-size: 16px;
	font-weight: 600;
	margin: 0;
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.audit-results-wrapper {
	margin-top: 40px;
	animation: fadeIn 0.5s ease;
}

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

/* ============================================
   PREMIUM REPORT STYLES
   ============================================ */
.premium-audit-report {
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	margin-top: 30px;
}

.report-header-section {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 40px;
	color: #ffffff;
}

.report-title {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 20px 0;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.report-meta {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.meta-icon {
	font-size: 18px;
}

.comparison-banner {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	padding: 25px 40px;
	text-align: center;
}

.comparison-banner-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.your-site-badge,
.competitor-site-badge {
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	color: #ffffff;
}

.vs-text {
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ============================================
   TABS
   ============================================ */
.report-tabs-section {
	background: #f8f9fa;
	border-bottom: 2px solid #e9ecef;
}

.report-tabs {
	display: flex;
	gap: 0;
	overflow-x: auto;
	padding: 0 20px;
}

.tab-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 18px 24px;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: #6c757d;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.tab-btn:hover {
	color: #667eea;
	background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
	color: #667eea;
	border-bottom-color: #667eea;
	background: #ffffff;
}

.tab-icon {
	font-size: 18px;
}

/* ============================================
   TAB CONTENT
   ============================================ */
.tab-content-wrapper {
	padding: 40px;
}

.tab-content {
	display: none;
	animation: fadeIn 0.3s ease;
}

.tab-content.active {
	display: block;
}

/* ============================================
   SCORE CARDS
   ============================================ */
.score-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

.score-card {
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	border-radius: 20px;
	padding: 30px;
	text-align: center;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	overflow: hidden;
}

.score-card::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.score-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.score-card:hover::before {
	opacity: 1;
}

.performance-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
}

.seo-card {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: #ffffff;
}

.accessibility-card {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: #ffffff;
}

.best-practices-card {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
	color: #ffffff;
}

.card-icon-large {
	font-size: 48px;
	margin-bottom: 15px;
}

.card-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 20px 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.score-circle {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 5px;
}

.score-value-large {
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
}

.score-max {
	font-size: 24px;
	opacity: 0.8;
}

/* ============================================
   COMPARISON CARDS
   ============================================ */
.comparison-summary-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

.comparison-summary-cards .comparison-card {
	background: #ffffff;
	border: 2px solid #e9ecef;
	border-radius: 20px;
	padding: 25px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.comparison-summary-cards .comparison-card:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
}

.comparison-summary-cards .card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.comparison-summary-cards .card-icon {
	font-size: 24px;
}

.comparison-summary-cards .card-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.comparison-summary-cards .card-scores {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.comparison-summary-cards .score-item {
	flex: 1;
	text-align: center;
	padding: 15px;
	border-radius: 12px;
	transition: all 0.3s ease;
}

.comparison-summary-cards .your-score {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
}

.comparison-summary-cards .competitor-score {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: #ffffff;
}

.comparison-summary-cards .score-item.winner {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.comparison-summary-cards .score-value {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 5px;
}

.comparison-summary-cards .score-label {
	font-size: 12px;
	opacity: 0.9;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.comparison-summary-cards .vs-divider {
	font-size: 14px;
	font-weight: 700;
	color: #6c757d;
	padding: 0 10px;
}

/* ============================================
   PRIORITY ACTIONS
   ============================================ */
.priority-actions-section {
	margin-top: 40px;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 24px;
	font-weight: 700;
	color: #333;
	margin-bottom: 25px;
}

.title-icon {
	font-size: 28px;
}

.actions-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.action-item {
	display: flex;
	gap: 20px;
	background: #ffffff;
	border: 2px solid #e9ecef;
	border-radius: 16px;
	padding: 25px;
	transition: all 0.3s ease;
}

.action-item:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	transform: translateX(5px);
	border-color: #667eea;
}

.action-number {
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 700;
	flex-shrink: 0;
}

.action-content {
	flex: 1;
}

.action-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 0 10px 0;
}

.action-description {
	font-size: 14px;
	color: #6c757d;
	margin: 0;
	line-height: 1.6;
}

/* ============================================
   OPPORTUNITIES
   ============================================ */
.opportunities-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.opportunity-card {
	background: #ffffff;
	border: 2px solid #e9ecef;
	border-radius: 16px;
	padding: 25px;
	transition: all 0.3s ease;
}

.opportunity-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	border-color: #667eea;
}

.opportunity-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
	flex-wrap: wrap;
	gap: 10px;
}

.opportunity-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.opportunity-badge {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: #ffffff;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
}

.opportunity-description {
	font-size: 14px;
	color: #6c757d;
	line-height: 1.6;
	margin: 0 0 15px 0;
}

.toggle-guide-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	border: none;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.toggle-guide-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.guide-content {
	margin-top: 20px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 12px;
}

.guide-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px 0;
}

.guide-steps {
	margin: 0;
	padding-left: 20px;
}

.guide-steps li {
	margin-bottom: 10px;
	color: #555;
	line-height: 1.6;
}

/* ============================================
   SEO CARDS
   ============================================ */
.seo-section {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.seo-card {
	background: #ffffff;
	border: 2px solid #e9ecef;
	border-radius: 16px;
	padding: 25px;
	transition: all 0.3s ease;
}

.seo-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	border-color: #667eea;
}

.seo-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
	flex-wrap: wrap;
	gap: 10px;
}

.seo-card-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.status-badge {
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.status-good {
	background: #d4edda;
	color: #155724;
}

.status-warning {
	background: #fff3cd;
	color: #856404;
}

.status-error {
	background: #f8d7da;
	color: #721c24;
}

.seo-text {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	margin: 0 0 15px 0;
}

.seo-meta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.meta-badge {
	background: #f8f9fa;
	color: #6c757d;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
}

.seo-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
	margin-top: 15px;
}

.stat-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.stat-label {
	font-size: 12px;
	color: #6c757d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stat-value {
	font-size: 24px;
	font-weight: 700;
	color: #333;
}

.stat-value.success {
	color: #28a745;
}

.stat-value.error {
	color: #dc3545;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin: 28px 0;
}

.comparison-card {
	background: rgba(255, 255, 255, 0.82);
	border-radius: 18px;
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(18px) saturate(160%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: relative;
	overflow: hidden;
}

.comparison-card::after {
	content: '';
	position: absolute;
	top: -45%;
	right: -30%;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, rgba(0, 113, 227, 0) 70%);
	transform: rotate(25deg);
}

.comparison-card.comparison-competitor::after {
	background: radial-gradient(circle, rgba(255, 45, 85, 0.1) 0%, rgba(255, 45, 85, 0) 70%);
}

.comparison-card .card-header {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.comparison-card .card-badge {
	align-self: flex-start;
	background: rgba(0, 113, 227, 0.12);
	color: #0071e3;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.comparison-card .card-badge.competitor {
	background: rgba(255, 45, 85, 0.12);
	color: #ff2d55;
}

.comparison-card .card-domain {
	font-size: 20px;
	font-weight: 700;
	color: #1d1d1f;
	margin: 0;
}

.comparison-card .card-strategy {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #6e6e73;
}

.comparison-card .card-body {
	position: relative;
	z-index: 1;
}

.score-pill-group {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.score-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(210, 214, 220, 0.8);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 18px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.score-pill:hover {
	transform: translateY(-2px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 28px rgba(0, 0, 0, 0.08);
}

.score-pill .pill-icon {
	font-size: 16px;
	margin-right: 10px;
}

.score-pill .pill-label {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	color: #3a3a3c;
}

.score-pill .pill-value {
	font-size: 16px;
	font-weight: 700;
	min-width: 44px;
	text-align: right;
}

.score-pill-good {
	border-color: rgba(52, 199, 89, 0.35);
	background: linear-gradient(135deg, rgba(52, 199, 89, 0.14), rgba(48, 209, 88, 0.06));
	color: #1d7f42;
}

.score-pill-average {
	border-color: rgba(255, 149, 0, 0.35);
	background: linear-gradient(135deg, rgba(255, 149, 0, 0.16), rgba(255, 204, 0, 0.06));
	color: #b15b00;
}

.score-pill-poor {
	border-color: rgba(255, 69, 58, 0.3);
	background: linear-gradient(135deg, rgba(255, 69, 58, 0.16), rgba(255, 45, 85, 0.06));
	color: #b00020;
}

.score-pill-na {
	border-color: rgba(60, 60, 67, 0.15);
	background: rgba(142, 142, 147, 0.12);
	color: #6e6e73;
}

.premium-comparison-table {
	overflow-x: auto;
	margin-top: 20px;
}

.premium-comparison-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.premium-comparison-table thead {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.premium-comparison-table th {
	padding: 18px 20px;
	text-align: left;
	font-weight: 600;
	color: #ffffff;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.premium-comparison-table th.your-site-col {
	background: rgba(255, 255, 255, 0.1);
}

.premium-comparison-table th.competitor-col {
	background: rgba(255, 255, 255, 0.15);
}

.premium-comparison-table tbody tr {
	border-bottom: 1px solid #e9ecef;
	transition: background 0.2s ease;
}

.premium-comparison-table tbody tr:hover {
	background: #f8f9fa;
}

.premium-comparison-table tbody tr:last-child {
	border-bottom: none;
}

.premium-comparison-table td {
	padding: 18px 20px;
	font-size: 14px;
	color: #333;
}

.premium-comparison-table td.your-site-col {
	background: rgba(102, 126, 234, 0.05);
	font-weight: 600;
	color: #667eea;
}

.premium-comparison-table td.competitor-col {
	background: rgba(240, 147, 251, 0.05);
	font-weight: 600;
	color: #f5576c;
}

.winner-col {
	text-align: center;
}

.winner-badge-premium,
.loser-badge-premium,
.tie-badge-premium {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.winner-badge-premium {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
	color: #ffffff;
}

.loser-badge-premium {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: #ffffff;
}

.tie-badge-premium {
	background: #6c757d;
	color: #ffffff;
}

/* ============================================
   LIGHTHOUSE-STYLE REPORT
   ============================================ */
.lighthouse-report {
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-radius: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1),
	            0 8px 24px rgba(0, 0, 0, 0.06),
	            inset 0 1px 0 rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.5);
	overflow: hidden;
	margin-top: 40px;
}

.report-header-lighthouse {
	background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 32px 40px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.report-title-main {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: #1d1d1f;
	letter-spacing: -0.5px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.report-meta-info {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.meta-item {
	display: flex;
	gap: 8px;
	font-size: 14px;
}

.meta-label {
	color: #666;
	font-weight: 500;
}

.meta-value {
	color: #333;
}

.scores-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 24px;
	padding: 40px;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	position: relative;
	overflow: hidden;
}

/* Light sweep animation background */
.scores-overview::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, 
		transparent, 
		rgba(255, 255, 255, 0.3) 50%, 
		transparent
	);
	animation: lightSweep 8s ease-in-out infinite;
	pointer-events: none;
}

@keyframes lightSweep {
	0% {
		left: -100%;
	}
	50% {
		left: 100%;
	}
	100% {
		left: 100%;
	}
}

.score-card-lighthouse {
	text-align: center;
	padding: 28px 20px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
	            0 2px 8px rgba(0, 0, 0, 0.04),
	            inset 0 1px 0 rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	animation: fadeInUp 0.6s ease-out backwards;
}

/* Staggered animation delay for score cards */
.score-card-lighthouse:nth-child(1) { animation-delay: 0.1s; }
.score-card-lighthouse:nth-child(2) { animation-delay: 0.2s; }
.score-card-lighthouse:nth-child(3) { animation-delay: 0.3s; }
.score-card-lighthouse:nth-child(4) { animation-delay: 0.4s; }

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

.score-card-lighthouse::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, 
		transparent, 
		rgba(255, 255, 255, 0.4) 50%, 
		transparent
	);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.score-card-lighthouse:hover::before {
	animation: cardSweep 1.5s ease-in-out;
	opacity: 1;
}

@keyframes cardSweep {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

.score-card-lighthouse:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12),
	            0 4px 16px rgba(0, 0, 0, 0.08),
	            inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


.score-circle-lighthouse {
	width: 100px;
	height: 100px;
	margin: 0 auto 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
	            inset 0 2px 4px rgba(255, 255, 255, 0.3);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-card-lighthouse:hover .score-circle-lighthouse {
	transform: scale(1.05);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2),
	            inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.score-good .score-circle-lighthouse {
	background: linear-gradient(135deg, #0cce6b 0%, #00d4aa 100%);
}

.score-average .score-circle-lighthouse {
	background: linear-gradient(135deg, #ffa400 0%, #ff8c00 100%);
}

.score-poor .score-circle-lighthouse {
	background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
}

.score-na .score-circle-lighthouse {
	background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
}

.score-value-large {
	font-size: 36px;
	font-weight: 800;
	color: #ffffff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	letter-spacing: -1px;
}

.score-label-lighthouse {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #1d1d1f;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.score-icon {
	font-size: 20px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.strategy-tabs {
	display: flex;
	gap: 12px;
	padding: 24px 40px;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	justify-content: center;
	align-items: center;
}

.strategy-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 32px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px) saturate(180%);
	-webkit-backdrop-filter: blur(10px) saturate(180%);
	border: 2px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: #6e6e73;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
	            inset 0 1px 0 rgba(255, 255, 255, 0.9);
	position: relative;
	overflow: hidden;
}

.strategy-tab::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, 
		transparent, 
		rgba(0, 113, 227, 0.1) 50%, 
		transparent
	);
	transition: left 0.5s ease;
}

.strategy-tab:hover {
	color: #0071e3;
	background: rgba(255, 255, 255, 1);
	border-color: rgba(0, 113, 227, 0.2);
	box-shadow: 0 4px 16px rgba(0, 113, 227, 0.15),
	            inset 0 1px 0 rgba(255, 255, 255, 0.9);
	transform: translateY(-2px);
}

.strategy-tab:hover::before {
	left: 100%;
}

.strategy-tab.active {
	color: #0071e3;
	background: rgba(0, 113, 227, 0.1);
	border-color: #0071e3;
	box-shadow: 0 4px 16px rgba(0, 113, 227, 0.2),
	            0 0 0 3px rgba(0, 113, 227, 0.1),
	            inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.strategy-icon {
	font-size: 20px;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
	transition: transform 0.3s ease;
}

.strategy-tab:hover .strategy-icon {
	transform: scale(1.1);
}

.strategy-text {
	letter-spacing: 0.3px;
}

.report-section {
	padding: 40px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	background: rgba(255, 255, 255, 0.5);
	transition: background 0.3s ease;
}

.report-section:hover {
	background: rgba(255, 255, 255, 0.7);
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
	flex-wrap: wrap;
	gap: 20px;
	padding-bottom: 20px;
	border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 28px;
	font-weight: 700;
	margin: 0;
	color: #1d1d1f;
	letter-spacing: -0.3px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-icon {
	font-size: 32px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.section-score {
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -1px;
}

.score-number {
	padding: 12px 24px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
	            inset 0 1px 0 rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.score-good {
	color: #0cce6b;
}

.score-average {
	color: #ffa400;
}

.score-poor {
	color: #f44336;
}

.score-na {
	color: #9e9e9e;
}

.subsection-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 12px 0;
	color: #333;
	display: flex;
	align-items: center;
	gap: 8px;
}

.subsection-icon {
	font-size: 18px;
}

.section-description {
	font-size: 14px;
	color: #666;
	margin: 0 0 16px 0;
	line-height: 1.6;
}

.metrics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin-bottom: 40px;
}

.metric-item {
	padding: 24px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px) saturate(180%);
	-webkit-backdrop-filter: blur(10px) saturate(180%);
	border-radius: 16px;
	border-left: 4px solid #0071e3;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06),
	            0 2px 8px rgba(0, 0, 0, 0.04),
	            inset 0 1px 0 rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.5);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	animation: slideInLeft 0.5s ease-out backwards;
}

.metric-item:nth-child(odd) {
	animation-delay: 0.1s;
}

.metric-item:nth-child(even) {
	animation-delay: 0.2s;
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.metric-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, #0071e3 0%, #0051a2 100%);
	transition: width 0.3s ease;
}

.metric-item:hover {
	box-shadow: 0 8px 32px rgba(0, 113, 227, 0.15),
	            0 4px 16px rgba(0, 0, 0, 0.08),
	            inset 0 1px 0 rgba(255, 255, 255, 0.9);
	transform: translateY(-4px) translateX(4px);
	border-left-width: 6px;
}

.metric-item:hover::before {
	width: 6px;
}

.metric-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.metric-label {
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

.metric-score-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.metric-score-indicator.score-good {
	background: #0cce6b;
}

.metric-score-indicator.score-average {
	background: #ffa400;
}

.metric-score-indicator.score-poor {
	background: #f44336;
}

.metric-value {
	font-size: 24px;
	font-weight: 700;
	color: #333;
	margin-bottom: 4px;
}

.metric-description {
	font-size: 12px;
	color: #666;
	margin: 0;
	line-height: 1.5;
}

.opportunities-list-lighthouse,
.diagnostics-list,
.seo-audits-list,
.best-practices-audits-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.opportunity-item-lighthouse,
.diagnostic-item,
.audit-item {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 16px;
	transition: all 0.2s ease;
}

.opportunity-item-lighthouse:hover,
.diagnostic-item:hover,
.audit-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-color: #1976d2;
}

/* Prevent parent click handlers from interfering with expand buttons */
.opportunity-header-lighthouse,
.diagnostic-header,
.audit-header {
	position: relative;
}

.opportunity-header-lighthouse > *,
.diagnostic-header > *,
.audit-header > * {
	pointer-events: auto;
}

.opportunity-header-lighthouse,
.diagnostic-header,
.audit-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.opportunity-title-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
}

.opportunity-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.opportunity-title-lighthouse,
.diagnostic-title,
.audit-title {
	font-size: 16px;
	font-weight: 500;
	margin: 0;
	color: #333;
	flex: 1;
	min-width: 0;
	word-wrap: break-word;
}

.opportunity-savings,
.diagnostic-value,
.audit-value {
	font-size: 14px;
	font-weight: 600;
	color: #1976d2;
	background: #e3f2fd;
	padding: 4px 12px;
	border-radius: 4px;
	white-space: nowrap;
}

.expand-btn {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px 8px;
	color: #666;
	transition: all 0.2s ease;
	border-radius: 4px;
	flex-shrink: 0;
	position: relative;
	z-index: 10;
	outline: none;
	user-select: none;
	-webkit-user-select: none;
}

.expand-btn:hover {
	color: #333;
	background: #f0f0f0;
}

.expand-btn:focus {
	outline: 2px solid rgba(0, 113, 227, 0.3);
	outline-offset: 2px;
}

.expand-btn.processing {
	pointer-events: none;
	opacity: 0.7;
	cursor: not-allowed;
}

.expand-btn.expanded .expand-icon {
	transform: rotate(180deg);
}

.expand-icon {
	display: inline-block;
	transition: transform 0.2s ease;
	font-size: 12px;
	pointer-events: none;
}

.opportunity-content,
.diagnostic-content,
.audit-content {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e9ecef;
	display: none;
}

.opportunity-description-lighthouse,
.diagnostic-description,
.audit-description {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin: 0 0 16px 0;
}

.fix-guide-lighthouse {
	background: #f8f9fa;
	padding: 16px;
	border-radius: 6px;
	margin-top: 12px;
}

.guide-title-lighthouse {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 12px 0;
	color: #333;
}

.guide-steps-lighthouse {
	margin: 0;
	padding-left: 20px;
}

.guide-steps-lighthouse li {
	margin-bottom: 8px;
	font-size: 14px;
	color: #555;
	line-height: 1.6;
}

.accessibility-category {
	margin-bottom: 24px;
}

.category-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 16px 0;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.audit-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.audit-pass {
	background: #0cce6b;
	color: #ffffff;
}

.audit-fail {
	background: #f44336;
	color: #ffffff;
}

.details-list {
	margin: 12px 0 0 0;
	padding-left: 20px;
}

.details-list li {
	font-size: 13px;
	color: #666;
	margin-bottom: 6px;
	font-family: 'Courier New', monospace;
	word-break: break-all;
	background: #f8f9fa;
	padding: 4px 8px;
	border-radius: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
	.audit-form-wrapper {
		padding: 30px 25px;
	}
	
	.device-toggle-group {
		flex-wrap: wrap;
		justify-content: center;
	}
	
	.device-toggle-label {
		padding: 10px 16px;
	}

	.form-title {
		font-size: 32px;
	}
	
	/* Reduce animations on mobile for performance */
	.score-card-lighthouse,
	.metric-item {
		animation-duration: 0.3s;
	}
	
	.scores-overview::before {
		animation-duration: 12s;
	}
	
	.score-card-lighthouse:hover {
		transform: translateY(-4px) scale(1.01);
	}

	.form-subtitle {
		font-size: 16px;
	}

	.report-header-section {
		padding: 30px 20px;
	}

	.report-title {
		font-size: 28px;
	}

	.tab-content-wrapper {
		padding: 25px 20px;
	}

	.score-cards-grid,
	.comparison-summary-cards {
		grid-template-columns: 1fr;
	}

	.comparison-summary-grid {
		grid-template-columns: 1fr;
	}

	.score-pill-group {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	}

	.card-scores {
		flex-direction: column;
	}

	.vs-divider {
		transform: rotate(90deg);
	}

	/* Lighthouse Report Responsive */
	.scores-overview {
		grid-template-columns: repeat(2, 1fr);
		padding: 16px;
		gap: 12px;
	}

	.metrics-grid {
		grid-template-columns: 1fr;
	}

	.report-section {
		padding: 16px;
	}

	.section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.opportunity-title-row {
		flex-wrap: wrap;
	}

	.report-header-lighthouse {
		padding: 16px;
	}

	.report-title-main {
		font-size: 20px;
	}

	.report-meta-info {
		flex-direction: column;
		gap: 12px;
	}

	.strategy-tabs {
		padding: 16px;
		gap: 8px;
		flex-wrap: wrap;
		justify-content: center;
	}

	.strategy-tab {
		padding: 12px 24px;
		font-size: 14px;
		flex: 1;
		min-width: 120px;
		max-width: 200px;
	}
	
	.strategy-icon {
		font-size: 18px;
	}
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
	.score-card-lighthouse,
	.metric-item,
	.scores-overview::before,
	.score-card-lighthouse::before,
	.score-circle-lighthouse {
		animation: none !important;
		transition: none !important;
	}
	
	.score-card-lighthouse:hover {
		transform: none;
	}
	
	.metric-item:hover {
		transform: none;
	}
}





/* ============================================
   FIX 1: URL & Input Overflow Issue
   ============================================ */
.form-input,
.form-select {
    max-width: 100% !important;   /* prevent overflow */
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Ensure inputs inside grid do not spill */
.form-row .form-group-half .form-input {
    width: 100% !important;
}




/* Center the button properly */
.premium-audit-form .btn-wrapper,
.audit-form-wrapper .btn-wrapper {
    display: flex;
    justify-content: center;
}

/* Optional: Keep alignment clean in narrow screens */
@media (max-width: 768px) {
    .btn-audit-submit {
        width: 100% !important;     /* mobile full width */
        white-space: nowrap;
    }
}
