/* WhoisFX Extras – front end */
:root {
    --wfx-rail-w: 160px;
    --wfx-ink: #0f172a;
    --wfx-muted: #64748b;
    --wfx-line: #e2e8f0;
    --wfx-bg: #f8fafc;
    --wfx-card: #ffffff;
    --wfx-brand: #16a34a;
    --wfx-brand-ink: #ffffff;
    --wfx-accent: #2563eb;
    --wfx-radius: 12px;
}

/* ---------- Device helpers ---------- */
@media (max-width: 767px) { .wfx-only-desktop { display: none !important; } }
@media (min-width: 768px) { .wfx-only-mobile { display: none !important; } }

/* ---------- Ad slots ---------- */
.wfx-slot { margin: 16px auto; text-align: center; max-width: 100%; overflow: hidden; }
.wfx-slot__label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--wfx-muted); margin-bottom: 4px; }
.wfx-ad + .wfx-ad { margin-top: 12px; }
.wfx-ad img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 6px; }
.wfx-ad a { display: inline-block; max-width: 100%; }
.wfx-wide-wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.wfx-wide-wrap .wfx-slot { margin: 12px auto; }
.wfx-slot--sidebar-top, .wfx-slot--sidebar-bottom { margin: 0 0 20px; }

/* Side rails in the page gutters */
.wfx-rail { position: fixed; top: 120px; width: var(--wfx-rail-w); z-index: 40; }
.wfx-rail--left { left: calc(50% - 640px - var(--wfx-rail-w) - 16px); }
.wfx-rail--right { right: calc(50% - 640px - var(--wfx-rail-w) - 16px); }
.wfx-rail .wfx-slot { margin: 0; }
.admin-bar .wfx-rail { top: 152px; }

/* Mobile sticky bottom bar */
.wfx-mobile-sticky { display: none; }
@media (max-width: 767px) {
    .wfx-mobile-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #fff; box-shadow: 0 -4px 16px rgba(15, 23, 42, .15); padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); }
    .wfx-mobile-sticky .wfx-slot { margin: 0 auto; }
    .wfx-mobile-sticky img { max-height: 100px; width: auto; }
    body.wfx-has-mobile-sticky { padding-bottom: 110px; }
}
.wfx-mobile-sticky__close { position: absolute; top: -26px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 6px 6px 0 0; background: #fff; color: var(--wfx-ink); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 -2px 6px rgba(15, 23, 42, .12); }

/* ---------- Popups ---------- */
.wfx-popup[hidden] { display: none !important; }
.wfx-popup { position: fixed; z-index: 99999; opacity: 0; transition: opacity .25s ease; }
.wfx-popup.is-open { opacity: 1; }
.wfx-popup__box { position: relative; background: #fff; color: var(--wfx-ink); border-radius: 14px; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); overflow: hidden; width: 100%; transform: translateY(12px); transition: transform .25s ease; }
.wfx-popup.is-open .wfx-popup__box { transform: none; }
.wfx-popup__close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .65); color: #fff; font-size: 22px; line-height: 34px; cursor: pointer; padding: 0; }
.wfx-popup__close:hover, .wfx-popup__close:focus-visible { background: #0f172a; outline: 2px solid #fff; outline-offset: -4px; }
.wfx-popup__img { display: block; width: 100%; height: auto; }
.wfx-popup__body { padding: 20px 22px 22px; font-size: 16px; line-height: 1.55; }
.wfx-popup__body > :first-child { margin-top: 0; }
.wfx-popup__body > p:last-of-type { margin-bottom: 0; }
.wfx-popup__btn { display: block; margin-top: 16px; padding: 12px 18px; border-radius: 10px; color: #fff !important; font-weight: 700; text-align: center; text-decoration: none !important; transition: filter .15s; }
.wfx-popup__btn:hover { filter: brightness(1.08); }

.wfx-popup--center { inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .6); }
.wfx-popup--center .wfx-popup__box { max-height: calc(100vh - 32px); overflow-y: auto; }

.wfx-popup--slide { right: 16px; bottom: 16px; width: calc(100% - 32px); display: flex; justify-content: flex-end; }
.wfx-popup--slide .wfx-popup__box { max-width: 380px; }

.wfx-popup--bar { left: 0; right: 0; bottom: 0; }
.wfx-popup--bar .wfx-popup__box { max-width: none !important; border-radius: 0; display: flex; align-items: center; gap: 16px; padding-right: 48px; }
.wfx-popup--bar .wfx-popup__img { width: auto; max-height: 90px; }
.wfx-popup--bar .wfx-popup__body { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 16px; }
.wfx-popup--bar .wfx-popup__body p { margin: 0; }
.wfx-popup--bar .wfx-popup__btn { margin: 0; }
html.wfx-noscroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .wfx-popup, .wfx-popup__box { transition: none; }
}

/* ---------- Prop firms ---------- */
.wfx-pf { background: var(--wfx-bg); color: var(--wfx-ink); padding: 20px 0 48px; }
.wfx-contain { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.wfx-crumbs { font-size: 13px; color: var(--wfx-muted); margin-bottom: 14px; }
.wfx-crumbs a { color: var(--wfx-accent); text-decoration: none; }
.wfx-muted { color: var(--wfx-muted); font-size: 13px; }
.wfx-link { display: inline-block; margin-top: 10px; color: var(--wfx-accent); font-weight: 600; text-decoration: none; font-size: 14px; }

.wfx-card { background: var(--wfx-card); border: 1px solid var(--wfx-line); border-radius: var(--wfx-radius); padding: 20px; margin: 0 0 20px; }
.wfx-card__title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.wfx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .wfx-two { grid-template-columns: 1fr; } }

.wfx-pf__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 1023px) { .wfx-pf__layout { grid-template-columns: 1fr; } }
.wfx-sticky { position: sticky; top: 96px; }

