.what-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.what-panel {
    padding: clamp(20px, 3.5vw, 32px);
    border-radius: var(--r);
    border: 1px solid var(--line-2);
    background:
        radial-gradient(500px 220px at 100% 0%, var(--white-04), transparent 70%),
        var(--surface);
}

.what-panel h3 {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.what-checks {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.what-checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--text-80);
}

/* Outlined green check-circle used by every checklist on the site (icon: check2-circle). */
.what-tick {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: var(--green);
    font-size: 1.15rem;
    line-height: 1;
}

.what-note {
    color: var(--muted);
    font-size: .92rem;
}

@media (min-width: 560px) {
    .what-checks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {

    .what-panel,
    .what-checks li {
        transition: none;
    }
}

@media (min-width: 900px) {
    .what-product {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: 48px;
    }
}

.what-text {
    min-width: 0;
}

/* ----- Order flow: simple dark cards, icon circle, arrow between steps ----- */
.of-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: clamp(28px, 4vw, 48px) 0 0;
    padding: 0;
    list-style: none;
}

.of-steps>.of-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 28px 24px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform .3s ease, border-color .3s ease, opacity .6s;
}

.of-steps>.of-step.reveal:not(.in) {
    transition-delay: var(--d, 0ms);
}

.of-steps>.of-step:hover {
    transform: translateY(-2px);
}

.of-steps .of-ico {
    width: 60px;
    height: 60px;
    margin: 0 0 20px;
    border-radius: var(--r);
    color: var(--brand-b);
}

.of-steps .of-ico .icon {
    font-size: 1.6rem;
}

.of-steps>.of-step h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.of-steps>.of-step p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
}

@media (min-width: 640px) {
    .of-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1020px) {
    .of-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 36px;
    }

    /* arrow between cards */
    .of-steps>.of-step:not(:last-child)::after {
        content: "\2192";
        position: absolute;
        top: 50%;
        left: calc(100% + 18px);
        transform: translate(-50%, -50%);
        color: var(--muted);
        font-size: 1.1rem;
        line-height: 1;
    }
}

/* CHANGED: tighter section + panel padding */
.pc-sec {
    padding: clamp(28px, 4vw, 56px) 0;
}

.pc-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    background:
        radial-gradient(700px 380px at 0% 0%, var(--brand-a-16), transparent 60%),
        radial-gradient(700px 380px at 100% 100%, var(--brand-b-16), transparent 60%),
        var(--surface);
}

/* animated "next level" visual (PRODUCT_CTA['image']); text left, visual right on desktop */
.pc-copy,
.pc-visual {
    position: relative;
    min-width: 0;
}

.pc-visual {
    display: flex;
    justify-content: center;
}

.pc-visual img, .pc-visual video { /* ADDED: video = converted GIF animation */
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
}

@media (min-width: 1020px) {
    .pc-panel:has(.pc-visual) {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 32px;
    }
}

.pc-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 14px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--grad) border-box;
    color: var(--text);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.pc-copy h2 {
    margin-bottom: .35em;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.12;
}

.pc-copy .lead {
    max-width: 54ch;
    margin-bottom: 0;
    font-size: .92rem;
    line-height: 1.6;
}

.pc-copy .btn-row {
    margin-top: 20px;
}

.pc-feats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.pc-feat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.pc-feat-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: var(--r-xs);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--brand-b);
}

.pc-feat-ico .icon {
    font-size: .85rem;
}

@media (max-width: 479px) {
    .pc-feats {
        gap: 10px 16px;
    }

    .pc-feat {
        font-size: .8rem;
    }
}

.sp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    max-width: 1180px;
    margin: clamp(28px, 4vw, 44px) auto 0;
}

.sp-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--line-2);
    background: var(--surface);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s ease, box-shadow .35s ease, opacity .6s;
}

/* stagger the reveal only, so hover is never delayed */
.sp-card.reveal:not(.in) {
    transition-delay: var(--d, 0ms);
}

.sp-card:hover {
    transform: translateY(-2px);
}

/* image area: full screenshot visible, never cropped */
.sp-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 300 / 266;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.sp-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.sp-card:hover .sp-media img {
    transform: scale(1.04);
}

.sp-body {
    flex: 1;
    padding: 20px 20px 24px;
    text-align: center;
}

