/**
 * Directory & compare-matrix listing pages (forex, crypto, prop, binary, social).
 * Loaded after variables, base, layout. Header chrome lives in layout (compare_nav).
 */
/* Buttons & Inputs */
        .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; font-weight: 500; font-size: 14px; border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-speed) ease; border: 1px solid transparent; }
        .btn-sm { padding: 6px 12px; font-size: 13px; }
        .btn-primary { background-color: var(--text-primary); color: var(--bg-base); box-shadow: var(--shadow-micro); }
        .btn-primary:hover { background-color: var(--btn-primary-hover-bg); color: var(--btn-primary-hover-fg); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
        .btn-outline { background-color: transparent; color: var(--text-primary); border: 1px solid var(--border-light); }
        .btn-outline:hover { border-color: var(--border-hover); background-color: var(--bg-subtle); }
        .btn-ghost { background: transparent; color: var(--text-secondary); }
        .btn-ghost:hover { background: var(--bg-subtle); color: var(--text-primary); }
        
        .input-field { padding: 10px 16px; font-size: 14px; border: 1px solid var(--border-light); border-radius: var(--radius-md); outline: none; width: 100%; transition: border-color var(--transition-speed); font-family: inherit; }
        .input-field:focus { border-color: var(--border-focus); box-shadow: 0 0 0 2px var(--mc-blue-bg); }

        /* Checkbox Override */
        .compare-checkbox { width: 16px; height: 16px; border: 1px solid var(--border-hover); border-radius: 4px; appearance: none; cursor: pointer; position: relative; background: var(--bg-base); transition: all 0.1s; display: inline-block; margin: 0; }
        .compare-checkbox:checked { background: var(--accent-blue); border-color: var(--accent-blue); }
        .compare-checkbox:checked::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: white; font-size: 10px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
        .compare-link-disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

        /* Hero Section */
        .hero-section { padding: 64px 0 40px; border-bottom: 1px solid var(--border-light); background-color: var(--bg-subtle); }
        .hero-title { font-size: 40px; font-weight: 800; color: var(--text-primary); margin-bottom: 16px; letter-spacing: -0.03em; }
        .hero-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 650px; line-height: 1.6; }

        /* Layout Grid */
        .dir-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding: 48px 0; align-items: start; }
        main { min-width: 0; padding-bottom: 80px; }

        /* Toolbar */
        .dir-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
        .dir-toolbar__start {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 16px;
            flex: 1;
            min-width: 0;
        }
        .dir-sort-field {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }
        .dir-sort-field__label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            white-space: nowrap;
        }
        .search-wrapper { position: relative; width: 100%; max-width: 350px; }
        .search-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); font-size: 14px; }
        .search-wrapper .input-field { padding-left: 40px; background: var(--bg-base); border-radius: var(--radius-lg); box-shadow: var(--shadow-micro); }
        .toolbar-right { display: flex; align-items: center; gap: 16px; }
        .dir-toolbar-meta { font-size: 13px; color: var(--text-secondary); }

        /* Off-canvas filters trigger: phones only (tablet shows sidebar in-flow). */
        .btn-mobile-filter {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex-shrink: 0;
        }

        /* Forex directory: one row — filters trigger | search + sort (custom dropdown) side by side. */
        .page-compare-forex .dir-toolbar--forex-list {
            background-color: var(--dir-forex-toolbar-bg);
            padding: 20px;
            border-radius: var(--radius-lg);
            border: 1px solid var(--dir-forex-toolbar-border);
            flex-direction: column;
            align-items: stretch;
            gap: 16px;
        }
        .page-compare-forex .dir-toolbar__primary {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            flex-wrap: wrap;
            gap: 16px;
            width: 100%;
            min-width: 0;
        }
        .page-compare-forex .dir-toolbar--forex-list .dir-toolbar__start {
            flex: 0 0 auto;
            min-width: 0;
        }
        .page-compare-forex .dir-toolbar--forex-list .dir-toolbar__end--forex-search-sort {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: flex-end;
            justify-content: flex-end;
            gap: 12px 16px;
            flex: 1 1 auto;
            min-width: 0;
        }
        .page-compare-forex .dir-toolbar--forex-list .dir-toolbar__end--forex-search-sort .search-wrapper {
            flex: 1 1 min(100%, 350px);
            min-width: min(100%, 12rem);
            max-width: 350px;
            width: auto;
        }
        .page-compare-forex .dir-toolbar__forex-sort-wrap {
            flex: 0 1 auto;
            min-width: min(100%, 11rem);
            max-width: min(100%, 22rem);
            width: min(100%, 22rem);
        }
        .page-compare-forex .dir-toolbar__forex-sort-wrap .dir-sort-field--custom {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
            width: 100%;
            max-width: 100%;
        }
        .page-compare-forex .dir-sort-custom-dropdown {
            position: relative;
            width: 100%;
            max-width: 100%;
            outline: none;
            user-select: none;
        }
        .page-compare-forex .dir-sort-custom-dropdown .dropdown-selected {
            width: 100%;
            margin: 0;
            box-sizing: border-box;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border-hover);
            border-radius: var(--radius-md);
            font-size: 0.95rem;
            font-weight: 500;
            font-family: inherit;
            line-height: 1.35;
            color: var(--text-secondary);
            background-color: var(--bg-base);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-align: start;
            transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, color var(--transition-speed) ease;
            box-shadow: var(--shadow-micro);
        }
        .page-compare-forex .dir-sort-custom-dropdown .dropdown-selected.has-value {
            color: var(--text-primary);
        }
        .page-compare-forex .dir-sort-custom-dropdown .dropdown-selected:hover {
            border-color: var(--border-focus);
        }
        .page-compare-forex .dir-sort-custom-dropdown .dropdown-selected::after {
            content: "";
            width: 0.375rem;
            height: 0.375rem;
            border: solid var(--text-secondary);
            border-width: 0 2px 2px 0;
            display: inline-block;
            padding: 2px;
            transform: rotate(45deg);
            transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
            flex-shrink: 0;
            margin-inline-start: 0.5rem;
        }
        .page-compare-forex .dir-sort-custom-dropdown.active .dropdown-selected {
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px var(--mc-blue-bg);
        }
        .page-compare-forex .dir-sort-custom-dropdown.active .dropdown-selected::after {
            transform: rotate(-135deg);
            margin-top: 0.25rem;
            border-color: var(--accent-blue);
        }
        .page-compare-forex .dir-sort-custom-dropdown .dropdown-options {
            position: absolute;
            top: calc(100% + 0.375rem);
            left: 0;
            right: 0;
            background: var(--bg-base);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-modal);
            z-index: 50;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-0.625rem);
            transition: opacity var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1), visibility var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1), transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
            max-height: 13.75rem;
            overflow-y: auto;
        }
        .page-compare-forex .dir-sort-custom-dropdown.active .dropdown-options {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .page-compare-forex .dir-sort-custom-dropdown .dropdown-item {
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, padding-inline-start var(--transition-speed) ease;
            border-bottom: 1px solid var(--bg-body);
        }
        .page-compare-forex .dir-sort-custom-dropdown .dropdown-item:last-child {
            border-bottom: none;
        }
        .page-compare-forex .dir-sort-custom-dropdown .dropdown-item:hover {
            background: var(--bg-body);
            color: var(--accent-blue);
            padding-inline-start: 1.25rem;
        }
        .page-compare-forex .dir-sort-custom-dropdown .dropdown-item.selected {
            background: var(--mc-blue-bg);
            color: var(--accent-blue);
            font-weight: 600;
        }

        /* Forex directory: server filter fetch — in-list overlay (pseudo-elements survive innerHTML swaps). */
        .page-compare-forex .forex-directory-dynamic {
            position: relative;
            min-height: 12rem;
        }
        .page-compare-forex .forex-directory-dynamic.is-loading::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 3;
            pointer-events: auto;
            background: color-mix(in srgb, var(--bg-base) 88%, var(--text-primary) 12%);
            backdrop-filter: blur(4px);
        }
        .page-compare-forex .forex-directory-dynamic.is-loading::after {
            content: "";
            position: absolute;
            z-index: 4;
            top: 50%;
            left: 50%;
            width: 2.75rem;
            height: 2.75rem;
            margin: -1.375rem 0 0 -1.375rem;
            border: 0.2rem solid var(--border-light);
            border-top-color: var(--accent-blue);
            border-radius: 50%;
            box-sizing: border-box;
            pointer-events: none;
            animation: forex-directory-list-spin 0.65s linear infinite;
        }
        @keyframes forex-directory-list-spin {
            to { transform: rotate(360deg); }
        }

        /* Sidebar Overlay (Mobile) */
        .sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(17, 24, 39, 0.5); backdrop-filter: blur(4px); z-index: 1500; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
        .sidebar-overlay.active { opacity: 1; pointer-events: auto; }

        /* =========================================
           ADVANCED ACCORDION SIDEBAR
           ========================================= */
        .sidebar { display: flex; flex-direction: column; min-width: 0; position: sticky; top: 88px; padding-right: 12px; }
        
        .sidebar-header-main { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
        .sidebar-header-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
        .sidebar-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
        .btn-close-sidebar { display: none; background: none; border: none; font-size: 20px; color: var(--text-tertiary); cursor: pointer; }
        
        .filter-group { border-bottom: 1px solid var(--border-light); padding: 16px 0; }
        .filter-group:last-child { border-bottom: none; }
        
        .filter-group summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; user-select: none; }
        .filter-group summary::-webkit-details-marker { display: none; }
        
        .summary-title { font-size: 14px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; transition: color var(--transition-speed); }
        .summary-title i { width: 16px; text-align: center; color: var(--text-tertiary); font-size: 13px; }
        .filter-group summary:hover .summary-title { color: var(--accent-blue); }
        
        .summary-icon { font-size: 12px; color: var(--text-tertiary); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        .filter-group[open] .summary-icon { transform: rotate(180deg); }
        
        .filter-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; animation: slideDown 0.2s ease-out; }
        @keyframes slideDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
        
        .filter-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; line-height: 1.4; border-radius: var(--radius-md); padding: 6px 8px; margin: -6px -8px; transition: background-color var(--transition-speed), font-weight var(--transition-speed), color var(--transition-speed); }
        .filter-item:hover { color: var(--text-primary); }
        .filter-item input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; accent-color: var(--accent-blue); margin-top: 1px; border: 1px solid var(--border-hover); border-radius: 4px; }
        .filter-item--active { background: var(--bg-subtle); color: var(--text-primary); font-weight: 600; }

        /* Optional hint icon beside a filter label (sibling of .filter-item, not inside <label>) */
        .filter-item-with-hint { display: flex; align-items: flex-start; gap: 6px; width: 100%; }
        .filter-item-with-hint .filter-item { flex: 1; min-width: 0; margin: -6px -8px; }
        .dir-filter-hint { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 0; border: none; padding: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-tertiary); cursor: help; transition: color var(--transition-speed), background-color var(--transition-speed); }
        .dir-filter-hint:hover,
        .dir-filter-hint:focus { outline: none; color: var(--accent-blue); background: var(--bg-subtle); }
        .dir-filter-hint:focus-visible { box-shadow: 0 0 0 2px var(--mc-blue-bg); }
        .dir-filter-hint__icon { font-size: 13px; pointer-events: none; }
        .dir-filter-hint__bubble {
            position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
            width: min(260px, 70vw); padding: 10px 12px; border-radius: var(--radius-md);
            background: var(--text-primary); color: var(--text-inverse); font-size: 12px; font-weight: 500; line-height: 1.45;
            text-align: left; text-transform: none; letter-spacing: normal; cursor: default;
            box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; pointer-events: none;
            transition: opacity var(--transition-speed), visibility var(--transition-speed);
        }
        .dir-filter-hint__bubble::after {
            content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px;
            border: 6px solid transparent; border-top-color: var(--text-primary);
        }
        .dir-filter-hint:hover .dir-filter-hint__bubble,
        .dir-filter-hint:focus .dir-filter-hint__bubble,
        .dir-filter-hint:focus-within .dir-filter-hint__bubble { opacity: 1; visibility: visible; pointer-events: auto; }

        /* Platform Cards */
        .platform-list { display: flex; flex-direction: column; gap: 20px; }
        .platform-card { display: flex; align-items: stretch; background: var(--bg-base); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 24px; gap: 24px; transition: all var(--transition-speed); }
        .platform-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }

        /* Forex broker directory: head (main grid) / compare row / metrics+CTA footer */
        .platform-card--broker-matrix { flex-direction: column; align-items: stretch; padding: 0; gap: 0; overflow: hidden; }
        .platform-card--broker-matrix .platform-card__head {
            display: block;
            padding: clamp(1.25rem, 2.5vw, 2rem);
            padding-bottom: clamp(0.5rem, 1.25vw, 0.75rem);
        }
        .platform-card--broker-matrix .platform-card__head-main {
            display: grid;
            /* Logo | broker name + badges (takes remaining width) | feature list (intrinsic width) */
            grid-template-columns: auto minmax(0, 1fr) max-content;
            grid-template-rows: auto auto;
            gap: clamp(0.75rem, 2vw, 1.25rem);
            align-items: start;
            min-width: 0;
            width: 100%;
        }
        .platform-card--broker-matrix .platform-card__brand-col {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
            grid-column: 1;
            grid-row: 1 / -1;
            align-self: start;
        }
        .platform-card--broker-matrix .platform-card__title-col {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0;
            grid-column: 2;
            grid-row: 1;
            min-width: 0;
            width: 100%;
            max-width: 100%;
            padding-top: 2px;
        }
        .platform-card--broker-matrix .platform-card__body {
            grid-column: 3;
            grid-row: 1;
            min-width: 0;
            padding: 0;
            align-self: start;
            display: flex;
            justify-content: flex-end;
        }
        .platform-card--broker-matrix .platform-card-features {
            width: max-content;
            max-width: 100%;
            text-align: start;
            padding-inline-end: clamp(0.5rem, 2vw, 1.25rem);
            box-sizing: border-box;
        }
        .platform-card--broker-matrix .platform-card__head-compare {
            grid-column: 3;
            grid-row: 2;
            justify-self: end;
            align-self: end;
            min-width: 0;
        }
        .platform-card--broker-matrix .platform-card__badge-row {
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
            gap: 35px;
            align-items: flex-start;
            margin-top: 8px;
        }
        .page-compare-forex .platform-card--broker-matrix .platform-name {
            font-size: var(--font-forex-directory-broker-name);
            margin-bottom: 0;
            min-width: 0;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .platform-card--broker-matrix .platform-name { margin-bottom: 0; }
        .platform-card--broker-matrix .platform-logo-box--broker-directory {
            width: 144px;
            height: 144px;
            font-size: clamp(28px, 5vw, 40px);
        }
        .platform-card--broker-matrix .platform-logo-box--broker-directory .platform-logo-box__img {
            width: 100%;
            height: 100%;
        }
        .platform-card--broker-matrix .platform-card__metrics-footer {
            align-items: center;
        }
        .platform-card--broker-matrix .platform-card-metric-footer__cell {
            flex: 0 1 auto;
            min-width: min(100%, 6.5rem);
            max-width: 12rem;
        }
        .platform-card--broker-matrix .platform-card-metric-footer__cta {
            margin-left: auto;
            flex-shrink: 0;
            display: flex;
            justify-content: flex-end;
        }
        .platform-card--broker-matrix .platform-card-metric-footer__cta .btn-ib-terms {
            width: auto;
            min-width: 11rem;
        }

        @media (max-width: 992px) {
            .platform-card--broker-matrix .platform-card__head-main {
                grid-template-columns: auto minmax(0, 1fr);
                grid-template-rows: auto auto auto;
            }
            .platform-card--broker-matrix .platform-card__brand-col {
                grid-column: 1;
                grid-row: 1;
            }
            .platform-card--broker-matrix .platform-card__title-col {
                grid-column: 2;
                grid-row: 1;
                max-width: none;
            }
            .platform-card--broker-matrix .platform-card__body {
                grid-column: 1 / -1;
                grid-row: 2;
                padding-top: 4px;
                justify-content: flex-start;
                align-self: stretch;
                width: 100%;
            }
            .platform-card--broker-matrix .platform-card-features {
                align-self: flex-start;
                padding-inline-end: 0;
                margin-inline-start: 0;
            }
            .platform-card--broker-matrix .platform-card__head-compare {
                grid-column: 1 / -1;
                grid-row: 3;
                justify-self: end;
                align-self: start;
            }
        }

        .platform-card-features {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .platform-card-features__item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 13px;
            line-height: 1.45;
            color: var(--text-secondary);
            font-weight: 500;
        }
        .platform-card-features__text { min-width: 0; }
        .platform-card-features__label { font-weight: 600; }
        .platform-card-features__sep { font-weight: 500; opacity: 0.85; }
        .platform-card-features__check { flex-shrink: 0; margin-top: 2px; color: var(--status-success); }
        .platform-card-features__status-icon {
            flex-shrink: 0;
            margin-top: 2px;
            width: 1em;
            text-align: center;
            font-size: 14px;
            line-height: 1.2;
        }
        .platform-card-features__title { font-weight: 600; min-width: 0; }
        .platform-card-features__item--good { color: var(--status-success); }
        .platform-card-features__item--good .platform-card-features__check,
        .platform-card-features__item--good .platform-card-features__status-icon { color: var(--status-success); }
        .platform-card-features__item--warn { color: var(--status-warning); }
        .platform-card-features__item--warn .platform-card-features__check,
        .platform-card-features__item--warn .platform-card-features__status-icon { color: var(--status-warning); }
        .platform-card-features__item--muted { color: var(--text-tertiary); }
        .platform-card-features__item--muted .platform-card-features__check,
        .platform-card-features__item--muted .platform-card-features__status-icon { color: var(--text-tertiary); }
        .platform-card__metrics-footer {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-start;
            align-items: flex-start;
            gap: 16px 12px;
            padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1.25rem, 2.5vw, 2rem);
            background: var(--bg-subtle);
            border-top: 1px solid var(--border-light);
        }
        .platform-card-metric-footer__cell {
            flex: 1 1 0;
            min-width: min(100%, 7.5rem);
        }
        .platform-card-metric-footer__label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }
        .platform-card-metric-footer__label .fa-fw { width: 1em; text-align: center; color: var(--text-tertiary); font-size: 11px; }
        .platform-card-metric-footer__value {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.35;
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .platform-card-metric-footer__value--placeholder { color: var(--text-tertiary); letter-spacing: 0.04em; }
        .platform-card-metric-footer__value--not-disclosed {
            color: var(--text-tertiary);
            font-style: italic;
            font-weight: 500;
        }
        
        .platform-logo-box { width: 72px; height: 72px; border-radius: var(--radius-md); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; flex-shrink: 0; background: var(--bg-base); box-shadow: var(--shadow-micro); transition: transform var(--transition-speed); color: var(--text-primary); }
        .platform-logo-box:hover { transform: scale(1.05); }
        .platform-logo-box__img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-md); display: block; }

        .platform-core { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
        .platform-header { display: flex; justify-content: space-between; align-items: flex-start; }
        .platform-header > div { display: flex; flex-direction: column; align-items: flex-start; }
        .platform-name { font-size: var(--font-platform-directory-name); font-weight: 700; color: var(--text-primary); margin-bottom: 8px; display: block; transition: color var(--transition-speed); letter-spacing: -0.01em; }
        .platform-name:hover { color: var(--accent-blue); }
        
        /* Badges & Microdata */
        .badges-wrapper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 0; margin-bottom: 8px; }
        .tag-pill { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid transparent; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; background: var(--mc-blue-bg); color: var(--mc-blue-text); border-color: var(--mc-blue-border); }
        /* Must follow base .tag-pill (same specificity; cascade order wins). */
        .tag-pill--reg-tier1,
        .tag-pill--reg-tier2,
        .tag-pill--reg-tier3,
        .tag-pill--reg-tier4 {
            gap: 6px;
            text-transform: none;
            letter-spacing: 0.04em;
        }
        .tag-pill__reg-icon {
            flex-shrink: 0;
            font-size: 0.95em;
            line-height: 1;
            opacity: 0.92;
        }
        .tag-pill--reg-tier1 {
            background: var(--mc-reg-tier1-bg);
            color: var(--mc-reg-tier1-text);
            border-color: var(--mc-reg-tier1-border);
        }
        .tag-pill--reg-tier2 {
            background: var(--mc-purple-bg);
            color: var(--mc-purple-text);
            border-color: var(--mc-purple-border);
        }
        .tag-pill--reg-tier3 {
            background: var(--bg-surface);
            color: var(--text-secondary);
            border-color: var(--border-light);
        }
        .tag-pill--reg-tier4 {
            background: var(--mc-reg-tier4-bg);
            color: var(--mc-reg-tier4-text);
            border-color: var(--mc-reg-tier4-border);
        }
        .tag-pill--reg-unregulated {
            background: var(--mc-reg-unregulated-bg);
            color: var(--mc-reg-unregulated-text);
            border-color: var(--mc-reg-unregulated-border);
            text-transform: none;
            letter-spacing: 0.04em;
            font-weight: 600;
        }
        .tag-pill--reg-neutral {
            background: var(--bg-surface);
            color: var(--text-secondary);
            border-color: var(--border-light);
            text-transform: none;
            letter-spacing: 0.04em;
            font-weight: 600;
        }

        /* Forex directory: Trustpilot strip (SVG + score + reviews); root is <a> when review_url is set. */
        .page-compare-forex .platform-card--broker-matrix .directory-trustpilot,
        .page-home .platform-card--home-forex-spotlight .directory-trustpilot {
            display: inline-flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: flex-start;
            gap: 6px;
            min-width: 0;
            max-width: 100%;
            height: 16px;
            line-height: 16px;
            font-size: 14px;
        }
        .page-compare-forex .platform-card--broker-matrix a.directory-trustpilot,
        .page-home .platform-card--home-forex-spotlight a.directory-trustpilot {
            text-decoration: none;
            color: inherit;
            cursor: pointer;
        }
        .page-compare-forex .platform-card--broker-matrix a.directory-trustpilot:focus-visible,
        .page-home .platform-card--home-forex-spotlight a.directory-trustpilot:focus-visible {
            outline: none;
            box-shadow: 0 0 0 2px var(--mc-blue-bg);
            border-radius: var(--radius-sm);
        }
        .page-compare-forex .platform-card--broker-matrix .directory-trustpilot__stars,
        .page-home .platform-card--home-forex-spotlight .directory-trustpilot__stars {
            height: 16px;
            line-height: 16px;
            width: auto;
            flex-shrink: 0;
            display: block;
            object-fit: contain;
            object-position: left center;
        }
        .page-compare-forex .platform-card--broker-matrix .directory-trustpilot__meta,
        .page-home .platform-card--home-forex-spotlight .directory-trustpilot__meta {
            display: inline-flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: center;
            gap: 6px;
            min-width: 0;
            line-height: 16px;
            font-size: 14px;
        }
        .page-compare-forex .platform-card--broker-matrix .directory-trustpilot__score,
        .page-home .platform-card--home-forex-spotlight .directory-trustpilot__score {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 16px;
            letter-spacing: -0.02em;
        }
        .page-compare-forex .platform-card--broker-matrix .directory-trustpilot__sep,
        .page-home .platform-card--home-forex-spotlight .directory-trustpilot__sep {
            color: var(--text-primary);
            font-weight: 600;
            font-size: 14px;
            line-height: 16px;
        }
        .page-compare-forex .platform-card--broker-matrix .directory-trustpilot__reviews,
        .page-home .platform-card--home-forex-spotlight .directory-trustpilot__reviews {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            line-height: 16px;
        }

        .micro-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--border-light); }
        .micro-badge.success { color: var(--status-success); border-color: #A7F3D0; background: #ECFDF5; }
        .micro-badge.primary { color: var(--mc-blue-text); border-color: var(--mc-blue-border); background: var(--mc-blue-bg); }
        .micro-badge.warning { color: var(--status-warning); border-color: #FDE68A; background: #FFFBEB; }
        .micro-badge.danger { color: var(--status-danger); border-color: #FECACA; background: #FEF2F2; }

        .platform-metrics { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 8px; }
        /* Forex directory row: three fixed slots (CPA / RevShare / Sub-IB) for uniform card height */
        .platform-metrics--directory {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: clamp(16px, 3vw, 28px);
            align-items: start;
        }
        .metric-item { display: flex; flex-direction: column; min-width: 0; }
        .platform-metrics--directory .metric-item { min-height: 3.25rem; }
        .metric-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; font-weight: 600; }
        .metric-value { font-size: 14px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; line-height: 1.35; }
        .metric-value--placeholder { color: var(--text-tertiary); font-weight: 600; letter-spacing: 0.04em; }
        .micro-badge__meta { opacity: 0.8; font-size: 0.9em; margin-left: 4px; font-weight: 500; }
        .metric-sub { font-size: 11px; color: var(--text-secondary); font-weight: 500; margin-top: 2px; }

        /* Actions Section */
        .platform-actions { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding-left: 24px; border-left: 1px solid var(--border-light); flex-shrink: 0; min-width: 180px; }
        
        .compare-toggle-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; min-height: 40px; padding: 8px 16px; background: var(--bg-base); border: 1px solid var(--border-hover); border-radius: var(--radius-xl); font-size: 12px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: background-color var(--transition-speed), border-color var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed); user-select: none; box-shadow: var(--shadow-micro); }
        .compare-toggle-btn:hover { border-color: var(--border-focus); color: var(--text-primary); background: var(--bg-subtle); }
        .compare-toggle-btn:has(.compare-checkbox:checked) { background: var(--bg-subtle); border-color: var(--border-focus); color: var(--text-primary); font-weight: 700; }
        .compare-toggle-btn input { width: 16px; height: 16px; accent-color: var(--accent-blue); cursor: pointer; margin: 0; flex-shrink: 0; }
        
        .btn-ib-terms { width: 100%; justify-content: space-between; padding: 10px 16px; font-size: 14px; }
        .btn-ib-terms i { font-size: 12px; opacity: 0.7; transition: transform 0.2s; }
        .btn-ib-terms:hover i { transform: translateX(4px); opacity: 1; }

        /* Empty State */
        .empty-state { display: none; text-align: center; padding: 64px 24px; background: var(--bg-base); border: 1px dashed var(--border-hover); border-radius: var(--radius-lg); margin-top: 20px; }
        .empty-state.active { display: block; }
        .empty-state i { font-size: 40px; color: var(--border-hover); margin-bottom: 16px; }
        .empty-state h3 { font-size: 18px; color: var(--text-primary); margin-bottom: 8px; }
        .empty-state p { font-size: 14px; color: var(--text-secondary); }

        /* Compare Dock */
        .compare-dock { position: fixed; bottom: -100px; left: 0; right: 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--border-light); padding: 16px 0; box-shadow: var(--shadow-float); z-index: 1000; transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        .compare-dock.active { bottom: 0; }
        .dock-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
        .dock-left { display: flex; align-items: center; gap: 24px; }
        .dock-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
        .dock-actions { display: flex; align-items: center; gap: 12px; }
        .selected-list { display: flex; gap: 8px; }
        .selected-item { display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-xl); font-size: 13px; font-weight: 500; }
        .selected-item-logo { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; }
        .btn-remove-item { background: none; border: none; color: var(--text-tertiary); cursor: pointer; display: flex; align-items: center; margin-left: 4px; }
        .btn-remove-item:hover { color: var(--status-danger); }

        /* Modern Modal Overlay */
        .modal-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(17, 24, 39, 0.4); backdrop-filter: blur(4px);
            z-index: 2000; display: flex; align-items: center; justify-content: center;
            opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
        }
        .modal-overlay.active { opacity: 1; pointer-events: auto; }
        .modal-box {
            background: var(--bg-base); padding: 32px; border-radius: var(--radius-lg);
            width: 90%; max-width: 400px; box-shadow: var(--shadow-float);
            position: relative; transform: translateY(20px); transition: transform 0.3s ease;
            text-align: center;
        }
        .modal-overlay.active .modal-box { transform: translateY(0); }
        .modal-close {
            position: absolute; top: 16px; right: 16px; background: none; border: none;
            color: var(--text-tertiary); font-size: 16px; cursor: pointer; transition: color 0.2s;
        }
        .modal-close:hover { color: var(--text-primary); }
        .modal-icon { font-size: 40px; color: var(--accent-blue); margin-bottom: 16px; }
        .modal-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
        .modal-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }
        .btn-modal-full { width: 100%; }

        /* MOBILE RESPONSIVE OPTIMIZATION */
        @media (max-width: 992px) {
            /* MODERN HEADER MOBILE NAV */
            .hamburger-btn { display: block; z-index: 101; }
            .nav-wrapper { 
                position: absolute; 
                top: 100%; 
                left: 0; 
                right: 0; 
                background: var(--bg-base); 
                flex-direction: column; 
                padding: 24px; 
                border-bottom: 1px solid var(--border-light); 
                gap: 24px; 
                z-index: 99; 
                box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); 
                /* Smooth Slide & Fade Down Animation */
                opacity: 0; 
                visibility: hidden; 
                transform: translateY(-10px); 
                transition: all 0.3s ease; 
                display: flex; 
            }
            .nav-wrapper.active { 
                opacity: 1; 
                visibility: visible; 
                transform: translateY(0); 
            }
            .nav-links { 
                flex-direction: column; 
                width: 100%; 
                text-align: left; 
                gap: 20px; 
                border-bottom: 1px solid var(--border-light); 
                padding-bottom: 24px; 
            }
            .nav-links a { 
                font-size: 16px; 
                font-weight: 600; 
                padding: 4px 0; 
            }
            .nav-actions { 
                width: 100%; 
                flex-direction: column; 
                gap: 12px; 
            }
            .nav-actions .btn { 
                width: 100%; 
                justify-content: center; 
            }
            .nav-actions .btn-outline { 
                margin-right: 0 !important; 
            }

            /* Layout */
            .dir-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }

            /* Toolbar Actions */
            .dir-toolbar { flex-direction: column; align-items: flex-start; gap: 16px; }
            .search-wrapper { max-width: 100%; width: 100%; }
            .toolbar-right { width: 100%; justify-content: space-between; }
            .page-compare-forex .dir-toolbar--forex-list .dir-toolbar__primary .dir-toolbar__end--forex-search-sort {
                width: 100%;
                justify-content: flex-start;
            }
            .page-compare-forex .dir-toolbar--forex-list .dir-toolbar__primary .dir-toolbar__end--forex-search-sort .search-wrapper {
                max-width: none;
            }
        }

        /* Tablet: filter matrix in-page (no Filters drawer button) */
        @media (max-width: 992px) and (min-width: 769px) {
            .sidebar {
                position: static;
                left: auto;
                top: auto;
                bottom: auto;
                width: 100%;
                max-width: none;
                height: auto;
                z-index: auto;
                padding-right: 12px;
                box-shadow: none;
                overflow-y: visible;
                transition: none;
            }
            .sidebar.active {
                left: auto;
            }
            .btn-close-sidebar { display: none; }
        }

        /* Phone: off-canvas filters */
        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                top: 0;
                left: -320px;
                bottom: 0;
                width: 300px;
                max-width: 85vw;
                height: 100vh;
                background: var(--bg-base);
                z-index: 2000;
                padding: 24px;
                overflow-y: auto;
                transition: left 0.3s ease;
                box-shadow: var(--shadow-float);
            }
            .sidebar.active { left: 0; }
            .btn-close-sidebar { display: block; }
            .btn-mobile-filter { display: inline-flex; }
            /* Forex list: filters full width; search + sort stay one flex row (wrap if needed) */
            .page-compare-forex .dir-toolbar__primary {
                flex-direction: column;
                align-items: stretch;
            }
            .page-compare-forex .dir-toolbar--forex-list .dir-toolbar__primary .dir-toolbar__start {
                width: 100%;
            }
            .page-compare-forex .dir-toolbar--forex-list .dir-toolbar__primary .dir-toolbar__start .btn-mobile-filter {
                order: -1;
                align-self: flex-start;
            }
            .page-compare-forex .dir-toolbar--forex-list .dir-toolbar__primary .dir-toolbar__end--forex-search-sort {
                width: 100%;
                justify-content: stretch;
            }
            .page-compare-forex .dir-toolbar__forex-sort-wrap {
                flex: 1 1 auto;
                min-width: 0;
                max-width: none;
                width: auto;
            }
            .platform-card { flex-direction: column; gap: 16px; padding: 20px; }
            .platform-card--broker-matrix { padding: 0; gap: 0; }
            .platform-card--broker-matrix .platform-card__head {
                padding: 20px 20px 12px;
            }
            .platform-card--broker-matrix .platform-card__head-main {
                grid-template-columns: 1fr;
                grid-template-rows: auto auto auto auto;
            }
            .platform-card--broker-matrix .platform-card__brand-col {
                grid-column: 1;
                grid-row: 1;
            }
            .platform-card--broker-matrix .platform-card__title-col {
                grid-column: 1;
                grid-row: 2;
                max-width: none;
            }
            .platform-card--broker-matrix .platform-card__body {
                grid-column: 1;
                grid-row: 3;
                padding-top: 8px;
            }
            .platform-card--broker-matrix .platform-card__head-compare {
                grid-column: 1;
                grid-row: 4;
                justify-self: end;
            }
            .platform-card--broker-matrix .platform-card-metric-footer__cta {
                margin-left: 0;
                width: 100%;
            }
            .platform-card--broker-matrix .platform-card-metric-footer__cta .btn-ib-terms {
                width: 100%;
                min-width: 0;
            }
            .platform-card--broker-matrix .platform-logo-box--broker-directory {
                width: 120px;
                height: 120px;
                font-size: 28px;
            }
            .page-compare-forex .platform-card--broker-matrix .platform-name {
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
            }
            .platform-card--broker-matrix .platform-card__metrics-footer { padding: 14px 20px; }
            .platform-card-metric-footer__cell { flex: 1 1 calc(50% - 8px); min-width: 8rem; }
            .platform-metrics--directory { grid-template-columns: 1fr; gap: 16px; }
            .platform-metrics--directory .metric-item { min-height: 0; }
            .platform-actions { width: 100%; border-left: none; border-top: 1px solid var(--border-light); padding-left: 0; padding-top: 16px; flex-direction: row; align-items: center; }
            .btn-ib-terms { width: auto; flex-grow: 1; margin-left: 12px; }
            .dock-container { flex-direction: column; gap: 16px; align-items: stretch; }
            .dock-left { flex-direction: column; align-items: flex-start; gap: 12px; }
        }

        @media (max-width: 992px) and (min-width: 769px) {
            .platform-metrics--directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }

