
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    /* ━━━━━━━━━━━━━━━━━━━━━━ LAYOUT VARS ━━━━━━━━━━━━━━━━━━━━━━ */
    :root {
      --panel-left: 100px;
      --panel-width: calc(50% + 215px);
      --panel-right-edge: calc(var(--panel-left) + var(--panel-width));
      --panel-bottom-gap: 100px;
      --search-height: 50px;
      --search-bottom: calc((var(--panel-bottom-gap) - var(--search-height)) / 2);
      --orb-center-x: calc((var(--panel-right-edge) + 100%) / 2);
      --orb-size: clamp(200px, 28vw, 280px);
    }

    html, body {
      width: 100%; height: 100%;
      overflow: hidden;
      transition: background 600ms ease;
    }
    body {
      font-family: var(--app-font-family, "IRANSansX");
    }
    html.dark body { background: #030303; }
    html:not(.dark) body { background: #f0f0f8; }

    /* ━━━━━━━━━━━━━━━━━━━━━━ ORB ━━━━━━━━━━━━━━━━━━━━━━ */
    #stage {
      position: fixed;
      inset: 0;
      pointer-events: none;
    }

    #orb-wrap {
      pointer-events: all;
      width: var(--orb-size);
      height: var(--orb-size);
      position: absolute;
      left: 50%;
      top: calc(50% + 36px);
      transform: translate(-50%, -50%);
      transition: left 900ms cubic-bezier(0.4, 0, 0.2, 1),
                  top 900ms cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 100;
    }

    #orb-wrap.positioned-right {
      left: var(--orb-center-x);
      top: 50%;
    }

    #orb-wrap canvas {
      position: absolute;
      inset: 0;
      width: 100% !important;
      height: 100% !important;
      border-radius: 50%;
    }

    /* متن روی گوی - فقط در انیمیشن اولیه */
    #orb-text {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: clamp(13px, 1.8vw, 17px);
      font-weight: 500;
      text-align: center;
      padding: 20px;
      opacity: 0;
      transition: opacity 400ms ease;
      pointer-events: none;
      text-shadow: 0 2px 8px rgba(0,0,0,0.6);
      z-index: 10;
    }
    #orb-text.visible { opacity: 1; }

    /* ━━━━━━━━━━━━━━━━━━━━━━ ORB BUBBLE ━━━━━━━━━━━━━━━━━━━━━━━ */
    #orb-bubble {
      position: fixed;
      left: 50%;
      top: calc(50% + 36px + var(--orb-size) / 2 + 18px);
      transform: translateX(-50%);
      width: clamp(160px, 22vw, 260px);
      opacity: 0;
      pointer-events: none;
      transition: left 900ms cubic-bezier(0.4, 0, 0.2, 1),
                  opacity 400ms ease;
      z-index: 101;
    }
    #orb-bubble.positioned-right {
      left: var(--orb-center-x);
    }
    #orb-bubble.visible { opacity: 1; }

    #orb-bubble-inner {
      border-radius: 18px 18px 18px 4px;
      padding: 12px 16px;
      font-size: 13px;
      line-height: 1.7;
      font-weight: 400;
      position: relative;
      text-align: right;
    }
    html.dark #orb-bubble-inner {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.14);
      color: rgba(255,255,255,0.88);
      backdrop-filter: blur(12px);
      box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
    html:not(.dark) #orb-bubble-inner {
      background: rgba(255,255,255,0.85);
      border: 1px solid rgba(100,100,220,0.2);
      color: #1e1e3c;
      backdrop-filter: blur(12px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

    /* نشانگر تایپ */
    #orb-bubble-cursor {
      display: inline-block;
      width: 2px;
      height: 14px;
      background: currentColor;
      opacity: 0.7;
      vertical-align: middle;
      margin-right: 2px;
      animation: blink 1s step-end infinite;
    }
    @keyframes blink { 0%,100%{opacity:0.7} 50%{opacity:0} }

    /* ━━━━━━━━━━━━━━━━━━━━━━ FAQ HEADER (عنوان اولیه) ━━━━━━━━━━━━━━━━━━━━━━ */
    #faq-header {
      position: fixed;
      top: 22px;
      left: 50%;
      transform: translateX(-50%);
      font-size: clamp(18px, 2.5vw, 24px);
      font-weight: 700;
      letter-spacing: -0.3px;
      opacity: 0;
      transition: opacity 500ms ease, color 600ms ease;
      z-index: 50;
      white-space: nowrap;
    }
    html.dark #faq-header { color: rgba(255,255,255,0.9); }
    html:not(.dark) #faq-header { color: rgba(30,30,60,0.9); }
    #faq-header.visible { opacity: 1; }

    /* ━━━━━━━━━━━━━━━━━━━━━━ SEARCH BAR ━━━━━━━━━━━━━━━━━━━━━━ */
    #search-container {
      position: fixed;
      left: 50%;
      bottom: var(--search-bottom);
      transform: translateX(-50%);
      width: 50px;
      height: var(--search-height);
      opacity: 0;
      transition: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 200;
      display: flex;
      align-items: center;
    }
    #search-container.visible {
      opacity: 1;
      width: min(88vw, 480px);
    }

    #search-box {
      width: 100%;
      height: var(--search-height);
      border-radius: 25px;
      border: none;
      outline: none;
      font-family: var(--app-font-family, "IRANSansX");
      font-size: 15px;
      padding: 0 48px 0 48px;
      direction: rtl;
      transition: all 400ms ease;
    }
    html.dark #search-box {
      background: rgba(255,255,255,0.09);
      color: white;
      border: 1px solid rgba(255,255,255,0.15);
      backdrop-filter: blur(10px);
    }
    html.dark #search-box:focus {
      border-color: rgba(156,67,254,0.5);
      background: rgba(255,255,255,0.12);
    }
    html:not(.dark) #search-box {
      background: rgba(255,255,255,0.92);
      color: #1e1e3c;
      border: 1px solid rgba(100,100,200,0.25);
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    html:not(.dark) #search-box:focus {
      border-color: rgba(98,4,212,0.4);
    }
    #search-box::placeholder { color: inherit; opacity: 0.5; }

    #search-icon {
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      width: 20px; height: 20px;
      pointer-events: none;
      opacity: 0.55;
    }
    html.dark #search-icon { filter: invert(1); }

    /* دکمه پاک کردن سرچ */
    #search-clear {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      width: 22px; height: 22px;
      border-radius: 50%;
      border: none;
      cursor: pointer;
      display: none;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      line-height: 1;
      transition: opacity 200ms;
    }
    #search-clear.visible { display: flex; }
    html.dark #search-clear { background: rgba(255,255,255,0.15); color: white; }
    html:not(.dark) #search-clear { background: rgba(0,0,0,0.1); color: #333; }
