/**
 * استایل پنل مشتری راهینکس (فرانت) — لیکوئید گلس، ریسپانسیو، RTL.
 */

.rx-front {
	--rx-primary: #0071e3;
	--rx-primary-2: #2997ff;
	--rx-accent: #64d2ff;
	--rx-text: #1c1e3a;
	--rx-muted: #6b7280;
	--rx-success: #34c759;
	--rx-warning: #ff9500;
	--rx-danger: #ff3b30;
	--rx-info: #007aff;
	--rx-radius: 20px;
	--rx-radius-sm: 14px;
	/* فونت از قالب (تم) سایت ارث‌بری می‌شود تا با ظاهر سایت هماهنگ باشد. */
	--rx-font: inherit;

	font-family: var(--rx-font);
	direction: rtl;
	color: var(--rx-text);
	position: relative;
	padding: 20px;
	max-width: 1100px;
	margin: 0 auto;
}

.rx-front * {
	box-sizing: border-box;
}

.rx-front::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(circle at 12% 18%, rgba(0, 113, 227, 0.16), transparent 40%),
		radial-gradient(circle at 88% 12%, rgba(100, 210, 255, 0.14), transparent 38%),
		linear-gradient(135deg, #eef1ff 0%, #f7f9ff 100%);
}

.rx-front .rx-glass {
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(22px) saturate(160%);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: var(--rx-radius);
	box-shadow: 0 10px 40px rgba(31, 38, 135, 0.12);
}

/* هدر پنل */
.rx-front .rx-phead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 26px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.rx-front .rx-phead h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}

.rx-front .rx-phead .rx-sub {
	font-size: 13px;
	color: var(--rx-muted);
}

.rx-front .rx-pavatar {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--rx-primary), var(--rx-accent));
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 800;
	font-size: 22px;
}

/* کارت‌های آمار مشتری */
.rx-front .rx-pstats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.rx-front .rx-pstat {
	padding: 18px;
	text-align: center;
}

.rx-front .rx-pstat .v {
	font-size: 22px;
	font-weight: 800;
	color: var(--rx-primary);
}

.rx-front .rx-pstat .l {
	font-size: 12px;
	color: var(--rx-muted);
	margin-top: 4px;
}

/* تب‌ها */
.rx-front .rx-ptabs {
	display: flex;
	gap: 6px;
	margin-bottom: 18px;
	flex-wrap: wrap;
	background: rgba(255, 255, 255, 0.5);
	padding: 6px;
	border-radius: var(--rx-radius-sm);
}

.rx-front .rx-ptab {
	padding: 10px 18px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	color: var(--rx-muted);
	border: none;
	background: transparent;
	font-family: var(--rx-font);
	transition: all 0.2s;
}

.rx-front .rx-ptab.active {
	background: linear-gradient(135deg, var(--rx-primary), var(--rx-primary-2));
	color: #fff;
}

.rx-front .rx-ppane {
	display: none;
}

.rx-front .rx-ppane.active {
	display: block;
}

.rx-front .rx-psection {
	padding: 22px 24px;
	margin-bottom: 18px;
}

.rx-front .rx-psection h3 {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 800;
}

/* نوار پیشرفت پروژه */
.rx-front .rx-pprogress {
	height: 14px;
	border-radius: 999px;
	background: rgba(0, 113, 227, 0.12);
	overflow: hidden;
	margin: 10px 0;
}

.rx-front .rx-pprogress > span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--rx-primary), var(--rx-accent));
	transition: width 0.6s ease;
}

/* تایم‌لاین سرویس */
.rx-front .rx-ptimeline {
	position: relative;
	padding-right: 26px;
}

.rx-front .rx-ptimeline::before {
	content: "";
	position: absolute;
	right: 9px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: linear-gradient(var(--rx-primary), var(--rx-accent));
	opacity: 0.25;
}

.rx-front .rx-ptl {
	position: relative;
	padding: 14px 16px;
	margin-bottom: 12px;
	border-radius: var(--rx-radius-sm);
	background: rgba(255, 255, 255, 0.6);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.rx-front .rx-ptl::before {
	content: "";
	position: absolute;
	right: -21px;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--rx-muted);
}

.rx-front .rx-ptl.done::before {
	background: var(--rx-success);
	border-color: var(--rx-success);
}

.rx-front .rx-ptl.action::before {
	border-color: var(--rx-warning);
	animation: rxp-pulse 1.5s infinite;
}

@keyframes rxp-pulse {
	0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
	70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
	100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* badge */
.rx-front .rx-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
}

/* جدول */
.rx-front table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 8px;
	font-size: 13px;
}

.rx-front th {
	text-align: right;
	font-size: 12px;
	color: var(--rx-muted);
	padding: 6px 12px;
}

.rx-front td {
	background: rgba(255, 255, 255, 0.6);
	padding: 12px;
}

/* دکمه‌ها */
.rx-front .rx-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: var(--rx-radius-sm);
	border: none;
	font-family: var(--rx-font);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	background: rgba(255, 255, 255, 0.7);
	color: var(--rx-text);
}

.rx-front .rx-btn:hover {
	transform: translateY(-2px);
}

.rx-front .rx-btn-primary {
	background: linear-gradient(135deg, var(--rx-primary), var(--rx-primary-2));
	color: #fff;
}

.rx-front .rx-btn-accent {
	background: linear-gradient(135deg, var(--rx-accent), #20e3b2);
	color: #053;
}

/* فرم */
.rx-front .rx-field {
	margin-bottom: 14px;
}

.rx-front .rx-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 6px;
}

.rx-front input,
.rx-front select,
.rx-front textarea {
	font-family: var(--rx-font);
	width: 100%;
	padding: 11px 14px;
	border-radius: var(--rx-radius-sm);
	border: 1px solid rgba(0, 113, 227, 0.18);
	background: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	outline: none;
}

.rx-front input:focus,
.rx-front select:focus,
.rx-front textarea:focus {
	border-color: var(--rx-primary);
	box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

/* ویزارد */
.rx-front .rx-wsteps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 26px;
	position: relative;
}

.rx-front .rx-wsteps::before {
	content: "";
	position: absolute;
	top: 18px;
	right: 8%;
	left: 8%;
	height: 3px;
	background: rgba(0, 113, 227, 0.15);
	z-index: 0;
}

.rx-front .rx-wstep {
	position: relative;
	z-index: 1;
	text-align: center;
	flex: 1;
}

.rx-front .rx-wstep .n {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid rgba(0, 113, 227, 0.2);
	display: grid;
	place-items: center;
	margin: 0 auto 6px;
	font-weight: 800;
	color: var(--rx-muted);
	transition: all 0.3s;
}

.rx-front .rx-wstep.active .n,
.rx-front .rx-wstep.done .n {
	background: linear-gradient(135deg, var(--rx-primary), var(--rx-accent));
	color: #fff;
	border-color: transparent;
}

.rx-front .rx-wstep .t {
	font-size: 12px;
	color: var(--rx-muted);
	font-weight: 600;
}