.sp-body h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.sp-body p {
    margin: 0 auto;
    max-width: 30ch;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .sp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1020px) {
    .sp-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sp-card,
    .sp-media img {
        transition: none !important;
    }
}
/* ==========================================================================
   Shared "fx-" components (added Oct 2026, ported from AlgoDelta Live):
   split copy + animated visual, icon checklist, feature
   grid, data table with pills, code block, answer box.
   Used by: home (Speed, Security), copy trading, order manager, options
   automation, python & API bridge, brokers (static IP), security.
   ========================================================================== */
.fx-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.fx-split>* {
    min-width: 0;
}

@media (min-width: 940px) {
    .fx-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .fx-split.rev>.fx-visual {
        order: -1;
    }
}

.fx-copy h2 {
    margin-bottom: 18px;
}

.fx-copy>p {
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.08rem);
    line-height: 1.75;
    max-width: 60ch;
}

.fx-visual {
    display: flex;
    justify-content: center;
}

.fx-visual img, .fx-visual video { /* ADDED: video = converted GIF animation */
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
}

.fx-checks {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.fx-checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-80);
    font-size: 1rem;
    line-height: 1.55;
}

.fx-checks li>.icon {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--green);
    font-size: 1.1rem;
}

.fx-checks strong {
    color: var(--head);
}

.fx-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    color: var(--brand-b);
    font-weight: 700;
    font-size: 1.02rem;
}

.fx-link .icon {
    transition: transform .2s ease;
}

.fx-link:hover .icon,
.fx-link:focus-visible .icon {
    transform: translateX(3px);
}

/* Feature grid */
.fx-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: clamp(24px, 4vw, 40px);
}

@media (min-width: 640px) {
    .fx-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1020px) {
    .fx-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fx-grid.fx-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.fx-card {
    position: relative;
    padding: 24px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform .3s ease, border-color .3s ease, opacity .6s;
}

.fx-card:hover {
    transform: translateY(-2px);
}

.fx-card .ico,
.wp-card .ico {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: var(--r);
    background: var(--surface-2);
    color: var(--brand-b);
}

.fx-card .ico .icon,
.wp-card .ico .icon {
    font-size: 1.4rem;
}

.fx-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.fx-card p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.65;
}

.fx-card a {
    color: var(--brand-b);
}

/* Data table */
.fx-table-wrap {
    margin-top: clamp(20px, 3vw, 32px);
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    -webkit-overflow-scrolling: touch;
}

.fx-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: .92rem;
}

.fx-table th,
.fx-table td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}

.fx-table thead th {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--surface-2);
}

.fx-table tbody tr:last-child td {
    border-bottom: 0;
}

.fx-table tbody tr:hover td {
    background: var(--white-04);
}

.fx-table td strong,
.fx-table td a {
    color: var(--head);
}

.fx-table td a:hover {
    color: var(--brand-b);
}

.fx-table .small {
    font-size: .84rem;
    color: var(--muted);
}

.fx-table .yes {
    color: var(--green);
    font-weight: 600;
}

.fx-table .no {
    color: var(--muted);
}

.fx-broker {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.fx-broker>img,
.fx-broker>span {
    object-fit: cover;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
}

.fx-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-2);
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--muted);
}

.fx-pill.ok {
    color: var(--green);
    border-color: var(--green-32);
    background: var(--green-12);
}

.fx-pill.warn {
    color: var(--brand-b);
    border-color: var(--brand-b-32);
    background: var(--brand-b-12);
}

.fx-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: .85rem;
}

/* Code block */
.fx-code {
    overflow: hidden;
    border-radius: var(--r);
    border: 1px solid var(--line-2);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.fx-code-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font: 500 .8rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.fx-code-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line-2);
}

.fx-code-bar span {
    margin-left: 8px;
}

.fx-code pre {
    margin: 0;
    padding: 18px 20px;
    overflow-x: auto;
    color: var(--text);
    font: 400 .84rem/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre;
}

.fx-code .c {
    color: var(--muted);
}

.fx-code .k {
    color: var(--brand-b);
}

.fx-code .s {
    color: var(--green);
}

.fx-code .n {
    color: var(--brand-a);
}