/* Demo broker initials on forex compare fallback cards (design tokens only) */
body.page-compare-forex .platform-logo-box--sample-ic {
    color: var(--mc-teal-text);
    background: var(--mc-teal-bg);
    border-color: var(--mc-teal-border);
}
body.page-compare-forex .platform-logo-box--sample-xm {
    color: var(--mc-rose-text);
    background: var(--mc-rose-bg);
    border-color: var(--mc-rose-border);
}
body.page-compare-forex .platform-logo-box--sample-robo {
    color: var(--mc-blue-text);
    background: var(--mc-blue-bg);
    border-color: var(--mc-blue-border);
}
body.page-compare-forex .platform-logo-box--sample-fbs {
    color: var(--status-success);
    background: var(--bg-subtle);
    border-color: var(--border-light);
}

/* Per-directory hero subtitle width (was inline per-template) */
body.page-compare-forex .hero-subtitle { max-width: 650px; }
body.page-compare-crypto .hero-subtitle,
body.page-compare-prop .hero-subtitle { max-width: 680px; }
body.page-compare-binary .hero-subtitle { max-width: 750px; }
body.page-compare-social .hero-subtitle { max-width: 780px; }

/* Sponsored directory slot (first row on compare / directory pages) */
.platform-card--directory-sponsor {
    border-color: var(--border-hover);
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-subtle) 100%);
}
.platform-logo-box--revenika {
    background: var(--mc-blue-bg);
    border-color: var(--mc-blue-border);
}
.directory-sponsor-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}
.platform-name--sponsor {
    margin-bottom: 0;
}
.directory-sponsor-copy {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
    max-width: 36rem;
}
.platform-actions--directory-sponsor {
    justify-content: flex-start;
    gap: 12px;
}
.directory-sponsor-ads-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    user-select: none;
}
@media (max-width: 768px) {
    .platform-actions--directory-sponsor {
        flex-direction: column;
        align-items: stretch;
    }
    .platform-actions--directory-sponsor .btn-ib-terms {
        width: 100%;
        margin-left: 0;
        flex-grow: 0;
    }
    .directory-sponsor-ads-badge {
        align-self: flex-start;
    }
}