.rx-front .rx-wpane {
	display: none;
	animation: rxp-fade 0.3s ease;
}

.rx-front .rx-wpane.active {
	display: block;
}

@keyframes rxp-fade {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.rx-front .rx-pick {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border-radius: var(--rx-radius-sm);
	background: rgba(255, 255, 255, 0.6);
	border: 2px solid transparent;
	cursor: pointer;
	margin-bottom: 10px;
	transition: all 0.2s;
}

.rx-front .rx-pick:hover {
	border-color: rgba(0, 113, 227, 0.3);
}

.rx-front .rx-pick.checked {
	border-color: var(--rx-primary);
	background: rgba(0, 113, 227, 0.08);
}

.rx-front .rx-plan-card {
	padding: 20px;
	border-radius: var(--rx-radius-sm);
	background: rgba(255, 255, 255, 0.6);
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
}

.rx-front .rx-plan-card.checked {
	border-color: var(--rx-primary);
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(0, 113, 227, 0.2);
}

.rx-front .rx-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px dashed rgba(0, 113, 227, 0.15);
	font-size: 14px;
}

.rx-front .rx-summary-total {
	font-size: 18px;
	font-weight: 800;
	color: var(--rx-primary);
}

/* پیام نتیجه */
.rx-front .rx-result {
	padding: 22px;
	border-radius: var(--rx-radius);
	text-align: center;
	margin-bottom: 20px;
	font-weight: 700;
}

.rx-front .rx-result.success {
	background: rgba(34, 197, 94, 0.12);
	color: #15803d;
	border: 1px solid rgba(34, 197, 94, 0.3);
}

.rx-front .rx-result.failed {
	background: rgba(239, 68, 68, 0.1);
	color: #b91c1c;
	border: 1px solid rgba(239, 68, 68, 0.3);
}

.rx-front .rx-toast {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 100001;
	padding: 14px 22px;
	border-radius: 14px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	transform: translateY(120px);
	opacity: 0;
	transition: all 0.4s;
}

.rx-front .rx-toast.show {
	transform: translateY(0);
	opacity: 1;
}

