    :root {
      --primary-color: #0d6efd;
      --score-color: #9e4229;
    }

    .broker-page {
      width: 100%;
      max-width: 1400px;
      margin: 0 auto;
      padding: clamp(16px, 3vw, 32px) 0;
    }

    .broker-link {
      text-decoration: none !important;
      color: inherit;
    }

    .broker-card {
      background: #fff;
      border: 1px solid #eaeaea;
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    }

    .broker-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
      border-color: var(--primary-color);
    }

    .broker-logo-container {
      min-height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 8px 0;
      position: relative;
      overflow: hidden;
    }

    .broker-logo {
      max-width: 140px;
      width: 100%;
      max-height: 60px;
      object-fit: contain;
      position: relative;
      z-index: 1;
    }

    .broker-logo-container::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url('<?php echo $base_url; ?>/assets/images/logo_bg.png') center center no-repeat;
      background-size: contain;
      opacity: 0.2;
      pointer-events: none;
    }

    .score-box {
      border-left: 1px solid #eee;
      color: var(--score-color);
    }

    .broker-card .row {
      --bs-gutter-x: 1.25rem;
      --bs-gutter-y: 1rem;
    }

    .broker-card h4 {
      word-break: break-word;
    }

    .broker-card .badge,
    .broker-card .text-muted,
    .broker-card .small {
      word-break: break-word;
    }

    .reg-badge {
      font-size: 0.75rem;
      padding: 4px 10px;
      border-radius: 50px;
    }

    .pagination {
      flex-wrap: wrap;
      gap: 8px;
    }

    .pagination .page-link {
      min-width: 42px;
      text-align: center;
    }

    @media (max-width: 768px) {
      .broker-page {
        padding: 12px 0 20px;
      }

      .container.py-5 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
      }

      .broker-card {
        border-radius: 16px;
      }

      .broker-card .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0.75rem;
      }

      .broker-card .col-12 {
        padding-left: 0;
        padding-right: 0;
      }

      .broker-card .p-4 {
        padding: 1rem !important;
      }

      .score-box {
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 14px;
        margin-top: 8px;
      }

      .broker-logo-container {
        min-height: 56px;
        justify-content: flex-start;
      }

      .broker-logo {
        max-width: 120px;
        max-height: 52px;
      }

      .broker-card h4 {
        font-size: 1.05rem;
      }

      .pagination {
        gap: 6px;
      }

      .pagination.pagination-lg .page-link {
        padding: 0.45rem 0.7rem;
        font-size: 0.95rem;
      }
    }

    @media (max-width: 480px) {
      .broker-page {
        padding: 10px 0 16px;
      }

      .broker-card {
        border-radius: 14px;
      }

      .broker-card .p-4 {
        padding: 0.9rem !important;
      }

      .broker-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem !important;
      }

      .broker-card .d-flex.gap-3 {
        gap: 0.5rem !important;
      }

      .reg-badge {
        font-size: 0.7rem;
      }

      .score-box .display-6 {
        font-size: 1.9rem;
      }

      .pagination .page-link {
        min-width: 38px;
        padding: 0.35rem 0.6rem;
      }
    }


    @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;
    }

    .broker-page-wrap {
      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: calc(var(--site-header-height, 116px) + 12px);
    }

    .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;
      box-sizing: border-box;
      width: 100%;
      max-width: 320px;
      /* constrain on wide screens to match sidebar */
      margin-bottom: 12px;
    }

    .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;
        width: 330px;
      }
    }

    /* Mobile filter button */
    .mobile-filter-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      padding: 10px 12px;
      margin-bottom: 10px;
      border-radius: 12px;
      border: 1px solid rgba(14, 32, 64, 0.06);
      background: linear-gradient(180deg, #fff, #fff8e6);
      font-weight: 700;
      color: #263447;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(18, 36, 64, 0.06);
    }

    .custom-broker-filter {
      transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.2s ease;
      max-height: 600px;
      overflow: hidden;
      opacity: 1;
    }

    .custom-broker-filter.collapsed {
      max-height: 0;
      opacity: 0;
      padding: 0 12px;
      border: none;
      box-shadow: none;
    }

    .custom-filter-list {
      max-height: 220px;
      overflow: auto;
    }
    }

    /* Slightly larger tablet breakpoint for denser grids */
    @media (max-width: 990px) {
      .content-pl {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 12px;
      }

      .dealer-supervise-item {
        min-height: 150px;
      }

      .custom-broker-filter {
        transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.2s ease;
        max-height: 600px;
        width: 100%;
        max-width: none;
        overflow: hidden;
        opacity: 1;
      }

    }