/**
 * ATS Product Manager - Frontend Stylesheet (RTL)
 */

:root {
	--atsp-primary: #2563eb;
	--atsp-primary-hover: #1d4ed8;
	--atsp-secondary: #059669;
	--atsp-secondary-hover: #047857;
	--atsp-text: #1e293b;
	--atsp-muted: #64748b;
	--atsp-bg: #f8fafc;
	--atsp-border: #e2e8f0;
	--atsp-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
	--atsp-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
	--atsp-radius: 12px;
}

.atsp-shop-container,
.atsp-single-wrapper {
	direction: rtl;
	font-family: inherit;
	box-sizing: border-box;
	color: var(--atsp-text);
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 15px;
}

.atsp-shop-container *,
.atsp-single-wrapper * {
	box-sizing: border-box;
}

/* 1. شريط البحث والتصفية (Filters Bar) */
.atsp-filters-wrapper {
	background: #ffffff;
	border: 1px solid var(--atsp-border);
	border-radius: var(--atsp-radius);
	padding: 16px;
	margin-bottom: 25px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.atsp-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.atsp-filter-col {
	flex: 1 1 180px;
}

.atsp-col-search {
	flex: 2 1 260px;
}

.atsp-input-icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.atsp-search-icon {
	position: absolute;
	right: 12px;
	pointer-events: none;
	font-size: 14px;
}

.atsp-filter-input,
.atsp-filter-select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--atsp-border);
	border-radius: 8px;
	font-size: 14px;
	background: #ffffff;
	color: var(--atsp-text);
	transition: all 0.2s ease;
	outline: none;
}

.atsp-search-field {
	padding-right: 36px;
}

.atsp-filter-input:focus,
.atsp-filter-select:focus {
	border-color: var(--atsp-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ترويسة صفحة النوع المحدد */
.atsp-type-archive-header {
	display: flex;
	align-items: center;
	gap: 16px;
	background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
	border: 1px solid #dbeafe;
	border-radius: var(--atsp-radius);
	padding: 20px 24px;
	margin-bottom: 25px;
}

.atsp-archive-icon {
	font-size: 44px;
}

.atsp-archive-title {
	margin: 0 0 4px 0;
	font-size: 22px;
	font-weight: 800;
	color: #1e3a8a;
}

.atsp-archive-desc {
	margin: 0;
	font-size: 14px;
	color: var(--atsp-muted);
}

/* 2. شبكة المنتجات (Products Grid) */
.atsp-products-grid {
	display: grid;
	gap: 24px;
	margin-top: 15px;
}

.atsp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.atsp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.atsp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.atsp-cols-3, .atsp-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.atsp-products-grid { grid-template-columns: 1fr; }
}

/* 3. بطاقة المنتج (Card) */
.atsp-card {
	background: #ffffff;
	border: 1px solid var(--atsp-border);
	border-radius: var(--atsp-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: var(--atsp-card-shadow);
}

.atsp-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--atsp-hover-shadow);
}

.atsp-card-badges {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 5;
}

.atsp-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	color: #fff;
	text-align: center;
	display: inline-block;
}

