/* ==========================================================
   AthletePro Dashboard — Stylesheet
   Palette: charcoal #16171A, iron #202226, bronze #C9922E,
            ember #E3572A, bone #F3EEE4, muted #9A968D
   ========================================================== */

.hcp-wrap {
	--hcp-bg: #16171A;
	--hcp-panel: #1E2024;
	--hcp-panel-2: #24262B;
	--hcp-border: #33353B;
	--hcp-bronze: #C9922E;
	--hcp-bronze-dark: #9C7223;
	--hcp-ember: #E3572A;
	--hcp-bone: #F3EEE4;
	--hcp-muted: #9A968D;
	--hcp-green: #4CA771;
	--hcp-radius: 10px;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	background: var(--hcp-bg);
	color: var(--hcp-bone);
	border-radius: 16px;
	overflow: hidden;
	max-width: 1100px;
	margin: 24px auto;
	box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.hcp-wrap * { box-sizing: border-box; }

/* ---------- Header ---------- */
.hcp-header {
	background: linear-gradient(135deg, #1B1C1F 0%, #24211A 100%);
	border-bottom: 1px solid var(--hcp-border);
	padding: 36px 32px 28px;
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.hcp-header-user {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}
.hcp-header-user-name {
	font-size: 13.5px;
	color: var(--hcp-bone);
	opacity: .9;
}
.hcp-logout-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--hcp-muted);
	border: 1px solid var(--hcp-border);
	border-radius: 8px;
	padding: 7px 14px;
	text-decoration: none;
	transition: all .15s ease;
	white-space: nowrap;
}
.hcp-logout-link:hover {
	color: var(--hcp-ember);
	border-color: var(--hcp-ember);
}
.hcp-header::after {
	content: "";
	position: absolute;
	inset-inline-end: -40px;
	top: -40px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	border: 14px solid var(--hcp-bronze);
	opacity: .12;
}
.hcp-badge {
	display: inline-block;
	background: rgba(201,146,46,.15);
	color: var(--hcp-bronze);
	border: 1px solid rgba(201,146,46,.4);
	font-size: 12.5px;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 12px;
	letter-spacing: .3px;
}
.hcp-title {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 6px;
	color: var(--hcp-bone);
}
.hcp-subtitle {
	margin: 0;
	color: var(--hcp-muted);
	font-size: 14.5px;
}

/* ---------- چیدمان تب‌ها: عمودی/کناری در دسکتاپ، افقی/اسکرول‌شونده در موبایل و تبلت ---------- */
.hcp-tabs-layout {
	display: flex;
	flex-direction: column;
}

/* ---------- Tabs nav ---------- */
.hcp-tabs-nav {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	gap: 4px;
	background: var(--hcp-panel-2);
	padding: 6px;
	border-bottom: 1px solid var(--hcp-border);
}
.hcp-tabs-nav::-webkit-scrollbar { height: 6px; }
.hcp-tabs-nav::-webkit-scrollbar-thumb { background: var(--hcp-border); border-radius: 999px; }

.hcp-tab-btn {
	flex: 0 0 auto;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: none;
	color: var(--hcp-muted);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	padding: 12px 14px;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
	text-align: right;
}
.hcp-tab-btn:hover { background: rgba(255,255,255,.04); color: var(--hcp-bone); }
.hcp-tab-btn.is-active {
	background: var(--hcp-bronze);
	color: #16171A;
}
.hcp-tab-num {
	font-weight: 800;
	font-size: 12px;
	opacity: .65;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.hcp-tab-btn[data-tab="wizard"] .hcp-tab-num {
	color: #E3572A;
	opacity: 1;
}

/* دسکتاپ: چیدمان کناری — نوار تب‌ها به‌صورت ستون عمودی در کنار محتوا (سمت راست، چون RTL است) */
@media (min-width: 1024px) {
	.hcp-tabs-layout { flex-direction: row; align-items: flex-start; }
	.hcp-tabs-nav {
		flex: 0 0 230px;
		flex-direction: column;
		overflow-x: visible;
		overflow-y: auto;
		max-height: 78vh;
		position: sticky;
		top: 16px;
		border-bottom: none;
		border-inline-start: 1px solid var(--hcp-border);
	}
	.hcp-tab-btn { white-space: normal; }
	.hcp-tabs-content { flex: 1 1 auto; min-width: 0; }
}

/* ---------- Tab content ---------- */
.hcp-tabs-content { padding: 28px 32px 40px; }
.hcp-tab-pane { display: none; animation: hcpFade .25s ease; position: relative; }
.hcp-tab-pane.is-active { display: block; }
@keyframes hcpFade { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: translateY(0);} }

/* ---------- دکمه‌ی رفرش دستی تب ---------- */
.hcp-tab-refresh-btn {
	position: absolute;
	top: -6px;
	left: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,.1);
	background: #fff;
	color: #444;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,.08);
	z-index: 5;
	transition: transform .15s ease, background .15s ease;
}
.hcp-tab-refresh-btn:hover { background: #f4f4f5; }
.hcp-tab-refresh-btn:active { transform: scale(.92); }
.hcp-tab-refresh-btn.hcp-loading { pointer-events: none; animation: hcpSpin .8s linear infinite; }
@keyframes hcpSpin { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }

.hcp-tab-content-inner.hcp-tab-content-refreshing { opacity: .45; pointer-events: none; transition: opacity .15s ease; }

@media (max-width: 782px) {
	.hcp-tab-refresh-btn { position: sticky; top: 6px; margin: 0 0 10px auto; }
}

/* ---------- Sub-tabs (cart & checkout) ---------- */
.hcp-subtabs-nav { display: flex; gap: 8px; margin: 18px 0 20px; border-bottom: 1px solid var(--hcp-border); }
.hcp-subtab-btn {
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--hcp-muted);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 16px;
	cursor: pointer;
	transition: color .15s ease, border-color .15s ease;
}
.hcp-subtab-btn:hover { color: var(--hcp-bone); }
.hcp-subtab-btn.is-active { color: var(--hcp-bronze); border-bottom-color: var(--hcp-bronze); }
.hcp-subtab-pane { display: none; animation: hcpFade .25s ease; }
.hcp-subtab-pane.is-active { display: block; }

