/* =========================================================================
   Forex.eu.com — design system
   Editorial "register" aesthetic: warm paper, deep ink, euro-gold accents.
   ========================================================================= */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/fraunces-latin-opsz-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/fraunces-latin-ext-opsz-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/fraunces-latin-opsz-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --surface: #ffffff;
  --ink: #111a2e;
  --ink-2: #2b364d;
  --muted: #5d6679;
  --line: #e2ddd1;
  --line-2: #d3ccbc;
  --brand: #1c3aa9;
  --brand-ink: #12245a;
  --brand-soft: #e8ecfa;
  --gold: #e3a600;
  --gold-soft: #fbf1d3;
  --green: #0c7a55;
  --green-soft: #e1f3eb;
  --amber: #a85f00;
  --amber-soft: #fcefd9;
  --red: #b3261e;
  --red-soft: #fbe7e5;
  --violet: #5b3cc4;
  --violet-soft: #ece7fb;
  --shadow: 0 1px 2px rgba(17, 26, 46, .06), 0 6px 20px -8px rgba(17, 26, 46, .12);
  --shadow-lg: 0 2px 6px rgba(17, 26, 46, .06), 0 24px 48px -20px rgba(17, 26, 46, .25);
  --radius: 14px;
  --radius-sm: 9px;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
  --wrap: 1180px;
  --gutter: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1220; --paper-2: #131a2c; --surface: #161e33; --ink: #eef1f8; --ink-2: #c9d0e0; --muted: #9aa4ba;
    --line: #26304a; --line-2: #33405f; --brand: #8ea6ff; --brand-ink: #c8d4ff; --brand-soft: #1c2748;
    --gold: #f2c14e; --gold-soft: #2c2616; --green: #4fd1a1; --green-soft: #12302a; --amber: #f0b35a; --amber-soft: #33260f;
    --red: #ff8a80; --red-soft: #3a1b1b; --violet: #b7a4ff; --violet-soft: #251f45;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .5); --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1220; --paper-2: #131a2c; --surface: #161e33; --ink: #eef1f8; --ink-2: #c9d0e0; --muted: #9aa4ba;
  --line: #26304a; --line-2: #33405f; --brand: #8ea6ff; --brand-ink: #c8d4ff; --brand-soft: #1c2748;
  --gold: #f2c14e; --gold-soft: #2c2616; --green: #4fd1a1; --green-soft: #12302a; --amber: #f0b35a; --amber-soft: #33260f;
  --red: #ff8a80; --red-soft: #3a1b1b; --violet: #b7a4ff; --violet-soft: #251f45;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .5); --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.62;
  font-feature-settings: 'cv11', 'ss01'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-optical-sizing: auto; color: var(--ink); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 600; }
