/* Bits theme.json can't express — TradingView wrappers, custom card hovers */

:root {
  --xinvest-radius-block: 16px;
  --xinvest-radius-button: 9px;
  --xinvest-radius-pill: 100px;
}

.xinvest-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;
}

/* ─── Full-width header/footer: no rounding ──────────────────────────── */
/* theme.json applies a 16px radius to every core/group; that's right for
   in-page sections but wrong for the alignfull header and footer bars. */

.wp-block-group.alignfull,
.xinvest-ticker-bar { border-radius: 0; }

/* ─── Sticky header (ticker + nav travel with the viewport) ──────────── */
/* The header template-part wraps both the white TradingView ticker bar
   and the dark gradient nav. Sticking the whole <header> keeps both
   pinned to the top on scroll, matching the tradingnews.com pattern.
   z-index 50 sits below the floating "VIP signals live" CTA (1000)
   and the mobile-nav overlay (~100000 from core). */
.wp-site-blocks > header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ─── Category/term pills — no underline on the link ─────────────────── */
/* The wp:post-terms block wraps each term in an <a>; core's default
   underline-on-link styling makes the pill look broken. The pill itself
   stays clickable and lands on the category archive. */
.wp-block-post-terms a,
.wp-block-post-terms a:visited {
  text-decoration: none;
}
.wp-block-post-terms a:hover { text-decoration: none; opacity: 0.85; }

/* ─── Footer heading link (Home → /) ─────────────────────────────────── */
/* The "Home" column heading doubles as the home-page link. Inherit
   typography from the wrapping <h4>; just kill the underline. */
