/* 🆕 (Update 58) «مشاورِ من» — پروفایلِ مشاور، بنرِ تبریک، مودالِ معرفی، صفحه‌ی مشاورِ من، بررسیِ برنامه.
   توکن‌ها با پیشوندِ --cc-* (هم‌شکل با ماژول‌هایِ دیگر). RTL، واکنش‌گرا، دسترس‌پذیر (فوکوسِ قابلِ‌دید، کاهشِ حرکت). */
:root {
    --cc-accent: #2563eb; --cc-accent-2: #4f46e5; --cc-accent-bg: #eef2ff; --cc-accent-text: #1e40af;
    --cc-gold: #b45309; --cc-gold-bg: #fef3c7; --cc-gold-border: #fcd34d;
    --cc-ok: #15803d; --cc-ok-bg: #dcfce7; --cc-warn: #b45309; --cc-warn-bg: #fff7ed; --cc-danger: #b91c1c; --cc-danger-bg: #fef2f2;
    --cc-surface: #ffffff; --cc-bg: #f6f7fb; --cc-border: #e5e7eb; --cc-border-strong: #d1d5db;
    --cc-text: #111827; --cc-text-2: #4b5563; --cc-text-3: #6b7280;
    --cc-radius: 14px; --cc-radius-sm: 10px; --cc-shadow: 0 8px 28px rgba(17, 24, 39, .10);
}

.cc { direction: rtl; font-family: inherit; color: var(--cc-text); }
.cc *:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 2px; border-radius: 6px; }
.cc-page { max-width: 980px; margin: 0 auto; padding: 16px; }
.cc-card { background: var(--cc-surface); border: 1px solid var(--cc-border); border-radius: var(--cc-radius); padding: 18px; margin-bottom: 16px; }
.cc-card h2, .cc-card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.cc-muted { color: var(--cc-text-3); font-size: 12.5px; line-height: 1.9; }
.cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cc-field { display: flex; flex-direction: column; gap: 6px; }
.cc-field label { font-size: 12.5px; font-weight: 700; color: var(--cc-text-2); }
.cc-field input, .cc-field select, .cc-field textarea {
    border: 1px solid var(--cc-border-strong); border-radius: var(--cc-radius-sm); padding: 9px 11px; font: inherit; font-size: 13px; background: #fff; width: 100%; box-sizing: border-box;
}
.cc-field textarea { min-height: 96px; resize: vertical; line-height: 1.9; }
.cc-field small { color: var(--cc-text-3); font-size: 11.5px; }
.cc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--cc-border-strong); background: #fff; color: var(--cc-text);
    border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.cc-btn:hover { background: var(--cc-bg); }
