/**
 * استایل فرانت‌اند افزونه آموزش ESP32 با میکروپایتون
 * طراحی: امین شیخ نجدی | glcd.ir
 * کاملاً راست‌چین (RTL) و واکنش‌گرا
 */

:root {
	--esp32-primary: #00b3a6;
	--esp32-primary-dark: #00897b;
	--esp32-primary-light: #4db6ac;
	--esp32-secondary: #ff6b35;
	--esp32-accent: #1a73e8;
	--esp32-dark: #1e293b;
	--esp32-darker: #0f172a;
	--esp32-gray: #64748b;
	--esp32-gray-light: #f1f5f9;
	--esp32-bg: #f8fafc;
	--esp32-success: #10b981;
	--esp32-warning: #f59e0b;
	--esp32-danger: #ef4444;
	--esp32-info: #3b82f6;
	--esp32-border: #e2e8f0;
	--esp32-radius: 14px;
	--esp32-radius-sm: 8px;
	--esp32-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	--esp32-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
	--esp32-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== داشبورد ====== */
.esp32-dashboard {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
	font-family: Vazirmatn, Tahoma, IRANSans, sans-serif;
}

/* نوار پیشرفت زیبا */
.esp32-progress-hero {
	background: linear-gradient(135deg, var(--esp32-primary) 0%, var(--esp32-primary-dark) 100%);
	border-radius: var(--esp32-radius);
	padding: 32px;
	color: #fff;
	margin-bottom: 30px;
	box-shadow: var(--esp32-shadow-lg);
	position: relative;
	overflow: hidden;
}

.esp32-progress-hero::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -10%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
	pointer-events: none;
}

.esp32-progress-hero h2 {
	color: #fff;
	margin: 0 0 6px 0;
	font-size: 24px;
	font-weight: 800;
}

.esp32-progress-hero p {
	margin: 0 0 20px 0;
	opacity: 0.9;
}

.esp32-hero-percent {
	font-size: 56px;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 16px;
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.esp32-hero-percent span {
	font-size: 24px;
	opacity: 0.8;
}

.esp32-hero-track {
	background: rgba(255, 255, 255, 0.25);
	height: 14px;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
}

.esp32-hero-fill {
	background: #fff;
	height: 100%;
	border-radius: 10px;
	transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

.esp32-hero-fill::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
	animation: esp32-shine 2s linear infinite;
}

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

.esp32-hero-meta {
	display: flex;
	justify-content: space-between;
	margin-top: 14px;
	font-size: 14px;
	opacity: 0.95;
}

.esp32-reset-btn-hero {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.4);
	padding: 6px 14px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 13px;
	font-family: inherit;
	transition: var(--esp32-transition);
}

.esp32-reset-btn-hero:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* آمار */
.esp32-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 30px;
}

.esp32-stat-box {
	background: #fff;
	border-radius: var(--esp32-radius);
	padding: 20px 22px;
	box-shadow: var(--esp32-shadow);
	display: flex;
	align-items: center;
	gap: 16px;
	border: 1px solid var(--esp32-border);
	transition: var(--esp32-transition);
}

.esp32-stat-box:hover {
	transform: translateY(-3px);
	box-shadow: var(--esp32-shadow-lg);
}

.esp32-stat-box .esp32-stat-ic {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	color: #fff;
	flex-shrink: 0;
}