h3 { font-size: 1.22rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--sans); letter-spacing: 0; }
p { margin: 0 0 1em; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.icon { width: 1.2em; height: 1.2em; vertical-align: -.22em; flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.section-tight { padding-top: 32px; padding-bottom: 32px; }
.band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-family: var(--sans); font-size: .76rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem; display: flex; align-items: center; gap: .55rem; }
.kicker::before { content: ''; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }
.lede { font-size: 1.16rem; color: var(--ink-2); max-width: 64ch; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stack > * + * { margin-top: 14px; }

/* ---------- top bar & header ---------- */
.topline { height: 4px; background: linear-gradient(90deg, var(--brand-ink) 0 70%, var(--gold) 70% 100%); }
.announce { background: var(--brand-ink); color: #f4f6ff; font-size: .9rem; text-align: center; padding: 8px var(--gutter); }
.announce a { color: #ffd766; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 650; font-size: 1.28rem; letter-spacing: -.01em; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo small { font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; line-height: 1; margin-top: 3px; }
.logo span { line-height: 1.05; }
.main-nav { display: flex; gap: 2px; margin-left: 10px; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 520; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover { background: var(--paper-2); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-2); }
.header-search { position: relative; }
.header-search input[type=search] { width: 220px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px 0 36px; font: inherit; font-size: .92rem; color: var(--ink); }
.header-search .icon { position: absolute; left: 11px; top: 11px; color: var(--muted); width: 18px; height: 18px; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }
@media (max-width: 1080px) { .header-search input[type=search] { width: 160px; } .main-nav a { padding: 8px 8px; } }
@media (max-width: 940px) {
  .main-nav, .header-search { display: none; }
  .menu-toggle { display: inline-grid; }
  .mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px var(--gutter) 18px; background: var(--paper); }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 11px 4px; color: var(--ink); text-decoration: none; font-weight: 550; border-bottom: 1px solid var(--line); }
  .mobile-nav form { margin-top: 12px; }
  .mobile-nav input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; font: inherit; background: var(--surface); color: var(--ink); }
}

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
:root[data-theme="dark"] .btn-primary, :root:not([data-theme="light"]) .btn-primary { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: #3552c9; } }
:root[data-theme="dark"] .btn-primary { background: #3552c9; }
.btn-gold { background: var(--gold); color: #1d1605; }
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 88%, #000); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { height: 36px; padding: 0 13px; font-size: .88rem; border-radius: 9px; }
.btn-block { width: 100%; }
label { font-weight: 560; font-size: .92rem; display: block; margin-bottom: 6px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=number], input[type=search], input[type=password], input[type=url], input[type=date], select, textarea {
  width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem; padding: 9px 12px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 1px; border-color: var(--brand); }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.hint { font-size: .84rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: .92rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -5000px; }

/* ---------- chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 650; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; line-height: 1.6; text-decoration: none; }
.chip-eea { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.chip-uk { background: var(--violet-soft); color: var(--violet); border-color: color-mix(in srgb, var(--violet) 25%, transparent); }
.chip-ch { background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 22%, transparent); }
.chip-intl { background: var(--paper-2); color: var(--ink-2); }
.chip-off { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 25%, transparent); border-style: dashed; }
a.chip:hover { filter: brightness(.96); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-eea { background: var(--green-soft); color: var(--green); }
.badge-uk { background: var(--violet-soft); color: var(--violet); }
.badge-ch { background: var(--red-soft); color: var(--red); }
.badge-intl { background: var(--amber-soft); color: var(--amber); }
.badge-defunct { background: var(--red-soft); color: var(--red); }
.badge-partner { background: var(--gold-soft); color: #7a5a00; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
:root[data-theme="dark"] .badge-partner { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-partner { color: var(--gold); } }
.badge-reviewed { background: var(--brand-soft); color: var(--brand); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.flag { width: 20px; height: 15px; border-radius: 3px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; }
.flag-lg { width: 36px; height: 27px; border-radius: 4px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
a.card-link { display: block; text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
a.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.card-icon .icon { width: 24px; height: 24px; }

/* monogram tile used in place of third-party logos */
.mono { --h: 220; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-family: var(--serif); font-weight: 650; font-size: 1.1rem; letter-spacing: -.02em;
  background: hsl(var(--h) 55% 93%); color: hsl(var(--h) 55% 28%); border: 1px solid hsl(var(--h) 40% 84%); }
.mono-lg { width: 76px; height: 76px; font-size: 1.7rem; border-radius: 18px; }
.mono-sm { width: 34px; height: 34px; font-size: .84rem; border-radius: 9px; }
:root[data-theme="dark"] .mono { background: hsl(var(--h) 35% 20%); color: hsl(var(--h) 70% 82%); border-color: hsl(var(--h) 30% 30%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mono { background: hsl(var(--h) 35% 20%); color: hsl(var(--h) 70% 82%); border-color: hsl(var(--h) 30% 30%); } }

/* Protection score ring */
.score { position: relative; width: 58px; height: 58px; flex: none; }
.score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score .track { stroke: var(--line); }
.score .val { stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.score-strong .val { stroke: var(--green); }
.score-good .val { stroke: var(--brand); }
.score-moderate .val { stroke: var(--gold); }
.score-limited .val { stroke: var(--red); }
.score b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--sans); font-size: .98rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.score-lg { width: 104px; height: 104px; }
.score-lg b { font-size: 1.7rem; }
.score-pill { display: inline-block; min-width: 34px; text-align: center; font-weight: 700; font-size: .85rem; padding: 2px 8px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.score-pill.score-strong { background: var(--green-soft); color: var(--green); }
.score-pill.score-good { background: var(--brand-soft); color: var(--brand); }
.score-pill.score-moderate { background: var(--gold-soft); color: var(--amber); }
.score-pill.score-limited { background: var(--red-soft); color: var(--red); }

/* broker row card */
.broker-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.broker-row + .broker-row { margin-top: 10px; }
.broker-row h3 { font-size: 1.12rem; margin: 0 0 3px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.broker-row h3 a { color: var(--ink); text-decoration: none; }
.broker-row h3 a:hover { color: var(--brand); }
.broker-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--muted); align-items: center; }
.broker-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.broker-note { font-size: .93rem; color: var(--ink-2); margin: 8px 0 0; max-width: 72ch; }
.broker-side { display: flex; align-items: center; gap: 14px; }
.broker-actions { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.risk-mini { font-size: .72rem; color: var(--muted); line-height: 1.35; margin-top: 4px; max-width: 170px; }
@media (max-width: 720px) {
  .broker-row { grid-template-columns: auto 1fr; }
  .broker-side { grid-column: 1 / -1; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 12px; }
  .broker-actions { flex-direction: row; min-width: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(46px, 8vw, 96px) 0 clamp(40px, 6vw, 70px); }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 60%),
  radial-gradient(700px 380px at 0% 110%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); line-height: 1.04; margin-bottom: 18px; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--brand); }
.hero-search { display: flex; gap: 8px; margin: 26px 0 14px; max-width: 580px; background: var(--surface); padding: 7px; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.hero-search input { border: 0; min-height: 48px; font-size: 1.05rem; background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search .btn { height: 48px; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); align-items: center; }
.hero-quick a { color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; text-decoration: none; }
.hero-quick a:hover { border-color: var(--line-2); color: var(--ink); }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 34px; overflow: hidden; }
.stat-strip div { padding: 16px 18px; border-right: 1px solid var(--line); }
.stat-strip div:last-child { border-right: 0; }
.stat-strip b { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-strip span { font-size: .82rem; color: var(--muted); }
@media (max-width: 640px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } .stat-strip div:nth-child(2) { border-right: 0; } .stat-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* the "register slip" illustration in the hero */
.slip { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px; position: relative; }
.slip::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: -8px; height: 8px; border-radius: 0 0 14px 14px; background: var(--paper-2); border: 1px solid var(--line); border-top: 0; z-index: -1; }
.slip-head { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.slip-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.slip dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 16px 0 6px; font-size: .92rem; }
.slip dt { color: var(--muted); }
.slip dd { margin: 0; font-weight: 550; }
.stamp { position: absolute; right: 18px; top: 18px; transform: rotate(8deg); border: 2px solid var(--green); color: var(--green); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 8px; opacity: .85; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.step { position: relative; padding: 22px 22px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--gold); line-height: 1; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.1rem; }
.step p { font-size: .95rem; color: var(--ink-2); margin: 0; }

/* ---------- country tiles ---------- */
.country-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.country-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 560; }
.country-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.country-tile small { display: block; font-weight: 450; color: var(--muted); font-size: .8rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 1.2em 0 1.6em; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; background: var(--paper-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
table.mini td { padding: 9px 12px; }
.compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 150px; font-weight: 600; }
.compare-table th:first-child { background: var(--paper-2); }
.compare-table td { min-width: 200px; }

/* ---------- prose ---------- */
.prose { font-size: 1.06rem; line-height: 1.72; color: var(--ink); }
.prose > * { max-width: 72ch; }
.prose .table-wrap, .prose > .callout, .prose > .tool-inline { max-width: none; }
.prose h2 { margin-top: 2.1em; padding-top: .2em; }
.prose h3 { margin-top: 1.7em; }
.prose h2 .anchor, .prose h3 .anchor { opacity: 0; margin-left: -1em; width: 1em; display: inline-block; color: var(--muted); text-decoration: none; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--muted); }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--gold); color: var(--ink-2); font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); }
.prose pre { background: var(--ink); color: var(--paper); padding: 16px; border-radius: 12px; overflow-x: auto; font-size: .88rem; }
.prose pre code { background: none; border: 0; color: inherit; padding: 0; }
.prose a.ext::after { content: '↗'; font-size: .75em; margin-left: 2px; vertical-align: super; text-decoration: none; display: inline-block; }
.prose strong { font-weight: 650; }
.prose table { font-size: .93rem; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--surface); border-radius: 12px; padding: 16px 20px; margin: 1.6em 0; font-size: .98rem; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin-bottom: .35em !important; font-family: var(--sans); }
.callout-warning { border-left-color: var(--red); background: color-mix(in srgb, var(--red-soft) 55%, var(--surface)); }
.callout-tip { border-left-color: var(--green); background: color-mix(in srgb, var(--green-soft) 55%, var(--surface)); }
.callout-eu { border-left-color: var(--gold); background: color-mix(in srgb, var(--gold-soft) 60%, var(--surface)); }
.tool-inline { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--ink); margin: 1.4em 0; box-shadow: var(--shadow); }
.tool-inline:hover { border-color: var(--brand); }
.tool-inline-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }

