/* ═══════════════════════════════════════════════
   BROKER PAGES v2 (design of the new homepage) — loaded after the page's own <style>
   Applies to all *-rebate(-ru|-uk) pages; uses mionto.css theme variables (light + dark).
   ═══════════════════════════════════════════════ */
:root { --bp-grid: #EEF2F8; --bp-blob1: rgba(16,185,129,.16); --bp-blob2: rgba(79,70,229,.12); }
:root[data-theme="dark"] { --bp-grid: rgba(255,255,255,.035); --bp-blob1: rgba(16,185,129,.22); --bp-blob2: rgba(79,70,229,.25); }

/* ── hero ── */
.broker-hero {
    background:
        linear-gradient(transparent, var(--m-bg) 94%),
        repeating-linear-gradient(90deg, var(--bp-grid) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(0deg, var(--bp-grid) 0 1px, transparent 1px 64px);
    border-bottom: 0;
    padding: 64px 32px 72px;
}
.broker-hero::before {
    top: -120px; left: auto; right: -140px; transform: none;
    width: 620px; height: 480px; border-radius: 50%;
    background: var(--bp-blob1); filter: blur(70px);
    animation: bp-float 12s ease-in-out infinite;
}
.broker-hero::after {
    content: ''; position: absolute; left: -160px; top: -60px; width: 480px; height: 380px; border-radius: 50%;
    background: var(--bp-blob2); filter: blur(70px); pointer-events: none; animation: bp-float 14s ease-in-out infinite -5s;
}
@keyframes bp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.broker-hero h1 { font-size: clamp(34px, 4.6vw, 56px) !important; font-weight: 800 !important; letter-spacing: -0.03em !important; line-height: 1.08 !important; }
.broker-hero h1 span {
    background: var(--m-text-grad) !important; -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.broker-hero p { font-size: 17px !important; }
.broker-hero a[href^="brokers"] { font-weight: 600; }

/* ── key numbers ── */
.rate-grid { gap: 14px; background: none; border: 0; border-radius: 0; overflow: visible; margin-top: 44px; }
.rate-cell {
    border: 1px solid var(--m-border); border-radius: 20px; box-shadow: var(--m-shadow);
    position: relative; overflow: hidden; padding: 26px 20px; transition: transform .2s;
}
.rate-cell:hover { transform: translateY(-3px); }
.rate-cell::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #34D399, #059669); }
.rate-cell:nth-child(2)::before { background: linear-gradient(90deg, #5EEAD4, #0D9488); }
.rate-cell:nth-child(3)::before { background: linear-gradient(90deg, #818CF8, #4F46E5); }
.rate-cell:nth-child(4)::before { background: linear-gradient(90deg, #FDBA74, #F97316); }
.rate-num { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.rate-label { font-size: 12px; letter-spacing: 0.04em; }

/* ── section labels (pill like on the homepage) ── */
section .m-overline {
    display: inline-flex !important; align-items: center; gap: 8px;
    font-size: 13px !important; font-weight: 700; letter-spacing: 0.06em !important; text-transform: uppercase;
    color: var(--m-blue) !important; background: var(--m-green-dim); padding: 6px 14px; border-radius: 99px;
}
section .m-overline::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--m-green); }
section .m-title-lg { letter-spacing: -0.02em; }

/* ── text ── */
.prose p { font-size: 16px; line-height: 1.75; }
.prose h3 { font-size: 19px; }
.prose a { color: var(--m-blue); }

/* ── steps ── */
.steps-grid { gap: 18px; }
.step-card {
    border-radius: 22px; box-shadow: var(--m-shadow); padding: 26px; position: relative; overflow: hidden;
    transition: transform .25s, border-color .25s;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--m-green); }
.step-num {
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
    font-family: var(--m-font); font-size: 16px; font-weight: 800; letter-spacing: 0; color: #fff; margin-bottom: 16px;
    background: linear-gradient(135deg, #818CF8, #4F46E5); box-shadow: 0 10px 22px -10px rgba(79,70,229,.7);
}
.step-card:nth-child(2) .step-num { background: linear-gradient(135deg, #5EEAD4, #0D9488); box-shadow: 0 10px 22px -10px rgba(13,148,136,.7); }
.step-card:nth-child(3) .step-num { background: linear-gradient(135deg, #FDBA74, #F97316); box-shadow: 0 10px 22px -10px rgba(249,115,22,.7); }
.step-card:nth-child(4) .step-num { background: linear-gradient(135deg, #34D399, #059669); box-shadow: 0 10px 22px -10px rgba(5,150,105,.7); }
.step-title { font-size: 17px; }
.step-desc { font-size: 14px; }

/* ── account / rate tables ── */
.account-table { border-radius: 20px; box-shadow: var(--m-shadow); }
.account-row { font-size: 14px; padding: 15px 22px; }
.account-row.header { font-size: 11px; letter-spacing: 0.06em; }
.account-row.top { background: var(--m-green-dim); box-shadow: inset 4px 0 0 var(--m-green); }
.account-rebate { font-family: var(--m-font); font-size: 15px; font-weight: 800; color: var(--m-blue); }
.account-best { color: var(--m-muted); }

/* ── worked examples (look like payout receipts) ── */
.example-grid { gap: 18px; }
.example-card { border-radius: 22px; box-shadow: var(--m-shadow); position: relative; overflow: hidden; padding: 26px; }
.example-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #34D399, #059669); }
.example-card:nth-child(2)::before { background: linear-gradient(90deg, #818CF8, #4F46E5); }
.example-card:nth-child(3)::before { background: linear-gradient(90deg, #FDBA74, #F97316); }
.example-tag {
    display: inline-block; font-family: var(--m-font); font-size: 11px; letter-spacing: 0.04em;
    color: var(--m-blue); background: var(--m-green-dim); padding: 4px 10px; border-radius: 99px;
}
.example-title { font-size: 17px; }
.calc-line { font-size: 14px; border-bottom: 2px dashed var(--m-border); }
.calc-total { font-size: 16px; align-items: baseline; }
.calc-total span:last-child { font-family: var(--m-font); font-size: 24px; color: var(--m-blue); }

/* ── pros / things to know ── */
.pc-grid { gap: 18px; }
.pc-card { border-radius: 22px; box-shadow: var(--m-shadow); padding: 28px; }
.pc-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.pc-card h3::before {
    content: '✓'; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
    color: #fff; font-size: 15px; background: linear-gradient(135deg, #34D399, #059669);
}
.pc-card + .pc-card h3::before { content: '!'; background: linear-gradient(135deg, #FDBA74, #F97316); }
.pc-card ul { padding-left: 0; list-style: none; }
.pc-card li { position: relative; padding-left: 22px; font-size: 15px; }
.pc-card li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--m-green); }
.pc-card + .pc-card li::before { background: #F97316; }

/* ── FAQ ── */
.faq-item { border-radius: 16px; margin-bottom: 10px; box-shadow: var(--m-shadow); }
.faq-q { padding: 20px 22px; }
.faq-q-text { font-size: 16px; font-weight: 700; }
.faq-icon { width: 26px; height: 26px; font-size: 16px; }
.faq-a { font-size: 15px; background: var(--m-surface); padding: 0 22px 20px; }

/* ── final call to action: dark card like on the homepage ── */
section.m-section > .m-container-narrow[style*="text-align:center"] {
    max-width: 1100px; background: #0B1B3A; color: #fff; border-radius: 30px; padding: 64px 28px;
    position: relative; overflow: hidden;
}
section.m-section > .m-container-narrow[style*="text-align:center"]::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(50% 80% at 50% 0%, rgba(16,185,129,.40), transparent), radial-gradient(40% 60% at 100% 100%, rgba(79,70,229,.35), transparent);
}
section.m-section > .m-container-narrow[style*="text-align:center"] > * { position: relative; }
section.m-section > .m-container-narrow[style*="text-align:center"] h2 { color: #fff; }
section.m-section > .m-container-narrow[style*="text-align:center"] p { color: rgba(255,255,255,.75) !important; }
section.m-section > .m-container-narrow[style*="text-align:center"] p a { color: #6EE7B7 !important; }
section.m-section > .m-container-narrow[style*="text-align:center"] .m-overline { background: rgba(52,211,153,.16); color: #6EE7B7 !important; }
section.m-section > .m-container-narrow[style*="text-align:center"] .m-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
section.m-section > .m-container-narrow[style*="text-align:center"] .m-btn-ghost:hover { border-color: #fff; color: #fff; }
section.m-section:has(> .m-container-narrow[style*="text-align:center"]) { border-top: 0 !important; }

/* ── "similar brokers" and "trader calculators" chips ── */
a[style*="border-radius:6px;padding:4px 12px"] {
    font-size: 14px !important; font-weight: 600; padding: 8px 16px !important; border-radius: 99px !important;
    box-shadow: var(--m-shadow); transition: transform .2s, border-color .2s;
}
a[style*="border-radius:6px;padding:4px 12px"]:hover { transform: translateY(-2px); border-color: var(--m-green) !important; }

@media (max-width: 768px) {
    .broker-hero { padding: 40px 18px 52px; }
    .rate-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
    .rate-cell { padding: 18px 12px; border-radius: 16px; }
    .rate-num { font-size: 26px; }
    .rate-label { font-size: 11px; }
    section.m-section > .m-container-narrow[style*="text-align:center"] { padding: 48px 20px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { .broker-hero::before, .broker-hero::after { animation: none; } }

/* phones: the account table shows 2 columns — hide the matching header cells too */
@media (max-width: 768px) { .account-row.header span:nth-child(2), .account-row.header span:nth-child(4) { display: none; } }