.esp32-stat-box.ic-teal .esp32-stat-ic { background: linear-gradient(135deg, #00b3a6, #00897b); }
.esp32-stat-box.ic-blue .esp32-stat-ic { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.esp32-stat-box.ic-orange .esp32-stat-ic { background: linear-gradient(135deg, #ff6b35, #ea580c); }
.esp32-stat-box.ic-purple .esp32-stat-ic { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.esp32-stat-box .esp32-stat-n {
	font-size: 28px;
	font-weight: 800;
	color: var(--esp32-dark);
	line-height: 1.1;
}

.esp32-stat-box .esp32-stat-l {
	font-size: 13px;
	color: var(--esp32-gray);
	margin-top: 2px;
}

/* فیلتر سطح */
.esp32-level-filter {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	background: #fff;
	padding: 10px;
	border-radius: var(--esp32-radius);
	box-shadow: var(--esp32-shadow);
}

.esp32-level-tab {
	padding: 10px 22px;
	border-radius: 30px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: var(--esp32-gray);
	border: 2px solid transparent;
	transition: var(--esp32-transition);
	background: none;
	font-family: inherit;
}

.esp32-level-tab:hover {
	background: var(--esp32-gray-light);
}

.esp32-level-tab.active {
	background: var(--esp32-primary);
	color: #fff;
}

/* گرید درس‌ها */
.esp32-lessons-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

/* کارت درس */
.esp32-lesson-card {
	background: #fff;
	border-radius: var(--esp32-radius);
	overflow: hidden;
	box-shadow: var(--esp32-shadow);
	border: 1px solid var(--esp32-border);
	transition: var(--esp32-transition);
	position: relative;
	display: flex;
	flex-direction: column;
}

.esp32-lesson-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--esp32-shadow-lg);
	border-color: var(--esp32-primary-light);
}

.esp32-lesson-card.is-completed {
	border-color: var(--esp32-success);
}

.esp32-lesson-card.is-completed::before {
	content: "✓";
	position: absolute;
	top: 14px;
	left: 14px;
	width: 30px;
	height: 30px;
	background: var(--esp32-success);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 16px;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.esp32-lesson-card.is-current {
	border-color: var(--esp32-secondary);
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.esp32-lesson-thumb {
	height: 140px;
	background: linear-gradient(135deg, var(--esp32-primary) 0%, var(--esp32-primary-dark) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 56px;
	position: relative;
}

.esp32-lesson-thumb.t-beginner { background: linear-gradient(135deg, #00b3a6, #00897b); }
.esp32-lesson-thumb.t-intermediate { background: linear-gradient(135deg, #ff6b35, #ea580c); }
.esp32-lesson-thumb.t-advanced { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.esp32-lesson-number {
	position: absolute;
	top: 10px;
	right: 12px;
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	backdrop-filter: blur(4px);
}

.esp32-lesson-body {
	padding: 18px 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.esp32-lesson-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--esp32-dark);
	margin: 0 0 8px 0;
	line-height: 1.5;
}

.esp32-lesson-excerpt {
	font-size: 13px;
	color: var(--esp32-gray);
	line-height: 1.7;
	margin: 0 0 14px 0;
	flex: 1;
}

.esp32-lesson-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: var(--esp32-gray);
	padding-top: 12px;
	border-top: 1px solid var(--esp32-border);
}

.esp32-lesson-meta-left {
	display: flex;
	gap: 12px;
	align-items: center;
}

.esp32-diff-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
}

.esp32-diff-badge.d-beginner { background: #d1fae5; color: #047857; }
.esp32-diff-badge.d-intermediate { background: #ffedd5; color: #c2410c; }
.esp32-diff-badge.d-advanced { background: #ede9fe; color: #6d28d9; }

.esp32-lesson-link {
	display: inline-block;
	margin-top: 12px;
	background: var(--esp32-primary);
	color: #fff;
	padding: 9px 18px;
	border-radius: var(--esp32-radius-sm);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	transition: var(--esp32-transition);
}

.esp32-lesson-link:hover {
	background: var(--esp32-primary-dark);
	color: #fff;
	transform: translateY(-1px);
}

/* ====== صفحه درس ====== */
.esp32-lesson-header {
	background: linear-gradient(135deg, var(--esp32-darker) 0%, var(--esp32-dark) 100%);
	color: #fff;
	padding: 40px 30px;
	border-radius: var(--esp32-radius);
	margin-bottom: 24px;
	position: relative;
	overflow: hidden;
}

.esp32-lesson-header::after {
	content: "{ }";
	position: absolute;
	bottom: -20px;
	left: 20px;
	font-size: 180px;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.04);
	font-family: monospace;
	line-height: 1;
}

.esp32-lesson-header h1 {
	color: #fff;
	margin: 0 0 10px 0;
	font-size: 30px;
	font-weight: 800;
	position: relative;
	z-index: 1;
}

.esp32-lesson-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px;
	position: relative;
	z-index: 1;
}

.esp32-lesson-tag {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	backdrop-filter: blur(4px);
}

.esp32-complete-btn {
	background: var(--esp32-success);
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 30px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: var(--esp32-transition);
	font-family: inherit;
	margin-top: 18px;
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
	position: relative;
	z-index: 1;
}

.esp32-complete-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.esp32-complete-btn.is-done {
	background: var(--esp32-gray-light);
	color: var(--esp32-gray);
	box-shadow: none;
}

/* اهداف و پیش‌نیاز */
.esp32-objectives-box,
.esp32-requirements-box {
	background: #fff;
	border-radius: var(--esp32-radius);
	padding: 22px 26px;
	margin-bottom: 20px;
	box-shadow: var(--esp32-shadow);
	border-right: 5px solid var(--esp32-primary);
}

.esp32-objectives-box { border-right-color: var(--esp32-success); }
.esp32-requirements-box { border-right-color: var(--esp32-warning); }

.esp32-objectives-box h3,
.esp32-requirements-box h3 {
	margin: 0 0 12px 0;
	font-size: 17px;
	color: var(--esp32-dark);
	display: flex;
	align-items: center;
	gap: 8px;
}

.esp32-objectives-box ul,
.esp32-requirements-box ul {
	margin: 0;
	padding-right: 20px;
}

.esp32-objectives-box li,
.esp32-requirements-box li {
	margin-bottom: 6px;
	line-height: 1.8;
}

/* ====== شبیه‌ساز Wokwi ====== */
.esp32-wokwi-wrapper {
	background: #fff;
	border-radius: var(--esp32-radius);
	overflow: hidden;
	box-shadow: var(--esp32-shadow);
	border: 1px solid var(--esp32-border);
	margin: 20px 0;
}

.esp32-wokwi-header {
	background: linear-gradient(90deg, #aa076b, #6f0d4d);
	color: #fff;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.esp32-wokwi-title {
	font-weight: 700;
	flex: 1;
	font-size: 15px;
}

.esp32-wokwi-open {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	background: rgba(255, 255, 255, 0.2);
	padding: 5px 12px;
	border-radius: 20px;
	transition: var(--esp32-transition);
}

.esp32-wokwi-open:hover {
	background: rgba(255, 255, 255, 0.35);
}

.esp32-wokwi-iframe {
	display: block;
	border: none;
	width: 100%;
}

/* ====== بلوک کد ====== */
.esp32-code-block {
	background: #1e293b;
	border-radius: var(--esp32-radius);
	overflow: hidden;
	margin: 18px 0;
	box-shadow: var(--esp32-shadow);
	direction: ltr;
}

.esp32-code-header {
	background: #0f172a;
	color: #cbd5e1;
	padding: 10px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
}

.esp32-code-lang {
	color: #94a3b8;
	font-weight: 600;
}

.esp32-code-lang::before {
	content: "● ";
	color: #00b3a6;
}

.esp32-copy-btn {
	background: rgba(255, 255, 255, 0.08);
	color: #cbd5e1;
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 5px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: var(--esp32-transition);
	font-family: inherit;
}

.esp32-copy-btn:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.esp32-copy-btn.copied {
	background: var(--esp32-success);
	color: #fff;
	border-color: var(--esp32-success);
}

.esp32-code-pre {
	margin: 0;
	padding: 18px 20px;
	overflow-x: auto;
	font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
	font-size: 13.5px;
	line-height: 1.7;
	color: #e2e8f0;
}

.esp32-code-pre code {
	font-family: inherit;
	background: none;
	padding: 0;
}

/* ====== کال‌اوت ====== */
.esp32-callout {
	background: #fff;
	border-radius: var(--esp32-radius);
	padding: 18px 22px;
	margin: 18px 0;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	box-shadow: var(--esp32-shadow);
	border-right: 5px solid var(--esp32-info);
}

.esp32-callout-icon {
	font-size: 24px;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	margin-top: 2px;
}

.esp32-callout-info { border-right-color: var(--esp32-info); background: #eff6ff; }
.esp32-callout-info .esp32-callout-icon { color: var(--esp32-info); }

.esp32-callout-tip { border-right-color: var(--esp32-success); background: #ecfdf5; }
.esp32-callout-tip .esp32-callout-icon { color: var(--esp32-success); }

.esp32-callout-warning { border-right-color: var(--esp32-warning); background: #fffbeb; }
.esp32-callout-warning .esp32-callout-icon { color: var(--esp32-warning); }

.esp32-callout-danger { border-right-color: var(--esp32-danger); background: #fef2f2; }
.esp32-callout-danger .esp32-callout-icon { color: var(--esp32-danger); }

.esp32-callout-success { border-right-color: var(--esp32-success); background: #ecfdf5; }
.esp32-callout-success .esp32-callout-icon { color: var(--esp32-success); }

.esp32-callout-title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 4px;
	color: var(--esp32-dark);
}

.esp32-callout-text {
	font-size: 14px;
	line-height: 1.8;
	color: #475569;
}

.esp32-callout-text p:last-child { margin-bottom: 0; }

/* ====== تمرین ====== */
.esp32-exercise {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border: 2px dashed var(--esp32-warning);
	border-radius: var(--esp32-radius);
	padding: 20px 24px;
	margin: 20px 0;
}

.esp32-exercise-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.esp32-exercise-header .dashicons {
	font-size: 22px;
	color: var(--esp32-warning);
	width: 22px;
	height: 22px;
}

.esp32-exercise-header h4 {
	margin: 0;
	font-size: 17px;
	color: var(--esp32-dark);
}

.esp32-exercise-body {
	line-height: 1.8;
	color: #475569;
}

.esp32-exercise-answer {
	margin-top: 16px;
	background: #fff;
	border-radius: var(--esp32-radius-sm);
	padding: 12px 16px;
}

.esp32-exercise-answer summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--esp32-success);
	padding: 6px 0;
	user-select: none;
}

.esp32-exercise-answer summary:hover {
	color: var(--esp32-primary-dark);
}

.esp32-exercise-answer[open] summary {
	margin-bottom: 10px;
}

/* ====== پایه‌ها (Pinout) ====== */
.esp32-pinout {
	margin: 20px 0;
}

.esp32-pinout-title {
	text-align: center;
	color: var(--esp32-dark);
	font-size: 20px;
	margin-bottom: 18px;
}

.esp32-pinout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.esp32-pinout-card {
	background: #fff;
	border-radius: var(--esp32-radius);
	padding: 16px 18px;
	box-shadow: var(--esp32-shadow);
	border-top: 4px solid var(--esp32-primary);
}

.esp32-pinout-card.esp32-pinout-warn {
	border-top-color: var(--esp32-danger);
	background: #fef2f2;
}

.esp32-pinout-card h5 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: var(--esp32-dark);
}

.esp32-pinout-card ul {
	margin: 0;
	padding-right: 18px;
	font-size: 12.5px;
	color: #475569;
	line-height: 1.9;
	direction: ltr;
	text-align: left;
}

.esp32-pinout-card.esp32-pinout-warn ul {
	direction: rtl;
	text-align: right;
}

/* ====== قطعات ====== */
.esp32-components-box {
	background: #fff;
	border-radius: var(--esp32-radius);
	padding: 18px 22px;
	margin: 18px 0;
	box-shadow: var(--esp32-shadow);
	border: 1px solid var(--esp32-border);
}

.esp32-components-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.esp32-components-header .dashicons {
	color: var(--esp32-secondary);
	font-size: 22px;
	width: 22px;
	height: 22px;
}

.esp32-components-header h4 {
	margin: 0;
	font-size: 16px;
}

.esp32-components-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px;
}

.esp32-components-list li {
	background: var(--esp32-gray-light);
	padding: 8px 14px;
	border-radius: var(--esp32-radius-sm);
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.esp32-components-list .dashicons {
	color: var(--esp32-success);
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* ====== ناوبری درس ====== */
.esp32-lesson-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 30px;
	padding-top: 24px;
	border-top: 2px solid var(--esp32-border);
}

.esp32-nav-link {
	background: #fff;
	border: 1px solid var(--esp32-border);
	border-radius: var(--esp32-radius);
	padding: 14px 20px;
	text-decoration: none;
	color: var(--esp32-dark);
	flex: 1;
	transition: var(--esp32-transition);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.esp32-nav-link:hover {
	border-color: var(--esp32-primary);
	box-shadow: var(--esp32-shadow);
	transform: translateY(-2px);
}

.esp32-nav-link.esp32-nav-prev { text-align: right; }
.esp32-nav-link.esp32-nav-next { text-align: left; }

.esp32-nav-label {
	font-size: 11px;
	color: var(--esp32-gray);
	text-transform: uppercase;
}

.esp32-nav-title {
	font-weight: 700;
	font-size: 14px;
}

/* ====== ویجت پیشرفت ====== */
.esp32-progress-widget {
	background: #fff;
	border-radius: var(--esp32-radius);
	padding: 18px;
	box-shadow: var(--esp32-shadow);
}

.esp32-progress-label {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 13px;
	color: var(--esp32-gray);
}

.esp32-progress-track {
	background: var(--esp32-gray-light);
	height: 10px;
	border-radius: 6px;
	overflow: hidden;
}

.esp32-progress-fill {
	background: linear-gradient(90deg, var(--esp32-primary), var(--esp32-primary-light));
	height: 100%;
	border-radius: 6px;
	transition: width 0.6s ease;
}

.esp32-progress-meta {
	margin-top: 10px;
	font-size: 12px;
	color: var(--esp32-gray);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.esp32-reset-btn {
	background: none;
	border: 1px solid var(--esp32-border);
	color: var(--esp32-gray);
	padding: 4px 12px;
	border-radius: 14px;
	cursor: pointer;
	font-size: 11px;
	font-family: inherit;
}

.esp32-reset-btn:hover {
	border-color: var(--esp32-danger);
	color: var(--esp32-danger);
}

/* ====== پروژه‌ها ====== */
.esp32-projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.esp32-project-card {
	background: #fff;
	border-radius: var(--esp32-radius);
	overflow: hidden;
	box-shadow: var(--esp32-shadow);
	border: 1px solid var(--esp32-border);
	transition: var(--esp32-transition);
}

.esp32-project-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--esp32-shadow-lg);
}

.esp32-project-thumb {
	height: 160px;
	background: linear-gradient(135deg, #8b5cf6, #6d28d9);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 50px;
}

.esp32-project-body {
	padding: 18px 20px;
}

.esp32-project-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: var(--esp32-dark);
}

.esp32-project-excerpt {
	font-size: 13px;
	color: var(--esp32-gray);
	line-height: 1.7;
	margin: 0 0 14px 0;
}

/* ====== ریسپانسیو ====== */
@media (max-width: 768px) {
	.esp32-progress-hero { padding: 24px 20px; }
	.esp32-hero-percent { font-size: 42px; }
	.esp32-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.esp32-stat-box { padding: 14px; }
	.esp32-stat-box .esp32-stat-ic { width: 42px; height: 42px; font-size: 20px; }
	.esp32-lessons-grid { grid-template-columns: 1fr; }
	.esp32-lesson-header h1 { font-size: 22px; }
	.esp32-lesson-nav { flex-direction: column; }
	.esp32-components-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.esp32-stats-grid { grid-template-columns: 1fr; }
	.esp32-level-filter { flex-direction: column; }
	.esp32-level-tab { text-align: center; }
}

/* toast اطلاع‌رسانی */
.esp32-toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(120%);
	background: var(--esp32-dark);
	color: #fff;
	padding: 14px 28px;
	border-radius: 30px;
	font-size: 14px;
	box-shadow: var(--esp32-shadow-lg);
	z-index: 99999;
	opacity: 0;
	transition: var(--esp32-transition);
	display: flex;
	align-items: center;
	gap: 8px;
}

.esp32-toast.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.esp32-toast.esp32-toast-success { background: var(--esp32-success); }
.esp32-toast.esp32-toast-error { background: var(--esp32-danger); }