/* ---------- پس‌زمینه روشن برای بخش تسویه‌حساب؛ رنگ متن پیش‌فرض (تیره) به‌جای رنگ روشن ارث‌بری‌شده از hcp-wrap ---------- */
.hcp-cart-checkout-wrap .hcp-subtabs-content {
	background: #d8d8d8;
	padding: 24px;
	border-radius: var(--hcp-radius);
	color: #333333;
}
.hcp-cart-checkout-wrap .hcp-subtabs-content a {
	color: var(--hcp-bronze-dark);
}

.hcp-block-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--hcp-bone);
	margin: 28px 0 14px;
	padding-inline-start: 12px;
	border-inline-start: 3px solid var(--hcp-bronze);
}
.hcp-block-title:first-child { margin-top: 0; }
.hcp-hint { color: var(--hcp-muted); font-size: 13.5px; margin: -6px 0 16px; }

/* ---------- Forms ---------- */
.hcp-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}
.hcp-field { display: flex; flex-direction: column; gap: 6px; }
.hcp-field-wide { grid-column: 1 / -1; }
.hcp-field label { font-size: 13px; color: var(--hcp-muted); font-weight: 600; }

.hcp-input, .hcp-select, .hcp-textarea {
	background: var(--hcp-panel);
	border: 1px solid var(--hcp-border);
	color: var(--hcp-bone);
	border-radius: 8px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 14px;
	width: 100%;
	transition: border-color .15s ease;
}
.hcp-input:focus, .hcp-select:focus, .hcp-textarea:focus {
	outline: none;
	border-color: var(--hcp-bronze);
}
.hcp-textarea { resize: vertical; }

.hcp-jalali-select { display: flex; gap: 8px; }
.hcp-jalali-select select { flex: 1; }

/* ---------- کادرهای مجزای تب اطلاعات فردی ---------- */
.hcp-personal-box {
	background: var(--hcp-panel);
	border: 1px solid var(--hcp-border);
	border-radius: var(--hcp-radius);
	padding: 20px;
	margin-bottom: 18px;
}
.hcp-personal-box-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--hcp-bone);
	margin: 0 0 16px;
}

.hcp-field-with-btn { display: flex; gap: 8px; align-items: center; }
.hcp-field-with-btn .hcp-input { flex: 1; }
.hcp-field-with-btn .hcp-btn { flex-shrink: 0; }
.hcp-input-lg { padding: 13px 14px; font-size: 15px; }