/* SEO pagination (directory / compare listings — self-contained, no forum-components.css) */
.directory-pagination-wrap {
    margin-top: clamp(1.5rem, 4vw, 2rem);
    padding-bottom: 0.5rem;
}

.directory-pagination-wrap--above-directory-list {
    margin-top: 0;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    padding-bottom: 0;
}

.directory-pagination-wrap .revenika-pagination {
    display: flex;
    justify-content: center;
}

.directory-pagination-wrap ul.forum-pagination.pagination,
.directory-pagination-wrap ul.pagination.forum-pagination {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.directory-pagination-wrap .forum-pagination .page-item,
.directory-pagination-wrap ul.forum-pagination.pagination .page-item {
    display: flex;
    align-items: stretch;
    margin: 0;
    list-style: none;
    min-width: 34px;
    min-height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-base);
    transition: border-color var(--transition-speed), color var(--transition-speed),
        background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.directory-pagination-wrap .forum-pagination .page-item:not(.disabled):hover,
.directory-pagination-wrap ul.forum-pagination.pagination .page-item:not(.disabled):hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--mc-blue-bg);
}

.directory-pagination-wrap .forum-pagination .page-item.active,
.directory-pagination-wrap ul.forum-pagination.pagination .page-item.active {
    background: var(--accent-blue);
    color: var(--bg-base);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-micro);
}

