 /* فونت ضخیم نمایشی لاله‌زار (نزدیک‌ترین فونت آزاد به بهمن) + وزیرمتن */
  @import url('https://fonts.googleapis.com/css2?family=Lalezar&display=swap');
  @import url('https://cdn.jsdelivr.net/npm/vazirmatn@33.003/Vazirmatn-font-face.css');

  @font-face {
    font-family: 'VazirmatnBlack';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'VazirmatnExtraBold';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
  }

  * { margin:0; padding:0; box-sizing:border-box; }

  body {
    font-family: Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 600;
  }

  /* تیترها و عناوین ضخیم – حس فونت بهمن */
  h1, .card-title, .box-title, .featured, .section-label {
    font-family: Lalezar, VazirmatnBlack, Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 400 !important; /* Lalezar خودش ضخیمه */
    letter-spacing: 0;
  }
  h1 { font-size: 59px; }

  .card-tag, .students, .box-eyebrow, .box-desc, .rating, .top {
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 800 !important;
  }

  :root {
    --bg: #ffffff;
    --bg-blob-1: transparent;
    --bg-blob-2: transparent;
    --text: #1a1a1a;
    --text-dim: #6b6b6b;
    --glass-bg: rgba(240,242,246,0.92);
    --glass-border: rgba(0,0,0,0.06);
    --active-bg: #1c1c1e;
    --active-text: #fff;
    --icon-color: #4a4a4a;
  }
  [data-theme="dark"] {
    --bg: #000000;
    --bg-blob-1: transparent;
    --bg-blob-2: transparent;
    --text: #f3f0ea;
    --text-dim: #a3a0ab;
    --glass-bg: rgba(30,30,34,0.92);
    --glass-border: rgba(255,255,255,0.08);
    --active-bg: #f3f0ea;
    --active-text: #14141a;
    --icon-color: #d8d6de;
  }

  html {
    overflow: hidden;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
  }
  body {
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    background-image: none;
    background-attachment: fixed;
    color: var(--text);
    display: flex;
    height: 100%;
    height: 100dvh;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
    position: relative;
    transition: background 0.35s ease, color 0.35s ease;
  }
  [data-theme="dark"] body {
    background: #000;
  }

  /* لوگو – گوشه بالا چپ – کامل و خوانا */
  .site-logo {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 50;
    height: 40px;
    width: auto;
    max-width: 130px;
    display: block;
    object-fit: contain;
    object-position: right center;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
  }
  @media (max-width: 768px) {
    .site-logo {
      height: 34px;
      max-width: 120px;
      top: 14px;
      right: 12px;
    }
  }

  /* Hamburger button */
  .hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 40;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    color: var(--icon-color);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  }
  .hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  body.nav-open .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Sidebar (glass) – مخفی، با همبرگر باز می‌شود */
  .sidebar {
    width: 88px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-radius: 28px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 22px;
    position: fixed;
    top: 100px;          /* کمی پایین‌تر */
    /*left: 2200px;*/
    right: 20px;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    z-index: 35;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease,
                background 0.35s ease, border-color 0.35s ease;
  }
  [data-theme="dark"] .sidebar {
    background: rgba(30,30,34,0.35);
    border: 1px solid rgba(255,255,255,0.1);
  }
  body.nav-open .sidebar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  body.home-page .sidebar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  }
  body.home-page .sidebar.sidebar-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.96);
  pointer-events: none;
}
  .sidebar .icon-btn {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--icon-color);
    position: relative;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(.34,1.56,.64,1);
  }
  .sidebar .icon-btn:hover {
    background: rgba(128,128,128,0.12);
    border-color: var(--glass-border);
  }
  /* حالت فعال = صفحه فعلی */
  .sidebar .icon-btn.active {
    background: var(--active-bg);
    border: 1px solid transparent;
    color: var(--active-text);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18), 0 0 0 4px rgba(138,111,214,0.14);
    transform: scale(1.08);
  }
  .sidebar .icon-btn.active::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: 3px;
    background: var(--active-text);
    opacity: 0.35;
    transition: height 0.25s ease, opacity 0.25s ease;
  }
  [data-theme="dark"] .sidebar .icon-btn.active {
    box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 0 4px rgba(138,111,214,0.2);
  }
  [data-theme="dark"] .sidebar .icon-btn.active::after {
    background: var(--active-text);
    opacity: 0.4;
  }
  .sidebar .icon-btn svg { width: 20px; height: 20px; }
  .dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #e07a8c;
  }
  .sidebar .spacer { flex: 1; }
  .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg,#a3c9e8,#5a8fd6);
    margin-top: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 14px rgba(90,143,214,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .avatar:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(90,143,214,0.5);
  }
  .avatar svg { width: 20px; height: 20px; }

  /* Theme toggle */
  .theme-toggle {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    color: var(--icon-color);
    border: 1px solid var(--glass-border);
    font: inherit;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }
  .theme-toggle:hover {
    background: rgba(128,128,128,0.16);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  }
  [data-theme="dark"] .theme-toggle:hover {
    background: rgba(255,255,255,0.12);
  }
  .theme-toggle svg { width: 20px; height: 20px; }
  .theme-toggle .moon { display: none; }
  [data-theme="dark"] .theme-toggle .sun { display: none; }
  [data-theme="dark"] .theme-toggle .moon { display: block; }

  /* Main – فقط این بخش اسکرول می‌شود؛ کره ثابت می‌ماند */
  .main {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 90px 64px 56px;
    max-width: 1180px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: transparent;
    box-sizing: border-box;
    /* مخفی کردن نوار اسکرول (چپ در RTL) – اسکرول همچنان کار می‌کند */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .main::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .hero {
    position: relative;
    padding-left: 0;
    padding-right: 0;
  }
  h1 {
    font-size: 59px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 36px;
    color: var(--text);
    position: relative;
    z-index: 1;
  }
  .hero h1 {
    background: linear-gradient(100deg, var(--text) 35%, #5a8fd6 65%, #5aa0e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  /* پس‌زمینه: تیره = مشکی خالص / روشن = سفید خالص */
  @keyframes coronaSpin {
    to { transform: rotate(360deg); }
  }
  @keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.92; }
  }
  @keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.04); opacity: 1; }
  }
  @keyframes bokehFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-24px) translateX(12px); }
  }
  .bg-blackhole { display: none; }
  .bg-light { display: none; }

  /* حاله رنگی دور پس‌زمینه */
  .bg-glow {
    position: fixed;
    inset: -10%;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 80% 70% at 15% 50%, rgba(138, 111, 214, 0.30) 0%, transparent 65%),
      radial-gradient(ellipse 80% 70% at 85% 50%, rgba(90, 160, 230, 0.10) 0%, transparent 65%);
    filter: blur(70px);
    transition: opacity 0.4s ease;
  }
  [data-theme="light"] .bg-glow,
  :root:not([data-theme="dark"]) .bg-glow {
    background:
      radial-gradient(ellipse 80% 70% at 15% 50%, rgba(138, 111, 214, 0.16) 0%, transparent 65%),
      radial-gradient(ellipse 80% 70% at 85% 50%, rgba(90, 160, 230, 0.06) 0%, transparent 65%);
  }
  @media (prefers-reduced-motion: reduce) {
    .light-corona, .light-disk, .light-ring, .light-bokeh { animation: none !important; }
  }

  /* دکمه ثبت‌نام */
  .btn-signup {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 20px 34px;
    border-radius: 18px;
    border: none;
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    margin: 0 0 22px 0;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    transition: background 0.22s ease, color 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease;
  }
  .btn-signup:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .btn-signup:active {
    transform: translateY(0);
    background: #000;
  }
  /* دارک مود: روشن / کرمی */
  [data-theme="dark"] .btn-signup {
    background: #f3f0ea;
    color: #14141a;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  }
  [data-theme="dark"] .btn-signup:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  }
  [data-theme="dark"] .btn-signup:active {
    background: #d8d4cc;
    transform: translateY(0);
  }

  /* آیکون حساب کاربری: کنار منوی همبرگری */
  .account-btn {
    position: fixed;
    top: 20px;
    left: 84px;
    z-index: 40;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--icon-color);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  }
  .account-btn:hover { transform: translateY(-1px); }
  .account-btn:active { transform: translateY(0) scale(0.96); }
  .account-btn svg { width: 24px; height: 24px; }
  [dir="ltr"] .account-btn { left: auto; right: 84px; }
  @media (max-width: 768px) {
    .account-btn {
      top: 12px;
      left: 68px;
      width: 46px;
      height: 46px;
      border-radius: 14px;
    }
    [dir="ltr"] .account-btn { right: 68px; left: auto; }
    .account-btn svg { width: 21px; height: 21px; }
  }

  /* دکمه بازگشت سراسری: همیشه ثابت بالای صفحه، گوشه */
  .global-back-btn {
    position: fixed;
    top: 20px;
    left: 148px;
    z-index: 40;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--icon-color);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  }
  .global-back-btn.visible { display: flex; }
  .global-back-btn:hover { transform: translateY(-1px); }
  .global-back-btn:active { transform: translateY(0) scale(0.96); }
  .global-back-btn svg { width: 22px; height: 22px; }
  [dir="ltr"] .global-back-btn { left: auto; right: 148px; }
  @media (max-width: 768px) {
    .global-back-btn {
      top: 12px;
      left: 126px;
      width: 46px;
      height: 46px;
      border-radius: 14px;
    }
    [dir="ltr"] .global-back-btn { right: 126px; left: auto; }
    .global-back-btn svg { width: 20px; height: 20px; }
  }

  /* دکمه برو بالا: بعد از اسکرول به پایین ظاهر می‌شه */
  .scroll-top-btn {
    position: fixed;
    bottom: 24px;
    left: 20px;
    z-index: 40;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--icon-color);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.25s ease;
  }
  .scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .scroll-top-btn:hover { background: rgba(128,128,128,0.16); }
  .scroll-top-btn:active { transform: translateY(0) scale(0.94); }
  .scroll-top-btn svg { width: 20px; height: 20px; }
  [dir="ltr"] .scroll-top-btn { left: auto; right: 20px; }
  @media (max-width: 768px) {
    .scroll-top-btn { bottom: 18px; left: 12px; width: 42px; height: 42px; }
    [dir="ltr"] .scroll-top-btn { left: auto; right: 12px; }
  }

  /* هنگام اسکرول: همه دکمه‌های شناور (به‌جز لوگو و دکمه برو بالا) محو می‌شن */
  .hamburger,
  .account-btn,
  .global-back-btn {
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, opacity 0.3s ease;
  }
  body.scrolled .hamburger,
  body.scrolled .account-btn,
  body.scrolled .global-back-btn {
    opacity: 0;
    pointer-events: none;
  }
  .site-logo {
    transition: filter 0.3s ease;
  }
  [data-theme="dark"] body.scrolled .site-logo {
    filter: brightness(0) invert(1);
  }
  [data-theme="light"] body.scrolled .site-logo,
  :root:not([data-theme="dark"]) body.scrolled .site-logo {
    filter: brightness(0);
  }
  .btn-signup-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
    box-shadow: none;
  }
  .btn-signup-outline:hover { background: rgba(128,128,128,0.12); }
  .btn-signup-outline:active { background: rgba(128,128,128,0.2); }
  [data-theme="dark"] .btn-signup-outline {
    background: transparent;
    color: var(--text);
    box-shadow: none;
  }
  [data-theme="dark"] .btn-signup-outline:hover { background: rgba(255,255,255,0.08); }
  [data-theme="dark"] .btn-signup-outline:active { background: rgba(255,255,255,0.15); }

  /* همبرگر: هاور متفاوت در دارک/لایت */
  .hamburger:hover {
    background: rgba(0,0,0,0.1);
  }
  [data-theme="dark"] .hamburger:hover {
    background: rgba(255,255,255,0.14);
  }

  .section-label {
    font-size: 17px;
    color: var(--text-dim);
    margin-top: 8px;
    margin-bottom: 14px;
  }
  .asset-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .asset-search-wrap svg {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
    flex-shrink: 0;
  }
  .asset-search-wrap input {
    flex: 1 1 auto;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 600;
    min-width: 0;
    width: 100%;
  }
  .asset-search-wrap input::placeholder {
    color: var(--text-dim);
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .asset-search-btn {
    border: none;
    border-radius: 999px;
    padding: 13px 22px;
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    background: #111;
    color: #fff;
    white-space: nowrap !important;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: max-content;
    overflow: visible;
    transition: background 0.2s ease, transform 0.15s ease;
  }
  .asset-search-btn:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
  }
  [data-theme="dark"] .asset-search-btn {
    background: #f3f0ea;
    color: #14141a;
  }
  [data-theme="dark"] .asset-search-btn:hover {
    background: #fff;
  }
  .search-hint {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    margin: 0 0 20px;
    min-height: 0;
  }
  .search-hint:empty {
    display: none;
    margin: 0;
  }

  /* احراز هویت */
  .auth-box {
  position: relative;
  max-width: 420px;
  margin: 24px auto 0;
  padding: 40px 32px 36px;
  border-radius: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  z-index: 1;
  }
  .auth-box::before {
    content: '';
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 240px;
    filter: blur(10px);
    pointer-events: none;
    z-index: -1;
  }
  [data-theme="dark"] .auth-box::before {
    background: radial-gradient(closest-side, rgba(124,58,237,0.45), rgba(10,10,14,0.5), transparent);
  }
  [data-theme="light"] .auth-box::before,
  :root:not([data-theme="dark"]) .auth-box::before {
    background: radial-gradient(closest-side, rgba(59,130,246,0.30), rgba(255,255,255,0.6), transparent);
  }
  .auth-logo {
    display: block;
    height: 40px;
    width: auto;
    margin: 0 auto 6px;
  }
  .auth-box h2 {
    font-family: 'El Messiri', VazirmatnBlack, Vazirmatn, Tahoma, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    text-align: center;
  }
  .auth-box .auth-sub {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 10px;
  }
  .auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .auth-field label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dim);
  }
  .auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  .auth-input-wrap .auth-input-icon {
    position: absolute;
    right: 14px;
    width: 19px;
    height: 19px;
    color: var(--text-dim);
    pointer-events: none;
  }
  .auth-input-wrap input {
    padding-right: 42px;
  }
  .auth-input-wrap .auth-pass-toggle {
    position: absolute;
    left: 12px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .auth-input-wrap .auth-pass-toggle svg { width: 19px; height: 19px; }
  .auth-field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    font-family: Vazirmatn, Tahoma, sans-serif !important;
    font-size: 17px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  [data-theme="dark"] .auth-field input {
    background: rgba(0,0,0,0.25);
  }
  .auth-field input:focus {
    border-color: rgba(212,160,23,0.55);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.14);
  }
  .auth-field input::placeholder {
    color: var(--text-dim);
    opacity: 0.75;
  }
  .auth-switch-link {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    margin-top: 4px;
  }
  .auth-switch-link a {
    color: #d4a017;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
  }
  .auth-choice-btn {
    width: 100%;
    padding: 19px 22px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text);
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
  }
  .auth-choice-btn:hover {
    background: rgba(128,128,128,0.14);
    transform: translateY(-1px);
  }
  .auth-choice-btn.primary {
    background: linear-gradient(100deg, #f6e27a, #d4a017);
    color: #2b2102;
    border-color: transparent;
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif !important;
  }
  .auth-choice-btn.primary:hover {
    filter: brightness(1.05);
  }
  [data-theme="dark"] .auth-choice-btn.primary {
    background: linear-gradient(100deg, #f6e27a, #d4a017);
    color: #2b2102;
  }
  [data-theme="dark"] .auth-choice-btn.primary:hover {
    filter: brightness(1.05);
  }
  .auth-submit {
    width: 100%;
    margin-top: 6px;
    padding: 19px 22px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(100deg, #f6e27a, #d4a017);
    color: #2b2102;
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
  }
  .auth-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
  }
  [data-theme="dark"] .auth-submit {
    background: linear-gradient(100deg, #f6e27a, #d4a017);
    color: #2b2102;
  }
  [data-theme="dark"] .auth-submit:hover {
    filter: brightness(1.08);
  }
  .auth-msg {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dim);
    min-height: 18px;
  }
  .auth-submit.is-loading { cursor: default; opacity: 0.9; }


  .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    margin-bottom: 8px;
  }
  /* کارت‌های ارز: نمایش یکی‌یکی، کشو مانند */
  .asset-carousel {
    position: relative;
    height: 190px;
    overflow: hidden;
  }
  .asset-carousel .asset-card {
    position: absolute;
    inset: 0;
    width: 100%;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.55s cubic-bezier(.4,0,.2,1), opacity 0.5s ease;
  }
  .asset-carousel .asset-card.is-active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .asset-carousel .asset-card.is-prev {
    transform: translateX(-100%);
    opacity: 0;
  }
  .asset-carousel .asset-card.is-next {
    transform: translateX(100%);
    opacity: 0;
  }

  /* کنترل دستی چرخش کارت‌ها */
  .carousel-wrap {
    position: relative;
  }

  .carousel-dots {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
  }
  .carousel-dots .dot {
    position: static;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--glass-border);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .carousel-dots .dot.active {
    background: var(--text);
    transform: scale(1.3);
  }

  /* بخش اخبار مهم در صفحه اصلی */
  .section-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 14px;
  }
  .section-label-row .section-icon-lg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: var(--text);
  }
  .section-label-row span {
    font-size: 17px;
    color: var(--text-dim);
  }
  .home-news-carousel {
    height: 300px;
  }
  .home-news-card {
    cursor: pointer;
  }
  .home-news-card .news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .home-news-card .news-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  @media (max-width: 768px) {
    .home-news-carousel { height: 320px; }
  }

  /* ویدیوی رضایت مشتری */
  .video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(138,111,214,0.18), rgba(90,160,230,0.12));
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
  }
  .video-play-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #6b4fc9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  }
  .video-play-icon svg { width: 20px; height: 20px; }
  [data-theme="dark"] .video-play-icon {
    background: rgba(255,255,255,0.85);
  }
  .video-placeholder-text {
    font-size: 13px;
    color: var(--text-dim);
  }

  /* کادر بزرگ ویدیوی جزئیات دوره */
  .video-placeholder-lg {
    max-width: 720px;
    margin-inline: auto;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
  }
  .video-fullscreen-btn {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .video-fullscreen-btn svg { width: 19px; height: 19px; }
  .video-placeholder.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 200;
    max-width: none;
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
    margin: 0;
  }
  .testimonial-carousel {
    height: 320px;
  }
  .testimonial-name {
    font-weight: 800;
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 4px;
  }
  .testimonial-quote {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  @media (max-width: 768px) {
    .testimonial-carousel { height: 340px; }
  }
  .asset-card {
    cursor: pointer;
    min-height: 140px;
    width: 100%;
    max-width: 100%;
  }
  .asset-card .asset-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: auto;
  }
  .asset-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }
  .asset-icon svg {
    width: 48px;
    height: 48px;
    display: block;
  }
  .asset-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .asset-name {
    font-family: Lalezar, VazirmatnBlack, Vazirmatn, Tahoma, sans-serif;
    font-size: 23px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.2;
  }
  .asset-pair {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
  }
  .asset-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 22px;
  }
  .asset-price {
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.2px;
  }
  .asset-change {
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
  }
  .asset-change.up {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.25);
  }
  .asset-change.down {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
  }
  [data-theme="dark"] .asset-change.up {
    color: #4ade80;
  }
  [data-theme="dark"] .asset-change.down {
    color: #f87171;
  }

  /* TradingView page */
  .trade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }
  .trade-header h1 {
    font-size: 36px;
    margin-bottom: 0;
  }
  .trade-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .trade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    color: var(--text);
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
  }
  .trade-btn:hover {
    background: rgba(128,128,128,0.14);
  }

  /* دکمه بازگشت: آیکون فلش ساده */
  .trade-back,
  .auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
  }
  .trade-back:hover,
  .auth-back:hover {
    background: rgba(128,128,128,0.14);
    transform: scale(1.06);
  }
  .trade-back svg,
  .auth-back svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .auth-back {
    align-self: center;
    margin-top: 4px;
  }
  .trade-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
  .trade-btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 14px;
  }
  /* حالت تمام‌صفحه چارت */
  .tv-wrap:fullscreen,
  .tv-wrap:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
  }
  .tv-wrap:fullscreen iframe,
  .tv-wrap:-webkit-full-screen iframe {
    width: 100%;
    height: 100%;
  }
  .tv-wrap {
    width: 100%;
    height: 560px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    background: var(--glass-bg);
    position: relative;
  }
  .tv-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }
  .tv-skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
  }
  .tv-skeleton-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--glass-border);
    border-top-color: #8a6fd6;
    animation: tvSpin 0.8s linear infinite;
  }
  @keyframes tvSpin { to { transform: rotate(360deg); } }
  @media (max-width: 720px) {
    .tv-wrap { height: 420px; }
    .trade-header h1 { font-size: 27px; }
  }
  .card {
    border-radius: 24px;
    padding: 28px;
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    color: var(--text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.22s ease, transform 0.22s ease;
  }
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  }
  .card.pink   { background: rgba(244, 201, 196, 0.45); }
  .card.orange { background: rgba(242, 214, 168, 0.45); }
  .card.purple { background: rgba(216, 207, 240, 0.45); }
  .card.mint   { background: rgba(189, 234, 210, 0.45); }
  [data-theme="dark"] .card.pink   { background: rgba(244, 201, 196, 0.14); }
  [data-theme="dark"] .card.orange { background: rgba(242, 214, 168, 0.14); }
  [data-theme="dark"] .card.purple { background: rgba(216, 207, 240, 0.14); }
  [data-theme="dark"] .card.mint   { background: rgba(189, 234, 210, 0.14); }
  [data-theme="dark"] .card {
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  }
  [data-theme="dark"] .card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  }
  /* tag / badges inside cards – glass */
  .card-tag {
    background: rgba(255,255,255,0.35) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
  }
  [data-theme="dark"] .card-tag {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.12);
  }
  .rating, .top {
    background: rgba(255,255,255,0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.35);
  }
  [data-theme="dark"] .rating,
  [data-theme="dark"] .top {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.12);
  }
  .students { color: var(--text-dim) !important; opacity: 1 !important; }

  .card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: auto;
  }
  .card-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
  }
  [data-theme="dark"] .card-tag {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.12);
  }
  .card-tag .tag-icon {
    width: 26px; height: 26px;
    background: rgba(255,255,255,0.55);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  [data-theme="dark"] .card-tag .tag-icon {
    background: rgba(255,255,255,0.15);
  }
  .card-tag .tag-icon svg { width: 14px; height: 14px; }

  .badges { display: flex; gap: 8px; }
  .rating, .top {
    display: flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
  }
  [data-theme="dark"] .rating,
  [data-theme="dark"] .top {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.12);
  }

  .card-title {
    font-size: 25px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 24px;
    margin-bottom: 20px;
    max-width: 85%;
  }

  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .students {
    font-size: 15px;
    color: #3a3a3a;
    opacity: 0.75;
  }
  .avatars {
    display: flex;
  }
  .avatars .av {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    margin-left: -8px;
  }
  .avatars .av:nth-child(1) { background: linear-gradient(135deg,#f6a5a5,#e07a7a); }
  .avatars .av:nth-child(2) { background: linear-gradient(135deg,#a5c8f6,#6f9fe0); }

  .featured {
    margin-top: 36px;
    margin-bottom: 4px;
    font-size: 17px;
    color: var(--text-dim);
    font-weight: 800;
  }

  .big-white-box {
    margin-top: 16px;
    width: 100%;
    min-height: 280px;
    border-radius: 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  }
  [data-theme="dark"] .big-white-box {
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  }
  .big-white-box .box-eyebrow {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-dim);
  }
  .big-white-box .box-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
  }
  .big-white-box .box-desc {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 520px;
  }

  /* ========== صفحه سیگنال‌ها ========== */
  .page { display: none; contain: layout style paint; content-visibility: auto; }
  .page.active { display: block; content-visibility: visible; }

  /* انیمیشن ورود محتوا هنگام باز شدن هر صفحه */
  @keyframes pageSlideIn {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .page.active {
    animation: pageSlideIn 0.4s cubic-bezier(.22,.68,0,1) both;
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .page.active > * {
    animation: fadeInUp 0.5s cubic-bezier(.22,.68,0,1) both;
  }
  .page.active > *:nth-child(1) { animation-delay: 0.05s; }
  .page.active > *:nth-child(2) { animation-delay: 0.1s; }
  .page.active > *:nth-child(3) { animation-delay: 0.15s; }
  .page.active > *:nth-child(4) { animation-delay: 0.2s; }
  .page.active > *:nth-child(5) { animation-delay: 0.25s; }
  .page.active > *:nth-child(6) { animation-delay: 0.3s; }
  .page.active > *:nth-child(n+7) { animation-delay: 0.35s; }
  @media (prefers-reduced-motion: reduce) {
    .page.active, .page.active > * { animation: none !important; }
  }
  /* فاصله واضح بین بخش‌های فید (سیگنال / دوره / اخبار / درباره) */
  .feed-section {
    display: block;
    scroll-margin-top: 24px;
    margin-top: 56px;
    padding-top: 12px;
  }
  .feed-section + .feed-section {
    margin-top: 64px;
  }
  /* will-change فقط موقع هاور برای مصرف کمتر GPU */
  .signal-card:hover, .card:hover, .news-card:hover {
    will-change: transform;
  }
  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
  }
  /* کاهش هزینه blur روی موبایل */
  @media (max-width: 720px) {
    .sidebar, .hamburger, .btn-signup, .signal-card, .card, .news-card, .big-white-box,
    .asset-search-wrap, .signal-filters, .auth-box, .empty-state {
      backdrop-filter: blur(10px) saturate(120%) !important;
      -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
    }
  }

  .signals-header {
    margin-bottom: 24px;
  }
  .signals-header h1 {
    font-size: 45px;
    margin-bottom: 12px;
  }
  .signals-header p {
    font-size: 17px;
    color: var(--text-dim);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 4px;
  }
  .signal-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    border-radius: 999px;
  }
  .signal-filters .spill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 999px;
    background: transparent;
    border: none;
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .signal-filters .spill:hover:not(.active) {
    background: rgba(0,0,0,0.06);
  }
  [data-theme="dark"] .signal-filters .spill:hover:not(.active) {
    background: rgba(255,255,255,0.1);
  }
  .signal-filters .spill.active {
    background: linear-gradient(100deg, #f6e27a, #d4a017);
    color: #2b2102;
  }
  [data-theme="dark"] .signal-filters .spill.active:hover {
    filter: brightness(1.05);
  }
  #courseFilters {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  #courseFilters::-webkit-scrollbar { display: none; }
  #courseFilters .spill {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .course-badge {
    flex: none;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
  }
  .course-badge.free {
    background: rgba(46,160,90,0.16);
    color: #2ea05a;
  }

  .signals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .signal-card {
    border-radius: 24px;
    padding: 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .signal-card:active,
  .course-mini-card:active,
  .news-mini-card:active,
  .testimonial-card:active,
  .asset-card:active {
    transform: scale(0.97);
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
  }
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.35s ease, border-color 0.35s ease;
  }
  .signal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
  }
  [data-theme="dark"] .signal-card {
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  }
  [data-theme="dark"] .signal-card:hover {
    box-shadow: 0 14px 40px rgba(0,0,0,0.4);
  }

  .signal-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .signal-symbol {
    font-family: Lalezar, VazirmatnBlack, Vazirmatn, Tahoma, sans-serif;
    font-size: 29px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.5px;
  }
  .signal-dir {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 800;
  }
  .signal-dir.long {
    background: rgba(34, 197, 94, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #15803d;
  }
  .signal-dir.short {
    background: rgba(239, 68, 68, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #b91c1c;
  }
  [data-theme="dark"] .signal-dir.long {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
  }
  [data-theme="dark"] .signal-dir.short {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
  }
  .signal-dir svg {
    width: 14px;
    height: 14px;
  }

  .signal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
  }
  .signal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .signal-meta-item:nth-child(2) {
    text-align: left;
  }
  .signal-meta-item .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
  }
  .signal-meta-item .value {
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
  }

  .signal-entry {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(128,128,128,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .signal-entry .entry-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dim);
  }
  .signal-entry .entry-price {
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif;
    font-size: 23px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.3px;
  }
  .signal-btn {
    text-decoration: none !important;
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  }
  .signal-btn:hover {
    transform: translateY(-1px);
    background: #2a2a2a;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  }
  [data-theme="dark"] .signal-btn {
    background: #f3f0ea;
    color: #14141a;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }
  [data-theme="dark"] .signal-btn:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  }

  @media (max-width: 720px) {
    .signals-grid { grid-template-columns: 1fr; }
    .signals-header h1 { font-size: 36px; }
  }

  /* ========== صفحه خالی (دوره‌ها) ========== */
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    text-align: center;
    gap: 16px;
    padding: 48px 24px;
    border-radius: 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  }
  .filter-empty {
    text-align: center;
    padding: 32px 20px;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 15px;
  }
  .empty-state .empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(128,128,128,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
  }
  .empty-state .empty-icon svg {
    width: 36px;
    height: 36px;
  }
  .empty-state h2 {
    font-family: Lalezar, VazirmatnBlack, Vazirmatn, Tahoma, sans-serif;
    font-size: 29px;
    font-weight: 400;
    color: var(--text);
  }
  .empty-state p {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dim);
    max-width: 320px;
    line-height: 1.6;
  }

  /* ========== صفحه اخبار – کارت‌های پهن ========== */
  .news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .news-card {
    width: 100%;
    border-radius: 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.22s ease, box-shadow 0.22s ease;
  }
  .news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  }
  [data-theme="dark"] .news-card {
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  }
  [data-theme="dark"] .news-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  }
  .news-card .news-eyebrow {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif;
  }
  .news-card .news-title {
    font-family: Lalezar, VazirmatnBlack, Vazirmatn, Tahoma, sans-serif;
    font-size: 27px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.35;
  }
  .news-card .news-desc {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 640px;
  }
  .news-card .news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dim);
  }
  .news-card .news-tag {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(128,128,128,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(128,128,128,0.15);
    font-size: 14px;
    font-weight: 700;
  }

  .globe-section {
    margin-top: 36px;
    position: relative;
    height: 560px;
    border-radius: 32px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transition: background 0.35s ease, border-color 0.35s ease;
  }
  #globe-canvas {
    display: block;
    width: 100%;
    height: 100%;
  }
  .globe-caption {
    position: absolute;
    left: 40px;
    bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
  }
  .globe-eyebrow {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
  }
  .globe-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
  }

  /* ========== دسکتاپ vs موبایل – چیدمان متفاوت ========== */
  /* دسکتاپ (عرض بیشتر از ۷۶۸px): دو ستونه، جادار، فونت بزرگ */
  @media (min-width: 769px) {
    .main {
      padding: 90px 64px 56px;
      max-width: 1180px;
    }
    h1 {
      font-size: 59px;
    }
    .grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    .signals-grid {
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    .card,
    .signal-card {
      padding: 28px;
      min-height: 190px;
    }
    .big-white-box {
      padding: 40px 44px;
      min-height: 280px;
    }
    .news-card {
      padding: 32px 40px;
    }
    .auth-box {
      max-width: 420px;
      margin: 24px auto 0;
    }
    .tv-wrap {
      height: 560px;
    }
  }

  /* موبایل و تبلت کوچک: تک‌ستونه، فشرده، لمس‌پسند */
  @media (max-width: 768px) {
    .main {
      padding: 100px 18px 40px 18px !important;
      max-width: 100% !important;
      width: 100% !important;
      margin: 0 auto !important;
      box-sizing: border-box !important;
      height: 100% !important;
      height: 100dvh !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
    }
    h1 {
      font-size: 36px !important;
      line-height: 1.25;
      margin-bottom: 22px;
      letter-spacing: -0.5px;
      text-align: center !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
    .hero {
      text-align: center !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
    .signals-header h1 {
      font-size: 32px !important;
    }
    .trade-header h1 {
      font-size: 25px !important;
    }

    /* همه گریدها تک‌ستونه */
    .grid,
    .signals-grid {
      grid-template-columns: 1fr !important;
      gap: 14px;
    }

    /* کارت‌ها فشرده‌تر */
    .card,
    .signal-card {
      padding: 20px 18px;
      min-height: 0;
      border-radius: 20px;
    }
    .card-title {
      font-size: 20px;
      max-width: 100%;
      margin-top: 16px;
      margin-bottom: 14px;
    }
    .asset-name {
      font-size: 19px;
    }
    .asset-price {
      font-size: 20px;
    }
    .asset-icon {
      width: 42px;
      height: 42px;
    }
    .asset-icon svg {
      width: 42px;
      height: 42px;
    }
    .asset-bottom {
      margin-top: 14px;
    }

    /* باکس ویژه */
    .big-white-box {
      padding: 24px 20px;
      min-height: 0;
      border-radius: 22px;
      gap: 10px;
    }
    .big-white-box .box-title {
      font-size: 23px;
    }
    .big-white-box .box-desc {
      font-size: 16px;
      max-width: 100%;
    }

    /* اخبار */
    .news-card {
      padding: 22px 18px;
      border-radius: 22px;
      gap: 8px;
    }
    .news-card .news-title {
      font-size: 20px;
    }
    .news-card .news-desc {
      font-size: 16px;
      max-width: 100%;
    }

    /* فیلتر سیگنال و جستجو */
    .signal-filters {
      gap: 4px;
      padding: 6px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .signal-filters::-webkit-scrollbar { display: none; }
    .signal-filters .spill {
      padding: 10px 14px;
      font-size: 15px;
      flex: 1 0 auto;
    }
    .asset-search-wrap {
      padding: 6px 6px 6px 12px;
      gap: 8px;
      width: 100%;
    }
    .asset-search-wrap input {
      font-size: 14px;
      min-width: 0;
    }
    .asset-search-btn {
      padding: 10px 16px;
      font-size: 14px;
      line-height: 1.2;
      white-space: nowrap !important;
      flex-shrink: 0;
      min-width: max-content;
    }

    /* سیگنال‌ها */
    .signal-symbol {
      font-size: 23px;
    }
    .signal-meta {
      gap: 10px 12px;
    }
    .signal-meta-item .value {
      font-size: 16px;
    }
    .signal-entry .entry-price {
      font-size: 19px;
    }
    .signal-btn {
      padding: 13px 16px;
      font-size: 15px;
    }

    /* احراز هویت */
    .auth-box {
      max-width: 100%;
      margin: 12px 0 0;
      padding: 28px 20px;
      border-radius: 22px;
    }
    .auth-box h2 {
      font-size: 27px;
    }

    /* دکمه ثبت‌نام */
    .btn-signup {
      padding: 16px 24px;
      font-size: 17px;
      border-radius: 16px;
      margin-bottom: 18px;
    }

    /* هدر ترید */
    .trade-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 14px;
    }
    .trade-actions {
      width: 100%;
      justify-content: flex-start;
      flex-wrap: wrap;
    }
    .tv-wrap {
      height: 380px;
      border-radius: 18px;
    }

    /* حالت خالی دوره‌ها */
    .empty-state {
      min-height: 280px;
      padding: 36px 18px;
      border-radius: 22px;
    }
    .empty-state h2 {
      font-size: 25px;
    }
    .empty-state p {
      font-size: 16px;
    }

    /* جلوگیری از اسکرول افقی و صفحه سفید – اسکرول فقط داخل .main */
    html, body {
      overflow: hidden !important;
      max-width: 100vw !important;
      width: 100% !important;
      height: 100% !important;
      height: 100dvh !important;
    }
    .hero-planet,
    .hero-planet canvas,
    .main,
    .page,
    .grid,
    .card,
    .signal-card,
    .news-card,
    .asset-search-wrap,
    .big-white-box {
      max-width: 100% !important;
      box-sizing: border-box !important;
    }
    .hero-planet {
      overflow: hidden !important;
      width: 100% !important;
      left: 0 !important;
      right: 0 !important;
    }

    /* نوار هدر ثابت تا محتوا زیر لوگو/همبرگر نرود */
    body::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 78px;
      z-index: 30;
      pointer-events: none;
      background: linear-gradient(
        to bottom,
        var(--bg) 0%,
        var(--bg) 60%,
        transparent 100%
      );
    }

    /* همبرگر – بالای محتوا با فاصله مناسب */
    .hamburger {
      top: 12px;
      left: 12px;
      width: 46px;
      height: 46px;
      border-radius: 14px;
      z-index: 50;
    }

    /* لوگو کامل و خوانا */
    .site-logo {
      z-index: 50;
      top: 12px !important;
      right: 12px !important;
      height: 36px !important;
      max-width: 128px !important;
      width: auto !important;
      object-fit: contain !important;
      object-position: right center !important;
    }

    /* نوار وظیفه موبایل – عمودی، زیر همبرگر */
    .sidebar {
      top: 70px !important;
      left: 12px !important;
      right: auto !important;
      width: 72px !important;
      min-width: 72px !important;
      max-width: 72px !important;
      height: auto !important;
      max-height: calc(100vh - 90px) !important;
      display: flex !important;
      flex-direction: column !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
      justify-content: flex-start !important;
      gap: 14px !important;
      padding: 16px 0 !important;
      border-radius: 22px;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
      margin: 0 !important;
      transform: none !important;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.22s ease, visibility 0.22s ease,
                  background 0.35s ease, border-color 0.35s ease !important;
      z-index: 45;
    }
    body.nav-open .sidebar {
      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: auto !important;
      transform: none !important;
      display: flex !important;
      flex-direction: column !important;
    }

    .sidebar .icon-btn,
    .sidebar .theme-toggle {
      width: 44px !important;
      min-width: 44px !important;
      height: 44px !important;
      border-radius: 14px;
      flex: none !important;
    }
    .sidebar .icon-btn svg,
    .sidebar .theme-toggle svg {
      width: 20px;
      height: 20px;
    }
    .sidebar .avatar {
      width: 36px !important;
      min-width: 36px !important;
      height: 36px !important;
      margin: 0 0 2px !important;
      flex: none !important;
    }
    .sidebar .spacer {
      display: block !important;
      flex: 1 1 auto !important;
      width: 100%;
      min-height: 8px;
    }

    /* خط مشکی کناری دکمه فعال حذف شود */
    .sidebar .icon-btn.active::after {
      display: none !important;
    }
    .sidebar .icon-btn.active {
      transform: none;
      box-shadow: 0 4px 12px rgba(0,0,0,0.16);
    }

    /* بدنه اصلی – پدینگ متقارن تا محتوا وسط بماند */
    .main {
      padding: 100px 18px 40px 18px !important;
      max-width: 100% !important;
      width: 100% !important;
      margin: 0 auto !important;
      box-sizing: border-box !important;
      height: 100% !important;
      height: 100dvh !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
    }
    h1 {
      margin-top: 8px !important;
      text-align: center !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
    .hero {
      text-align: center !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
    .section-label,
    .featured,
    .search-hint {
      text-align: center !important;
    }
    .btn-signup,
    .asset-search-wrap,
    .grid,
    .card,
    .big-white-box {
      margin-right: auto !important;
      margin-left: auto !important;
    }

    /* کاهش blur برای عملکرد بهتر روی موبایل */
    .sidebar, .hamburger, .btn-signup, .signal-card, .card, .news-card,
    .big-white-box, .asset-search-wrap, .signal-filters, .auth-box, .empty-state {
      backdrop-filter: blur(10px) saturate(120%) !important;
      -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
    }

    /* بخش globe اگر استفاده شود */
    .globe-section {
      height: 320px;
      border-radius: 22px;
      margin-top: 24px;
    }
    .globe-caption {
      left: 18px;
      bottom: 18px;
    }
    .globe-title {
      font-size: 23px;
    }

    /* فاصله‌های عمومی */
    .section-label {
      font-size: 16px;
      margin-top: 6px;
      margin-bottom: 12px;
    }
    .featured {
      margin-top: 28px;
      margin-bottom: 4px;
      font-size: 16px;
    }
    .search-hint {
      font-size: 12px;
      margin: 0 0 16px;
    }
    .search-hint:empty {
      display: none;
      margin: 0;
    }
    .feed-section {
      margin-top: 40px;
      padding-top: 8px;
    }
    .feed-section + .feed-section {
      margin-top: 48px;
    }
  }

  /* گوشی‌های خیلی کوچک */
  @media (max-width: 380px) {
    .main {
      padding: 96px 12px 28px 12px !important;
    }
    [dir="ltr"] .main,
    [dir="rtl"] .main {
      padding: 96px 12px 28px 12px !important;
    }
    .site-logo {
      max-width: 110px !important;
      height: 32px !important;
    }
    h1 {
      font-size: 32px !important;
    }
    .card,
    .signal-card,
    .news-card {
      padding: 16px 14px;
    }
    .auth-box {
      padding: 22px 14px;
    }
    .sidebar {
      padding: 8px 10px;
      gap: 4px;
    }
    .sidebar .icon-btn,
    .sidebar .theme-toggle {
      width: 38px;
      height: 38px;
    }
  }

  /* ========== LTR / RTL: جهت متن؛ چیدمان موبایل وسط‌محور ========== */
  /* دسکتاپ: متن‌ها مطابق زبان */
  @media (min-width: 769px) {
    [dir="ltr"] .hero,
    [dir="ltr"] h1,
    [dir="ltr"] .section-label,
    [dir="ltr"] .featured,
    [dir="ltr"] .search-hint,
    [dir="ltr"] .signals-header,
    [dir="ltr"] .signals-header h1,
    [dir="ltr"] .signals-header p,
    [dir="ltr"] .news-card,
    [dir="ltr"] .news-title,
    [dir="ltr"] .news-desc,
    [dir="ltr"] .news-eyebrow,
    [dir="ltr"] .big-white-box,
    [dir="ltr"] .box-title,
    [dir="ltr"] .box-desc,
    [dir="ltr"] .box-eyebrow,
    [dir="ltr"] .trade-header {
      text-align: left !important;
    }
    [dir="rtl"] .hero,
    [dir="rtl"] h1,
    [dir="rtl"] .section-label,
    [dir="rtl"] .featured,
    [dir="rtl"] .search-hint,
    [dir="rtl"] .signals-header,
    [dir="rtl"] .signals-header h1,
    [dir="rtl"] .signals-header p {
      text-align: right !important;
    }
  }
  /* باکس ورود/ثبت‌نام و empty-state همیشه وسط‌چین */
  .auth-box {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .auth-box h2,
  .auth-box .auth-sub,
  .auth-msg {
    text-align: center !important;
  }
  .empty-state {
    text-align: center !important;
  }
  /* دسکتاپ: منو و همبرگر سمت راست در LTR (حالت قبلی، برای انگلیسی) */
  [dir="ltr"] .hamburger {
    left: auto;
    right: 20px;
  }
  [dir="ltr"] .site-logo {
    right: auto;
    left: 16px;
    object-position: left center;
  }
  [dir="ltr"] .sidebar {
    left: auto;
    right: 20px;
  }
  [dir="ltr"] .sidebar .icon-btn.active::after {
    right: auto;
    left: 4px;
  }
  @media (max-width: 768px) {
    /* پدینگ یکسان – نه چسبیده به راست نه به چپ */
    [dir="ltr"] .main,
    [dir="rtl"] .main {
      padding: 100px 18px 40px 18px !important;
    }
    [dir="ltr"] .hamburger {
      right: 12px !important;
      left: auto !important;
    }
    [dir="ltr"] .site-logo {
      left: 12px !important;
      right: auto !important;
      object-position: left center !important;
    }
    [dir="ltr"] .sidebar {
      right: 12px !important;
      left: auto !important;
    }
    /* عنوان و لیبل‌ها وسط */
    [dir="ltr"] h1,
    [dir="rtl"] h1,
    [dir="ltr"] .hero,
    [dir="rtl"] .hero,
    [dir="ltr"] .section-label,
    [dir="rtl"] .section-label,
    [dir="ltr"] .featured,
    [dir="rtl"] .featured,
    [dir="ltr"] .search-hint,
    [dir="rtl"] .search-hint,
    [dir="ltr"] .signals-header,
    [dir="rtl"] .signals-header,
    [dir="ltr"] .signals-header h1,
    [dir="rtl"] .signals-header h1,
    [dir="ltr"] .signals-header p,
    [dir="rtl"] .signals-header p {
      text-align: center !important;
    }
  }

  /* ===== هدر جدید (کارت شیشه‌ای بالای صفحه) ===== */
  .top-header-bar {
    position: fixed;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
    transition: background 0.35s ease, border-color 0.35s ease;
  }
  [data-theme="light"] .top-header-bar,
  :root:not([data-theme="dark"]) .top-header-bar {
    background: rgba(255,255,255,0.35);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.4);
  }
  .logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
  }
  .logo-img {
    height: 34px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
  }
  [data-theme="dark"] body.scrolled .logo-img {
    filter: brightness(0) invert(1);
  }
  [data-theme="light"] body.scrolled .logo-img,
  :root:not([data-theme="dark"]) body.scrolled .logo-img {
    filter: brightness(0);
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .top-header-bar .account-btn,
  .top-header-bar .hamburger,
  .top-header-bar .global-back-btn {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .top-header-bar .global-back-btn svg { width: 20px; height: 20px; }
  .top-header-bar .global-back-btn[dir="ltr"] { left: auto; right: auto; }
  .top-header-bar .account-btn svg { width: 20px; height: 20px; }
  body.scrolled .top-header-bar .hamburger,
  body.scrolled .top-header-bar .account-btn,
  body.scrolled .top-header-bar .global-back-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* ===== هیرو جدید صفحه اصلی ===== */
  .hero {
    padding-top: 0;
    text-align: center;
    position: relative;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    width: 340px;
    height: 260px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(212,160,23,0.28), rgba(212,160,23,0.08) 60%, transparent);
    filter: blur(20px);
    z-index: -1;
    animation: heroGlow 8s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes heroGlow {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) translateY(0) scale(1); }
    50% { opacity: 1; transform: translateX(-46%) translateY(10px) scale(1.08); }
  }
  .hero h1 {
    font-size: 30px;
    font-weight: 400;
    font-family: Lalezar, VazirmatnBlack, Vazirmatn, Tahoma, sans-serif !important;
    line-height: 1.5;
    margin-bottom: 18px;
    background: none;
    -webkit-text-fill-color: initial;
  }
  .hero h1 .hero-line-1 { color: var(--text); }
  .hero h1 .hero-line-2 { color: var(--text-dim); }
  .hero-desc {
    max-width: 420px;
    margin: 0 auto 26px;
    font-size: 14.5px;
    line-height: 2;
    color: var(--text-dim);
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 700 !important;
  }
  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto 32px;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    display: block;
    width: 100%;
    padding: 16px 0;
    border-radius: 18px;
    font-size: 15px;
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .hero-btn-primary:active,
  .hero-btn-secondary:active { transform: scale(0.98); }
  .hero-btn-primary {
    background: var(--active-bg);
    color: var(--active-text);
    border: none;
  }
  .hero-btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
  }

  /* ===== بخش‌های عمومی صفحه اصلی (پس از هیرو) ===== */
  .section-block { margin-top: 56px; }
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-stagger.in-view {
    transition-delay: calc(var(--reveal-i, 0) * 70ms);
  }
  .signals-grid .reveal:nth-child(1), .news-list .reveal:nth-child(1) { transition-delay: 0ms; }
  .signals-grid .reveal:nth-child(2), .news-list .reveal:nth-child(2) { transition-delay: 80ms; }
  .signals-grid .reveal:nth-child(3), .news-list .reveal:nth-child(3) { transition-delay: 160ms; }
  .signals-grid .reveal:nth-child(4), .news-list .reveal:nth-child(4) { transition-delay: 240ms; }
  .signals-grid .reveal:nth-child(5), .news-list .reveal:nth-child(5) { transition-delay: 320ms; }
  .signals-grid .reveal:nth-child(6), .news-list .reveal:nth-child(6) { transition-delay: 400ms; }
  .section-eyebrow-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(100deg, #f6e27a, #d4a017);
    color: #3a2c02;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
  }
  .section-title2 {
    font-family: Lalezar, VazirmatnBlack, Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 400 !important;
    font-size: 27px;
    line-height: 1.55;
    color: var(--text);
    margin-bottom: 14px;
  }
  .section-title2 .dim { color: var(--text-dim); }
  .section-desc2 {
    font-size: 15px;
    line-height: 2;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 22px;
  }
  .btn-gold, .btn-gold-arrow, .btn-outline-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif !important;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.15s ease;
  }
  .btn-gold, .btn-gold-arrow {
    background: linear-gradient(100deg, #f6e27a, #d4a017);
    color: #2b2102;
  }
  .btn-gold:active, .btn-gold-arrow:active, .btn-outline-pill:active, .hero-btn-primary:active, .hero-btn-secondary:active {
    transform: scale(0.96);
  }
  .btn-gold-arrow { padding-left: 6px; }
  .btn-gold-arrow .arrow-circle {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #14141a;
    color: #f6e27a;
    display: flex; align-items: center; justify-content: center;
    flex: none;
  }
  .btn-gold-arrow .arrow-circle svg { width: 16px; height: 16px; }
  .btn-outline-pill {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
  }
  .btn-outline-pill svg { width: 15px; height: 15px; }

  /* کارت‌های افقی دوره */
  .course-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    margin-bottom: 22px;
    scrollbar-width: none;
  }
  .course-scroll::-webkit-scrollbar { display: none; }
  .course-mini-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: 22px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 14px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
  }
  .course-mini-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    background: linear-gradient(150deg, #2c2c33, #101013);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .course-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  }
  .course-mini-thumb .video-play-icon { position: relative; z-index: 1; }
  .course-mini-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    color: #14141a;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
  }
  .course-mini-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 4px;
  }
  .course-mini-teacher {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 600;
  }

  /* پلیس‌هولدر ویدیوی بزرگ (ورکشاپ) */
  .workshop-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #1c1c22, #0a0a0c);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 1px solid var(--glass-border);
  }
  .workshop-video .video-play-icon { position: relative; z-index: 2; }
  .workshop-video-label {
    position: absolute;
    bottom: 16px;
    right: 18px;
    left: 18px;
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  /* بلوک تصویر جایگزین (تیم/دفتر) */
  .media-photo-block {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(138,111,214,0.16), rgba(20,20,24,0.9));
    border: 1px solid var(--glass-border);
    margin: 20px 0;
  }

  /* اکوسیستم / ما فقط یک آکادمی نیستیم */
  .ecosystem-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 8px auto 0;
    aspect-ratio: 1/1;
  }
  .ecosystem-wrap svg { width: 100%; height: 100%; }
  .ecosystem-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: 18px;
    background: var(--active-bg);
    color: var(--active-text);
    display: flex; align-items: center; justify-content: center;
  }
  .ecosystem-center svg { width: 30px; height: 30px; }
  .ecosystem-node {
    position: absolute;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  }
  .ecosystem-node svg { width: 20px; height: 20px; }
  .ecosystem-node.red { background: #b8203a; }
  .ecosystem-node.gold { background: linear-gradient(135deg,#f6e27a,#d4a017); color:#3a2c02; font-weight:800; font-size:16px; }

  /* فوتر */
  .site-footer {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
  }
  .footer-logo-img { height: 34px; width: auto; display: block; margin: 0 auto 18px; }
  .footer-tagline {
    font-family: Lalezar, VazirmatnBlack, Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 400 !important;
    font-size: 26px;
    text-align: center;
    color: var(--text);
    margin-bottom: 14px;
  }
  .footer-desc {
    font-size: 14.5px;
    line-height: 2;
    color: var(--text-dim);
    text-align: center;
    max-width: 480px;
    margin: 0 auto 22px;
    font-weight: 600;
  }
  .footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 40px;
  }
  .footer-social a {
    color: var(--text-dim);
    display: flex;
  }
  .footer-social svg { width: 22px; height: 22px; }
  .footer-cols {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .footer-col-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
  }
  .footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 12px;
    cursor: pointer;
  }
  .footer-bottom-space { height: 24px; }

  /* فونت خواناتر برای متن‌های ریز (برچسب‌ها، متا، تاریخ و...) */
  .news-meta, .signal-meta .label, .signal-meta .value,
  .asset-pair, .course-mini-teacher, .course-mini-date,
  .news-mini-date, .team-role, .testimonial-role,
  .footer-badge span, .footer-col a, .card-tag, .news-tag,
  .stat-label, .footer-address span, .auth-msg,
  .search-hint, .empty-state {
    font-family: Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
  }

  /* رضایت دانشجو */
  .testimonial-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.testimonial-scroll::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex: 0 0 50%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 11px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.testimonial-video {
  width:500px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.testimonial-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6e27a, #d4a017);
  color: #2b2102;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.testimonial-role {
  font-size: 12.5px;
  color: var(--text-dim);
}

  /* نمادهای اعتماد و آدرس فوتر */
  .footer-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
  }
  .footer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-dim);
  }
  .footer-badge svg { width: 18px; height: 18px; flex: none; color: #d4a017; }
  .footer-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 600;
  }
  .footer-address svg { width: 16px; height: 16px; flex: none; }
  a.footer-address {
    text-decoration: none;
    cursor: pointer;
  }
  a.footer-address:active { opacity: 0.7; }

  /* اسکلت لودینگ موقع تعویض صفحه */
  .page-skeleton {
    position: fixed;
    inset: 0;
    z-index: 400;
    padding: 110px 24px 40px;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .page-skeleton.visible { opacity: 1; }
  .skeleton-bar, .skeleton-block {
    border-radius: 10px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, rgba(128,128,128,0.12) 25%, rgba(128,128,128,0.22) 37%, rgba(128,128,128,0.12) 63%);
    background-size: 400% 100%;
    animation: skeletonShimmer 1.4s ease infinite;
  }
  .skeleton-block { width: 100%; height: 120px; border-radius: 22px; }
  @keyframes skeletonShimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
  }

  /* نشان وضعیت زنده سیگنال */
  .signal-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: #2ea05a;
    margin-top: -8px;
  }
  .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ea05a;
    box-shadow: 0 0 0 rgba(46,160,90,0.5);
    animation: statusPulse 1.8s infinite;
  }
  .signal-status.closed { color: var(--text-dim); }
  .signal-status.closed .status-dot {
    background: var(--text-dim);
    animation: none;
  }
  @keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(46,160,90,0.5); }
    70% { box-shadow: 0 0 0 7px rgba(46,160,90,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,160,90,0); }
  }

  /* تیم مدرسین */
  .team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 14px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card:active {
  transform: scale(0.97);
}