.cc-btn.primary { background: var(--cc-accent); border-color: var(--cc-accent); color: #fff; }
.cc-btn.primary:hover { background: #1d4ed8; }
.cc-btn.success { background: var(--cc-ok); border-color: var(--cc-ok); color: #fff; }
.cc-btn.danger { color: var(--cc-danger); border-color: #fecaca; }
.cc-btn.sm { padding: 5px 10px; font-size: 11.5px; }
.cc-btn[disabled] { opacity: .55; cursor: not-allowed; }
.cc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-spacer { flex: 1; }
.cc-alert { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--cc-radius-sm); font-size: 12.5px; line-height: 1.9; margin-bottom: 12px; }
.cc-alert.info { background: var(--cc-accent-bg); color: var(--cc-accent-text); }
.cc-alert.ok { background: var(--cc-ok-bg); color: var(--cc-ok); }
.cc-alert.warn { background: var(--cc-warn-bg); color: var(--cc-warn); }
.cc-alert.error { background: var(--cc-danger-bg); color: var(--cc-danger); }
.cc-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--cc-accent-bg); color: var(--cc-accent-text); white-space: nowrap; }
.cc-badge.gold { background: var(--cc-gold-bg); color: var(--cc-gold); border: 1px solid var(--cc-gold-border); }
.cc-badge.ok { background: var(--cc-ok-bg); color: var(--cc-ok); }
.cc-badge.warn { background: var(--cc-warn-bg); color: var(--cc-warn); }
.cc-badge.new { background: #fee2e2; color: #b91c1c; }
.cc-skel { height: 14px; border-radius: 8px; background: linear-gradient(90deg, #eef0f4 25%, #f6f7fa 50%, #eef0f4 75%); background-size: 200% 100%; animation: cc-sh 1.2s infinite; margin: 8px 0; }
@keyframes cc-sh { to { background-position: -200% 0; } }

/* آواتار و هدرِ پروفایل */
.cc-avatar { position: relative; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, var(--cc-accent), var(--cc-accent-2));
    color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; overflow: hidden; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.cc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cc-avatar.lg { width: 96px; height: 96px; font-size: 34px; }
.cc-hero { background: linear-gradient(120deg, var(--cc-accent) 0%, var(--cc-accent-2) 100%); color: #fff; border-radius: var(--cc-radius); padding: 22px; display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.cc-hero h1 { margin: 0; font-size: 19px; font-weight: 800; }
.cc-hero p { margin: 4px 0 0; opacity: .9; font-size: 12.5px; line-height: 1.8; }
.cc-hero .cc-badge { background: rgba(255,255,255,.18); color: #fff; }
.cc-hero .cc-badge.gold { background: #fde68a; color: #78350f; border-color: #fcd34d; }
.cc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cc-fact { background: var(--cc-gold-bg); border: 1px solid var(--cc-gold-border); border-radius: var(--cc-radius-sm); padding: 10px; text-align: center; }
.cc-fact b { display: block; font-size: 15px; color: #78350f; }
.cc-fact span { font-size: 11.5px; color: var(--cc-gold); }
.cc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.cc-gallery figure { margin: 0; position: relative; border-radius: var(--cc-radius-sm); overflow: hidden; border: 1px solid var(--cc-border); aspect-ratio: 1 / 1; background: var(--cc-bg); }
.cc-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-gallery figcaption { position: absolute; inset: auto 0 0 0; display: flex; gap: 4px; justify-content: center; padding: 4px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.cc-text { white-space: pre-line; line-height: 2; font-size: 13px; color: var(--cc-text-2); }

/* رسانه و پیام */
.cc-media-list { display: flex; flex-direction: column; gap: 10px; }
.cc-media { border: 1px solid var(--cc-border); border-radius: var(--cc-radius-sm); padding: 12px; }
.cc-media-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.cc-media audio, .cc-media video { width: 100%; border-radius: 10px; background: #000; }
.cc-media audio { background: transparent; }
.cc-media video { max-height: 420px; }
.cc-msg { border-inline-start: 4px solid var(--cc-border-strong); background: var(--cc-bg); border-radius: var(--cc-radius-sm); padding: 10px 12px; margin-bottom: 8px; }
.cc-msg.private { border-inline-start-color: var(--cc-accent); background: var(--cc-accent-bg); }
.cc-msg-meta { font-size: 11px; color: var(--cc-text-3); margin-top: 4px; display: flex; gap: 8px; align-items: center; }

/* بنرِ تبریک در usravailability */
.cc-congrats { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--cc-radius);
    background: linear-gradient(120deg, #ecfdf5 0%, #eef2ff 100%); border: 1px solid #c7d2fe; box-shadow: 0 2px 10px rgba(79,70,229,.08); }
.cc-congrats-body { flex: 1; min-width: 0; }
.cc-congrats-title { font-weight: 800; font-size: 14px; color: #1e1b4b; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-congrats-text { font-size: 12.5px; color: #374151; line-height: 1.9; margin-top: 4px; }
.cc-congrats-close { position: absolute; top: 8px; left: 8px; border: 0; background: transparent; color: var(--cc-text-3); cursor: pointer; padding: 4px; border-radius: 8px; }
.cc-congrats-close:hover { background: rgba(0,0,0,.05); }
.cc-plan-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--cc-accent-text); background: var(--cc-accent-bg); border-radius: 10px; padding: 7px 10px; margin-bottom: 10px; }
.cc-day-pending { display: inline-block; margin-top: 3px; font-size: 9px; font-weight: 800; color: var(--cc-warn); background: var(--cc-warn-bg); border-radius: 6px; padding: 1px 5px; }

/* مودال */
.cc-modal-backdrop { position: fixed; inset: 0; background: rgba(17,24,39,.55); display: flex; align-items: center; justify-content: center; z-index: 10050; padding: 16px; animation: cc-fade .18s ease-out; }
.cc-modal { background: #fff; border-radius: 18px; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; box-shadow: var(--cc-shadow); direction: rtl; animation: cc-pop .22s ease-out; }
.cc-modal-head { padding: 18px 18px 0; text-align: center; }
.cc-modal-body { padding: 14px 18px; }
.cc-modal-foot { padding: 0 18px 18px; display: flex; gap: 8px; }
.cc-modal-foot .cc-btn { flex: 1; }
@keyframes cc-fade { from { opacity: 0; } }
@keyframes cc-pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }

/* دکمه‌هایِ «به‌زودی» در usravailability */
.sh-quick-action.cc-soon { cursor: default; opacity: .78; }
.sh-quick-action.cc-soon:hover { background: var(--tm-c-surface, #fff); border-color: var(--tm-c-border, #e5e7eb); }
.cc-soon-tag { margin-inline-start: auto; font-size: 10.5px; font-weight: 800; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 999px; padding: 2px 9px; }

/* فهرست/جدول */
.cc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cc-table th, .cc-table td { padding: 9px 8px; border-bottom: 1px solid var(--cc-border); text-align: right; vertical-align: top; }
.cc-table th { color: var(--cc-text-3); font-weight: 700; font-size: 11.5px; background: var(--cc-bg); }
.cc-table-wrap { overflow-x: auto; }
.cc-tabs { display: flex; gap: 6px; background: var(--cc-bg); border-radius: 12px; padding: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.cc-tabs button { flex: 1; min-width: 110px; border: 0; background: transparent; padding: 9px 10px; border-radius: 9px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--cc-text-2); cursor: pointer; }
.cc-tabs button[aria-selected="true"] { background: #fff; color: var(--cc-accent-text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cc-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip { border: 1px solid var(--cc-border-strong); background: #fff; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12px; cursor: pointer; }
.cc-chip.on { background: var(--cc-accent-bg); border-color: var(--cc-accent); color: var(--cc-accent-text); font-weight: 700; }
.cc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.cc-stat { background: #fff; border: 1px solid var(--cc-border); border-radius: var(--cc-radius-sm); padding: 12px; }
.cc-stat b { display: block; font-size: 20px; }
.cc-stat span { font-size: 11.5px; color: var(--cc-text-3); }
.cc-progress { height: 6px; background: var(--cc-bg); border-radius: 99px; overflow: hidden; }
.cc-progress span { display: block; height: 100%; background: var(--cc-accent); transition: width .2s; }

@media (max-width: 640px) {
    .cc-grid, .cc-facts { grid-template-columns: 1fr; }
    .cc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cc-hero { flex-direction: column; text-align: center; }
    .cc-congrats { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .cc-modal, .cc-modal-backdrop, .cc-skel { animation: none; }
}

/* 🆕 (Update 59) مشاوره‌ی اختصاصی */
.cc-offer { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.cc-offer-price { background: linear-gradient(135deg, var(--cc-accent), var(--cc-accent-2)); color: #fff; border-radius: var(--cc-radius-sm); padding: 12px 16px; min-width: 150px; text-align: center; }
.cc-offer-price b { display: block; font-size: 17px; font-weight: 800; }
.cc-offer-price span { font-size: 11.5px; opacity: .9; }
.cc-wallet-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 8px 10px; background: var(--cc-bg); border-radius: var(--cc-radius-sm); font-size: 12.5px; }
.cc-wallet-row > span:first-child { flex: 1; }
.cc-form { margin-top: 14px; border: 1px solid #c7d2fe; background: #fbfcff; border-radius: var(--cc-radius); padding: 14px; }
.cc-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.cc-day { flex: 0 0 auto; min-width: 58px; border: 1px solid var(--cc-border-strong); background: #fff; border-radius: 12px; padding: 6px 4px; cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; scroll-snap-align: start; }
.cc-day small { font-size: 10.5px; color: var(--cc-text-3); }
.cc-day b { font-size: 15px; }
.cc-day.on { background: var(--cc-accent); border-color: var(--cc-accent); color: #fff; }
.cc-day.on small { color: #e0e7ff; }
.cc-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cc-summary > div { background: #fff; border: 1px solid var(--cc-border); border-radius: 10px; padding: 8px; text-align: center; }
.cc-summary span { display: block; font-size: 11px; color: var(--cc-text-3); }
.cc-summary b { font-size: 13px; }
.cc-kv { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--cc-text-2); margin-top: 6px; }
.cc-x { border: 0; background: transparent; padding: 0 0 0 2px; cursor: pointer; color: inherit; line-height: 1; }
.cc-stars { display: inline-flex; gap: 2px; color: #f59e0b; font-size: 16px; }
.cc-star { border: 0; background: transparent; cursor: pointer; color: #d1d5db; font-size: 18px; padding: 0 1px; }
.cc-star:hover, .cc-star:focus-visible { color: #f59e0b; transform: scale(1.15); }
.cc-req-actions { display: grid; gap: 8px; margin-top: 10px; padding: 10px; background: var(--cc-bg); border-radius: var(--cc-radius-sm); }
@media (max-width: 640px) { .cc-summary { grid-template-columns: 1fr; } }
/* 🆕 (Update 59.2) اطلاعیه‌ی یک‌باره (محوشدنِ نرم در پایانِ ۲۰ ثانیه) */
.cc-once { animation: cc-once-fade 20s ease-in forwards; }
@keyframes cc-once-fade { 0%, 88% { opacity: 1; } 100% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .cc-once { animation: none; } }
.cc-notes { margin-top: 6px; font-size: 12px; color: var(--cc-text-2); }
.cc-notes summary { cursor: pointer; color: var(--cc-accent-text); font-weight: 700; }
.cc-notes ul { margin: 6px 0 0; padding-inline-start: 18px; line-height: 1.9; }

/* 🆕 (Update 61) هفته‌ی آزمایشیِ رایگان */
.trial-card { position: relative; background: linear-gradient(135deg, #ecfeff 0%, #eef2ff 60%, #fdf4ff 100%); border: 1px solid #c7d2fe; border-radius: 18px; padding: 18px; margin-bottom: 16px; box-shadow: 0 4px 18px rgba(79,70,229,.08); }
.trial-card h2 { margin: 6px 0 4px; font-size: 17px; font-weight: 800; color: #1e1b4b; }
.trial-card p { margin: 0 0 8px; font-size: 12.5px; color: #374151; line-height: 1.9; }
.trial-card ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.trial-card li { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #1f2937; }
.trial-card li i { color: var(--cc-accent); font-size: 16px; }
.trial-card small { display: block; margin-top: 6px; font-size: 11px; color: var(--cc-text-3); text-align: center; }
.trial-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #9d174d; background: #fce7f3; border-radius: 999px; padding: 3px 10px; }
.trial-cta { width: 100%; padding: 11px 14px; font-size: 13.5px; }
.trial-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fdf4ff; border: 1px solid #f5d0fe; color: #6b21a8; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; font-size: 12.5px; }
.trial-strip-link { margin-inline-start: auto; font-weight: 800; color: #7e22ce; text-decoration: none; }

/* 🆕 (Update 62) پنجره‌ی تأییدِ بازه‌هایِ آزاد */
.ftc-modal { max-width: 520px; }
.ftc-ic { width: 54px; height: 54px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.ftc-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.ftc-sum > div { background: var(--cc-bg); border-radius: 12px; padding: 10px; text-align: center; }
.ftc-sum b { display: block; font-size: 22px; color: var(--cc-accent-text); }
.ftc-sum span { font-size: 11.5px; color: var(--cc-text-3); }
.ftc-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.ftc-days span { font-size: 11.5px; background: #ecfdf5; color: #065f46; border-radius: 999px; padding: 3px 10px; }
.ftc-days span.zero { background: #f3f4f6; color: #9ca3af; }
.ftc-points { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.ftc-points li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.9; color: var(--cc-text-2); }
.ftc-points li i { font-size: 17px; color: var(--cc-accent); margin-top: 3px; flex-shrink: 0; }

/* 🆕 (Update 62) تصویرِ مشاور در دکمه‌ی «مشاورِ من» — هم‌اندازه با آیکنِ بقیه‌ی کارت‌ها */
.sh-counselor-av { position: relative; width: 44px; height: 44px; border-radius: 50%; padding: 2.5px; display: inline-grid; place-items: center;
  background: conic-gradient(from 210deg, #6366f1, #ec4899, #f59e0b, #6366f1); box-shadow: 0 4px 12px rgba(99,102,241,.25); margin: 0 auto 6px; }
.sh-counselor-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #fff; }
.sh-counselor-av i { position: absolute; bottom: -2px; left: -2px; width: 18px; height: 18px; border-radius: 50%; background: #ec4899; color: #fff; font-size: 10px;
  display: grid; place-items: center; border: 2px solid #fff; }
.sh-counselor-av.noimg { background: linear-gradient(135deg, #6366f1, #a855f7); }
.sh-counselor-card:hover .sh-counselor-av { transform: translateY(-1px); transition: transform .15s; }

/* 🆕 (Update 62) بلوکِ «مشاورانِ مجموعه» در داشبورد */
.dc { --dc-from: #6366f1; --dc-to: #4338ca; background: #fff; border: 1px solid var(--cc-border); border-radius: 20px; padding: 18px; margin-bottom: 16px; position: relative; overflow: hidden; }
.dc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--dc-from), var(--dc-to)); }
.dc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dc-eyebrow { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: var(--dc-to); background: color-mix(in srgb, var(--dc-from) 12%, #fff); border-radius: 999px; padding: 3px 10px; }
.dc-head h2 { margin: 6px 0 2px; font-size: 18px; font-weight: 800; }
.dc-head p { margin: 0; font-size: 12.5px; color: var(--cc-text-2); line-height: 1.9; max-width: 640px; }
.dc-trust { display: flex; gap: 8px; flex-wrap: wrap; }
.dc-trust span { background: var(--cc-bg); border-radius: 12px; padding: 6px 12px; font-size: 11.5px; color: var(--cc-text-2); }
.dc-trust b { color: var(--dc-to); font-size: 15px; margin-inline-end: 3px; }
.dc-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dc-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dc-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dc-card { border: 1px solid var(--cc-border); border-radius: 16px; padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .15s, box-shadow .15s; background: #fff; }
.dc-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(15,23,42,.35); }
.dc-card.top { background: linear-gradient(180deg, #fffbeb 0%, #fff 55%); border-color: #fde68a; }
.dc-card.mine { border-color: var(--dc-from); box-shadow: 0 0 0 2px color-mix(in srgb, var(--dc-from) 25%, transparent); }
.dc-av { position: relative; width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--dc-from), var(--dc-to)); }
.dc-av.top { background: conic-gradient(from 200deg, #f59e0b, #fde68a, #f59e0b, #b45309, #f59e0b); }
.dc-av span, .dc-av img { position: absolute; inset: 3px; border-radius: 50%; }
.dc-av span { display: grid; place-items: center; background: #eef2ff; color: var(--dc-to); font-weight: 800; font-size: 26px; }
.dc-av img { width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; border: 2px solid #fff; }
.dc-medal { position: absolute; bottom: -2px; left: -2px; width: 24px; height: 24px; border-radius: 50%; background: #f59e0b; color: #fff; display: grid; place-items: center; font-size: 13px; border: 2px solid #fff; }
.dc-name { font-weight: 800; font-size: 14px; margin-top: 4px; }
.dc-mine { font-size: 10.5px; font-weight: 800; color: #fff; background: linear-gradient(90deg, var(--dc-from), var(--dc-to)); border-radius: 999px; padding: 2px 10px; }
.dc-headline { font-size: 12px; color: var(--cc-text-2); }
.dc-facts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.dc-facts span { font-size: 10.5px; background: #fef3c7; color: #92400e; border-radius: 999px; padding: 2px 8px; display: inline-flex; gap: 3px; align-items: center; }
.dc-card:not(.top) .dc-facts span { background: var(--cc-bg); color: var(--cc-text-2); }
.dc-intro { margin: 2px 0 0; font-size: 11.5px; color: var(--cc-text-3); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dc-link { margin-top: auto; font-size: 12px; font-weight: 800; color: var(--dc-to); text-decoration: none; }
.dc-foot { margin-top: 14px; text-align: center; }
.dc-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 13px; text-decoration: none; background: linear-gradient(90deg, var(--dc-from), var(--dc-to)); }
@media (max-width: 900px) { .dc-grid, .dc-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .dc-grid, .dc-grid.cols-2, .dc-grid.cols-3 { grid-template-columns: 1fr; } }

/* 🆕 (Update 63) انتخابِ مقطع/پایه‌هایِ مشاور در هر مدرسه */
.csg { margin-top: 14px; border-top: 1px dashed var(--cc-border-strong); padding-top: 12px; display: grid; gap: 10px; }
.csg-title { font-weight: 800; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.csg-school { border: 1px solid var(--cc-border); border-radius: 12px; padding: 10px; background: var(--cc-bg); }
.csg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.csg-level { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.csg-level-btn { border: 0; background: transparent; font: inherit; font-size: 11.5px; font-weight: 800; color: var(--cc-text-3); cursor: pointer; padding: 6px 0; min-width: 84px; text-align: right; }
.csg-level-btn.on { color: var(--cc-accent-text); }

/* 🆕 (Update 64) کارت‌هایِ ویژه: کارتِ دارایِ توضیحات + پنجره‌ی توضیحات */
.sdq-card-btn { font: inherit; text-align: inherit; cursor: pointer; width: 100%; border: 0; }
.sdq-modal-backdrop { position: fixed; inset: 0; z-index: 10060; background: rgba(15,23,42,.55); display: flex; align-items: flex-end; justify-content: center; padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); animation: cc-fade .15s ease-out; }
@media (min-width: 640px) { .sdq-modal-backdrop { align-items: center; } }
.sdq-modal { --a: #6366f1; --b: #4338ca; background: #fff; width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(2,6,23,.5); outline: none; animation: cc-pop .2s ease-out; }
.sdq-modal.c-amber { --a: #f59e0b; --b: #b45309; } .sdq-modal.c-rose { --a: #f43f5e; --b: #be123c; } .sdq-modal.c-sky { --a: #0ea5e9; --b: #0369a1; }
.sdq-modal.c-emerald { --a: #10b981; --b: #047857; } .sdq-modal.c-violet { --a: #8b5cf6; --b: #6d28d9; } .sdq-modal.c-indigo { --a: #6366f1; --b: #4338ca; }
.sdq-modal.c-teal { --a: #14b8a6; --b: #0f766e; } .sdq-modal.c-slate { --a: #64748b; --b: #334155; }
.sdq-modal-hero { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 20px 18px 16px; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); }
.sdq-modal-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.sdq-modal-hero h2 { margin: 2px 0 4px; font-size: 18px; font-weight: 800; }
.sdq-modal-hero p { margin: 0; font-size: 12.5px; opacity: .92; line-height: 1.8; }
.sdq-modal-badge { display: inline-block; font-size: 10.5px; font-weight: 800; background: rgba(255,255,255,.22); border-radius: 999px; padding: 2px 9px; }
.sdq-modal-x { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 18px; cursor: pointer; }
.sdq-modal-body { padding: 16px 18px 6px; font-size: 13px; line-height: 2; color: #334155; }
.sdq-modal-body p { margin: 0 0 10px; }
.sdq-modal-body ul { margin: 0 0 10px; padding-inline-start: 0; list-style: none; display: grid; gap: 6px; }
.sdq-modal-body li { position: relative; padding-inline-start: 22px; }
.sdq-modal-body li::before { content: ""; position: absolute; right: 0; top: .75em; width: 10px; height: 10px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 20%, transparent); }
.sdq-modal-stat { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; color: var(--b); background: color-mix(in srgb, var(--a) 12%, #fff); border-radius: 12px; padding: 6px 12px; margin-top: 4px; }
.sdq-modal-foot { display: flex; gap: 8px; padding: 12px 18px 18px; }
.sdq-modal-cta { flex: 2; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 12px; border-radius: 14px; color: #fff; font-weight: 800; text-decoration: none; background: linear-gradient(90deg, var(--a), var(--b)); }
.sdq-modal-close { flex: 1; border: 1px solid #e2e8f0; background: #fff; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; }
.psh-counselor-line { font-weight: 700; }

/* 🆕 (Update 65) قفلِ اسکرولِ پشتِ مودال + زمینه‌ی تیره‌ی تمام‌صفحه که عبور از آن ممکن نیست */
html.ovl-lock, html.ovl-lock body { overflow: hidden !important; overscroll-behavior: none; }
html.ovl-lock .rz-body { overflow: hidden !important; touch-action: none; }
.sdq-modal-backdrop, .cc-modal-backdrop { position: fixed; inset: 0; height: 100dvh; overscroll-behavior: contain; touch-action: none; }
.sdq-modal, .cc-modal { touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)); }

/* 🆕 (Update 65) پیوندِ «بازگشت به داشبورد» در بالایِ صفحه‌ها */
.b2d { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; direction: rtl; }
.b2d-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 14px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff;
  color: #334155; font-size: 12.5px; font-weight: 700; text-decoration: none; box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: background .15s, border-color .15s, transform .15s; }
.b2d-link i { font-size: 16px; color: #6366f1; }
.b2d-link:hover { background: #eef2ff; border-color: #c7d2fe; color: #312e81; }
.b2d-link:active { transform: scale(.98); }
.b2d-link:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }
[data-theme="dark"] .b2d-link { background: #1e1f24; border-color: rgba(255,255,255,.1); color: #e5e7eb; }

/* 🔧 (Update 65.1) فونتِ پنجره‌هایِ سراسری: پیش‌تر پنجره‌ی کارت‌هایِ ویژه فونتِ «وزیرمتن» را از بلوکِ داشبورد (.dbw) به ارث می‌برد؛
   پس از انتقال به لایه‌ی اصلیِ صفحه، فونتِ عمومیِ صفحه را می‌گرفت و اندازه/فاصله‌ها به‌هم می‌ریخت. اکنون صریحاً تعیین می‌شود
   (آیکن‌ها با !important فونتِ خودشان را نگه می‌دارند). */
.sdq-modal-backdrop, .sdq-modal-backdrop *,
.cc-modal-backdrop, .cc-modal-backdrop *,
.fac-backdrop, .fac-backdrop *,
.ftv-dock, .ftv-dock * {
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: 0;
}
.sdq-modal { color: #0f172a; line-height: 1.6; text-align: right; }
.sdq-modal h2 { font-family: inherit; line-height: 1.5; }
.sdq-modal-body { color: #334155; }
.sdq-modal-cta, .sdq-modal-close { min-height: 46px; font-size: 13.5px; }
[data-theme="dark"] .sdq-modal { background: #1c1d22; color: #f1f5f9; }
[data-theme="dark"] .sdq-modal-body { color: #cbd5e1; }
[data-theme="dark"] .sdq-modal-close { background: #24262c; border-color: rgba(255,255,255,.12); color: #e5e7eb; }

/* 🆕 (Update 80) مشاوره VIP ماهانه — طلاییِ آرام، فقط برایِ نشانِ VIP */
.vip { border-color: #ecd9a8; background: linear-gradient(180deg, #fffaf0 0, #fff 120px); }
.vip-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.vip-head h2 { margin: 0; }
.vip-head p { margin: 2px 0 0; }
.vip-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #f6e7c1; color: #8a5a00; font-size: 22px; flex-shrink: 0; }
.vip-feats { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 14px; }
.vip-feats li { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.vip-feats i { color: #b7791f; font-size: 18px; }
.vip-desc { font-size: 13px; color: var(--cc-text-2, #475569); margin: 0 0 10px; }
.vip-buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed #ecd9a8; }
.vip-buy b { font-size: 18px; }
.vip-buy small { display: block; margin-top: 2px; }
.vip-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.vip-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.vip-kpi { background: #fff; border: 1px solid #f0e2bd; border-radius: 12px; padding: 8px; text-align: center; }
.vip-kpi b { display: block; font-size: 18px; color: #8a5a00; }
.vip-kpi span { font-size: 11.5px; color: var(--cc-muted, #64748b); }
.vip-sub { font-size: 14px; margin: 10px 0 8px; }
.vip-feed { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vip-feed li { display: flex; gap: 10px; }
.vip-feed p { margin: 4px 0; font-size: 13px; white-space: pre-wrap; }
.vip-ic { width: 32px; height: 32px; border-radius: 9px; background: #f6e7c1; color: #8a5a00; display: grid; place-items: center; flex-shrink: 0; }
.vip-err { color: #b42318; font-size: 12.5px; margin-top: 6px; display: flex; gap: 4px; align-items: center; }
.vip-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.vip-subcard { border: 1px solid var(--cc-border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.vip-subcard.off { opacity: .65; }
.vip-subcard header { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.vip-form { display: flex; flex-direction: column; gap: 6px; }
.vip-form input, .vip-form textarea { width: 100%; font: inherit; border: 1px solid var(--cc-border); border-radius: 8px; padding: 7px 9px; }
.vip-kinds { display: flex; flex-wrap: wrap; gap: 4px; }
.vip-kinds button { border: 1px solid var(--cc-border); background: #fff; border-radius: 999px; font: inherit; font-size: 12px; padding: 3px 10px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.vip-kinds button.on { background: #f6e7c1; border-color: #d9b46a; color: #6b4600; }
.vip-kinds button:focus-visible { outline: 2px solid #b7791f; outline-offset: 2px; }
@media (max-width: 520px) { .vip-status { grid-template-columns: 1fr 1fr 1fr; } .vip-buy { flex-direction: column; align-items: stretch; } }
