.transaction-page {
    --tx-blue: #3b82f6;
    --tx-blue-dark: #2563eb;
    --tx-navy: #0d1730;
    --tx-muted: #718199;
    --tx-line: #cfdbeb;
    --tx-pale: #edf4ff;
    --tx-green: #19a974;
    background: #fff;
}

.transaction-page .site-header { position: relative; }
.transaction-page section[id] { scroll-margin-top: 24px; }
.transaction-page main { background: #fff; }

.transaction-kicker {
    color: var(--tx-blue);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.transaction-hero { padding: 22px 0 0; }
.transaction-hero-grid {
    min-height: 470px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    border: 1px solid var(--tx-line);
    background: linear-gradient(110deg, #edf4ff 0%, #f8fbff 50%, #fff 100%);
}
.transaction-hero-copy {
    padding: clamp(46px, 5.2vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.transaction-hero-copy h1 {
    max-width: 760px;
    margin: 17px 0 21px;
    color: var(--tx-navy);
    font-size: clamp(3.25rem, 5.1vw, 5.4rem);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: .96;
}
.transaction-hero-copy > p:not(.transaction-kicker, .rate-review) {
    max-width: 620px;
    color: var(--tx-muted);
    font-size: 1.08rem;
    line-height: 1.58;
}
.transaction-actions {
    margin-top: 27px;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}
.rate-review {
    margin-top: 16px;
    color: #8b99ad;
    font-size: .73rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.transaction-hero-art {
    min-height: 410px;
    display: grid;
    place-items: center;
    padding: 30px 44px;
}
.transaction-hero-art svg { width: min(100%, 560px); height: auto; }

.transaction-page svg { overflow: visible; }
.tx-stroke-dark,
.tx-stroke-blue,
.tx-stroke-soft,
.tx-stroke-green {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
}
.tx-stroke-dark { stroke: var(--tx-navy); }
.tx-stroke-blue { stroke: var(--tx-blue); }
.tx-stroke-soft { stroke: #b7c6da; }
.tx-stroke-green { stroke: var(--tx-green); }
.tx-stroke-wide { stroke-width: 3.8; }
.tx-fill-white { fill: #fff; }
.tx-fill-blue { fill: var(--tx-blue); }
.tx-fill-soft { fill: #bccbe0; }
.tx-fill-pale { fill: var(--tx-pale); }

.platform-fee-strip { padding: 22px 0 0; }
.platform-fee-strip-grid {
    display: grid;
    grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr);
    border: 1px solid var(--tx-line);
    background: #fff;
}
.platform-fee-main {
    padding: 30px 34px;
    display: grid;
    align-content: center;
    border-right: 1px solid var(--tx-line);
    background: #f6faff;
}
.platform-fee-main > span {
    color: var(--tx-muted);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.platform-fee-main strong {
    margin: 6px 0 3px;
    color: var(--tx-blue);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -.05em;
    line-height: 1;
}
.platform-fee-main p { color: var(--tx-muted); font-size: .9rem; }
.platform-fee-facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.platform-fee-facts > div {
    min-height: 132px;
    padding: 27px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--tx-line);
}
.platform-fee-facts > div:first-child { border-left: 0; }
.platform-fee-facts b { color: var(--tx-navy); font-size: .92rem; font-weight: 600; }
.platform-fee-facts small { margin-top: 6px; color: var(--tx-muted); font-size: .77rem; line-height: 1.45; }

.provider-logos { padding: 78px 0 22px; }
.provider-logos-heading {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: end;
}
.provider-logos-heading h2 {
    max-width: 760px;
    margin-top: 9px;
    color: var(--tx-navy);
    font-size: clamp(2.2rem, 3.6vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1.02;
}
.provider-logos-heading > small { color: var(--tx-muted); font-size: .78rem; }
.provider-logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.provider-logo-card {
    min-height: 128px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--tx-line);
    color: var(--tx-navy);
    background: #fff;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.provider-logo-card:hover { border-color: #a8c5ee; box-shadow: 0 10px 24px rgba(32, 75, 135, .08); transform: translateY(-2px); }
.provider-logo-visual { min-height: 34px; display: flex; align-items: center; }
.provider-logo-visual img { width: auto; max-width: 160px; max-height: 32px; object-fit: contain; object-position: left center; }
.provider-logo-afternic { gap: 10px; }
.provider-logo-afternic img { width: 30px; height: 30px; }
.provider-logo-afternic strong { font-size: 1.42rem; font-weight: 600; letter-spacing: -.035em; }
.provider-logo-rate {
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
    border-top: 1px solid var(--tx-line);
}
.provider-logo-rate b { color: var(--tx-blue); font-size: 1.05rem; font-weight: 600; }
.provider-logo-rate small { color: var(--tx-muted); font-size: .72rem; text-align: right; }

.transaction-section { padding: 82px 0; }
.transaction-heading {
    display: grid;
    grid-template-columns: .55fr 1.25fr .9fr;
    gap: 32px;
    align-items: end;
    margin-bottom: 38px;
}
.transaction-heading h2,
.safety-copy h2,
.trade-closing h2 {
    color: var(--tx-navy);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 600;
    letter-spacing: -.048em;
    line-height: 1.02;
}
.transaction-heading > p:last-child { color: var(--tx-muted); font-size: .96rem; }
.centered-heading {
    max-width: 830px;
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
}
.centered-heading > p:last-child { max-width: 650px; margin: 0 auto; }

.process-section { padding-top: 74px; background: #fff; }
.transaction-flow {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--tx-line);
    border-left: 1px solid var(--tx-line);
}
.transaction-flow li {
    position: relative;
    min-height: 295px;
    padding: 26px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-right: 1px solid var(--tx-line);
    border-bottom: 1px solid var(--tx-line);
    background: #fff;
}
.flow-number {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--tx-blue);
    background: #edf4ff;
    font-size: .75rem;
    font-weight: 700;
}
.flow-art { width: 108px; height: 86px; margin: 21px 0 15px; }
.flow-art svg { width: 100%; height: 100%; }
.transaction-flow h3 { color: var(--tx-navy); font-size: 1.08rem; font-weight: 600; line-height: 1.2; }
.transaction-flow p { margin-top: 6px; color: var(--tx-muted); font-size: .83rem; line-height: 1.45; }
.transaction-flow small {
    margin-top: auto;
    padding-top: 18px;
    color: #8b99ad;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.process-rule {
    padding: 19px 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    border: 1px solid var(--tx-line);
    border-top: 0;
    background: #f5f9ff;
}
.process-rule strong { color: var(--tx-navy); font-size: .88rem; }
.process-rule span { color: var(--tx-muted); font-size: .83rem; }

.fees-section { background: #f6f8fb; }
.table-scroll-note { display: none; color: var(--tx-muted); font-size: .75rem; }
.fee-table-wrap { overflow: hidden; border: 1px solid var(--tx-line); background: #fff; }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th,
.fee-table td {
    padding: 24px 24px;
    border-right: 1px solid var(--tx-line);
    border-bottom: 1px solid var(--tx-line);
    color: var(--tx-muted);
    font-size: .86rem;
    text-align: left;
    vertical-align: top;
}
.fee-table th:last-child,
.fee-table td:last-child { border-right: 0; }
.fee-table tbody tr:last-child th,
.fee-table tbody tr:last-child td { border-bottom: 0; }
.fee-table thead th {
    color: #738199;
    background: #eef4fc;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.fee-table thead th:nth-child(1) { width: 19%; }
.fee-table thead th:nth-child(2) { width: 18%; }
.fee-table thead th:nth-child(3) { width: 20%; }
.fee-table thead th:nth-child(4) { width: 28%; }
.fee-table tbody th > span,
.fee-table td b,
.fee-table td span { display: block; }
.fee-table tbody th > span:last-child,
.fee-table td span { margin-top: 6px; color: #8795a9; font-size: .74rem; font-weight: 400; }
.fee-table td b { color: var(--tx-blue); font-size: 1.22rem; font-weight: 600; letter-spacing: -.025em; }
.table-provider-logo { min-height: 29px; display: flex !important; align-items: center; }
.table-provider-logo img { width: auto; max-width: 132px; max-height: 27px; object-fit: contain; object-position: left center; }
.afternic-table-logo { gap: 8px; }
.afternic-table-logo img { width: 25px; height: 25px; }
.afternic-table-logo strong { color: var(--tx-navy); font-size: 1.15rem; font-weight: 600; }
.fee-legend {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    border: 1px solid var(--tx-line);
    background: #fff;
}
.fee-legend > div {
    min-height: 108px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--tx-line);
}
.fee-legend strong { color: #758399; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.fee-legend b { margin-top: 4px; color: var(--tx-blue); font-size: 1.22rem; font-weight: 600; }
.fee-legend span { margin-top: 3px; color: var(--tx-muted); font-size: .76rem; }
.fee-legend > a {
    min-width: 285px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--tx-blue-dark);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}
.fee-legend > a:hover { text-decoration: underline; }

.provider-section { background: #fff; }
.provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.provider-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 24px;
    border: 1px solid var(--tx-line);
    background: #fff;
}
.provider-card header {
    padding-bottom: 21px;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--tx-line);
}
.provider-index { color: var(--tx-blue); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.provider-card-title { display: grid; gap: 4px; min-width: 0; }
.provider-card-title p { color: var(--tx-muted); font-size: .78rem; }
.provider-brand-heading { min-height: 29px; display: flex; align-items: center; color: var(--tx-navy); }
.provider-brand-heading img { width: auto; max-width: 148px; max-height: 28px; object-fit: contain; object-position: left center; }
.provider-brand-afternic { gap: 9px; }
.provider-brand-afternic img { width: 27px; height: 27px; }
.provider-brand-afternic span { font-size: 1.35rem; font-weight: 600; letter-spacing: -.035em; }
.provider-card header > strong { color: var(--tx-blue); font-size: 1.45rem; font-weight: 600; letter-spacing: -.04em; }
.provider-card ol { margin: 22px 0 0 19px; color: var(--tx-muted); }
.provider-card li { padding: 0 0 12px 7px; font-size: .88rem; line-height: 1.5; }
.provider-card li::marker { color: var(--tx-blue); font-weight: 600; }
.provider-card em { color: var(--tx-navy); font-style: normal; font-weight: 600; }
.provider-note {
    margin-top: auto;
    padding: 16px 17px;
    border-left: 3px solid #a8c5ee;
    color: var(--tx-muted);
    background: #f5f8fc;
    font-size: .78rem;
    line-height: 1.5;
}
.provider-note strong { color: var(--tx-navy); font-weight: 600; }
.source-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px; }
.source-links a { color: var(--tx-blue-dark); font-size: .78rem; font-weight: 600; text-decoration: none; }
.source-links a:hover { text-decoration: underline; }

.safety-section { padding-top: 20px; background: #fff; }
.safety-panel {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    border: 1px solid #cbd9eb;
    background: #edf4ff;
}
.safety-copy { padding: 42px 44px; display: flex; flex-direction: column; justify-content: center; }
.safety-copy h2 { margin: 13px 0 14px; font-size: clamp(2.35rem, 3.7vw, 3.6rem); }
.safety-copy > p:last-child { max-width: 420px; color: var(--tx-muted); font-size: .94rem; }
.term-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 1px solid #cbd9eb;
}
.term-checklist li {
    min-height: 116px;
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 27px 1fr;
    gap: 11px;
    align-content: center;
    border-right: 1px solid #cbd9eb;
    border-bottom: 1px solid #cbd9eb;
}
.term-checklist li:nth-child(2n) { border-right: 0; }
.term-checklist li:nth-last-child(-n+2) { border-bottom: 0; }
.term-checklist li > span {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--tx-blue);
    font-size: .68rem;
}
.term-checklist p { display: grid; gap: 3px; }
.term-checklist strong { color: var(--tx-navy); font-size: .9rem; font-weight: 600; }
.term-checklist small { color: var(--tx-muted); font-size: .76rem; }

.trade-closing { padding: 0 0 68px; background: #fff; }
.trade-closing-panel {
    min-height: 205px;
    padding: 40px 44px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    border: 1px solid var(--tx-line);
    background: linear-gradient(110deg, #edf5ff 0%, #f9fbff 58%, #eef9f5 100%);
}
.trade-closing h2 { margin-top: 11px; font-size: clamp(2.5rem, 3.8vw, 3.8rem); }
.trade-closing-panel > div:last-child { display: grid; gap: 10px; min-width: 220px; }
.source-disclaimer { padding: 22px 0; border-top: 1px solid var(--tx-line); background: #f1f4f8; }
.source-disclaimer p { max-width: 1160px; color: var(--tx-muted); font-size: .74rem; line-height: 1.5; }
.source-disclaimer strong { color: var(--tx-navy); }

@media (max-width: 1180px) {
    .transaction-hero-grid { grid-template-columns: 1fr .9fr; }
    .transaction-hero-copy { padding-inline: 44px; }
    .platform-fee-strip-grid { grid-template-columns: 1fr; }
    .platform-fee-main { border-right: 0; border-bottom: 1px solid var(--tx-line); }
    .provider-logo-grid { grid-template-columns: 1fr 1fr; }
    .transaction-heading { grid-template-columns: .45fr 1.2fr; }
    .transaction-heading > p:last-child { grid-column: 2; }
    .centered-heading { grid-template-columns: 1fr; }
    .centered-heading > p:last-child { grid-column: auto; }
    .transaction-flow { grid-template-columns: repeat(3, 1fr); }
    .fee-legend { grid-template-columns: 1fr 1fr; }
    .fee-legend > a { grid-column: 1 / -1; border-top: 1px solid var(--tx-line); }
}

@media (max-width: 900px) {
    .transaction-hero-grid { grid-template-columns: 1fr; }
    .transaction-hero-art { min-height: 330px; padding-top: 0; }
    .platform-fee-facts { grid-template-columns: 1fr 1fr; }
    .platform-fee-facts > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--tx-line); }
    .platform-fee-facts > div:nth-child(4) { border-top: 1px solid var(--tx-line); }
    .transaction-section { padding: 68px 0; }
    .transaction-flow { grid-template-columns: 1fr 1fr; }
    .process-rule { grid-template-columns: 1fr; gap: 5px; }
    .table-scroll-note { margin-bottom: 9px; display: block; }
    .fee-table-wrap { overflow-x: auto; }
    .fee-table { min-width: 1060px; }
    .provider-grid { grid-template-columns: 1fr; }
    .safety-panel { grid-template-columns: 1fr; }
    .term-checklist { border-top: 1px solid #cbd9eb; border-left: 0; }
    .trade-closing-panel { grid-template-columns: 1fr; }
    .trade-closing-panel > div:last-child { min-width: 0; }
}

@media (max-width: 620px) {
    .transaction-hero { padding-top: 14px; }
    .transaction-hero-copy { padding: 38px 24px 20px; }
    .transaction-hero-copy h1 { font-size: clamp(2.9rem, 13vw, 4rem); }
    .transaction-hero-copy > p:not(.transaction-kicker, .rate-review) { font-size: .98rem; }
    .transaction-actions, .transaction-actions .button { width: 100%; }
    .transaction-hero-art { min-height: 260px; padding: 0 10px 24px; }
    .platform-fee-main { padding: 26px 24px; }
    .platform-fee-facts { grid-template-columns: 1fr; }
    .platform-fee-facts > div,
    .platform-fee-facts > div:nth-child(2),
    .platform-fee-facts > div:nth-child(3),
    .platform-fee-facts > div:nth-child(4) { min-height: 0; padding: 20px 24px; border-top: 1px solid var(--tx-line); border-left: 0; }
    .provider-logos { padding-top: 58px; }
    .provider-logos-heading { grid-template-columns: 1fr; gap: 7px; }
    .provider-logo-grid { grid-template-columns: 1fr; }
    .provider-logo-card { min-height: 104px; }
    .transaction-heading { grid-template-columns: 1fr; gap: 12px; }
    .transaction-heading > p:last-child { grid-column: auto; }
    .transaction-heading h2, .safety-copy h2, .trade-closing h2 { font-size: 2.45rem; }
    .transaction-flow { grid-template-columns: 1fr; border-left: 0; }
    .transaction-flow li { min-height: 225px; border-left: 1px solid var(--tx-line); }
    .flow-art { margin-block: 14px 10px; }
    .fee-legend { grid-template-columns: 1fr; }
    .fee-legend > div { border-right: 0; border-bottom: 1px solid var(--tx-line); }
    .fee-legend > a { grid-column: auto; min-width: 0; border-top: 0; }
    .provider-card { padding: 24px; }
    .provider-card header { grid-template-columns: 31px 1fr; }
    .provider-card header > strong { grid-column: 2; font-size: 1.3rem; }
    .safety-copy { padding: 34px 24px; }
    .term-checklist { grid-template-columns: 1fr; }
    .term-checklist li,
    .term-checklist li:nth-child(2n),
    .term-checklist li:nth-last-child(-n+2) { min-height: 0; border-right: 0; border-bottom: 1px solid #cbd9eb; }
    .term-checklist li:last-child { border-bottom: 0; }
    .trade-closing-panel { padding: 34px 24px; }
    .trade-closing-panel > div:last-child, .trade-closing-panel .button { width: 100%; }
}