/* 前台专用：横幅、筛选、商家卡片与移动端断点。 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
.directory-page {
  background: #f7f8fc;
  color: #1e2b43;
}
.directory-page header {
  padding: 0 max(5%, calc((100vw - 1280px) / 2));
  height: 82px;
  gap: 48px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffffed;
  backdrop-filter: blur(16px);
}
.directory-page main {
  max-width: 1408px;
  padding: 28px 64px 60px;
}
.directory-page .brand {
  font-size: 22px;
}
.directory-page nav button {
  font-size: 13px;
}
.directory-page .tools {
  gap: 22px;
}
.directory-page .tools button {
  font-size: 12px;
}
.directory-page #lang {
  border: 1px solid #e3e8f2;
  padding: 8px 12px;
  border-radius: 7px;
}
.directory-page .front-hero {
  min-height: 390px;
  border-radius: 20px;
  padding: 48px;
  background:
    radial-gradient(ellipse at 80% 45%, #dae8ff 0, transparent 45%),
    linear-gradient(112deg, #eff4ff, #e8efff);
  border: 1px solid #e1e8f6;
  position: relative;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 67%;
}
.directory-page .hero .eyebrow {
  font-size: 9px;
  letter-spacing: 1.9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tiny-dot {
  height: 5px;
  width: 5px;
  background: #3d6cef;
  display: inline-block;
  border-radius: 50%;
}
.directory-page .hero h1 {
  font-size: 42px;
  letter-spacing: -1.6px;
  line-height: 1.4;
  max-width: 100%;
  margin: 21px 0 15px;
  font-weight: 700;
}
.directory-page .hero h1 span {
  color: #315be8;
}
.directory-page .hero p {
  max-width: 100%;
  font-size: 13px;
  line-height: 1.9;
  color: #73839b;
  margin: 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
}
.hero-actions a {
  text-decoration: none;
  padding: 12px 21px;
  font-size: 12px;
  box-shadow: 0 5px 12px #315be824;
}
.hero-actions a span {
  margin-left: 22px;
}
.hero-how {
  font-size: 12px;
  color: #5b6f91;
  padding: 10px 0;
}
.hero-how span {
  margin-left: 10px;
}
.directory-page .benefits {
  gap: 20px;
  margin-top: 27px;
  max-width: 100%;
  font-size: 10px;
}
.directory-page .benefits span {
  border: 0;
  background: none;
  padding: 0;
  color: #7b8da9;
}
.directory-page .hero .hero-visual {
  width: 39%;
  height: 100%;
  right: 2%;
  z-index: 0;
  opacity: 1;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  max-height: 94%;
  filter: drop-shadow(0 20px 20px #4a7ac313);
}
.visual-glow {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 17%;
  bottom: 12%;
  border-radius: 50%;
  background: #cfddff44;
  border: 1px solid #bdcff94d;
}
.visual-caption {
  position: absolute;
  bottom: 30px;
  text-align: center;
  left: 0;
  right: 0;
  letter-spacing: 2px;
  font-size: 7px;
  color: #91a5c7;
}
.market-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5eaf3;
  padding: 26px 24px;
  margin-bottom: 42px;
  gap: 20px;
  font-size: 11px;
  color: #8994a6;
}
.market-summary > span {
  color: #5c6c84;
  font-weight: 500;
}
.market-summary > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.market-summary b {
  font-size: 21px;
  color: #273855;
  font-weight: 600;
}
.market-summary i {
  height: 6px;
  width: 6px;
  background: #28b68b;
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.directory-page .sectionhead {
  margin: 0 0 28px;
  align-items: end;
}
.directory-page .sectionhead .eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.directory-page h2 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.directory-page .sub {
  font-size: 12px;
  margin-top: 9px;
  color: #8a96a9;
}
.sample-label {
  font-size: 10px;
  color: #94a0b3;
  border: 1px solid #e3e8f1;
  padding: 6px 10px;
  border-radius: 5px;
}
.market-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.coin-tabs {
  display: flex;
  gap: 8px;
}
.coin-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e6eaf3;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 11px;
  color: #74829a;
  background: white;
  transition: 0.15s;
}
.coin-tabs button.selected {
  color: #315be8;
  border-color: #c9d8ff;
  background: #edf2ff;
  font-weight: 600;
  box-shadow: 0 2px 5px #315be807;
}
.coin-symbol {
  height: 17px;
  width: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: white;
}
.usdt,
.asset-usdt {
  background: #29ad91;
}
.usdc,
.asset-usdc {
  background: #3980dc;
}
.btc,
.asset-btc {
  background: #eea344;
}
.eth,
.asset-eth {
  background: #7181b5;
}
/* 现金类资产：ASSET_META 里 coin = "CASH" 的三项
   （CASH.USD / CASH.Zimbabwe Gold / CASH.South African Rand）。
   .asset-icon 只有白色文字，没有背景色就会白底白字看不见。 */