/* Answer / quote box */
.fx-answer {
    margin: 24px 0 0;
    padding: 20px 22px;
    border-radius: var(--r);
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--brand-b);
    background: var(--surface);
    color: var(--text-80);
    line-height: 1.7;
}

.fx-answer p {
    margin: 0;
}

.fx-answer cite {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: .85rem;
    font-style: normal;
}

.fx-narrow {
    max-width: 860px;
}

.fx-prose h2 {
    margin: 0 0 16px;
}

.fx-prose h2:not(:first-child) {
    margin-top: clamp(36px, 5vw, 56px);
}

.fx-prose p,
.fx-prose li {
    color: var(--muted);
    line-height: 1.75;
}

.fx-prose a {
    color: var(--brand-b);
}

@media (prefers-reduced-motion: reduce) {

    .fx-card,
    .fx-link .icon {
        transition: none;
    }
}

/* Broker pages (/brokers/<slug>) */
.fx-broker-panel {
    /* lets the hero grid column shrink; the connection table scrolls inside .fx-table-wrap */
    min-width: 0;
}

.fx-broker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fx-broker-panel h3 small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 500;
}

.fx-broker-panel .fx-table-wrap {
    margin-top: 14px;
}

.fx-table-compact {
    min-width: 0;
}

.fx-table-compact th,
.fx-table-compact td {
    padding: 12px 14px;
}

.fx-broker-lg {
    font-size: 1.2rem;
}

.fx-broker-lg>img,
.fx-broker-lg>span {
    width: 44px;
    height: 44px;
}

.fx-broker-card {
    display: block;
    color: inherit;
}

.fx-broker-card .fx-broker {
    margin-bottom: 16px;
    color: var(--muted);
}

.fx-broker-card:hover h3 {
    color: var(--brand-b);
}

.fx-guides {
    margin-top: clamp(24px, 4vw, 40px);
}

.fx-guides .fx-checks {
    margin-top: 14px;
}

.fx-guides a {
    color: var(--text);
}

.fx-guides a:hover {
    color: var(--brand-b);
}

.fx-tech-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 48px;
    padding: 14px 16px;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-sm);
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.65;
}

.fx-tech-notice .icon {
    flex: 0 0 auto;
    margin-top: 3px;
}

/* All-broker logo wall (/brokers): every tile links to /brokers/<slug> */
.fx-logo-wall {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: clamp(28px, 4vw, 44px) 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .fx-logo-wall {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1020px) {
    .fx-logo-wall {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.fx-logo-tile {
    display: flex;
    align-items: center;
    height: 68px;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--surface-2);
    transition: transform .25s ease;
}

.fx-logo-tile:hover {
    transform: translateY(-2px);
}

.fx-logo-tile:focus-visible {
    outline: 2px solid var(--brand-b);
    outline-offset: 2px;
}

.fx-logo-tile .broker-chip {
    gap: 10px;
    white-space: normal;
}

.fx-logo-tile .broker-chip strong {
    font-size: .9rem;
    line-height: 1.25;
}

/* Linked feature cards (/products, /products/bridge) */
a.fx-card {
    display: flex;
    flex-direction: column;
    color: inherit;
}

a.fx-card:hover h3 {
    color: var(--brand-b);
}

.fx-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 16px;
    color: var(--brand-b);
    font-weight: 650;
    font-size: .9rem;
}

.fx-group-title {
    margin: clamp(32px, 5vw, 48px) 0 0;
    font-size: 1.25rem;
}

.fx-group-title:first-child {
    margin-top: 0;
}

/* Checklists whose own CSS colours/offsets .icon: keep the outlined tick consistent. */
:is(.fx-checks, .ct-trust, .ct-aud-card, .pr-features, .sv-checks, .what-checks, .trust-row) .what-tick .icon {
    margin: 0;
    color: var(--green);
    font-size: 1.15rem;
    line-height: 1;
}

.ct-trust .what-tick,
.sv-checks .what-tick {
    width: 18px;
    height: 18px;
    margin-top: 0;
}

.ct-trust .what-tick .icon,
.sv-checks .what-tick .icon {
    font-size: 1rem;
}

/* Phones: the broker connection table becomes stacked cards (no sideways scroll) */
@media (max-width: 639px) {
    .fx-table-compact {
        min-width: 0;
    }

    .fx-table-compact thead {
        display: none;
    }

    .fx-table-compact,
    .fx-table-compact tbody,
    .fx-table-compact tr,
    .fx-table-compact td {
        display: block;
        width: 100%;
    }

    .fx-table-compact tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .fx-table-compact tr:last-child {
        border-bottom: 0;
    }

    .fx-table-compact td {
        padding: 4px 0;
        border: 0;
    }

    .fx-table-compact td[data-label] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .fx-table-compact td[data-label]::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: .8rem;
        font-weight: 600;
    }

    .fx-broker-panel {
        padding: 18px;
    }

}

