html { scroll-behavior: smooth; color-scheme: light; }
  /* Selects: force readable options even in OS dark mode (dark text on white, both closed & popup) */
  select { color: #102A43; background-color: #ffffff; }
  select option, select optgroup { color: #102A43; background-color: #ffffff; }
  body { font-family: 'Inter', 'Vazirmatn', system-ui, sans-serif; background: #F7F8F6; color: #102A43; font-size: 16px; line-height: 1.6; }
  html[dir="rtl"] body { font-family: 'Vazirmatn', 'Inter', system-ui, sans-serif; }
  html[dir="rtl"] { text-align: right; }
  .view { display: none; }
  .view.active { display: block; }
  .focus-ring:focus { outline: 2px solid #102A43; outline-offset: 2px; }
  .scrollbar-thin::-webkit-scrollbar { height: 6px; width: 6px; }
  .scrollbar-thin::-webkit-scrollbar-thumb { background: #D9E2EC; border-radius: 3px; }
  .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
  input, select, textarea { font-size: 16px; }
  .table-scroll { overflow-x: auto; }
  /* RTL fixes */
  html[dir="rtl"] .rtl-flip { transform: scaleX(-1); }
  html[dir="rtl"] .text-left { text-align: right; }
  html[dir="rtl"] .text-right { text-align: left; }
  html[dir="rtl"] th, html[dir="rtl"] td { text-align: right; }
  @media (max-width: 768px) {
    .hide-mobile { display: none !important; }
  }

  /* ============================================================
     CUSTOM SELECT DROPDOWN — دروپ‌داون سفارشی مستقل از پاپ‌آپ بومی مرورگر
     (حالت تاریک سیستم/بعضی مرورگرها گزینه‌های select بومی را نامرئی یا
     نامرتب نشان می‌دهد؛ این پنل کاملاً با CSS خودمان رندر می‌شود)
     ساختار DOM توسط initCustomSelects در site.js ساخته می‌شود.
     ============================================================ */
  .c-select { position: relative; min-width: 110px; }
  .c-select__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    background-color: #ffffff;
    color: #102A43;
    border: 1px solid #D9E2EC;
    border-radius: 8px;
    font-size: 16px;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.15s ease;
  }
  .c-select__btn:hover,
  .c-select--open .c-select__btn { border-color: #102A43; }
  .c-select__btn:focus-visible { outline: 2px solid #102A43; outline-offset: 2px; }
  .c-select__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .c-select__arrow {
    width: 0;
    height: 0;
    flex-shrink: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #627D98;
    transition: transform 0.15s ease;
  }
  .c-select--open .c-select__arrow { transform: rotate(180deg); }
  .c-select__panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #D9E2EC;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(16, 42, 67, 0.14);
    padding: 4px;
    z-index: 70;
    max-height: 260px;
    overflow-y: auto;
  }
  .c-select--open .c-select__panel { display: block; }
  .c-select__opt {
    padding: 11px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #102A43;
    font-size: 15px;
    line-height: 1.6;
  }
  .c-select__opt.is-active,
  .c-select__opt:hover { background-color: #F7F8F6; }
  .c-select__opt.is-selected { background-color: #F0F4F8; font-weight: 600; }