.rx-front .rx-toast.success { background: linear-gradient(135deg, #34c759, #248a3d); }
.rx-front .rx-toast.error { background: linear-gradient(135deg, #ff3b30, #d70015); }

.rx-front .rx-empty {
	text-align: center;
	padding: 40px;
	color: var(--rx-muted);
}

@media (max-width: 600px) {
	.rx-front {
		padding: 12px;
	}
	.rx-front .rx-wstep .t {
		display: none;
	}
}

/* بَج تب پنل */
.rx-ptab .rx-tab-badge {
	display: inline-block;
	min-width: 18px; height: 18px; line-height: 18px;
	padding: 0 5px; border-radius: 9px;
	background: #ff3b30; color: #fff;
	font-size: 11px; font-weight: 700; text-align: center;
}
/* لیست اعلان پنل مشتری */
.rx-pnotif-list { display: flex; flex-direction: column; gap: 8px; }
.rx-pnotif {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px; border-radius: 12px;
	background: rgba(255, 255, 255, .55);
}
.rx-pnotif.is-unread { background: rgba(0, 113, 227, .1); border-right: 3px solid var(--rx-primary, #0071e3); }
.rx-pnotif-icon {
	font-size: 18px; width: 36px; height: 36px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 113, 227, .12); border-radius: 10px;
}

/* نمایش قیمت با تخفیف (فرانت) */
.rx-price-old { color: #94a3b8; text-decoration: line-through; font-size: 12px; }
.rx-price-new { color: var(--rx-primary, #0071e3); font-weight: 700; }
.rx-price-off { background: #fee2e2; color: #b91c1c; font-size: 10px; padding: 1px 6px; border-radius: 8px; font-weight: 700; }

/* ===== ریسپانسیو موبایل (پنل و ویزارد مشتری) ===== */
@media (max-width: 600px) {
	.rx-front { padding: 10px; }

	/* هدر پنل: عمودی */
	.rx-phead {
		flex-direction: column;
		align-items: stretch !important;
		gap: 12px;
		text-align: center;
	}
	.rx-phead > div:first-child { justify-content: center; }

	/* آمار پنل: دو ستونه */
	.rx-pstats { grid-template-columns: repeat(2, 1fr) !important; }

	/* تب‌های پنل: اسکرول افقی */
	.rx-ptabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
	}
	.rx-ptab { white-space: nowrap; flex: 0 0 auto; }

	/* جداول پنل: اسکرول افقی */
	.rx-front table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	/* کارت پلن و گرید بازه‌ها در ویزارد */
	.rx-front .rx-pstats .rx-plan-card { width: 100%; }
	.rx-dur-grid { grid-template-columns: repeat(2, 1fr); }

	/* فرم‌های افقی: شکستن خط */
	#rx-new-ticket > div[style*="flex"],
	.rx-reply-ticket,
	#rx-charge-wallet { flex-wrap: wrap; }
	.rx-reply-ticket input[type=text] { flex: 1 1 100%; }

	/* بخش‌ها و مراحل ویزارد */
	.rx-psection { padding: 16px; }
	.rx-wsteps { gap: 6px; }
}

@media (max-width: 400px) {
	.rx-pstats { grid-template-columns: 1fr !important; }
	.rx-dur-grid { grid-template-columns: 1fr; }
}

/* انتخاب بازهٔ زمانی در ویزارد مشتری */
.rx-dur-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px;
}
.rx-dur-opt {
	border: 2px solid rgba(0, 113, 227, .18);
	border-radius: 14px;
	padding: 14px 12px;
	text-align: center;
	cursor: pointer;
	background: rgba(255, 255, 255, .6);
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.rx-dur-opt:hover { transform: translateY(-2px); }
.rx-dur-opt.selected {
	border-color: var(--rx-primary, #0071e3);
	background: rgba(0, 113, 227, .1);
	box-shadow: 0 6px 18px rgba(0, 113, 227, .2);
}
.rx-dur-opt.selected::after {
	content: '✓';
	display: inline-block;
	margin-top: 6px;
	color: var(--rx-primary, #0071e3);
	font-weight: 800;
}
.rx-dur-opt .m { font-weight: 800; font-size: 15px; margin-bottom: 4px; }

/* دکمه‌های مبلغ سریع شارژ کیف‌پول */
.rx-quick-amount.selected {
	background: var(--rx-primary, #0071e3);
	color: #fff;
	border-color: var(--rx-primary, #0071e3);
}

/* ===== ویزارد حرفه‌ای: کارت پلن با امکانات ===== */
.rx-plan-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}
.rx-plan-cards .rx-plan-card {
	position: relative;
	text-align: right;
	padding: 22px 20px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.65);
	border: 2px solid rgba(0, 113, 227, 0.14);
	cursor: pointer;
	transition: transform .2s, box-shadow .2s, border-color .2s;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.rx-plan-cards .rx-plan-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(0, 113, 227, 0.16);
}
.rx-plan-cards .rx-plan-card.checked {
	border-color: var(--plan-color, var(--rx-primary));
	box-shadow: 0 16px 40px rgba(0, 113, 227, 0.22);
	background: rgba(255, 255, 255, 0.85);
}
.rx-plan-cards .rx-plan-card.checked::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 18px;
	background: var(--plan-color, var(--rx-primary));
	opacity: .06;
	pointer-events: none;
}
.rx-plan-check {
	position: absolute;
	top: 14px;
	left: 14px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--plan-color, var(--rx-primary));
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 14px;
	box-shadow: 0 4px 12px rgba(0, 113, 227, .35);
}
.rx-plan-card.checked .rx-plan-check { display: flex; }
.rx-plan-name { font-weight: 800; font-size: 17px; }
.rx-plan-price { font-size: 18px; font-weight: 800; margin: 2px 0 4px; }
.rx-plan-per { font-size: 11px; color: var(--rx-muted); font-weight: 600; }
.rx-plan-desc { font-size: 12px; color: var(--rx-muted); line-height: 1.8; }
.rx-plan-plus {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--plan-color, var(--rx-primary));
	background: rgba(0, 113, 227, 0.08);
	border-radius: 10px;
	padding: 7px 10px;
}
.rx-feat-list {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.rx-feat-list li {
	font-size: 13px;
	color: var(--rx-text);
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.7;
}
.rx-feat-list li::before {
	content: "✓";
	color: var(--rx-success);
	font-weight: 800;
	flex-shrink: 0;
	margin-top: 1px;
}

/* ============================ فروشگاه سرویس‌ها ============================ */
.rx-shop-head { margin-bottom: 18px; }
.rx-shop-head h1 { margin: 0 0 6px; font-size: 22px; }
.rx-shop-search { display: block; margin-top: 12px; }
.rx-shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.rx-shop-card {
	display: flex; flex-direction: column;
	text-decoration: none; color: inherit;
	border-radius: 16px; overflow: hidden;
	transition: transform .15s, box-shadow .15s;
}
.rx-shop-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(31,38,135,.18); }
.rx-shop-thumb {
	height: 140px; display: grid; place-items: center;
	background: linear-gradient(135deg, rgba(0,113,227,.12), rgba(100,210,255,.12));
}
.rx-shop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rx-shop-thumb .dashicons { font-size: 46px; width: 46px; height: 46px; color: #0071e3; }
.rx-shop-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rx-shop-cat { background: rgba(0,113,227,.14); color: #0071e3; align-self: flex-start; }
.rx-shop-name { font-weight: 800; font-size: 15px; }
.rx-shop-price { font-size: 14px; color: #248a3d; font-weight: 700; margin-top: auto; }
.rx-shop-btn { text-align: center; flex: 1; }
.rx-shop-actions { display: flex; gap: 8px; margin-top: 6px; align-items: stretch; }
.rx-shop-cart-btn { text-align: center; white-space: nowrap; }

/* ============================ صفحهٔ محصول ============================ */
.rx-product { display: grid; grid-template-columns: 340px 1fr; gap: 24px; padding: 24px; }
.rx-product-media {
	border-radius: 16px; min-height: 240px; display: grid; place-items: center; overflow: hidden;
	background: linear-gradient(135deg, rgba(0,113,227,.12), rgba(100,210,255,.12));
}
.rx-product-media img { width: 100%; height: 100%; object-fit: cover; }
.rx-product-media .dashicons { font-size: 72px; width: 72px; height: 72px; color: #0071e3; }
.rx-product-info h1 { margin: 8px 0; font-size: 24px; }
.rx-product-back { display: inline-block; margin-bottom: 8px; color: #0071e3; text-decoration: none; font-size: 13px; }
.rx-product-price {
	display: flex; align-items: center; justify-content: space-between;
	background: rgba(0,113,227,.08); border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-size: 14px;
}
.rx-product-price b { color: #0071e3; font-size: 20px; }
@media (max-width: 720px) {
	.rx-product { grid-template-columns: 1fr; }
}

/* ============================================================
 * صفحات سایت (خانه، درباره ما، تماس) — هماهنگ با تم پلاگین
 * ============================================================ */
.rx-front.rx-landing { max-width: 1200px; }
.rx-landing section { margin-bottom: 46px; }

.rx-landing .rx-btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 16px; }
.rx-landing .rx-btn-ghost { background: rgba(255,255,255,0.55); border: 1px solid rgba(0,113,227,0.25); color: var(--rx-primary); }
.rx-landing .rx-btn-ghost:hover { background: rgba(0,113,227,0.1); }

/* هیرو */
.rx-lhero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center; padding: 48px 44px; overflow: hidden; }
.rx-lhero-badge { display: inline-block; padding: 7px 16px; border-radius: 999px; background: rgba(0,113,227,0.12); color: var(--rx-primary); font-weight: 700; font-size: 13px; margin-bottom: 18px; }
.rx-lhero-title { font-size: 40px; line-height: 1.35; font-weight: 900; margin: 0 0 18px; letter-spacing: -0.5px; }
.rx-lhero-desc { font-size: 17px; line-height: 2.1; color: var(--rx-muted); margin: 0 0 26px; }
.rx-lhero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.rx-lhero-visual { display: flex; align-items: center; justify-content: center; }
.rx-lhero-visual img { width: 100%; max-width: 420px; border-radius: 24px; }
.rx-lhero-orb { width: 260px; height: 260px; border-radius: 50%; background: linear-gradient(135deg, var(--rx-primary), var(--rx-accent)); display: grid; place-items: center; box-shadow: 0 30px 70px rgba(0,113,227,0.35); animation: rxFloat 5s ease-in-out infinite; }
.rx-lhero-orb span { font-size: 96px; font-weight: 900; color: #fff; }
@keyframes rxFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* آمار */
.rx-lstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rx-lstat { text-align: center; padding: 26px 14px; }
.rx-lstat-num { font-size: 34px; font-weight: 900; background: linear-gradient(135deg, var(--rx-primary), var(--rx-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rx-lstat-label { color: var(--rx-muted); font-size: 14px; margin-top: 6px; font-weight: 600; }

/* سرتیتر بخش‌ها */
.rx-lsec-head { text-align: center; margin-bottom: 30px; }
.rx-lsec-head h2 { font-size: 30px; font-weight: 900; margin: 0 0 8px; }
.rx-lsec-head p { color: var(--rx-muted); font-size: 16px; margin: 0; }

/* ویژگی‌ها */
.rx-lfeatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rx-lfeature { padding: 28px 24px; transition: transform 0.2s, box-shadow 0.2s; }
.rx-lfeature:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(31,38,135,0.18); }
.rx-lfeature-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: rgba(0,113,227,0.1); margin-bottom: 16px; }
.rx-lfeature h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.rx-lfeature p { color: var(--rx-muted); font-size: 14px; line-height: 2; margin: 0; }

/* کاروسل محصولات */
.rx-lc { position: relative; }
.rx-lc-viewport { overflow: hidden; }
.rx-lc-track { display: flex; gap: 18px; transition: transform 0.45s cubic-bezier(0.22,0.61,0.36,1); will-change: transform; }
.rx-lc-card { flex: 0 0 auto; width: 270px; display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.rx-lc-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(31,38,135,0.2); }
.rx-lc-thumb { height: 160px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(0,113,227,0.1), rgba(100,210,255,0.1)); }
.rx-lc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rx-lc-thumb .dashicons { font-size: 60px; width: 60px; height: 60px; color: var(--rx-primary); }
.rx-lc-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rx-lc-cat { align-self: flex-start; background: rgba(0,113,227,0.12); color: var(--rx-primary); font-size: 11px; }
.rx-lc-name { font-weight: 800; font-size: 15px; }
.rx-lc-price { color: var(--rx-primary); font-weight: 800; margin-top: auto; }
.rx-lc-btn { justify-content: center; margin-top: 6px; }
.rx-lc-arrow { position: absolute; top: 40%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: #fff; color: var(--rx-primary); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 8px 24px rgba(31,38,135,0.2); z-index: 3; display: grid; place-items: center; transition: transform 0.15s; }
.rx-lc-arrow:hover { transform: translateY(-50%) scale(1.1); }
.rx-lc-prev { right: -10px; }
.rx-lc-next { left: -10px; }
.rx-lc-arrow[disabled] { opacity: 0.35; cursor: default; }
.rx-lc-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.rx-lc-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(0,113,227,0.25); cursor: pointer; padding: 0; }
.rx-lc-dot.active { background: var(--rx-primary); width: 26px; border-radius: 9px; }

/* مراحل همکاری */
.rx-lsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rx-lstep { padding: 26px 20px; text-align: center; position: relative; }
.rx-lstep-num { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 20px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--rx-primary), var(--rx-primary-2)); }
.rx-lstep h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.rx-lstep p { color: var(--rx-muted); font-size: 13px; line-height: 1.9; margin: 0; }

/* نظرات */
.rx-ltesti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rx-ltesti-card { padding: 28px 24px; position: relative; }
.rx-ltesti-quote { font-size: 60px; line-height: 0.5; color: rgba(0,113,227,0.2); font-family: Georgia, serif; margin-bottom: 10px; }
.rx-ltesti-text { font-size: 15px; line-height: 2.1; color: var(--rx-text); margin: 0 0 18px; }
.rx-ltesti-person { display: flex; align-items: center; gap: 12px; }
.rx-ltesti-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--rx-primary), var(--rx-accent)); }
.rx-ltesti-name { font-weight: 800; font-size: 14px; }
.rx-ltesti-role { color: var(--rx-muted); font-size: 12px; }

/* فراخوان پایانی */
.rx-lcta { text-align: center; padding: 50px 30px; background: linear-gradient(135deg, rgba(0,113,227,0.14), rgba(100,210,255,0.12)) !important; }
.rx-lcta h2 { font-size: 30px; font-weight: 900; margin: 0 0 12px; }
.rx-lcta p { color: var(--rx-muted); font-size: 16px; margin: 0 0 24px; }

/* سربرگ صفحات درباره/تماس */
.rx-lpage-head { text-align: center; padding: 46px 30px; }
.rx-lpage-head h1 { font-size: 36px; font-weight: 900; margin: 14px 0 10px; }
.rx-lpage-head p { color: var(--rx-muted); font-size: 17px; margin: 0; }

/* درباره ما */
.rx-labout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: stretch; }
.rx-labout-media { padding: 0; overflow: hidden; display: grid; place-items: center; min-height: 320px; }
.rx-labout-media img { width: 100%; height: 100%; object-fit: cover; }
.rx-labout-orb { width: 200px; height: 200px; border-radius: 50%; background: linear-gradient(135deg, var(--rx-primary), var(--rx-accent)); display: grid; place-items: center; }
.rx-labout-orb span { font-size: 80px; font-weight: 900; color: #fff; }
.rx-labout-text { padding: 34px 32px; }
.rx-labout-text h2 { font-size: 26px; font-weight: 900; margin: 0 0 16px; }
.rx-labout-text p { color: var(--rx-muted); font-size: 15px; line-height: 2.2; margin: 0 0 14px; }

.rx-lmv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rx-lmv-card { padding: 30px 28px; }
.rx-lmv-ic { font-size: 38px; margin-bottom: 12px; }
.rx-lmv-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.rx-lmv-card p { color: var(--rx-muted); font-size: 15px; line-height: 2.1; margin: 0; }

/* تماس با ما */
.rx-lcontact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 22px; align-items: start; }
.rx-lcontact-info { display: flex; flex-direction: column; gap: 14px; }
.rx-lcinfo { display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-decoration: none; color: inherit; transition: transform 0.15s; }
.rx-lcinfo:hover { transform: translateX(-4px); }
.rx-lcinfo-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(0,113,227,0.1); flex: none; }
.rx-lcinfo-t { font-size: 12px; color: var(--rx-muted); font-weight: 600; }
.rx-lcinfo-v { font-weight: 700; font-size: 14px; margin-top: 3px; word-break: break-word; }
.rx-lsocials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.rx-lsocial { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; text-decoration: none; transition: transform 0.15s; }
.rx-lsocial:hover { transform: translateY(-4px); }
.rx-lcontact-form { padding: 34px 32px; }
.rx-lcontact-form h2 { font-size: 24px; font-weight: 900; margin: 0 0 6px; }
.rx-lc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rx-field-in { width: 100%; padding: 12px 14px; border-radius: var(--rx-radius-sm); border: 1px solid rgba(0,113,227,0.2); background: rgba(255,255,255,0.7); font-family: var(--rx-font); font-size: 14px; color: var(--rx-text); }
.rx-field-in:focus { outline: none; border-color: var(--rx-primary); box-shadow: 0 0 0 3px rgba(0,113,227,0.12); }
.rx-lmap { padding: 8px; overflow: hidden; }
.rx-lmap iframe { width: 100%; height: 360px; border: 0; border-radius: calc(var(--rx-radius) - 8px); display: block; }

/* ریسپانسیو صفحات سایت */
@media (max-width: 900px) {
	.rx-lhero { grid-template-columns: 1fr; text-align: center; padding: 34px 22px; }
	.rx-lhero-cta { justify-content: center; }
	.rx-lhero-visual { order: -1; }
	.rx-lhero-title { font-size: 30px; }
	.rx-lstats { grid-template-columns: repeat(2, 1fr); }
	.rx-lfeatures, .rx-ltesti, .rx-lsteps, .rx-lmv { grid-template-columns: 1fr 1fr; }
	.rx-labout, .rx-lcontact { grid-template-columns: 1fr; }
	.rx-lc-arrow { display: none; }
}
@media (max-width: 560px) {
	.rx-lfeatures, .rx-ltesti, .rx-lsteps, .rx-lmv, .rx-lstats, .rx-lc-row { grid-template-columns: 1fr; }
	.rx-lhero-title { font-size: 25px; }
	.rx-lsec-head h2, .rx-lpage-head h1, .rx-lcta h2 { font-size: 23px; }
	.rx-lc-card { width: 78vw; }
}

/* ============================================================
 * رسید پرداخت
 * ============================================================ */
.rx-receipt-wrap { max-width: 560px; margin: 0 auto 26px; padding: 0; }
.rx-receipt { padding: 30px 26px; border-radius: 22px; position: relative; overflow: hidden; }
.rx-receipt.is-success { border-top: 5px solid var(--rx-success); }
.rx-receipt.is-failed { border-top: 5px solid var(--rx-danger); }
.rx-receipt-head { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 16px; }
.rx-receipt-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; }
.rx-receipt-logo-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--rx-primary), var(--rx-accent)); color: #fff; font-weight: 900; font-size: 22px; }
.rx-receipt-brand { font-weight: 900; font-size: 18px; }
.rx-receipt-badge { text-align: center; margin-bottom: 18px; }
.rx-receipt-badge h2 { font-size: 20px; font-weight: 900; margin: 12px 0 6px; }
.rx-receipt-badge p { color: var(--rx-muted); font-size: 13px; margin: 0; line-height: 1.9; }
.rx-receipt-check, .rx-receipt-cross { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; font-size: 40px; color: #fff; font-weight: 900; }
.rx-receipt-check { background: linear-gradient(135deg, #34c759, #248a3d); box-shadow: 0 12px 30px rgba(34,197,94,0.4); animation: rxPop .4s ease; }
.rx-receipt-cross { background: linear-gradient(135deg, #ff6b6b, #ff3b30); box-shadow: 0 12px 30px rgba(239,68,68,0.35); }
@keyframes rxPop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.rx-receipt-track { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(0,113,227,0.1); border: 1px dashed rgba(0,113,227,0.4); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; }
.rx-receipt-track-l { font-size: 13px; color: var(--rx-muted); font-weight: 600; }
.rx-receipt-track-v { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 18px; letter-spacing: 1px; cursor: pointer; direction: ltr; display: inline-flex; align-items: center; gap: 8px; color: var(--rx-primary); }
.rx-rcopy-ic { font-size: 15px; opacity: .7; }
.rx-receipt-rows { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.rx-receipt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px; border-bottom: 1px dashed rgba(0,0,0,0.07); font-size: 14px; }
.rx-receipt-row:last-child { border-bottom: none; }
.rx-receipt-row span { color: var(--rx-muted); }
.rx-receipt-items { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 13px; }
.rx-receipt-items th { text-align: right; color: var(--rx-muted); font-weight: 600; padding: 8px; border-bottom: 2px solid rgba(0,113,227,0.2); }
.rx-receipt-items td { padding: 8px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.rx-receipt-msg { text-align: center; color: var(--rx-muted); font-size: 13px; margin: 8px 0; }
.rx-receipt-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.rx-receipt-foot { text-align: center; color: var(--rx-muted); font-size: 11px; margin-top: 16px; }

@media print {
	body * { visibility: hidden !important; }
	#rahinex-receipt, #rahinex-receipt * { visibility: visible !important; }
	#rahinex-receipt { position: absolute; inset: 0 0 auto 0; margin: 0; padding: 10px; }
	#rahinex-receipt .rx-no-print { display: none !important; }
	#rahinex-receipt::before { display: none !important; }
	.rx-receipt { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ============================================================
 * مودال ورود و ثبت‌نام
 * ============================================================ */
.rx-auth-overlay {
	position: fixed; inset: 0; z-index: 999999;
	display: none; align-items: center; justify-content: center;
	padding: 20px;
	background: rgba(20, 22, 45, 0.55);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	max-width: none; margin: 0;
}
.rx-auth-overlay.open { display: flex; animation: rxFadeIn .2s ease; }
@keyframes rxFadeIn { from { opacity: 0; } to { opacity: 1; } }
.rx-auth-box {
	position: relative; width: 100%; max-width: 400px;
	padding: 34px 30px 26px; border-radius: 24px;
	background: rgba(255, 255, 255, 0.92) !important;
	animation: rxAuthUp .3s cubic-bezier(.22,.61,.36,1);
	max-height: 92vh; overflow-y: auto;
}
@keyframes rxAuthUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.rx-auth-close {
	position: absolute; top: 14px; left: 16px;
	width: 34px; height: 34px; border-radius: 50%; border: none;
	background: rgba(0,0,0,.05); color: var(--rx-muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.rx-auth-close:hover { background: rgba(239,68,68,.12); color: var(--rx-danger); }
.rx-auth-brand { text-align: center; margin-bottom: 20px; }
.rx-auth-logo { width: 60px; height: 60px; border-radius: 18px; object-fit: contain; margin: 0 auto 10px; display: block; }
.rx-auth-logo-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--rx-primary), var(--rx-accent)); color: #fff; font-weight: 900; font-size: 28px; }
.rx-auth-brand-name { font-weight: 900; font-size: 19px; }
.rx-auth-step h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; text-align: center; }
.rx-auth-sub { color: var(--rx-muted); font-size: 13px; text-align: center; line-height: 1.9; margin: 0 0 18px; }
.rx-auth-field { margin-bottom: 12px; }
.rx-auth-field .rx-field-in { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid rgba(0,113,227,0.22); background: #fff; font-family: var(--rx-font); font-size: 15px; color: var(--rx-text); text-align: center; }
.rx-auth-field .rx-field-in:focus { outline: none; border-color: var(--rx-primary); box-shadow: 0 0 0 3px rgba(0,113,227,0.12); }
.rx-auth-code { letter-spacing: 6px; font-weight: 800; font-size: 20px !important; }
.rx-auth-box .rx-btn-lg { width: 100%; justify-content: center; padding: 14px; font-size: 15px; border-radius: 14px; margin-top: 4px; }
.rx-auth-sep { display: flex; align-items: center; gap: 12px; color: var(--rx-muted); font-size: 12px; margin: 16px 0; }
.rx-auth-sep::before, .rx-auth-sep::after { content: ""; flex: 1; height: 1px; background: rgba(0,0,0,.08); }
.rx-auth-box .rx-btn-ghost { width: 100%; justify-content: center; }
.rx-auth-back { background: none; border: none; color: var(--rx-primary); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 8px; }
.rx-auth-newfields { margin-bottom: 6px; }
.rx-auth-welcome { text-align: center; font-size: 13px; font-weight: 700; color: var(--rx-primary); background: rgba(0,113,227,0.08); border-radius: 12px; padding: 8px; margin-bottom: 12px; }
.rx-auth-resend { text-align: center; margin-top: 14px; font-size: 12px; color: var(--rx-muted); }
.rx-auth-resend-btn { background: none; border: none; color: var(--rx-primary); cursor: pointer; font-family: inherit; font-weight: 700; font-size: 13px; }
.rx-auth-foot { text-align: center; font-size: 11px; color: var(--rx-muted); margin-top: 18px; line-height: 1.8; }

/* سبد خرید */
.rx-cart-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.rx-cart-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(0,113,227,0.05); flex-wrap: wrap; }
.rx-cart-item-title { font-weight: 700; font-size: 14px; }
.rx-cart-item-price { font-size: 12px; color: var(--rx-muted); margin-top: 3px; }
.rx-cart-item-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rx-cart-qty { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 4px; }
.rx-cart-qty button { width: 26px; height: 26px; border: none; border-radius: 8px; background: rgba(0,113,227,0.1); color: var(--rx-primary); font-size: 16px; font-weight: 800; cursor: pointer; }
.rx-cart-line { color: var(--rx-primary); font-weight: 800; }
.rx-cart-remove { background: none; border: none; cursor: pointer; font-size: 16px; }
.rx-cart-summary { border-top: 1px dashed rgba(0,113,227,0.2); padding-top: 14px; }
.rx-cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; margin-bottom: 12px; }
.rx-cart-total { color: var(--rx-primary); font-weight: 900; font-size: 18px; }
.rx-cart-summary .rx-field-in { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(0,113,227,0.2); background: #fff; font-family: var(--rx-font); font-size: 14px; }

/* ============================================================
 * لایهٔ بازطراحی اپل (فرانت) — مینیمال، شیشه‌ای، قرصی
 * ============================================================ */
.rx-front {
	--rx-text: #1d1d1f;
	--rx-muted: #86868b;
	--rx-radius: 18px;
	--rx-radius-sm: 12px;
}
.rx-front::before {
	background:
		radial-gradient(circle at 20% 0%, rgba(0, 113, 227, 0.05), transparent 45%),
		radial-gradient(circle at 85% 20%, rgba(100, 210, 255, 0.05), transparent 40%),
		linear-gradient(180deg, #f5f5f7 0%, #fafafc 100%);
}
.rx-front .rx-glass {
	background: rgba(255, 255, 255, 0.68);
	backdrop-filter: blur(28px) saturate(180%);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}
.rx-front .rx-btn {
	border-radius: 980px;
	padding: 10px 20px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(0, 0, 0, 0.08);
	color: var(--rx-text);
}
.rx-front .rx-btn:hover { transform: none; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.rx-front .rx-btn:active { transform: scale(0.97); }
.rx-front .rx-btn-primary { background: #0071e3; border: none; color: #fff; }
.rx-front .rx-btn-primary:hover { background: #0077ed; }
.rx-front .rx-btn-accent { background: #30b0c7; border: none; color: #fff; }
.rx-front .rx-btn-ghost { background: transparent; border: 1px solid rgba(0, 113, 227, 0.35); color: #0071e3; }
.rx-front .rx-ptabs {
	background: rgba(120, 120, 128, 0.12);
	border-radius: 13px;
	padding: 3px;
	gap: 2px;
}
.rx-front .rx-ptab { border-radius: 10px; color: var(--rx-text); }
.rx-front .rx-ptab.active {
	background: #fff;
	color: var(--rx-text);
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
}
.rx-front input,
.rx-front select,
.rx-front textarea {
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.9);
}
.rx-front .rx-pavatar { background: linear-gradient(160deg, #0a84ff, #0071e3); }
.rx-front td { background: rgba(255, 255, 255, 0.75); }

/* ---------- نوار پایین موبایل پنل (شیشه‌ای iOS) ---------- */
.rx-pnav {
	display: none;
	position: fixed;
	bottom: 10px;
	right: 12px;
	left: 12px;
	z-index: 99990;
	padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
	border-radius: 26px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(32px) saturate(180%);
	-webkit-backdrop-filter: blur(32px) saturate(180%);
	border: 1px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16);
	align-items: stretch;
	justify-content: space-around;
	gap: 2px;
}
.rx-pnav-item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	border: none;
	background: transparent;
	color: #86868b;
	font-family: inherit;
	font-size: 10px;
	font-weight: 600;
	padding: 7px 2px;
	border-radius: 18px;
	cursor: pointer;
	min-width: 0;
	position: relative;
	transition: color .15s, background .15s;
}
.rx-pnav-item .ico { font-size: 21px; line-height: 1; }
.rx-pnav-item.active { color: #0071e3; background: rgba(0, 113, 227, 0.1); }
.rx-pnav-item .lbl {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.rx-pnav-badge {
	position: absolute;
	top: 3px;
	inset-inline-end: calc(50% - 20px);
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #ff3b30;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: grid;
	place-items: center;
}
/* برگهٔ «بیشتر» */
.rx-pnav-sheet {
	display: none;
	position: fixed;
	bottom: calc(86px + env(safe-area-inset-bottom));
	right: 12px;
	left: 12px;
	z-index: 99991;
	padding: 10px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(36px) saturate(180%);
	-webkit-backdrop-filter: blur(36px) saturate(180%);
	border: 1px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 14px 44px rgba(0, 0, 0, 0.2);
	flex-direction: column;
	gap: 4px;
}
.rx-pnav-sheet.open { display: flex; }
.rx-pnav-sheet button {
	display: flex;
	align-items: center;
	gap: 10px;
	border: none;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #1d1d1f;
	padding: 12px 14px;
	border-radius: 14px;
	cursor: pointer;
	text-align: right;
}
.rx-pnav-sheet button:hover { background: rgba(0, 113, 227, 0.08); }

@media (max-width: 782px) {
	.rx-pnav { display: flex; }
	/* جای کافی برای نوار پایین */
	.rx-front.rx-has-pnav { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
	/* نوارابزارها و سربرگ‌ها: هرگز بیرون نزنند */
	.rx-front { overflow-x: clip; }
	.rx-front .rx-ptabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.rx-front .rx-ptabs::-webkit-scrollbar { display: none; }
	.rx-front .rx-ptab { white-space: nowrap; flex: 0 0 auto; }
	.rx-front table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

/* توست بالاتر از نوار پایین موبایل پنل */
.rx-front .rx-toast, .rx-toast { z-index: 100060; }
@media (max-width: 782px) {
	.rx-front .rx-toast, .rx-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* قفل قطعی سرریز افقی صفحه در حضور پنل/فروشگاه/لندینگ */
body.rx-has-front,
html:has(.rx-front),
body:has(.rx-front) {
	overflow-x: clip !important;
	max-width: 100vw;
}

/* ============================================================
 * حالت تیره (Dark Mode) صفحات فرانت — پالت تیرهٔ اپل
 * ============================================================ */
.rx-front.rx-dark {
	--rx-text: #f5f5f7;
	--rx-muted: #98989d;
	color: #f5f5f7;
}
.rx-front.rx-dark::before {
	background:
		radial-gradient(circle at 20% 0%, rgba(10, 132, 255, 0.1), transparent 45%),
		radial-gradient(circle at 85% 20%, rgba(100, 210, 255, 0.06), transparent 40%),
		linear-gradient(180deg, #000 0%, #161617 100%);
}
.rx-front.rx-dark .rx-glass {
	background: rgba(28, 28, 30, 0.68);
	border-color: rgba(255, 255, 255, 0.09);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}
.rx-front.rx-dark .rx-btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.12); color: #f5f5f7; }
.rx-front.rx-dark .rx-btn-primary { background: #0a84ff; border: none; color: #fff; }
.rx-front.rx-dark .rx-btn-accent { background: #40c8e0; border: none; color: #003; }
.rx-front.rx-dark .rx-btn-ghost { background: transparent; border-color: rgba(10, 132, 255, 0.5); color: #0a84ff; }
.rx-front.rx-dark .rx-ptabs { background: rgba(118, 118, 128, 0.24); }
.rx-front.rx-dark .rx-ptab { color: #f5f5f7; }
.rx-front.rx-dark .rx-ptab.active { background: #636366; color: #fff; }
.rx-front.rx-dark input,
.rx-front.rx-dark select,
.rx-front.rx-dark textarea {
	background: rgba(255, 255, 255, 0.07);
	color: #f5f5f7;
	border-color: rgba(255, 255, 255, 0.14);
}
.rx-front.rx-dark input::placeholder,
.rx-front.rx-dark textarea::placeholder { color: #7c8099; }
.rx-front.rx-dark td { background: rgba(255, 255, 255, 0.04); color: #f5f5f7; }
.rx-front.rx-dark th { color: #98989d; }
.rx-front.rx-dark .rx-ptl,
.rx-front.rx-dark .rx-shop-card,
.rx-front.rx-dark .rx-cart-item,
.rx-front.rx-dark .rx-plan-opt,
.rx-front.rx-dark .rx-dur-opt,
.rx-front.rx-dark .rx-pick,
.rx-front.rx-dark .rx-lplan {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.09);
	color: #f5f5f7;
}
.rx-front.rx-dark .rx-empty { color: #98989d; }
.rx-front.rx-dark .rx-auth-box { background: rgba(28, 28, 30, 0.92); border-color: rgba(255, 255, 255, 0.1); color: #f5f5f7; }
.rx-front.rx-dark .rx-pnav,
.rx-front.rx-dark .rx-pnav-sheet {
	background: rgba(28, 28, 30, 0.78);
	border-color: rgba(255, 255, 255, 0.09);
}
.rx-front.rx-dark .rx-pnav-item { color: #98989d; }
.rx-front.rx-dark .rx-pnav-item.active { color: #0a84ff; background: rgba(10, 132, 255, 0.16); }
.rx-front.rx-dark .rx-pnav-sheet button { color: #f5f5f7; }
.rx-front.rx-dark .rx-pnav-sheet button:hover { background: rgba(10, 132, 255, 0.14); }
.rx-front.rx-dark h1, .rx-front.rx-dark h2, .rx-front.rx-dark h3, .rx-front.rx-dark h4 { color: #f5f5f7; }
.rx-front.rx-dark .rx-code-badge { background: rgba(10, 132, 255, 0.16); color: #64d2ff; border-color: rgba(10, 132, 255, 0.3); }

/* کلید شناور تیره/روشن فرانت */
.rx-theme-fab {
	position: fixed;
	left: 14px;
	bottom: 22px;
	z-index: 99985;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	font-size: 19px;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
	transition: transform .2s;
}
.rx-theme-fab:active { transform: scale(0.92); }
.rx-front.rx-dark ~ .rx-theme-fab,
body.rx-front-dark .rx-theme-fab { background: rgba(44, 44, 46, 0.85); border-color: rgba(255, 255, 255, 0.12); }
@media (max-width: 782px) {
	.rx-theme-fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ============================================================
 * کارت‌های پلن در صفحهٔ خانه — سبک قیمت‌گذاری اپل
 * ============================================================ */
.rx-front .rx-lplans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	max-width: 1060px;
	margin: 0 auto;
	align-items: stretch;
}
.rx-front .rx-lplan {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 22px 22px;
	text-align: center;
	transition: transform .25s cubic-bezier(.32, .72, 0, 1), box-shadow .25s;
}
.rx-front .rx-lplan:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}
.rx-front .rx-lplan h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.rx-front .rx-lplan h3 .rx-badge { font-size: 13px; padding: 4px 9px; }
.rx-front .rx-lplan-price {
	font-size: 22px;
	font-weight: 800;
	color: var(--rx-text);
	line-height: 1.4;
}
.rx-front .rx-lplan-price .rx-price-new { color: #0071e3; }
.rx-front .rx-lplan-price .rx-sub { display: block; font-weight: 600; color: var(--rx-muted); }
.rx-front .rx-lplan-feats {
	list-style: none;
	margin: 0;
	padding: 14px 4px;
	text-align: right;
	font-size: 13px;
	color: var(--rx-muted);
	display: flex;
	flex-direction: column;
	gap: 9px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	flex: 1;
}
.rx-front .rx-lplan-feats li { line-height: 1.8; }
.rx-front .rx-lplan .rx-plan-months {
	width: 100%;
	padding: 11px 14px;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.9);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--rx-text);
	outline: none;
	cursor: pointer;
}
.rx-front .rx-lplan .rx-add-cart { justify-content: center; }
.rx-front.rx-dark .rx-lplan-feats { border-color: rgba(255, 255, 255, 0.08); color: #98989d; }
.rx-front.rx-dark .rx-lplan .rx-plan-months { background: rgba(255, 255, 255, 0.07); color: #f5f5f7; border-color: rgba(255, 255, 255, 0.14); }
.rx-front.rx-dark .rx-lplan-price { color: #f5f5f7; }
.rx-front.rx-dark .rx-lplan-price .rx-price-new { color: #0a84ff; }
@media (max-width: 782px) {
	.rx-front .rx-lplans { grid-template-columns: 1fr; max-width: 380px; }
}

/* ---------- دکمهٔ سبد خرید هدر — [rahinex_cart] ---------- */
.rx-hcart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
	font-size: 19px;
	text-decoration: none !important;
	line-height: 1;
	transition: transform .15s;
	vertical-align: middle;
}
.rx-hcart:hover { transform: scale(1.06); }
.rx-hcart-badge {
	position: absolute;
	top: -5px;
	inset-inline-start: -5px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ff3b30;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: grid;
	place-items: center;
	box-shadow: 0 2px 8px rgba(255, 59, 48, 0.45);
}
.rx-hcart-badge:empty { display: none; }
body.rx-front-dark .rx-hcart { background: rgba(44, 44, 46, 0.85); border-color: rgba(255, 255, 255, 0.12); }

/* ============================================================
 * صفحهٔ تسویه‌حساب (Checkout) — [rahinex_checkout]
 * ============================================================ */
.rx-co-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px 20px;
	margin-bottom: 20px;
}
.rx-co-step {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--rx-muted);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}
.rx-co-step .n {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(120, 120, 128, 0.14);
	font-size: 13px;
}
.rx-co-step.active { color: #0071e3; }
.rx-co-step.active .n { background: #0071e3; color: #fff; box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35); }
.rx-co-step.done { color: #34c759; }
.rx-co-step.done .n { background: rgba(52, 199, 89, 0.16); color: #34c759; }
.rx-co-line { flex: 0 1 70px; height: 2px; background: rgba(120, 120, 128, 0.2); border-radius: 2px; }

.rx-co-grid {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 18px;
	align-items: start;
}
.rx-co-side { position: sticky; top: 20px; }
.rx-co-summary .rx-co-paybtn { width: 100%; justify-content: center; margin-top: 14px; padding: 13px 20px; font-size: 14px; }
.rx-co-note { font-size: 11px; color: var(--rx-muted); text-align: center; margin: 10px 0 0; line-height: 1.9; }

.rx-co-discount { display: flex; gap: 8px; margin-bottom: 6px; }
.rx-co-discount input { flex: 1; }
.rx-co-discount .rx-btn { flex: 0 0 auto; }
.rx-co-code-msg { font-size: 12px; color: #34c759; font-weight: 700; margin: 4px 2px 0; }
.rx-co-code-msg.err { color: #ff3b30; }

.rx-co-rows { margin-top: 14px; display: flex; flex-direction: column; }
.rx-co-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 2px;
	font-size: 13px;
	border-bottom: 1px dashed rgba(120, 120, 128, 0.25);
}
.rx-co-row:last-child { border-bottom: none; }
.rx-co-row-disc b { color: #34c759; }
.rx-co-total { font-size: 15px; padding-top: 14px; }
.rx-co-total b { color: #0071e3; font-size: 18px; }

.rx-co-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rx-co-party {
	border: 1px solid rgba(120, 120, 128, 0.18);
	border-radius: 14px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 13px;
}
.rx-co-party-h { font-size: 11px; font-weight: 800; color: var(--rx-muted); letter-spacing: .3px; margin-bottom: 3px; }

@media (max-width: 900px) {
	.rx-co-grid { grid-template-columns: 1fr; }
	.rx-co-side { position: static; }
	.rx-co-parties { grid-template-columns: 1fr; }
	.rx-co-line { flex-basis: 26px; }
}

/* دارک‌مود تسویه */
.rx-front.rx-dark .rx-co-step .n { background: rgba(255, 255, 255, 0.1); }
.rx-front.rx-dark .rx-co-step.active .n { background: #0a84ff; }
.rx-front.rx-dark .rx-co-party { border-color: rgba(255, 255, 255, 0.1); }
.rx-front.rx-dark .rx-co-row { border-color: rgba(255, 255, 255, 0.1); }
.rx-front.rx-dark .rx-co-total b { color: #0a84ff; }

/* ============================================================
 * بازطراحی پنل مشتری — هیرو خوش‌آمد، کارت‌های آمار، حساب کاربری
 * ============================================================ */
.rx-front .rx-pwelc { align-items: center; }
.rx-front .rx-pwelc-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.rx-front .rx-pwelc-hi { font-size: 13px; font-weight: 700; color: #0071e3; }
.rx-front .rx-pwelc-name {
	margin: 2px 0 4px;
	font-size: 24px;
	font-weight: 800;
	background: linear-gradient(100deg, #0071e3, #64d2ff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.rx-front .rx-pwelc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-front .rx-pstats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rx-front .rx-pstat { position: relative; padding: 18px 14px 16px; }
.rx-front .rx-pstat .ic { font-size: 22px; margin-bottom: 6px; }
.rx-front .rx-pstat-danger { border: 1.5px solid rgba(255, 59, 48, 0.45); }
.rx-front .rx-pstat-danger .v { color: #ff3b30; }
.rx-front .rx-pstat-bar {
	height: 6px;
	border-radius: 999px;
	background: rgba(0, 113, 227, 0.14);
	overflow: hidden;
	margin-top: 8px;
}
.rx-front .rx-pstat-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0071e3, #64d2ff); }
.rx-front .rx-acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 700px) {
	.rx-front .rx-acc-grid { grid-template-columns: 1fr; }
	.rx-front .rx-pwelc { flex-direction: column; align-items: stretch; text-align: center; }
	.rx-front .rx-pwelc-main { flex-direction: column; }
	.rx-front .rx-pwelc-actions { justify-content: center; }
	.rx-front .rx-pstats { grid-template-columns: repeat(2, 1fr); }
	.rx-front .rx-pwelc-name { font-size: 20px; }
}
.rx-front.rx-dark .rx-pwelc-hi { color: #0a84ff; }
.rx-front.rx-dark .rx-pwelc-name { background: linear-gradient(100deg, #0a84ff, #64d2ff); -webkit-background-clip: text; background-clip: text; }
.rx-front.rx-dark .rx-pstat-danger { border-color: rgba(255, 69, 58, 0.5); }
.rx-front.rx-dark .rx-pstat-danger .v { color: #ff453a; }

/* ---------- زنگولهٔ اعلان‌های پنل ---------- */
.rx-pbell-wrap { position: relative; }
.rx-pbell {
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: rgba(255, 255, 255, 0.8);
	font-size: 18px;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: transform .15s;
}
.rx-pbell:active { transform: scale(0.92); }
.rx-pbell-badge {
	position: absolute;
	top: -4px;
	inset-inline-start: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ff3b30;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: grid;
	place-items: center;
	box-shadow: 0 2px 8px rgba(255, 59, 48, 0.45);
}
.rx-pbell-drop {
	position: absolute;
	top: calc(100% + 10px);
	inset-inline-end: 0;
	width: min(340px, 86vw);
	z-index: 9000;
	padding: 12px;
	background: rgba(255, 255, 255, 0.92) !important;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.rx-pbell-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.rx-pbell-readall { border: none; background: rgba(0, 113, 227, 0.1); color: #0071e3; font-family: inherit; font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.rx-pbell-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.rx-pbell-item {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 9px 10px;
	border-radius: 12px;
	background: rgba(120, 120, 128, 0.06);
}
.rx-pbell-item.is-unread { background: rgba(0, 113, 227, 0.08); border-inline-start: 3px solid #0071e3; }
.rx-pbell-ico { font-size: 17px; flex: none; }
.rx-pbell-body { flex: 1; min-width: 0; }
.rx-pbell-title { font-size: 12px; font-weight: 700; }
.rx-pbell-msg { font-size: 11px; color: var(--rx-muted); line-height: 1.7; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rx-pbell-time { font-size: 10px; color: var(--rx-muted); white-space: nowrap; }
.rx-pbell-all {
	display: block;
	width: 100%;
	border: none;
	background: transparent;
	color: #0071e3;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	padding: 10px 0 4px;
	cursor: pointer;
	text-align: center;
}
@media (max-width: 700px) {
	.rx-pbell-drop { inset-inline-end: auto; inset-inline-start: 50%; transform: translateX(50%); }
}
/* دارک‌مود زنگوله */
.rx-front.rx-dark .rx-pbell { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.12); }
.rx-front.rx-dark .rx-pbell-drop { background: rgba(28, 28, 30, 0.95) !important; }
.rx-front.rx-dark .rx-pbell-item { background: rgba(255, 255, 255, 0.05); }
.rx-front.rx-dark .rx-pbell-item.is-unread { background: rgba(10, 132, 255, 0.14); border-color: #0a84ff; }
.rx-front.rx-dark .rx-pbell-readall { background: rgba(10, 132, 255, 0.16); color: #0a84ff; }
.rx-front.rx-dark .rx-pbell-all { color: #0a84ff; }