.directory-pagination-wrap .forum-pagination .page-item.disabled,
.directory-pagination-wrap ul.forum-pagination.pagination .page-item.disabled {
    opacity: 0.42;
    pointer-events: none;
}

.directory-pagination-wrap .forum-pagination .page-link,
.directory-pagination-wrap ul.forum-pagination.pagination .page-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 34px;
    min-height: 34px;
    padding: 0 8px;
    box-sizing: border-box;
}

.directory-pagination-wrap .forum-pagination .page-item.ellipsis,
.directory-pagination-wrap ul.forum-pagination.pagination .page-item.ellipsis {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    min-width: auto;
}

.directory-pagination-wrap .forum-pagination .page-item.ellipsis .page-link,
.directory-pagination-wrap ul.forum-pagination.pagination .page-item.ellipsis .page-link {
    cursor: default;
    color: var(--text-tertiary);
    min-width: auto;
    padding: 0 4px;
}

/* Home: Forex spotlight — three portrait cards (directory parity, vertical layout) */
.page-home .home-forex-spotlight__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    max-width: none;
}

.page-home .home-forex-spotlight__header .section-header {
    margin-bottom: 0;
    flex: 1;
    min-width: min(100%, 20rem);
}

.page-home .home-forex-spotlight__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-speed), gap var(--transition-speed);
}