.team-avatar {
  width: 100%;
  height: 190px;
  flex: none;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6e27a, #d4a017);
  color: #2b2102;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-avatar svg {
  width: 52px;
  height: 52px;
}

.team-name {
  width: 100%;
  margin-top: 14px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.6;
}

.team-role {
  width: 100%;
  margin-top: 5px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

.team-empty {
  width: 100%;
  padding: 30px 20px;
  text-align: center;
  color: var(--text-dim);
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-avatar {
    height: 220px;
  }
}

  /* جای‌نگه‌دار عکس/ویدیوی کارت‌ها */
.media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: rgba(128,128,128,0.08);
  border: 1.5px dashed var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.media-placeholder svg {
  width: 30px;
  height: 30px;
}

.media-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.team-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}

  /* اسپینر لودینگ دکمه */
  .auth-submit.is-loading { cursor: default; opacity: 0.9; }
  .btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid rgba(43,33,2,0.3);
    border-top-color: #2b2102;
    animation: btnSpin 0.7s linear infinite;
  }
  @keyframes btnSpin {
    to { transform: rotate(360deg); }
  }

  /* آمار و اعتماد */
  .stats-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    text-align: center;
    padding: 26px 10px;
    border-radius: 22px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
  }
  .stat-item { flex: 1; }
  .stat-number {
    font-family: Lalezar, VazirmatnBlack, Vazirmatn, Tahoma, sans-serif !important;
    font-weight: 400 !important;
    font-size: 30px;
    color: var(--text);
    margin-bottom: 6px;
  }
  .stat-label {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 700;
  }

  /* سوالات متداول */
  .faq-list { display: flex; flex-direction: column; gap: 12px; }
  .faq-item {
    border-radius: 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
  }
  .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: VazirmatnExtraBold, Vazirmatn, Tahoma, sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
    text-align: right;
  }
  .faq-icon {
    flex: none;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim);
    transition: transform 0.25s ease;
  }
  .faq-icon svg { width: 16px; height: 16px; }
  .faq-item.open .faq-icon { transform: rotate(180deg); }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .faq-answer p {
    padding: 0 18px 18px;
    margin: 0;
    font-size: 14px;
    line-height: 2;
    color: var(--text-dim);
    font-weight: 600;
  }

  /* کارت‌های افقی اخبار/مطالب */
  .news-mini-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .news-mini-scroll::-webkit-scrollbar { display: none; }
  .news-mini-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 16px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    cursor: pointer;
  }
  .news-mini-icon {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    background: rgba(128,128,128,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
  }
  .news-mini-icon svg { width: 20px; height: 20px; }
  .news-mini-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 8px;
  }
  .news-mini-date {
    font-size: 13px;
    font-weight: 700;
    color: #d4a017;
  }

  .course-detail {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
}