.wfx-pf-hero { display: grid; grid-template-columns: 120px minmax(0, 1fr) 260px; gap: 24px; align-items: center; background: var(--wfx-card); border: 1px solid var(--wfx-line); border-radius: var(--wfx-radius); padding: 24px; margin-bottom: 20px; }
@media (max-width: 900px) { .wfx-pf-hero { grid-template-columns: 80px minmax(0, 1fr); } .wfx-pf-hero__cta { grid-column: 1 / -1; } }
.wfx-pf-hero__logo { width: 120px; height: 120px; border-radius: 16px; border: 1px solid var(--wfx-line); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
@media (max-width: 900px) { .wfx-pf-hero__logo { width: 80px; height: 80px; } }
.wfx-pf-hero__logo img { max-width: 90%; max-height: 90%; object-fit: contain; }
.wfx-pf-hero__title { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 0 0 8px; font-weight: 800; }
.wfx-pf-hero__ratings { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-bottom: 10px; }
.wfx-pf-hero__score { display: flex; align-items: center; gap: 6px; }
.wfx-pf-hero__score strong { font-size: 26px; color: var(--wfx-brand); }
.wfx-pf-hero__users { display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.wfx-pf-hero__summary { margin: 10px 0 0; color: #334155; }
.wfx-pf-hero__cta { display: flex; flex-direction: column; gap: 10px; }

.wfx-stars { position: relative; display: inline-block; width: 90px; height: 16px; vertical-align: middle; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23cbd5e1' d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") repeat-x 0 0 / 18px 16px; }
.wfx-stars__fill { position: absolute; inset: 0 auto 0 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f59e0b' d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") repeat-x 0 0 / 18px 16px; }

.wfx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wfx-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #0f172a; color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; line-height: 1.4; }
.wfx-chip--soft { background: #eef2ff; color: #3730a3; }
a.wfx-chip { background: #fff; color: var(--wfx-ink); border: 1px solid var(--wfx-line); }
a.wfx-chip:hover { border-color: var(--wfx-ink); }
a.wfx-chip.is-active { background: var(--wfx-ink); color: #fff; border-color: var(--wfx-ink); }

.wfx-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none !important; border: 1px solid transparent; transition: filter .15s, background .15s; text-align: center; }
.wfx-btn--primary { background: var(--wfx-brand); color: var(--wfx-brand-ink) !important; }
.wfx-btn--primary:hover { filter: brightness(1.08); }
.wfx-btn--ghost { background: #fff; color: var(--wfx-ink) !important; border-color: var(--wfx-line); }
.wfx-btn--ghost:hover { border-color: var(--wfx-ink); }
.wfx-btn--lg { padding: 14px 18px; font-size: 16px; }

.wfx-discount { border: 1px dashed #f59e0b; background: #fffbeb; border-radius: 10px; padding: 8px 10px; text-align: center; }
.wfx-discount__text { display: block; font-size: 13px; font-weight: 600; color: #92400e; margin-bottom: 6px; }
.wfx-code { cursor: pointer; border: 1px dashed #94a3b8; background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; color: var(--wfx-ink); }
.wfx-code--lg { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.wfx-code--lg span { color: var(--wfx-accent); font-weight: 600; font-size: 13px; }
.wfx-code.is-copied { border-color: var(--wfx-brand); color: var(--wfx-brand); }
.wfx-code.is-copied::after { content: " ✓ copied"; font-size: 12px; }

.wfx-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0; }
.wfx-facts > div { background: var(--wfx-bg); border-radius: 10px; padding: 10px 12px; }
.wfx-facts dt { font-size: 12px; color: var(--wfx-muted); margin: 0 0 2px; }
.wfx-facts dd { margin: 0; font-weight: 700; font-size: 15px; }

.wfx-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wfx-table th, .wfx-table td { padding: 10px 8px; border-bottom: 1px solid var(--wfx-line); text-align: left; }
.wfx-table th { font-weight: 500; color: var(--wfx-muted); width: 45%; }
.wfx-table td { font-weight: 600; }
.wfx-table tr:last-child th, .wfx-table tr:last-child td { border-bottom: 0; }
.wfx-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; }
.wfx-yes { background: #dcfce7; color: #166534; }
.wfx-no { background: #fee2e2; color: #991b1b; }
.wfx-limited { background: #fef3c7; color: #92400e; }
.wfx-yes-text { color: #15803d; }
.wfx-no-text { color: #b91c1c; }

.wfx-list { list-style: none; margin: 0; padding: 0; }
.wfx-list li { position: relative; padding: 6px 0 6px 26px; }
.wfx-list li::before { position: absolute; left: 0; top: 6px; font-weight: 800; }
.wfx-list--pros li::before { content: "✓"; color: #16a34a; }
.wfx-list--cons li::before { content: "✕"; color: #dc2626; }

.wfx-content { font-size: 16px; line-height: 1.7; }
.wfx-content h2 { font-size: 22px; margin: 1.4em 0 .5em; }
.wfx-content h3 { font-size: 18px; margin: 1.2em 0 .4em; }
.wfx-content > :first-child { margin-top: 0; }

.wfx-mini-list { list-style: none; margin: 0; padding: 0; }
.wfx-mini-list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--wfx-line); text-decoration: none; color: inherit; }
.wfx-mini-list__logo { width: 40px; height: 40px; flex: none; border-radius: 8px; border: 1px solid var(--wfx-line); display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 700; }
.wfx-mini-list__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wfx-mini-list__name { flex: 1; font-weight: 600; }
.wfx-mini-list__score { font-weight: 700; color: var(--wfx-brand); }

/* Listing */
.wfx-archive-head { text-align: center; padding: 16px 0 12px; }
.wfx-archive-head h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin: 0 0 6px; }
.wfx-archive-head p { color: var(--wfx-muted); margin: 0; }
.wfx-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.wfx-toolbar__programs { display: flex; flex-wrap: wrap; gap: 6px; }
.wfx-toolbar__sort { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.wfx-toolbar__sort select { padding: 6px 10px; border: 1px solid var(--wfx-line); border-radius: 8px; background: #fff; }

.wfx-pf-list__title { font-size: 24px; font-weight: 800; margin: 0 0 14px; }
.wfx-pf-list__more { text-align: center; }
.wfx-pf-list__more a { color: var(--wfx-accent); font-weight: 600; text-decoration: none; }
.wfx-pf-card { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1.3fr) minmax(0, 1.2fr) 170px; gap: 18px; align-items: center; background: var(--wfx-card); border: 1px solid var(--wfx-line); border-radius: var(--wfx-radius); padding: 16px 18px; margin-bottom: 12px; color: var(--wfx-ink); }
.wfx-pf-card.is-featured { border-color: #86efac; box-shadow: 0 0 0 1px #86efac inset; }
.wfx-pf-card__rank { position: absolute; top: -8px; left: -8px; background: var(--wfx-ink); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 8px; }
.wfx-pf-card__logo { width: 80px; height: 80px; border: 1px solid var(--wfx-line); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.wfx-pf-card__logo img { max-width: 90%; max-height: 90%; object-fit: contain; }
.wfx-pf-card__initial { font-size: 32px; font-weight: 800; color: var(--wfx-muted); }
.wfx-pf-card__title { font-size: 18px; margin: 0 0 4px; font-weight: 700; }
.wfx-pf-card__title a { color: inherit; text-decoration: none; }
.wfx-pf-card__ratings { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 8px; }
.wfx-pf-card__score { font-weight: 800; color: var(--wfx-brand); }
.wfx-pf-card__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.wfx-pf-card__facts dt { font-size: 11px; color: var(--wfx-muted); margin: 0; }
.wfx-pf-card__facts dd { margin: 0; font-weight: 700; font-size: 14px; }
.wfx-pf-card__actions { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) {
    .wfx-pf-card { grid-template-columns: 64px minmax(0, 1fr); }
    .wfx-pf-card__logo { width: 64px; height: 64px; }
    .wfx-pf-card__facts, .wfx-pf-card__actions { grid-column: 1 / -1; }
    .wfx-pf-card__actions { flex-direction: row; flex-wrap: wrap; }
    .wfx-pf-card__actions .wfx-btn { flex: 1; }
}

/* Home page prop firm tiles */
.wfx-pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 360px) { .wfx-pf-grid { grid-template-columns: 1fr; } }
.wfx-pf-tile { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--wfx-card); border: 1px solid var(--wfx-line); border-radius: var(--wfx-radius); padding: 18px; color: var(--wfx-ink); box-shadow: 0 2px 8px rgba(15, 23, 42, .04); transition: border-color .2s, box-shadow .2s; }
.wfx-pf-tile:hover { border-color: #cbd5e1; box-shadow: 0 10px 28px rgba(15, 23, 42, .08); }
.wfx-pf-tile.is-featured { border-color: rgba(201, 162, 39, .55); }
.wfx-pf-tile__head { display: flex; gap: 12px; align-items: center; }
.wfx-pf-tile__logo { width: 56px; height: 56px; flex: none; border-radius: 12px; border: 1px solid var(--wfx-line); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.wfx-pf-tile__logo img { width: 100%; height: 100%; object-fit: contain; }
.wfx-pf-tile__logo .wfx-pf-card__initial { font-size: 24px; }
.wfx-pf-tile__id { min-width: 0; flex: 1; }
.wfx-pf-tile__title { font-size: 17px; font-weight: 700; margin: 0 0 2px; line-height: 1.25; }
.wfx-pf-tile__title a { color: inherit; text-decoration: none; }
.wfx-pf-tile__title a:hover { color: var(--wfx-accent); }
.wfx-pf-tile__rating { display: flex; align-items: center; gap: 6px; }
.wfx-pf-tile__rating strong { color: var(--wfx-brand); }
.wfx-pf-tile__badge { position: absolute; top: 12px; right: 12px; background: linear-gradient(180deg, #e3bc3c, #c9a227); color: #0a1628; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; }
.wfx-pf-tile__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.wfx-pf-tile__facts > div { background: var(--wfx-bg); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.wfx-pf-tile__facts dt { font-size: 11px; color: var(--wfx-muted); margin: 0; }
.wfx-pf-tile__facts dd { margin: 0; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.wfx-pf-tile__code-label { color: #92400e; font-size: 13px; font-weight: 600; text-align: left; }
.wfx-pf-tile .wfx-code--lg { background: #fffbeb; border-color: #f59e0b; gap: 8px; }
.wfx-pf-tile__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.wfx-pf-tile__actions .wfx-btn:only-child { grid-column: 1 / -1; }
.fbr-home__propfirms { background: #f8fafc; border-top: 1px solid #e2e8f0; }
.fbr-home > .wfx-slot { max-width: 1280px; padding: 0 16px; margin: 24px auto; }
