/* بازار امتیاز وام */

/* ── Hero ── */
.lm-hero {
  background: linear-gradient(180deg, #050a18 0%, #0a1428 50%, #0f172a 100%) !important;
  padding: 2.75rem 0 2.5rem !important;
  overflow: hidden;
}

.lm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 90% at 18% 65%, rgba(37, 99, 235, .32), transparent 62%),
    radial-gradient(ellipse 45% 35% at 82% 15%, rgba(34, 211, 238, .1), transparent 55%);
  pointer-events: none;
}

.lm-hero .hero-content { position: relative; z-index: 1; }

.lm-hero__row {
  --bs-gutter-x: 2.5rem;
  align-items: stretch;
}

@media (min-width: 992px) {
  .lm-hero__row {
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: stretch;
  }
  .lm-hero__row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
  }
}

.lm-hero__content {
  display: flex;
  flex-direction: column;
}

.lm-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 50px;
  border: 1px solid rgba(147, 197, 253, .25);
  background: rgba(37, 99, 235, .15);
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 1rem;
  width: fit-content;
}

.lm-hero__content h1 {
  font-weight: 900;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  line-height: 1.4;
  color: #fff;
  margin: 0 0 .75rem;
}

.lm-hero__content h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lm-hero__sub {
  color: rgba(203, 213, 225, .88);
  font-size: .92rem;
  line-height: 1.85;
  margin: 0 0 1.35rem;
  max-width: 38rem;
}

.lm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.25rem;
}

.lm-hero-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .62rem 1.15rem;
  border-radius: 50px;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  transition: transform .15s, box-shadow .15s;
}

.lm-hero-cta__btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.lm-hero-cta__btn--buy {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, .35);
}

.lm-hero-cta__btn--sell {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(245, 158, 11, .3);
}

.lm-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: auto;
}

.lm-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: rgba(203, 213, 225, .9);
}

