/**
 * EXFM homepage hero and last-exchange activity.
 *
 * Rules are kept in cascade order because the page still contains legacy
 * theme/plugin styles. Later blocks are deliberate compatibility overrides;
 * do not flatten or reorder them without a visual regression pass.
 */

/* Hero shell and background. */
.home .page-block.no-padding {
  width: 100%;
  max-width: none;
  padding: 0;
}

.fm-hero {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  overflow: hidden;
  background: var(--fm-bg);
}

.fm-hero__background {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fm-hero__background picture {
  display: none;
}

.fm-hero__background picture img,
.fm-hero__aurora {
  display: block;
  width: 100%;
  height: 100%;
}

.fm-hero__background picture img {
  object-fit: cover;
}

.fm-hero__aurora {
  position: absolute;
  inset: 0;
}

.fm-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  min-height: 700px;
  padding-block: 4rem 5rem;
}

.fm-calculator-card__title {
  display: none;
}

.fm-hero__copy {
  max-width: 600px;
  padding-top: 1rem;
}

.fm-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  background: rgba(25, 30, 40, 0.76);
  color: var(--fm-neutral-0);
  line-height: 150%;
  font-size: 13px;
}

.fm-hero__status::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--fm-purple-bright);
  box-shadow: 0 0 12px rgba(133, 61, 242, 0.8);
  content: '';
}

.fm-hero__description {
  max-width: 510px;
  margin: 1.25rem 0 0;
  color: rgba(247, 248, 251, 0.8);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.65;
}

.fm-hero__activity {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 3.5rem;
  max-width: 510px;
}

.fm-activity-card {
  min-width: 0;
  flex: 1 1 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--fm-radius-md);
  background: var(--fm-alpha-neutral-13);
  color: var(--fm-text);
}

.fm-activity-card--featured {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #853df2, #6821d4);
}

.fm-activity-card__eyebrow,
.fm-activity-card__date {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
}

.fm-activity-card__amount {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.fm-activity-card__button {
  display: inline-flex;
  justify-content: center;
  margin-top: 0.9rem;
  padding: 0.55rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.14);
  color: var(--fm-neutral-0);
  font-size: 0.68rem;
  text-decoration: none;
}

.fm-activity-card--latest {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.fm-activity-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.fm-activity-card__coin {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
}

.fm-activity-card__coin img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.fm-activity-card__arrow {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--fm-purple);
  color: var(--fm-neutral-0);
  font-size: 1rem;
}

.fm-hero__socials {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.8rem;
  color: var(--fm-text-muted);
  font-size: 0.72rem;
}

.fm-hero__socials a {
  padding: 6px 10px;
  border-radius: 0.45rem;
  background: rgba(55, 70, 86, 0.72);
  color: var(--fm-text);
  text-decoration: none;
}

.fm-calculator-card {
  position: relative;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1.25rem;
  background: rgba(4, 7, 12, 0.78);
  box-shadow: var(--fm-shadow);
  backdrop-filter: blur(18px);
}

.fm-calculator-card .card-title {
  display: none;
}

/* Responsive hero geometry. */
@media (max-width: 900px) {
  .fm-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }

  .fm-hero__copy {
    max-width: 680px;
  }

  .fm-calculator-card {
    width: min(100%, 520px);
  }
}

@media (max-width: 767px) {
  .fm-hero__background picture {
    display: block;
  }

  .fm-hero__aurora {
    display: none;
  }
}