/* ━━━━━━━━━━━━━━━━━━━━━━ FAQ PANEL ━━━━━━━━━━━━━━━━━━━━━━ */
    #faq-panel {
      position: fixed;
      left: var(--panel-left);
      top: 87px;
      bottom: var(--panel-bottom-gap);
      width: 0;
      opacity: 0;
      border-radius: 22px;
      transition: width 800ms cubic-bezier(0.4,0,0.2,1),
                  opacity 600ms ease;
      z-index: 150;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    #faq-panel.visible {
      width: var(--panel-width);
      opacity: 1;
    }
    html.dark #faq-panel {
      background: rgba(18,18,30,0.75);
      border: 1px solid rgba(255,255,255,0.09);
      backdrop-filter: blur(20px);
    }
    html:not(.dark) #faq-panel {
      background: rgba(255,255,255,0.78);
      border: 1px solid rgba(100,100,200,0.15);
      backdrop-filter: blur(20px);
      box-shadow: 0 12px 48px rgba(0,0,0,0.1);
    }

    /* ──── Header پنل ──── */
    #panel-header {
      flex-shrink: 0;
      padding: 16px 20px 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    /* breadcrumb */
    #breadcrumb {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 4px;
      font-size: 12px;
      min-height: 24px;
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      transition: opacity 300ms ease, max-height 300ms ease;
      direction: rtl;
    }
    #breadcrumb.visible {
      opacity: 1;
      max-height: 60px;
    }
    .crumb {
      cursor: pointer;
      padding: 2px 6px;
      border-radius: 6px;
      transition: background 200ms;
      white-space: nowrap;
    }
    html.dark .crumb { color: rgba(156,67,254,0.9); }
    html.dark .crumb:hover { background: rgba(156,67,254,0.15); }
    html:not(.dark) .crumb { color: #6204d4; }
    html:not(.dark) .crumb:hover { background: rgba(98,4,212,0.08); }
    .crumb-sep {
      opacity: 0.35;
      font-size: 11px;
      user-select: none;
    }
    html.dark .crumb-sep { color: rgba(255,255,255,0.5); }
    html:not(.dark) .crumb-sep { color: #888; }
    .crumb-current {
      font-weight: 600;
      cursor: default;
    }
    html.dark .crumb-current { color: rgba(255,255,255,0.85); }
    html:not(.dark) .crumb-current { color: #1e1e3c; }

    /* خط جدا‌کننده زیر breadcrumb */
    #panel-divider {
      height: 1px;
      margin: 4px 0 0;
      opacity: 0;
      transition: opacity 300ms ease;
    }
    #breadcrumb.visible + #panel-divider { opacity: 1; }
    html.dark #panel-divider { background: rgba(255,255,255,0.07); }
    html:not(.dark) #panel-divider { background: rgba(0,0,0,0.07); }

    /* ──── عنوان section جاری ──── */
    #panel-title {
      font-size: 17px;
      font-weight: 600;
      padding: 10px 0 4px;
      transition: color 300ms;
    }
    html.dark #panel-title { color: rgba(255,255,255,0.9); }
    html:not(.dark) #panel-title { color: #1e1e3c; }

    /* تعداد نتایج سرچ */
    #search-count {
      font-size: 11px;
      opacity: 0.5;
      padding-bottom: 4px;
      display: none;
    }
    #search-count.visible { display: block; }

    /* ──── اسکرول‌پذیر محتوا ──── */
    #panel-body {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 8px 14px 14px;
      scroll-behavior: smooth;
    }

    /* اسکرول‌بار تمیز */
    #panel-body::-webkit-scrollbar { width: 5px; }
    #panel-body::-webkit-scrollbar-track { background: transparent; }
    html.dark #panel-body::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.12);
      border-radius: 10px;
    }
    html.dark #panel-body::-webkit-scrollbar-thumb:hover {
      background: rgba(255,255,255,0.22);
    }
    html:not(.dark) #panel-body::-webkit-scrollbar-thumb {
      background: rgba(0,0,0,0.12);
      border-radius: 10px;
    }
    html:not(.dark) #panel-body::-webkit-scrollbar-thumb:hover {
      background: rgba(0,0,0,0.22);
    }

    /* ━━━━━━━━━━━━━━━━━━━━━━ FAQ ITEMS ━━━━━━━━━━━━━━━━━━━━━━ */
    .faq-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 15px 18px;
      border-radius: 14px;
      margin-bottom: 7px;
      cursor: pointer;
      transition: background 200ms ease, transform 150ms ease;
      animation: fadeUp 250ms ease both;
      user-select: none;
    }
    .faq-item:active { transform: scale(0.98); }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    html.dark .faq-item {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.06);
    }
    html.dark .faq-item:hover {
      background: rgba(156,67,254,0.12);
      border-color: rgba(156,67,254,0.25);
    }
    html:not(.dark) .faq-item {
      background: rgba(255,255,255,0.65);
      border: 1px solid rgba(0,0,0,0.06);
    }
    html:not(.dark) .faq-item:hover {
      background: rgba(98,4,212,0.06);
      border-color: rgba(98,4,212,0.15);
    }

    .faq-item-main {
      flex: 1;
      min-width: 0;
    }
    .faq-item-text {
      font-size: 15.5px;
      line-height: 1.6;
      flex: 1;
    }
    html.dark .faq-item-text { color: rgba(255,255,255,0.85); }
    html:not(.dark) .faq-item-text { color: #1e1e3c; }

    /* highlight در سرچ */
    .faq-item-text mark {
      background: rgba(156,67,254,0.3);
      color: inherit;
      border-radius: 3px;
      padding: 0 2px;
    }
    html:not(.dark) .faq-item-text mark {
      background: rgba(98,4,212,0.15);
    }

    /* آیکون چپ (فلش یا سند) */
    .faq-item-icon {
      flex-shrink: 0;
      width: 30px; height: 30px;
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 13px;
      transition: background 200ms;
    }
    html.dark .faq-item-icon {
      background: rgba(255,255,255,0.06);
      color: rgba(255,255,255,0.5);
    }
    html.dark .faq-item:hover .faq-item-icon {
      background: rgba(156,67,254,0.2);
      color: rgba(200,150,255,0.9);
    }
    html:not(.dark) .faq-item-icon {
      background: rgba(0,0,0,0.04);
      color: rgba(0,0,0,0.35);
    }
    html:not(.dark) .faq-item:hover .faq-item-icon {
      background: rgba(98,4,212,0.1);
      color: #6204d4;
    }

    /* تگ دسته‌بندی در سرچ */
    .faq-item-tag {
      font-size: 10px;
      padding: 2px 7px;
      border-radius: 99px;
      margin-right: 10px;
      flex-shrink: 0;
      font-weight: 500;
    }
    html.dark .faq-item-tag {
      background: rgba(76,194,233,0.15);
      color: rgba(76,194,233,0.85);
    }
    html:not(.dark) .faq-item-tag {
      background: rgba(0,57,179,0.08);
      color: rgba(0,57,179,0.75);
    }

    /* پیام خالی */
    .empty-state {
      text-align: center;
      padding: 40px 20px;
      opacity: 0.45;
      font-size: 14px;
      line-height: 2;
    }
    html.dark .empty-state { color: rgba(255,255,255,0.6); }
    html:not(.dark) .empty-state { color: #666; }

    /* ━━━━━━━━━━━━━━━━━━━━━━ ANSWER VIEW ━━━━━━━━━━━━━━━━━━━━━━ */
    #answer-view {
      display: none;
      padding: 0 4px;
      animation: fadeUp 200ms ease;
    }
    #answer-view.visible { display: block; }

    .answer-text {
      font-size: 15.5px;
      line-height: 2;
      padding: 10px 4px;
    }
    html.dark .answer-text { color: rgba(255,255,255,0.82); }
    html:not(.dark) .answer-text { color: #1e1e3c; }

    /* hide mobile-only elements on desktop */
    #mobile-list-btn { display: none; }
    #mobile-feedback-popup { display: none; }

    /* ━━━━━━━━━━━━━━━━━━━━━━ LIKE/DISLIKE ━━━━━━━━━━━━━━━━━━━━━━ */
    .feedback-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 4px 6px;
      border-top: 1px solid transparent;
      margin-top: 12px;
      animation: fadeUp 300ms ease 200ms both;
    }
    html.dark .feedback-bar { border-color: rgba(255,255,255,0.07); }
    html:not(.dark) .feedback-bar { border-color: rgba(0,0,0,0.07); }

    .feedback-label {
      font-size: 13px;
      flex: 1;
    }
    html.dark .feedback-label { color: rgba(255,255,255,0.55); }
    html:not(.dark) .feedback-label { color: rgba(0,0,0,0.45); }

    .feedback-btns { display: flex; gap: 8px; }

    .feedback-btn {
      display: flex; align-items: center; gap: 5px;
      padding: 6px 14px;
      border-radius: 99px;
      border: 1px solid transparent;
      font-size: 13px;
      font-family: var(--app-font-family, "IRANSansX");
      cursor: pointer;
      transition: all 200ms ease;
      font-weight: 500;
    }
    html.dark .feedback-btn {
      background: rgba(255,255,255,0.05);
      border-color: rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.6);
    }
    html:not(.dark) .feedback-btn {
      background: rgba(0,0,0,0.04);
      border-color: rgba(0,0,0,0.1);
      color: rgba(0,0,0,0.5);
    }
    .feedback-btn:hover { transform: scale(1.05); }
    .feedback-btn.liked {
      background: rgba(52,199,89,0.15);
      border-color: rgba(52,199,89,0.4);
      color: #34c759;
    }
    .feedback-btn.disliked {
      background: rgba(255,69,58,0.12);
      border-color: rgba(255,69,58,0.35);
      color: #ff453a;
    }
    .feedback-thanks {
      font-size: 12px;
      opacity: 0;
      transition: opacity 300ms;
      padding-right: 4px;
    }
    .feedback-thanks.visible { opacity: 1; }
    html.dark .feedback-thanks { color: rgba(255,255,255,0.45); }
    html:not(.dark) .feedback-thanks { color: rgba(0,0,0,0.4); }

    /* ━━━━━━━━━━━━━━━━━━━━━━ RESPONSIVE ━━━━━━━━━━━━━━━━━━━━━━ */
    @media (max-width: 768px) {
      :root {
        --panel-left: 16px;
        --panel-width: calc(100% - 32px);
        --panel-bottom-gap: 80px;
        --orb-center-x: 50%;
        --search-height: 48px;
      }

      /* گوی: ثابت در مرکز، بدون حرکت */
      #orb-wrap {
        width: min(72vw, 280px) !important;
        height: min(72vw, 280px) !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        transition: none !important;
      }
      #orb-wrap.positioned-right {
        left: 50% !important;
        top: 50% !important;
      }
      #orb-bubble {
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: calc(50% + min(72vw, 280px) / 2 + 20px) !important;
        transition: opacity 400ms ease !important;
        width: min(80vw, 260px);
      }
      #orb-bubble.positioned-right { left: 50% !important; }

      /* سرچ: همان رفتار دسکتاپ */
      #search-container.visible { width: calc(100% - 32px); }

      /* دکمه مشاهده لیست: بین حباب و سرچ */
      #mobile-list-btn {
        display: flex;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(var(--search-bottom) + var(--search-height) + 14px);
        align-items: center; gap: 8px;
        padding: 11px 24px;
        border-radius: 99px;
        border: none;
        font-family: var(--app-font-family, "IRANSansX");
        font-size: 14px; font-weight: 600;
        cursor: pointer;
        z-index: 210;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 300ms ease;
      }
      #mobile-list-btn.visible { opacity: 1; pointer-events: all; }
      #mobile-list-btn:active { transform: translateX(-50%) scale(0.96); }
      html.dark #mobile-list-btn {
        background: rgba(156,67,254,0.18);
        border: 1px solid rgba(156,67,254,0.3);
        color: rgba(210,170,255,0.95);
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
      }
      html:not(.dark) #mobile-list-btn {
        background: rgba(255,255,255,0.85);
        border: 1px solid rgba(98,4,212,0.2);
        color: #6204d4;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
      }

      /* پنل FAQ: مخفی تا وقتی باز بشه */
      #faq-panel {
        left: var(--panel-left) !important;
        top: var(--panel-top, 87px) !important;
        width: 0;
        bottom: var(--panel-bottom-gap) !important;
        opacity: 0;
        transition: width 500ms cubic-bezier(0.4,0,0.2,1),
                    opacity 400ms ease !important;
      }
      #faq-panel.visible {
        width: var(--panel-width) !important;
        opacity: 1 !important;
      }
    }

    /* دکمه بستن پنل - فقط موبایل */
    #mobile-panel-close {
      display: none;
    }
    @media (max-width: 768px) {
      #mobile-panel-close {
        display: flex;
        position: absolute;
        top: 14px;
        left: 16px;
        width: 32px; height: 32px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        z-index: 10;
        transition: background 200ms;
      }
      html.dark #mobile-panel-close {
        background: rgba(255,255,255,0.1);
        color: rgba(255,255,255,0.7);
      }
      html:not(.dark) #mobile-panel-close {
        background: rgba(0,0,0,0.06);
        color: rgba(0,0,0,0.5);
      }
      html.dark #mobile-panel-close:hover { background: rgba(255,255,255,0.18); }
      html:not(.dark) #mobile-panel-close:hover { background: rgba(0,0,0,0.12); }
      /* پنل باید relative باشه تا absolute کار کنه */
      #faq-panel { position: fixed; }
    }


