/* =============================================================
   FDM Capital Securities — Institutional Fintech Design System
   Deep navy + FDM green (#57b957). Data-rich, hairline structure,
   technical typography, restrained motion.
   Scoped under .fdm-modern so legacy Elementor CSS is untouched.
   ============================================================= */

/* ----------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------- */
:root {
    /* Brand green (preserved) */
    --g: #57b957;
    --g-400: #74c874;
    --g-600: #45a145;
    --g-700: #388438;
    --g-soft: #eaf6ea;

    /* Institutional navy */
    --navy-950: #050f1c;
    --navy-900: #071426;
    --navy-850: #0a1a30;
    --navy-800: #0d2138;
    --navy-700: #143050;
    --navy-600: #1e4267;

    /* Neutrals (cool, corporate — not green-tinted) */
    --ink: #0b1f33;
    --ink-2: #34495e;
    --ink-3: #6b7c8d;
    --ink-4: #98a6b3;
    --line: #e2e8ee;
    --line-2: #eef2f6;
    --paper: #ffffff;
    --paper-2: #f5f7fa;
    --paper-3: #eef2f6;

    /* Market semantics */
    --up: #2fa565;
    --up-bg: #e7f6ee;
    --down: #e0533d;
    --down-bg: #fdece8;

    /* Geometry — sharp, institutional */
    --r: 6px;
    --r-lg: 10px;
    --r-pill: 4px;

    /* Elevation — subtle, hairline-led */
    --sh-1: 0 1px 2px rgba(7, 20, 38, .06);
    --sh-2: 0 6px 20px -10px rgba(7, 20, 38, .22);
    --sh-3: 0 20px 48px -20px rgba(7, 20, 38, .35);

    --container: 1280px;
    --nav-h: 98px;
    --ease: cubic-bezier(.4, 0, .2, 1);

    --f-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --f-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --f-mono: 'Space Grotesk', ui-monospace, 'Cascadia Mono', monospace;
}

/* ----------------------------------------------------------------
   2. Base
   ---------------------------------------------------------------- */
.fdm-modern, .fdm-modern * { box-sizing: border-box; }
.fdm-modern {
    font-family: var(--f-body);
    color: var(--ink-2);
    background: var(--paper);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.fdm-modern img { max-width: 100%; height: auto; display: block; }
.fdm-modern a { color: inherit; text-decoration: none; }
.fdm-modern h1, .fdm-modern h2, .fdm-modern h3, .fdm-modern h4 {
    font-family: var(--f-display);
    color: var(--ink);
    line-height: 1.1;
    margin: 0 0 .5em;
    font-weight: 600;
    letter-spacing: -.02em;
}
.fdm-modern p { margin: 0 0 1rem; }
.fdm-num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.fdm-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 44px); }

.fdm-section { padding: clamp(56px, 7vw, 104px) 0; position: relative; }
.fdm-section--tint { background: var(--paper-2); }
.fdm-section + .fdm-section:not(.fdm-section--tint):not(.fdm-section--navy) { border-top: 1px solid var(--line); }

