/* ====== بازگشت و نوار بالا (بخش‌های جدید) ====== */
.nav-back, .nav-actions-mobile { display: none; }
.page-back {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 14px 0 4px; padding: 6px 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 20px;
    text-decoration: none; color: var(--primary-color); font-weight: 600; font-size: 0.88rem;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.page-back:hover { border-color: var(--gold-solid); }
.nav-count { background: #DC2626; color: #fff; border-radius: 10px; padding: 0 7px; font-size: 0.72rem; }
.nav-toggle { position: relative; }
.nav-dot { position: absolute; top: 4px; left: 4px; width: 10px; height: 10px; background: #DC2626; border-radius: 50%; border: 2px solid var(--primary-color); }

/* ====== قیمت: زیر باکس، باکس هم‌اندازه می‌ماند ====== */
.price-helper { display: block; width: 100%; min-height: 22px; margin-top: 6px; font-size: 0.88rem; color: #8A6A12; font-weight: 600; line-height: 1.7; }
.field-help { margin: -4px 0 10px; font-size: 0.82rem; color: var(--text-muted); }
.contact-note { background: #F1F5F9; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; font-size: 0.9rem; }

/* ====== کارت سبک (یک عکس کوچک) ====== */
.card-media { height: 210px; background: #E2E8F0; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-noimg { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--text-muted); }
.card-noimg small { font-size: 0.78rem; }
.card-photos { position: absolute; bottom: 8px; left: 8px; z-index: 6; background: rgba(15, 23, 42, 0.75); color: #fff; border-radius: 12px; padding: 1px 9px; font-size: 0.74rem; }


/* ====== بارگذاری بیشتر ====== */
.feed-status { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 0 50px; }
.feed-status[hidden] { display: none; }
.spinner { display: none; width: 22px; height: 22px; border: 3px solid #CBD5E1; border-top-color: var(--gold-solid); border-radius: 50%; animation: spin 0.8s linear infinite; }
.feed-status.is-loading .spinner { display: inline-block; }
.feed-status.is-loading .btn-outline { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ====== تماس ====== */
.contact-panel { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; animation: fadeDown 0.25s ease; }
.contact-panel[hidden] { display: none; }
.contact-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; padding: 11px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--border); color: var(--primary-color); }
.contact-btn span { color: var(--text-muted); font-size: 0.9rem; }
.contact-btn:hover { border-color: var(--gold-solid); }
.contact-telegram { border-right: 4px solid #229ED9; } .contact-eitaa { border-right: 4px solid #F58220; }
.contact-whatsapp { border-right: 4px solid #25D366; } .contact-phone { border-right: 4px solid var(--primary-color); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.detail-info .btn-block, .detail-info .contact-panel { margin-top: 10px; }
.badge-featured { background: var(--gold-gradient); color: var(--primary-color); }
.owner-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--primary-color); }
.owner-link:hover strong { text-decoration: underline; }
.owner-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.admin-link { margin-top: 10px; display: inline-block; }

/* ====== نقشه ====== */
.map-box { width: 100%; height: 340px; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; z-index: 0; }
.map-picker { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.map-title { font-weight: 700; color: var(--primary-color); margin-bottom: 4px; }
.map-status { margin-bottom: 8px; }
.map-tools { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.map-links { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.detail-map-wrap { margin-top: 28px; }

/* ====== نظرات ====== */
.comments { margin-top: 34px; padding-top: 10px; border-top: 1px solid #EEF2F6; }
.comments-count { color: var(--text-muted); font-size: 1rem; }
.comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 1rem; background: #F8FAFC; resize: vertical; outline: none; }
.comment-form textarea:focus { border-color: var(--gold-solid); }
.comment-form-row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 8px; }
.comment-login { background: #F1F5F9; padding: 12px 16px; border-radius: 10px; }
.comment-list { margin: 16px 0; display: flex; flex-direction: column; gap: 14px; }
.comment { display: flex; gap: 10px; }
.comment.is-reply { margin-top: 10px; }
.c-avatar { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #CBD5E1; color: var(--primary-color); font-weight: 800; }
.c-avatar.is-agent { background: var(--primary-color); color: var(--gold-solid); }
.c-body { flex: 1; min-width: 0; }
.c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-text { white-space: pre-wrap; word-break: break-word; margin: 2px 0; line-height: 1.8; }
.c-actions { display: flex; gap: 14px; }
.c-actions .link-btn { font-size: 0.82rem; }
.link-btn.danger:hover { color: #DC2626; }
.c-replies { margin-right: 48px; border-right: 2px solid #EEF2F6; padding-right: 12px; }
.badge-owner { background: rgba(212, 175, 55, 0.25); color: #7A5B0D; }
.comment-empty { text-align: center; padding: 16px 0; }

/* ====== فوتر و شبکه‌های اجتماعی ====== */
.site-footer { text-align: right; padding: 24px 0 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-about { max-width: 520px; line-height: 1.9; }
.footer-about b { color: var(--gold-solid); font-size: 1.1rem; }
.footer-about a { color: #E2E8F0; }
.footer-social > span { display: block; margin-bottom: 8px; color: #CBD5E1; }
.footer-copy { text-align: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.social-link { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; text-decoration: none; transition: transform 0.2s; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.social-link:hover { transform: translateY(-3px) scale(1.06); }
.social-link svg { width: 22px; height: 22px; fill: #fff; }
.social-letter { font-weight: 800; font-size: 0.95rem; }

/* ====== صفحه‌ی مشاور (شبیه پیج) ====== */
.agent-page { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08); margin: 14px 0 26px; }
.agent-cover { height: 190px; background: linear-gradient(135deg, var(--primary-color), #334155 60%, var(--gold-solid)); background-size: cover; background-position: center; }
.agent-head { display: flex; gap: 20px; align-items: flex-start; padding: 0 24px 22px; flex-wrap: wrap; }
.agent-avatar { width: 112px; height: 112px; flex-shrink: 0; margin-top: -56px; border-radius: 50%; border: 5px solid #fff; background: var(--primary-color); color: var(--gold-solid); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 800; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.agent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-info { flex: 1; min-width: 220px; padding-top: 14px; }
.agent-info h1 { font-size: 1.5rem; color: var(--primary-color); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.agent-bio { margin: 8px 0; line-height: 1.9; white-space: pre-wrap; }
.agent-stats { display: flex; gap: 22px; margin: 8px 0; color: var(--text-muted); }
.agent-stats b { color: var(--primary-color); }
.agent-actions { padding-top: 14px; }

/* ====== بسته‌ها و رنک‌ها ====== */
.free-plan { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), #fff); border: 1px dashed var(--gold-solid); border-radius: 14px; padding: 16px 20px; margin-bottom: 22px; }
.free-plan.is-claimed { background: #fff; opacity: 0.8; }
.tier-icon { font-size: 2.2rem; }
.tier-bronze { border-top: 4px solid #CD7F32; } .tier-silver { border-top: 4px solid #A8A9AD; }
.tier-gold { border-top: 4px solid #D4AF37; } .tier-platinum { border-top: 4px solid #7DD3FC; } .tier-diamond { border-top: 4px solid #A78BFA; }
.packages-grid { max-width: none; }

/* ====== اعلان‌ها ====== */
.notice-card { background: #fff; border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; border-right: 4px solid var(--border); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.notice-card.is-new { border-right-color: var(--gold-solid); background: #FFFDF5; }
.notice-card.kind-admin_warning, .notice-card.kind-admin_deleted { border-right-color: #DC2626; }
.notice-card p { margin: 6px 0 8px; line-height: 1.8; }

.c-avatar { overflow: hidden; }
.c-avatar.has-img { background: #fff; }
.c-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ====== پروفایل من ====== */
.account-wrap { max-width: 720px; margin: 0 auto; }
.account-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05); }
.account-card h3 { font-size: 1.05rem; color: var(--primary-color); margin: 0 0 12px; }
.account-photo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.account-photo-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.account-photo-actions form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.profile-avatar { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--primary-color); color: var(--gold-solid); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 800; border: 4px solid #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.2); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.file-btn { cursor: pointer; }
.privacy-note { margin: 12px 0 0; line-height: 1.9; }
.panel-head-row { display: flex; align-items: center; gap: 14px; }
.panel-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--primary-color); color: var(--gold-solid); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; flex: 0 0 auto; }
.panel-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) { .profile-avatar { width: 92px; height: 92px; font-size: 2.2rem; } }