.asset-cash {
  background: #17a07b;
}
.online-filter {
  display: flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
  color: #7d8ba1;
}
.online-filter input {
  width: 14px;
  height: 14px;
  accent-color: #315be8;
}
.directory-page .filters {
  gap: 16px;
  padding: 21px 22px;
  background: white;
  border: 1px solid #e5eaf3;
  box-shadow: none;
  border-radius: 12px;
  margin: 0;
}
.directory-page .filters .field {
  flex: 1;
  gap: 8px;
  min-width: 0;
}
.directory-page .filters .search {
  flex: 1.6;
}
.directory-page .filters label {
  font-size: 10px;
  color: #8996ab;
}
.directory-page .filters input,
.directory-page .filters select {
  padding: 11px 10px;
  font-size: 11px;
  border-radius: 6px;
  border-color: #e5eaf3;
  height: 40px;
  background: #fcfdff;
  min-width: 0;
}
.searchbox {
  position: relative;
}
.searchbox > span {
  position: absolute;
  left: 12px;
  top: 9px;
  color: #91a0b5;
  font-size: 19px;
  line-height: 20px;
}
.directory-page .searchbox input {
  padding-left: 34px;
}
.reset-filter {
  font-size: 11px;
  white-space: nowrap;
  color: #8190a6;
  height: 40px;
  padding: 0 3px;
}
.resultsbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8997aa;
  margin: 22px 2px 16px;
}
.resultsbar b {
  color: #315be8;
  font-weight: 600;
}
.resultsbar select {
  border: 0;
  background: transparent;
  width: auto;
  padding: 5px 0 5px 10px;
  color: #71819a;
  font-size: 10px;
}
.merchant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.merchant-card {
  background: #fff;
  border: 1px solid #e4eaf4;
  border-radius: 14px;
  padding: 23px 21px 19px;
  box-shadow: 0 3px 12px #233d6603;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  min-width: 0;
}
.merchant-card:hover {
  border-color: #cbd8f1;
  box-shadow: 0 10px 28px #294d890b;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  margin-bottom: 24px;
}
/* 在线状态 + 工作时间的容器：紧贴在一起，窄屏时自动换行 */
.card-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
/* 工作时间：与 .status 同一套胶囊样式，颜色用中性的灰 */
.hours {
  background: #f1f3f7;
  border-radius: 20px;
  padding: 6px 9px;
  font-size: 10px;
  color: #65758e;
  white-space: nowrap;
}
.merchant-card .merchant {
  gap: 10px;
  min-width: 0;
}
.merchant-card .merchant > div:last-child {
  min-width: 0;
}
.merchant-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 1px 0 0;
  overflow-wrap: anywhere;
}
.merchant-card .avatar {
  height: 40px;
  width: 40px;
  border: 0;
  box-shadow: none;
  font-size: 17px;
  border-radius: 12px;
}
.merchant-card .tagline {
  font-size: 9px;
  color: #8d9ab0;
  margin-top: 6px;
  line-height: 1.6;
}
.merchant-card .status {
  padding: 5px 7px;
  flex-shrink: 0;
  font-size: 9px;
  margin-top: 1px;
}
.stock-heading {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #93a0b4;
  border-bottom: 1px solid #edf0f6;
  padding-bottom: 11px;
}
.stock-heading > span:first-child {
  color: #687994;
  font-weight: 500;
}
.stock-list {
  height: 190px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #e3e9f2 transparent;
  padding-right: 2px;
}
.stock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f3f8;
  min-height: 60px;
}
.stock-row:last-child {
  border: 0;
}
.asset-icon {
  height: 25px;
  width: 25px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}
