/* پنل نویسندگان - ظاهر سایت */
.arna-ap { direction: rtl; text-align: right; max-width: 1000px; margin: 20px auto; font-family: inherit; line-height: 1.8; box-sizing: border-box; }
.arna-ap *, .arna-ap *::before, .arna-ap *::after { box-sizing: border-box; }
.arna-ap .arna-card { background: #fff; border: 1px solid #e3e6ea; border-radius: 14px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.arna-ap-login { max-width: 420px; }
.arna-ap-login h2 { margin: 0 0 14px; font-size: 20px; text-align: center; }

.arna-ap label { display: block; margin-bottom: 14px; font-size: 14px; color: #333; }
.arna-ap input[type=text], .arna-ap input[type=password], .arna-ap input[type=email] {
	display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #cfd4da; border-radius: 10px; font-size: 15px; background: #fff; }
.arna-ap input:focus { outline: 2px solid #2271b1; border-color: #2271b1; }
.arna-ap .arna-check { display: flex; align-items: center; gap: 8px; }
.arna-ap .arna-check input { margin: 0; }
.arna-btn { display: inline-block; padding: 11px 24px; background: #2271b1; color: #fff !important; border: 0; border-radius: 10px; font-size: 15px; cursor: pointer; text-decoration: none; text-align: center; }
.arna-btn:hover { background: #135e96; }
.arna-btn-block { display: block; width: 100%; }
.arna-hint { color: #6b7280; font-size: 13px; margin: 8px 0; }
.arna-msg { padding: 11px 14px; border-radius: 10px; margin: 0 0 14px; font-size: 14px; }
.arna-msg-ok { background: #e7f6ec; color: #11602d; border: 1px solid #bfe3cb; }
.arna-msg-err { background: #fdeaea; color: #8a1f1f; border: 1px solid #f3c2c2; }

/* سرتیتر پنل */
.arna-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; background: #f4f7fb; border: 1px solid #e3e6ea; border-radius: 14px; margin-bottom: 14px; }
.arna-logout { font-size: 14px; color: #b32d2e; text-decoration: none; }
.arna-badge { background: #fff3cd; color: #7a5b00; padding: 2px 8px; border-radius: 20px; font-size: 12px; }

/* منو (دسکتاپ: افقی، موبایل: عمودی) */
.arna-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.arna-tabs a { padding: 10px 16px; border-radius: 10px; background: #eef1f5; color: #333; text-decoration: none; font-size: 14px; }
.arna-tabs a.active { background: #2271b1; color: #fff; }
.arna-content { background: #fff; border: 1px solid #e3e6ea; border-radius: 14px; padding: 18px; }

/* جدول */
.arna-table-wrap { width: 100%; }
.arna-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.arna-table th, .arna-table td { padding: 10px 12px; border-bottom: 1px solid #edf0f3; text-align: right; vertical-align: middle; }
.arna-table thead th { background: #f4f7fb; font-weight: 600; white-space: nowrap; }
.arna-table tbody tr:nth-child(even) { background: #fafbfd; }
.arna-table tfoot th { background: #eef6ff; font-weight: 700; }
.arna-table .arna-title { font-weight: 600; min-width: 160px; }
.arna-table td, .arna-table th { font-variant-numeric: tabular-nums; }
.arna-form { max-width: 460px; }

/* پایین سایت: بنر ورود نویسندگان */
.arna-ap-footer { padding: 26px 14px; background: #0f1b2d; text-align: center; }
.arna-ap-footer-card {
	display: inline-flex; align-items: center; gap: 16px; width: 100%; max-width: 520px; padding: 16px 20px;
	background: linear-gradient(135deg, #1e6fd9 0%, #5b3fd1 100%); color: #fff !important; text-decoration: none !important;
	border-radius: 18px; box-shadow: 0 10px 28px rgba(30,111,217,.35); transition: transform .2s ease, box-shadow .2s ease; text-align: right;
}
.arna-ap-footer-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(91,63,209,.45); color: #fff; }
.arna-ap-footer-icon { flex: 0 0 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); }
.arna-ap-footer-text { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.6; }
.arna-ap-footer-text strong { font-size: 18px; font-weight: 700; }
.arna-ap-footer-text small { font-size: 12.5px; opacity: .85; }
.arna-ap-footer-arrow { flex: 0 0 auto; display: flex; opacity: .9; transition: transform .2s ease; }
.arna-ap-footer-card:hover .arna-ap-footer-arrow { transform: translateX(-4px); }

/* موبایل */
@media (max-width: 700px) {
	.arna-ap { margin: 10px auto; padding: 0 10px; }
	.arna-tabs { flex-direction: column; }
	.arna-tabs a { text-align: center; }
	.arna-content { padding: 12px; }

	/* هر ردیف جدول تبدیل به یک کارت می‌شود: بدون اسکرول افقی */
	.arna-table, .arna-table tbody, .arna-table tfoot, .arna-table tr, .arna-table td, .arna-table th { display: block; width: 100%; }
	.arna-table thead { display: none; }
	.arna-table tr { border: 1px solid #e3e6ea; border-radius: 12px; margin-bottom: 12px; padding: 6px 10px; background: #fff !important; }
	.arna-table tfoot tr { background: #eef6ff !important; }
	.arna-table td, .arna-table th { display: flex; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px dashed #edf0f3; padding: 8px 2px; text-align: left; }
	.arna-table td:last-child, .arna-table th:last-child { border-bottom: 0; }
	.arna-table td::before, .arna-table tfoot th::before { content: attr(data-label); font-weight: 600; color: #555; text-align: right; flex-shrink: 0; }
	.arna-table .arna-title { display: block; text-align: right; font-size: 15px; min-width: 0; }
	.arna-table .arna-title::before { display: block; font-size: 12px; font-weight: 400; color: #888; }
	.arna-table th.arna-empty { display: none; }
	.arna-table tfoot th[data-label=""] { display: block; text-align: right; }
	.arna-table tfoot th[data-label=""]::before { content: none; }
}