.hcp-form-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- نمودار روند پیشرفت ---------- */
.hcp-chart-toolbar { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; flex-wrap: wrap; }
.hcp-chart-toolbar-label { color: var(--hcp-muted); font-size: 13px; }
.hcp-chart-metric-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--hcp-bone); cursor: pointer; user-select: none; }
.hcp-chart-metric-toggle input { accent-color: var(--hcp-bronze); }
.hcp-chart-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hcp-chart-legend-dot[data-metric="weight"] { background: #C9922E; }
.hcp-chart-legend-dot[data-metric="chest"]  { background: #5B8FB9; }
.hcp-chart-legend-dot[data-metric="arm"]    { background: #7FB07F; }
.hcp-chart-legend-dot[data-metric="waist"]  { background: #C97A7A; }
.hcp-chart-legend-dot[data-metric="hip"]    { background: #B98FC9; }
.hcp-chart-legend-dot[data-metric="thigh"]  { background: #C9C15B; }
.hcp-select-inline { width: auto; min-width: 150px; padding: 8px 12px; }
.hcp-chart-wrap { position: relative; width: 100%; height: 260px; margin-bottom: 22px; background: var(--hcp-panel-2); border: 1px solid var(--hcp-border); border-radius: var(--hcp-radius); padding: 14px; box-sizing: border-box; }
.hcp-chart-wrap canvas { width: 100% !important; height: 100% !important; }
.hcp-form-msg { font-size: 13px; color: var(--hcp-green); }
.hcp-form-msg.is-error { color: #E35A5A; }

/* ---------- استریک تکمیل چک‌لیست (heatmap هفتگی) ---------- */
.hcp-streak-heatmap { display: grid; grid-template-columns: repeat(16, 1fr); gap: 5px; margin: 12px 0 4px; }
@media (max-width: 480px) { .hcp-streak-heatmap { grid-template-columns: repeat(8, 1fr); } }
.hcp-streak-cell {
	aspect-ratio: 1 / 1;
	border-radius: 4px;
	background: var(--hcp-panel-2);
	border: 1px solid var(--hcp-border);
	cursor: default;
}
.hcp-streak-cell[data-level="1"] { background: rgba(201,146,46,.25); border-color: rgba(201,146,46,.35); }
.hcp-streak-cell[data-level="2"] { background: rgba(201,146,46,.5);  border-color: rgba(201,146,46,.6); }
.hcp-streak-cell[data-level="3"] { background: rgba(201,146,46,.75); border-color: rgba(201,146,46,.8); }
.hcp-streak-cell[data-level="4"] { background: var(--hcp-bronze); border-color: var(--hcp-bronze); }
.hcp-streak-cell.is-current-week { outline: 2px solid var(--hcp-bone); outline-offset: 1px; }

/* ---------- Buttons ---------- */
.hcp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-family: inherit;
	font-weight: 700;
	font-size: 13.5px;
	padding: 11px 22px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: transform .1s ease, opacity .15s ease;
}
.hcp-btn:hover { opacity: .9; }
.hcp-btn:active { transform: scale(.98); }
.hcp-btn-primary { background: var(--hcp-bronze); color: #16171A; }
.hcp-btn-secondary { background: var(--hcp-panel-2); color: var(--hcp-bone); border: 1px solid var(--hcp-border); }
.hcp-btn-ghost { background: transparent; color: var(--hcp-bronze); border: 1px solid var(--hcp-bronze-dark); }
.hcp-btn-block { width: 100%; margin-top: 10px; }
.hcp-install-btn { white-space: nowrap; }

/* ---------- Progress tab ---------- */
.hcp-progress-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .hcp-progress-wrap { grid-template-columns: 1fr; } }
.hcp-progress-col-wide { grid-column: 1 / -1; }

/* ---------- عکس‌های پیشرفت (قبل/بعد) — اسلایدر کشیدنی ---------- */
.hcp-photo-compare {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 460px;
	margin: 18px 0;
	border-radius: var(--hcp-radius);
	overflow: hidden;
	border: 1px solid var(--hcp-border);
	background: var(--hcp-panel-2);
	cursor: ew-resize;
	--hcp-reveal: 50%;
}
.hcp-compare-img-wrap { position: absolute; inset: 0; }
.hcp-compare-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.hcp-compare-before { clip-path: inset( 0 calc(100% - var(--hcp-reveal)) 0 0 ); }
.hcp-compare-tag {
	position: absolute;
	top: 10px;
	background: var(--hcp-bronze);
	color: #191A1D;
	font-size: 11.5px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 6px;
	z-index: 2;
}
.hcp-compare-tag-after  { inset-inline-end: 10px; }
.hcp-compare-tag-before { inset-inline-start: 10px; }
.hcp-compare-date {
	position: absolute;
	bottom: 8px;
	inset-inline-start: 10px;
	font-size: 11.5px;
	color: #fff;
	background: rgba(0,0,0,.5);
	padding: 2px 8px;
	border-radius: 5px;
	z-index: 2;
}
.hcp-compare-before .hcp-compare-date { inset-inline-start: auto; inset-inline-end: 10px; }
.hcp-compare-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	background: var(--hcp-bone);
	transform: translateX(-50%);
	cursor: ew-resize;
	z-index: 3;
}
.hcp-compare-handle-grip {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--hcp-bronze);
	color: #16171A;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.hcp-photo-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 14px;
}
.hcp-photo-thumb {
	position: relative;
	width: 96px;
	cursor: pointer;
	border: 2px solid var(--hcp-border);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color .15s ease;
}
.hcp-photo-thumb img { width: 100%; height: 96px; object-fit: cover; display: block; }
.hcp-photo-thumb.is-selected { border-color: var(--hcp-bronze); }
.hcp-photo-thumb-date {
	display: block;
	font-size: 10.5px;
	text-align: center;
	color: var(--hcp-muted);
	padding: 3px 2px;
	background: var(--hcp-panel-2);
}
.hcp-photo-thumb-delete {
	position: absolute;
	top: 4px;
	inset-inline-end: 4px;
	width: 20px;
	height: 20px;
	line-height: 18px;
	border-radius: 50%;
	background: rgba(0,0,0,.6);
	color: #fff;
	border: none;
	font-size: 13px;
	cursor: pointer;
	padding: 0;
}
.hcp-photo-thumb-delete:hover { background: var(--hcp-ember); }

.hcp-table-scroll { overflow-x: auto; border: 1px solid var(--hcp-border); border-radius: var(--hcp-radius); }
.hcp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hcp-table th, .hcp-table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--hcp-border); white-space: nowrap; }
.hcp-table th { background: var(--hcp-panel-2); color: var(--hcp-muted); font-weight: 700; }
.hcp-table tr:last-child td { border-bottom: none; }
.hcp-empty-row td { color: var(--hcp-muted); padding: 24px; }
.hcp-del-entry { background: none; border: none; color: #E35A5A; cursor: pointer; font-size: 12px; font-family: inherit; }

.hcp-checklist-form { background: var(--hcp-panel); border: 1px solid var(--hcp-border); border-radius: var(--hcp-radius); padding: 18px; }
.hcp-checklist-item { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--hcp-border); font-size: 14px; cursor: pointer; }
.hcp-checklist-item:last-of-type { border-bottom: none; }
.hcp-checklist-item input { width: 18px; height: 18px; accent-color: var(--hcp-bronze); }

/* ---------- Workout log tab (ثبت تمرین روزانه) ---------- */
.hcp-workout-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .hcp-workout-wrap { grid-template-columns: 1fr; } }
.hcp-workout-col-wide { grid-column: 1 / -1; }
@media (min-width: 901px) { .hcp-workout-col-wide { grid-column: auto; } }

.hcp-workout-history { display: flex; flex-direction: column; gap: 22px; max-height: 620px; overflow-y: auto; padding-inline-end: 6px; }
.hcp-workout-day-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--hcp-bronze);
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 1px dashed var(--hcp-border);
}
.hcp-workout-day-rows { display: flex; flex-direction: column; gap: 8px; }
.hcp-workout-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: var(--hcp-panel);
	border: 1px solid var(--hcp-border);
	border-radius: 10px;
	padding: 12px 14px;
}
.hcp-workout-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hcp-workout-row-name { font-size: 14px; }
.hcp-workout-row-sets { font-size: 12.5px; color: var(--hcp-muted); }
.hcp-workout-row-notes { font-size: 12px; color: var(--hcp-muted); font-style: italic; }
.hcp-workout-del-btn {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: #E35A5A;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.hcp-workout-del-btn:hover { background: rgba(227,90,90,.12); }

/* ---------- Achievements tab (دستاوردها) ---------- */
.hcp-achievements-summary {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 22px;
}
.hcp-achievements-count { font-size: 28px; font-weight: 800; color: var(--hcp-bronze); }
.hcp-achievements-count span { font-size: 16px; font-weight: 600; color: var(--hcp-muted); }
.hcp-achievements-label { font-size: 13.5px; color: var(--hcp-muted); }

.hcp-badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.hcp-badge-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	background: var(--hcp-panel);
	border: 1px solid var(--hcp-border);
	border-radius: var(--hcp-radius);
	padding: 20px 14px;
	transition: transform .15s ease, border-color .15s ease;
}
.hcp-badge-card.is-earned { border-color: rgba(201,146,46,.5); background: linear-gradient(160deg, rgba(201,146,46,.1), var(--hcp-panel) 60%); }
.hcp-badge-card.is-earned:hover { transform: translateY(-2px); }
.hcp-badge-card.is-locked { opacity: .5; filter: grayscale(1); }
.hcp-badge-icon { font-size: 34px; line-height: 1; }
.hcp-badge-label { font-size: 13.5px; }
.hcp-badge-desc { font-size: 11.5px; color: var(--hcp-muted); line-height: 1.6; }
.hcp-badge-date { font-size: 11px; color: var(--hcp-bronze); font-weight: 700; margin-top: 2px; }
.hcp-badge-progress { font-size: 11px; color: var(--hcp-muted); background: var(--hcp-panel-2); border-radius: 999px; padding: 2px 10px; margin-top: 2px; }