/* ━━━━━━━━━━━━━━━━━━━━━━ PROJECT INTEGRATION ADDITIONS ━━━━━━━━━━━━━━━━━━━━━━ */

.wf-page-top {
  position: relative;
  z-index: 260;
}

#faq-panel {
  z-index: 220;
}

#panel-header {
  position: relative;
  padding-left: 60px;
}

#panel-title,
#search-count,
#breadcrumb {
  max-width: 100%;
}

#mobile-panel-close {
  display: flex;
  position: absolute;
  top: 14px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  z-index: 10;
  transition: background 200ms ease, color 200ms ease;
}
html.dark #mobile-panel-close {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}
html:not(.dark) #mobile-panel-close {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.5);
}
html.dark #mobile-panel-close:hover { background: rgba(255,255,255,0.18); }
html:not(.dark) #mobile-panel-close:hover { background: rgba(0,0,0,0.12); }

.crumb {
  background: none;
  border: 0;
  font: inherit;
}

.faq-item {
  width: 100%;
  border: none;
  text-align: right;
  font: inherit;
}

.faq-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.faq-item-path {
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.56;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.dark .faq-item-path { color: rgba(255,255,255,0.68); }
html:not(.dark) .faq-item-path { color: rgba(30,30,60,0.72); }

.loading-state {
  text-align: center;
  padding: 40px 20px;
  opacity: 0.6;
  font-size: 14px;
  line-height: 2;
}
html.dark .loading-state { color: rgba(255,255,255,0.68); }
html:not(.dark) .loading-state { color: #666; }

.answer-text > :first-child { margin-top: 0; }
.answer-text > :last-child { margin-bottom: 0; }
.answer-text img,
.answer-text video,
.answer-text iframe,
.answer-text table,
.answer-text pre,
.answer-text blockquote {
  max-width: 100%;
}
.answer-text img,
.answer-text video {
  display: block;
  height: auto;
  border-radius: 14px;
  margin: 16px auto;
  float: none !important;
  clear: both;
}
.answer-text img {
  max-width: min(100%, 480px);
  max-height: 320px;
  object-fit: contain;
}
.answer-text video {
  width: min(100%, 480px);
  max-height: 320px;
  object-fit: contain;
  background: #000;
}
.wf-answer-media {
  display: block;
  width: 100%;
  margin: 18px auto;
  text-align: center;
}
.wf-answer-media__trigger {
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
  line-height: 0;
}
.wf-answer-media__trigger:hover .wf-answer-media__img {
  filter: brightness(1.04);
}
.wf-answer-media__trigger:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.6);
  outline-offset: 4px;
  border-radius: 12px;
}
.wf-answer-media__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 480px);
  max-height: 320px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
  background: transparent;
}