.course-detail h1 {
    margin-bottom: 20px;
}

.course-description {
    line-height: 2;
    margin-bottom: 30px;
}

.course-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.course-info-item {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.course-info-item span {
    display: block;
    margin-bottom: 10px;
}

.course-info-item strong {
    display: block;
}
.course-video-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.course-video-page h1 {
    margin-bottom: 25px;
}

.course-video {
    width: 100%;
    max-height: 700px;
    display: block;
    border-radius: 12px;
}

.course-video {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    display: block;
}

.course-video-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.course-video-page h1 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.course-description {
    line-height: 2;
    margin-top: 0;
}

.video-close-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #222;
    color: white;
    font-size: 28px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.video-close-btn:hover {
    opacity: 0.8;
}
/* =========================
   Signal Detail Page
========================= */

.signal-detail-page {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 16px 60px;
}
.signal-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.signal-detail-symbol {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}

.signal-detail-direction {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
}

.signal-detail-direction.long {
  color: #35d07f;
}

.signal-detail-direction.short {
  color: #ff5c6c;
}

.signal-detail-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(128, 128, 128, 0.1);
}

.signal-detail-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.signal-detail-status.active {
  color: #35d07f;
}

.signal-detail-status.closed,
.signal-detail-status.cancelled,
.signal-detail-status.expired {
  color: var(--text-dim);
}

.signal-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.signal-detail-box {
  padding: 18px;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.detail-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 12px;
}

.signal-detail-box strong {
  font-size: 17px;
  color: var(--text);
}

.signal-detail-section {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.signal-detail-section h2 {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--text);
}

.signal-detail-tps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signal-detail-tp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(128, 128, 128, 0.08);
}

.signal-detail-tp span {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
}

.signal-detail-tp strong {
  color: #35d07f;
  font-size: 15px;
}

.signal-detail-sl {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 92, 108, 0.08);
  color: #ff5c6c;
  font-weight: 800;
  font-size: 16px;
}

.signal-detail-analysis {
  line-height: 2;
  color: var(--text);
  font-size: 14px;
}

.signal-detail-empty {
  color: var(--text-dim);
  font-size: 13px;
}

.signal-detail-time {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 10px;
}


@media (max-width: 600px) {

  .signal-detail-page {
    padding: 18px 12px 45px;
  }

  .signal-detail-header {
    padding: 16px;
  }

  .signal-detail-symbol {
    font-size: 23px;
  }

  .signal-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .signal-detail-section {
    padding: 16px;
  }

}