/* =========================================================================
   Xclusive Capital Trade: shared design system for the public site.
   Everything is prefixed `x-` / `--x-` so it never collides with the Tailwind
   utilities used by pages that have not been ported yet.
   ========================================================================= */

:root {
    --x-ink: #0a1628;
    --x-ink-2: #3a4a62;
    --x-ink-3: #566680;
    --x-line: #dbe1ea;
    --x-silver: #eef1f6;
    --x-navy: #0a1628;
    --x-navy-soft: #b3c0d4;
    --x-action: #1e4fd8;
    --x-action-hover: #1a43b8;
    --x-up: #15803d;
    --x-down: #b91c1c;
    --x-r: 16px;
    --x-max: 1240px;
    --x-pad: clamp(16px, 4vw, 32px);
    --x-shadow: 0 1px 2px rgba(10, 22, 40, .05), 0 14px 30px -18px rgba(10, 22, 40, .25);
    --x-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --x-display: Sora, Inter, system-ui, sans-serif;
}

.x-wrap {
    max-width: var(--x-max);
    margin: 0 auto;
    padding: 0 var(--x-pad);
}

/* ---------- buttons ---------- */
.x-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: 600 15px/1 var(--x-font);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}

.x-btn.x-btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.x-btn.x-btn-p { background: var(--x-action); color: #fff; }
.x-btn.x-btn-p:hover { background: var(--x-action-hover); }
.x-btn.x-btn-g { background: #fff; color: var(--x-ink); border-color: var(--x-line); }
.x-btn.x-btn-g:hover { border-color: var(--x-ink-3); }
.x-btn.x-btn-w { background: #fff; color: var(--x-navy); }
.x-btn.x-btn-w:hover { background: var(--x-silver); }
.x-btn.x-btn-o { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.x-btn.x-btn-o:hover { border-color: #fff; }

:focus-visible { outline-color: var(--x-action); }

/* ---------- logo ---------- */
.x-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 600 18px/1 var(--x-display);
    letter-spacing: -.02em;
    white-space: nowrap;
    color: var(--x-ink);
    text-decoration: none;
}
.x-logo svg { flex: none; }
.x-logo .wm { font-weight: 600; }
.x-logo .wm span { font-weight: 400; color: var(--x-ink-2); }
.x-logo--dark { color: #fff; }
.x-logo--dark .wm span { color: #9fb0c8; }

/* ---------- header ---------- */
.x-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--x-line);
    font-family: var(--x-font);
    color: var(--x-ink);
}
.x-nav-in { display: flex; align-items: center; height: 72px; gap: 28px; }
.x-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--x-ink-2); white-space: nowrap; }
.x-links a { text-decoration: none; color: inherit; transition: color .15s; }
.x-links a:hover, .x-links a[aria-current="page"] { color: var(--x-ink); }
.x-links a[aria-current="page"] { font-weight: 600; }
.x-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.x-signin { font-weight: 600; font-size: 15px; padding: 0 12px; text-decoration: none; color: var(--x-ink); }
.x-burger {
    display: none;
    width: 42px; height: 42px;
    place-items: center;
    border: 1px solid var(--x-line);
    border-radius: 10px;
    background: #fff;
    color: var(--x-ink);
    cursor: pointer;
}

/* mobile menu */
.x-menu {
    position: fixed;
    inset: 72px 0 0 0;
    z-index: 39;
    background: #fff;
    padding: 12px var(--x-pad) 32px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    font-family: var(--x-font);
}
.x-menu.open { opacity: 1; visibility: visible; transform: none; }
.x-menu a.x-mlink {
    display: block;
    padding: 16px 4px;
    font-size: 19px;
    color: var(--x-ink);
    border-bottom: 1px solid var(--x-line);
    text-decoration: none;
}
.x-menu .x-mact { display: flex; gap: 12px; margin-top: 24px; }
.x-menu .x-mact .x-btn { flex: 1; min-height: 50px; }
body.x-lock { overflow: hidden; }

@media (max-width: 1100px) {
    .x-links { display: none; }
    .x-burger { display: grid; }
}
@media (max-width: 560px) {
    .x-nav-in { gap: 10px; }
    .x-logo { font-size: 15px; gap: 8px; }
    .x-logo svg { width: 24px; height: 24px; }
    .x-signin { display: none; }
    .x-actions { gap: 6px; }
    .x-actions .x-btn-sm { padding: 0 12px; font-size: 13px; }
}

/* ---------- language switcher (GTranslate popup widget as a dropdown) ---------- */
.gtranslate_wrapper { display: flex; align-items: center; min-height: 38px; }
.gtranslate_wrapper a.gt_switcher-popup {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--x-ink);
}
@media (max-width: 560px) {
    .gtranslate_wrapper a.gt_switcher-popup span:first-of-type { display: none; }
}
.gt_black_overlay { background: transparent !important; opacity: 1 !important; filter: none !important; }
.gt_white_content {
    position: fixed !important;
    top: 72px !important;
    left: auto !important;
    right: max(16px, calc((100vw - var(--x-max)) / 2 + var(--x-pad))) !important;
    margin: 0 !important;
    width: 430px !important;
    height: auto !important;
    max-height: min(72vh, 560px) !important;
    padding: 0 8px 8px !important;
    background: #fff !important;
    border: 1px solid var(--x-line);
    border-radius: 16px;
    box-shadow: 0 24px 60px -20px rgba(10, 22, 40, .4), 0 4px 12px rgba(10, 22, 40, .08);
    overflow: auto !important;
    overscroll-behavior: contain;
    animation: x-pop .18s ease-out;
    transform-origin: top right;
    font-family: var(--x-font);
}
@keyframes x-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.gt_white_content .gt_search { position: sticky; top: 0; z-index: 2; background: #fff; padding: 10px 4px 8px; }
.gt_white_content .gt_search input {
    width: 100%; height: 42px; padding: 0 14px;
    border: 1px solid var(--x-line); border-radius: 10px;
    font: 15px var(--x-font); color: var(--x-ink); background: var(--x-silver); outline: none;
}
.gt_white_content .gt_search input:focus { border-color: var(--x-action); background: #fff; box-shadow: 0 0 0 3px rgba(30, 79, 216, .15); }
.gt_white_content .gt_languages { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2px; max-height: none !important; overflow: visible !important; }
.gt_white_content a.glink {
    display: flex !important; align-items: center; gap: 10px;
    padding: 9px 10px !important; border: 0 !important; border-radius: 8px;
    line-height: 1.25 !important; color: var(--x-ink) !important; font-size: 15px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s;
}
.gt_white_content a.glink:hover { background: var(--x-silver); }
.gt_white_content a.glink.gt-current-lang { background: #e8eefc; color: var(--x-action) !important; }
.gt_white_content a.glink img { flex: none; width: 20px !important; height: auto !important; opacity: 1 !important; border-radius: 3px; }
.gt_white_content a.glink span { color: inherit !important; margin: 0 !important; font-size: 15px !important; vertical-align: baseline !important; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
    .gt_white_content { top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: auto !important; max-height: 78vh !important; border-radius: 20px 20px 0 0; animation: x-sheet .25s ease-out; }
    .gt_black_overlay { background: rgba(10, 22, 40, .45) !important; }
    @keyframes x-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
/* keep Google Translate's own UI out of the layout */
body { top: 0 !important; }
.skiptranslate iframe, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
html.translated-rtl body { direction: rtl; }
html.translated-rtl .owl-carousel,
html.translated-rtl #globeViz,
html.translated-rtl .gtranslate_wrapper { direction: ltr; }

/* ---------- footer ---------- */
.x-footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-top: 40px;
    padding: 80px 0 32px;
    background:
        radial-gradient(760px 320px at 88% -12%, rgba(30, 79, 216, .42), transparent 66%),
        radial-gradient(560px 300px at 4% 112%, rgba(30, 79, 216, .22), transparent 70%),
        var(--x-navy);
    color: var(--x-navy-soft);
    font: 16px/1.6 var(--x-font);
}
.x-footer::before {
    content: "";
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(179, 192, 212, .2) 1px, transparent 1.3px);
    background-size: 24px 24px;
    -webkit-mask: linear-gradient(180deg, #000 0, transparent 78%);
            mask: linear-gradient(180deg, #000 0, transparent 78%);
}
.x-footer::after {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 1;
    background: linear-gradient(90deg, transparent, #6f9bff 30%, #9fc4ff 50%, #6f9bff 70%, transparent);
}
.x-fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(28px, 5vw, 64px); margin-bottom: 56px; align-items: start; }
.x-footer h4 {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 20px;
    color: #fff; font: 600 14px/1 var(--x-font); letter-spacing: .07em; text-transform: uppercase;
}
.x-footer h4::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: #6f9bff; }
.x-footer ul { list-style: none; margin: 0; padding: 0; }
.x-footer li { margin-bottom: 13px; line-height: 1.5; }
.x-footer a { color: inherit; text-decoration: none; }
.x-footer ul a { position: relative; display: inline-block; transition: color .2s, transform .25s; }
.x-footer ul a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0; background: #9fc4ff; transition: width .28s ease; }
.x-footer ul a:hover { color: #fff; transform: translateX(4px); }
.x-footer ul a:hover::after { width: 100%; }
.x-footer li i { margin-right: 8px; color: #7fb2ff; }
.x-fbrand p { margin: 14px 0 0; max-width: 34ch; }
.x-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.x-social a {
    width: 38px; height: 38px; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%;
    font-size: 15px; color: #c3cfe0;
    transition: background .2s, color .2s, border-color .2s, transform .25s;
}
.x-social a:hover { background: #fff; color: var(--x-navy); border-color: #fff; transform: translateY(-3px); }
.x-fbar { display: flex; justify-content: space-between; align-items: center; gap: 32px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 28px; }
.x-copy { font-size: 14px; color: #9fb0c8; }
.x-fmeta { display: flex; align-items: center; gap: 20px; flex: none; font-size: 14px; color: #9fb0c8; }
.x-status {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #c3cfe0; white-space: nowrap;
}
.x-status i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); animation: x-ping 2.2s ease-out infinite; }
@keyframes x-ping { to { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }
.x-totop {
    width: 42px; height: 42px; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff;
    transition: background .2s, color .2s, transform .25s, border-color .2s;
}
.x-totop:hover { background: #fff; color: var(--x-navy); transform: translateY(-3px); border-color: #fff; }
@media (max-width: 960px) {
    .x-fgrid { grid-template-columns: 1fr 1fr; }
    .x-fbar { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
    .x-fmeta { justify-content: space-between; gap: 14px; }
    .x-copy { text-align: center; }
}
@media (max-width: 560px) {
    .x-fgrid { grid-template-columns: 1fr; }
    .x-footer { padding: 56px 0 28px; }
}

/* ---------- cookie banner ---------- */
.x-cookie {
    position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
    padding: 16px 20px; border-radius: 14px;
    background: var(--x-navy); color: #dbe4f2;
    box-shadow: 0 20px 50px -16px rgba(10, 22, 40, .6);
    font: 15px/1.5 var(--x-font);
}
.x-cookie.hidden { display: none !important; }
.x-cookie p { margin: 0; flex: 1 1 320px; }
.x-cookie p a { color: #9fc4ff; text-decoration: underline; }
.x-cookie a.x-btn { color: var(--x-navy); text-decoration: none; }

/* ---------- WhatsApp button ---------- */
.x-wa {
    position: fixed; z-index: 45; left: 18px; bottom: 18px;
    width: 56px; height: 56px; display: grid; place-items: center;
    border-radius: 50%; background: #25d366; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
    transition: transform .2s;
}
.x-wa:hover { transform: scale(1.08); }
.x-wa img { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
    .x-status i, .gt_white_content, .x-menu { animation: none !important; transition: none !important; }
    .x-footer ul a, .x-social a, .x-totop { transition: none; }
}

/* ---------- site-wide platform numbers (above the footer, as on the live site) ---------- */
.x-stats { padding: 56px 0 8px; font-family: var(--x-font); }
.x-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.x-stat { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--x-line); border-radius: var(--x-r); box-shadow: var(--x-shadow); }
.x-stat img { width: 56px; height: 56px; padding: 8px; border-radius: 14px; background: #eef2fb; object-fit: contain; flex: none; }
.x-stat span { display: block; font-size: 14px; color: var(--x-ink-3); }
.x-stat strong { display: block; font: 600 24px/1.2 var(--x-display); letter-spacing: -.02em; color: var(--x-ink); }
@media (max-width: 960px) { .x-stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .x-stats-grid { grid-template-columns: 1fr; } .x-stat { padding: 14px 16px; } }

/* ---------- accessibility ---------- */
.x-skip { position: fixed; left: 12px; top: -64px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--x-navy); color: #fff; font: 600 15px var(--x-font); text-decoration: none; transition: top .15s; }
.x-skip:focus { top: 12px; }
#main:focus { outline: none; }
.x-nav a:focus-visible, .x-menu a:focus-visible, .x-footer a:focus-visible, .x-btn:focus-visible, .x-burger:focus-visible { outline: 3px solid var(--x-action); outline-offset: 3px; border-radius: 8px; }
.x-footer a:focus-visible { outline-color: #9fc4ff; }
