<?php include "includes/header.php"; ?>
<style>
  @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Sora:wght@400;500;600;700&display=swap');

  body,
  html {
    margin: 0;
    padding: 0;
  }

  * {
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
    background: radial-gradient(circle at 0% 0%, #f6eecb 0%, #f3f6fb 34%, #eef2f8 100%);
    color: #1d2838;
    font-family: 'Sora', 'Segoe UI', sans-serif;
  }

  .brokers-container {
    padding: 28px 0 40px;
  }

  .main-broker-page.container {
    width: min(1380px, calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .broker-sidebar {
    position: sticky;
    top: 88px;
  }

  .custom-broker-filter {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(184, 134, 11, 0.18);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(20, 36, 63, 0.11);
    overflow: hidden;
  }

  .custom-filter-title {
    margin: 0;
    padding: 18px 18px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #1f2d44;
    border-bottom: 1px solid #edf1f8;
    background: linear-gradient(135deg, #fff8e7 0%, #ffffff 100%);
  }

  .custom-filter-search {
    padding: 12px 14px 0;
  }

  .custom-filter-search input {
    width: 100%;
    height: 40px;
    border-radius: 11px;
    border: 1px solid #d8e0ee;
    padding: 0 12px;
    font-size: 0.9rem;
    color: #344155;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .custom-filter-search input:focus {
    border-color: #c7932f;
    box-shadow: 0 0 0 3px rgba(199, 147, 47, 0.12);
  }

  .custom-filter-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0 12px 8px;
    max-height: calc(100vh - 290px);
    overflow: auto;
  }

  .custom-filter-list::-webkit-scrollbar {
    width: 7px;
  }

  .custom-filter-list::-webkit-scrollbar-thumb {
    background: rgba(160, 171, 193, 0.7);
    border-radius: 999px;
  }

  .custom-filter-item {
    margin: 0;
  }

  .custom-filter-item label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 8px;
    border-radius: 10px;
    color: #3f4b62;
    font-size: 0.83rem;
    line-height: 1.38;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
  }

  .custom-filter-item label:hover {
    background: #f4f8ff;
    color: #24334d;
  }

  .custom-filter-item input[type='checkbox'] {
    margin-top: 2px;
    accent-color: #c7932f;
    transform: scale(1.05);
    flex: 0 0 auto;
  }

  .custom-filter-item.hidden {
    display: none;
  }

  .more-regulators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 10px 12px 14px;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px dashed rgba(184, 134, 11, 0.55);
    background: #fff8e6;
    color: #8a6616;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .more-regulators:hover {
    background: #fff2d2;
    border-color: rgba(184, 134, 11, 0.8);
  }

  .more-regulators.expanded .iconfont {
    transform: rotate(180deg);
  }

  .broker-content {
    min-width: 0;
  }

  #jgtab.jgtab {
    display: inline-flex;
    gap: 8px;
    padding: 8px;
    margin: 0 0 16px;
    border: 1px solid #e1e7f2;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px rgba(20, 36, 63, 0.08);
  }

  .jgtab-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #60708c;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
  }

  .jgtab-list:hover {
    color: #304159;
    background: #f3f7ff;
  }

  .jgtab-list-active {
    color: #1f2f49;
    background: linear-gradient(135deg, #ffe9a8 0%, #ffd36f 100%);
    box-shadow: 0 8px 16px rgba(204, 149, 47, 0.28);
  }

  .jgtab-list .iconfont {
    font-size: 17px;
  }

  .jgtab-list-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
  }

  .jgtab-list-num {
    font-size: 0.72rem;
    background: rgba(16, 32, 61, 0.08);
    color: inherit;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
  }

  #all-members-section,
  #full-disclosure-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e3e9f4;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(16, 27, 46, 0.09);
    overflow: hidden;
  }

  .pilou-content {
    padding: 18px;
  }

  .pilou-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .pilou-type {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
  }

  .pilou-type li {
    min-width: 96px;
    text-align: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e1e7f3;
    background: #f8faff;
    color: #5f6e87;
    cursor: pointer;
    transition: all 0.22s ease;
  }

  .pilou-type li p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
  }

  .pilou-type li:hover {
    border-color: rgba(199, 147, 47, 0.42);
    color: #314663;
  }

  .pilou-type li.active {
    background: linear-gradient(135deg, #ffecb6 0%, #ffd97f 100%) !important;
    border-color: rgba(199, 147, 47, 0.58);
    color: #2f2511 !important;
    box-shadow: 0 8px 16px rgba(204, 149, 47, 0.24);
  }

  .content-pl {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 14px;
  }

  .content-pl .item {
    width: 100%;
    height: auto;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .dealer-supervise-item {
    position: relative;
    background: #ffffff;
    border: 1px solid #e7ecf4;
    border-radius: 14px;
    padding: 14px 14px 12px;
    box-shadow: 0 8px 20px rgba(12, 30, 60, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 188px;
  }

  .dealer-supervise-item:hover {
    transform: translateY(-3px);
    border-color: rgba(199, 147, 47, 0.35);
    box-shadow: 0 14px 24px rgba(12, 30, 60, 0.13);
  }

  .dealer-supervise-item .line1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }

  .dealer-supervise-item .date {
    font-size: 0.75rem;
    color: #8a95a9;
    font-weight: 600;
  }

  .dealer-supervise-item .tag {
    border-radius: 999px;
    padding: 4px 10px;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
  }

  .dealer-supervise-item .tag p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
  }

  .dealer-supervise-item .line2 {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    min-height: auto;
  }

  .dealer-supervise-item .line2 .top {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 700;
    color: #23324a;
    text-decoration: none;
    margin-bottom: 12px;
  }

  .dealer-supervise-item .line2 .top:hover {
    color: #b88412;
  }

  .dealer-supervise-item .bot {
    padding-top: 10px;
    border-top: 1px dashed #e6ebf3;
  }

  .dealer-supervise-item .jys {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 6px;
  }

  .dealer-supervise-item .jys .img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5ebf5;
    position: relative;
    z-index: 1;
  }

  .dealer-supervise-item .jys::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: url('/tradersafety/assets/images/logo_bg.png') center center no-repeat;
    background-size: contain;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
  }

  .dealer-supervise-item .jysname {
    font-size: 0.82rem;
    color: #58667f;
    font-weight: 600;
  }

  .dealer-supervise-item .iconfont {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 18px;
    opacity: 0.75;
  }

  .dealer-supervise-item.lv1 {
    border-left: 4px solid #e5ad16;
  }

  .dealer-supervise-item.lv2 {
    border-left: 4px solid #d95a26;
  }

  .dealer-supervise-item.lv3 {
    border-left: 4px solid #963449;
  }

  @media (max-width: 1120px) {
    .main-broker-page.container {
      grid-template-columns: 1fr;
    }

    .broker-sidebar {
      position: static;
    }

    .custom-filter-list {
      max-height: 320px;
    }
  }

  @media (max-width: 760px) {
    .brokers-container {
      padding-top: 14px;
    }

    .main-broker-page.container {
      width: min(100% - 14px, 1380px);
      gap: 14px;
    }

    #jgtab.jgtab {
      width: 100%;
      justify-content: space-between;
      gap: 6px;
      padding: 6px;
    }

    .jgtab-list {
      flex: 1;
      justify-content: center;
      padding: 10px 8px;
    }

    .jgtab-list-text {
      font-size: 0.82rem;
    }

    .jgtab-list-num {
      font-size: 0.64rem;
    }

    .content-pl {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .dealer-supervise-item {
      min-height: 170px;
    }
  }