.atsp-badge-free { background: #10b981; }
.atsp-badge-discount { background: #ef4444; }
.atsp-badge-bestseller { background: #f97316; }
.atsp-badge-featured { background: #f59e0b; }
.atsp-badge-new { background: #3b82f6; }

.atsp-card-thumb {
	width: 100%;
	height: 200px;
	background: #f1f5f9;
	position: relative;
	overflow: hidden;
}

.atsp-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.atsp-card:hover .atsp-thumb-img {
	transform: scale(1.04);
}

.atsp-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 55px;
}

.atsp-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.atsp-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.atsp-tag {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 4px;
}

.atsp-tag-type { background: #e0f2fe; color: #0369a1; }
.atsp-tag-subject { background: #f1f5f9; color: #475569; }

.atsp-card-title {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.atsp-card-title a {
	color: var(--atsp-text);
	text-decoration: none;
	transition: color 0.2s;
}

.atsp-card-title a:hover {
	color: var(--atsp-primary);
}

.atsp-card-excerpt {
	margin: 0 0 16px 0;
	font-size: 13px;
	color: var(--atsp-muted);
	line-height: 1.5;
	flex: 1;
}

.atsp-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--atsp-border);
	padding-top: 14px;
	margin-top: auto;
}

.atsp-price-box {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.atsp-price-amount {
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
}

.atsp-price-amount.free { color: #10b981; }
.atsp-price-amount.sale { color: #dc2626; }

.atsp-price-old {
	font-size: 12px;
	color: #94a3b8;
}

.atsp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
}

.atsp-btn-download {
	background: #10b981;
	color: #ffffff;
}

.atsp-btn-download:hover {
	background: #059669;
	color: #ffffff;
}

.atsp-btn-buy {
	background: var(--atsp-primary);
	color: #ffffff;
}

.atsp-btn-buy:hover {
	background: var(--atsp-primary-hover);
	color: #ffffff;
}

/* 4. صفحة المنتج الفردي (Single Product Page) */
.atsp-breadcrumbs {
	font-size: 13px;
	color: var(--atsp-muted);
	margin-bottom: 25px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.atsp-breadcrumbs a {
	color: var(--atsp-muted);
	text-decoration: none;
}

.atsp-breadcrumbs a:hover {
	color: var(--atsp-primary);
}

.atsp-breadcrumbs .atsp-current {
	color: var(--atsp-text);
	font-weight: 600;
}

.atsp-single-grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 40px;
	margin-bottom: 40px;
}

@media (max-width: 850px) {
	.atsp-single-grid {
		grid-template-columns: 1fr;
	}
}

.atsp-single-thumb {
	position: relative;
	border-radius: var(--atsp-radius);
	overflow: hidden;
	border: 1px solid var(--atsp-border);
	background: #f8fafc;
}

.atsp-main-image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

.atsp-single-placeholder {
	height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.atsp-preview-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

.atsp-btn-preview {
	flex: 1;
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #cbd5e1;
}

.atsp-btn-preview:hover {
	background: #e2e8f0;
}

.atsp-btn-demo {
	flex: 1;
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.atsp-type-pill {
	display: inline-block;
	background: #eff6ff;
	color: #1d4ed8;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 12px;
}

.atsp-single-title {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.35;
	margin: 0 0 15px 0;
}

.atsp-single-short-desc {
	font-size: 15px;
	color: #475569;
	line-height: 1.6;
	margin-bottom: 25px;
}

.atsp-purchase-box {
	background: #ffffff;
	border: 2px solid #e2e8f0;
	border-radius: var(--atsp-radius);
	padding: 24px;
	margin-bottom: 30px;
}

.atsp-single-price {
	font-size: 32px;
	font-weight: 900;
	color: var(--atsp-text);
}

.atsp-single-price-free {
	font-size: 28px;
	font-weight: 800;
	color: #10b981;
}

.atsp-single-price-old {
	font-size: 16px;
	color: #94a3b8;
	margin-right: 10px;
}

.atsp-discount-pill {
	background: #fef2f2;
	color: #dc2626;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	margin-right: 10px;
}

.atsp-cta-actions {
	margin-top: 18px;
}

.atsp-btn-download-lg,
.atsp-btn-buy-lg {
	width: 100%;
	padding: 14px;
	font-size: 16px;
	border-radius: 10px;
}

.atsp-btn-download-lg {
	background: #10b981;
	color: #fff;
}
.atsp-btn-download-lg:hover { background: #059669; }

.atsp-btn-buy-lg {
	background: var(--atsp-primary);
	color: #fff;
}
.atsp-btn-buy-lg:hover { background: var(--atsp-primary-hover); }

.atsp-guarantee-note {
	margin-top: 14px;
	font-size: 12px;
	color: #64748b;
	text-align: center;
}

/* جدول المواصفات */
.atsp-specs-card {
	background: #f8fafc;
	border: 1px solid var(--atsp-border);
	border-radius: var(--atsp-radius);
	padding: 20px;
}

.atsp-specs-title {
	margin: 0 0 15px 0;
	font-size: 16px;
	font-weight: 700;
}

.atsp-specs-table {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.atsp-spec-row {
	display: flex;
	justify-content: space-between;
	padding-bottom: 8px;
	border-bottom: 1px dashed #cbd5e1;
	font-size: 13px;
}

.atsp-spec-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.atsp-spec-key {
	color: var(--atsp-muted);
	font-weight: 600;
}

.atsp-spec-val {
	font-weight: 700;
	color: var(--atsp-text);
}

.atsp-content-section {
	background: #ffffff;
	border: 1px solid var(--atsp-border);
	border-radius: var(--atsp-radius);
	padding: 30px;
	margin-top: 20px;
}

.atsp-section-heading h2 {
	margin: 0 0 20px 0;
	font-size: 20px;
	font-weight: 800;
	border-bottom: 2px solid #f1f5f9;
	padding-bottom: 12px;
}

.atsp-main-content {
	font-size: 15px;
	line-height: 1.8;
	color: #334155;
}

/* 5. نافذة الشراء والمودال (Purchase Modal) */
.atsp-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.atsp-modal-container {
	background: #ffffff;
	border-radius: 16px;
	max-width: 460px;
	width: 100%;
	padding: 28px;
	position: relative;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
	direction: rtl;
	animation: atspModalIn 0.2s ease-out;
}

@keyframes atspModalIn {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

.atsp-modal-close {
	position: absolute;
	top: 16px;
	left: 16px;
	background: none;
	border: none;
	font-size: 24px;
	color: #94a3b8;
	cursor: pointer;
}

.atsp-modal-close:hover { color: #0f172a; }

.atsp-modal-header {
	text-align: center;
	margin-bottom: 18px;
}

.atsp-modal-icon { font-size: 36px; display: block; margin-bottom: 6px; }
.atsp-modal-title { margin: 0; font-size: 20px; font-weight: 800; }

.atsp-modal-product-summary {
	background: #f8fafc;
	border: 1px solid var(--atsp-border);
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.atsp-summary-title { font-weight: 700; font-size: 14px; max-width: 70%; }
.atsp-summary-price { font-weight: 800; font-size: 16px; color: var(--atsp-primary); }

.atsp-modal-form .atsp-form-field {
	margin-bottom: 14px;
}

.atsp-modal-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
}

.atsp-modal-form input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--atsp-border);
	border-radius: 8px;
	font-size: 14px;
}

.atsp-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
}

.atsp-btn-whatsapp {
	background: #25d366;
	color: #fff;
	padding: 12px;
	font-size: 14px;
	border-radius: 8px;
}
.atsp-btn-whatsapp:hover { background: #1ebc59; color: #fff; }

.atsp-btn-confirm {
	background: var(--atsp-primary);
	color: #fff;
	padding: 12px;
	font-size: 14px;
	border-radius: 8px;
}
.atsp-btn-confirm:hover { background: var(--atsp-primary-hover); color: #fff; }

.atsp-loading-indicator {
	text-align: center;
	padding: 20px;
	font-weight: 600;
	color: var(--atsp-muted);
}

/* 6. بوابة المدربين الخارجية (Trainer Portal) */
.atsp-portal-wrapper {
	width: 100%;
	max-width: 1100px;
	margin: 20px auto;
	direction: rtl;
	font-family: inherit;
}

/* بطاقة تسجيل دخول المدرب */
.atsp-portal-login-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 480px;
}

.atsp-portal-login-card {
	background: #ffffff;
	border: 1px solid var(--atsp-border);
	border-radius: 16px;
	padding: 35px 30px;
	width: 100%;
	max-width: 440px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.atsp-login-header {
	text-align: center;
	margin-bottom: 25px;
}

.atsp-login-icon {
	font-size: 48px;
	display: block;
	margin-bottom: 8px;
}

.atsp-login-title {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.atsp-login-subtitle {
	font-size: 13px;
	color: var(--atsp-muted);
	margin: 0;
}

.atsp-portal-form .atsp-form-group {
	margin-bottom: 18px;
}

.atsp-portal-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--atsp-text);
}

.atsp-input,
.atsp-select,
.atsp-textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--atsp-border);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	background: #ffffff;
	color: var(--atsp-text);
	transition: border-color 0.2s;
	outline: none;
}

.atsp-input:focus,
.atsp-select:focus,
.atsp-textarea:focus {
	border-color: var(--atsp-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.atsp-form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	margin-bottom: 20px;
}

.atsp-lost-password {
	color: var(--atsp-primary);
	text-decoration: none;
}

.atsp-lost-password:hover {
	text-decoration: underline;
}

.atsp-btn-login {
	width: 100%;
	background: var(--atsp-primary);
	color: #ffffff;
	padding: 13px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
}

.atsp-btn-login:hover {
	background: var(--atsp-primary-hover);
}

.atsp-login-footer {
	margin-top: 25px;
	padding-top: 15px;
	border-top: 1px solid var(--atsp-border);
	font-size: 12px;
	color: #64748b;
	line-height: 1.5;
	text-align: center;
}

/* هيدر لوحة تحكم المدرب */
.atsp-portal-header {
	background: #ffffff;
	border: 1px solid var(--atsp-border);
	border-radius: 12px;
	padding: 20px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.atsp-trainer-info {
	display: flex;
	align-items: center;
	gap: 16px;
}

.atsp-trainer-circle-avatar {
	border-radius: 50% !important;
	object-fit: cover !important;
	aspect-ratio: 1 / 1 !important;
	display: inline-block;
}

.atsp-trainer-avatar-wrap {
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	width: 70px;
	height: 70px;
}

.atsp-avatar-edit-btn {
	position: absolute;
	bottom: -2px;
	left: -2px;
	background: var(--atsp-primary, #2563eb);
	color: #fff;
	border: 2px solid #fff;
	border-radius: 50%;
	width: 26px;
	height: 26px;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transition: transform 0.15s ease, background 0.15s ease;
	padding: 0;
	line-height: 1;
}

.atsp-avatar-edit-btn:hover {
	transform: scale(1.15);
	background: #1d4ed8;
}

/* بطاقة المدرب في صفحة المنتج الفردي */
.atsp-trainer-card-box {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 15px 0 20px 0;
	padding: 10px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.atsp-trainer-card-avatar {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.atsp-trainer-card-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.atsp-trainer-card-label {
	font-size: 11px;
	color: #64748b;
	font-weight: 600;
}

.atsp-trainer-card-name {
	font-size: 15px;
	font-weight: 700;
	color: #1e293b;
}

.atsp-trainer-card-special {
	font-size: 12px;
	color: #2563eb;
	font-weight: 500;
}

.atsp-trainer-avatar img {
	border-radius: 50%;
	border: 2px solid var(--atsp-primary);
}

.atsp-trainer-badge {
	display: inline-block;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	margin-bottom: 4px;
}

.atsp-trainer-name {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 2px 0;
}

.atsp-trainer-meta {
	font-size: 13px;
	color: var(--atsp-muted);
	margin: 0;
}

.atsp-btn-portal-logout {
	background: #fee2e2;
	color: #991b1b;
	padding: 8px 14px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s;
}

.atsp-btn-portal-logout:hover {
	background: #fecaca;
}

/* بطاقات الإحصائيات الأربع */
.atsp-portal-stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 25px;
}

.atsp-stat-card {
	background: #ffffff;
	border: 1px solid var(--atsp-border);
	border-radius: 10px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	border-right: 4px solid var(--atsp-primary);
}

.atsp-stat-card.pending { border-right-color: #f59e0b; }
.atsp-stat-card.revision { border-right-color: #f97316; }
.atsp-stat-card.published { border-right-color: #10b981; }

.atsp-stat-title {
	font-size: 12px;
	color: var(--atsp-muted);
	font-weight: 600;
}

.atsp-stat-num {
	font-size: 26px;
	font-weight: 900;
	color: #0f172a;
	margin-top: 6px;
}

/* التنبيهات */
.atsp-portal-alert {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 600;
}

.atsp-portal-alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.atsp-portal-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.atsp-portal-alert-revision { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }

/* تبويبات لوحة المدرب */
.atsp-portal-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 1px;
}

.atsp-portal-tab {
	padding: 10px 20px;
	text-decoration: none;
	color: var(--atsp-muted);
	font-weight: 700;
	font-size: 14px;
	border-radius: 8px 8px 0 0;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.atsp-portal-tab.is-active {
	color: var(--atsp-primary);
	border-bottom: 3px solid var(--atsp-primary);
	background: #ffffff;
}

.atsp-tab-badge {
	background: #ef4444;
	color: #ffffff;
	font-size: 11px;
	padding: 1px 6px;
	border-radius: 10px;
}

/* فورم إرسال المنتج */
.atsp-portal-form-container {
	background: #ffffff;
	border: 1px solid var(--atsp-border);
	border-radius: 12px;
	padding: 28px;
}

.atsp-form-intro {
	margin-bottom: 22px;
	border-bottom: 1px solid var(--atsp-border);
	padding-bottom: 14px;
}

.atsp-form-intro h3 {
	margin: 0 0 6px 0;
	font-size: 18px;
	font-weight: 800;
}

.atsp-form-section {
	margin-bottom: 24px;
	background: #f8fafc;
	border: 1px solid var(--atsp-border);
	border-radius: 10px;
	padding: 18px;
}

.atsp-section-subtitle {
	margin: 0 0 14px 0;
	font-size: 15px;
	font-weight: 700;
	color: #1e293b;
}

.atsp-trainer-fields-panel.is-hidden {
	display: none;
}

.atsp-form-actions-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 25px;
}

.atsp-btn-submit-main {
	background: var(--atsp-primary);
	color: #ffffff;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px;
	border: none;
	cursor: pointer;
}
.atsp-btn-submit-main:hover { background: var(--atsp-primary-hover); }

.atsp-btn-draft {
	background: #f1f5f9;
	color: #334155;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	cursor: pointer;
}
.atsp-btn-draft:hover { background: #e2e8f0; }

.atsp-btn-cancel {
	color: #64748b;
	padding: 12px 18px;
	text-decoration: none;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
}

/* جدول منتجات المدرب */
.atsp-portal-products-wrap {
	background: #ffffff;
	border: 1px solid var(--atsp-border);
	border-radius: 12px;
	padding: 24px;
}

.atsp-portal-products-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

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

.atsp-portal-table th,
.atsp-portal-table td {
	padding: 12px 14px;
	text-align: right;
	border-bottom: 1px solid var(--atsp-border);
}

.atsp-portal-table th {
	background: #f8fafc;
	font-weight: 700;
	color: #334155;
}

.atsp-table-prod-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.atsp-mini-thumb {
	border-radius: 6px;
	object-fit: cover;
	width: 48px;
	height: 48px;
}

.atsp-mini-placeholder {
	width: 48px;
	height: 48px;
	background: #f1f5f9;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.atsp-table-notes-alert {
	margin-top: 6px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 12px;
	color: #9a3412;
}

.atsp-badge-portal {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
}

.status-published { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-revision { background: #ffedd5; color: #c2410c; }
.status-draft { background: #f1f5f9; color: #475569; }

.atsp-table-action-btns {
	display: flex;
	gap: 6px;
}

.atsp-btn-action {
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	display: inline-block;
}

.atsp-btn-action.edit { background: #f97316; color: #ffffff; }
.atsp-btn-action.withdraw { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.atsp-btn-action.view { background: #e0f2fe; color: #0369a1; }

.atsp-no-trainer-products {
	text-align: center;
	padding: 50px 20px;
	color: var(--atsp-muted);
}

