/* MBEC exchange information hub — market structure inspired by public exchange homepages */
.exchange-hub {
  position: relative;
  overflow: hidden;
  margin-top: 64px;
  margin-bottom: 88px;
  padding: 34px;
  border: 1px solid rgba(200, 154, 72, .26);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(12, 35, 31, .96), rgba(10, 27, 25, .98)),
    var(--amman-ink);
  box-shadow: inset 0 1px 0 rgba(233, 222, 198, .05), 0 26px 56px rgba(0, 0, 0, .18);
}

.exchange-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(233, 222, 198, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 222, 198, .035) 1px, transparent 1px),
    radial-gradient(circle at 87% 16%, rgba(200, 154, 72, .13), transparent 19%);
  background-size: 38px 38px, 38px 38px, auto;
}

.exchange-hub > * { position: relative; z-index: 1; }

.exchange-hub-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 25px;
}

.exchange-hub-head h2 {
  margin: 8px 0 8px;
  color: var(--amman-limestone);
  font-family: var(--arabic-display);
  font-size: clamp(26px, 3vw, 39px);
  line-height: 1.34;
}

.exchange-hub-head h2 span { color: var(--amman-sandstone); }

.exchange-hub-head > div:first-child > p:last-child {
  max-width: 62ch;
  margin: 0;
  color: #becbc0;
  font-family: var(--arabic);
  font-size: 12px;
  line-height: 1.9;
}

.market-source-note {
  flex: 0 0 min(300px, 30%);
  padding: 13px 15px;
  border: 1px solid rgba(200, 154, 72, .2);
  border-radius: 10px;
  background: rgba(6, 23, 21, .52);
}

.market-source-note span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dfe8de;
  font-family: var(--arabic);
  font-size: 11px;
}

.market-source-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amman-emerald);
  box-shadow: 0 0 12px rgba(21, 132, 100, .65);
}

.market-source-note small {
  display: block;
  margin-top: 5px;
  color: #98a99c;
  font-family: var(--arabic);
  font-size: 9px;
  line-height: 1.6;
}

.market-observer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid rgba(233, 222, 198, .1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(6, 22, 20, .46);
}

.market-observer-card {
  min-height: 116px;
  padding: 16px 18px;
  border-left: 1px solid rgba(233, 222, 198, .1);
  background: linear-gradient(145deg, rgba(16, 50, 43, .31), rgba(10, 27, 25, .2));
}

.market-observer-card:last-child { border-left: 0; }

.market-observer-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pair-symbol {
  direction: ltr;
  unicode-bidi: isolate;
  color: #e8dfca;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.market-observer-card em {
  color: #82bda2;
  font-family: var(--arabic);
  font-size: 9px;
  font-style: normal;
}

.market-observer-card strong {
  display: block;
  margin-top: 9px;
  color: var(--amman-sandstone);
  font-family: Inter, sans-serif;
  font-size: 28px;
  letter-spacing: .04em;
}

.market-observer-card small {
  display: block;
  margin-top: 5px;
  color: #91a297;
  font-family: var(--arabic);
  font-size: 9px;
}

.exchange-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.exchange-product-card {
  min-height: 172px;
  padding: 17px;
  border: 1px solid rgba(233, 222, 198, .1);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(21, 57, 49, .44), rgba(8, 26, 24, .64));
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.exchange-product-card:hover {
  border-color: rgba(200, 154, 72, .38);
  background: linear-gradient(155deg, rgba(29, 69, 58, .56), rgba(8, 26, 24, .76));
  transform: translateY(-3px);
}

.exchange-product-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(200, 154, 72, .37);
  border-radius: 9px;
  color: var(--amman-sandstone);
  font-family: Inter, sans-serif;
  font-size: 17px;
}

.exchange-product-card p {
  margin: 13px 0 4px;
  color: #89bd9f;
  font-family: var(--arabic);
  font-size: 10px;
}

.exchange-product-card h3 {
  margin: 0;
  color: #e7e0cd;
  font-family: var(--arabic);
  font-size: 16px;
  line-height: 1.55;
}

.exchange-product-card small {
  display: block;
  margin-top: 8px;
  color: #a5b3a8;
  font-family: var(--arabic);
  font-size: 9px;
  line-height: 1.65;
}

.exchange-service-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid rgba(233, 222, 198, .1);
  padding-top: 16px;
}

.exchange-service-line > span {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 8px;
  align-items: center;
  padding-inline: 14px;
  border-left: 1px solid rgba(233, 222, 198, .1);
}

.exchange-service-line > span:last-child { border-left: 0; }

.exchange-service-line i {
  display: grid;
  grid-row: span 2;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(21, 132, 100, .15);
  color: #7fc5a7;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-style: normal;
}

