/* =============================================================================
   rgb-hosting — S5: checkout + client area + ssl-specific styles
   کامپوننت‌های عمومی (rgbh-hero/plans/plan/trust/steps/faq/cta/table/badge)
   از 00-core.css می‌آیند؛ این فایل فقط مختص چک‌اوت/پنل مشتری است.
   ========================================================================== */

/* ---------- چک‌اوت: قدم‌ها ---------- */
.rgbh-checkout-steps {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.rgbh-step {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	padding: 10px 14px;
	border-radius: var(--r-md, 18px);
	background: var(--surface, rgba(255,255,255,.045));
	border: 1px solid var(--border, rgba(255,255,255,.09));
	color: var(--text-3, #8690a6);
	font-size: 14px;
}

.rgbh-step.is-active {
	color: var(--text, #eef1f8);
	border-color: var(--border-2, rgba(255,255,255,.18));
	background: var(--surface-2, rgba(255,255,255,.075));
}

.rgbh-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--blue, #4d9fff);
	color: #05070c;
	font-weight: 700;
	font-size: 13px;
	flex-shrink: 0;
}

.rgbh-step:not(.is-active) .rgbh-step-num {
	background: var(--surface-3, rgba(255,255,255,.11));
	color: var(--text-3, #8690a6);
}

/* ---------- چک‌اوت: گرید و پنل‌ها ---------- */
.rgbh-checkout-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 28px;
	align-items: start;
}

@media (max-width: 900px) {
	.rgbh-checkout-grid {
		grid-template-columns: 1fr;
	}
}

.rgbh-step-panel {
	display: none;
}

.rgbh-step-panel.is-active {
	display: block;
}

.rgbh-item-card,
.rgbh-summary-card {
	padding: 20px;
	border-radius: var(--r-lg, 26px);
	margin-bottom: 18px;
}

.rgbh-item-meta {
	color: var(--text-2, #a9b1c3);
	font-size: 14px;
	margin: 4px 0 10px;
}

.rgbh-trust-mini {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: var(--text-2, #a9b1c3);
}

.rgbh-trust-mini li::before {
	content: '✓ ';
	color: var(--green, #2ee6a8);
}

/* ---------- فرم‌ها ---------- */
.rgbh-field-group,
.rgbh-field {
	margin-bottom: 16px;
}

.rgbh-field label,
.rgbh-field-group > label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	color: var(--text-2, #a9b1c3);
}

.rgbh-input,
.rgbh-field input,
.rgbh-field textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: var(--r-sm, 12px);
	border: 1px solid var(--border, rgba(255,255,255,.09));
	background: var(--surface, rgba(255,255,255,.045));
	color: var(--text, #eef1f8);
	font-family: inherit;
	font-size: 15px;
}

.rgbh-field input:read-only {
	opacity: .65;
}

.rgbh-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	cursor: pointer;
	font-size: 14px;
}

.rgbh-domain-search-box {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 16px;
}

.rgbh-domain-search-box .rgbh-input {
	flex: 1;
	min-width: 200px;
}

.rgbh-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rgbh-step-actions {
	display: flex;
	gap: 12px;
	margin-top: 8px;
}

.rgbh-form-msg {
	margin-top: 10px;
	font-size: 14px;
	min-height: 1em;
}

.rgbh-form-msg.err {
	color: var(--red, #ff4d6a);
}

.rgbh-form-msg.ok {
	color: var(--green, #2ee6a8);
}

/* ---------- پرداخت ---------- */
.rgbh-pay-option {
	padding: 16px;
	border-radius: var(--r-md, 18px);
	border: 1px solid var(--border, rgba(255,255,255,.09));
	margin-bottom: 14px;
}

.rgbh-pay-card-number {
	direction: ltr;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--blue, #4d9fff);
	margin: 8px 0;
}

/* ---------- حالت خالی ---------- */
.rgbh-empty-state {
	text-align: center;
	padding: 48px 20px;
}

.rgbh-empty-state-sm {
	padding: 28px 16px;
}

.rgbh-empty-links {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 16px;
}

/* ---------- پنل مشتری ---------- */
.rgbh-client-grid {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 28px;
	align-items: start;
}

@media (max-width: 800px) {
	.rgbh-client-grid {
		grid-template-columns: 1fr;
	}
}

.rgbh-client-tabs {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

@media (max-width: 800px) {
	.rgbh-client-tabs {
		flex-direction: row;
		overflow-x: auto;
		gap: 8px;
	}
}

.rgbh-tab {
	padding: 10px 14px;
	border-radius: var(--r-sm, 12px);
	color: var(--text-2, #a9b1c3);
	white-space: nowrap;
}

.rgbh-tab.is-active {
	background: var(--surface-2, rgba(255,255,255,.075));
	color: var(--text, #eef1f8);
	font-weight: 600;
}

.rgbh-tab-logout {
	margin-top: 12px;
	color: var(--red, #ff4d6a);
}

.rgbh-card-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rgbh-service-card {
	padding: 18px 20px;
	border-radius: var(--r-md, 18px);
}

.rgbh-service-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 6px;
}

.rgbh-service-meta {
	color: var(--text-2, #a9b1c3);
	font-size: 14px;
	margin: 2px 0;
}

.rgbh-pill {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.rgbh-pill.is-ok {
	background: rgba(46,230,168,.15);
	color: var(--green, #2ee6a8);
}

.rgbh-pill.is-warn {
	background: rgba(255,195,77,.15);
	color: var(--amber, #ffc34d);
}

.rgbh-pill.is-bad {
	background: rgba(255,77,106,.15);
	color: var(--red, #ff4d6a);
}

.rgbh-table-wrap {
	overflow-x: auto;
}

.rgbh-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.rgbh-table th,
.rgbh-table td {
	padding: 10px 12px;
	text-align: right;
	border-bottom: 1px solid var(--border, rgba(255,255,255,.09));
}

/* ---------- SSL page: کارت‌های قیمت ساده (fallback بدون rgbh_plans_section) ---------- */
.plan-specs {
	list-style: none;
	margin: 12px 0;
	padding: 0;
	font-size: 14px;
	color: var(--text-2, #a9b1c3);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.related-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