</style>

<!-- Add CSS and JS -->

<div class="brokers-container">
  <div class="main-broker-page container">
    <div class="broker-sidebar">
      <div class="custom-broker-filter">
        <h2 class="custom-filter-title">Filter by Regulator</h2>
        <form id="regulatorForm" method="GET">
          <div class="custom-filter-search">
            <input type="text" id="regulatorSearch" placeholder="Search regulator..." autocomplete="off">
          </div>
          <ul class="custom-filter-list" id="regulatorList">
            <?php
            $regulatorsList = [
              "Securities and Futures Commission of Hong Kong",
              "Australia Securities & Investment Commission",
              "Financial Services Agency",
              "Financial Conduct Authority",
              "National Commission for Companies and the Stock Exchange",
              "Central Bank of Russia",
              "Cyprus Securities and Exchange Commission",
              "Federal Financial Supervisory Authority",
              "The Autorité des Marchés Financiers",
              "China Financial Futures Exchange",
              "Swiss Financial Market Supervisory Authority",
              "Financial Markets Authority",
              "National Bank of the Republic of Belarus",
              "Financial Sector Conduct Authority",
              "Taipei Exchange",
              "Securities and Futures Bureau",
              "The Financial Industry Regulatory Authority",
              "Canadian Investment Regulatory Organization",
              "Central Bank of Ireland",
              "Hong Kong Gold Exchange",
              "Bank of Lithuania",
              "Securities and Exchange Commission",
              "BANQUE DU LIBAN",
              "Monetary Authority of Singapore",
              "Mwali International Services Authority",
              "Financial Crimes Enforcement Network",
              "Czech national bank",
              "The Securities Commission Malaysia",
              "Labuan Financial Services Authority",
              "Comisión Nacional del Mercado de valores",
              "Jakarta Futures Exchange",
              "Securities and Commodities Authority",
              "The Financial Services Commission",
              "Malta Financial Services Authority",
              "Abu Dhabi Global Market",
              "Dubai Financial Services Authority",
              "Badan Pengawas Perdagangan Berjangka Komoditi Kementerian Perdagangan",
              "Capital Markets Authority LEBANON",
              "The Israel Securities Authority",
              "Indonesia Commodity and Derivatives Exchange",
              "National Futures Association",
              "Portuguese Securities Market Commission",
              "Vanuatu Financial Services Commission",
              "The Securities Commission of The Bahamas",
              "Cayman Islands Monetary Authority",
              "Financial Services Commission",
              "Financial Transactions and Reports Analysis Centre of Canada",
              "The Capital Market Commission",
              "British Virgin Islands Financial Services Commission",
              "Anjouan Offshore Finance Authority",
              "The Financial Supervision Authority",
              "Polish Financial Supervision Authority",
              "Securities and Exchange Regulator of Cambodia",
              "Financial Services Authority",
              "The Seychelles Financial Services Authority",
              "The Astana Financial Services Authority",
              "Financial Supervisory Service"
            ];

            $selected = $_GET['regulators'] ?? [];

            foreach ($regulatorsList as $reg) {
              $isChecked = in_array($reg, $selected) ? 'checked' : '';
              echo "<li class=\"custom-filter-item\">
              <label>
                <input type=\"checkbox\" name=\"regulators[]\" value=\"$reg\" $isChecked onchange=\"this.form.submit()\"> $reg
              </label>
            </li>";
            }
            ?>
          </ul>
        </form>


        <div class="more-regulators" id="moreRegulators">
          <span>more regulators</span>
          <i class="iconfont icon-arrow-down"></i>
        </div>
      </div>
    </div>

    <div class="broker-content">


      <div id="jgtab" class="jgtab">
        <div class="jgtab-list jgtab-list-active" data-tab="all-members">
          <span class="iconfont icon-crown1"></span>
          <span class="jgtab-list-text">All members</span>
          <span class="jgtab-list-num">99+</span>
        </div>
        <div class="jgtab-list" data-tab="full-disclosure">
          <span class="iconfont icon-Union"></span>
          <span class="jgtab-list-text">Full disclosure</span>
          <span class="jgtab-list-num">99+</span>
        </div>
      </div>

      <!-- All Members Section -->
      <div id="all-members-section" style="display:block;">

        <?php include __DIR__ . "/includes/broker.php"; ?></div>

      <!-- Full Disclosure Section -->
      <div id="full-disclosure-section" style="display:none;">
        <div class="pilou-content">
          <div class="pilou-card">
            <ul class="pilou-type">
              <li class="active" data-filter="all">
                <p>All</p>
              </li>
              <li data-filter="warning">
                <p>Warning</p>
              </li>
              <li data-filter="danger">
                <p>Danger</p>
              </li>
              <li data-filter="sanction">
                <p>Sanction</p>
              </li>
            </ul>

            <div class="content-pl" id="disclosure-items">

              <div class="item" data-type="danger">
                <section class="dealer-supervise-item lv2">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color:#DA541E;">
                        <p>Danger</p>
                      </div>
                    </div>
                    <div class="date">
                      2025-04-24
                    </div>
                  </div>
                  <div class="line2">
                    <a href="/en/regulator/disclosures/202504290311342616.html?path=1" target="_blank" class="top">WARNING! Be wary of dealing with this business as it is unlicensed in Australia.</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/4127708187/FXT4127708187_987485.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          CapitalXtrade
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <i class="iconfont icon-Icon-solid-weixian lv2"></i> <!---->
                </section>
              </div>

              <div class="item" data-type="warning">
                <section class="dealer-supervise-item lv1">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color:#EDA40A;">
                        <p>Warning</p>
                      </div>
                    </div>
                    <div class="date">
                      2025-04-21
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202504280353228377.html?path=1" target="_blank" class="top">List of entities with detected signs of illegal activities in the financial market</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/1507933252/FXT1507933252_379048.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          ActiveBroker
                        </div>
                      </div> <!---->
                    </div>
                  </div> <i class="iconfont icon-Icon-solid-jinggao lv1"></i> <!----> <!---->
                </section>
              </div>

              <div class="item" data-type="danger">
                <section class="dealer-supervise-item lv2">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color:#DA541E;">
                        <p>Danger</p>
                      </div>
                    </div>
                    <div class="date">
                      2025-04-14
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202504270247158209.html?path=1" target="_blank" class="top">CRYPTOSMART </a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/3027639678/FXT3027639678_243399.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          CRYPTOSMART
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <i class="iconfont icon-Icon-solid-weixian lv2"></i> <!---->
                </section>
              </div>
              <div class="item" data-type="danger">
                <section class="dealer-supervise-item lv2">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color:#DA541E;">
                        <p>Danger</p>
                      </div>
                    </div>
                    <div class="date">
                      2025-04-11
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202504180311547279.html?path=1" target="_blank" class="top">WARNING! Be wary of dealing with this business as it is unlicensed in Australia.</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/test/ico/637614289666607613/FXT637614289666607613_787562.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          Kwakol Markets
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <i class="iconfont icon-Icon-solid-weixian lv2"></i> <!---->
                </section>
              </div>
              <div class="item" data-type="danger">
                <section class="dealer-supervise-item lv2">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color:#DA541E;">
                        <p>Danger</p>
                      </div>
                    </div>
                    <div class="date">
                      2025-04-08
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202504230720384461.html?path=1" target="_blank" class="top">Digital-Income</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://resources1.interface003.com/web20/img/default/20-20.png" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          Digital-Income
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <i class="iconfont icon-Icon-solid-weixian lv2"></i> <!---->
                </section>
              </div>
              <div class="item" data-type="danger">
                <section class="dealer-supervise-item lv2">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color:#DA541E;">
                        <p>Danger</p>
                      </div>
                    </div>
                    <div class="date">
                      2025-04-08
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202504210146555255.html?path=1" target="_blank" class="top">TRCryptoMasters / trcryptomasters.com</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://resources1.interface003.com/web20/img/default/20-20.png" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          Trcryptomasters
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <i class="iconfont icon-Icon-solid-weixian lv2"></i> <!---->
                </section>
              </div>
              <div class="item" data-type="danger">
                <section class="dealer-supervise-item lv2">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color:#DA541E;">
                        <p>Danger</p>
                      </div>
                    </div>
                    <div class="date">
                      2025-04-08
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202504160202164749.html?path=1" target="_blank" class="top">WARNING</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/3603444412/FXT3603444412_793803.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          Surgirux
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <i class="iconfont icon-Icon-solid-weixian lv2"></i> <!---->
                </section>
              </div>
              <div class="item" data-type="danger">
                <section class="dealer-supervise-item lv2">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color:#DA541E;">
                        <p>Danger</p>
                      </div>
                    </div>
                    <div class="date">
                      2025-04-03
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202504091045426573.html?path=1" target="_blank" class="top">WARNING! Be wary of dealing with this business as it is unlicensed in Australia.</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/3549363591/FXT3549363591_585551.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          FxRevenues
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <i class="iconfont icon-Icon-solid-weixian lv2"></i> <!---->
                </section>
              </div>
              <div class="item" data-type="danger">
                <section class="dealer-supervise-item lv2">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color:#DA541E;">
                        <p>Danger</p>
                      </div>
                    </div>
                    <div class="date">
                      2025-04-01
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202504170717081338.html?path=1" target="_blank" class="top">Global Target FX / globaltargetfx.io</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/1068351002/FXT1068351002_218055.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          GlobalTargetFx
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <i class="iconfont icon-Icon-solid-weixian lv2"></i> <!---->
                </section>
              </div>
              <div class="item" data-type="danger">
                <section class="dealer-supervise-item lv2">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color:#DA541E;">
                        <p>Danger</p>
                      </div>
                    </div>
                    <div class="date">
                      2025-04-01
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202504150203058392.html?path=1" target="_blank" class="top">VENUS4T / venus4t.com</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/29008158594/FXT29008158594_398581.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          Venus4T
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <i class="iconfont icon-Icon-solid-weixian lv2"></i> <!---->
                </section>
              </div>

              <div class="item" data-type="warning">
                <section class="dealer-supervise-item lv1">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color:#EDA40A;">
                        <p>Warning</p>
                      </div>
                    </div>
                    <div class="date">
                      2025-03-31
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202504250242206801.html?path=1" target="_blank" class="top">List of entities with detected signs of illegal activities in the financial market</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/3289914592/FXT3289914592_117869.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          petroleobrasileirc
                        </div>
                      </div> <!---->
                    </div>
                  </div>
                  <i class="iconfont icon-Icon-solid-jinggao lv1"></i> <!----> <!---->
                </section>
              </div>

              <div class="item" data-type="sanction">
                <section class="dealer-supervise-item lv3">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color: rgb(155, 39, 58);">
                        <p>Sanction</p>
                      </div>
                    </div>
                    <div class="date">
                      2024-02-23
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202403070753112166.html?path=1" target="_blank" class="top">Violations of companies licensed by SCA Noor Capital Company</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/1589697479/FXT1589697479_751233.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          Noor Clearing
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <!----> <i class="iconfont icon-Icon-Solid-chufa lv3"></i>
                </section>
              </div>


              <div class="item" data-type="sanction">
                <section class="dealer-supervise-item lv3">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color: rgb(155, 39, 58);">
                        <p>Sanction</p>
                      </div>
                    </div>
                    <div class="date">
                      2024-02-23
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202403070733363220.html?path=1" target="_blank" class="top">Violations of listed PJSCs in financial markets Al Hilal Bank</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/637151408162438778/FXT637151408162438778_697773.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          AL HILAL BANK
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <!----> <i class="iconfont icon-Icon-Solid-chufa lv3"></i>
                </section>
              </div>

              <div class="item" data-type="sanction">
                <section class="dealer-supervise-item lv3">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color: rgb(155, 39, 58);">
                        <p>Sanction</p>
                      </div>
                    </div>
                    <div class="date">
                      2024-02-05
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202403080821146405.html?path=1" target="_blank" class="top"> 大展證券股份有限公司Cases of punishment for violating securities management laws and regulations by its employees. (Financial Securities Regulatory Commission No. 11203549191)</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/636972615842682800/FXT636972615842682800_201801.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          TACHAN
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <!----> <i class="iconfont icon-Icon-Solid-chufa lv3"></i>
                </section>
              </div>



              <div class="item" data-type="sanction">
                <section class="dealer-supervise-item lv3">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color: rgb(155, 39, 58);">
                        <p>Sanction</p>
                      </div>
                    </div>
                    <div class="date">
                      2023-12-11
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202404180959072035.html?path=1" target="_blank" class="top">Notice of Revocation of the Financial Dealers License.</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/2813148389/FXT2813148389_833716.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          NEP AU
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <!----> <i class="iconfont icon-Icon-Solid-chufa lv3"></i>
                </section>
              </div>

              <div class="item" data-type="sanction">
                <section class="dealer-supervise-item lv3">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color: rgb(155, 39, 58);">
                        <p>Sanction</p>
                      </div>
                    </div>
                    <div class="date">
                      2023-12-07
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202403070805324691.html?path=1" target="_blank" class="top">Administrative monetary penalty on Canadian Imperial Bank of Commerce</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/636801213488287038/FXT636801213488287038_323434.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          CIBC
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <!----> <i class="iconfont icon-Icon-Solid-chufa lv3"></i>
                </section>
              </div>

              <div class="item" data-type="sanction">
                <section class="dealer-supervise-item lv3">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color: rgb(155, 39, 58);">
                        <p>Sanction</p>
                      </div>
                    </div>
                    <div class="date">
                      2023-11-07
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202403080837451612.html?path=1" target="_blank" class="top">Punishment case regarding Qunyi Jinding Securities Co., Ltd.’s violation of securities management laws (Financial Securities Penalty No. 1120351211)</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/636972399099859334/FXT636972399099859334_443958.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          The Capital Group
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <!----> <i class="iconfont icon-Icon-Solid-chufa lv3"></i>
                </section>
              </div>

              <div class="item" data-type="sanction">
                <section class="dealer-supervise-item lv3">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color: rgb(155, 39, 58);">
                        <p>Sanction</p>
                      </div>
                    </div>
                    <div class="date">
                      2023-10-27
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202403080846439357.html?path=1" target="_blank" class="top"> HUA NAN SECURITIESPunishment case for violation of securities management laws by a joint-stock company (Financial Securities Penalty No. 1120336432)</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/636972608188092499/FXT636972608188092499_263721.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          HUA NAN SECURITIES
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <!----> <i class="iconfont icon-Icon-Solid-chufa lv3"></i>
                </section>
              </div>


              <div class="item" data-type="sanction">
                <section class="dealer-supervise-item lv3">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color: rgb(155, 39, 58);">
                        <p>Sanction</p>
                      </div>
                    </div>
                    <div class="date">
                      2023-10-26
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202403080851125309.html?path=1" target="_blank" class="top"> Mega SecuritiesPunishment case against a joint stock company and its employees for violating securities management laws (Financial Securities Regulatory Commission No. 1120349362; Financial Supervisory Securities Commission No. 11203493621)</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/637070219937462640/FXT637070219937462640_883536.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          Mega Securities
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <!----> <i class="iconfont icon-Icon-Solid-chufa lv3"></i>
                </section>
              </div>


              <div class="item" data-type="sanction">
                <section class="dealer-supervise-item lv3">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color: rgb(155, 39, 58);">
                        <p>Sanction</p>
                      </div>
                    </div>
                    <div class="date">
                      2023-10-25
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202403080906519535.html?path=1" target="_blank" class="top">Case of disciplinary action against SinoPac Securities Co., Ltd. for violating securities administration laws. (Financial Securities Regulatory Commission No. 1120338098)</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/637279907812751591/FXT637279907812751591_897207.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          SinoPac Holdings
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <!----> <i class="iconfont icon-Icon-Solid-chufa lv3"></i>
                </section>
              </div>

              <div class="item" data-type="sanction">
                <section class="dealer-supervise-item lv3">
                  <div class="line1">
                    <div class="left">
                      <div class="tag" style="background-color: rgb(155, 39, 58);">
                        <p>Sanction</p>
                      </div>
                    </div>
                    <div class="date">
                      2023-10-25
                    </div>
                  </div>
                  <div class="line2"><a href="/en/regulator/disclosures/202403080858549991.html?path=1" target="_blank" class="top"> President Securities CorporationA case of punishment of a joint stock company and its employees for violating securities management laws. (Financial Securities Co., Ltd. No. 11203579781; Financial Management Securities Co., Ltd. No. 1120357978)</a> <!---->
                    <div class="bot">
                      <div class="jys"><img src="https://eimgjys.fxeyee.com/ico/637648934528488081/FXT637648934528488081_758290.png_wiki-template-global" onerror="this.src = 'https://resources1.interface003.com/web20/img/default/20-20.png';this.onerror = null;" alt="" class="img">
                        <div class="jysname">
                          President Securities Corporation
                        </div>
                      </div> <!---->
                    </div>
                  </div> <!----> <!----> <i class="iconfont icon-Icon-Solid-chufa lv3"></i>
                </section>
              </div>


              <!--<a href="/en/download.html" target="_blank" class="item item-ll">-->
              <!--  <img src="https://resources1.interface003.com/web20/img/search/logo-icon.svg">-->
              <!--  <div class="itemtext">-->
              <!--    <p>Download WikiFX APP</p>-->
              <!--    <p>View more information</p>-->
              <!--  </div>-->
              <!--</a>-->
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <?php include "includes/footer.php"; ?>
  <script>
    // ==========================================
    // 1. IMAGE FALLBACK CODE (Broken images fix)
    // ==========================================
    document.addEventListener('DOMContentLoaded', function() {
      const allImages = document.querySelectorAll('img');
      allImages.forEach(img => {
        img.addEventListener('error', function() {
          // Agar image load nahi hoti, toh company ke naam ka ek sundar avatar bana dega
          let altText = this.getAttribute('alt') || 'Broker';
          let name = altText.replace(/logo/i, '').trim();
          this.src = `https://ui-avatars.com/api/?name=${encodeURIComponent(name)}&background=f3f6fb&color=c7932f&bold=true&size=128`;
          this.onerror = null; // Taaki infinite loop na bane
        });
      });
    });

    // ==========================================
    // 2. AAPKA REGULATOR FILTER WALA CODE
    // ==========================================
    function filterBrokers() {
      const form = document.getElementById('regulatorForm');
      const formData = new FormData(form);

      fetch('filter_brokers.php', {
          method: 'POST',
          body: formData
        })
        .then(response => response.text())
        .then(data => {
          document.getElementById('brokerResults').innerHTML = data;
        })
        .catch(error => {
          console.error('Error:', error);
        });
    }

    document.addEventListener('DOMContentLoaded', function() {
      const searchInput = document.getElementById('regulatorSearch');
      const regulatorList = document.getElementById('regulatorList');
      const moreRegulators = document.getElementById('moreRegulators');
      if (!searchInput || !regulatorList) return;

      const items = Array.from(regulatorList.querySelectorAll('.custom-filter-item'));
      const SHOW_COUNT = 10;

      function resetCollapsedView() {
        items.forEach((item, i) => {
          item.style.display = '';
          if (moreRegulators && !moreRegulators.classList.contains('expanded')) {
            item.classList.toggle('hidden', i >= SHOW_COUNT);
          }
        });
      }

      searchInput.addEventListener('input', function() {
        const query = this.value.trim().toLowerCase();

        if (!query) {
          if (moreRegulators) moreRegulators.style.display = 'flex';
          resetCollapsedView();
          return;
        }

        if (moreRegulators) moreRegulators.style.display = 'none';

        items.forEach(item => {
          item.classList.remove('hidden');
          const text = item.textContent.toLowerCase();
          item.style.display = text.includes(query) ? '' : 'none';
        });
      });
    });
  </script>
  <script src="js/tabs.js"></script>