/* ==========================================================================
   Tesla Tinting Film Comprehensive Comparison Guide (tint.css)
   TeslaCharger Design System - Light / Dark Theme Compatible
   ========================================================================== */

.tint-hero {
	background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.15), transparent 70%), var(--tc-bg, #0b0f19);
	padding: 3.5rem 1rem 2.2rem;
	text-align: center;
	border-bottom: 1px solid var(--tc-border, rgba(255, 255, 255, 0.08));
	position: relative;
	overflow: hidden;
}

.tint-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 300px;
	background: radial-gradient(ellipse, rgba(56, 189, 248, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
	pointer-events: none;
}

.tint-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(14, 165, 233, 0.12);
	border: 1px solid rgba(14, 165, 233, 0.3);
	color: #38bdf8;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 4px 14px;
	border-radius: 20px;
	margin-bottom: 1rem;
}

[data-bs-theme="light"] .tint-hero-badge {
	background: #e0f2fe;
	border-color: #7dd3fc;
	color: #0284c7;
}

.tint-search-bar {
	max-width: 650px;
	margin: 0 auto 1.2rem;
}

.tint-search-box {
	display: flex;
	align-items: center;
	background: var(--tc-surface, #161e2e);
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.12));
	border-radius: 30px;
	padding: 6px 18px;
	transition: all 0.25s ease;
	width: 100%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tint-search-box:focus-within {
	background: var(--tc-surface-hover, #1f2a3f);
	border-color: #0ea5e9;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

[data-bs-theme="light"] .tint-search-box {
	background: #ffffff;
	border-color: #cbd5e1;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tint-search-input {
	background: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: var(--tc-text-primary, #f1f5f9);
	padding: 8px 10px;
	font-size: 1rem;
	width: 100%;
}

.tint-search-input::placeholder {
	color: var(--tc-text-secondary, #94a3b8);
	font-size: 0.92rem;
}

/* Filter Chips */
.tint-chip-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 0.75rem;
}

.tint-chip {
	background: var(--tc-surface, #1e293b);
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.1));
	color: var(--tc-text-secondary, #94a3b8);
	font-size: 0.82rem;
	padding: 5px 13px;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 500;
}

.tint-chip:hover {
	background: var(--tc-surface-hover, #334155);
	color: var(--tc-text-primary, #f8fafc);
	border-color: rgba(255, 255, 255, 0.25);
}

.tint-chip.active {
	background: #0284c7;
	border-color: #38bdf8;
	color: #ffffff !important;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(14, 165, 233, 0.4);
}

[data-bs-theme="light"] .tint-chip {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #475569;
}

[data-bs-theme="light"] .tint-chip:hover {
	background: #e2e8f0;
	color: #0f172a;
}

[data-bs-theme="light"] .tint-chip.active {
	background: #0284c7;
	border-color: #0284c7;
	color: #ffffff !important;
}

/* Section Nav Tabs */
.tint-nav-tabs {
	display: flex;
	gap: 8px;
	border-bottom: 1px solid var(--tc-border, rgba(255, 255, 255, 0.1));
	padding-bottom: 0.5rem;
	overflow-x: auto;
	scrollbar-width: none;
}
.tint-nav-tabs::-webkit-scrollbar { display: none; }

.tint-nav-tab {
	padding: 8px 18px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--tc-text-secondary, #94a3b8);
	border-radius: 12px;
	transition: all 0.2s ease;
	cursor: pointer;
	white-space: nowrap;
	border: 1px solid transparent;
	background: transparent;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tint-nav-tab:hover {
	color: var(--tc-text-primary, #ffffff);
	background: var(--tc-surface-hover, rgba(255, 255, 255, 0.05));
}

.tint-nav-tab.active {
	color: #38bdf8;
	background: rgba(14, 165, 233, 0.12);
	border-color: rgba(14, 165, 233, 0.3);
}

[data-bs-theme="light"] .tint-nav-tab.active {
	color: #0284c7;
	background: #e0f2fe;
	border-color: #bae6fd;
}

/* Film Card Grid */
.tint-card {
	background: var(--tc-surface, rgba(255, 255, 255, 0.03));
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--tc-radius-md, 16px);
	padding: 1.4rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.tint-card:hover {
	transform: translateY(-3px);
	border-color: var(--tc-border-highlight, rgba(255, 255, 255, 0.2));
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="light"] .tint-card {
	background: #ffffff;
	border-color: #e2e8f0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .tint-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tint-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 0.9rem;
}

.tint-brand-pill {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 9px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.tint-type-badge {
	font-size: 0.72rem;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 6px;
}

.badge-nonmetal {
	background: rgba(48, 209, 88, 0.15);
	color: #30d158;
	border: 1px solid rgba(48, 209, 88, 0.3);
}

.badge-metal {
	background: rgba(255, 159, 10, 0.15);
	color: #ff9f0a;
	border: 1px solid rgba(255, 159, 10, 0.3);
}

[data-bs-theme="light"] .badge-nonmetal {
	background: #dcfce7;
	color: #15803d;
	border-color: #86efac;
}

[data-bs-theme="light"] .badge-metal {
	background: #fef3c7;
	color: #b45309;
	border-color: #fde68a;
}

.tint-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin-bottom: 0.3rem;
	color: var(--tc-text-primary, #ffffff);
}

.tint-card-desc {
	font-size: 0.85rem;
	color: var(--tc-text-secondary, #94a3b8);
	line-height: 1.5;
	margin-bottom: 1rem;
	min-height: 2.5rem;
}

/* Stat Meters */
.tint-stats-box {
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.06));
	border-radius: 12px;
	padding: 10px 12px;
	margin-bottom: 1rem;
}

[data-bs-theme="light"] .tint-stats-box {
	background: #f8fafc;
	border-color: #f1f5f9;
}

.tint-stat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
	font-size: 0.82rem;
}
.tint-stat-row:last-child { margin-bottom: 0; }

.tint-meter-bg {
	flex-grow: 1;
	height: 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	margin: 0 10px;
	overflow: hidden;
}

[data-bs-theme="light"] .tint-meter-bg {
	background: #e2e8f0;
}

.tint-meter-fill {
	height: 100%;
	border-radius: 3px;
	transition: width 0.6s ease;
}

.fill-tser { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.fill-ir { background: linear-gradient(90deg, #e11d48, #fb7185); }
.fill-uv { background: linear-gradient(90deg, #7c3aed, #a78bfa); }

/* VLT Tag list */
.tint-vlt-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 0.8rem;
}

.tint-vlt-tag {
	font-size: 0.72rem;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.1));
	padding: 2px 7px;
	border-radius: 4px;
	color: var(--tc-text-secondary, #94a3b8);
}

[data-bs-theme="light"] .tint-vlt-tag {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #64748b;
}

/* Pros and Cons */
.tint-feature-item {
	font-size: 0.8rem;
	color: var(--tc-text-secondary, #cbd5e1);
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-bottom: 4px;
	line-height: 1.4;
}

[data-bs-theme="light"] .tint-feature-item {
	color: #475569;
}

/* Card Bottom */
.tint-card-footer {
	margin-top: auto;
	padding-top: 0.8rem;
	border-top: 1px solid var(--tc-border, rgba(255, 255, 255, 0.08));
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tint-price-badge {
	font-size: 0.88rem;
	font-weight: 700;
	color: #38bdf8;
}

[data-bs-theme="light"] .tint-price-badge {
	color: #0284c7;
}

.tint-compare-chk {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.8rem;
	color: var(--tc-text-secondary, #94a3b8);
	cursor: pointer;
	user-select: none;
}

/* Floating Comparison Bar */
.tint-compare-bar {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(120%);
	background: rgba(15, 23, 42, 0.95);
	border: 1px solid rgba(56, 189, 248, 0.4);
	border-radius: 30px;
	padding: 10px 24px;
	display: flex;
	align-items: center;
	gap: 16px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(14, 165, 233, 0.3);
	z-index: 9999;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tint-compare-bar.show {
	transform: translateX(-50%) translateY(0);
}

[data-bs-theme="light"] .tint-compare-bar {
	background: rgba(255, 255, 255, 0.95);
	border-color: #38bdf8;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 10px rgba(14, 165, 233, 0.15);
}

/* VLT Simulator Box */
.tint-sim-box {
	background: var(--tc-surface, rgba(255, 255, 255, 0.03));
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.1));
	border-radius: var(--tc-radius-lg, 24px);
	padding: 2rem;
	position: relative;
}

[data-bs-theme="light"] .tint-sim-box {
	background: #ffffff;
	border-color: #e2e8f0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.tint-car-visualizer {
	background: radial-gradient(circle at 50% 30%, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.12));
	border-radius: 20px;
	padding: 2rem 1.5rem 1.5rem;
	position: relative;
	overflow: hidden;
	box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .tint-car-visualizer {
	background: radial-gradient(circle at 50% 30%, #f8fafc 0%, #e2e8f0 100%);
	border-color: #cbd5e1;
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.preset-sim-btn {
	font-size: 0.85rem;
	padding: 8px 14px;
	border-radius: 10px;
	white-space: normal;
	text-align: center;
	word-break: keep-all;
	line-height: 1.4;
	transition: all 0.2s ease;
}

@media (max-width: 768px) {
	.preset-sim-btn {
		width: 100%;
		font-size: 0.82rem;
		padding: 9px 12px;
		text-align: left;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		word-break: keep-all;
	}
}

.tint-stage-controls {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 1.2rem;
	z-index: 5;
	position: relative;
	width: 100%;
}

.tint-ctrl-block {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.tint-ctrl-label {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--tc-text-secondary, #94a3b8);
	white-space: nowrap;
	flex-shrink: 0;
	min-width: 100px;
}

.tint-model-grid {
	display: inline-flex;
	background: rgba(15, 23, 42, 0.7);
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.15));
	border-radius: 10px;
	padding: 3px;
	gap: 3px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="light"] .tint-model-grid {
	background: #f1f5f9;
	border-color: #cbd5e1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tint-color-wrap {
	display: inline-flex;
	flex-wrap: nowrap;
	background: rgba(15, 23, 42, 0.7);
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.15));
	border-radius: 10px;
	padding: 3px;
	gap: 3px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="light"] .tint-color-wrap {
	background: #f1f5f9;
	border-color: #cbd5e1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tint-compare-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

.tint-compare-grid {
	display: inline-flex;
	background: rgba(15, 23, 42, 0.7);
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.15));
	border-radius: 10px;
	padding: 3px;
	gap: 3px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="light"] .tint-compare-grid {
	background: #f1f5f9;
	border-color: #cbd5e1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tint-ctrl-btn {
	color: #94a3b8 !important;
	background: transparent !important;
	border: 1px solid transparent !important;
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	padding: 5px 12px !important;
	border-radius: 7px !important;
	transition: all 0.2s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	white-space: nowrap !important;
	cursor: pointer;
	flex-shrink: 0;
}

.tint-ctrl-btn:hover {
	color: #f8fafc !important;
	background: rgba(255, 255, 255, 0.08) !important;
}

.tint-ctrl-btn.active {
	color: #ffffff !important;
	background: #0284c7 !important;
	border-color: #38bdf8 !important;
	box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4) !important;
}

[data-bs-theme="light"] .tint-ctrl-btn {
	color: #475569 !important;
}

[data-bs-theme="light"] .tint-ctrl-btn:hover {
	color: #0f172a !important;
	background: #e2e8f0 !important;
}

[data-bs-theme="light"] .tint-ctrl-btn.active {
	color: #ffffff !important;
	background: #0284c7 !important;
	border-color: #0284c7 !important;
}

/* Mobile Adaptive Styles */
@media (max-width: 768px) {
	.tint-stage-controls {
		gap: 12px;
	}

	.tint-ctrl-block {
		display: block;
		width: 100%;
	}

	.tint-ctrl-label {
		display: block;
		font-size: 0.8rem;
		margin-bottom: 4px;
	}

	.tint-model-grid {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 4px;
		width: 100%;
		padding: 3px;
	}

	.tint-model-grid .tint-ctrl-btn {
		justify-content: center;
		padding: 6px 2px !important;
		font-size: 0.78rem !important;
		width: 100%;
		text-align: center;
	}

	.tint-color-wrap {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		width: 100%;
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		padding: 0 !important;
	}

	.tint-color-wrap .tint-ctrl-btn {
		background: rgba(15, 23, 42, 0.7) !important;
		border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.15)) !important;
		border-radius: 20px !important;
		padding: 5px 11px !important;
		font-size: 0.78rem !important;
		flex: 1 1 auto;
		justify-content: center;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	}

	[data-bs-theme="light"] .tint-color-wrap .tint-ctrl-btn {
		background: #f1f5f9 !important;
		border-color: #cbd5e1 !important;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
	}

	.tint-color-wrap .tint-ctrl-btn.active {
		background: #0284c7 !important;
		border-color: #38bdf8 !important;
		color: #ffffff !important;
		box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4) !important;
	}

	[data-bs-theme="light"] .tint-color-wrap .tint-ctrl-btn.active {
		background: #0284c7 !important;
		border-color: #0284c7 !important;
		color: #ffffff !important;
	}

	.tint-compare-wrapper {
		display: block;
		width: 100%;
	}

	.tint-compare-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 4px;
		width: 100%;
		padding: 3px;
	}

	.tint-compare-grid .tint-ctrl-btn {
		justify-content: center;
		padding: 6px 4px !important;
		font-size: 0.78rem !important;
		width: 100%;
		text-align: center;
	}
}

.color-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.tint-car-stage {
	width: 100%;
	max-width: 820px;
	margin: 0 auto 1.5rem;
	position: relative;
	isolation: isolate;
}

#simTintCanvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.tint-glass-layer {
	cursor: pointer;
}

.tint-glass-layer:hover {
	stroke: #38bdf8;
	stroke-width: 2px;
}

.tint-interior-layer {
	transition: opacity 0.35s ease;
}

.tint-window-pill-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	max-width: 820px;
	margin: 0 auto;
}

.tint-window-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 8px 10px;
	text-align: center;
	transition: all 0.25s ease;
	min-width: 0;
	overflow: hidden;
}

[data-bs-theme="light"] .tint-window-card {
	background: #ffffff;
	border-color: #e2e8f0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tint-window-card .vlt-val {
	font-size: 1.25rem;
	font-weight: 800;
	color: #38bdf8;
	line-height: 1.2;
	margin: 2px 0;
}

[data-bs-theme="light"] .tint-window-card .vlt-val {
	color: #0284c7;
}

.tint-window-card > div {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 0.75rem;
}

@media (max-width: 576px) {
	.tint-ctrl-btn {
		font-size: 0.76rem !important;
		padding: 4px 9px !important;
	}
	.tint-window-card {
		padding: 6px 4px;
	}
	.tint-window-card .vlt-val {
		font-size: 1.05rem;
	}
	.tint-window-card > div {
		font-size: 0.7rem;
	}
}

/* Guide Cards */
.tint-guide-card {
	background: var(--tc-surface, rgba(255, 255, 255, 0.03));
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--tc-radius-md, 16px);
	padding: 1.5rem;
	height: 100%;
	transition: all 0.25s ease;
}