@media (max-width: 480px) {
	.hcp-badges-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
	.hcp-badge-card { padding: 14px 10px; }
}

/* ---------- Wizard tab ---------- */
.hcp-wizard-shortcode-holder { margin-top: 10px; }

/* ---------- My programs ---------- */
.hcp-program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.hcp-program-card, .hcp-product-card {
	background: var(--hcp-panel);
	border: 1px solid var(--hcp-border);
	border-radius: var(--hcp-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
}
.hcp-program-thumb img, .hcp-product-thumb img { width: 100%; height: 160px; object-fit: cover; display: block; }
.hcp-program-body, .hcp-product-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.hcp-program-body h5, .hcp-product-body h5 { margin: 0 0 8px; font-size: 15px; }
.hcp-product-body h5 a, .hcp-program-body h5 a { color: var(--hcp-bone); text-decoration: none; }
.hcp-program-meta { font-size: 12.5px; color: var(--hcp-muted); margin: 0 0 12px; }
.hcp-program-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.hcp-empty-box { text-align: center; padding: 40px 20px; background: var(--hcp-panel); border: 1px dashed var(--hcp-border); border-radius: var(--hcp-radius); color: var(--hcp-muted); }
.hcp-empty-box p { margin: 0 0 16px; }
.hcp-empty-box-programs { padding: 56px 24px; background: linear-gradient(135deg, rgba(201,146,46,.08) 0%, rgba(227,87,42,.06) 100%); border: 1px dashed var(--hcp-bronze); }
.hcp-empty-box-programs .hcp-empty-icon { display: block; font-size: 42px; margin-bottom: 14px; }
.hcp-empty-box-programs p { margin: 0; font-size: 17px; font-weight: 700; color: var(--hcp-bronze); }
.hcp-orders-table .hcp-order-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--hcp-panel-2); color: var(--hcp-muted); }
.hcp-orders-table .hcp-order-status-completed { background: #e3f8ec; color: #1e8a4c; }
.hcp-orders-table .hcp-order-status-processing { background: #eaf2ff; color: #2563eb; }
.hcp-orders-table .hcp-order-status-on-hold { background: #fff6e0; color: #a86b00; }
.hcp-orders-table .hcp-order-status-cancelled,
.hcp-orders-table .hcp-order-status-failed,
.hcp-orders-table .hcp-order-status-refunded { background: #fdeaea; color: #c62828; }
.hcp-btn-small { padding: 6px 14px; font-size: 12px; }

/* ---------- Suggested products ---------- */
.hcp-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.hcp-sale-badge {
	position: absolute; top: 10px; inset-inline-start: 10px;
	background: var(--hcp-ember); color: #fff; font-size: 11px; font-weight: 700;
	padding: 4px 10px; border-radius: 999px; z-index: 2;
}
.hcp-product-price { margin: 6px 0 4px; display: flex; gap: 8px; align-items: baseline; }
.hcp-old-price { text-decoration: line-through; color: var(--hcp-muted); font-size: 12.5px; }
.hcp-new-price { color: var(--hcp-bronze); font-weight: 700; font-size: 15px; }

/* ---------- Dashboard tab ---------- */
.hcp-dashboard-wrap .hcp-admin-banner { margin: 0 0 20px; }
.hcp-dashboard-welcome {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: linear-gradient(135deg, rgba(201,146,46,.12) 0%, rgba(227,87,42,.08) 100%);
	border: 1px solid rgba(201,146,46,.35);
	border-radius: var(--hcp-radius);
	padding: 24px 26px;
}
.hcp-dashboard-welcome-icon { font-size: 34px; line-height: 1; flex-shrink: 0; }
.hcp-dashboard-welcome-body h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--hcp-bone); }
.hcp-dashboard-welcome-body p { margin: 0; font-size: 14.5px; line-height: 2; color: var(--hcp-muted); }

@media (max-width: 480px) {
	.hcp-dashboard-welcome { flex-direction: column; padding: 20px; }
}

.hcp-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin-top: 18px;
}
.hcp-dashboard-stat-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--hcp-panel);
	border: 1px solid var(--hcp-border);
	border-radius: var(--hcp-radius);
	padding: 16px 18px;
	cursor: pointer;
	transition: border-color .15s ease, transform .15s ease;
}
.hcp-dashboard-stat-card:hover {
	border-color: var(--hcp-bronze);
	transform: translateY(-2px);
}
.hcp-dashboard-stat-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.hcp-dashboard-stat-label { display: block; font-size: 12px; color: var(--hcp-muted); margin-bottom: 4px; }
.hcp-dashboard-stat-value { display: block; font-size: 14.5px; font-weight: 700; color: var(--hcp-bone); }