.wf-answer-media__video,
.wf-answer-media__frame {
  display: block;
  margin: 0 auto;
  width: min(100%, 480px);
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
}
.wf-answer-media__video { background: #000; }
.wf-answer-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(10px);
}
.wf-answer-lightbox.visible { display: flex; }
.wf-answer-lightbox__dialog {
  position: relative;
  max-width: min(92vw, 980px);
  max-height: 90vh;
}
.wf-answer-lightbox__img {
  display: block;
  max-width: min(92vw, 980px);
  max-height: 86vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  cursor: zoom-out;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.03);
}
.wf-answer-lightbox__close {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
body.wf-lightbox-open { overflow: hidden; }
.answer-text iframe {
  display: block;
  width: 100%;
  min-height: 220px;
  border: none;
  border-radius: 16px;
  margin: 16px 0;
}
.answer-text table {
  width: 100%;
  overflow-x: auto;
  display: block;
  border-collapse: collapse;
  margin: 16px 0;
}
.answer-text pre {
  padding: 14px 16px;
  border-radius: 14px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}
html.dark .answer-text pre { background: rgba(255,255,255,0.06); }
html:not(.dark) .answer-text pre { background: rgba(0,0,0,0.04); }
.answer-text blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 14px;
  border-inline-start: 4px solid rgba(156,67,254,0.5);
}
html.dark .answer-text blockquote { background: rgba(255,255,255,0.04); }
html:not(.dark) .answer-text blockquote { background: rgba(98,4,212,0.05); }