.page-home .home-forex-spotlight__cta:hover {
    color: var(--accent-hover);
}

.page-home .home-forex-spotlight__cta i {
    font-size: 12px;
    opacity: 0.85;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.page-home .home-forex-spotlight__cta:hover i {
    transform: translateX(3px);
    opacity: 1;
}

.page-home .home-forex-spotlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: stretch;
}

.page-home .home-forex-spotlight-grid > * {
    min-width: 0;
}

@media (min-width: 769px) {
    .page-home .home-forex-spotlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .page-home .home-forex-spotlight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.page-home .platform-card--home-forex-spotlight {
    height: 100%;
    min-height: clamp(26rem, 52vh, 34rem);
    display: flex;
    flex-direction: column;
}

.page-home .platform-card--home-forex-spotlight .platform-card__head {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-home .platform-card--home-forex-spotlight .platform-card__head-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    width: 100%;
    gap: clamp(0.625rem, 2vw, 1rem);
}

.page-home .platform-card--home-forex-spotlight .platform-card__brand-col {
    align-items: center;
}

.page-home .platform-card--home-forex-spotlight .platform-card__title-col {
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.page-home .platform-card--home-forex-spotlight .platform-card__badge-row {
    align-items: center;
    gap: clamp(0.5rem, 2vw, 0.75rem);
}

.page-home .platform-card--home-forex-spotlight .platform-name {
    font-size: clamp(1.125rem, 2.75vw, 1.625rem);
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    width: 100%;
}

.page-home .platform-card--home-forex-spotlight .platform-logo-box--broker-directory {
    width: clamp(5rem, 28vw, 7.5rem);
    height: clamp(5rem, 28vw, 7.5rem);
    font-size: clamp(1.25rem, 4vw, 2rem);
}

.page-home .platform-card--home-forex-spotlight .platform-card__body {
    width: 100%;
    justify-content: center;
    padding-top: clamp(0.25rem, 1vw, 0.5rem);
}

.page-home .platform-card--home-forex-spotlight .platform-card-features {
    width: 100%;
    max-width: 100%;
    padding-inline-end: 0;
    margin-inline: auto;
    text-align: left;
    align-self: stretch;
}

.page-home .platform-card--home-forex-spotlight .platform-card__metrics-footer {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-top: auto;
}

.page-home .platform-card--home-forex-spotlight .platform-card-metric-footer__cell {
    max-width: none;
    text-align: center;
}

.page-home .platform-card--home-forex-spotlight .platform-card-metric-footer__cta {
    margin-left: 0;
    width: 100%;
}

.page-home .platform-card--home-forex-spotlight .platform-card-metric-footer__cta .btn-ib-terms {
    width: 100%;
    justify-content: center;
    min-width: 0;
}

@media (max-width: 768px) {
    .page-home .platform-card--home-forex-spotlight {
        min-height: 0;
    }
}