/* =========================================================
   FULL TRADING CONTROL  (includes/components/trading-control.php)
   Control list (left) + illustrative account panel (right).
   Used on the home page, Multiple Account Management and Copy Trading.
   ========================================================= */
.tc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.tc-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.tc-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color .25s ease, transform .25s ease;
}

.tc-item:hover {
    transform: translateY(-2px);
}

.tc-item .ico {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--brand-b);
    font-size: 1.05rem;
}

.tc-item h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.tc-item p {
    margin: 0;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.55;
}

/* ---- Panel mock-up ---- */
.tc-panel {
    margin: 0;
    padding: 18px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line-2);
    background:
        radial-gradient(420px 240px at 100% 0%, var(--brand-a-12), transparent 60%),
        var(--surface);
    box-shadow: var(--shadow-lg);
}

.tc-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.tc-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--head);
    font-weight: 700;
}

.tc-title .icon {
    color: var(--brand-b);
}

.tc-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    border: 1px solid var(--green-32);
    background: var(--green-12);
    color: var(--green);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: tc-pulse 1.6s ease-in-out infinite;
}

@keyframes tc-pulse {
    50% { opacity: .35; }
}

.tc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
}

.tc-tabs span {
    flex: 1 1 auto;
    padding: 6px 10px;
    border-radius: var(--r-xs);
    text-align: center;
    white-space: nowrap;
}

.tc-tabs .is-on {
    background: var(--surface);
    color: var(--head);
    box-shadow: var(--bevel);
}

.tc-tabs b {
    margin-left: 4px;
    padding: 0 6px;
    border-radius: var(--r-pill);
    background: var(--brand-b-20);
    color: var(--brand-b);
    font-size: .72rem;
}

.tc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--r-xs);
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    color: var(--text);
    font-size: .8rem;
    font-weight: 650;
    white-space: nowrap;
}

.tc-btn.is-danger {
    border-color: var(--brand-a-32);
    color: var(--brand-a);
}

.tc-btn.is-brand {
    border-color: transparent;
    background: var(--grad);
    color: var(--on-brand);
}

.tc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.tc-table th {
    padding: 8px 10px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}

.tc-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}

.tc-table tr:last-child td {
    border-bottom: 0;
}

.tc-table td strong {
    display: block;
    color: var(--head);
    font-weight: 650;
}

.tc-table td small {
    color: var(--muted);
    font-size: .75rem;
}

.tc-pnl {
    font-weight: 700;
}

.tc-pnl.is-up { color: var(--green); }
.tc-pnl.is-down { color: var(--brand-a); }
.tc-pnl.is-flat { color: var(--muted); }

.tc-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    border-radius: var(--r-pill);
    background: var(--line-2);
    vertical-align: middle;
}

.tc-toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--on-brand);
    transition: transform .25s ease;
}

.tc-toggle.is-on {
    background: var(--green);
}

.tc-toggle.is-on::after {
    transform: translateX(16px);
}

.tc-cap {
    margin-top: 12px;
    color: var(--muted);
    font-size: .75rem;
    text-align: center;
}

@media (min-width: 640px) {
    .tc-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1020px) {
    .tc-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    }
}

@media (max-width: 479px) {
    .tc-panel {
        padding: 14px;
    }

    .tc-tabs {
        flex-wrap: nowrap;
        font-size: .72rem;
    }

    .tc-tabs span {
        flex: 1 1 0;
        padding: 6px 4px;
    }

    .tc-table th:nth-child(2),
    .tc-table td:nth-child(2) {
        display: none;
    }
}

/* =========================================================
   WHY-CHOOSE PILLARS  (.wp-*; home "Why Traders Choose AlgoDelta")
   6 cards: 1 col → 2 cols → 3 x 2 on desktop.
   ========================================================= */