#mobile-list-btn {
  display: flex;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--search-bottom) + var(--search-height) + 14px);
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 99px;
  border: none;
  font-family: var(--app-font-family, "IRANSansX");
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  z-index: 210;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, transform 180ms ease;
}
#mobile-list-btn.visible {
  opacity: 1;
  pointer-events: all;
}
#mobile-list-btn:active {
  transform: translateX(-50%) scale(0.96);
}
html.dark #mobile-list-btn {
  background: rgba(156,67,254,0.18);
  border: 1px solid rgba(156,67,254,0.3);
  color: rgba(210,170,255,0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
html:not(.dark) #mobile-list-btn {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(98,4,212,0.2);
  color: #6204d4;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#desktop-rating-box {
  --wf-desktop-rating-offset-y: 10px;
  position: fixed;
  left: 50%;
  /* Tightened from 96px → 76px so the box sits closer to the orb,
     leaving room for the 4-reasons UI without overflowing the viewport. */
  top: calc(50% + 36px + var(--orb-size) / 2 + 76px);
  transform: translateX(-50%) translateY(var(--wf-desktop-rating-offset-y));
  width: clamp(220px, 28vw, 360px);
  opacity: 0;
  pointer-events: none;
  transition: left 900ms cubic-bezier(0.4, 0, 0.2, 1), opacity 220ms ease, transform 220ms ease, top 400ms ease;
  z-index: 102;
}
/* When the 4-reasons UI is up, the box grows; nudge it up so it
   doesn't bottom-overflow on shorter viewports. */