/* ---------- article layout ---------- */
.page-head { padding: clamp(28px, 5vw, 56px) 0 26px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.page-head h1 { max-width: 22ch; }
.page-head .lede { margin-bottom: 0; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--muted); font-size: .9rem; margin-top: 18px; }
.byline a { color: var(--ink-2); }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; padding-top: 36px; padding-bottom: 60px; }
.with-aside-left { grid-template-columns: 250px minmax(0, 1fr); }
@media (max-width: 1000px) { .with-aside, .with-aside-left { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.with-aside > article > section { margin-top: 44px; }
.with-aside > * { min-width: 0; }
.aside-sticky { position: sticky; top: 92px; align-self: start; }
@media (max-width: 1000px) { .aside-sticky { position: static; } }
.toc { font-size: .9rem; border-left: 2px solid var(--line); padding-left: 14px; }
.toc p { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 7px 0; }
.toc li.d3 { padding-left: 12px; font-size: .86rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.toc a.active { color: var(--brand); font-weight: 600; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; font-size: .92rem; }
.aside-box h4 { margin-bottom: 8px; }
.aside-box ul { padding-left: 1.1em; margin: 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 620; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding-bottom: 14px; color: var(--ink-2); }
.review-note { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 36px; padding-top: 16px; }

/* ---------- broker profile ---------- */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
@media (max-width: 760px) { .profile-head { grid-template-columns: auto 1fr; } .profile-head .score-box { grid-column: 1 / -1; } }
.profile-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 6px; }
.score-box { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.score-box small { display: block; color: var(--muted); max-width: 18ch; line-height: 1.35; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 26px 0; }
.facts div { background: var(--surface); padding: 14px 16px; }
.facts dt { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 560; }
.protect-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.protect-card + .protect-card { margin-top: 12px; }
.protect-card header { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.protect-card ul { margin: 0; padding: 14px 18px 16px 36px; font-size: .95rem; }
.protect-card li { margin: 5px 0; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 26px; margin: 8px 0; }
.list-check li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--green-soft); box-shadow: inset 0 0 0 1.5px var(--green); }
.list-check li::after { content: ''; position: absolute; left: 5px; top: calc(.45em + 4px); width: 6px; height: 4px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.list-x li::before { background: var(--red-soft); box-shadow: inset 0 0 0 1.5px var(--red); }
.list-x li::after { border: 0; width: 8px; height: 2px; left: 4px; top: calc(.45em + 7px); background: var(--red); transform: none; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .proscons { grid-template-columns: 1fr; } }
.cta-box { background: var(--brand-ink); color: #eef2ff; border-radius: var(--radius); padding: 22px; }
.cta-box h4 { color: #fff; }
.cta-box p { color: #c9d3f5; font-size: .9rem; }
.cta-box .btn-gold { width: 100%; }
.cta-box .risk { font-size: .76rem; color: #aebae6; margin: 10px 0 0; line-height: 1.45; }
.stars { color: var(--gold); letter-spacing: 2px; }
.feedback-item { border-top: 1px solid var(--line); padding: 16px 0; }
.feedback-item h4 { margin: 0 0 4px; }

/* ---------- filters ---------- */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filters .field { margin-bottom: 12px; }
.filters label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filters select, .filters input { min-height: 40px; font-size: .94rem; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters a { font-size: .82rem; background: var(--brand-soft); color: var(--brand); padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.active-filters a::after { content: ' ×'; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: .92rem; }
.pager span.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager span.gap { border: 0; background: none; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 550; }
.tabs a[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- tools ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 26px; align-items: start; }
@media (max-width: 900px) { .tool-layout { grid-template-columns: minmax(0, 1fr); } }
.tool-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.result-panel { background: var(--brand-ink); color: #eef2ff; border-radius: 18px; padding: 24px; position: sticky; top: 92px; }
@media (max-width: 900px) { .result-panel { position: static; } }
.result-panel h2, .result-panel h3 { color: #fff; }
.result-big { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; margin: 6px 0 4px; color: #fff; }
.result-sub { color: #b9c5ef; font-size: .92rem; }
.result-list { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.result-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.result-list li span:last-child { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.result-panel .note { font-size: .8rem; color: #aebae6; margin-top: 14px; }
.result-panel a { color: #ffd766; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 14px; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--ink-2); background: var(--surface); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -2px; }
.sessions { position: relative; margin-top: 12px; }
.session-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; margin: 10px 0; font-size: .92rem; }
.session-track { position: relative; height: 30px; background: var(--paper-2); border-radius: 8px; border: 1px solid var(--line); overflow: hidden; }
.session-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; background: var(--brand); opacity: .85; }
.session-bar.open { background: var(--green); opacity: 1; }
.now-line { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--red); z-index: 2; }
.hours-axis { display: grid; grid-template-columns: repeat(12, 1fr); margin-left: 122px; font-size: .72rem; color: var(--muted); }
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-tip { font-size: .85rem; color: var(--muted); min-height: 1.4em; }

/* finder */
.finder-q { border: 0; padding: 0; margin: 0 0 22px; }
.finder-q legend { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.opt-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: block; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 550; font-size: .95rem; }
.opt span small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.opt input:focus-visible + span { outline: 2px solid var(--gold); }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.progress i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .3s ease; }

/* ---------- footer ---------- */
.risk-banner { background: var(--ink); color: #dfe4f1; font-size: .86rem; padding: 14px 0; }
:root[data-theme="dark"] .risk-banner { background: #070b15; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .risk-banner { background: #070b15; } }
.risk-banner strong { color: #fff; }
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 50px 0 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-countries { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 22px; }
.footer-countries-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.footer-countries-head select { min-width: 240px; min-height: 42px; }
.footer-country-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .86rem; }
.footer-country-links li { margin: 0 !important; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; color: var(--muted); font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { min-height: 42px; }
.disclosure { font-size: .84rem; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 14px; }
.disclosure a { color: var(--ink-2); }
.notice { padding: 12px 16px; border-radius: 12px; margin: 14px 0; font-size: .95rem; }
.notice-ok { background: var(--green-soft); color: var(--green); }
.notice-err { background: var(--red-soft); color: var(--red); }
.empty { text-align: center; padding: 40px; color: var(--muted); }

/* search */
.search-result { padding: 16px 0; border-bottom: 1px solid var(--line); }
.search-result a { font-weight: 620; font-size: 1.08rem; }
.search-result p { margin: 4px 0 0; color: var(--ink-2); font-size: .94rem; }
mark { background: var(--gold-soft); color: inherit; padding: 0 2px; border-radius: 3px; }

/* print */
@media print {
  .site-header, .site-footer, .risk-banner, .aside-sticky, .topline, .announce, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .with-aside { display: block; }
  a { color: #000; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* =========================================================================
   Colour layer — vivid "euro night" palette: royal blue, violet, magenta,
   teal and sunrise gold. Everything below overrides the base system above.
   ========================================================================= */
:root {
  --paper: #f7f8fc; --paper-2: #eef1fa; --surface: #ffffff;
  --ink: #0f1733; --ink-2: #2b3558; --muted: #5a6482;
  --line: #e2e6f2; --line-2: #cfd6ea;
  --brand: #2447d8; --brand-ink: #101b4d; --brand-soft: #e6ecff;
  --violet: #6c3cf0; --violet-soft: #efe8ff;
  --teal: #0b8a87; --teal-soft: #d9f4f2;
  --coral: #d9472a; --coral-soft: #fde8e2;
  --pink: #c92a73; --pink-soft: #fde5ef;
  --gold: #f0ad00; --gold-soft: #fff3cc; --gold-ink: #9a5b00;
  --green: #0b8a5c; --green-soft: #dcf5ea;
  --grad-brand: linear-gradient(135deg, #2447d8 0%, #6c3cf0 55%, #c92a73 100%);
  --grad-sun: linear-gradient(135deg, #ffc933 0%, #f28a1c 55%, #e4502f 100%);
  --grad-rainbow: linear-gradient(90deg, #2447d8, #6c3cf0, #c92a73, #f28a1c, #ffc933, #0b8a87);
  --glow: 0 10px 30px -12px rgba(108, 60, 240, .45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a0f1f; --paper-2: #10172e; --surface: #151d38; --ink: #eef1fb; --ink-2: #c8cfe6; --muted: #98a2c0;
    --line: #232d52; --line-2: #2f3b66; --brand: #8ea8ff; --brand-ink: #c9d5ff; --brand-soft: #1a2550;
    --violet: #b69cff; --violet-soft: #251c4a; --teal: #4fd8d2; --teal-soft: #0f2f33; --coral: #ff9a80; --coral-soft: #3a1d18;
    --pink: #ff8cbf; --pink-soft: #3a1830; --gold: #ffcf4d; --gold-soft: #2e2612; --gold-ink: #ffcf4d; --green: #4fd6a4; --green-soft: #0f2e26;
  }
}
:root[data-theme="dark"] {
  --paper: #0a0f1f; --paper-2: #10172e; --surface: #151d38; --ink: #eef1fb; --ink-2: #c8cfe6; --muted: #98a2c0;
  --line: #232d52; --line-2: #2f3b66; --brand: #8ea8ff; --brand-ink: #c9d5ff; --brand-soft: #1a2550;
  --violet: #b69cff; --violet-soft: #251c4a; --teal: #4fd8d2; --teal-soft: #0f2f33; --coral: #ff9a80; --coral-soft: #3a1d18;
  --pink: #ff8cbf; --pink-soft: #3a1830; --gold: #ffcf4d; --gold-soft: #2e2612; --gold-ink: #ffcf4d; --green: #4fd6a4; --green-soft: #0f2e26;
}
::selection { background: color-mix(in srgb, var(--violet) 28%, transparent); }

/* header */
.topline { height: 4px; background: var(--grad-rainbow); }
.main-nav a[aria-current="page"] { color: var(--violet); background: var(--violet-soft); }
.main-nav a:hover { background: var(--violet-soft); color: var(--violet); }
.logo-mark { filter: drop-shadow(0 4px 10px rgba(108, 60, 240, .35)); }

/* buttons */
.btn-primary, :root[data-theme] .btn-primary, :root:not([data-theme="light"]) .btn-primary {
  background: var(--grad-brand); color: #fff; box-shadow: var(--glow); border: 0; }
.btn-primary:hover, :root[data-theme] .btn-primary:hover { background: var(--grad-brand); filter: brightness(1.08) saturate(1.05); }
.btn-gold { background: var(--grad-sun); color: #2a1500; box-shadow: 0 10px 26px -12px rgba(242, 138, 28, .7); }
.btn-gold:hover { background: var(--grad-sun); filter: brightness(1.05); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

/* kickers */
.kicker::before { width: 22px; height: 3px; background: var(--grad-brand); }
.section-head .kicker { color: var(--violet); }

/* hero: deep night-blue with colour glows */
.hero { background: #0c1340; color: #e8ecff; isolation: isolate; }
.hero::before { z-index: -1; background:
  radial-gradient(560px 360px at 92% 6%, rgba(201, 42, 115, .5), transparent 62%),
  radial-gradient(620px 420px at 60% 115%, rgba(11, 138, 135, .5), transparent 60%),
  radial-gradient(760px 520px at -5% -10%, rgba(36, 71, 216, .75), transparent 60%),
  radial-gradient(420px 260px at 40% 40%, rgba(255, 201, 51, .12), transparent 70%),
  linear-gradient(135deg, #0c1340 0%, #1c1d6e 52%, #36177a 100%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero h1 { color: #fff; }
.hero h1 em { color: transparent; background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; padding-right: .06em; }
.hero .lede { color: #c9d2f5; }
.hero .lede strong { color: #fff; }
.hero .kicker { color: #ffd978; }
.hero .kicker::before { background: var(--grad-sun); }
.hero-search { border: 0; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); }
.hero-quick { color: #aab5e6; }
.hero-quick a { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #eef1ff; }
.hero-quick a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }
.slip { border: 0; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); overflow: visible; }
.slip::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 18px 18px 0 0; background: var(--grad-rainbow); }
.slip::after { background: rgba(255, 255, 255, .5); border: 0; }
.stat-strip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stat-strip div { border-color: rgba(255, 255, 255, .12) !important; }
.stat-strip span { color: #b7c1ea; }
.stat-strip div:nth-child(1) b { color: #9db6ff; }
.stat-strip div:nth-child(2) b { color: #7ff0d6; }
.stat-strip div:nth-child(3) b { color: #ffd56b; }
.stat-strip div:nth-child(4) b { color: #ff9fcd; }

/* page heads get a soft colour mesh */
.page-head { background:
  radial-gradient(720px 260px at 100% 0%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 65%),
  radial-gradient(620px 240px at 0% 110%, color-mix(in srgb, var(--teal) 13%, transparent), transparent 65%),
  radial-gradient(520px 200px at 55% -20%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
  var(--paper); }

/* bands */
.band { background:
  radial-gradient(800px 320px at 0% 0%, color-mix(in srgb, var(--violet) 9%, transparent), transparent 60%),
  radial-gradient(700px 320px at 100% 100%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 60%),
  var(--paper-2); }
.band-blog { background:
  radial-gradient(760px 320px at 100% 0%, color-mix(in srgb, var(--pink) 10%, transparent), transparent 60%),
  radial-gradient(700px 320px at 0% 100%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 60%),
  var(--paper-2); }

/* steps */
.step { border-top: 4px solid var(--brand); }
.step:nth-child(2) { border-top-color: var(--violet); }
.step:nth-child(3) { border-top-color: var(--pink); }
.step::before { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.15rem;
  color: #fff; background: var(--grad-brand); box-shadow: var(--glow); margin-bottom: 14px; }
.step:nth-child(2)::before { background: linear-gradient(135deg, #6c3cf0, #c92a73); }
.step:nth-child(3)::before { background: var(--grad-sun); color: #2a1500; }

/* cards */
a.card-link:hover { border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); }
.cat-protection { --c: var(--green); --cs: var(--green-soft); }
.cat-basics { --c: var(--brand); --cs: var(--brand-soft); }
.cat-brokers { --c: var(--violet); --cs: var(--violet-soft); }
.cat-markets { --c: var(--teal); --cs: var(--teal-soft); }
.cat-strategy { --c: var(--coral); --cs: var(--coral-soft); }
.cat-europe { --c: var(--gold-ink); --cs: var(--gold-soft); }
.cat-guides { --c: var(--violet); --cs: var(--violet-soft); }
.cat-news { --c: var(--coral); --cs: var(--coral-soft); }
.cat-analysis { --c: var(--teal); --cs: var(--teal-soft); }
.card-cat { position: relative; overflow: hidden; background: linear-gradient(165deg, color-mix(in srgb, var(--cs, var(--brand-soft)) 90%, var(--surface)) 0%, var(--surface) 42%); }
.card-cat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c, var(--brand)); }
.card-cat .kicker { color: var(--c, var(--brand)); }
.card-cat .kicker::before { background: var(--c, var(--brand)); }
a.card-cat:hover { border-color: color-mix(in srgb, var(--c, var(--brand)) 50%, var(--line)); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--c, var(--brand)) 60%, transparent); }
.card-date { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); }
.card-date::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--brand)); }
section[class*="cat-"] > .section-head h2 { display: inline-block; background-image: linear-gradient(var(--c), var(--c)); background-size: 42px 4px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 8px; }

/* colourful tool icons */
.card-icon, .tool-inline-icon { color: #fff; background: var(--grad-brand); box-shadow: 0 8px 18px -10px rgba(108, 60, 240, .7); }
.grid > :nth-child(6n+2) .card-icon { background: linear-gradient(135deg, #0b8a87, #2bbfa6); box-shadow: 0 8px 18px -10px rgba(11, 138, 135, .8); }
.grid > :nth-child(6n+3) .card-icon { background: var(--grad-sun); box-shadow: 0 8px 18px -10px rgba(242, 138, 28, .8); }
.grid > :nth-child(6n+4) .card-icon { background: linear-gradient(135deg, #6c3cf0, #a45cff); }
.grid > :nth-child(6n+5) .card-icon { background: linear-gradient(135deg, #c92a73, #f0568f); box-shadow: 0 8px 18px -10px rgba(201, 42, 115, .8); }
.grid > :nth-child(6n+6) .card-icon { background: linear-gradient(135deg, #2447d8, #3fa0ff); }

/* country tiles */
.country-tile { transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.country-tile:hover { border-color: color-mix(in srgb, var(--violet) 55%, var(--line)); box-shadow: 0 12px 26px -16px rgba(108, 60, 240, .6); transform: translateY(-1px); }
.country-tile:hover > span { color: var(--violet); }

/* broker rows, tables, tabs, pager */
.broker-row { transition: border-color .12s ease, box-shadow .12s ease; }
.broker-row:hover { border-color: color-mix(in srgb, var(--violet) 35%, var(--line)); box-shadow: 0 14px 30px -22px rgba(108, 60, 240, .6); }
th { background: color-mix(in srgb, var(--brand-soft) 75%, var(--surface)); color: color-mix(in srgb, var(--brand) 70%, var(--ink)); }
.compare-table th:first-child { background: color-mix(in srgb, var(--brand-soft) 75%, var(--surface)); }
.tabs a:hover { border-color: var(--violet); color: var(--violet); }
.tabs a[aria-current="true"], .tabs a[aria-current="page"] { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.pager span.current { background: var(--grad-brand); color: #fff; border-color: transparent; }
.active-filters a { background: var(--violet-soft); color: var(--violet); }
.seg input:checked + span { background: var(--grad-brand); color: #fff; }
.progress i { background: var(--grad-sun); }
.opt input:checked + span { border-color: var(--violet); background: var(--violet-soft); box-shadow: inset 0 0 0 1px var(--violet); }

/* article furniture */
.toc { border-left: 3px solid transparent; border-image: linear-gradient(180deg, var(--brand), var(--violet), var(--pink)) 1; }
.toc a.active, .toc a:hover { color: var(--violet); }
.faq details { transition: border-color .12s ease; }
.faq details[open] { border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); box-shadow: 0 12px 28px -22px rgba(108, 60, 240, .6); }
.faq summary::after { color: var(--violet); font-weight: 700; }
.prose blockquote { border-left-color: var(--violet); }
.prose li::marker { color: var(--violet); }
.aside-box { border-top: 3px solid var(--violet); }
.disclosure { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: color-mix(in srgb, var(--gold-soft) 45%, var(--surface)); }

/* dark accent panels */
.result-panel, .cta-box { background: linear-gradient(150deg, #101b4d 0%, #2a1d7a 58%, #4d1a6c 100%); box-shadow: 0 24px 50px -28px rgba(76, 29, 149, .8); }
.cta-panel { background: var(--grad-brand); color: #fff; border-radius: 26px; padding: clamp(30px, 5vw, 50px) clamp(20px, 5vw, 44px); text-align: center; box-shadow: 0 30px 60px -30px rgba(108, 60, 240, .8); position: relative; overflow: hidden; }
.cta-panel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 200px at 100% 0%, rgba(255, 201, 51, .35), transparent 70%); }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { color: #fff; }
.cta-panel .lede { color: #e7e8ff; }
.cta-panel .kicker { color: #ffd978; justify-content: center; }
.cta-panel .kicker::before { background: var(--grad-sun); }
.cta-panel .btn-primary { background: #fff !important; color: var(--brand-ink); box-shadow: none; }
:root[data-theme="dark"] .cta-panel .btn-primary { color: #101b4d; }
.cta-panel .btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }

/* risk banner + footer: night blue with colour glows */
.risk-banner, :root[data-theme="dark"] .risk-banner { background: #080d24; color: #cfd6f2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .risk-banner { background: #080d24; } }
.risk-banner strong { color: #ffd166; }
.site-footer { color: #c3cbe8; border-top: 0; background:
  radial-gradient(900px 320px at 100% 0%, rgba(108, 60, 240, .3), transparent 60%),
  radial-gradient(700px 300px at 0% 100%, rgba(11, 138, 135, .25), transparent 60%),
  #0c1233; }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: #ffcf5c; }
.site-footer a { color: #dfe5ff; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #a9b3d8; }
.footer-countries, .footer-legal { border-color: rgba(255, 255, 255, .12); }
.footer-legal { color: #98a3cc; }
.site-footer input, .site-footer select { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); color: #fff; }
.site-footer input::placeholder { color: #a9b3d8; }
.site-footer select option { color: #0f1733; background: #fff; }
.site-footer .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.slip { color: var(--ink); }
.cta-panel .btn-primary { color: #101b4d !important; }
.tone-0 { --c: var(--brand); --cs: var(--brand-soft); }
.tone-1 { --c: var(--violet); --cs: var(--violet-soft); }
.tone-2 { --c: var(--teal); --cs: var(--teal-soft); }
.tone-3 { --c: var(--coral); --cs: var(--coral-soft); }
.tone-4 { --c: var(--pink); --cs: var(--pink-soft); }
.tone-5 { --c: var(--green); --cs: var(--green-soft); }
@media (max-width: 520px) { .stamp { top: -13px; right: 14px; background: var(--surface); } }
.filters { border-top: 3px solid var(--violet); }