.xinvest-footer-heading-link,
.xinvest-footer-heading-link:visited {
  color: inherit;
  text-decoration: none;
}
.xinvest-footer-heading-link:hover { color: #fff; }

/* ─── TradingView ticker tape (header) ───────────────────────────────── */

.xinvest-ticker-bar {
  background: #fff;
  border-bottom: 1px solid #E6EBF5;
}
.xinvest-tv-ticker .tradingview-widget-container__widget {
  height: 36px;
  overflow: hidden;
  white-space: nowrap;
}

/* ─── Card hovers ────────────────────────────────────────────────────── */

.wp-block-post:hover .wp-block-post-title a {
  color: var(--wp--preset--color--red);
}

/* ─── Source attribution at the end of articles ──────────────────────── */

.entry-content em a[rel*="nofollow"] {
  color: var(--wp--preset--color--light-gray);
  font-style: normal;
}

/* ─── Button radius cleanup (vars don't always cascade) ──────────────── */

.wp-block-button .wp-block-button__link { border-radius: var(--xinvest-radius-button); }

/* ─── Legal pages — Figma 282:12890 ─────────────────────────────────── */

/* Sidebar lives inside a 288px wp:column; the inner card carries the chrome. */
.xinvest-legal-sidebar { position: sticky; top: 24px; align-self: start; }
.xinvest-legal-tabs {
  background: #fff;
  border: 1px solid #E6EBF5;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.xinvest-legal-tab {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  border-radius: 9px;
  background: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #808080;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.xinvest-legal-tab:hover { color: #121416; background: #F7F8FB; }
.xinvest-legal-tab.is-active {
  background: #F7F8FB;
  color: #121416;
  font-weight: 500;
}

/* Document container (wraps title + meta + body inside post_content). */
.xinvest-legal-doc__head { margin-bottom: 36px; }
.xinvest-legal-doc__title {
  margin: 0 0 8px;
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -1px;
  color: #121416;
}
.xinvest-legal-doc__meta {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #808080;
}
.xinvest-legal-doc__body { color: #1E2027; }
.xinvest-legal-doc__body h2 {
  margin: 36px 0 12px;
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: #121416;
}
.xinvest-legal-doc__body h2:first-child { margin-top: 0; }
.xinvest-legal-doc__body h3 {
  margin: 24px 0 8px;
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.3px;
  color: #121416;
}
.xinvest-legal-doc__body p {
  margin: 0 0 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #1E2027;
}
.xinvest-legal-doc__body p:last-child { margin-bottom: 0; }
.xinvest-legal-doc__body ul,
.xinvest-legal-doc__body ol {
  margin: 0 0 12px;
  padding-left: 24px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #1E2027;
}
.xinvest-legal-doc__body li { margin-bottom: 8px; }
.xinvest-legal-doc__body li:last-child { margin-bottom: 0; }
.xinvest-legal-doc__body a {
  color: #4F5CE8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.xinvest-legal-doc__body a:hover { color: #3F4DD6; }
.xinvest-legal-doc__body strong { color: #121416; font-weight: 600; }
.xinvest-legal-callout {
  margin: 0 0 24px;
  padding: 16px 20px;
  background: #FEEAEA;
  border-left: 4px solid #EE3C3B;
  border-radius: 8px;
}
.xinvest-legal-table {
  width: 100%;
  margin: 0 0 12px;
  border-collapse: collapse;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 22px;
}
.xinvest-legal-table th,
.xinvest-legal-table td {
  padding: 10px 12px;
  border: 1px solid #E6EBF5;
  text-align: left;
  vertical-align: top;
}
.xinvest-legal-table th { background: #F7F8FB; font-weight: 600; color: #121416; }

@media (max-width: 1100px) {
  .xinvest-legal-sidebar { position: static; }
  .xinvest-legal-doc__title { font-size: 32px; line-height: 40px; letter-spacing: -0.5px; }
}

/* ─── Charts page ───────────────────────────────────────────────────── */

.xinvest-charts-head {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.xinvest-charts-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.xinvest-charts-head__title {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -1px;
  color: #121416;
  flex: 1 1 300px;
}
.xinvest-charts-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 600px;
  max-width: 100%;
  height: 56px;
  padding: 0 8px 0 16px;
  background: #fff;
  border: 1px solid #E6EBF5;
  border-radius: 9px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.xinvest-charts-search:focus-within {
  border-color: #4F5CE8;
  box-shadow: 0 0 0 3px rgba(79,92,232,0.15);
}
.xinvest-charts-search svg { flex: 0 0 18px; }
.xinvest-charts-search input {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  color: #121416;
  outline: none;
}
.xinvest-charts-search input::placeholder { color: #808080; opacity: 1; }
.xinvest-charts-search input::-webkit-input-placeholder { color: #808080; }
/* Datalist popup styling (browser-level — only a couple of rules stick). */
.xinvest-charts-search input::-webkit-list-button { color: #121416; }
.xinvest-charts-search option { color: #121416; background: #fff; }
.xinvest-charts-search .xinvest-btn { height: 40px; padding: 0 24px; }

.xinvest-charts-section {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.xinvest-charts-section--two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 1100px) {
  .xinvest-charts-section--two-up { grid-template-columns: 1fr; }
}

/* ─── About page (3 pillar cards) ───────────────────────────────────── */

.xinvest-about-cards {
  padding: 72px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.xinvest-about-card {
  background: #fff;
  border: 1px solid #E6EBF5;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 248px;
}
.xinvest-about-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  color: #4F5CE8;
}
.xinvest-about-card__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4F5CE8;
}
.xinvest-about-card__title {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -1px;
  color: #121416;
}
.xinvest-about-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #808080;
}
@media (max-width: 1100px) { .xinvest-about-cards { grid-template-columns: 1fr; } }

/* /about uses a 72px vertical rhythm: stats 0/72, cards 72/72, testimonials
   72/72. The .xinvest-signals-* selectors are shared with /signals, so scope
   the about-page overrides via the body class. Figma 269:29505. */
.page-slug-about .xinvest-signals-stats { margin-top: 0; padding-bottom: 72px; }
.page-slug-about .xinvest-signals-testimonials { padding: 72px 0; }

/* ─── Contacts page ──────────────────────────────────────────────────── */

.xinvest-contacts-hero {
  margin: 46px 0 0;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #F7F8FB;
  border-radius: 30px;
  padding: 46px;
}
.xinvest-contacts-hero__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
}
.xinvest-contacts-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.xinvest-contacts-hero__title {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -1px;
  color: #121416;
}
.xinvest-contacts-hero__title span { display: block; }
.xinvest-contacts-hero__lead {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: #808080;
}
.xinvest-contacts-hero__art {
  flex: 1 1 0;
  min-width: 0;
  align-self: stretch;
  min-height: 337px;
  border-radius: 16px;
  background-image: url('img/contacts-hero.png');
  background-image: image-set(url('img/contacts-hero.webp') type('image/webp'), url('img/contacts-hero.png') type('image/png'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 1100px) {
  .xinvest-contacts-hero { flex-direction: column; align-items: stretch; padding: 32px; }
  .xinvest-contacts-hero__art { min-height: 280px; }
}

.xinvest-contacts-cards {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.xinvest-contact-card {
  background: #fff;
  border: 1px solid #E6EBF5;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.xinvest-contact-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.xinvest-contact-card__icon {
  width: 36px;
  height: 36px;
  display: block;
}
.xinvest-contact-card__name {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -1px;
  color: #121416;
}
.xinvest-contact-card__detail {
  margin: 0;
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 28px;
  color: #808080;
}
.xinvest-contact-card__cta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #4F5CE8;
  text-decoration: none;
}
.xinvest-contact-card__cta:hover { text-decoration: underline; }
@media (max-width: 1100px) { .xinvest-contacts-cards { grid-template-columns: 1fr; } }

.xinvest-contacts-form {
  margin: 72px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.xinvest-contacts-form__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.xinvest-contacts-form__title {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -1px;
  color: #121416;
}
.xinvest-contacts-form__lead {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #808080;
}
.xinvest-contacts-form__lead a { color: #4F5CE8; text-decoration: none; }
.xinvest-contacts-form__lead a:hover { text-decoration: underline; }
.xinvest-contacts-form__error {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: #EE3C3B;
}
.xinvest-contacts-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 600px;
}
.xinvest-contacts-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.xinvest-contacts-form__form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.xinvest-input { display: block; width: 100%; }
.xinvest-input input,
.xinvest-input textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #E6EBF5;
  border-radius: 9px;
  padding: 16px 24px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #121416;
  background: #F7F8FB;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.xinvest-input input::placeholder,
.xinvest-input textarea::placeholder { color: #808080; }
.xinvest-input input { height: 56px; }
.xinvest-input textarea {
  height: 160px;
  min-height: 160px;
  resize: vertical;
  font-family: inherit;
}
.xinvest-input input:focus,
.xinvest-input textarea:focus {
  outline: none;
  border-color: #4F5CE8;
  box-shadow: 0 0 0 3px rgba(79,92,232,0.15);
}
.xinvest-contacts-form__form .xinvest-btn { margin-top: 12px; }

/* ─── Brokers page (big cards) ──────────────────────────────────────── */

.xinvest-brokers-section { padding: 24px 0 72px; display: flex; flex-direction: column; gap: 24px; }
.xinvest-brokers-big {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.xinvest-broker-big {
  background: #fff;
  border: 1px solid #E6EBF5;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color 0.15s;
}
.xinvest-broker-big:hover { border-color: #D4DBEA; }

.xinvest-broker-big__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.xinvest-broker-big__logo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.xinvest-broker-big__logo img { max-width: 72%; max-height: 70%; width: auto; height: auto; object-fit: contain; }

.xinvest-broker-big__title h3 {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -1px;
  color: #121416;
}
.xinvest-broker-big__title p {
  margin: 0;
  font-size: 14px;
  line-height: 28px;
  color: #808080;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.xinvest-broker-big__dot { color: #D4DBEA; }

.xinvest-broker-big__desc {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #1E2027;
  flex: 1;
}

.xinvest-broker-big__specs {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.xinvest-broker-big__specs > div {
  display: flex;
  flex-direction: column;
}
.xinvest-broker-big__specs dt {
  font-size: 14px;
  line-height: 28px;
  color: #808080;
}
.xinvest-broker-big__specs dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  color: #121416;
}

.xinvest-broker-big__footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xinvest-broker-big__rate {
  display: flex;
  align-items: center;
  gap: 8px;
}
.xinvest-broker-big__stars { display: block; width: 98px; height: 16px; }
.xinvest-broker-big__score {
  font-size: 16px;
  font-weight: 600;
  color: #121416;
}
.xinvest-broker-big__reviews {
  font-size: 16px;
  font-weight: 600;
  color: #121416;
}
.xinvest-broker-big__note {
  margin: 0;
  font-size: 14px;
  line-height: 28px;
  color: #808080;
}
.xinvest-broker-big .xinvest-btn { width: 100%; }

.xinvest-brokers-disclaimer {
  margin: 0;
  font-size: 12px;
  line-height: 24px;
  color: #808080;
}

@media (max-width: 1100px) {
  .xinvest-brokers-big { grid-template-columns: 1fr; }
}

/* ─── Generic page hero (Markets, etc.) ──────────────────────────────── */

.xinvest-page-hero {
  padding: 46px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.xinvest-page-hero__title {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -1px;
  color: #121416;
}
.xinvest-page-hero__lead {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: #808080;
  max-width: 1224px;
}
.xinvest-page-hero--compact { padding: 46px 0 72px; }
.xinvest-page-hero--compact .xinvest-page-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.xinvest-page-hero--compact .xinvest-page-hero__title { font-size: 36px; }
.xinvest-page-hero--compact .xinvest-page-hero__lead { font-size: 16px; line-height: 24px; }

/* ─── Markets — section wrapper + TV panels ──────────────────────────── */

.xinvest-markets-section {
  padding: 46px 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.xinvest-markets-section--two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.xinvest-markets-section--two-up > div {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.xinvest-tv-panel {
  border: 1px solid #E6EBF5;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  height: 540px;
}
.xinvest-tv-panel--info  { height: 204px; }
.xinvest-tv-panel--mid   { height: 358px; }
.xinvest-tv-panel--news  { height: 427px; }
.xinvest-tv-panel--tall  { height: 584px; }
.xinvest-tv-panel--chart { height: 640px; }
.xinvest-tv-panel > .tradingview-widget-container__widget,
.xinvest-tv-panel iframe { width: 100%; height: 100%; }
@media (max-width: 1100px) {
  .xinvest-markets-section--two-up { grid-template-columns: 1fr; }
}

/* ─── Generic CTA buttons (Signals, Pricing) ─────────────────────────── */

.xinvest-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 24px;
  border-radius: 9px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  max-width: 100%;
}
.xinvest-btn:active { transform: translateY(1px); }
.xinvest-btn--lg { padding: 0 36px; }
.xinvest-btn__icon { flex-shrink: 0; }
.xinvest-btn--white { background: #F7F8FB; color: #121416; }
.xinvest-btn--white:hover { background: #fff; }
.xinvest-btn--ghost { background: transparent; color: #fff; border-color: #F7F8FB; }
.xinvest-btn--ghost:hover { background: rgba(255,255,255,0.08); }
.xinvest-btn--red { background: #EE3C3B; color: #fff; }
.xinvest-btn--red:hover { background: #D83231; }
.xinvest-btn--dark { background: #121416; color: #fff; }
.xinvest-btn--dark:hover { background: #1E2027; }

/* ─── Signals — Hero banner ──────────────────────────────────────────── */

.xinvest-signals-hero {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 100% at 80% 100%, rgba(238,60,59,0.85) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 100%, rgba(178,30,34,0.6) 0%, transparent 70%),
    linear-gradient(135deg, #1A0C0C 0%, #000 60%, #200A0A 100%);
}
.xinvest-signals-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 549px);
  gap: 24px;
  padding: 46px;
  align-items: center;
}
.xinvest-signals-hero__content { color: #fff; }
.xinvest-signals-hero__title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -1px;
  margin: 24px 0 16px;
  color: #fff;
}
.xinvest-signals-hero__lead {
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: #d6d6d6;
}
.xinvest-signals-hero__ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Live signal preview card (right side of hero) */
.xinvest-signal-preview {
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 16px;
  padding: 24px 36px;
  background: linear-gradient(262deg, rgba(255,255,255,0.12) 21%, rgba(255,255,255,0.02) 284%);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #fff;
}
.xinvest-signal-preview__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.xinvest-signal-preview__row:last-child { border-bottom: 0; }
.xinvest-signal-preview__label { color: rgba(247,248,251,0.5); }
.xinvest-signal-preview__value { color: #fff; font-weight: 600; }
.xinvest-signal-preview__muted { color: rgba(247,248,251,0.5); }
.xinvest-signal-preview__danger { color: #EE3C3B; }
.xinvest-signal-preview__success { color: #32B958; }
.xinvest-signal-preview__asset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.xinvest-signal-preview__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 12px;
  color: #fff;
}
.xinvest-signal-preview__icon--gold {
  background: transparent !important; /* image carries its own fill */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.xinvest-signal-preview__icon--gold img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xinvest-signal-preview__chip {
  background: #F7F8FB;
  color: #121416;
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.xinvest-pill--vip {
  background: linear-gradient(247deg, rgba(255,255,255,0.2) 21%, rgba(255,255,255,0.035) 284%);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  gap: 8px;
}

@media (max-width: 1100px) {
  .xinvest-signals-hero__inner { grid-template-columns: 1fr; }
}

/* Mobile spec — Figma 223:17521. Banner content needs much tighter
   inner padding (was 46 desktop) and reduced typography so the card
   doesn't get crushed inside the 344-wide mobile banner. */
@media (max-width: 600px) {
  .xinvest-signals-hero { margin-top: 16px; }
  .xinvest-signals-hero__inner { padding: 24px 16px 16px; gap: 24px; }
  .xinvest-signals-hero__title { font-size: 28px; line-height: 36px; margin: 16px 0 12px; }
  .xinvest-signals-hero__lead { font-size: 16px; line-height: 26px; margin: 0 0 24px; letter-spacing: -0.3px; }
  .xinvest-signal-preview { padding: 24px 16px; gap: 0; }
  /* Both CTAs share one row at 14/24 with the px-16 Figma spec
     (was wrapping to two lines because the desktop 16/24 + px-24 button
     blew past the 312-wide mobile content area). */
  .xinvest-signals-hero__ctas { flex-wrap: nowrap; }
  .xinvest-signals-hero__ctas .xinvest-btn {
    font-size: 14px;
    padding: 0 16px;
    letter-spacing: -0.3px;
  }
}

/* ─── Signals — Stats row ───────────────────────────────────────────── */

.xinvest-signals-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.xinvest-stat-block {
  background: #fff;
  border: 1px solid #E6EBF5;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.xinvest-stat-block__value {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -1px;
  color: #4F5CE8;
}
.xinvest-stat-block__value.is-dark { color: #121416; }
.xinvest-stat-block__label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 28px;
  color: #808080;
}
@media (max-width: 720px) {
  .xinvest-signals-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Signals — Feature cards ───────────────────────────────────────── */

.xinvest-signals-features { padding: 72px 0 0; }
.xinvest-features-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.xinvest-feature-card {
  background: #fff;
  border: 1px solid #E6EBF5;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.xinvest-feature-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.xinvest-feature-card__icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 9px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.xinvest-feature-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
}
.xinvest-feature-card__icon--cover img   { object-fit: cover; }
.xinvest-feature-card__icon--contain {
  background: #121416;
}
.xinvest-feature-card__icon--contain img { object-fit: contain; padding: 6px; }
.xinvest-feature-card__title {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -1px;
  color: #121416;
}
.xinvest-feature-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #1E2027;
}
.xinvest-feature-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.xinvest-feature-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 28px;
  color: #808080;
}
.xinvest-feature-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4F5CE8;
}
@media (max-width: 900px) {
  .xinvest-features-grid { grid-template-columns: 1fr; }
}

/* ─── Section meta (header right side: "3 channels · 1 subscription") ─── */

.xinvest-section-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #808080;
}
.xinvest-section-meta__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #808080;
}

/* ─── Signals — Recent verified (signal cards) ──────────────────────── */

.xinvest-signals-recent { padding: 72px 0 0; }
.xinvest-signal-cards {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.xinvest-signal-card {
  background: #fff;
  border: 1px solid #E6EBF5;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.15s;
}
.xinvest-signal-card:hover { border-color: #D4DBEA; }
.xinvest-signal-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.xinvest-signal-card__pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #1E2027;
}
.xinvest-signal-card__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.xinvest-signal-card__pips {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 13px;
  border: 1px solid #32B958;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  color: #32B958;
}
.xinvest-signal-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.xinvest-signal-card__side {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 59px;
  height: 29px;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.xinvest-signal-card__side.is-buy  { background: rgba(50,185,88,0.1);  color: #32B958; }
.xinvest-signal-card__side.is-sell { background: rgba(238,60,59,0.1);  color: #EE3C3B; }
.xinvest-signal-card__price {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -1px;
  color: #121416;
}
.xinvest-signal-card__price svg { flex: 0 0 20px; }
.xinvest-signal-card__tp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 59px;
  height: 29px;
  border-radius: 6px;
  background: rgba(79,92,232,0.1);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #4F5CE8;
}
.xinvest-signal-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #808080;
}
.xinvest-signal-card__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #808080;
}
@media (max-width: 900px) {
  .xinvest-signal-cards { grid-template-columns: 1fr; }
}

/* ─── Signals — Testimonials ────────────────────────────────────────── */

.xinvest-signals-testimonials { padding: 72px 0 0; }
.xinvest-testimonials-nav {
  display: flex;
  gap: 8px;
}
.xinvest-testimonials-nav__btn {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid #E6EBF5;
  background: #fff;
  color: #121416;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.xinvest-testimonials-nav__btn:hover { border-color: #D4DBEA; background: #F7F8FB; }
/* Horizontal carousel per Figma 208:13424 — 288px cards in a single
   row, free horizontal scroll with snap, arrow buttons in the header
   advance one card at a time via JS. */
.xinvest-testimonial-cards {
  margin-top: 36px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Bleed the scroll area to the container edge so the last card can
     fully scroll into view; padding-right matches the gap. */
  padding-bottom: 4px;
}
.xinvest-testimonial-cards::-webkit-scrollbar { display: none; }
.xinvest-testimonial-card {
  box-sizing: border-box;
  margin: 0;
  flex: 0 0 288px;
  width: 288px;
  height: 285px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #E6EBF5;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.xinvest-testimonial-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* VIP gradient pill — Figma 208:14902 (57×29, red→orange + 1px white inset). */
.xinvest-testimonial-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 57px;
  width: 57px;
  height: 29px;
  padding: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, #EE3C3B 0%, #FDA371 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.xinvest-testimonial-card__tenure {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 28px;
  color: #4F5CE8;
}
.xinvest-testimonial-card__quote {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #1E2027;
  flex: 1;
}
.xinvest-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.xinvest-testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.xinvest-testimonial-card__name {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #121416;
}
.xinvest-testimonial-card__country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 28px;
  color: #808080;
}
.xinvest-testimonial-card__flag {
  font-size: 16px;
  line-height: 1;
}
.xinvest-testimonial-card__avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #f7f8fb;
}
.xinvest-testimonials-nav__btn:disabled,
.xinvest-testimonials-nav__btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 600px) {
  .xinvest-testimonial-card { flex: 0 0 80vw; width: 80vw; height: auto; min-height: 285px; }
}

/* ─── Signals — Pricing (3 tiers per Figma 208:15300) ───────────────── */

.xinvest-signals-pricing { padding: 0; }
.xinvest-signals-pricing__head { margin: 72px 0 36px; }
.xinvest-signals-pricing__title {
  margin: 0 0 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -1px;
  color: #121416;
}
.xinvest-signals-pricing__lead {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #808080;
}
.xinvest-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.xinvest-pricing-card {
  background: #F7F8FB;
  border: 1px solid #E6EBF5;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 767px;
}
.xinvest-pricing-card--vip {
  background: linear-gradient(135deg, #121416 0%, #1C1E21 100%);
  border-color: #1E2027;
  color: #fff;
}

.xinvest-pricing-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.xinvest-pricing-card__kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.5px;
}
.xinvest-pricing-card__kicker.is-blue { color: #4F5CE8; }
.xinvest-pricing-card__kicker.is-red  { color: #EE3C3B; }
.xinvest-pricing-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  background: linear-gradient(252deg, rgba(255,255,255,0.2) 21%, rgba(255,255,255,0.035) 284%);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.xinvest-pricing-card__price {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.xinvest-pricing-card__amount {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -1px;
}
.xinvest-pricing-card__num {
  color: #121416;
  font-size: 64px;
}
.xinvest-pricing-card--vip .xinvest-pricing-card__num { color: #fff; }
.xinvest-pricing-card__period {
  margin-left: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #1E2027;
}
.xinvest-pricing-card--vip .xinvest-pricing-card__period { color: #F7F8FB; }
.xinvest-pricing-card__tagline {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 28px;
  color: #808080;
}
.xinvest-pricing-card__chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #121416;
}

.xinvest-pricing-card__divider {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid #E6EBF5;
}
.xinvest-pricing-card--vip .xinvest-pricing-card__divider { border-top-color: rgba(255,255,255,0.15); }

.xinvest-pricing-card__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.xinvest-pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 28px;
  color: #121416;
}
.xinvest-pricing-card--vip .xinvest-pricing-card__features li { color: #fff; }
.xinvest-pricing-card__features li.is-disabled { color: #D6D6D6; }
.xinvest-pricing-card__features li strong {
  font-weight: 500;
  color: #4F5CE8;
}
.xinvest-pricing-card__features li .is-red {
  color: #EE3C3B;
  font-weight: 500;
}
.xinvest-pricing-card__check {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4F5CE8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
}
.xinvest-pricing-card__features li.is-disabled .xinvest-pricing-card__check {
  background: #E6EBF5;
}
.xinvest-pricing-card--vip .xinvest-pricing-card__check { background: #EE3C3B; }

.xinvest-pricing-card .xinvest-btn {
  width: 100%;
  align-self: stretch;
  padding: 0 16px;
}

@media (max-width: 1100px) {
  .xinvest-pricing-grid { grid-template-columns: 1fr; }
}

/* ─── Breadcrumbs (page-news, etc.) ─────────────────────────────────── */

.xinvest-breadcrumbs {
  padding: 16px 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: #808080;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.xinvest-breadcrumbs a {
  color: #808080;
  text-decoration: none;
  transition: color 0.15s;
}
.xinvest-breadcrumbs a:hover { color: #121416; }
.xinvest-breadcrumbs__sep { color: #D4DBEA; }
.xinvest-breadcrumbs [aria-current="page"] { color: #121416; font-weight: 500; }

/* ─── Editorial pill (News hero) ─────────────────────────────────────── */

.xinvest-pill {
  display: inline-flex;
  align-items: center;
  height: 37px;
  padding: 0 24px;
  border-radius: 100px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0;
}
.xinvest-pill--editorial {
  background: #4F5CE8;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.xinvest-pill--soft {
  background: #F7F8FB;
  color: #1E2027;
}
.xinvest-pill--live {
  background: #32B958;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ─── News filter tabs (segmented control) ───────────────────────────── */

.xinvest-news-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #E6EBF5;
  border-radius: 9px;
  background: #fff;
  flex-wrap: wrap;
}
.xinvest-news-tabs__tab {
  display: inline-flex;
  align-items: center;
  height: 37px;
  padding: 0 16px;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  color: #808080;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.xinvest-news-tabs__tab:hover { color: #121416; }
.xinvest-news-tabs__tab--active {
  background: #F7F8FB;
  color: #121416;
}
.xinvest-news-tabs__tab small {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 400;
  color: inherit;
  opacity: 0.7;
}

/* ─── News page — JS-rendered card grid ──────────────────────────────── */

.xinvest-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .xinvest-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .xinvest-news-grid { grid-template-columns: 1fr; } }

.xinvest-news-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: 'Inter', system-ui, sans-serif;
}
.xinvest-news-card__media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 392 / 220;
  background: #F7F8FB;
}
.xinvest-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.xinvest-news-card__media:hover img { transform: scale(1.03); }

.xinvest-news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.xinvest-news-card__tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 13px;
  border: 1px solid #4F5CE8;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  color: #1E2027;
}
.xinvest-news-card__date {
  font-size: 14px;
  line-height: 28px;
  color: #808080;
}
.xinvest-news-card__title {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -1px;
}
.xinvest-news-card__title a {
  color: #121416;
  text-decoration: none;
  transition: color 0.15s;
}
.xinvest-news-card__title a:hover { color: #EE3C3B; }
.xinvest-news-card__excerpt {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: #1E2027;
}
.xinvest-news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: #808080;
}
.xinvest-news-footer {
  margin: 24px 0 0;
  text-align: center;
}

/* ─── Query pagination (News page, etc.) ─────────────────────────────── */

.xinvest-pagination {
  align-items: center;
  gap: 16px !important;
}
.xinvest-pagination .wp-block-query-pagination-numbers,
.xinvest-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #808080;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.xinvest-pagination .wp-block-query-pagination-numbers {
  display: inline-flex;
  gap: 16px;
  width: auto;
  height: auto;
  background: none;
}
.xinvest-pagination .page-numbers:hover {
  background: #F7F8FB;
  color: #121416;
}
.xinvest-pagination .page-numbers.current {
  background: #4F5CE8;
  color: #fff;
}
.xinvest-pagination .wp-block-query-pagination-previous,
.xinvest-pagination .wp-block-query-pagination-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #E6EBF5;
  border-radius: 9px;
  color: #121416;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0; /* hide text, keep arrow only */
}
.xinvest-pagination .wp-block-query-pagination-previous::before,
.xinvest-pagination .wp-block-query-pagination-next::before {
  font-size: 18px;
  line-height: 1;
  color: #121416;
}
.xinvest-pagination .wp-block-query-pagination-previous::before {
  content: "‹";
}
.xinvest-pagination .wp-block-query-pagination-next::before {
  content: "›";
}
.xinvest-pagination .wp-block-query-pagination-previous:hover,
.xinvest-pagination .wp-block-query-pagination-next:hover {
  border-color: #D4DBEA;
  background: #F7F8FB;
}

/* ─── Section header (h2 + "All articles →" link) ────────────────────── */

.xinvest-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  row-gap: 10px;
}

.xinvest-section-header__title {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -1px;
  color: #121416;
}

.xinvest-section-header__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: #4F5CE8;
  text-decoration: none;
  transition: color 0.15s;
}
.xinvest-section-header__link:hover { color: #121416; }
.xinvest-section-header__link svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* ─── Asset boxes (4 TradingView single-quote widgets, Figma "02 - block") */

.xinvest-assets-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .xinvest-assets-row { grid-template-columns: repeat(2, 1fr); }
}

/* On phone the four asset cards turn into a horizontal scroller — each
   card stays ~260px wide and the strip scrolls sideways (Figma 87:4682
   shows the cards overflowing the 375px viewport). */
@media (max-width: 600px) {
  .xinvest-assets-row {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 8px;
  }
  .xinvest-assets-row > .xinvest-asset-box {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }
  .xinvest-assets-row::-webkit-scrollbar { display: none; }
  .xinvest-assets-row { scrollbar-width: none; }
}

.xinvest-asset-box--tv {
  background: #fff;
  border: 1px solid #E6EBF5;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.xinvest-asset-box--tv:hover { border-color: #D4DBEA; }
.xinvest-asset-box--tv .tradingview-widget-container { height: 154px; }
.xinvest-asset-box--tv iframe { border-radius: 16px; }

/* ─── VIP banner (Figma 199:9183 / 199:9237) ────────────────────────── */

.xinvest-vip-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background-color: #121416;
  background-image: url("img/vip-bg.png");
  background-image: image-set(url("img/vip-bg.webp") type("image/webp"), url("img/vip-bg.png") type("image/png"));
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}
.xinvest-vip-banner__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 549px;
  max-width: 100%;
  padding: 46px;
}
.xinvest-vip-banner__pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  background: linear-gradient(247deg, rgba(255, 255, 255, 0.2) 21%, rgba(255, 255, 255, 0.035) 100%);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
.xinvest-vip-banner__pill img { display: block; }
.xinvest-vip-banner__copy { display: flex; flex-direction: column; gap: 16px; }
.xinvest-vip-banner__title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -1px;
  color: #fff;
}
.xinvest-vip-banner__lead {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: #D6D6D6;
}
.xinvest-vip-banner__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xinvest-vip-banner__features li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #fff;
}
.xinvest-vip-banner__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0.9px solid rgba(255, 255, 255, 0.5);
  border-radius: 180px;
  background: linear-gradient(77deg, rgba(255, 255, 255, 0.2) 10%, rgba(255, 255, 255, 0.035) 119%);
  backdrop-filter: blur(63px);
  -webkit-backdrop-filter: blur(63px);
  box-shadow: 0 2px 54px rgba(69, 42, 124, 0.1);
}
.xinvest-vip-banner__icon img { display: block; }
.xinvest-vip-banner__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 36px;
  border-radius: 9px;
  background: #F7F8FB;
  color: #121416;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.xinvest-vip-banner__cta:hover { background: #fff; transform: translateY(-1px); }
.xinvest-vip-banner__cta-icon { display: block; flex-shrink: 0; }

@media (max-width: 768px) {
  .xinvest-vip-banner {
    background-image: url("img/vip-bg-mobile.png");
    background-image: image-set(url("img/vip-bg-mobile.webp") type("image/webp"), url("img/vip-bg-mobile.png") type("image/png"));
    background-position: center bottom;
    background-size: 100% auto;
    background-color: #000;
  }
  .xinvest-vip-banner__inner {
    width: 100%;
    padding: 24px 24px 360px;
    gap: 36px;
  }
  .xinvest-vip-banner__title { font-size: 32px; line-height: 38px; }
  .xinvest-vip-banner__lead { font-size: 16px; line-height: 24px; }
}

/* ─── Broker cards (3-column row from Figma "Brokers" block) ────────── */

.xinvest-brokers-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .xinvest-brokers-row { grid-template-columns: 1fr; }
}

.xinvest-broker-card {
  background: #fff;
  border: 1px solid #E6EBF5;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color 0.15s;
}
.xinvest-broker-card:hover { border-color: #D4DBEA; }

.xinvest-broker-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.xinvest-broker-card__logo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.xinvest-broker-card__logo img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.xinvest-broker-card__title h3 {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -1px;
  color: #121416;
}

.xinvest-broker-card__title p {
  margin: 0;
  font-size: 14px;
  line-height: 28px;
  color: #808080;
}

.xinvest-broker-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #1E2027;
}

.xinvest-broker-card__rate {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xinvest-broker-card__stars {
  display: block;
  width: 98px;
  height: 16px;
}

.xinvest-broker-card__score {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #121416;
}

/* ─── Header / footer logo ──────────────────────────────────────────── */

.xinvest-logo {
  display: inline-block;
  line-height: 0;
}
.xinvest-logo img,
.xinvest-logo svg {
  display: block;
  width: 193px;
  height: auto;
}

/* ─── Header navigation: active state per Figma ──────────────────────── */
/* wp:navigation applies textColor:light-gray inline, so we need !important
   on the active-state colour to win over the inline style. */

header .wp-block-navigation .wp-block-navigation-item__content {
  padding: 8px 16px;
  border-radius: 9px;
  color: #808080;
}
header .wp-block-navigation .wp-block-navigation-item__content:hover {
  color: #fff !important;
}
header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
header .wp-block-navigation .current_page_item > .wp-block-navigation-item__content,
header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content {
  color: #fff !important;
}

/* "X min read" caption that PHP appends after every post-excerpt block
   on archive / listing contexts (filter in functions.php). */
.xinvest-min-read {
  margin: 0 0 24px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 28px;
  color: #808080;
}

/* ─── Footer socials + nav lists ────────────────────────────────────── */

.xinvest-socials {
  display: flex;
  gap: 10px;
}

.xinvest-socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: #EE3C3B;
  transition: background 0.15s;
}
.xinvest-socials__link:hover { background: #D83231; }

.xinvest-ssl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 24px 0 0 !important;
  color: #808080;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  line-height: 24px;
}
.xinvest-ssl svg { flex: 0 0 16px; }

ul.xinvest-footer-list,
ul.wp-block-list.xinvest-footer-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 36px 0 0 !important;
}
ul.xinvest-footer-list > li {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  margin: 0 !important;
}
ul.xinvest-footer-list > li + li { margin-top: 24px !important; }
.xinvest-footer-list li a {
  color: #808080;
  text-decoration: none;
  transition: color 0.15s;
}
.xinvest-footer-list li a:hover { color: #fff; }

/* ─── Article page (single.html) — Figma 183:7929 ─────────────────────── */

/* Breadcrumbs */
.xinvest-breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
}
.xinvest-breadcrumbs__item a {
  color: #121416;
  text-decoration: none;
}
.xinvest-breadcrumbs__item a:hover { color: #4F5CE8; }
.xinvest-breadcrumbs__sep {
  display: inline-flex;
  align-items: center;
  color: #808080;
}
.xinvest-breadcrumbs__current {
  color: #808080;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60ch;
}

/* Tags (also used by sidebar cards) */
.xinvest-tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.xinvest-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 13px;
  border-radius: 100px;
  border: 1px solid #E6EBF5;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  color: #808080;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.xinvest-tag--active {
  border-color: #4F5CE8;
  color: #1E2027;
}
a.xinvest-tag:hover { border-color: #4F5CE8; color: #1E2027; }

/* Article header — title block + featured image + share */
.xinvest-article-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.xinvest-article-head__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.xinvest-article-head__date {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
  color: #808080;
  text-align: right;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.xinvest-article-head__sep { color: #D4DBEA; }
.xinvest-article-head__readtime { color: #808080; }
.xinvest-article-head__title {
  margin: 0;
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 50px;
  letter-spacing: -1px;
  color: #121416;
}
.xinvest-article-head__lead {
  margin: -12px 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: #1E2027;
}
.xinvest-article-head__image {
  width: 100%;
  max-width: 808px;
  aspect-ratio: 808 / 454;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Share row */
.xinvest-share {
  display: flex;
  align-items: center;
  gap: 16px;
}
.xinvest-share__label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  color: #121416;
}
.xinvest-share__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.xinvest-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1.25px solid #4F5CE8;
  color: #4F5CE8;
  transition: background 0.15s, color 0.15s;
}
.xinvest-share__link:hover {
  background: #4F5CE8;
  color: #fff;
}
.xinvest-share__link--filled {
  background: #4F5CE8;
  color: #fff;
  border-color: #4F5CE8;
}
.xinvest-share__link--filled:hover {
  background: #3F4DD6;
  border-color: #3F4DD6;
}

/* Sidebar — latest news cards (4×) */
.xinvest-article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.xinvest-article-sidebar__card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.xinvest-article-sidebar__image {
  flex: 0 0 127px;
  width: 127px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.xinvest-article-sidebar__image--placeholder { background: #F6F8FB; }
.xinvest-article-sidebar__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.xinvest-article-sidebar__title {
  margin: 0;
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #121416;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xinvest-article-sidebar__card:hover .xinvest-article-sidebar__title { color: #4F5CE8; }
.xinvest-article-sidebar__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  width: 100%;
}
.xinvest-article-sidebar__date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
  color: #808080;
}

/* Article body (wp:post-content) typography */
.wp-block-post-content > * + * { margin-top: 24px; }
.wp-block-post-content h2 {
  margin-top: 48px;
  margin-bottom: 0;
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.5px;
  color: #121416;
}
.wp-block-post-content p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 28px;
  color: #1E2027;
}
.wp-block-post-content blockquote {
  margin: 0;
  padding: 24px;
  border-radius: 12px;
  background: #FEEAEA;
  border-left: 4px solid #EE3C3B;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.3px;
  color: #1E2027;
  font-style: italic;
}
.wp-block-post-content blockquote p { font-family: inherit; font-size: inherit; line-height: inherit; }
.wp-block-post-content img,
.wp-block-post-content figure img { border-radius: 16px; }

/* Stack columns on tablet/mobile */
@media (max-width: 1023px) {
  .xinvest-article-head__title { font-size: 32px; line-height: 40px; letter-spacing: -0.5px; }
  .xinvest-article-sidebar { gap: 16px; }
  .xinvest-article-sidebar__image { flex-basis: 100px; width: 100px; height: 100px; }
}

/* ═══ MOBILE ADAPTATION ═══════════════════════════════════════════════
   Figma 87:4682 (Home — mob, 375px) drives the breakpoints below.
   - 781px: tablet → narrow desktop; matches WP's wp-block-columns
            built-in stacking breakpoint, so most multi-column blocks
            already collapse here.
   - 600px: phone landscape; reduces header padding, drops the VIP
            CTA from the header, shrinks hero typography.
   - 480px: phone portrait (≤ Figma 375px frame); collapses single-
            row layouts (e.g. article share, section header) and
            stacks anything still horizontal.
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 781px) {
  /* Full-bleed header/footer/section bars: keep them flush to the
     viewport sides with 16px gutter (their inline styles use the
     desktop spacing-60 = 48px token). */
  header.wp-block-group.alignfull,
  footer.wp-block-group.alignfull {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  footer.wp-block-group.alignfull {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  /* Footer columns on mobile (Figma 183:8722):
       row 1: Brand (full width)
       row 2: Home + Company side-by-side
       row 3: Legal (full width)
     WP's default rule collapses every wp-block-column to flex-basis:100%;
     we beat it with the same `:not(.is-not-stacked-on-mobile)` chain
     plus :nth-child to target cols 2 and 3. The 24px column blockGap
     stays as the visual gap between Home and Company. */
  footer.wp-block-group.alignfull .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:nth-child(2),
  footer.wp-block-group.alignfull .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:nth-child(3) {
    flex-basis: calc(50% - 12px) !important;
    flex-grow: 0 !important;
  }

  /* VIP banner & contacts hero already stack from their own rules;
     keep typography reductions consistent. */
  .xinvest-page-hero__title { font-size: 32px; line-height: 40px; letter-spacing: -0.5px; }
  .xinvest-page-hero--compact .xinvest-page-hero__title { font-size: 28px; line-height: 36px; }
  .xinvest-page-hero__lead { font-size: 16px; line-height: 24px; }

  /* Section headers (Trading news / Stock news / Brokers / etc.):
     drop from 36/50 to a phone-friendly size and let the "All articles"
     link wrap under the title. */
  .xinvest-section-header { gap: 12px; }
  .xinvest-section-header__title { font-size: 28px; line-height: 36px; letter-spacing: -0.5px; }
  .xinvest-section-header__link { font-size: 16px; line-height: 24px; }

  /* Articles list typography */
  .xinvest-article-head__title { font-size: 28px; line-height: 34px; }

  /* Section paddings: 72/72 desktop → 48/48 phone */
  .xinvest-signals-stats,
  .xinvest-about-cards,
  .xinvest-signals-testimonials,
  .xinvest-markets-section,
  .xinvest-signals-features,
  .xinvest-signals-recent {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .page-slug-about .xinvest-signals-stats,
  .page-slug-about .xinvest-about-cards,
  .page-slug-about .xinvest-signals-testimonials { padding-bottom: 48px !important; }

  /* Legal sidebar: stop being sticky so the tabs flow above content
     instead of fighting with mobile scroll. */
  .xinvest-legal-sidebar { position: static; }
  .xinvest-legal-doc__title { font-size: 28px; line-height: 36px; letter-spacing: -0.5px; }
}

/* Mobile menu — overlay item spacing per Figma 183:6700:
   items are 42px tall with 8px gap (centers 50px apart). */
@media (max-width: 600px) {
  header .wp-block-navigation__container { gap: 8px !important; }
  header .wp-block-navigation__responsive-container .wp-block-navigation-item__content {
    height: 42px;
    display: inline-flex;
    align-items: center;
    line-height: 24px;
    padding: 0 16px;
  }
}

/* Mobile menu extras (socials + VIP CTA shown inside wp:navigation
   overlay). Hidden by default; wp:navigation toggles
   `body.has-modal-open` when the overlay opens, and we position-fix
   our extras at the bottom of that overlay. Figma 183:6700. */
.xinvest-mobile-menu-extras { display: none; }
body.has-modal-open .xinvest-mobile-menu-extras,
body.xinvest-menu-open .xinvest-mobile-menu-extras {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 48px;
  z-index: 1000000;
  pointer-events: auto;
}
.xinvest-mobile-menu-extras__socials {
  display: flex;
  gap: 10px;
}
.xinvest-mobile-menu-extras__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: #EE3C3B;
  color: #fff;
  transition: background 0.15s;
}
.xinvest-mobile-menu-extras__socials a:hover { background: #D83231; }
.xinvest-mobile-menu-extras__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 9px;
  background: #EE3C3B;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: background 0.15s;
}
.xinvest-mobile-menu-extras__cta:hover { background: #D83231; color: #fff; }

@media (max-width: 600px) {
  /* Header: hide the "Get VIP signals" CTA to give the hamburger room.
     wp:navigation overlay-on-mobile carries the menu items, but the
     pill takes up too much horizontal space at this size. */
  header .wp-block-buttons,
  header .wp-block-button { display: none !important; }

  /* Header overlay toggle (hamburger) styled per Figma 199:9409:
     42×42 rounded, transparent border, white icon centered. */
  header .wp-block-navigation__responsive-container-open,
  header .wp-block-navigation__responsive-container-close {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Replace WP's default two-bar hamburger with the vuesax/linear/menu
     icon used in Figma 199:9354 — 3 horizontal lines, rounded caps. */
  header .wp-block-navigation__responsive-container-open svg {
    display: none;
  }
  header .wp-block-navigation__responsive-container-open {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 7H21' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M3 12H21' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M3 17H21' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 24px 24px;
  }
  header .wp-block-navigation__responsive-container-close svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  /* Hero card on home — shrink the main-card title typography. */
  .xinvest-hero-card__title { font-size: 28px !important; line-height: 34px !important; }

  /* Featured image on article — keep aspect, drop max height. */
  .xinvest-article-head__image { border-radius: 12px; }

  /* Article share row: stack label above buttons on tiny screens. */
  .xinvest-share { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  /* Asset boxes: from 2-col grid at 720 down to single column for
     375px viewport. The existing rule already stacks them at 480. */
  .xinvest-stat-block__value { font-size: 32px; line-height: 38px; }

  /* Broker card head: stack logo above title/desc when very narrow. */
  .xinvest-broker-card__head { gap: 12px; }
}

/* =========================================================================
   Mid-article VIP mini-banner (Figma 199:9274). Renders inside the post
   body via [xinvest_vip_mini] shortcode OR auto-injected after the 3rd
   paragraph of singular posts. Dark base + red radial glow on the right,
   left-side copy, right-side white pill CTA. */
.xinvest-vip-mini {
  position: relative;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 36px 46px;
  margin: 36px 0;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 130% at 95% 50%, rgba(238,60,59,0.95) 0%, rgba(238,60,59,0) 60%),
    radial-gradient(ellipse 60% 100% at 70% 100%, rgba(238,60,59,0.55) 0%, transparent 70%),
    linear-gradient(90deg, #0F1115 0%, #1A1D24 100%);
  color: #fff;
}
.xinvest-vip-mini__text { flex: 1 1 380px; min-width: 0; }
.xinvest-vip-mini__title {
  margin: 0 0 12px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -1px;
  color: #fff;
}
/* Specificity must beat `.wp-block-post-content p { color:#1E2027 }`
   from the article-body typography block — banner sits inside post
   content, so a 0,1,0 class selector would lose to that rule and the
   lead would render dark on the dark banner. */
.xinvest-vip-mini .xinvest-vip-mini__lead {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: #D6D6D6;
}
.xinvest-vip-mini__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 8px 36px;
  background: #F7F8FB;
  color: #121416;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.5px;
  text-decoration: none;
  border-radius: 9px;
  box-sizing: border-box;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.xinvest-vip-mini__cta:hover {
  background: #fff;
  transform: translateY(-1px);
  color: #121416;
}
@media (max-width: 600px) {
  .xinvest-vip-mini { padding: 24px; gap: 20px; }
  .xinvest-vip-mini__title { font-size: 22px; line-height: 28px; }
  .xinvest-vip-mini__cta { width: 100%; }
}

/* =========================================================================
   Sticky "VIP signals live" floating CTA (Figma 245:20108 desktop /
   97:6682 mobile). Single DOM tree, two layouts via media query. Hidden
   when the mobile menu overlay is open so it doesn't fight for tap area. */
.xinvest-sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  pointer-events: none; /* Only the button/close are interactive. */
}
.xinvest-sticky-cta__halo,
.xinvest-sticky-cta__close,
.xinvest-sticky-cta__btn { pointer-events: auto; }
.xinvest-sticky-cta[hidden] { display: none !important; }
body.xinvest-menu-open .xinvest-sticky-cta,
body.has-modal-open .xinvest-sticky-cta { display: none !important; }

.xinvest-sticky-cta__close { display: none; }

.xinvest-sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 8px 16px;
  box-sizing: border-box; /* height includes padding — Figma's 46/68 totals */
  background: #EE3C3B;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  text-decoration: none;
  border-radius: 9px;
  box-shadow: 0 8px 10px rgba(238, 60, 59, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.xinvest-sticky-cta__btn:hover,
.xinvest-sticky-cta__btn:focus-visible {
  background: #D83231;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 16px rgba(238, 60, 59, 0.5);
}

/* "Live" pulse dot — outer ring frame 15px, inner filled circle 8px,
   plus a soft animated halo so the indicator reads as "live". */
.xinvest-sticky-cta__pulse {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.xinvest-sticky-cta__pulse::before {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: #fff;
  --xinvest-pulse-max: 7px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: xinvest-sticky-pulse 1.8s ease-out infinite;
}
@keyframes xinvest-sticky-pulse {
  0%   { box-shadow: 0 0 0 0                          rgba(255, 255, 255, 0.7); }
  70%  { box-shadow: 0 0 0 var(--xinvest-pulse-max)   rgba(255, 255, 255, 0);   }
  100% { box-shadow: 0 0 0 0                          rgba(255, 255, 255, 0);   }
}
@media (prefers-reduced-motion: reduce) {
  .xinvest-sticky-cta__pulse::before { animation: none; }
}

@media (max-width: 780px) {
  /* Mobile: 344px popup centered at the bottom of the viewport. Matches
     Figma 97:6682 — a fixed-width card with a dismiss "x" stacked above.
     Centered (not right-aligned per Figma) because right-aligned looks
     off on wider phones / tablets in portrait. */
  .xinvest-sticky-cta {
    right: auto;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
    max-width: 344px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
  .xinvest-sticky-cta__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 7.5px;
    background: #F7F8FB;
    color: #0F1115;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 17, 21, 0.08);
  }
  .xinvest-sticky-cta__close:hover { background: #ECEEF5; }
  .xinvest-sticky-cta__close svg { display: block; }

  .xinvest-sticky-cta__halo {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border-radius: 16px;
    background: rgba(238, 60, 59, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow:
      inset 0.615px 0.615px 0 -0.308px #333,
      inset -0.615px -0.615px 0 -0.308px #262626,
      inset 0.615px 0.615px 0.308px -0.615px #fff,
      inset 0 0 1.846px 0 rgba(255, 255, 255, 0.5),
      inset 0 0 9.848px 0 #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Button: exact Figma dimensions. max-width keeps it from overflowing
     on viewports narrower than 344+32px (iPhone SE etc.). */
  .xinvest-sticky-cta__btn {
    width: 312px;
    max-width: 100%;
    height: 68px;
    gap: 12px;
    padding: 6px 18px;
    font-size: 18px;
    line-height: 28px;
    justify-content: center;
    box-shadow: 0 12px 15px rgba(238, 60, 59, 0.4);
  }
  /* Larger pulse to match Figma's 30px icon frame. Pulse expansion kept
     subtle (8px) so the dot doesn't read as a puffy ring. */
  .xinvest-sticky-cta__pulse {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }
  .xinvest-sticky-cta__pulse::before {
    inset: 7px;
    --xinvest-pulse-max: 8px;
  }
}