.tint-guide-card:hover {
	border-color: rgba(14, 165, 233, 0.4);
	background: var(--tc-surface-hover, rgba(255, 255, 255, 0.05));
}

[data-bs-theme="light"] .tint-guide-card {
	background: #ffffff;
	border-color: #e2e8f0;
}

.tint-guide-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(14, 165, 233, 0.12);
	color: #38bdf8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

[data-bs-theme="light"] .tint-guide-icon {
	background: #e0f2fe;
	color: #0284c7;
}

/* Preset Cards */
.tint-preset-card {
	background: var(--tc-surface, rgba(255, 255, 255, 0.03));
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--tc-radius-md, 16px);
	padding: 1.5rem;
	position: relative;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.tint-preset-card.highlight {
	border-color: #0ea5e9;
	box-shadow: 0 0 25px rgba(14, 165, 233, 0.2);
}

[data-bs-theme="light"] .tint-preset-card {
	background: #ffffff;
	border-color: #e2e8f0;
}

/* Side by Side Modal Table */
.tint-matrix-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.tint-matrix-table th,
.tint-matrix-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--tc-border, rgba(255, 255, 255, 0.08));
	font-size: 0.9rem;
}

[data-bs-theme="light"] .tint-matrix-table th,
[data-bs-theme="light"] .tint-matrix-table td {
	border-bottom-color: #e2e8f0;
}

.tint-matrix-table th:first-child,
.tint-matrix-table td:first-child {
	font-weight: 600;
	color: var(--tc-text-secondary, #94a3b8);
	background: rgba(0, 0, 0, 0.15);
	width: 25%;
}

[data-bs-theme="light"] .tint-matrix-table th:first-child,
[data-bs-theme="light"] .tint-matrix-table td:first-child {
	background: #f8fafc;
	color: #64748b;
}
