.fbr-broker-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.fbr-card {
    position: relative;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    text-align: center;
    padding-bottom: 20px;
}

.fbr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.fbr-ribbon {
    position: absolute;
    top: 15px;
    left: -40px;
    transform: rotate(-45deg);
    background: #f5a623;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 45px;
    z-index: 1;
}

.fbr-logo img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #f8f8f8;
    padding: 10px;
}

.fbr-content {
    padding: 15px;
}

.fbr-deposit {
    color: #333;
    font-weight: 500;
    margin: 10px 0;
}

.fbr-title {
    font-size: 18px;
    margin: 10px 0;
    color: #d8232a;
    font-weight: bold;
}

.fbr-title a {
    color: #d8232a;
    text-decoration: none;
}

.fbr-btn {
    display: inline-block;
    background: linear-gradient(90deg, #00c853, #64dd17);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    margin: 10px 0;
    transition: 0.3s;
}

.fbr-btn:hover {
    background: linear-gradient(90deg, #00b341, #52c41a);
}

.fbr-badge {
    font-size: 14px;
    color: #007bff;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.fbr-stats {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 16px;
    color: #555;
}

.fbr-stats i,
.fbr-icon {
    margin-right: 5px;
}


@keyframes gradient-x {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 4s ease infinite;
}


#fbr-toast {
    backdrop-filter: blur(4px);
}

#fbr-toast.show {
    opacity: 1 !important;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* License gate (frontend) */
.fbr-license-notice {
    max-width: 42rem;
    margin: 1.5rem auto;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.fbr-license-notice__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #0f172a;
}

.fbr-license-notice__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #475569;
}

/* Broker compare table + shortcode */
.fbr-compare {
    margin: 1.5rem 0;
}

.fbr-compare-placeholder {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: #64748b;
}

.fbr-compare-empty {
    margin: 0;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.9375rem;
}

.fbr-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.fbr-compare-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.fbr-compare-table th,
.fbr-compare-table td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    text-align: left;
}

/* Beat theme utility overrides (e.g. Tailwind text-center on tables) */
.fbr-compare-table tbody td,
.fbr-compare-table tbody th[scope="row"] {
    text-align: left;
}

.fbr-compare-table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
    border-bottom-color: #e2e8f0;
}

.fbr-compare-table thead th.fbr-compare-broker-head {
    text-align: left;
    vertical-align: top;
}

.fbr-compare-corner {
    width: 11rem;
    min-width: 8rem;
}

.fbr-compare-broker-head__shell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
}

.fbr-compare-broker-head__toolbar {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.fbr-compare-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.35rem;
    background: #fff;
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fbr-compare-remove:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.fbr-compare-remove:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.fbr-compare-broker-head__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
    max-width: 14rem;
    margin: 0;
}

.fbr-compare-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 0.375rem;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.fbr-compare-title {
    font-weight: 600;
    color: #3730a3;
    text-decoration: none;
    line-height: 1.3;
}

.fbr-compare-title:hover {
    text-decoration: underline;
}

.fbr-compare-table tbody th[scope="row"] {
    font-weight: 500;
    color: #475569;
    background: #fafafa;
}

.fbr-compare-na {
    color: #94a3b8;
}

.fbr-compare-muted {
    color: #94a3b8;
    font-weight: 400;
    margin-left: 0.25rem;
}

.fbr-compare-yes {
    color: #15803d;
    font-weight: 600;
}

.fbr-compare-no {
    color: #b91c1c;
    font-weight: 500;
}

.fbr-compare-row--actions td {
    text-align: left;
    vertical-align: middle;
}

.fbr-compare-row--actions .fbr-compare-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.fbr-compare-row--actions .fbr-compare-visit:hover,
.fbr-compare-row--actions .fbr-compare-visit:visited {
    color: #fff;
    text-decoration: none;
}

.fbr-compare-row--actions .fbr-compare-visit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.45);
}

.fbr-compare-row--actions .fbr-compare-visit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
}

.fbr-compare-row--actions .fbr-compare-visit:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
}

