/* ====== دکمه‌ی شناور «لیست بررسی» ====== */
.fab {
    position: fixed;
    top: 82px;
    left: 16px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: var(--gold-solid);
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 30px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
    animation: fabIn 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.fab:hover { transform: translateY(-2px); }
.fab-badge {
    min-width: 24px; height: 24px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #DC2626; color: #fff; border-radius: 12px; font-size: 0.8rem;
}
@keyframes fabIn { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ====== دکمه‌ی 🔖 روی آگهی‌ها ====== */
.bookmark-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 12;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    font-size: 1.05rem;
    cursor: pointer;
    filter: grayscale(1);
    transition: 0.25s;
}
.bookmark-btn:hover { transform: scale(1.1); filter: none; }
.bookmark-btn.is-saved { background: var(--gold-solid); filter: none; }
.save-btn.is-saved { background: rgba(212, 175, 55, 0.15); border-color: var(--gold-solid); }
.detail-info .save-btn { margin-top: 10px; }

/* ====== باکس جستجو: نمونه‌ها ====== */
.search-extras { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.example-chip {
    background: #fff; border: 1px solid var(--border); border-radius: 20px;
    padding: 5px 13px; font-family: inherit; font-size: 0.82rem; cursor: pointer; color: var(--primary-color);
    transition: 0.2s;
}
.example-chip:hover { border-color: var(--gold-solid); background: rgba(212, 175, 55, 0.12); }
.plain-toggle { font-size: 0.82rem; color: var(--text-muted); cursor: pointer; margin-right: 6px; }

/* ====== صفحه‌ی بازشونده‌ی دستیار (از بالا پایین می‌آید) ====== */
.sheet { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.45s; }
.sheet.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
body.sheet-open { overflow: hidden; }

.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); opacity: 0; transition: opacity 0.35s; }
.sheet.open .sheet-backdrop { opacity: 1; }