#desktop-rating-box.is-reasons-mode {
  top: calc(50% + 36px + var(--orb-size) / 2 + 28px);
}
#desktop-rating-box.positioned-right {
  left: var(--orb-center-x);
}
#desktop-rating-box.visible {
  --wf-desktop-rating-offset-y: 0px;
  opacity: 1;
  pointer-events: all;
}
#desktop-rating-box[aria-hidden="true"] {
  pointer-events: none;
}

.wf-rating-box-inner {
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html.dark .wf-rating-box-inner {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
html:not(.dark) .wf-rating-box-inner {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(100,100,220,0.18);
  color: #1e1e3c;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.wf-rating-title {
  font-size: 13px;
  line-height: 1.8;
  font-weight: 500;
}

.wf-rating-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wf-rating-status {
  min-height: 18px;
  font-size: 12px;
  line-height: 1.5;
}
html.dark .wf-rating-status { color: rgba(255,255,255,0.6); }
html:not(.dark) .wf-rating-status { color: rgba(0,0,0,0.5); }

.feedback-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ──── Desktop dislike reasons (4-option flow) ──── */
.wf-dislike-reasons {
  display: grid;
  gap: 6px;
}
.wf-dislike-reason-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
html.dark .wf-dislike-reason-option {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
}
html:not(.dark) .wf-dislike-reason-option {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: #1e1e3c;
}
.wf-dislike-reason-option:hover {
  transform: translateY(-1px);
}
html.dark .wf-dislike-reason-option:hover {
  background: rgba(156,67,254,0.10);
  border-color: rgba(156,67,254,0.20);
}
html:not(.dark) .wf-dislike-reason-option:hover {
  background: rgba(98,4,212,0.05);
  border-color: rgba(98,4,212,0.16);
}
html.dark .wf-dislike-reason-option.is-selected {
  background: rgba(156,67,254,0.18);
  border-color: rgba(156,67,254,0.36);
}
html:not(.dark) .wf-dislike-reason-option.is-selected {
  background: rgba(98,4,212,0.10);
  border-color: rgba(98,4,212,0.26);
}
.wf-rating-actions--reasons {
  justify-content: flex-end;
}

#mobile-feedback-popup {
  display: none;
}

.mobile-feedback-q {
  font-size: 13px;
  line-height: 1.8;
  font-weight: 600;
}

.mobile-feedback-row,
.mobile-feedback-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-feedback-note,
.mobile-feedback-status {
  min-height: 18px;
  font-size: 12px;
  line-height: 1.5;
}
html.dark .mobile-feedback-note,
html.dark .mobile-feedback-status { color: rgba(255,255,255,0.62); }
html:not(.dark) .mobile-feedback-note,
html:not(.dark) .mobile-feedback-status { color: rgba(0,0,0,0.5); }

.mobile-feedback-reasons {
  display: grid;
  gap: 8px;
}

.mobile-feedback-reason-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  text-align: right;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
html.dark .mobile-feedback-reason-option {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
}
html:not(.dark) .mobile-feedback-reason-option {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: #1e1e3c;
}
.mobile-feedback-reason-option.is-selected {
  transform: translateY(-1px);
}
html.dark .mobile-feedback-reason-option.is-selected {
  background: rgba(156,67,254,0.14);
  border-color: rgba(156,67,254,0.32);
}
html:not(.dark) .mobile-feedback-reason-option.is-selected {
  background: rgba(98,4,212,0.08);
  border-color: rgba(98,4,212,0.22);
}

@media (max-width: 768px) {
  #mobile-feedback-popup {
    position: fixed;
    left: 50%;
    bottom: calc(var(--search-bottom) + var(--search-height) + 6px);
    transform: translate(-50%, 100%);
    width: calc(100% - 32px);
    max-width: 480px;
    padding: 14px 16px;
    border-radius: 18px 18px 12px 12px;
    opacity: 0;
    pointer-events: none;
    transition: transform 300ms ease, opacity 220ms ease;
    z-index: 230;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  #mobile-feedback-popup.visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: all;
  }
  html.dark #mobile-feedback-popup {
    background: rgba(18,18,30,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.88);
    box-shadow: 0 14px 34px rgba(0,0,0,0.34);
    backdrop-filter: blur(14px);
  }
  html:not(.dark) #mobile-feedback-popup {
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(100,100,220,0.16);
    color: #1e1e3c;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    backdrop-filter: blur(14px);
  }

  body.wf-mobile-panel-open #orb-wrap,
  body.wf-mobile-panel-open #orb-bubble {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  #desktop-rating-box {
    display: none !important;
  }
}

@media (min-width: 769px) {
  #mobile-feedback-popup {
    display: none !important;
  }
}


.wf-noscript-frame{display:none;visibility:hidden}