.stock-asset {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stock-asset strong {
  font-size: 11px;
  font-weight: 600;
  color: #465975;
}
.stock-asset > span {
  font-size: 8px;
  color: #96a2b6;
  white-space: nowrap;
}
.stock-asset i {
  font-style: normal;
  color: #9b87bd;
}
.stock-value {
  margin-left: auto;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #354862;
  letter-spacing: 0.1px;
}
.stock-value small {
  display: block;
  margin-top: 5px;
  color: #9ba7b9;
  font-size: 7px;
  font-weight: 400;
}
.card-pay {
  padding-top: 16px;
  border-top: 1px solid #edf0f6;
  margin-top: 9px;
  min-height: 74px;
}
.card-pay > span {
  font-size: 9px;
  color: #93a0b4;
}
.card-pay > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.payment-pill {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  color: #75839a;
  background: #f5f7fb;
  padding: 5px 7px;
  border: 1px solid #edf0f6;
  border-radius: 4px;
}
.payment-pill i {
  font-style: normal;
  color: #8b9bb6;
  font-size: 9px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #edf0f6;
  margin-top: 14px;
  padding-top: 16px;
}
.channel-hints {
  font-size: 8px;
  display: flex;
  gap: 5px;
  flex-direction: column;
  color: #9ca8ba;
}
.merchant-card .contactbtn {
  font-size: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.directory-end {
  text-align: center;
  color: #a4afbf;
  font-size: 9px;
  margin-top: 27px;
  letter-spacing: 0.3px;
}
.directory-end:before,
.directory-end:after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: #e1e7f0;
  vertical-align: middle;
  margin: 0 12px;
}
.platform-note {
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  padding: 22px 25px;
  margin-top: 45px;
  background: #eef2f9;
}
.note-icon {
  height: 33px;
  width: 33px;
  border-radius: 10px;
  background: #e1e8f5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #7a91b7;
  font-size: 18px;
}
.platform-note h3 {
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #617593;
}
.platform-note p {
  font-size: 10px;
  line-height: 1.8;
  color: #8d9bb0;
  margin: 0;
  max-width: 850px;
}
.platform-note button {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
  color: #6983b2;
  padding: 10px;
}
.directory-page footer {
  padding: 26px max(5%, calc((100vw - 1280px) / 2));
  font-size: 10px;
  background: #fff;
  color: #a3adbd;
}
.directory-page footer b {
  font-size: 13px;
  color: #637694;
}
.merchant-grid .empty {
  grid-column: 1/-1;
  background: white;
  border: 1px dashed #dbe3f1;
  border-radius: 12px;
  padding: 55px 20px;
}
.empty-icon {
  font-size: 38px;
  color: #a2b5d6;
}
.empty h3 {
  font-size: 16px;
  color: #617592;
  margin: 15px 0 8px;
}
.empty p {
  font-size: 12px;
}
.empty .secondary {
  font-size: 11px;
}
.directory-page dialog {
  padding: 28px;
}
.directory-page button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
@media (min-width: 1600px) {
  .directory-page main {
    max-width: 1480px;
  }
  .directory-page .hero h1 {
    font-size: 46px;
  }
  .merchant-card {
    padding: 25px;
  }
  .stock-asset > span {
    font-size: 9px;
  }
  .stock-value {
    font-size: 14px;
  }
  .merchant-card h3 {
    font-size: 15px;
  }
}
@media (max-width: 1150px) {
  .directory-page main {
    padding-left: 5%;
    padding-right: 5%;
  }
  .directory-page .hero h1 {
    font-size: 36px;
  }
  .directory-page .front-hero {
    padding: 35px;
    min-height: 360px;
  }
  .merchant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .merchant-card {
    padding: 23px;
  }
  .merchant-card h3 {
    font-size: 15px;
  }
  .stock-asset > span {
    font-size: 9px;
  }
  .stock-value {
    font-size: 14px;
  }
  .directory-page .filters {
    gap: 10px;
    padding: 17px;
  }
  .directory-page .filters .search {
    flex: 1.3;
  }
  .directory-page .hero .hero-visual {
    width: 39%;
    right: 0;
  }
}
@media (max-width: 800px) {
  .directory-page header {
    position: sticky;
    min-height: 72px;
    height: auto;
    gap: 15px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: nowrap;
  }
  .directory-page nav {
    display: none;
  }
  .directory-page .brand {
    font-size: 20px;
  }
  .directory-page .brand span {
    font-size: 7px;
    letter-spacing: 2px;
  }
  .directory-page .tools {
    gap: 15px;
  }
  .directory-page .tools button {
    font-size: 10px;
  }
  .directory-page .front-hero {
    padding: 32px;
    min-height: 350px;
  }
  .directory-page .hero h1 {
    font-size: 32px;
  }
  .hero-copy {
    max-width: 76%;
  }
  .directory-page .hero .hero-visual {
    width: 38%;
    right: -4%;
    opacity: 0.6;
  }
  .directory-page .hero p {
    font-size: 11px;
    max-width: 100%;
  }
  .directory-page .benefits {
    font-size: 9px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .directory-page .benefits span {
    font-size: 9px;
  }
  .visual-caption {
    display: none;
  }
  .market-summary {
    padding: 22px 5px;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-size: 10px;
  }
  .market-summary > span {
    display: none;
  }
  .market-summary b {
    font-size: 18px;
  }
  .directory-page .filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .directory-page .filters .search {
    grid-column: 1/-1;
  }
  .reset-filter {
    grid-column: 3;
    text-align: right;
    height: 20px;
  }
  .directory-page .sectionhead {
    gap: 15px;
  }
  .sample-label {
    font-size: 9px;
  }
  .coin-tabs {
    gap: 6px;
  }
  .coin-tabs button {
    padding: 9px 11px;
    font-size: 10px;
  }
  .online-filter {
    font-size: 10px;
  }
  .merchant-grid {
    gap: 14px;
  }
  .merchant-card {
    padding: 19px 17px;
  }
  .merchant-card .status {
    font-size: 8px;
  }
  .merchant-card h3 {
    font-size: 13px;
  }
  .merchant-card .tagline {
    font-size: 8px;
  }
  .merchant-card .avatar {
    width: 35px;
    height: 35px;
    font-size: 15px;
  }
  .card-head {
    gap: 5px;
  }
  .merchant-card .merchant {
    gap: 8px;
  }
  .merchant-card .contactbtn {
    gap: 12px;
    font-size: 9px;
  }
  .stock-value {
    font-size: 12px;
  }
  .stock-asset > span {
    font-size: 8px;
  }
  .stock-icon {
    height: 22px;
    width: 22px;
  }
  .platform-note {
    padding: 20px;
    align-items: start;
  }
  .platform-note button {
    display: none;
  }
  .directory-page footer {
    gap: 15px;
  }
}
@media (max-width: 767px) {
  .directory-page header {
    gap: 10px;
  }
  .directory-page .brand {
    font-size: 18px;
  }
  .directory-page .brand i {
    border-radius: 8px;
    padding: 3px 7px;
  }
  .directory-page .brand span {
    display: none;
  }
  .directory-page .tools {
    gap: 10px;
  }
  .directory-page #lang {
    padding: 6px 9px;
  }
  .directory-page main {
    padding-top: 18px;
    padding-bottom: 32px;
  }
  .directory-page .front-hero {
    padding: 27px 23px;
    min-height: 0;
    border-radius: 15px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .directory-page .hero .hero-visual {
    display: none;
  }
  .directory-page .hero h1 {
    font-size: 32px;
    line-height: 1.35;
    letter-spacing: -1px;
    margin: 19px 0 13px;
  }
  .directory-page .hero p {
    font-size: 11px;
    line-height: 1.9;
  }
  .directory-page .hero .eyebrow {
    font-size: 7px;
    letter-spacing: 1.3px;
  }
  .hero-actions {
    gap: 20px;
    margin-top: 22px;
  }
  .hero-actions a {
    font-size: 11px;
    padding: 11px 16px;
  }
  .hero-actions a span {
    margin-left: 16px;
  }
  .hero-how {
    font-size: 11px;
  }
  .directory-page .benefits {
    margin-top: 23px;
    gap: 16px;
  }
  .market-summary {
    padding: 20px 2px;
    font-size: 8px;
    gap: 9px;
    margin-bottom: 29px;
  }
  .market-summary > div {
    flex-direction: column;
    gap: 5px;
    align-items: start;
  }
  .market-summary b {
    font-size: 19px;
  }
  .directory-page .sectionhead {
    display: block;
    margin-bottom: 22px;
  }
  .directory-page h2 {
    font-size: 23px;
  }
  .directory-page .sectionhead .eyebrow {
    font-size: 7px;
  }
  .directory-page .sub {
    font-size: 11px;
  }
  .sample-label {
    display: inline-block;
    border: 0;
    padding: 0;
    margin-top: 12px;
    font-size: 9px;
  }
  .market-tools {
    display: block;
    margin-bottom: 15px;
  }
  .coin-tabs {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .coin-tabs button {
    padding: 9px 11px;
    white-space: nowrap;
    font-size: 10px;
    flex-shrink: 0;
  }
  .coin-symbol {
    height: 15px;
    width: 15px;
    font-size: 10px;
  }
  .online-filter {
    margin-top: 14px;
    justify-content: flex-end;
    font-size: 10px;
  }
  .directory-page .filters {
    padding: 15px;
    gap: 13px 10px;
    grid-template-columns: 1fr 1fr;
  }
  .directory-page .filters .search {
    grid-column: 1/-1;
  }
  .directory-page .filters .field:nth-child(4) {
    grid-column: 1;
  }
  .reset-filter {
    grid-column: 2;
    height: 40px;
    align-self: end;
    text-align: right;
    padding-right: 5px;
  }
  .resultsbar {
    margin: 18px 2px 13px;
    font-size: 10px;
  }
  .resultsbar select {
    font-size: 9px;
  }
  .merchant-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .merchant-card {
    padding: 22px;
  }
  .merchant-card .avatar {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .merchant-card .merchant {
    gap: 12px;
  }
  .merchant-card h3 {
    font-size: 16px;
  }
  .merchant-card .tagline {
    font-size: 10px;
  }
  .merchant-card .status {
    font-size: 10px;
    padding: 6px 9px;
  }
  .stock-heading {
    font-size: 10px;
  }
  .stock-list {
    height: auto;
    max-height: 300px;
  }
  .stock-row {
    padding: 13px 0;
    min-height: 63px;
    gap: 10px;
  }
  .stock-asset strong {
    font-size: 12px;
  }
  .stock-asset > span {
    font-size: 10px;
  }
  .stock-value {
    font-size: 15px;
  }
  .stock-value small {
    font-size: 8px;
  }
  .asset-icon {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  .card-pay > span {
    font-size: 10px;
  }
  .payment-pill {
    font-size: 10px;
    padding: 6px 8px;
  }
  .card-bottom {
    display: block;
    padding-top: 14px;
  }
  .channel-hints {
    flex-direction: row;
    font-size: 9px;
    gap: 10px;
    margin-bottom: 12px;
  }
  .merchant-card .contactbtn {
    width: 100%;
    font-size: 12px;
    padding: 13px 16px;
    justify-content: center;
    gap: 12px;
  }
  .platform-note {
    padding: 18px 15px;
    gap: 12px;
    margin-top: 30px;
  }
  .platform-note p {
    font-size: 9px;
  }
  .note-icon {
    width: 28px;
    height: 28px;
  }
  .directory-page footer {
    font-size: 9px;
  }
  .directory-page footer span:last-child {
    width: auto;
  }
  .directory-page dialog {
    padding: 22px;
  }
  .directory-page .modalhead h2 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
/* Readability and complete inventory */
.merchant-grid {
  align-items: stretch;
}
.merchant-card {
  display: flex;
  flex-direction: column;
}
.merchant-card h3 {
  font-size: 16px;
}
.merchant-card .tagline {
  font-size: 11px;
  color: #75859d;
}
.merchant-card .status {
  font-size: 10px;
}
.stock-heading {
  font-size: 11px;
  color: #7c8da6;
}
.stock-list {
  height: auto;
  min-height: 190px;
  overflow: visible;
  flex: 1;
}
.stock-asset strong {
  font-size: 13px;
}
.stock-asset > span {
  font-size: 10px;
  color: #7f8da3;
}
.stock-value {
  font-size: 15px;
}
.stock-value small {
  font-size: 9px;
  color: #8a98ae;
}
.stock-row {
  min-height: 64px;
}
.card-pay > span {
  font-size: 11px;
  color: #7c8da6;
}
.payment-pill {
  font-size: 11px;
  color: #64768f;
}
.payment-pill i {
  font-size: 11px;
}
.merchant-card .contactbtn {
  font-size: 12px;
  padding: 11px 15px;
}
.channel-hints {
  font-size: 10px;
  color: #8c9ab0;
}
.directory-page .filters label {
  font-size: 11px;
  color: #70829b;
}
.directory-page .filters input,
.directory-page .filters select {
  font-size: 12px;
}
.resultsbar {
  font-size: 12px;
}
.resultsbar select {
  font-size: 11px;
}
.coin-tabs button {
  font-size: 12px;
}
.online-filter {
  font-size: 12px;
}
.directory-page .sub {
  color: #74859d;
}
.platform-note p {
  font-size: 11px;
  color: #7587a2;
}
.platform-note h3 {
  font-size: 12px;
}
.directory-page .hero p {
  color: #607591;
  font-size: 14px;
}
.directory-page .front-hero {
  padding-top: 38px;
  padding-bottom: 38px;
  min-height: 360px;
}
.directory-page .hero h1 {
  margin-top: 17px;
}
.stock-asset {
  min-width: 0;
}
.stock-asset > span {
  white-space: normal;
  line-height: 1.5;
}
.stock-value {
  flex-shrink: 0;
}
@media (max-width: 800px) {
  .merchant-card h3 {
    font-size: 14px;
  }
  .merchant-card .tagline {
    font-size: 10px;
  }
  .stock-asset strong {
    font-size: 12px;
  }
  .stock-value {
    font-size: 14px;
  }
  .merchant-card .contactbtn {
    font-size: 11px;
  }
  .directory-page .hero p {
    font-size: 12px;
  }
  .directory-page .filters select,
  .directory-page .filters input {
    font-size: 12px;
  }
  .coin-tabs button {
    font-size: 11px;
  }
  .online-filter {
    font-size: 11px;
  }
  .card-head {
    flex-wrap: wrap;
  }
  .merchant-card .status {
    margin-left: 0;
  }
}
@media (max-width: 767px) {
  .directory-page .front-hero {
    padding: 27px 23px;
    min-height: 0;
  }
  .merchant-card h3 {
    font-size: 17px;
  }
  .merchant-card .tagline {
    font-size: 11px;
  }
  .stock-asset strong {
    font-size: 13px;
  }
  .stock-asset > span {
    font-size: 11px;
  }
  .stock-value {
    font-size: 16px;
  }
  .stock-list {
    max-height: none;
    min-height: 0;
  }
  .merchant-card .contactbtn {
    font-size: 13px;
    padding: 14px 16px;
  }
  .directory-page .hero h1 {
    font-size: 30px;
  }
  .directory-page .hero p {
    font-size: 12px;
  }
  .platform-note p {
    font-size: 10px;
  }
  .card-head {
    flex-wrap: nowrap;
  }
  .coin-tabs button {
    font-size: 10px;
    padding: 10px;
  }
  .stock-heading {
    font-size: 11px;
  }
}
@media (max-width: 767px) {
  .coin-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    padding-bottom: 0;
  }
  .coin-tabs button {
    padding: 10px 4px;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    min-width: 0;
  }
  .coin-symbol {
    height: 14px;
    width: 14px;
    font-size: 9px;
  }
}

.directory-page #marketplace {
  margin-top: 38px;
}
@media (max-width: 767px) {
  .directory-page #marketplace {
    margin-top: 28px;
  }
}

@media (max-width: 767px) {
  .directory-page main {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .directory-page header {
    padding-left: 16px;
    padding-right: 16px;
  }
  .merchant-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .directory-page .filters input,
  .directory-page .filters select {
    font-size: 16px;
    min-height: 44px;
  }
  .directory-page .filters .field {
    min-width: 0;
  }
  .directory-page .tools button {
    min-height: 36px;
  }
  .coin-tabs button {
    min-height: 40px;
  }
  .directory-page .hero h1 {
    font-size: clamp(28px, 5.6vw, 36px);
  }
  .merchant-card {
    width: 100%;
    min-width: 0;
  }
  .merchant-card .contactbtn {
    min-height: 46px;
  }
  .online-filter {
    min-height: 36px;
  }
  .stock-asset > span {
    overflow-wrap: anywhere;
  }
  .directory-page footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 359px) {
  .directory-page .brand {
    font-size: 16px;
  }
  .directory-page .tools {
    gap: 6px;
  }
  .directory-page .tools button {
    font-size: 9px;
  }
  .merchant-card {
    padding: 18px;
  }
  .merchant-card h3 {
    font-size: 15px;
  }
  .coin-tabs button {
    font-size: 9px;
  }
  .coin-symbol {
    width: 12px;
    height: 12px;
  }
  .card-head {
    gap: 6px;
  }
  .stock-value {
    font-size: 14px;
  }
}

#mobileAdmin {
  display: none;
}
@media (max-width: 800px) {
  .directory-page #mobileAdmin {
    display: block;
    color: #315be8;
  }
  .directory-page .tools {
    gap: 8px;
  }
}

.directory-page .search-submit {
  height: 40px;
  white-space: nowrap;
  align-self: end;
  font-size: 12px;
  padding: 0 20px;
  min-width: 76px;
}
.directory-page .filters {
  gap: 12px;
}
.directory-page .filters .search {
  flex: 1.5;
}
@media (max-width: 800px) {
  .directory-page .search-submit {
    grid-column: 2;
    grid-row: 3;
  }
  .directory-page .reset-filter {
    grid-column: 3;
    grid-row: 3;
    height: 40px;
  }
  .directory-page .filters {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 767px) {
  .directory-page .filters {
    grid-template-columns: 1fr 1fr;
  }
  .directory-page .filters .field:nth-child(4) {
    grid-column: 1/-1;
  }
  .directory-page .search-submit {
    grid-column: 1;
    grid-row: 4;
    height: 44px;
    min-height: 44px;
    width: 100%;
  }
  .directory-page .reset-filter {
    grid-column: 2;
    grid-row: 4;
    height: 44px;
    min-height: 44px;
    text-align: center;
    border: 1px solid #e0e7f2;
    border-radius: 6px;
  }
  .directory-page .market-tools {
    margin-bottom: 15px;
  }
}

/* 首页筛选栏改为「名称 + 城市 + 详细地址 + 按钮」。
   只覆盖列数与按钮行号，间距与内边距沿用上面的规则。 */
.directory-page .filters {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.3fr) auto auto;
}
@media (max-width: 800px) {
  .directory-page .filters {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .directory-page .search-submit {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .directory-page .reset-filter {
    grid-column: 3;
    grid-row: 2;
  }
}
@media (max-width: 767px) {
  .directory-page .filters {
    grid-template-columns: 1fr 1fr;
  }
  .directory-page .filters .field:nth-child(3) {
    grid-column: 1 / -1;
  }
  .directory-page .search-submit {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
  }
  .directory-page .reset-filter {
    grid-column: 2;
    grid-row: 3;
  }
}