.fbr-compare-toggle {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    position: relative;
    z-index: 2;
    min-height: 2.75rem;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.fbr-compare-toggle:hover {
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

.fbr-compare-toggle:active {
    transform: scale(0.98);
}

.fbr-compare-toggle[aria-pressed="true"] {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.fbr-compare-toggle:focus {
    outline: none;
}

.fbr-compare-toggle:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.fbr-compare-toggle.is-loading {
    opacity: 0.65;
    cursor: wait;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .fbr-compare-toggle {
        transition: none;
    }

    .fbr-compare-toggle:active {
        transform: none;
    }
}

/* Broker review ranking ([fbr_broker_review_ranking]) — horizontal rows */
.fbr-review-ranking {
    margin: 0.25rem 0 2rem;
}

.fbr-review-ranking__empty {
    margin: 1rem 0;
    padding: 1.25rem 1.25rem;
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.55;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.fbr-review-ranking__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fbr-review-ranking__list.fbr-review-ranking__list--rows {
    gap: 0.85rem;
}

.fbr-review-ranking__item.fbr-review-ranking__row {
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 4px 16px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.22s ease,
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.fbr-review-ranking__item.fbr-review-ranking__row:hover {
    border-color: rgba(3, 105, 161, 0.22);
    box-shadow:
        0 4px 12px rgba(3, 105, 161, 0.1),
        0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.fbr-review-ranking__item--place-1.fbr-review-ranking__row:hover {
    border-color: rgba(234, 179, 8, 0.55);
    box-shadow:
        0 4px 14px rgba(234, 179, 8, 0.2),
        0 14px 32px rgba(15, 23, 42, 0.08);
}

.fbr-review-ranking__item--place-2.fbr-review-ranking__row:hover {
    border-color: rgba(100, 116, 139, 0.45);
    box-shadow:
        0 4px 14px rgba(100, 116, 139, 0.18),
        0 14px 32px rgba(15, 23, 42, 0.07);
}

.fbr-review-ranking__item--place-3.fbr-review-ranking__row:hover {
    border-color: rgba(234, 88, 12, 0.42);
    box-shadow:
        0 4px 14px rgba(234, 88, 12, 0.18),
        0 14px 32px rgba(15, 23, 42, 0.07);
}

.fbr-review-ranking__item--place-1.fbr-review-ranking__row {
    border-color: rgba(234, 179, 8, 0.4);
    box-shadow:
        0 1px 2px rgba(234, 179, 8, 0.12),
        0 6px 18px rgba(234, 179, 8, 0.1);
}

.fbr-review-ranking__item--place-2.fbr-review-ranking__row {
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow:
        0 1px 2px rgba(100, 116, 139, 0.1),
        0 6px 18px rgba(100, 116, 139, 0.08);
}

.fbr-review-ranking__item--place-3.fbr-review-ranking__row {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow:
        0 1px 2px rgba(234, 88, 12, 0.1),
        0 6px 18px rgba(234, 88, 12, 0.08);
}

.fbr-review-ranking__item--place-1 .fbr-review-ranking__row-inner {
    background: linear-gradient(90deg, #fffbeb 0%, #fff 32%);
}

.fbr-review-ranking__item--place-2 .fbr-review-ranking__row-inner {
    background: linear-gradient(90deg, #f8fafc 0%, #fff 34%);
}

.fbr-review-ranking__item--place-3 .fbr-review-ranking__row-inner {
    background: linear-gradient(90deg, #fff7ed 0%, #fff 34%);
}

.fbr-review-ranking__row-inner {
    display: grid;
    grid-template-columns: 5.5rem 3.35rem minmax(0, 1fr);
    gap: 0.65rem 0.85rem;
    align-items: center;
    padding: 1rem 1.1rem 1rem 0.95rem;
    max-width: 100%;
}

.fbr-review-ranking__rank-col {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    min-width: 3rem;
}

/* Shield clip (top 3 ranks) — double-frame look via outer ring + inner face */
.fbr-review-ranking__shield {
    --fbr-shield-clip: polygon(50% 0%, 100% 11%, 100% 64%, 50% 100%, 0% 64%, 0% 11%);
    position: relative;
    width: 2.85rem;
    height: 3.2rem;
    padding: 3px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: var(--fbr-shield-clip);
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.08));
}

.fbr-review-ranking__shield-face {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    clip-path: var(--fbr-shield-clip);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.fbr-review-ranking__shield--1 {
    background: linear-gradient(160deg, #fde68a 0%, #fbbf24 55%, #d97706 100%);
}

.fbr-review-ranking__shield--1 .fbr-review-ranking__shield-face {
    color: #422006;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.75);
}

.fbr-review-ranking__shield--2 {
    background: linear-gradient(160deg, #e2e8f0 0%, #94a3b8 50%, #64748b 100%);
}

.fbr-review-ranking__shield--2 .fbr-review-ranking__shield-face {
    color: #1e293b;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.85);
}

.fbr-review-ranking__shield--3 {
    background: linear-gradient(160deg, #fdba74 0%, #ea580c 55%, #9a3412 100%);
}

.fbr-review-ranking__shield--3 .fbr-review-ranking__shield-face {
    color: #431407;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.75);
}

/* Rank 4–10 — hexagon badge (distinct from shield + squircle) */
.fbr-review-ranking__hex {
    --fbr-hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
    width: 2.8rem;
    height: 3.15rem;
    padding: 3px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: var(--fbr-hex-clip);
    background: linear-gradient(165deg, #7dd3fc 0%, #0ea5e9 45%, #0369a1 100%);
    filter: drop-shadow(0 2px 5px rgba(3, 105, 161, 0.2));
}

.fbr-review-ranking__hex-face {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    clip-path: var(--fbr-hex-clip);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #0c4a6e;
    background: linear-gradient(185deg, #f0f9ff 0%, #e0f2fe 55%, #bae6fd 100%);
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.45);
}

/* Rank 11+ — minimal squircle */
.fbr-review-ranking__rank-squircle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    color: #94a3b8;
    background: #e8ecf1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.fbr-review-ranking__logo-cell {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    justify-self: start;
}

.fbr-review-ranking__logo-cell:focus-visible {
    outline: 2px solid #0369a1;
    outline-offset: 2px;
    border-radius: 12px;
}

.fbr-review-ranking__regulated {
    position: absolute;
    top: -4px;
    left: -4px;
    z-index: 2;
    padding: 2px 6px;
    font-size: 0.5625rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #22c55e;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.35);
    pointer-events: none;
}

.fbr-review-ranking__logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.25rem;
    height: 5.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fbr-review-ranking__logo-img {
    max-width: 92%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fbr-review-ranking__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fbr-review-ranking__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
}

.fbr-review-ranking__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.fbr-review-ranking__name:hover,
.fbr-review-ranking__name:focus-visible {
    color: #0369a1;
    outline: none;
}

.fbr-review-ranking__rating-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    flex-shrink: 0;
}

.fbr-review-ranking__rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem 0.42rem;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(245, 158, 11, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 2px 6px rgba(180, 83, 9, 0.12);
}

.fbr-review-ranking__rating-badge .fbr-review-ranking__star {
    color: #d97706;
    font-size: 1.15rem;
    line-height: 1;
}

.fbr-review-ranking__rating-badge .fbr-review-ranking__avg {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #b45309;
}

.fbr-review-ranking__review-n {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-weight: 500;
}

.fbr-review-ranking__sub-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    font-size: 0.8125rem;
}

.fbr-review-ranking__location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
}

.fbr-review-ranking__flag-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.fbr-review-ranking__hq-text {
    font-weight: 500;
}

.fbr-review-ranking__flagship {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.45rem 0.15rem 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid rgba(217, 119, 6, 0.45);
    border-radius: 4px;
}

.fbr-review-ranking__flagship-ic {
    flex-shrink: 0;
    opacity: 0.9;
}

.fbr-review-ranking__tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.4rem;
    margin-top: 0.1rem;
}

.fbr-review-ranking__tag {
    display: inline-block;
    max-width: 100%;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #334155;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
}

.fbr-review-ranking .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 640px) {
    .fbr-review-ranking__list.fbr-review-ranking__list--rows {
        gap: 0.65rem;
    }

    .fbr-review-ranking__row-inner {
        grid-template-columns: 4.5rem 2.85rem minmax(0, 1fr);
        gap: 0.45rem 0.5rem;
        padding: 0.75rem 0.65rem 0.75rem 0.55rem;
    }

    .fbr-review-ranking__shield {
        width: 2.5rem;
        height: 2.85rem;
        padding: 2px;
    }

    .fbr-review-ranking__shield-face {
        font-size: 0.95rem;
    }

    .fbr-review-ranking__hex {
        width: 2.45rem;
        height: 2.75rem;
        padding: 2px;
    }

    .fbr-review-ranking__hex-face {
        font-size: 0.9rem;
    }

    .fbr-review-ranking__rank-squircle {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .fbr-review-ranking__logo-frame {
        width: 4.5rem;
        height: 4.5rem;
    }

    .fbr-review-ranking__title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .fbr-review-ranking__rating-badge {
        padding: 0.32rem 0.6rem 0.34rem;
    }

    .fbr-review-ranking__rating-badge .fbr-review-ranking__star {
        font-size: 1rem;
    }

    .fbr-review-ranking__rating-badge .fbr-review-ranking__avg {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fbr-review-ranking__item.fbr-review-ranking__row {
        transition: none;
    }

    .fbr-review-ranking__item.fbr-review-ranking__row:hover {
        transform: none;
    }
}