.wp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.wp-card {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.6vw, 26px);
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.wp-card:hover {
    transform: translateY(-3px);
}

.wp-card .ico {
    align-self: flex-start;
    margin-bottom: 16px;
}

.wp-card h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
}

.wp-card p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
}

.wp-card .fx-link {
    margin-top: auto;
    padding-top: 14px;
    font-size: .92rem;
}

@media (min-width: 640px) {
    .wp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1020px) {
    .wp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---- /brokers table (Broker · API · Connection options · Static IP · Daily login) ---- */
.fx-broker-table a.fx-broker {
    color: var(--head);
}

.fx-broker-table a.fx-broker:hover strong {
    color: var(--brand-b);
}

/* =========================================================
   CARD HEAD ROW  (site-wide rule)
   Every icon card shows its icon and title on the SAME ROW, with the
   description and links full-width underneath:
       [icon]  Title
       Description text ...
   Applies to .fx-card (feature grids), .wp-card (why-choose), .of-step
   (order flow / setup steps), .why-card (home, brokers) and .tc-item
   (trading control). No markup change: a text wrapper <div> is flattened
   with display: contents. Cross-broker cards (two logos) are excluded.
   Icon colour comes from .ico-3d in common.css.
   ========================================================= */
main :is(.fx-card:not(.fx-broker-cards .fx-card), .wp-card, .of-steps > .of-step, .why-card, .tc-item) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 12px;
    align-items: start;
    align-content: start;
}

main :is(.fx-card:not(.fx-broker-cards .fx-card), .wp-card, .of-steps > .of-step, .why-card, .tc-item) > *,
main :is(.why-card, .tc-item) > div > * {
    grid-column: 1 / -1;
    margin: 0;
}

main :is(.why-card, .tc-item) > div {
    display: contents;
}

/* row 1: icon + title */
main :is(.fx-card, .wp-card, .of-steps > .of-step, .why-card, .tc-item) > :is(.ico, .fx-broker):first-child {
    grid-column: 1;
    align-self: center;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: var(--r-sm);
    background: var(--surface-2);
}

main :is(.fx-card, .wp-card, .of-steps > .of-step, .why-card, .tc-item) > :is(.ico, .fx-broker):first-child .icon {
    font-size: 1.25rem;
}

main :is(.fx-card, .wp-card, .of-steps > .of-step) > :is(.ico, .fx-broker):first-child + h3,
main :is(.why-card, .tc-item) > .ico:first-child + div > h3 {
    grid-column: 2;
    align-self: center;
    margin: 0;
    line-height: 1.3;
}

/* broker logo used as the card icon (home "By broker" cards) */
main .fx-card > .fx-broker:first-child {
    display: inline-grid;
    place-items: center;
    background: none;
}

main .fx-card > .fx-broker:first-child > img,
main .fx-card > .fx-broker:first-child > span {
    width: 44px;
    height: 44px;
}

/* ADDED: CROSS-BROKER CARDS (/brokers/<slug> "Popular Setups")
   The two-logo strip is not a card icon: undo the 48px icon box above so
   [logo] <-> [logo] sits on one row, title + text below, on every width. */
main .fx-broker-cards .fx-card {
    display: block;
    text-align: left;
}

main .fx-broker-cards .fx-card > .fx-broker:first-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    height: auto;
    margin: 0 0 16px;
    background: none;
    border-radius: 0;
}

main .fx-broker-cards .fx-card > .fx-broker:first-child > img,
main .fx-broker-cards .fx-card > .fx-broker:first-child > span:not(.icon) {
    width: 44px;
    height: 44px;
}

main .fx-broker-cards .fx-card > .fx-broker:first-child > .icon {
    width: auto;
    height: auto;
    font-size: 1.1rem;
    color: var(--muted);
}

main .fx-broker-cards .fx-card > h3 {
    margin: 0 0 8px;
    line-height: 1.3;
    white-space: normal;
}

main .fx-broker-cards .fx-card > p {
    margin: 0;
}
/* END ADDED: CROSS-BROKER CARDS */

/* why-choose cards: keep the link pinned to the bottom of equal-height cards */
main .wp-card {
    grid-template-rows: auto 1fr auto;
}

main .wp-card > .fx-link {
    padding-top: 4px;
}