.sheet-panel {
    position: absolute;
    top: 0; right: 0; left: 0;
    max-width: 860px;
    margin: 0 auto;
    height: 90vh;
    height: 90dvh;
    display: flex;
    flex-direction: column;
    background: #F4F9FE;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(-105%);
    transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.sheet.open .sheet-panel { transform: none; }

.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--primary-color); border-radius: 0; }
.sheet-tabs { display: flex; gap: 6px; flex: 1; overflow-x: auto; }
.sheet-tab {
    background: transparent; color: #CBD5E1; border: 1px solid transparent; border-radius: 20px;
    padding: 7px 14px; font-family: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.sheet-tab.active { background: rgba(212, 175, 55, 0.18); color: var(--gold-solid); border-color: rgba(212, 175, 55, 0.5); }
.tab-count { background: #DC2626; color: #fff; border-radius: 10px; padding: 0 7px; font-size: 0.75rem; }
.sheet-close { background: none; border: none; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 6px; }

.sheet-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.sheet-body[hidden] { display: none; }

.sheet-input { display: flex; gap: 8px; padding: 12px 14px; background: #fff; border-top: 1px solid #DDE6EE; border-radius: 0 0 22px 22px; }
.sheet-input[hidden] { display: none; }
.sheet-input input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 24px; font-family: inherit; font-size: 1rem; background: #F8FAFC; outline: none; }
.sheet-input input:focus { border-color: var(--gold-solid); }
.sheet-input .btn-primary { padding: 9px 20px; border-radius: 24px; }

/* ---------- پیام‌ها ---------- */
.msg { max-width: 100%; line-height: 1.9; }
.msg-user { align-self: flex-start; background: var(--primary-color); color: #fff; padding: 10px 16px; border-radius: 18px 18px 4px 18px; max-width: 88%; }
.msg-ai { align-self: stretch; background: #fff; padding: 14px 16px; border-radius: 18px 18px 18px 4px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07); }
.msg-error { background: var(--error-bg); color: var(--error-text); }
.msg-text { white-space: pre-wrap; }

.msg.typing { display: flex; gap: 6px; width: 70px; }
.typing span { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-solid); animation: bounce 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }

.understood { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.u-chip { background: #EEF4FA; border-radius: 6px; padding: 1px 9px; font-size: 0.78rem; font-weight: 600; }
.example-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.verdict { margin: 10px 0; padding: 10px 14px; border-radius: 10px; border-right: 5px solid; }
.verdict-excellent { background: #DCFCE7; border-color: #16A34A; color: #14532D; }
.verdict-good { background: #E0F2FE; border-color: #0284C7; color: #0C4A6E; }
.verdict-fair { background: #FEF3C7; border-color: #D97706; color: #78350F; }
.verdict-poor { background: #FEE2E2; border-color: #DC2626; color: #7F1D1D; }
.advice { margin-top: 10px; background: rgba(212, 175, 55, 0.12); padding: 9px 12px; border-radius: 8px; }

/* ---------- ردیف نتیجه (عکس چپ، متن راست) ---------- */
.result-row { display: flex; flex-direction: row-reverse; gap: 12px; padding: 12px 0; border-top: 1px solid #E3EBF2; }
.result-row.is-best { background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), transparent); border-radius: 10px; padding: 12px 10px; border-top-color: transparent; }
.result-thumb { width: 96px; height: 96px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #E2E8F0; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; text-decoration: none; }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-text { flex: 1; min-width: 0; }
.result-head { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; flex-wrap: wrap; }
.best-tag { background: var(--primary-color); color: var(--gold-solid); border-radius: 12px; padding: 1px 10px; font-size: 0.78rem; font-weight: 700; }
.rank-tag { color: var(--text-muted); font-size: 0.8rem; font-weight: 700; }
.score-tag { background: #E2E8F0; border-radius: 12px; padding: 1px 9px; font-size: 0.75rem; font-weight: 700; }
.result-title { display: block; font-weight: 700; color: var(--primary-color); text-decoration: none; line-height: 1.6; }
.mini-prices { margin: 4px 0; font-size: 0.88rem; color: #000; }
.mini-prices b { color: #000; }
.pros, .cons { list-style: none; font-size: 0.82rem; margin: 2px 0; }
.pros li::before { content: '✓ '; color: #15803D; font-weight: 700; }
.cons li::before { content: '✗ '; color: #B91C1C; font-weight: 700; }
.result-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.compare { margin-top: 12px; border: 1px solid #DDE6EE; border-radius: 10px; overflow: hidden; }
.compare summary { padding: 10px 14px; cursor: pointer; font-weight: 700; background: #F1F6FB; }
.table-scroll { overflow-x: auto; }
.compare table { border-collapse: collapse; width: 100%; font-size: 0.82rem; }
.compare th, .compare td { border: 1px solid #E3EBF2; padding: 7px 10px; text-align: right; min-width: 110px; }
.compare thead th { background: var(--primary-color); color: var(--gold-solid); }
.compare tbody th { background: #F8FAFC; white-space: nowrap; }
.compare td { color: #000; }

.checklist-note { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 0.95rem; background: #fff; }
.center { text-align: center; }
.center-btn { align-self: center; }
.sheet-body .empty-state { grid-column: auto; }

/* ====== پیام کوتاه ====== */
.toast {
    position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 30px);
    background: var(--primary-color); color: #fff; padding: 10px 22px; border-radius: 24px;
    z-index: 300; opacity: 0; pointer-events: none; transition: 0.3s; font-size: 0.92rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ====== وضعیت آگهی‌ها / تاریخچه ====== */
.status-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.status-tabs a { text-decoration: none; padding: 6px 16px; background: #fff; border: 1px solid var(--border); border-radius: 20px; font-size: 0.88rem; font-weight: 600; color: var(--primary-color); }
.status-tabs a.active { background: var(--primary-color); color: var(--gold-solid); border-color: var(--primary-color); }
.status-tabs b { font-weight: 800; margin-right: 4px; }
.head-actions { display: flex; gap: 8px; align-items: center; }

.status-pending_payment { background: #FEF3C7; color: #92400E; }
.status-in_review { background: #E0F2FE; color: #075985; }
.status-finished { background: #E2E8F0; color: #334155; }
.status-rejected, .status-deleted { background: var(--error-bg); color: var(--error-text); }

.timeline { list-style: none; margin-top: 20px; border-right: 3px solid rgba(212, 175, 55, 0.5); padding-right: 22px; }
.timeline-item { position: relative; display: flex; gap: 12px; background: #fff; padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.timeline-item::before { content: ''; position: absolute; right: -31px; top: 20px; width: 13px; height: 13px; background: var(--gold-solid); border: 3px solid #E6F3FD; border-radius: 50%; }
.tl-icon { font-size: 1.5rem; }
.tl-body { flex: 1; min-width: 0; }
.tl-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tl-body a { color: var(--primary-color); font-weight: 600; }
.kind-listing_deleted .tl-body > span, .kind-listing_finished .tl-body > span { color: var(--text-muted); }

/* ====== چت: لیست‌ها، مراحل کار، اعلان، تاریخچه ====== */
.msg-list { margin: 6px 22px 6px 0; line-height: 1.9; }
.msg + .msg { margin-top: 0; }
.msg-text + .msg-text { margin-top: 6px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.steps span { background: #F1F5F9; color: var(--text-muted); border-radius: 12px; padding: 1px 10px; font-size: 0.74rem; }
.notice { margin-top: 8px; font-size: 0.82rem; color: var(--text-muted); }
.dev-error { margin-top: 4px; font-size: 0.78rem; direction: ltr; text-align: left; background: #FEF9C3; color: #854D0E; padding: 6px 10px; border-radius: 8px; word-break: break-word; }

.typing-hint { display: none; margin-right: 10px; color: var(--text-muted); font-size: 0.8rem; white-space: nowrap; }
.msg.typing.slow { width: auto; flex-wrap: wrap; align-items: center; }
.msg.typing.slow .typing-hint { display: inline; }

.sheet-new { background: rgba(212, 175, 55, 0.18); color: var(--gold-solid); border: 1px solid rgba(212, 175, 55, 0.5); border-radius: 20px; padding: 6px 14px; font-family: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sheet-new:hover { background: rgba(212, 175, 55, 0.3); }

.session-row { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06); }
.session-row.is-current { border: 1px solid var(--gold-solid); }
.session-open { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: right; background: none; border: none; cursor: pointer; font-family: inherit; }
.session-open b { color: var(--primary-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ====== تحلیل هوشمند (جدول، نمودار، سؤال‌های انتخابی) ====== */
.analysis-hero { display: flex; flex-direction: column; gap: 2px; background: var(--primary-color); color: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; border: 1px solid rgba(212, 175, 55, 0.6); }
.analysis-hero b { color: var(--gold-solid); font-size: 1.05rem; }
.analysis-hero .muted { color: #CBD5E1; }
.analysis-loading, .answer-card.loading { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 30px 10px; color: var(--text-muted); }
.spinner { width: 18px; height: 18px; border: 3px solid #E2E8F0; border-top-color: var(--gold-solid); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.assumptions { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px; padding: 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.as-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.as-label { font-size: 0.85rem; min-width: 150px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.as-chip, .q-chip { font-family: inherit; cursor: pointer; border: 1px solid var(--border); background: #fff; color: var(--primary-color); border-radius: 20px; transition: 0.2s; }
.as-chip { padding: 4px 12px; font-size: 0.85rem; }
.as-chip.active { background: var(--primary-color); color: var(--gold-solid); border-color: var(--primary-color); font-weight: 700; }
.q-chip { padding: 9px 15px; font-size: 0.9rem; text-align: right; line-height: 1.6; }
.q-chip:hover { border-color: var(--gold-solid); background: rgba(212, 175, 55, 0.12); transform: translateY(-1px); }
.q-chip.target { background: #F8FAFC; }

.an-section, .q-panel, .answer-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05); }
.an-section > h3, .q-panel > h3, .answer-card > h3 { font-size: 1.05rem; color: var(--primary-color); margin: 0 0 10px; }
.answer-card { border-color: rgba(212, 175, 55, 0.7); animation: bubble-in 0.3s ease-out; }
.answer-card.error { color: var(--error-text); background: var(--error-bg); }
.target-picker { margin-top: 12px; padding: 12px; border-radius: 12px; background: #F1F5F9; }
.target-picker p { margin: 0 0 8px; }

.blk { margin: 14px 0; }
.blk-title { font-size: 0.95rem; margin: 0 0 8px; color: var(--primary-color); }
.blk-note { font-size: 0.78rem; color: var(--text-muted); margin: 6px 0 0; line-height: 1.8; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 480px; }
.cmp-table th, .cmp-table td { padding: 8px 10px; border-bottom: 1px solid #EEF2F6; text-align: right; vertical-align: top; }
.cmp-table thead th { background: var(--primary-color); color: #fff; white-space: nowrap; font-weight: 700; }
.cmp-table tbody th { background: #F8FAFC; min-width: 110px; }
.cmp-table tr.is-best td, .cmp-table tr.is-best th { background: #FEF9C3; }
.cmp-table tbody tr:last-child td, .cmp-table tbody tr:last-child th { border-bottom: none; }

.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(70px, 28%) 1fr auto; gap: 8px; align-items: center; font-size: 0.83rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: #EEF2F6; border-radius: 8px; height: 16px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: #94A3B8; border-radius: 8px; transition: width 0.6s ease; }
.bar-row.is-best .bar-fill { background: var(--gold-solid); }
.bar-fill.neg { background: #16A34A; }
.bar-val { white-space: nowrap; font-size: 0.8rem; }
.pie-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pie { width: 130px; height: 130px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2); }
.pie-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; }
.pie-legend li { display: flex; align-items: center; gap: 8px; }
.pie-legend i { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }

.blk-text { background: #F8FAFC; border-radius: 10px; padding: 12px; border-inline-start: 4px solid var(--gold-solid); }
.blk-text p { margin: 0 0 6px; line-height: 1.9; font-size: 0.9rem; }
.blk-text.tone-warn { background: #FEF3C7; }
.verdict-card { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); border: 1px solid var(--gold-solid); border-radius: 12px; padding: 14px; margin: 14px 0 4px; }
.verdict-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.verdict-name { font-size: 1.1rem; font-weight: 800; margin: 8px 0; color: var(--primary-color); }
.check-list { margin: 0; padding-inline-start: 20px; line-height: 2; font-size: 0.9rem; }
.blk-empty { text-align: center; padding: 14px; background: #F8FAFC; border-radius: 12px; border: 1px dashed var(--border); }
.blk-empty .chips { justify-content: center; margin: 10px 0; }
.empty-msg { font-weight: 700; margin: 0 0 6px; }
.disclaimer { font-size: 0.76rem; color: var(--text-muted); line-height: 1.9; text-align: center; padding: 6px 4px 20px; }

@media (max-width: 768px) {
    .as-label { min-width: 100%; }
    .bar-row { grid-template-columns: 1fr auto; }
    .bar-label { grid-column: 1 / -1; }
    .bar-track { grid-column: 1; }
    .q-chip { width: 100%; }
    .chips .q-chip.target { width: auto; }
    .pie { width: 110px; height: 110px; }
}

/* ====== دستیار گفتگویی: حباب‌ها، تایپ کلمه‌به‌کلمه، باز شدن تدریجی جدول و نمودار ====== */
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px;
    background: var(--primary-color); color: #fff; border: 1px solid rgba(212, 175, 55, 0.6); }
.chat-head .cavatar { width: 38px; height: 38px; background: #fff; }
.chat-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-head-text b { color: var(--gold-solid); }
.chat-head .muted { color: #CBD5E1; }
.chat-thread { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.cmsg { display: flex; gap: 8px; align-items: flex-start; animation: bubble-in 0.3s ease-out; }
.cmsg.user { justify-content: flex-start; }
.cmsg.bot { justify-content: flex-start; }
.cmsg.user .cbubble { background: var(--primary-color); color: #fff; border-radius: 16px 4px 16px 16px; padding: 10px 14px; max-width: 85%; line-height: 1.9; font-size: 0.92rem; }
.cavatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; object-fit: contain; padding: 4px; background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.7); display: flex; align-items: center; justify-content: center; }
.cbody { flex: 1; min-width: 0; max-width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 4px 16px 16px 16px;
    padding: 12px 14px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05); }
.say { margin: 0 0 8px; line-height: 2; font-size: 0.93rem; color: var(--text-main, #0F172A); }
.say:last-child { margin-bottom: 0; }
.say.err { color: var(--error-text); }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-inline-start: 2px; vertical-align: text-bottom; background: var(--gold-solid); animation: caret-blink 0.8s steps(2) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.typing-dots { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing-dots i { width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; animation: dots 1s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-5px); opacity: 1; } }

/* باز شدن تدریجی: هر چیزی با .rv شروع می‌شود و با .rv-in ظاهر می‌شود */
.rv { opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease; }
.rv.rv-in { opacity: 1; transform: none; }
.cbody .blk { margin: 10px 0; }
.cbody .verdict-card { margin: 10px 0 4px; }
.cmp-table tr.rv.rv-in.is-best td, .cmp-table tr.rv.rv-in.is-best th { background: #FEF9C3; }
.bar-fill { transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.procon { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: #F8FAFC; }
.procon-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.pros, .cons { margin: 4px 0; padding: 0; list-style: none; font-size: 0.86rem; line-height: 1.9; }
.pros li::before { content: '✔ '; color: #16A34A; }
.cons li::before { content: '✖ '; color: #DC2626; }
.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.check-list li { padding: 8px 12px; background: #F8FAFC; border-radius: 10px; font-size: 0.88rem; line-height: 1.9; }
.check-list li::before { content: '☑ '; color: var(--gold-solid); }
.score-tag { background: var(--primary-color); color: var(--gold-solid); border-radius: 12px; padding: 2px 10px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }

/* نوار پیشنهاد سؤال (پایین چت، چسبیده) */
.chat-suggest { position: sticky; bottom: 0; z-index: 5; margin: 10px -4px -4px; padding: 12px 6px 8px;
    background: linear-gradient(to top, #F1F5F9 78%, rgba(241, 245, 249, 0)); }
.sg-title { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.sg-chips { display: flex; flex-direction: column; gap: 8px; }
.sg-chips .q-chip { width: 100%; background: #fff; border-color: rgba(212, 175, 55, 0.8); }
.sg-in { opacity: 0; animation: sg-in 0.4s ease forwards; }
@keyframes sg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chat-skip { position: sticky; bottom: 56px; z-index: 6; display: block; margin: 0 auto; padding: 5px 14px; border-radius: 20px;
    border: 1px solid var(--border); background: #fff; color: var(--text-muted); font-family: inherit; font-size: 0.8rem; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15); }
.chat-skip[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
    .rv, .sg-in, .cmsg { transition: none; animation: none; opacity: 1; transform: none; }
    .bar-fill { transition: none; }
}
@media (max-width: 640px) { .cbody { padding: 10px 11px; } .cavatar { width: 30px; height: 30px; } }
/* محتوای چت نباید در ستون فلکس فشرده شود؛ کل کادر اسکرول می‌خورد */
#sheet-analysis > * { flex: 0 0 auto; }
#sheet-analysis { gap: 0; }
.chat { min-height: 0; }

/* ===== ابزارها، اقدام‌ها، اشتراک، پیشنهاد مالک ===== */
.tool-grid { display: grid; gap: 10px; margin-top: 10px; }
.tool-card { display: flex; flex-direction: column; gap: 4px; text-align: right; font-family: inherit; cursor: pointer; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; min-height: 44px; color: var(--primary-color); transition: 0.2s; }
.tool-card:hover { border-color: var(--gold-solid); transform: translateY(-1px); }
.tool-icon { font-size: 1.6rem; }
.wiz-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.wiz-q { font-weight: 700; font-size: 1.05rem; margin: 8px 0 12px; color: var(--primary-color); }
.slider-wrap { display: flex; flex-direction: column; gap: 10px; }
.slider-val { font-size: 1.3rem; font-weight: 800; color: var(--primary-color); text-align: center; }
.slider { width: 100%; height: 44px; accent-color: var(--gold-solid); font-size: 16px; }
.slider-ends { display: flex; justify-content: space-between; }
.tool-result { display: flex; flex-direction: column; gap: 12px; }
.sheet .btn-sm, .sheet .q-chip, .sheet .tool-card { min-height: 44px; }
.badge-featured { background: rgba(212, 175, 55, 0.2); color: #7A5C00; border-radius: 10px; padding: 1px 8px; font-size: 0.75rem; margin-inline-start: 6px; white-space: nowrap; }
.badge-promo { background: #E0F2FE; color: #075985; border-radius: 10px; padding: 2px 8px; font-size: 0.75rem; }
.contact-holder { display: flex; flex-direction: column; gap: 6px; }
.contact-holder .contact-btn { display: flex; justify-content: space-between; gap: 10px; min-height: 44px; align-items: center; padding: 8px 12px;
    border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--primary-color); text-decoration: none; }
.share-card { background: #F8FAFC; border: 1px dashed var(--gold-solid); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.share-url { word-break: break-all; font-size: 0.8rem; color: var(--text-muted); }
.promo-card { position: relative; background: #fff; border: 1px solid #BAE6FD; border-radius: 12px; padding: 12px 12px 12px 40px; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.promo-close { position: absolute; left: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); }
.hero-assist { margin-top: 12px; min-height: 48px; }
.analyze-btn { min-height: 44px; }
.smart-toggle .btn-outline { min-height: 44px; }