@media (max-width: 560px) {
  .fm-hero__inner {
    width: calc(100% - 1.25rem);
    max-width: var(--fm-container);
    padding-block: 2.5rem 3rem;
  }

  .fm-hero__activity {
    flex-direction: column;
    margin-top: 2.25rem;
  }

  .fm-activity-card {
    flex-basis: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-hero__aurora animateTransform {
    display: none;
  }
}
/* Mobile Figma pass: stack copy, PremiumBox calculator, and activity cards. */
@media (max-width: 560px) {
  .fm-hero {
    min-height: 0;
  }

  .fm-hero__inner {
    width: calc(100% - 26px);
    max-width: var(--fm-container);
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 0 0 2rem;
  }

  .fm-hero__copy {
    display: contents;
  }

  .fm-hero__status,
  .fm-hero__title,
  .fm-hero__description,
  .fm-calculator-card,
  .fm-hero__activity {
    grid-column: 1;
  }

  .fm-hero__status {
    order: 1;
    padding: 0.36rem 0.65rem;
    font-size: 13px;
    font-weight: 500;
    line-height: 150%;
  }

  .fm-hero__title {
    order: 2;
    max-width: 100%;
    margin-top: 0;
    font-size: clamp(2.35rem, 12vw, 3.3rem);
    letter-spacing: -0.045em;
    line-height: 1;
  }

  .fm-hero__description {
    order: 3;
    max-width: 100%;
    margin-top: 0.8rem;
    font-size: 0.7rem;
    line-height: 1.55;
  }

  .fm-calculator-card {
    order: 4;
    width: 100%;
    margin-top: 1.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .fm-hero__activity {
    order: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: none;
    margin-top: 0.6rem;
  }

  .fm-activity-card {
    padding: 0.75rem;
    border-radius: 0.85rem;
  }

  .fm-activity-card--featured {
    grid-column: 1 / -1;
    min-height: 5.1rem;
  }

  .fm-activity-card--latest {
    position: relative;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    gap: 1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
  }

  .fm-activity-card--latest .fm-activity-card__row {
    min-height: 4.5rem;
    padding: 0.7rem;
    background: rgba(24, 29, 38, 0.94);
  }

  .fm-activity-card--latest .fm-activity-card__row:first-child {
    grid-column: 1 / -1;
    min-height: 2.2rem;
    padding-block: 0.55rem;
  }

  .fm-activity-card--latest .fm-activity-card__row:nth-child(2),
  .fm-activity-card--latest .fm-activity-card__row:nth-child(3) {
    align-items: end;
  }

  .fm-activity-card--latest .fm-activity-card__row:nth-child(2) {
    border-radius: 0.85rem;
  }

  .fm-activity-card--latest .fm-activity-card__row:nth-child(3) {
    border-radius: 0.85rem;
  }

  .fm-activity-card--latest .fm-activity-card__arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.55rem;
    height: 1.55rem;
    transform: translate(-50%, -20%);
    font-size: 0.75rem;
  }

  .fm-activity-card__eyebrow,
  .fm-activity-card__date,
  .fm-activity-card__coin {
    font-size: 0.58rem;
  }

  .fm-activity-card__amount {
    margin-top: 0.25rem;
    font-size: 0.72rem;
  }

  .fm-activity-card__button {
    margin-top: 0.45rem;
    padding: 0.38rem;
    font-size: 0.56rem;
  }

  .fm-activity-card__coin img {
    width: 0.95rem;
    height: 0.95rem;
  }

  .fm-hero__socials {
    display: none;
  }
}
/* Desktop Figma correction: restore component geometry over the legacy 10px root scale. */
body.home .fm-hero {
  min-height: 700px;
  background: var(--fm-bg) !important;
  color: var(--fm-text);
}

body.home .fm-hero__inner {
  width: calc(100% - 64px);
  max-width: var(--fm-container);
  min-height: 700px;
  align-items: start;
  padding: 10px 0 72px;
  box-sizing: border-box;
}

body.home .fm-hero__copy {
  max-width: 510px;
  padding-top: 18px;
}

body.home .fm-hero__status {
  margin-bottom: 12px;
  padding: 4px 12px;
  font-size: 13px;
  gap: 10px;
}

body.home .fm-hero__title {
  margin: 0;
  max-width: 620px;
  color: var(--fm-neutral-0);
  font: var(--fm-type-display-hero);
  letter-spacing: var(--fm-type-display-hero-letter-spacing);
  font-size: 56px;
  line-height: 1.1;
}

body.home .fm-hero__description {
  max-width: 510px;
  margin-top: 18px;
  color: var(--fm-neutral-0);
  font: var(--fm-type-body-l-regular);
  letter-spacing: var(--fm-type-body-l-regular-letter-spacing);
  line-height: 1.6;
}

body.home .fm-calculator-card {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}

@media (max-width: 1200px) and (min-width: 768px) {
  body.home .fm-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: 48px;
  }

  body.home .fm-calculator-card {
    max-width: 360px;
  }
}