.exchange-service-line b {
  color: #dfe7dc;
  font-family: var(--arabic);
  font-size: 10px;
}

.exchange-service-line small {
  color: #94a69a;
  font-family: var(--arabic);
  font-size: 8px;
}

@media (max-width: 760px) {
  .exchange-hub {
    margin-top: 38px;
    margin-bottom: 60px;
    padding: 22px 16px;
    border-radius: 14px;
  }

  .exchange-hub-head {
    display: block;
    margin-bottom: 18px;
  }

  .exchange-hub-head h2 { font-size: 26px; }
  .exchange-hub-head > div:first-child > p:last-child { font-size: 11px; }

  .market-source-note {
    margin-top: 15px;
  }

  .market-observer {
    grid-template-columns: 1fr;
  }

  .market-observer-card {
    min-height: 96px;
    border-left: 0;
    border-bottom: 1px solid rgba(233, 222, 198, .1);
  }

  .market-observer-card:last-child { border-bottom: 0; }
  .market-observer-card strong { font-size: 24px; }

  .exchange-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .exchange-product-card {
    min-height: 165px;
    padding: 14px;
  }

  .exchange-product-card h3 { font-size: 14px; }
  .exchange-product-card small { font-size: 8.5px; }

  .exchange-service-line {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .exchange-service-line > span {
    padding: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exchange-product-card { transition: none; }
  .exchange-product-card:hover { transform: none; }
}


/* Account portfolio and product-journey context */
.exchange-account-console {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: 12px;
  margin-top: 16px;
}

.portfolio-panel,
.platform-journey-panel {
  min-height: 282px;
  padding: 20px;
  border: 1px solid rgba(233, 222, 198, .1);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(11, 40, 35, .66), rgba(7, 25, 23, .78));
}

.portfolio-panel > header,
.platform-journey-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portfolio-panel > header span,
.platform-journey-panel > header span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e7e0cd;
  font-family: var(--arabic);
  font-size: 13px;
  font-weight: 700;
}

.portfolio-panel > header i,
.platform-journey-panel > header i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(200, 154, 72, .38);
  border-radius: 7px;
  color: var(--amman-sandstone);
  font-family: Inter, sans-serif;
  font-style: normal;
}

.portfolio-panel > header small,
.platform-journey-panel > header small {
  color: #88ad98;
  font-family: var(--arabic);
  font-size: 9px;
}

.portfolio-balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(233, 222, 198, .1);
  direction: ltr;
  unicode-bidi: isolate;
}

.portfolio-balance strong {
  color: var(--amman-sandstone);
  font-family: Inter, sans-serif;
  font-size: 38px;
  letter-spacing: .04em;
}

.portfolio-balance span {
  color: #dbe4d9;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.portfolio-panel > p {
  margin: 12px 0 13px;
  color: #aabbb0;
  font-family: var(--arabic);
  font-size: 9px;
  line-height: 1.75;
}

.account-ledger {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-ledger li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(233, 222, 198, .07);
}

.account-ledger span {
  color: #dce5db;
  font-family: var(--arabic);
  font-size: 10px;
}

.account-ledger b {
  color: #84c9a6;
  font-family: var(--arabic);
  font-size: 10px;
  font-weight: 700;
}

.account-ledger li:first-child b {
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--amman-sandstone);
  font-family: Inter, sans-serif;
}

.account-ledger em {
  grid-column: 1 / -1;
  color: #83958b;
  font-family: var(--arabic);
  font-size: 8px;
  font-style: normal;
}

.platform-tabs {
  display: flex;
  gap: 6px;
  margin-top: 17px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(233, 222, 198, .1);
  overflow: hidden;
}

.platform-tabs span {
  flex: 1 1 0;
  padding: 6px 4px;
  border-radius: 6px;
  background: rgba(233, 222, 198, .045);
  color: #9bb5a5;
  font-family: var(--arabic);
  font-size: 8px;
  text-align: center;
}

.platform-tabs span:first-child {
  background: rgba(21, 132, 100, .18);
  color: #a8dcc1;
}

.platform-journey-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.platform-journey-list li {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 10px;
  align-items: center;
}

.platform-journey-list i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(200, 154, 72, .1);
  color: var(--amman-sandstone);
  font-family: Inter, sans-serif;
  font-size: 9px;
  font-style: normal;
}

.platform-journey-list b,
.platform-journey-list small {
  display: block;
  font-family: var(--arabic);
}

.platform-journey-list b {
  color: #dfe8dd;
  font-size: 10px;
}

.platform-journey-list small {
  margin-top: 2px;
  color: #90a398;
  font-size: 8px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .exchange-account-console {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .portfolio-panel,
  .platform-journey-panel {
    min-height: 0;
    padding: 16px;
  }

  .portfolio-balance strong { font-size: 32px; }
}