.lm-hero-stat i { color: #38bdf8; font-size: 1rem; }
.lm-hero-stat strong { color: #38bdf8; font-weight: 800; }

/* Hero showcase cards */
.lm-hero__visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 340px;
  padding-top: .5rem;
}

.lm-hero-showcase {
  width: min(380px, 100%);
  position: relative;
}

.lm-hero-showcase__stage {
  position: relative;
  min-height: 320px;
}

.lm-hero-showcase__card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(255, 255, 255, .08);
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateX(24px) scale(.97);
  pointer-events: none;
  transition:
    opacity .55s cubic-bezier(.4, 0, .2, 1),
    transform .55s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.lm-hero-showcase__card.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.lm-hero-showcase__card.is-leaving {
  opacity: 0;
  transform: translateX(-24px) scale(.97);
  z-index: 1;
}

.lm-hero-showcase__accent {
  height: 4px;
  flex-shrink: 0;
}

.lm-hero-showcase__accent--buy { background: linear-gradient(90deg, #10b981, #34d399); }
.lm-hero-showcase__accent--sell { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.lm-hero-showcase__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.05rem .9rem;
}

.lm-hero-showcase__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  margin-bottom: .7rem;
}

.lm-hero-showcase__bank {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8edf3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lm-hero-showcase__bank img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.lm-hero-showcase__bank i {
  color: var(--blue);
  font-size: 1.1rem;
}

.lm-hero-showcase__title {
  margin: 0 0 .55rem;
  font-size: .95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lm-hero-showcase__price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: .75rem;
}

.lm-hero-showcase__price small {
  font-size: .74rem;
  font-weight: 600;
  color: #64748b;
}

.lm-hero-showcase__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: .8rem;
}

.lm-hero-showcase__fact {
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  padding: .45rem .55rem;
  min-width: 0;
}

.lm-hero-showcase__fact-label {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: .12rem;
}

.lm-hero-showcase__fact-value {
  display: block;
  font-size: .76rem;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lm-hero-showcase__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .7rem;
  border-top: 1px solid #eef2f6;
  font-size: .72rem;
  color: #64748b;
}

.lm-hero-showcase__foot i { color: #10b981; }

.lm-hero-showcase__cta {
  font-size: .78rem;
  font-weight: 800;
  color: var(--blue);
}

.lm-hero-showcase__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: 1rem;
}

.lm-hero-showcase__dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: transform .2s, background .2s, width .2s;
}

.lm-hero-showcase__dot.is-active {
  width: 22px;
  border-radius: 50px;
  background: #38bdf8;
}

.lm-hero-showcase__card:hover {
  color: inherit;
  box-shadow:
    0 28px 56px rgba(0, 0, 0, .32),
    0 0 0 1px rgba(56, 189, 248, .25);
}

@media (prefers-reduced-motion: reduce) {
  .lm-hero-showcase__card {
    transition: none;
  }
}

/* ── Main ── */
.lm-main {
  padding: 1.75rem 0 3rem;
  background: #f1f5f9;
}

.lm-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lm-breadcrumb .breadcrumb {
  margin-bottom: 0;
  font-size: .82rem;
}

.lm-disclaimer-bar {
  padding: .75rem 1rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: .78rem;
  line-height: 1.7;
  color: #9a3412;
}

.lm-disclaimer-bar strong { color: #c2410c; }

/* Listing layout: sidebar beside ads */
.lm-listing-layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.lm-listing-main {
  min-width: 0;
}

/* Workspace */
.lm-workspace {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.lm-workspace__segments {
  display: flex;
  gap: 0;
  padding: .65rem .85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  background: #f8fafc;
}

.lm-segment {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}

.lm-segment:hover {
  color: var(--blue);
  background: rgba(37, 99, 235, .04);
}

.lm-segment.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  background: #fff;
}

.lm-sidebar {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .05);
}

.lm-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.lm-results-toolbar__meta {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  flex-wrap: wrap;
}

.lm-results-toolbar__title {
  margin: 0;
  font-size: .98rem;
  font-weight: 800;
  color: var(--text);
}

.lm-results-toolbar__count {
  color: var(--blue);
  font-size: .84rem;
  font-weight: 700;
}

.lm-results-toolbar__controls {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 1 1 280px;
  justify-content: flex-end;
  min-width: 0;
}

.lm-toolbar-search {
  position: relative;
  flex: 1 1 200px;
  max-width: 280px;
}

.lm-toolbar-search i {
  position: absolute;
  right: .8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.lm-toolbar-search__input,
.lm-toolbar-select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: .84rem;
  padding: .62rem .85rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.lm-toolbar-search__input {
  padding-right: 2.2rem;
}

.lm-toolbar-select {
  flex: 0 0 150px;
  max-width: 170px;
}

.lm-toolbar-search__input:focus,
.lm-toolbar-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

/* Sidebar filters */
.lm-filters-panel {
  padding: 1rem 1rem 1.1rem;
}

.lm-filters-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .85rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.lm-filters-panel__title {
  margin: 0;
  font-size: .92rem;
  font-weight: 800;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.lm-filters-panel__title i {
  color: var(--blue);
}

.lm-filters-panel__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
}

.lm-filters-panel__stack {
  display: flex;
  flex-direction: column;
  gap: .95rem;
}

.lm-filters-panel__stack.is-collapsed {
  display: none;
}

.lm-filter-section + .lm-filter-section {
  padding-top: .15rem;
}

.lm-filter-section__title {
  margin: 0 0 .55rem;
  font-size: .8rem;
  font-weight: 800;
  color: var(--text);
}

.lm-filter-section__title small {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lm-filter-field {
  margin: 0;
}

.lm-filter-field__label {
  display: block;
  margin-bottom: .35rem;
  font-size: .74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lm-filter-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}

.lm-filter-search { position: relative; }

.lm-filter-search i {
  position: absolute;
  right: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.lm-filter-search__input,
.lm-filter-select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text);
  font-size: .84rem;
  padding: .65rem .8rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.lm-filter-search__input { padding-right: 2.35rem; }

.lm-filter-search__input:focus,
.lm-filter-select:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.lm-filters-actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .25rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.lm-filters-actions__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  padding: .68rem 1.35rem;
  cursor: pointer;
  transition: background .15s;
}

.lm-filters-actions__apply:hover { background: var(--blue-light); }

.lm-filters-actions__clear {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .1);
  background: #fff;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  padding: .65rem 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ── Ad cards grid ── */
.lm-results-block { padding: 1.1rem 1.2rem 1.35rem; }

.lm-ad-grid {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.lm-ad-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.lm-ad-card:hover {
  border-color: rgba(37, 99, 235, .22);
  box-shadow: 0 8px 24px rgba(37, 99, 235, .1);
  transform: translateY(-2px);
  color: inherit;
}

.lm-ad-card__accent {
  height: 3px;
  flex-shrink: 0;
}

.lm-ad-card__accent--buy { background: linear-gradient(90deg, #10b981, #34d399); }
.lm-ad-card__accent--sell { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.lm-ad-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: .95rem 1rem .85rem;
  gap: 0;
}

.lm-ad-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
  min-height: 1.5rem;
}

.lm-ad-card__top-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}

.lm-ad-card__bank-logo-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8edf3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lm-ad-card__bank-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.lm-ad-card__bank-fallback {
  color: var(--blue);
  font-size: 1rem;
}

.lm-ad-card__badge {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .2rem .55rem;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.3;
}

.lm-ad-card__badge--buy { background: #ecfdf5; color: #047857; }
.lm-ad-card__badge--sell { background: #fffbeb; color: #b45309; }
.lm-ad-card__badge--featured { background: var(--blue-glow); color: var(--blue); }

.lm-ad-card__title {
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 .6rem;
  min-height: 2.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lm-ad-card__price {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: .75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #f1f5f9;
}

.lm-ad-card__price small {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lm-ad-card__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .65rem;
  margin-bottom: .75rem;
}

.lm-ad-card__fact {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
}

.lm-ad-card__fact-label {
  font-size: .66rem;
  font-weight: 600;
  color: #94a3b8;
}

.lm-ad-card__fact-value {
  font-size: .76rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lm-ad-card__publisher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  margin-bottom: .7rem;
  padding: .5rem .6rem;
  border-radius: 8px;
  background: #f8fafc;
  font-size: .7rem;
  color: #64748b;
}

.lm-ad-card__publisher span {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lm-ad-card__publisher i {
  font-size: .78rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.lm-ad-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .65rem;
  border-top: 1px solid #f1f5f9;
  font-size: .72rem;
}

.lm-ad-card__offers {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.lm-ad-card__cta {
  font-weight: 700;
  color: var(--blue);
}

/* Empty */
.lm-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #f8fafc;
  border: 1px dashed rgba(0, 0, 0, .12);
  border-radius: 16px;
}

.lm-empty__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .45rem;
}

.lm-empty__text {
  font-size: .86rem;
  color: var(--text-muted);
  max-width: 26rem;
  margin: 0 auto 1.25rem;
  line-height: 1.75;
}

.lm-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}

/* Tips */
.lm-tips-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.lm-tips-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.lm-tips-card h3 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .45rem;
  font-size: .86rem;
  font-weight: 800;
  color: var(--text);
}

.lm-tips-card h3 i { color: var(--blue); }

.lm-tips-card p {
  margin: 0;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Pagination */
.lm-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.lm-pagination__summary {
  font-size: .82rem;
  color: var(--text-muted);
}

.lm-pagination__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.lm-pagination__item.is-disabled .lm-pagination__link {
  opacity: .45;
  pointer-events: none;
}

.lm-pagination__item.is-active .lm-pagination__link {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.lm-pagination__item.is-ellipsis span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: var(--text-muted);
}

.lm-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .55rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: .15s;
}

.lm-pagination__link:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Detail page */
.lm-detail-hero {
  background: linear-gradient(180deg, #050a18 0%, #0f172a 100%);
  padding: 1.5rem 0 2rem;
  color: #fff;
}

.lm-detail-hero .breadcrumb-item a { color: #93c5fd; }
.lm-detail-hero .breadcrumb-item.active { color: rgba(255,255,255,.7); }
.lm-detail-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

.lm-detail-main {
  padding: 2rem 0 3rem;
  background: #f8fafc;
}

.lm-detail-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  overflow: hidden;
}

.lm-detail-card__accent { height: 5px; }
.lm-detail-card__accent--buy { background: linear-gradient(90deg, #10b981, #34d399); }
.lm-detail-card__accent--sell { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.lm-detail-card__body { padding: 1.5rem 1.6rem; }

.lm-detail-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .85rem;
}

.lm-detail-card h1 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: .75rem;
  line-height: 1.5;
}

.lm-detail-price {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 1.15rem;
}

.lm-detail-price small {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lm-detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .65rem;
  margin-bottom: 1.25rem;
}

.lm-detail-fact {
  padding: .75rem .85rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, .06);
}

.lm-detail-fact__label {
  display: block;
  font-size: .7rem;
  color: var(--text-muted);
  margin-bottom: .2rem;
}

.lm-detail-fact__value {
  font-size: .84rem;
  font-weight: 800;
  color: var(--text);
}

.lm-detail-fact__value--bank {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.lm-detail-fact__value--bank .lm-ad-card__bank-logo-wrap {
  width: 32px;
  height: 32px;
}

.lm-detail-desc {
  line-height: 1.9;
  color: #475569;
  font-size: .9rem;
}

.lm-action-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
  padding: 1.35rem 1.4rem;
  position: sticky;
  top: 1rem;
}

.lm-action-panel__title {
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .45rem;
}

.lm-action-panel__title i { color: var(--blue); }

.lm-action-panel .form-label {
  font-size: .76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lm-action-panel .form-control {
  border-radius: 10px;
  border-color: rgba(0, 0, 0, .1);
  font-size: .86rem;
}

.lm-action-panel .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.lm-action-panel .btn-primary {
  border-radius: 10px;
  font-weight: 700;
}

.lm-action-panel hr {
  margin: 1.1rem 0;
  opacity: .08;
}

/* ── Detail stat cards ── */
.lm-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 1.35rem;
}

.lm-detail-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-width: 0;
  padding: .95rem .55rem .85rem;
  background: #f8fafc;
  border: 1px solid #e8edf5;
  border-radius: 14px;
}

.lm-detail-stat__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  margin-bottom: .5rem;
  flex-shrink: 0;
}

.lm-detail-stat__icon--bank { background: #fff7ed; color: #ea580c; }
.lm-detail-stat__icon--type { background: #eff6ff; color: #2563eb; }
.lm-detail-stat__icon--amount { background: #ecfdf5; color: #059669; }
.lm-detail-stat__icon--city { background: #f5f3ff; color: #7c3aed; }

.lm-detail-stat__logo-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8edf3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lm-detail-stat__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.lm-detail-stat__label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: .25rem;
  line-height: 1.3;
}

.lm-detail-stat__value {
  display: block;
  width: 100%;
  font-size: .78rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.lm-detail-stat__value--amount {
  font-size: .74rem;
  letter-spacing: -.01em;
}

.lm-detail-stat__value--amount small {
  display: block;
  font-size: .65rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: .1rem;
}

@media (max-width: 991px) {
  .lm-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .lm-detail-stats {
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
  }

  .lm-detail-stat {
    padding: .8rem .45rem .7rem;
  }
}

/* ── Detail content panels ── */
.lm-detail-panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
  height: 100%;
  overflow: hidden;
}

.lm-detail-panel__title {
  font-size: .92rem;
  font-weight: 800;
  padding: .95rem 1.1rem;
  margin: 0;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--text);
}

.lm-detail-panel__title i { color: var(--blue); }

.lm-detail-panel__body {
  padding: 1rem 1.1rem 1.15rem;
}

.lm-detail-terms {
  list-style: none;
  margin: 0;
  padding: .85rem 1.1rem 1.1rem;
}

.lm-detail-terms li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .45rem 0;
  font-size: .86rem;
  color: #475569;
}

.lm-detail-terms li i {
  color: var(--blue);
  margin-top: .15rem;
  flex: 0 0 auto;
}

.lm-contact-hub {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(15,23,42,.08);
  padding: 1.25rem 1.2rem 1.35rem;
  position: sticky;
  top: 1rem;
}

.lm-contact-hub__head h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 .35rem;
}

.lm-contact-hub__head p {
  font-size: .78rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.lm-contact-hub__state {
  text-align: center;
  padding: 1rem .5rem;
}

.lm-contact-hub__state i {
  font-size: 1.8rem;
  color: var(--blue);
  display: block;
  margin-bottom: .5rem;
}

.lm-contact-hub__state p {
  font-size: .84rem;
  color: var(--text-muted);
  margin-bottom: .85rem;
}

.lm-contact-hub__phone-btn {
  width: 100%;
  border: 1px solid rgba(37,99,235,.25);
  background: #eff6ff;
  color: var(--blue);
  border-radius: 12px;
  padding: .65rem;
  font-weight: 700;
  font-size: .84rem;
  margin-bottom: .75rem;
}

.lm-contact-hub__phone-result {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 10px;
  padding: .55rem .75rem;
  font-size: .82rem;
  margin-bottom: .75rem;
}

.lm-contact-hub__alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 10px;
  padding: .6rem .75rem;
  font-size: .8rem;
  margin-bottom: .75rem;
}

.lm-contact-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  background: #f1f5f9;
  border-radius: 12px;
  padding: .3rem;
  margin-bottom: 1rem;
}

.lm-contact-tabs__btn {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: .5rem .35rem;
  font-size: .76rem;
  font-weight: 700;
  color: #64748b;
  transition: all .15s ease;
}

.lm-contact-tabs__btn.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(15,23,42,.08);
}

.lm-contact-tabs__btn--danger.is-active {
  color: #dc2626;
}

.lm-contact-pane { display: none; }
.lm-contact-pane.is-active { display: block; }

.lm-contact-pane .form-label {
  font-size: .76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lm-contact-pane .form-control {
  border-radius: 10px;
  border-color: rgba(0,0,0,.1);
  font-size: .86rem;
}

.lm-contact-pane .btn {
  border-radius: 10px;
  font-weight: 700;
}

/* Responsive */
@media (min-width: 992px) {
  .lm-sidebar {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .lm-filters-panel__toggle { display: none !important; }
  .lm-filters-panel__stack.is-collapsed { display: flex; }
}

@media (max-width: 1199.98px) {
  .lm-listing-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .lm-tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .lm-hero__visual-wrap { display: none; }

  .lm-listing-layout {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .lm-listing-main { order: -1; }

  .lm-results-toolbar__controls {
    width: 100%;
    justify-content: stretch;
  }

  .lm-toolbar-search { max-width: none; }

  .lm-workspace__segments {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .lm-workspace__segments::-webkit-scrollbar { display: none; }

  .lm-segment { flex: 0 0 auto; min-width: 120px; }

  .lm-action-panel { position: static; margin-top: 1rem; }
}

@media (max-width: 767.98px) {
  .lm-hero { padding: 2rem 0 1.75rem !important; }
  .lm-hero-actions { flex-direction: column; }
  .lm-hero-cta__btn { justify-content: center; width: 100%; }
  .lm-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }

  .lm-tips-grid { grid-template-columns: 1fr; }
}