/* Navy sections with a faint plotted grid */
.fdm-section--navy {
    background: var(--navy-900);
    color: #b9c7d6;
    position: relative;
    overflow: hidden;
}
.fdm-section--navy::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(120% 90% at 80% -10%, rgba(87, 185, 87, .1), transparent 60%),
        linear-gradient(rgba(87, 185, 87, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(87, 185, 87, .03) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
}
.fdm-section--navy > * { position: relative; z-index: 1; }
.fdm-section--navy h1, .fdm-section--navy h2, .fdm-section--navy h3 { color: #fff; }

/* ----------------------------------------------------------------
   3. Micro-label + section headings (signature)
   ---------------------------------------------------------------- */
.fdm-label {
    display: inline-flex; align-items: center; gap: .6em;
    font-family: var(--f-display); font-weight: 600;
    font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--g-700);
}
.fdm-label::before { content: ""; width: 14px; height: 2px; background: var(--g); }
.fdm-section--navy .fdm-label { color: var(--g-400); }

.fdm-head { max-width: 680px; margin-bottom: clamp(30px, 4.5vw, 52px); }
.fdm-head--center { margin-inline: auto; text-align: center; }
.fdm-head--center .fdm-label { justify-content: center; }
.fdm-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-top: .7rem; }
.fdm-head p { color: var(--ink-3); font-size: 1.02rem; margin: 0; }
.fdm-section--navy .fdm-head p { color: #8ba0b4; }

/* Hairline eyebrow rule used above headings */
.fdm-kicker { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.fdm-kicker::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.fdm-section--navy .fdm-kicker::after { background: rgba(255, 255, 255, .12); }

/* ----------------------------------------------------------------
   4. Buttons — squared, institutional
   ---------------------------------------------------------------- */
.fdm-btn {
    display: inline-flex; align-items: center; gap: .6em;
    font-family: var(--f-display); font-weight: 600; font-size: .92rem;
    padding: .82em 1.4em; border-radius: var(--r);
    background: var(--g); color: #052b05; border: 1px solid var(--g);
    cursor: pointer; transition: background .2s var(--ease), border-color .2s, color .2s, transform .2s;
    white-space: nowrap;
}
.fdm-btn:hover { background: var(--g-600); border-color: var(--g-600); color: #fff; }
.fdm-btn i { transition: transform .25s var(--ease); }
.fdm-btn:hover i { transform: translateX(3px); }

.fdm-btn--navy { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.fdm-btn--navy:hover { background: var(--navy-700); border-color: var(--navy-700); }

.fdm-btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.fdm-btn--outline:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

.fdm-section--navy .fdm-btn--outline { color: #fff; border-color: rgba(255, 255, 255, .25); }
.fdm-section--navy .fdm-btn--outline:hover { border-color: #fff; }

.fdm-btn--sm { padding: .6em 1em; font-size: .82rem; }

.fdm-link {
    display: inline-flex; align-items: center; gap: .45em;
    font-family: var(--f-display); font-weight: 600; font-size: .9rem; color: var(--g-700);
    border-bottom: 1px solid transparent; transition: gap .2s, border-color .2s;
}
.fdm-link:hover { gap: .7em; border-color: var(--g); }
.fdm-section--navy .fdm-link { color: var(--g-400); }

/* ----------------------------------------------------------------
   5. Top utility bar + navigation
   ---------------------------------------------------------------- */
.fdm-topbar {
    background: var(--navy-950); color: #9fb2c4; font-size: .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.fdm-topbar .fdm-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.fdm-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.fdm-topbar li { display: inline-flex; align-items: center; gap: .5em; }
.fdm-topbar li i { color: var(--g); }
.fdm-topbar a:hover { color: #fff; }
.fdm-topbar__cta { display: inline-flex; align-items: center; gap: .5em; color: #fff; font-weight: 600; }
.fdm-topbar__cta i { color: var(--g); }

.fdm-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}
.fdm-nav.is-stuck { box-shadow: var(--sh-1); }
.fdm-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--nav-h); transition: height .3s var(--ease); }
.fdm-nav.is-stuck .fdm-nav__inner { height: 76px; }
.fdm-nav__logo { display: inline-flex; align-items: center; }
.fdm-nav__logo img { height: 82px; width: auto; transition: height .3s var(--ease); }
.fdm-nav.is-stuck .fdm-nav__logo img { height: 64px; }
@media (max-width: 600px) { .fdm-nav__logo img { height: 58px; } }

.fdm-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.fdm-menu > li { position: relative; }
.fdm-menu > li > a {
    display: inline-flex; align-items: center; gap: .4em;
    font-family: var(--f-display); font-weight: 500; font-size: .9rem; color: var(--ink);
    padding: .6em .8em; border-radius: var(--r); position: relative; transition: color .2s;
}
.fdm-menu > li > a::after {
    content: ""; position: absolute; left: .8em; right: .8em; bottom: .3em; height: 2px;
    background: var(--g); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.fdm-menu > li > a:hover, .fdm-menu > li.is-active > a { color: var(--g-700); }
.fdm-menu > li > a:hover::after, .fdm-menu > li.is-active > a::after { transform: scaleX(1); }
.fdm-menu .has-sub > a .caret { font-size: .6em; opacity: .5; transition: transform .25s; }
.fdm-menu .has-sub:hover > a .caret { transform: rotate(180deg); }

.fdm-menu .sub {
    list-style: none; margin: 0; padding: 6px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 244px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 20;
}
.fdm-menu .has-sub:hover > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.fdm-menu .sub li { position: relative; }
.fdm-menu .sub a {
    display: flex; align-items: center; gap: .6em; padding: .58em .7em; border-radius: var(--r);
    font-size: .875rem; font-weight: 500; color: var(--ink-2); font-family: var(--f-body); transition: background .18s, color .18s;
}
.fdm-menu .sub a:hover { background: var(--paper-2); color: var(--g-700); }
.fdm-menu .sub a::before { content: ""; width: 5px; height: 5px; background: var(--g); opacity: .35; flex: none; border-radius: 1px; transition: opacity .18s; }
.fdm-menu .sub a:hover::before { opacity: 1; }
.fdm-menu .sub .sub { top: -6px; left: calc(100% + 6px); }
.fdm-menu .sub .has-sub > a::after { content: "\f105"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-left: auto; font-size: .8em; opacity: .5; }

.fdm-nav__tools { display: flex; align-items: center; gap: .5rem; }
.fdm-nav__icon { width: 40px; height: 40px; border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.fdm-nav__icon:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.fdm-nav__open { display: inline-flex; align-items: center; gap: .5em; }
.fdm-burger { display: none; }

/* Search overlay */
.fdm-search {
    position: fixed; inset: 0; z-index: 3000; background: rgba(7, 20, 38, .96);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.fdm-search.is-open { opacity: 1; visibility: visible; }
.fdm-search__close { position: absolute; top: 26px; right: 30px; width: 48px; height: 48px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; transition: background .2s; }
.fdm-search__close:hover { background: rgba(255, 255, 255, .1); }
.fdm-search__form { display: flex; align-items: center; gap: .6rem; width: min(680px, 92vw); border-bottom: 2px solid var(--g); padding-bottom: .6rem; }
.fdm-search__form input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-family: var(--f-display); font-size: clamp(1.4rem, 4vw, 2.4rem); }
.fdm-search__form input::placeholder { color: #56718c; }
.fdm-search__form button { background: transparent; border: 0; color: var(--g-400); font-size: 1.6rem; cursor: pointer; }

/* ----------------------------------------------------------------
   6. Hero — navy, data-forward with market snapshot
   ---------------------------------------------------------------- */
.fdm-hero { position: relative; background: var(--navy-900); color: #c3d2e0; overflow: hidden; isolation: isolate; }
.fdm-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(130% 100% at 78% 8%, rgba(87, 185, 87, .1), transparent 62%),
        linear-gradient(rgba(87, 185, 87, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(87, 185, 87, .04) 1px, transparent 1px);
    background-size: 100% 100%, 46px 46px, 46px 46px;
}
.fdm-hero__img { position: absolute; inset: 0; z-index: -1; }
.fdm-hero__img .fdm-hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.fdm-hero__img .fdm-hero__slide.is-active { opacity: .22; }
.fdm-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, var(--navy-900) 42%, rgba(7, 20, 38, .55) 100%);
}
.fdm-hero__inner {
    position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 5vw, 64px);
    align-items: center; padding: clamp(64px, 9vw, 108px) 0 clamp(48px, 6vw, 72px);
}
.fdm-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.7rem); letter-spacing: -.03em; margin-bottom: 1.1rem; }
.fdm-hero h1 .accent { color: var(--g-400); }
.fdm-hero p { color: #a9bccd; font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 540px; margin-bottom: 1.8rem; }
.fdm-hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.fdm-hero__meta { display: flex; gap: 2rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap; }
.fdm-hero__meta div span { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #7f95a9; }
.fdm-hero__meta div strong { font-family: var(--f-mono); font-size: 1.5rem; color: #fff; font-variant-numeric: tabular-nums; }

/* Market snapshot card in hero */
.fdm-quote {
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-lg); backdrop-filter: blur(4px); overflow: hidden;
}
.fdm-quote__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.fdm-quote__head span { font-family: var(--f-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #8ba0b4; }
.fdm-quote__live { display: inline-flex; align-items: center; gap: .45em; font-size: .72rem; color: var(--g-400); }
.fdm-quote__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 0 rgba(87, 185, 87, .6); animation: fdm-pulse 2s infinite; }
@keyframes fdm-pulse { 0% { box-shadow: 0 0 0 0 rgba(87, 185, 87, .5); } 70% { box-shadow: 0 0 0 8px rgba(87, 185, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(87, 185, 87, 0); } }
.fdm-quote__row { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.fdm-quote__row:last-child { border-bottom: 0; }
.fdm-quote__row b { font-family: var(--f-display); font-weight: 600; color: #fff; font-size: .92rem; }
.fdm-quote__row .fdm-quote__val { text-align: right; }
.fdm-quote__val .fdm-num { display: block; color: #eaf1f7; font-size: .95rem; }
.fdm-quote__chg { font-size: .78rem; font-variant-numeric: tabular-nums; }
.fdm-quote__chg.up { color: var(--g-400); }
.fdm-quote__chg.down { color: #ff8a72; }

/* ----------------------------------------------------------------
   7. Index strip (market ribbon under hero)
   ---------------------------------------------------------------- */
.fdm-ribbon { background: var(--navy-850); border-top: 1px solid rgba(255, 255, 255, .07); overflow: hidden; }
.fdm-ribbon__track { display: flex; overflow: hidden; }
.fdm-ribbon__scroll { display: flex; flex: none; animation: fdm-ticker 45s linear infinite; }
.fdm-ribbon:hover .fdm-ribbon__scroll { animation-play-state: paused; }
.fdm-ribbon__set { display: flex; flex: none; }
@keyframes fdm-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fdm-ribbon__item { display: flex; align-items: baseline; gap: .6em; padding: 14px clamp(18px, 3vw, 34px); border-right: 1px solid rgba(255, 255, 255, .07); white-space: nowrap; }
.fdm-ribbon__item span { font-family: var(--f-display); font-size: .78rem; letter-spacing: .08em; color: #8ba0b4; text-transform: uppercase; }
.fdm-ribbon__item b { font-family: var(--f-mono); color: #fff; font-variant-numeric: tabular-nums; font-weight: 500; }
.fdm-ribbon__item i { font-style: normal; font-family: var(--f-mono); font-size: .82rem; }
.fdm-ribbon__item i.up { color: var(--g-400); }
.fdm-ribbon__item i.down { color: #ff8a72; }

/* ----------------------------------------------------------------
   7b. Inner-page hero / banner + breadcrumb + prose
   ---------------------------------------------------------------- */
.fdm-page-hero {
    position: relative; background: var(--navy-900); color: #c3d2e0; overflow: hidden;
    padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 5vw, 60px);
}
.fdm-page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(120% 120% at 85% 0%, rgba(87, 185, 87, .12), transparent 60%),
        linear-gradient(rgba(87, 185, 87, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(87, 185, 87, .04) 1px, transparent 1px);
    background-size: 100% 100%, 46px 46px, 46px 46px;
}
.fdm-page-hero__bg { position: absolute; inset: 0; z-index: 0; object-fit: cover; width: 100%; height: 100%; opacity: .16; }
.fdm-page-hero > .fdm-container { position: relative; z-index: 1; }
.fdm-page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin: 0; }
.fdm-crumb { display: flex; align-items: center; gap: .5em; font-family: var(--f-display); font-size: .82rem; letter-spacing: .04em; color: #7f95a9; margin-bottom: 1rem; flex-wrap: wrap; }
.fdm-crumb a { color: #a9bccd; }
.fdm-crumb a:hover { color: var(--g-400); }
.fdm-crumb i { font-size: .6em; opacity: .6; }
.fdm-crumb .current { color: var(--g-400); }

/* Prose: rich text content blocks on converted pages */
.fdm-prose { max-width: 900px; }
.fdm-prose h1, .fdm-prose h2, .fdm-prose h3, .fdm-prose h4 { margin: 1.6em 0 .5em; }
.fdm-prose h2 { font-size: 1.6rem; }
.fdm-prose h3 { font-size: 1.25rem; }
.fdm-prose > :first-child { margin-top: 0; }
.fdm-prose p, .fdm-prose li { color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.fdm-prose p { margin: 0 0 1.1rem; }
.fdm-prose a { color: var(--g-700); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .2s; }
.fdm-prose a:hover { border-color: var(--g); }
.fdm-prose ul, .fdm-prose ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.fdm-prose ul { list-style: none; padding-left: 0; }
.fdm-prose ul > li { position: relative; padding-left: 1.6em; margin-bottom: .5em; }
.fdm-prose ul > li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--g); border-radius: 1px; }
.fdm-prose img { border-radius: var(--r-lg); border: 1px solid var(--line); margin: 1rem 0; }
.fdm-prose table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 1rem 0; font-variant-numeric: tabular-nums; }
.fdm-prose table th { background: var(--navy-900); color: #fff; padding: 12px 16px; text-align: left; font-family: var(--f-display); }
.fdm-prose table td { border-top: 1px solid var(--line); padding: 12px 16px; color: var(--ink-2); }
.fdm-prose table tr:hover td { background: var(--paper-2); }

/* Person / member card (board, key management) */
.fdm-person { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .3s, transform .25s var(--ease); }
.fdm-person:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.fdm-person__photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-2); }
.fdm-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.fdm-person__body { padding: 18px 20px; }
.fdm-person__body h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.fdm-person__body span { font-size: .86rem; color: var(--g-700); font-family: var(--f-display); font-weight: 500; }

/* Document / download row */
.fdm-doc { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; transition: border-color .25s, box-shadow .25s; }
.fdm-doc:hover { border-color: var(--g); box-shadow: var(--sh-1); }
.fdm-doc__ico { width: 42px; height: 42px; border-radius: var(--r); background: var(--g-soft); color: var(--g-700); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.fdm-doc__name { font-family: var(--f-display); font-weight: 500; color: var(--ink); flex: 1; }
.fdm-doc .fdm-btn { flex: none; }

/* ----------------------------------------------------------------
   8. Grids + cards
   ---------------------------------------------------------------- */
.fdm-grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.fdm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fdm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fdm-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Flat institutional card — hairline, no float */
.fdm-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: clamp(22px, 2.4vw, 30px); position: relative; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.fdm-card:hover { border-color: var(--g); box-shadow: var(--sh-2); }
.fdm-card__ico { width: 52px; height: 52px; border-radius: var(--r); display: grid; place-items: center; background: var(--navy-900); color: var(--g-400); margin-bottom: 1.1rem; font-size: 1.2rem; }
.fdm-card__ico img { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.fdm-card h3 { font-size: 1.14rem; }
.fdm-card p { color: var(--ink-3); font-size: .95rem; margin: 0; }
.fdm-card__idx { position: absolute; top: 22px; right: 24px; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-4); }

/* Service row card */
.fdm-service {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 24px 22px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.fdm-service:hover { border-color: var(--g); box-shadow: var(--sh-2); transform: translateY(-2px); }
.fdm-service__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.fdm-service__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r); background: var(--g-soft); }
.fdm-service__ico img { height: 26px; width: 26px; object-fit: contain; }
.fdm-service__num { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.fdm-service h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.fdm-service p { font-size: .88rem; color: var(--ink-3); margin: 0; }
.fdm-service__more { margin-top: 1rem; display: inline-flex; align-items: center; gap: .4em; font-family: var(--f-display); font-weight: 600; font-size: .82rem; color: var(--g-700); opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; }
.fdm-service:hover .fdm-service__more { opacity: 1; transform: none; }

/* Image tile */
.fdm-tile { position: relative; z-index: 0; isolation: isolate; border-radius: var(--r-lg); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; color: #fff; border: 1px solid var(--line); }
.fdm-tile img.fdm-tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.fdm-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 20, 38, .95), rgba(7, 20, 38, .35) 55%, rgba(7, 20, 38, .1)); }
.fdm-tile:hover img.fdm-tile__bg { transform: scale(1.06); }
.fdm-tile__body { padding: 24px; width: 100%; }
.fdm-tile h3 { color: #fff; font-size: 1.15rem; margin-bottom: .9rem; }
.fdm-tile__tag { position: absolute; top: 16px; left: 16px; z-index: 1; font-family: var(--f-display); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: #fff; padding: .35em .7em; border-radius: var(--r); backdrop-filter: blur(3px); }

/* Split feature */
.fdm-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.fdm-split--rev .fdm-split__media { order: 2; }
.fdm-split__media { position: relative; z-index: 0; isolation: isolate; }
.fdm-split__media img { position: relative; z-index: 1; border-radius: var(--r-lg); border: 1px solid var(--line); width: 100%; }
.fdm-split__frame { position: absolute; inset: auto -14px -14px auto; width: 55%; height: 55%; border: 1px solid var(--g); border-radius: var(--r-lg); z-index: -1; }

/* Platform card */
.fdm-platform { display: flex; flex-direction: column; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: border-color .25s, box-shadow .25s; }
.fdm-platform:hover { border-color: var(--g); box-shadow: var(--sh-2); }
.fdm-platform__logo { height: 128px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: var(--paper-2); }
.fdm-platform__logo img { width: 100%; height: 100%; object-fit: cover; }
.fdm-platform__tag { font-family: var(--f-display); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--g-700); }
.fdm-platform h3 { font-size: 1.08rem; margin: 0; }
.fdm-platform p { font-size: .9rem; color: var(--ink-3); margin: 0; }
.fdm-platform__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .5rem; align-items: center; }

/* Branch card */
.fdm-branch { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; border-left: 3px solid var(--g); transition: box-shadow .25s, transform .2s; }
.fdm-branch:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.fdm-branch h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .5em; margin-bottom: .8rem; }
.fdm-branch h3 i { color: var(--g); }
.fdm-branch p { font-size: .9rem; color: var(--ink-3); margin: 0 0 .4rem; }

/* Stat cell */
.fdm-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.fdm-stat { padding: 8px clamp(14px, 2vw, 30px); border-left: 1px solid rgba(255, 255, 255, .12); }
.fdm-stat:first-child { border-left: 0; padding-left: 0; }
.fdm-stat__num { font-family: var(--f-mono); font-weight: 600; font-size: clamp(2.1rem, 4vw, 3rem); color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.fdm-stat__num .u { color: var(--g-400); }
.fdm-stat__label { margin-top: .6rem; color: #8ba0b4; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }

/* ----------------------------------------------------------------
   9. Accordion, table, list
   ---------------------------------------------------------------- */
.fdm-accordion details { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: #fff; transition: border-color .25s; }
.fdm-accordion details[open] { border-color: var(--g); }
.fdm-accordion summary { list-style: none; cursor: pointer; padding: 15px 18px; font-family: var(--f-display); font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fdm-accordion summary::-webkit-details-marker { display: none; }
.fdm-accordion summary::after { content: "\002B"; font-family: var(--f-mono); color: var(--g-700); font-size: 1.1em; }
.fdm-accordion details[open] summary::after { content: "\2212"; }
.fdm-accordion p { color: var(--ink-3); font-size: .93rem; padding: 0 18px 16px; margin: 0; }

.fdm-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-variant-numeric: tabular-nums; }
.fdm-table th, .fdm-table td { padding: 13px 18px; text-align: left; }
.fdm-table thead tr:first-child th { background: var(--navy-900); color: #fff; font-family: var(--f-display); text-align: center; letter-spacing: .04em; font-weight: 600; }
.fdm-table thead tr:nth-child(2) th { background: var(--paper-2); color: var(--ink); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.fdm-table tbody td { border-top: 1px solid var(--line); color: var(--ink-2); font-family: var(--f-mono); }
.fdm-table tbody td:first-child { font-family: var(--f-body); }
.fdm-table tbody tr:hover td { background: var(--paper-2); }

.fdm-list { list-style: none; margin: .3rem 0 0; padding: 0; }
.fdm-list li { position: relative; padding-left: 1.7em; margin-bottom: .7em; color: var(--ink-2); font-size: .95rem; }
.fdm-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--g); border-radius: 1px; }

/* ----------------------------------------------------------------
   10. Footer
   ---------------------------------------------------------------- */
.fdm-footer { background: var(--navy-950); color: #90a4b8; padding: clamp(52px, 7vw, 84px) 0 0; border-top: 3px solid var(--g); }
.fdm-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; font-family: var(--f-display); }
.fdm-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(26px, 4vw, 52px); }
.fdm-footer ul { list-style: none; margin: 0; padding: 0; }
.fdm-footer li { margin-bottom: .65rem; }
.fdm-footer a { font-size: .9rem; transition: color .2s, padding-left .2s; display: inline-block; }
.fdm-footer a:hover { color: #fff; padding-left: 4px; }
.fdm-footer__logo { height: 44px; margin-bottom: 1.2rem; background: #fff; padding: 7px 11px; border-radius: var(--r); }
.fdm-footer__desc { font-size: .9rem; max-width: 330px; }
.fdm-footer__social { display: flex; gap: .55rem; margin-top: 1.3rem; }
.fdm-footer__social a { width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #b7c6d6; transition: background .2s, color .2s; }
.fdm-footer__social a:hover { background: var(--g); color: #052b05; }
.fdm-footer__bar { margin-top: clamp(38px, 5vw, 60px); border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .84rem; color: #6f8497; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fdm-footer__bar a { color: #b7c6d6; }

/* ----------------------------------------------------------------
   11. Floating utilities
   ---------------------------------------------------------------- */
.fdm-fab {
    position: fixed; z-index: 900; display: flex; flex-direction: column; gap: 12px;
    padding: 10px 9px; border-radius: 999px;
    background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(226, 232, 238, .9); box-shadow: 0 16px 40px -18px rgba(7, 20, 38, .4);
}
.fdm-fab--left { left: 18px; top: 50%; transform: translateY(-50%); }
.fdm-fab--right { right: 18px; top: 50%; transform: translateY(-50%); }
.fdm-fab a {
    position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    color: var(--fab, var(--navy-800)); background: #fff; border: 1px solid var(--line);
    font-size: 1.05rem; box-shadow: var(--sh-1);
    transition: transform .3s var(--ease), background .25s, color .25s, box-shadow .3s, border-color .25s;
}
.fdm-fab a:hover {
    transform: scale(1.12); color: #fff; background: var(--fab, var(--navy-800));
    border-color: var(--fab, var(--navy-800)); box-shadow: 0 10px 22px -8px var(--fab, rgba(7, 20, 38, .5));
}
.fdm-fab a i { transition: transform .3s var(--ease); }
.fdm-fab a:hover i { transform: scale(1.1); }
/* sliding tooltip label */
.fdm-fab a::after {
    content: attr(data-tip); position: absolute; top: 50%; transform: translateY(-50%) scale(.9);
    white-space: nowrap; font-family: var(--f-display); font-weight: 600; font-size: .78rem;
    color: #fff; background: var(--navy-900); padding: .4em .8em; border-radius: var(--r);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s, transform .22s;
    box-shadow: var(--sh-2);
}
.fdm-fab--left a::after { left: calc(100% + 12px); }
.fdm-fab--right a::after { right: calc(100% + 12px); }
.fdm-fab a::before {
    content: ""; position: absolute; top: 50%; width: 8px; height: 8px; background: var(--navy-900);
    transform: translateY(-50%) rotate(45deg); opacity: 0; visibility: hidden; transition: opacity .22s;
}
.fdm-fab--left a::before { left: calc(100% + 8px); }
.fdm-fab--right a::before { right: calc(100% + 8px); }
.fdm-fab a:hover::after { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
.fdm-fab a:hover::before { opacity: 1; visibility: visible; }
.fdm-fab__label { text-align: center; font-family: var(--f-display); font-weight: 700; font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 900px) {
    /* Avoid overlapping page content / the live-chat bubble on small screens.
       App + social links remain available in the top bar, platforms section and footer. */
    .fdm-fab { display: none; }
}
.fdm-top { position: fixed; right: 18px; bottom: 22px; z-index: 900; width: 44px; height: 44px; border-radius: var(--r); border: 0; background: var(--navy-800); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--sh-2); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.fdm-top:hover { background: var(--g); color: #052b05; }
.fdm-top.is-show { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Fixed bottom live market ticker (legacy #iframeTikcer, restyled) ---- */
.fdm-modern #iframeTikcer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9990; height: auto; }
.fdm-modern .tracker { display: flex; align-items: stretch; gap: 0; padding: 0; width: 100%; background: var(--navy-950); color: #d7e2ec; overflow: hidden; border-top: 1px solid rgba(87, 185, 87, .35); box-shadow: 0 -8px 24px -14px rgba(0, 0, 0, .7); }
.fdm-modern .tracker .dropdown-container {
    display: flex; align-items: center; gap: .7rem; padding: 5px 16px;
    background: var(--navy-900); border-right: 2px solid rgba(87, 185, 87, .4);
    flex: 0 0 auto; width: auto !important; max-width: none !important; min-width: 0;
    position: relative; z-index: 2; /* keep the control block above the scrolling rates */
}
.fdm-modern .KSE-dropdown { display: flex; align-items: center; flex: none; }
.fdm-modern .changeRates { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r); padding: .34em .6em; font-family: var(--f-display); font-weight: 600; font-size: .78rem; outline: none; cursor: pointer; }
.fdm-modern .changeRates option { color: #10233a; }
.fdm-modern .tracker .time { display: flex; flex-direction: column; line-height: 1.15; color: var(--g-400); font-family: var(--f-mono); font-size: .66rem; white-space: nowrap; flex: none; opacity: 0; transition: opacity .4s; }
.fdm-modern .tracker .time::before { content: "LAST UPDATE"; font-family: var(--f-display); font-size: .54rem; letter-spacing: .12em; color: var(--ink-4); }
.fdm-modern .tracker .time.reveal { opacity: 1; }
.fdm-modern .rates-marquee { flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; align-items: center; height: 42px; opacity: 0; transition: opacity .45s; }
.fdm-modern .rates-marquee.reveal { opacity: 1; }
.fdm-rates-scroll { display: flex; white-space: nowrap; animation: fdm-ticker 70s linear infinite; }
.fdm-modern .rates-marquee:hover .fdm-rates-scroll { animation-play-state: paused; }
.fdm-rates-set { display: flex; align-items: center; flex: none; }
.fdm-modern .tracker .symbolName { color: #cfe0ef; font-family: var(--f-display); font-weight: 600; font-size: .78rem; padding: 0 3px 0 20px; }
.fdm-modern .tracker .symbolRate { color: #fff; font-family: var(--f-mono); font-size: .78rem; padding-left: 4px; }
.fdm-modern .tracker .changeGreen { color: var(--g-400); font-family: var(--f-mono); font-size: .76rem; padding-left: 4px; }
.fdm-modern .tracker .changeRed { color: #ff8a72; font-family: var(--f-mono); font-size: .76rem; padding-left: 4px; }
.fdm-modern .tracker img { height: 8px; vertical-align: middle; }
body.fdm-modern { padding-bottom: 44px; }
.fdm-top { bottom: 56px; }

/* ----------------------------------------------------------------
   12. Scroll reveal — restrained
   ---------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .06s; }
[data-reveal-delay="2"] { transition-delay: .12s; }
[data-reveal-delay="3"] { transition-delay: .18s; }
[data-reveal-delay="4"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .fdm-hero__slide { transition: none; }
}

/* ----------------------------------------------------------------
   13. Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .fdm-hero__inner { grid-template-columns: 1fr; }
    .fdm-quote { max-width: 460px; }
    .fdm-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .fdm-menu, .fdm-nav__icon--search { display: none; }
    .fdm-burger { display: inline-flex; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; font-size: 1.1rem; }
    .fdm-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .fdm-stat { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
    .fdm-grid--2, .fdm-grid--3 { grid-template-columns: 1fr; }
    .fdm-split { grid-template-columns: 1fr; }
    .fdm-split--rev .fdm-split__media { order: 0; }
    .fdm-footer__grid { grid-template-columns: 1fr 1fr; }
    .fdm-topbar ul { gap: 1rem; }
}
@media (max-width: 480px) {
    .fdm-grid--4 { grid-template-columns: 1fr; }
    .fdm-footer__grid { grid-template-columns: 1fr; }
    .fdm-stats { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   14. Mobile drawer
   ---------------------------------------------------------------- */
.fdm-drawer { position: fixed; inset: 0 0 0 auto; width: min(360px, 87vw); z-index: 2000; background: #fff; box-shadow: var(--sh-3); transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; padding: 22px; }
.fdm-drawer.is-open { transform: none; }
.fdm-drawer__overlay { position: fixed; inset: 0; background: rgba(7, 20, 38, .55); z-index: 1999; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.fdm-drawer__overlay.is-open { opacity: 1; visibility: visible; }
.fdm-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.fdm-drawer__head img { height: 38px; }
.fdm-drawer__close { border: 1px solid var(--line); background: #fff; width: 40px; height: 40px; border-radius: var(--r); font-size: 1.05rem; cursor: pointer; }
.fdm-drawer nav ul { list-style: none; margin: 0; padding: 0; }
.fdm-drawer nav > ul > li { border-bottom: 1px solid var(--line); }
.fdm-drawer nav a { display: block; padding: .8em .2em; font-family: var(--f-display); font-weight: 600; color: var(--ink); }
.fdm-drawer nav .sub { padding-left: .9rem; }
.fdm-drawer nav .sub a { font-weight: 500; font-size: .9rem; color: var(--ink-3); padding: .5em .2em; }