/* دکمه‌های ناوبری سفارشی هر تب (نگاه کنید به render_tab_nav_buttons) — همان
   ظاهر کارت‌های داشبورد، ولی چون ممکن است بالای محتوای یک تب هم بیایند
   (نه فقط پایین)، حاشیه‌ی بالا/پایین جداگانه دارند. */
.hcp-tab-nav-buttons { margin-top: 0; }
.hcp-tab-nav-buttons-before { margin-bottom: 20px; }
.hcp-tab-nav-buttons-after { margin-top: 20px; margin-bottom: 0; }
.hcp-dashboard-stat-empty { font-size: 13px; font-weight: 500; color: var(--hcp-bronze); }
.hcp-trend { font-size: 12.5px; font-weight: 700; margin-inline-start: 6px; }
.hcp-trend.is-up { color: var(--hcp-ember); }
.hcp-trend.is-down { color: #4CA771; }

/* ---------- Toast popup (پیام‌های سریع مثل افزودن به سبد خرید) ---------- */
.hcp-toast {
	position: fixed;
	z-index: 99999;
	bottom: 24px;
	inset-inline-end: 24px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 340px;
	background: var(--hcp-panel, #1E2024);
	border: 1px solid var(--hcp-border, #33353B);
	color: var(--hcp-bone, #F3EEE4);
	padding: 14px 16px;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(0,0,0,.35);
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	font-size: 13.5px;
	line-height: 1.8;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease;
	direction: rtl;
}
.hcp-toast.is-visible { opacity: 1; transform: translateY(0); }
.hcp-toast.is-clickable { cursor: pointer; }
.hcp-toast-icon { font-size: 16px; flex-shrink: 0; }
.hcp-toast-msg { flex: 1; }
.hcp-toast-close { background: none; border: none; color: inherit; opacity: .7; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; flex-shrink: 0; }
.hcp-toast-close:hover { opacity: 1; }
.hcp-toast-success { border-color: rgba(76,167,113,.5); }
.hcp-toast-success .hcp-toast-icon { color: var(--hcp-green, #4CA771); }
.hcp-toast-info { border-color: rgba(201,146,46,.5); }
.hcp-toast-info .hcp-toast-icon { color: var(--hcp-bronze, #C9922E); }
.hcp-toast-warning { border-color: rgba(227,87,42,.5); }
.hcp-toast-warning .hcp-toast-icon { color: var(--hcp-ember, #E3572A); }

@media (max-width: 480px) {
	.hcp-toast { inset-inline: 16px; max-width: none; bottom: 16px; }
}

/* ---------- پاپ‌آپ توضیحی «آیا اعلان‌ها فعال شود؟» (soft-ask، قبل از درخواست واقعی مرورگر) ---------- */
.hcp-push-prompt-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10,10,12,.6);
	backdrop-filter: blur(2px);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease;
}
.hcp-push-prompt-overlay.is-open { opacity: 1; pointer-events: auto; }
.hcp-push-prompt-box {
	background: var(--hcp-panel, #202126);
	border: 1px solid var(--hcp-border, #33353B);
	border-radius: 16px;
	max-width: 380px;
	width: 100%;
	padding: 28px 26px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0,0,0,.4);
	transform: translateY(8px) scale(.98);
	transition: transform .18s ease;
}
.hcp-push-prompt-overlay.is-open .hcp-push-prompt-box { transform: translateY(0) scale(1); }
.hcp-push-prompt-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(201,146,46,.15);
	font-size: 26px;
	margin-bottom: 14px;
}
.hcp-push-prompt-title { margin: 0 0 8px; font-size: 17px; color: var(--hcp-bone, #EDEAE3); }
.hcp-push-prompt-body { margin: 0 0 20px; font-size: 13.5px; line-height: 1.9; color: var(--hcp-muted, #9A968D); }
.hcp-push-prompt-actions { display: flex; flex-direction: column; gap: 8px; }
.hcp-push-prompt-actions .hcp-btn { width: 100%; justify-content: center; }

/* ---------- Add to cart button loading state ---------- */
.hcp-add-to-cart-btn.hcp-loading { opacity: .6; pointer-events: none; }
.hcp-add-to-cart-btn.hcp-in-cart { background: var(--hcp-panel-2); color: var(--hcp-bone); border: 1px solid var(--hcp-border); }

/* ---------- Notices ---------- */
.hcp-notice { padding: 14px 16px; border-radius: 8px; font-size: 13.5px; }
.hcp-notice-warning { background: rgba(227,87,42,.1); border: 1px solid rgba(227,87,42,.35); color: #F0A98C; }

/* جاسازی یک صفحه/مسیر دیگر همین سایت (content_mode=page_url) داخل iframe.
   ارتفاع اولیه یک مقدار معقول است و بلافاصله بعد از بارگذاری، با جاوااسکریپت
   (نگاه کنید به render_embedded_page_iframe) با ارتفاع واقعی محتوا هماهنگ می‌شود. */
.hcp-embed-wrap { width: 100%; border-radius: var(--hcp-radius); overflow: hidden; background: var(--hcp-panel-2); }
.hcp-embed-iframe { width: 100%; height: 480px; border: 0; display: block; }

/* محتوای استخراج‌شده از یک برگه/نوشته‌ی ساده (content_mode=page_content) —
   فقط پایه‌ای‌ترین خوانایی را تضمین می‌کنیم؛ چون خودِ post_content است، اصلاً
   هدر/فوتری برای حذف‌کردن وجود ندارد. */
.hcp-embedded-page-content { color: var(--hcp-bone); line-height: 1.9; }
.hcp-embedded-page-content img { max-width: 100%; height: auto; border-radius: 8px; }
.hcp-embedded-page-content a { color: var(--hcp-bronze); }

/* ---------- Admin message banner (بالای پروفایل شاگرد) ---------- */
.hcp-admin-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 18px 24px 0;
	padding: 14px 16px;
	border-radius: 10px;
	position: relative;
	animation: hcpFade .25s ease;
}
.hcp-admin-banner-icon { font-size: 18px; line-height: 1.3; }
.hcp-admin-banner-body { flex: 1; }
.hcp-admin-banner-body strong { display: block; font-size: 13px; margin-bottom: 4px; }
.hcp-admin-banner-body p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.8; }
.hcp-admin-banner-date { font-size: 11.5px; opacity: .75; }
.hcp-admin-banner-close,
.hcp-auto-reminder-close {
	background: none;
	border: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: .7;
	padding: 2px 4px;
}
.hcp-admin-banner-close:hover,
.hcp-auto-reminder-close:hover { opacity: 1; }

.hcp-admin-banner-info {
	background: rgba(76,167,113,.1);
	border: 1px solid rgba(76,167,113,.35);
	color: #8FD1AC;
}
.hcp-admin-banner-warning {
	background: rgba(227,87,42,.12);
	border: 1px solid rgba(227,87,42,.4);
	color: #F0A98C;
}
.hcp-admin-banner-reminder {
	background: rgba(201,146,46,.12);
	border: 1px solid rgba(201,146,46,.4);
	color: #E6C284;
}

@media (max-width: 640px) {
	.hcp-admin-banner { margin: 14px 16px 0; }
}

/* ---------- Login notice ---------- */
.hcp-login-notice { display: flex; align-items: center; justify-content: center; min-height: 320px; }
.hcp-login-box { text-align: center; padding: 40px; }
.hcp-login-box h3 { font-size: 20px; margin-bottom: 10px; }
.hcp-login-box p { color: var(--hcp-muted); margin-bottom: 20px; }

/* ---------- Auth tabs (ورود / ثبت‌نام) ---------- */
.hcp-auth-tabs-nav {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 2px;
	background: var(--hcp-panel-2);
	padding: 6px;
	border-bottom: 1px solid var(--hcp-border);
}
.hcp-auth-tab-btn {
	position: relative;
	z-index: 1;
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0;
	background: transparent;
	border: none;
	color: var(--hcp-muted);
	font-family: inherit;
	font-weight: 700;
	font-size: 14px;
	padding: 14px 8px;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background .15s ease, color .15s ease;
}
.hcp-auth-tab-btn.is-active { background: var(--hcp-ember); color: #fff; }
.hcp-auth-tab-btn:not(.is-active):hover { background: rgba(255,255,255,.04); color: var(--hcp-bone); }

@media (max-width: 480px) {
	.hcp-auth-tab-btn { font-size: 12px; padding: 12px 4px; }
}

.hcp-auth-tabs-content { padding: 32px; max-width: 480px; margin: 0 auto; }
.hcp-auth-tab-pane { display: none; animation: hcpFade .25s ease; }
.hcp-auth-tab-pane.is-active { display: block; }

.hcp-field-inline { display: flex; align-items: center; justify-content: space-between; }
.hcp-checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hcp-muted); cursor: pointer; }
.hcp-checkbox-label input { width: 16px; height: 16px; accent-color: var(--hcp-bronze); }

@media (max-width: 640px) {
	.hcp-auth-tabs-content { padding: 22px 16px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.hcp-header { padding: 26px 20px; }
	.hcp-tabs-content { padding: 20px 16px 32px; }
	.hcp-title { font-size: 22px; }
}

/* روی موبایل واقعی، حاشیه/گوشه‌گرد/سایه حذف می‌شود تا حس یک اپ لبه‌به‌لبه
   (خصوصاً بعد از نصب PWA روی صفحه اصلی) داشته باشد، نه یک کارت داخل صفحه. */
@media (max-width: 480px) {
	.hcp-wrap { margin: 0 auto; border-radius: 0; box-shadow: none; }
}

/* روی صفحه‌های خیلی باریک، فیلد ایمیل (ورودی + دکمه‌ی «ذخیره ایمیل») به‌جای
   کنار هم، زیر هم قرار می‌گیرد تا فشرده و ناخوانا نشود. */
@media (max-width: 420px) {
	.hcp-field-with-btn { flex-direction: column; align-items: stretch; }
	.hcp-field-with-btn .hcp-btn { width: 100%; }
}

/* دکمه‌ی «تنظیمات ورود» در جعبه‌ی خلاصه‌ی موبایل، روی صفحه‌ی باریک به‌جای
   چسبیدن به انتهای سطر (که می‌تواند بشکند)، تمام‌عرض و زیر متن قرار می‌گیرد. */
@media (max-width: 480px) {
	.hcp-login-settings-summary .hcp-btn { margin-inline-start: 0; width: 100%; }
}

/* بزرگ‌تر کردن دکمه‌ی حذف روی تصاویر مسیر پیشرفت برای راحتی لمس با انگشت. */
@media (max-width: 480px) {
	.hcp-photo-thumb-delete { width: 26px; height: 26px; line-height: 24px; font-size: 15px; }
}

/* ---------- Honeypot (ضدربات نامرئی) ---------- */
.hcp-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* ---------- راهنمای کوچک زیر فیلدها ---------- */
.hcp-field-hint {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--hcp-muted);
}

/* ---------- جعبه تنظیمات ورود (تغییر شماره موبایل حساب) ---------- */
.hcp-login-settings-box {
	background: var(--hcp-panel-2);
	border: 1px solid var(--hcp-border);
	border-radius: var(--hcp-radius);
	padding: 16px 18px;
	margin-bottom: 20px;
}
.hcp-login-settings-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}
.hcp-login-settings-summary strong { color: var(--hcp-bronze); }
.hcp-login-settings-summary span { color: var(--hcp-muted); font-size: 13.5px; }
.hcp-login-settings-summary .hcp-btn { margin-inline-start: auto; }
#hcp-change-mobile-form { margin-top: 16px; }

/* ---------- شورت‌کدهای اضافه‌شده از تنظیمات پیشخوان (قبل/بعد هر تب) ---------- */
.hcp-tab-extra { margin: 0 0 20px; }
.hcp-tab-extra-after { margin: 20px 0 0; }

/* ---------- رنگ سفارشی پس‌زمینه تب (از تنظیمات پیشخوان) ---------- */
.hcp-tab-btn-custom-color { color: #fff !important; }
.hcp-tab-btn-custom-color .hcp-tab-num { color: rgba(255,255,255,.85) !important; }
.hcp-tab-btn-custom-color:hover { filter: brightness(1.1); }

/* ---------- رنگ سفارشی پس‌زمینه محتوای تب (از تنظیمات پیشخوان) ---------- */
.hcp-tab-pane-custom-bg {
	border-radius: 14px;
	padding: 20px;
}
/* این باید فقط وقتی تب واقعاً فعال/نمایش‌داده‌شده است اعمال شود، وگرنه چون
   specificity برابر با ".hcp-tab-pane { display:none; }" دارد و بعد از آن در
   فایل می‌آید، می‌تواند تب‌های غیرفعال را هم همیشه نمایان نگه دارد (باگ جدی). */
.hcp-tab-pane.is-active.hcp-tab-pane-custom-bg {
	display: flow-root; /* مطمئن می‌شود اگر داخل تب المانی float یا flex شناور باشد (مثل ستون منوی حساب کاربری ووکامرس در نمای دسکتاپ)، ارتفاعش کامل داخل این جعبه رنگی حساب شود */
}

/* هر چیز داخل تب سفارشی‌رنگ، به‌طور پیش‌فرض شفاف می‌شود تا رنگ انتخابی شما
   همه‌جای تب را بپوشاند (حتی اگر قالب سایت یا شورت‌کدی مثل حساب کاربری
   ووکامرس، خودش رنگ پس‌زمینه مجزا و اولویت‌دار گذاشته باشد). تکرار کلاس
   .hcp-wrap اولویت این قانون را از اکثر قوانین قالب سایت بالاتر می‌برد. */
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg * {
	background-color: transparent !important;
	background-image: none !important;
}

/* ولی این چند مورد باید ظاهر طبیعی خودشان (دکمه، جدول، پیام‌های ووکامرس و…)
   را حفظ کنند، وگرنه ناخوانا می‌شوند؛ رنگشان را به حالت پیش‌فرض خودشان برمی‌گردانیم. */
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg button,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg input,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg select,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg textarea,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg .button,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg table,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg thead,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg th,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg td,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg tr,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg .woocommerce-message,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg .woocommerce-error,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg .woocommerce-info,
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-bg .woocommerce-Message {
	background-color: revert !important;
	background-image: revert !important;
}

/* ---------- رنگ سفارشی متن محتوای تب (اختیاری، برای وقتی متن با پس‌زمینه سفارشی ناخوانا می‌شود) ---------- */
.hcp-wrap.hcp-wrap .hcp-tab-pane.hcp-tab-pane-custom-text * {
	color: inherit !important;
}

/* ---------- جعبه آماده «کلیک برای پرش به تب دیگر» — برای استفاده در محتوای سفارشی هر تب ---------- */
.hcp-jump-box {
	display: block;
	background: var(--hcp-panel);
	border: 1px solid var(--hcp-border);
	border-radius: var(--hcp-radius);
	padding: 16px 18px;
	cursor: pointer;
	color: var(--hcp-bone);
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease;
}
.hcp-jump-box:hover { border-color: var(--hcp-bronze); transform: translateY(-2px); color: var(--hcp-bone); }