@media (max-width: 767px) {
  body.home .fm-hero__inner {
    width: calc(100% - 26px);
    min-height: 0;
    padding-top: 0;
  }

  body.home .fm-hero__title {
    font-size: 40px;
  }
}
/* Responsive hero typography and shared container alignment. */
.fm-hero__inner {
  width: calc(100% - 64px);
  max-width: var(--fm-container);
  margin-inline: auto;
}

@media (max-width: 767px) {
  .fm-hero__inner {
    width: calc(100% - 26px);
    max-width: var(--fm-container);
  }
}
/* Figma final alignment: desktop vertical rhythm and left/right composition. */
.fm-hero__inner {
  width: calc(100% - clamp(48px, 10.65vw, 108px));
  max-width: var(--fm-container);
  padding: 50px 0;
}

.fm-calculator-card {
  max-width: 320px;
}

.fm-hero__activity {
  display: flex;
  width: 100%;
  max-width: 360px;
  gap: 8px;
  margin-top: 77px;
}

.fm-activity-card--featured {
  flex: 0 0 143px;
  min-height: 105px;
  padding: 12px;
}

.fm-activity-card--latest {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

.fm-activity-card--latest .fm-activity-card__row {
  display: flex;
  min-width: 0;
  min-height: 105px;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: var(--fm-alpha-neutral-13);
}

.fm-activity-card--latest .fm-activity-card__arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
}

@media (max-width: 1200px) and (min-width: 901px) {
  .fm-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 320px);
    gap: clamp(32px, 4.9vw, 50px);
  }
}

@media (max-width: 900px) and (min-width: 768px) {
  .fm-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-calculator-card {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .fm-hero__inner {
    width: calc(100% - 26px);
    padding: 60px 0 20px;
  }

  .fm-hero__activity {
    max-width: none;
    margin-top: 16px;
  }

  .fm-activity-card--featured {
    flex-basis: auto;
  }

  .fm-activity-card--latest {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .fm-activity-card--latest .fm-activity-card__row,
  .fm-activity-card--latest .fm-activity-card__row--give,
  .fm-activity-card--latest .fm-activity-card__row--get {
    grid-column: auto !important;
    min-height: 105px;
  }
}
/* Scoped cascade win for the requested desktop/mobile hero rhythm and type. */
body.home .fm-hero__inner {
  padding: 50px 0;
}

body.home .fm-hero__description {
  margin-top: 12px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  body.home .fm-hero__inner {
    padding: 60px 0 20px;
  }
}
/* Responsive hero height matches the reference at laptop and large desktop widths. */
.fm-hero,
.fm-hero__inner {
  min-height: clamp(700px, 49vw, 710px);
}
/* Last-exchange and social typography from the supplied references. */
.fm-hero__socials {
  font-family: var(--fm-font);
  font-size: 12px;
  line-height: 1.2;
}

.fm-hero__socials a {
  border-radius: var(--fm-radius-sm);
}

.fm-activity-card,
.fm-activity-card__button,
.fm-activity-card__eyebrow,
.fm-activity-card__date,
.fm-activity-card__coin,
.fm-activity-card__featured-title {
  font-family: var(--fm-font);
}

.fm-activity-card--featured {
  border-radius: 16px;
}

.fm-activity-card__featured-title {
  display: block;
  color: var(--fm-neutral-0);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
}

.fm-activity-card__button {
  border-radius: var(--fm-radius-sm);
  font-size: 11px;
  line-height: 1.2;
}

.fm-activity-card--latest .fm-activity-card__eyebrow,
.fm-activity-card--latest .fm-activity-card__date {
  font-size: 11px;
  line-height: 1.2;
}

.fm-activity-card--latest .fm-activity-card__coin {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 14px;
  line-height: 1.1;
}

.fm-activity-card--latest .fm-activity-card__coin img,
.fm-activity-card--latest .fm-activity-card__coin--fallback::before {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  border-radius: 50%;
  object-fit: contain;
}

.fm-activity-card--latest .fm-activity-card__coin--fallback::before {
  content: '';
  background: #16b978;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.88);
}

.fm-activity-card--latest .fm-activity-card__coin--get::before {
  background: #20a84d;
}

.fm-activity-card--latest .fm-activity-card__amount {
  margin: 0;
  color: var(--fm-neutral-0);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.1;
}

.fm-activity-card--latest .fm-activity-card__type {
  color: var(--fm-neutral-0);
  font-size: 11px;
  line-height: 1.1;
}

@media (max-width: 767px) {
  .fm-hero__socials {
    display: none !important;
  }

  .fm-activity-card__featured-title {
    font-size: 15px;
    line-height: 1.1;
  }

  .fm-activity-card--latest .fm-activity-card__eyebrow,
  .fm-activity-card--latest .fm-activity-card__date {
    font-size: 12px;
  }

  .fm-activity-card--latest .fm-activity-card__amount {
    font-size: 14px;
  }
}
/* Reference composition at 1147px: shared gutters, compact vertical rhythm, aligned activity row. */
.fm-hero__inner {
  width: calc(100% - clamp(48px, 11.16vw, 128px));
  max-width: var(--fm-container);
  grid-template-columns: minmax(0, 1fr) minmax(
      320px,
      clamp(320px, 31.4vw, 360px)
    );
  gap: clamp(32px, 4.36vw, 50px);
  padding: clamp(22px, 2.15vw, 50px) 0;
}

.fm-calculator-card {
  max-width: clamp(320px, 31.4vw, 360px);
}

.fm-hero__activity {
  max-width: clamp(360px, 35.3vw, 405px);
  gap: clamp(8px, 0.8vw, 10px);
  margin-top: clamp(16px, 5.36vw, 77px);
}

.fm-activity-card--featured {
  flex-basis: clamp(143px, 14vw, 160px);
  min-height: clamp(105px, 10.46vw, 120px);
}

.fm-activity-card--latest .fm-activity-card__row {
  min-height: clamp(105px, 10.46vw, 120px);
}

.fm-hero__socials {
  margin-top: clamp(28px, 3.3vw, 43px);
}

@media (max-width: 1200px) and (min-width: 901px) {
  .fm-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(
        320px,
        clamp(320px, 31.4vw, 360px)
      );
  }
}

@media (max-width: 767px) {
  .fm-hero__inner {
    width: calc(100% - 26px);
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 60px 0 20px;
  }

  .fm-calculator-card {
    max-width: none;
  }

  .fm-hero__activity {
    max-width: none;
    margin-top: 16px;
  }

  .fm-activity-card--featured {
    flex-basis: auto;
    min-height: 105px;
  }

  .fm-activity-card--latest .fm-activity-card__row {
    min-height: 105px;
  }
}
/* Home-page specificity overrides for the reference composition. */
body.home .fm-hero,
body.home .fm-hero__inner {
  min-height: clamp(700px, 49vw, 710px);
}

body.home .fm-hero__inner {
  width: calc(100% - clamp(48px, 11.16vw, 128px));
  grid-template-columns: minmax(0, 1fr) minmax(
      320px,
      clamp(320px, 31.4vw, 360px)
    );
  gap: clamp(32px, 4.36vw, 50px);
  padding: clamp(22px, 2.15vw, 50px) 0;
}

body.home .fm-calculator-card {
  max-width: clamp(320px, 31.4vw, 360px);
}

@media (max-width: 767px) {
  body.home .fm-hero,
  body.home .fm-hero__inner {
    min-height: 0;
  }

  body.home .fm-hero__inner {
    width: calc(100% - 26px);
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 60px 0 20px;
  }

  body.home .fm-calculator-card {
    max-width: none;
  }
}
/* Final activity composition: featured promo plus two horizontal exchange cards. */
body.home .fm-activity-card--latest {
  flex-direction: row;
  min-width: 0;
}

body.home .fm-activity-card--latest .fm-activity-card__row {
  width: auto;
  min-width: 0;
  flex: 1 1 0;
}

body.home
  .fm-activity-card--latest
  .fm-activity-card__row--get
  .fm-activity-card__date {
  align-self: flex-end;
  text-align: right;
}

body.home .fm-activity-card__avatars {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
}

body.home .fm-activity-card__avatar {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-right: -5px;
  border: transparent;
  border-radius: 50%;
  background: linear-gradient(145deg, #f4d0a2, #87553e);
  color: var(--fm-neutral-0);
  font-size: 10px;
  font-weight: 700;
}

body.home .fm-activity-card__avatar--two {
  background: linear-gradient(145deg, #f4c89e, #3c6b90);
}

body.home .fm-activity-card__avatar--plus {
  margin-right: 0;
  border-color: var(--fm-alpha-white-20);
  background: rgba(255, 255, 255, 0.14);
  font-size: 15px;
  font-weight: 400;
}
/* Keep the activity row at the reference proportions instead of content-driven heights. */
@media (min-width: 768px) {
  body.home .fm-activity-card--featured {
    height: auto;
    min-height: 150px;
    box-sizing: border-box;
  }

  body.home .fm-activity-card--latest .fm-activity-card__row {
    height: 150px;
    min-height: 150px;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  body.home .fm-activity-card--featured {
    height: auto;
    min-height: 105px;
    box-sizing: border-box;
  }

  body.home .fm-activity-card--latest .fm-activity-card__row {
    height: auto;
    min-height: 122px;
    box-sizing: border-box;
  }
}
/* Desktop last-exchange section uses the available hero-copy width. */
@media (min-width: 768px) {
  body.home .fm-hero__activity {
    max-width: none;
  }
}
/* Desktop hero content begins after the overlay header plus the design gutter. */
@media (min-width: 768px) {
  .fm-hero__inner {
    padding-top: calc(var(--fm-header-height) + clamp(22px, 2.15vw, 50px));
    padding-bottom: clamp(22px, 2.15vw, 50px);
  }
}
/* Specificity win for the home template’s existing hero rule. */
@media (min-width: 768px) {
  body.home .fm-hero__inner {
    padding-top: calc(var(--fm-header-height) + clamp(22px, 2.15vw, 50px));
    padding-bottom: clamp(16px, 1.15vw, 20px);
  }
}
/* Desktop calculator parent track: release the 360px hero-column constraint. */
@media (min-width: 768px) {
  body.home .fm-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(450px, 450px) !important;
  }

  body.home .fm-calculator-card {
    width: 450px !important;
    max-width: 450px !important;
    min-width: 450px;
  }
}
/* Use the supplied review artwork in the featured last-exchange card. */
body.home .fm-activity-card__avatar {
  display: block;
  object-fit: cover;
  overflow: hidden;
}
/* Responsive last-exchange card proportions. */
@media (min-width: 768px) {
  body.home .fm-hero__activity {
    width: 100%;
    max-width: none;
    gap: 12px;
    align-items: stretch;
  }

  body.home .fm-activity-card--featured {
    flex: 0 1 clamp(165px, 14.5vw, 200px);
    width: clamp(165px, 14.5vw, 200px);
    height: clamp(152px, 10.99vw, 152px);
    min-height: clamp(152px, 10.99vw, 152px);
    box-sizing: border-box;
  }

  body.home .fm-activity-card--latest {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: clamp(152px, 10.85vw, 152px);
  }

  body.home .fm-activity-card--latest .fm-activity-card__row {
    flex: 1 1 clamp(152px, 10.55vw, 152px);
    width: auto;
    height: clamp(152px, 10.85vw, 152px);
    min-height: clamp(152px, 10.85vw, 152px);
    box-sizing: border-box;
  }
}

@media (min-width: 1280px) {
  body.home .fm-activity-card--featured {
    flex-basis: 200px;
    width: 200px;
    height: 150px;
    min-height: 150px;
  }

  body.home .fm-activity-card--latest {
    flex: 0 0 300px;
    width: 300px;
    height: 148px;
  }

  body.home .fm-activity-card--latest .fm-activity-card__row {
    flex: 0 0 145px;
    width: 145px;
    height: 148px;
    min-height: 148px;
  }
}

@media (max-width: 767px) {
  body.home .fm-hero__activity {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  body.home .fm-activity-card--featured {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    flex: none;
  }

  body.home .fm-activity-card--latest {
    grid-column: 1 / -1;
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px;
    flex: none;
  }

  body.home .fm-activity-card--latest .fm-activity-card__row {
    width: auto;
    min-width: 0;
    min-height: 122px;
  }
}
/* Keep the featured activity CTA consistently sized and centered. */
body.home .fm-activity-card__button {
  display: flex;
  width: 100%;
  height: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}
/* Last-exchange metadata typography. */
body.home .fm-activity-card__date,
body.home .fm-activity-card__eyebrow {
  font-size: 12px;
  line-height: 150%;
}

body.home .fm-hero__status {
  margin-bottom: 12px;
}
/* Use the supplied purple status SVG at the requested size if operator is online and red one when offline. */
body.home .fm-hero__status::before {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #26a17b;
    box-shadow: 0 0 10px rgba(38, 161, 123, 0.9);
  content: '';
}
body.home .fm-hero__status.is-offline::before {
  background-image: url(../images/exfmpro-status-yellowdot.svg);
}

/* Featured activity card surface from the supplied Figma reference. */
body.home .fm-activity-card.fm-activity-card--featured {
  background: var(--fm-activity-feature-gradient);
  backdrop-filter: blur(var(--fm-blur-feature-card));
  -webkit-backdrop-filter: blur(var(--fm-blur-feature-card));
}

/* Featured-card geometry from the supplied Figma reference. */
body.home .fm-activity-card.fm-activity-card--featured {
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 16px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
}

body.home
  .fm-activity-card.fm-activity-card--featured
  .fm-activity-card__avatars {
  min-height: 24px;
  margin-bottom: 10px;
}

body.home
  .fm-activity-card.fm-activity-card--featured
  .fm-activity-card__avatar {
  width: 24px;
  height: 24px;
  border-color: transparent;
}

body.home
  .fm-activity-card.fm-activity-card--featured
  .fm-activity-card__featured-title {
  font-size: 16px;
  line-height: 110%;
}

body.home
  .fm-activity-card.fm-activity-card--featured
  .fm-activity-card__button {
  margin-top: 6px;
  padding: 0;
  border-radius: 10px;
}

@media (max-width: 767px) {
  body.home
    .fm-activity-card.fm-activity-card--featured
    .fm-activity-card__featured-title {
    font-size: 15px;
    line-height: 110%;
  }
}

/* Responsive status-to-title spacing. */
@media (min-width: 768px) {
  body.home .fm-hero__status {
    margin-bottom: 24px;
  }
}

@media (max-width: 767px) {
  body.home .fm-hero__status {
    margin-bottom: 12px;
  }
}

/* Mobile background fills the complete, content-driven hero height. */
@media (max-width: 767px) {
  body.home .fm-hero__background,
  body.home .fm-hero__background picture,
  body.home .fm-hero__background picture img {
    width: 100%;
    height: 100%;
  }
}

/* Last-exchange transfer arrow uses the supplied Figma SVG artwork. */
body.home .fm-activity-card__arrow {
  width: 40px;
  height: 40px;
  background: transparent url('../images/exfmpro_right-arrow-lastexchange.svg')
    center / contain no-repeat !important;
  font-size: 0;
  margin-left: -4px;
}
@media (max-width: 767px) {
  body.home .fm-activity-card__arrow {
    margin-left: 0;
  }
}

/* Mobile hero gutters and header-to-status rhythm. */
@media (max-width: 767px) {
  body.home .fm-hero > .fm-hero__inner {
    width: 100% !important;
    max-width: none !important;
    padding: 60px 20px 20px !important;
    box-sizing: border-box;
  }

  body.home .fm-hero__status {
    justify-self: start;
    width: max-content;
    max-width: 100%;
    margin-bottom: 12px;
  }
}

/* Reserve 60px above the header and 60px below it before hero status. */
@media (max-width: 767px) {
  body.home .fm-hero > .fm-hero__inner {
    padding-top: 160px !important;
  }
}

/* Mobile featured card: avatars and review label share the top row. */
@media (max-width: 767px) {
  body.home .fm-activity-card.fm-activity-card--featured {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 42px;
    column-gap: 12px;
    align-items: center;
  }

  body.home
    .fm-activity-card.fm-activity-card--featured
    .fm-activity-card__avatars {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 16px;
  }

  body.home
    .fm-activity-card.fm-activity-card--featured
    .fm-activity-card__featured-title {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 16px;
  }

  body.home
    .fm-activity-card.fm-activity-card--featured
    .fm-activity-card__button {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
  }
}

/* Mobile hero background uses the Figma gradient instead of the WebP artwork. */
@media (max-width: 767px) {
  body.home .fm-hero__background {
    background: linear-gradient(
      355.73deg,
      #000 0%,
      #192029 15%,
      #57758f 30%,
      #192029 35%,
      #000 90%
    );
    -webkit-backdrop-filter: blur(121.32px);
  }

  body.home .fm-hero__background picture {
    display: none !important;
  }
}

/* Last-exchange currency-card layout: scoped to the two right-hand cards only. */
@media (min-width: 768px) {
  body.home .fm-activity-card--latest .fm-activity-card__row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 16px 20px;
    border-radius: 20px;
    overflow: visible;
  }

  body.home .fm-activity-card--latest .fm-activity-card__row--give {
    text-align: left;
  }

  body.home .fm-activity-card--latest .fm-activity-card__row--get {
    text-align: right;
  }

  body.home .fm-activity-card--latest .fm-activity-card__eyebrow,
  body.home .fm-activity-card--latest .fm-activity-card__date {
    position: static;
    display: block;
    width: 100%;
    margin: 0;
    line-height: 150%;
    min-inline-size: max-content;
  }

  body.home .fm-activity-card--latest .fm-activity-card__date {
    text-align: right;
  }

  body.home .fm-activity-card--latest .fm-activity-card__coin {
    display: flex;
    width: 100%;
    min-width: 0;
    margin-top: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0px;
    font-size: 14px;
    line-height: 110%;
  }

  body.home
    .fm-activity-card--latest
    .fm-activity-card__row--get
    .fm-activity-card__coin {
    align-items: flex-end;
    text-align: right;
  }

  body.home .fm-activity-card--latest .fm-activity-card__coin img {
    display: block;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin-bottom: 8px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #293543;
    object-fit: contain;
  }

  body.home
    .fm-activity-card--latest
    .fm-activity-card__coin--fallback::before {
    width: 28px;
    height: 28px;
    min-width: 28px;
    margin: 12px;
    box-sizing: border-box;
    border-radius: 50%;
    box-shadow: 0 0 0 12px #293543;
  }

  body.home .fm-activity-card--latest .fm-activity-card__amount,
  body.home .fm-activity-card--latest .fm-activity-card__type {
    display: block;
    width: 100%;
    margin: 0;
  }

  body.home .fm-activity-card--latest .fm-activity-card__amount {
    font-size: 14px;
    line-height: 110%;
  }

  body.home .fm-activity-card--latest .fm-activity-card__type {
    font-size: 14px;
    line-height: 110%;
  }
}

@media (max-width: 767px) {
  body.home .fm-activity-card--latest .fm-activity-card__row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 16px 20px;
    border-radius: 20px;
    overflow: visible;
  }

  body.home .fm-activity-card--latest .fm-activity-card__eyebrow,
  body.home .fm-activity-card--latest .fm-activity-card__date {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    line-height: 150%;
  }

  body.home .fm-activity-card--latest .fm-activity-card__date {
    text-align: right;
  }

  body.home .fm-activity-card--latest .fm-activity-card__coin {
    display: flex;
    width: 100%;
    min-width: 0;
    margin-top: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0px;
    font-size: 14px;
    line-height: 110%;
  }

  body.home
    .fm-activity-card--latest
    .fm-activity-card__row--get
    .fm-activity-card__coin {
    align-items: flex-end;
    text-align: right;
  }

  body.home .fm-activity-card--latest .fm-activity-card__coin img {
    display: block;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    margin-bottom: 8px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #293543;
    object-fit: contain;
  }

  body.home
    .fm-activity-card--latest
    .fm-activity-card__coin--fallback::before {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin: 10px;
    box-sizing: border-box;
    border-radius: 50%;
    box-shadow: 0 0 0 10px #293543;
  }

  body.home .fm-activity-card--latest .fm-activity-card__amount,
  body.home .fm-activity-card--latest .fm-activity-card__type {
    display: block;
    width: 100%;
    margin: 0;
  }

  body.home .fm-activity-card--latest .fm-activity-card__amount,
  body.home .fm-activity-card--latest .fm-activity-card__type {
    font-size: 14px;
    line-height: 110%;
  }
}

/* Dim only the decimal portion of dynamic last-exchange amounts. */
body.home .fm-activity-card--latest .fm-activity-card__amount-decimal {
  color: #6e6c7a;
}
/* Dim the time portion of last-exchange dates. */
body.home .fm-activity-card--latest .fm-activity-card__date-time {
  color: #6e6c7a;
}

/* Last-exchange amount typography uses the Interface/S design token at every breakpoint. */
body.home .fm-activity-card--latest .fm-activity-card__amount,
body.home .fm-activity-card--latest .fm-activity-card__amount-decimal {
  font: var(--fm-type-interface-s);
  letter-spacing: var(--fm-type-interface-s-letter-spacing);
}
