/* JustSwap custom overrides — v2.0.0 */

:root {
  --justswap-green: #00d05a;
  --justswap-green-dark: #00b84f;
}

.header {
  border-bottom: none !important;
  background: #fff;
}

.header.sticky-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1003;
  margin-top: 0;
  float: none !important;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.topbar:not(.d-none) + .header.sticky-bar {
  margin-top: 5px;
}

.sticky-bar.stick,
.header.sticky-bar.stick,
.header.sticky-bar.is-at-top {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  float: none !important;
  border-bottom: none !important;
  background: #fff !important;
  background-color: #fff !important;
  animation: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.header.sticky-bar.stick .main-header,
.header.sticky-bar.stick .container,
.header.sticky-bar.is-at-top .main-header,
.header.sticky-bar.is-at-top .container {
  background: #fff !important;
  background-color: #fff !important;
}

@media (max-width: 991.98px) {
  .header.sticky-bar.stick,
  .header.sticky-bar.is-at-top {
    padding: 0 !important;
  }
}

.topbar {
  border-bottom: none !important;
}

.main {
  overflow: visible;
}

.justswap-search-page,
.justswap-book-requests-page {
  margin-top: 36px;
  padding-top: 12px;
}

.justswap-logo {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.justswap-logo--footer {
  max-height: 38px;
}

.justswap-logo--mobile {
  max-height: 36px;
}

.header .main-header .header-left .header-logo {
  max-width: 180px;
}

.header .main-header .header-left .header-logo a img.justswap-logo {
  min-height: 0;
  max-height: 44px;
}

.justswap-main-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
}

.justswap-main-menu > li > a {
  font-weight: 600;
  white-space: nowrap;
  border-radius: 6px;
  padding: 10px 14px !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.justswap-main-menu > li > a:hover {
  color: var(--justswap-green-dark) !important;
}

.justswap-main-menu > li > a.active {
  background-color: var(--justswap-green);
  color: #fff !important;
}

.justswap-main-menu > li > a.active:hover {
  background-color: var(--justswap-green-dark);
  color: #fff !important;
}

.mobile-menu.font-heading > li > a.active {
  background-color: var(--justswap-green);
  color: #fff !important;
  border-radius: 6px;
  padding-left: 12px;
  padding-right: 12px;
}

.justswap-header-actions {
  width: auto !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.justswap-header-actions .icon-list {
  padding: 0 12px 0 28px;
}

.justswap-header-actions .icon-list span:not(.number-item) {
  display: none !important;
}

/* Search row: location + search input aligned on one line */
.header .main-header .header-left .header-search .box-header-search .form-search {
  align-items: center;
  min-height: 38px;
}

.header .main-header .header-left .header-search .box-header-search .box-keysearch {
  display: flex;
  align-items: center;
}

.header .main-header .header-left .header-search .box-header-search .box-keysearch input {
  height: 38px;
  line-height: 38px;
  padding-top: 0;
  padding-bottom: 0;
}

.box-location {
  position: relative;
  margin-right: 12px;
  min-width: 130px;
  max-width: 170px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: center;
  height: 38px;
}

.box-location::after {
  content: "";
  height: 18px;
  width: 1px;
  background-color: #ebf0f3;
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
}

.btn-location-trigger {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  height: 38px;
  padding: 0 6px;
  margin: 0;
  color: #425a8b;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.btn-location-trigger .location-pin {
  color: var(--justswap-green);
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.btn-location-trigger .location-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.location-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1000;
  min-width: 220px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d5dfe4;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.location-panel[hidden] {
  display: none !important;
}

.location-panel .form-control {
  font-size: 12px;
}

.location-error {
  color: #dc3545;
  font-size: 11px;
  margin: 6px 0 0;
}

.mobile-location-bar {
  padding: 12px 0;
  border-bottom: 1px solid #ebf0f3;
  margin-bottom: 10px;
}

.mobile-location-bar .box-location {
  max-width: none;
  height: auto;
}

.mobile-location-bar .btn-location-trigger {
  font-size: 13px;
  height: auto;
  min-height: 38px;
}

@media (max-width: 1199px) {
  .header .main-header .header-left .header-search {
    width: 100%;
    order: 3;
    margin-top: 10px;
  }

  .header .main-header .header-left .header-nav {
    width: auto;
  }
}

@media (max-width: 767px) {
  .justswap-logo {
    max-height: 36px;
  }
}

.justswap-header-actions .icon-list .number-item,
.header .main-header .header-left .header-shop .number-item {
  background-color: var(--justswap-green) !important;
  color: #fff !important;
}

.color-brand-2,
.price-main.color-brand-2,
a.color-brand-2:hover {
  color: var(--justswap-green) !important;
}

.btn-brand-2,
.btn.btn-brand-2 {
  background-color: var(--justswap-green) !important;
  border-color: var(--justswap-green) !important;
  color: #fff !important;
}

.btn-brand-2:hover,
.btn.btn-brand-2:hover {
  background-color: var(--justswap-green-dark) !important;
  border-color: var(--justswap-green-dark) !important;
  color: #fff !important;
}

.bg-brand-2,
.label.bg-brand-2,
span.label.bg-brand-2 {
  background-color: var(--justswap-green) !important;
}

.color-success,
.text-success {
  color: var(--justswap-green) !important;
}

.btn-outline-success {
  color: var(--justswap-green) !important;
  border-color: var(--justswap-green) !important;
}

.btn-outline-success:hover {
  background-color: var(--justswap-green) !important;
  border-color: var(--justswap-green) !important;
  color: #fff !important;
}

.link-see-more:hover,
.btn-arrow:hover,
.main-menu li a:hover {
  color: var(--justswap-green) !important;
}

.progress-bar-inner,
.swiper-pagination .swiper-pagination-bullet-active,
.tag-dot {
  background-color: var(--justswap-green) !important;
}

/* Homepage hero swiper */
.justswap-hero-swiper .swiper-group-1 {
  position: relative;
}

.banner-hero.banner-8 .justswap-hero-swiper .banner-big.bg-27 {
  background-color: #f4f9f3 !important;
  background-image: none !important;
}

.banner-hero.banner-8 .justswap-hero-swiper .box-banner-big {
  width: 100%;
  max-width: none;
  padding-right: 12px;
}

.justswap-hero-swiper .swiper-group-1 > .swiper-pagination {
  bottom: 22px !important;
  left: 50px !important;
  width: auto !important;
  text-align: left;
  z-index: 8;
  line-height: 1;
}

.justswap-hero-swiper .swiper-pagination .swiper-pagination-bullet {
  margin: 0 6px 0 0 !important;
  background: #9ca3af;
  opacity: 0.45;
}

.justswap-hero-swiper .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--justswap-green) !important;
  opacity: 1;
}

.banner-hero.banner-8 .justswap-hero-swiper .banner-image {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.banner-hero.banner-8 .justswap-hero-swiper .banner-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.banner-hero.banner-8 .justswap-hero-swiper .box-banner-big h1 {
  line-height: 1.12 !important;
  margin-bottom: 12px !important;
  font-size: clamp(28px, 2.6vw, 40px) !important;
}

.banner-hero.banner-8 .justswap-hero-swiper .box-banner-big h2 {
  line-height: 1.2 !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  font-size: clamp(17px, 1.8vw, 22px) !important;
  font-weight: 600;
}

.banner-hero.banner-8 .justswap-hero-swiper .box-banner-big .mt-30 {
  margin-top: 20px !important;
}

@media (max-width: 767px) {
  .justswap-hero-swiper .swiper-group-1 > .swiper-pagination {
    left: 24px !important;
    bottom: 16px !important;
  }
}

.box-border:focus-within,
.form-control:focus {
  border-color: var(--justswap-green) !important;
}

/* Section titles — override theme h3/h4 sizing */
.justswap-section-title,
.justswap-browse-categories .justswap-section-title,
.justswap-nearby-books .justswap-section-title {
  margin: 0 !important;
  padding: 0 !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

.justswap-browse-categories.section-box,
.justswap-nearby-books.section-box,
.justswap-popular-shelf.section-box,
.shop-grid.section-box {
  display: block !important;
  width: 100% !important;
}

/* Browse by Category */
.justswap-browse-categories {
  padding-top: 10px;
  padding-bottom: 10px;
}

.browse-categories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.browse-categories-title {
  margin: 0;
}

.browse-categories-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--justswap-green);
  text-decoration: none;
  white-space: nowrap;
}

.browse-categories-view-all:hover {
  color: var(--justswap-green-dark);
}

.browse-categories-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px;
}

.browse-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  padding: 28px 12px 22px;
  border-radius: 16px;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.browse-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.browse-category-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.browse-category-card__icon svg {
  width: 28px;
  height: 28px;
}

.browse-category-card__title {
  margin: 0 0 6px;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #111827;
}

.browse-category-card__count {
  font-size: 13px;
  line-height: 1.3;
  color: #6b7280;
}

.browse-category-card--fiction {
  background: #ecfdf5;
}
.browse-category-card--fiction .browse-category-card__icon {
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
}

.browse-category-card--non-fiction {
  background: #fff7ed;
}
.browse-category-card--non-fiction .browse-category-card__icon {
  background: rgba(249, 115, 22, 0.14);
  color: #f97316;
}

.browse-category-card--sci-fi {
  background: #faf5ff;
}
.browse-category-card--sci-fi .browse-category-card__icon {
  background: rgba(168, 85, 247, 0.14);
  color: #a855f7;
}

.browse-category-card--fantasy {
  background: #eff6ff;
}
.browse-category-card--fantasy .browse-category-card__icon {
  background: rgba(59, 130, 246, 0.14);
  color: #3b82f6;
}

.browse-category-card--biography {
  background: #f0fdfa;
}
.browse-category-card--biography .browse-category-card__icon {
  background: rgba(20, 184, 166, 0.14);
  color: #14b8a6;
}

.browse-category-card--self-help {
  background: #fdf2f8;
}
.browse-category-card--self-help .browse-category-card__icon {
  background: rgba(236, 72, 153, 0.14);
  color: #ec4899;
}

.browse-category-card--children {
  background: #fefce8;
}
.browse-category-card--children .browse-category-card__icon {
  background: rgba(234, 179, 8, 0.16);
  color: #ca8a04;
}

.browse-category-card--more {
  background: #f8fafc;
}
.browse-category-card--more .browse-category-card__icon {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

@media (max-width: 1199px) {
  .browse-categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .justswap-section-title {
    font-size: 15px !important;
  }

  .browse-categories-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .browse-categories-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .browse-category-card {
    flex: 0 0 140px;
    min-height: 156px;
    scroll-snap-align: start;
  }
}

/* Popular Books Ready to Swap */
.justswap-nearby-books {
  padding-top: 20px;
  padding-bottom: 20px;
}

.nearby-books-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.nearby-books-title {
  margin: 0;
}

.nearby-books-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--justswap-green);
  text-decoration: none;
  white-space: nowrap;
}

.nearby-books-view-all:hover {
  color: var(--justswap-green-dark);
}

.nearby-books-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px 14px;
  width: 100%;
}

.justswap-nearby-books .justswap-book-card {
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  display: block !important;
}

.justswap-book-card__cover {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #f3f4f6;
}

.justswap-book-card__cover > a {
  display: block;
  position: relative;
  height: 0;
  padding-bottom: 150%;
  overflow: hidden;
}

.justswap-book-card__cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.justswap-book-card__distance {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.justswap-book-card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #374151;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  transition: color 0.15s ease, background 0.15s ease;
}

.justswap-book-card__fav:hover,
.justswap-book-card__fav.is-active {
  color: #ef4444;
}

.justswap-book-card__fav.is-active svg {
  fill: currentColor;
}

.justswap-book-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.justswap-book-card__title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.justswap-book-card__title a {
  display: block;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.justswap-book-card__title a:hover {
  color: var(--justswap-green-dark);
}

.justswap-book-card__author,
.justswap-book-card__isbn,
.justswap-book-card__condition {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #6b7280;
}

.justswap-book-card__isbn {
  font-size: 10px;
  color: #9ca3af;
}

.justswap-book-card__condition {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.justswap-book-card__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.justswap-book-card__condition--excellent .justswap-book-card__dot {
  background: #22c55e;
}

.justswap-book-card__condition--good .justswap-book-card__dot {
  background: #f97316;
}

.justswap-book-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.justswap-book-card__stars {
  display: inline-flex;
  gap: 1px;
}

.justswap-book-card__stars span {
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.justswap-book-card__stars .is-full {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fbbf24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.justswap-book-card__stars .is-half {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='h'%3E%3Cstop offset='50%25' stop-color='%23fbbf24'/%3E%3Cstop offset='50%25' stop-color='%23e5e7eb'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23h)' d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.justswap-book-card__stars .is-empty {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e5e7eb'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.justswap-book-card__reviews {
  font-size: 11px;
  color: #9ca3af;
}

@media (max-width: 1199px) {
  .nearby-books-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .nearby-books-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .nearby-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Popular on JustSwap */
.justswap-popular-shelf {
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 50px;
}

.justswap-popular-shelf__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.justswap-popular-shelf__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.justswap-popular-shelf__tab {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.justswap-popular-shelf__tab:hover {
  color: #111827;
}

.justswap-popular-shelf__tab.is-active {
  background: var(--justswap-green);
  color: #fff;
  font-weight: 600;
}

.justswap-popular-shelf__carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.justswap-popular-shelf__nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.justswap-popular-shelf__nav:hover {
  border-color: #d1d5db;
  color: #111827;
}

.justswap-popular-shelf__viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.justswap-popular-shelf__track {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  padding: 2px 0 6px;
}

.justswap-popular-card {
  flex: 0 0 108px;
  min-width: 108px;
}

.justswap-popular-card__cover {
  position: relative;
  height: 0;
  padding-bottom: 145%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #f3f4f6;
}

.justswap-popular-card__cover-link {
  position: absolute;
  inset: 0;
  display: block;
}

.justswap-popular-card__cover-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.justswap-popular-card__fav {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
}

.justswap-popular-card__title {
  margin: 0 0 2px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.justswap-popular-card__title a {
  display: block;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.justswap-popular-card__title a:hover {
  color: var(--justswap-green-dark);
}

.justswap-popular-card__author {
  margin: 0 0 4px;
  font-size: 10px;
  line-height: 1.35;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.justswap-popular-card__requests {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--justswap-green);
}

.justswap-popular-card__requests-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 208, 90, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300d05a'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm-1 14-4-4 1.4-1.4L11 13.2l5.6-5.6L18 9Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

@media (max-width: 767px) {
  .justswap-popular-shelf__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .justswap-popular-shelf__tabs {
    justify-content: flex-start;
  }

  .justswap-popular-shelf__nav {
    display: none;
  }

  .justswap-popular-card {
    flex: 0 0 96px;
    min-width: 96px;
  }
}

/* Book request cards */
.justswap-request-card__cover {
  flex-shrink: 0;
  display: block;
  width: 56px;
  height: 84px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
}

.justswap-request-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.justswap-request-card__badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 208, 90, 0.12);
  color: var(--justswap-green-dark);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

/* How JustSwap Works */
.justswap-how-works {
  background: #f4f9f3 !important;
  padding: 48px 0 52px;
  margin-top: 0;
  margin-bottom: 0;
}

.justswap-how-works.section-box {
  background: #f4f9f3 !important;
}

.justswap-how-works__head {
  text-align: center;
  margin-bottom: 36px;
}

.justswap-how-works__title {
  margin: 0 0 8px !important;
  font-family: "DM Sans", sans-serif;
  font-size: 28px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #111827;
}

.justswap-how-works__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #6b7280;
}

.justswap-how-works__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.justswap-how-works__step {
  flex: 1 1 0;
  min-width: 0;
  max-width: 240px;
}

.justswap-how-works__illus {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #f4f9f3;
  box-shadow: none;
  aspect-ratio: 280 / 170;
}

.justswap-how-works__illus img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

/* Full-width ad banner (same footprint as former hero banner) */
@keyframes justswap-ad-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes justswap-ad-shimmer {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  20% { opacity: 0.55; }
  100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}

@keyframes justswap-ad-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-4deg); }
}

@keyframes justswap-ad-float-alt {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

@keyframes justswap-ad-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); transform: scale(1.03); }
}

@keyframes justswap-ad-wave {
  0%, 100% { transform: scaleY(0.35); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes justswap-ad-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -8px) scale(1.08); }
  66% { transform: translate(-8px, 6px) scale(0.94); }
}

@keyframes justswap-ad-spark {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.justswap-ad-banner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.justswap-ad-banner__slot {
  width: 100%;
  min-height: 170px;
  max-height: 220px;
  overflow: hidden;
}

.justswap-ad-banner__link {
  display: block;
  position: relative;
  width: 100%;
  min-height: 170px;
  max-height: 220px;
  padding: 22px 28px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(120deg, #0f172a, #1e3a5f, #2d6a4f, #f59e0b, #1e3a5f, #0f172a);
  background-size: 320% 320%;
  animation: justswap-ad-gradient 10s ease infinite;
  overflow: hidden;
}

.justswap-ad-banner__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.justswap-ad-banner__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: justswap-ad-orb 8s ease-in-out infinite;
}

.justswap-ad-banner__orb--1 {
  top: -30%;
  right: 8%;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.08);
}

.justswap-ad-banner__orb--2 {
  bottom: -45%;
  left: 35%;
  width: 180px;
  height: 180px;
  background: rgba(245, 158, 11, 0.18);
  animation-delay: -2s;
}

.justswap-ad-banner__orb--3 {
  top: 10%;
  left: -5%;
  width: 140px;
  height: 140px;
  background: rgba(45, 106, 79, 0.25);
  animation-delay: -4s;
}

.justswap-ad-banner__shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: justswap-ad-shimmer 4.5s ease-in-out infinite;
}

.justswap-ad-banner__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: justswap-ad-spark 2.4s ease-in-out infinite;
}

.justswap-ad-banner__spark--1 { top: 22%; right: 28%; }
.justswap-ad-banner__spark--2 { top: 62%; right: 18%; animation-delay: -0.8s; }
.justswap-ad-banner__spark--3 { top: 38%; right: 42%; animation-delay: -1.6s; }

.justswap-ad-banner__badge {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.justswap-ad-banner__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  min-height: 126px;
}

.justswap-ad-banner__copy {
  flex: 1;
  min-width: 0;
}

.justswap-ad-banner__brand {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.justswap-ad-banner__title {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.2;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.justswap-ad-banner__text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.92;
  max-width: 520px;
}

.justswap-ad-banner__cta {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  animation: justswap-ad-pulse 2.2s ease-in-out infinite;
}

.justswap-ad-banner__visual {
  flex-shrink: 0;
  width: 150px;
  height: 110px;
}

.justswap-ad-banner__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.justswap-ad-banner__headphones {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
}

.justswap-ad-banner__waves {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
}

.justswap-ad-banner__waves span {
  display: block;
  width: 5px;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  transform-origin: bottom center;
  animation: justswap-ad-wave 1.1s ease-in-out infinite;
}

.justswap-ad-banner__waves span:nth-child(1) { animation-delay: 0s; }
.justswap-ad-banner__waves span:nth-child(2) { animation-delay: 0.15s; }
.justswap-ad-banner__waves span:nth-child(3) { animation-delay: 0.3s; }
.justswap-ad-banner__waves span:nth-child(4) { animation-delay: 0.45s; }
.justswap-ad-banner__waves span:nth-child(5) { animation-delay: 0.6s; }

.justswap-ad-banner__float {
  position: absolute;
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.justswap-ad-banner__float--book {
  top: 4px;
  left: 0;
  animation: justswap-ad-float 3.2s ease-in-out infinite;
}

.justswap-ad-banner__float--book2 {
  bottom: 2px;
  left: 18px;
  font-size: 18px;
  animation: justswap-ad-float-alt 3.8s ease-in-out infinite;
  animation-delay: -1.2s;
}

@media (max-width: 767px) {
  .justswap-ad-banner__visual {
    display: none;
  }

  .justswap-ad-banner__link {
    padding: 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .justswap-ad-banner__link,
  .justswap-ad-banner__shimmer,
  .justswap-ad-banner__orb,
  .justswap-ad-banner__spark,
  .justswap-ad-banner__cta,
  .justswap-ad-banner__float,
  .justswap-ad-banner__waves span {
    animation: none !important;
  }
}

/* Browse categories — static top 5 grid */
.justswap-browse-categories__head {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.justswap-browse-categories__head h3 {
  margin: 0;
}

.justswap-browse-categories__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.justswap-browse-categories__item {
  min-width: 0;
}

.justswap-top-category {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.justswap-top-category:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.justswap-top-category__title {
  display: block;
  margin: 0;
  padding: 14px 16px 12px;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.justswap-top-category__title h6 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.justswap-top-category__title:hover h6 {
  color: var(--justswap-green, #3d6b4f);
}

.justswap-top-category--fiction .justswap-top-category__title {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-left: 4px solid #22c55e;
}

.justswap-top-category--non-fiction .justswap-top-category__title {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-left: 4px solid #f97316;
}

.justswap-top-category--children .justswap-top-category__title {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border-left: 4px solid #eab308;
}

.justswap-top-category--business .justswap-top-category__title {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
}

.justswap-top-category--biography .justswap-top-category__title {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border-left: 4px solid #14b8a6;
}

.justswap-top-category__links {
  flex: 1;
  margin: 0;
  padding: 14px 16px 8px;
  list-style: none;
}

.justswap-top-category__links li {
  margin-bottom: 0;
  border-bottom: 1px solid #f1f5f9;
}

.justswap-top-category__links li:last-child {
  border-bottom: none;
}

.justswap-top-category__links a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #425a8b;
  text-decoration: none;
  word-wrap: break-word;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.justswap-top-category__links a:hover {
  color: var(--justswap-green, #3d6b4f);
  padding-left: 4px;
}

.justswap-top-category__view {
  display: block;
  margin-top: auto;
  padding: 10px 16px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--justswap-green, #3d6b4f);
  text-decoration: none;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}

.justswap-top-category__view:hover {
  background: #f4f9f3;
  color: #2d6a4f;
}

@media (max-width: 1199px) {
  .justswap-browse-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .justswap-browse-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .justswap-browse-categories__grid {
    grid-template-columns: 1fr;
  }
}

.justswap-how-works__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.justswap-how-works__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--justswap-green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.justswap-how-works__step-title {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #111827;
}

.justswap-how-works__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #6b7280;
}

.justswap-how-works__arrow {
  flex-shrink: 0;
  align-self: center;
  margin-top: 48px;
  color: var(--justswap-green);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}

@media (max-width: 1199px) {
  .justswap-how-works__steps {
    flex-wrap: wrap;
    gap: 24px 16px;
  }

  .justswap-how-works__step {
    flex: 1 1 calc(50% - 32px);
    max-width: none;
  }

  .justswap-how-works__arrow {
    display: none;
  }
}

@media (max-width: 767px) {
  .justswap-how-works__title {
    font-size: 24px !important;
  }

  .justswap-how-works__step {
    flex: 1 1 100%;
  }

  .justswap-how-works {
    padding: 36px 0 40px;
  }
}

/* Community stats bar */
.justswap-stats {
  padding-top: 0;
  padding-bottom: 0;
}

.justswap-stats__bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 28px 32px;
  border-radius: 16px;
  background: #f4f9f3;
  border: 1px solid #e8f0e6;
}

.justswap-stats__item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0 20px;
  border-right: 1px solid #dde8da;
}

.justswap-stats__item:first-child {
  padding-left: 0;
}

.justswap-stats__item:last-child {
  border-right: none;
  padding-right: 0;
}

.justswap-stats__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #2f6b4f;
}

.justswap-stats__value {
  margin: 0 0 2px;
  font-family: "DM Sans", sans-serif;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: #2f6b4f;
}

.justswap-stats__label {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  color: #374151;
}

@media (max-width: 991px) {
  .justswap-stats__bar {
    flex-wrap: wrap;
    gap: 20px 0;
    padding: 24px 20px;
  }

  .justswap-stats__item {
    flex: 1 1 50%;
    border-right: none;
    padding: 0 12px;
  }
}

@media (max-width: 575px) {
  .justswap-stats__item {
    flex: 1 1 100%;
  }

  .justswap-stats__value {
    font-size: 22px;
  }
}

/* JustSwap footer */
.justswap-footer {
  background: #f9fafb !important;
  border-top: 1px solid #eef0f2;
}

.justswap-footer__main {
  padding: 48px 0 36px;
}

.justswap-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr 1.2fr;
  gap: 28px 24px;
}

.justswap-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 6px;
}

.justswap-footer__logo-icon {
  display: block;
  width: 32px;
  height: 32px;
}

.justswap-footer__logo-text {
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.justswap-footer__tagline {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--justswap-green-dark);
}

.justswap-footer__desc {
  margin: 0 0 18px;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

.justswap-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.justswap-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 208, 90, 0.12);
  color: var(--justswap-green-dark);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.justswap-footer__social-link:hover {
  background: var(--justswap-green);
  color: #fff;
}

.justswap-footer__heading {
  margin: 0 0 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.justswap-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.justswap-footer__links li + li {
  margin-top: 10px;
}

.justswap-footer__links a {
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
}

.justswap-footer__links a:hover {
  color: var(--justswap-green-dark);
}

.justswap-footer__newsletter-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #6b7280;
}

.justswap-footer__newsletter {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 100%;
}

.justswap-footer__newsletter-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: #111827;
  outline: none;
}

.justswap-footer__newsletter-input::placeholder {
  color: #9ca3af;
}

.justswap-footer__newsletter-input:focus {
  border-color: var(--justswap-green);
  box-shadow: 0 0 0 2px rgba(0, 208, 90, 0.15);
}

.justswap-footer__newsletter-btn {
  flex-shrink: 0;
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 0 8px 8px 0;
  background: var(--justswap-green);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.justswap-footer__newsletter-btn:hover {
  background: var(--justswap-green-dark);
}

.justswap-footer__bar {
  border-top: 1px solid #e5e7eb;
  padding: 18px 0 22px;
  background: #f9fafb;
}

.justswap-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.justswap-footer__copy,
.justswap-footer__motto {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
}

@media (max-width: 1199px) {
  .justswap-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .justswap-footer__brand {
    grid-column: 1 / -1;
  }

  .justswap-footer__col--newsletter {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

@media (max-width: 767px) {
  .justswap-footer__main {
    padding: 36px 0 28px;
  }

  .justswap-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .justswap-footer__brand,
  .justswap-footer__col--newsletter {
    grid-column: 1 / -1;
  }

  .justswap-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Search Books — hero banner (inside .shop-grid .container) */
.shop-grid .justswap-search-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
  background: #1a3329;
  color: #fff;
  box-sizing: border-box;
}

.shop-grid .justswap-search-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
  min-height: 240px;
  height: 240px;
  max-height: 240px;
}

.shop-grid .justswap-search-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px 22px 28px;
  min-height: 0;
}

.shop-grid .justswap-search-hero__title {
  margin: 0 0 4px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(26px, 2.8vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.shop-grid .justswap-search-hero__subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
}

.shop-grid .justswap-search-hero__field {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: none;
  padding: 5px 5px 5px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.shop-grid .justswap-search-hero__field-icon {
  flex-shrink: 0;
  display: flex;
  color: #9ca3af;
  margin-right: 8px;
}

.shop-grid .justswap-search-hero__field-icon svg {
  width: 16px;
  height: 16px;
}

.shop-grid .justswap-search-hero__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 8px 8px 0;
  font-size: 14px;
  line-height: 1.35;
  color: #111827;
  outline: none;
}

.shop-grid .justswap-search-hero__input::placeholder {
  color: #9ca3af;
}

.shop-grid .justswap-search-hero__submit {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 9px 22px;
  background: #2d5a42;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.shop-grid .justswap-search-hero__submit:hover {
  background: #234a36;
}

.shop-grid .justswap-search-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 24px;
  margin-top: 14px;
}

.shop-grid .justswap-search-hero__stat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.shop-grid .justswap-search-hero__stat-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-grid .justswap-search-hero__stat-icon svg {
  width: 18px;
  height: 18px;
}

.shop-grid .justswap-search-hero__stat-icon--gold {
  color: #e8b84a;
}

.shop-grid .justswap-search-hero__stat-icon--green {
  color: #7dd3a8;
}

.shop-grid .justswap-search-hero__stat-value {
  margin: 0;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
}

.shop-grid .justswap-search-hero__stat-label {
  margin: 1px 0 0;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.72);
}

.shop-grid .justswap-search-hero__stat-text {
  display: block;
}

.shop-grid .justswap-search-hero__visual {
  position: relative;
  min-height: 0;
  height: 100%;
  max-height: 240px;
  overflow: hidden;
}

.shop-grid .justswap-search-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    #1a3329 0%,
    rgba(26, 51, 41, 0.96) 8%,
    rgba(26, 51, 41, 0.72) 22%,
    rgba(26, 51, 41, 0.28) 42%,
    rgba(26, 51, 41, 0.08) 58%,
    transparent 72%
  );
  pointer-events: none;
}

.shop-grid .justswap-search-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(26, 51, 41, 0.22);
  pointer-events: none;
}

.shop-grid .justswap-search-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 240px;
  object-fit: cover;
  object-position: 65% center;
  filter: saturate(0.72) brightness(0.88) sepia(0.22) hue-rotate(95deg);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 991px) {
  .shop-grid .justswap-search-hero__layout {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .shop-grid .justswap-search-hero__content {
    padding: 18px 18px 16px;
  }

  .shop-grid .justswap-search-hero__visual {
    min-height: 0;
    max-height: 130px;
    height: 130px;
    order: -1;
  }

  .shop-grid .justswap-search-hero__visual::before {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(26, 51, 41, 0.25) 50%,
      #1a3329 100%
    );
  }

  .shop-grid .justswap-search-hero__visual img {
    min-height: 0;
    max-height: 130px;
    object-position: center center;
  }

  .shop-grid .justswap-search-hero__stats {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}

@media (max-width: 575px) {
  .shop-grid .justswap-search-hero__content {
    padding: 16px 14px 14px;
  }

  .shop-grid .justswap-search-hero__title {
    font-size: 20px;
  }

  .shop-grid .justswap-search-hero__field {
    flex-wrap: wrap;
    border-radius: 12px;
    padding: 8px;
  }

  .shop-grid .justswap-search-hero__field-icon {
    margin-right: 6px;
  }

  .shop-grid .justswap-search-hero__input {
    width: 100%;
    flex: 1 1 100%;
    padding: 6px 4px;
  }

  .shop-grid .justswap-search-hero__submit {
    width: 100%;
    margin-top: 6px;
    border-radius: 8px;
    padding: 10px 16px;
  }

  .shop-grid .justswap-search-hero__stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Search Books — sidebar filters */
.justswap-search-filters {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.shop-grid.justswap-search-page.section-box,
.shop-grid.justswap-book-requests-page.section-box {
  display: block;
  padding-bottom: 48px;
}

.shop-grid.justswap-search-page,
.shop-grid.justswap-book-requests-page,
.shop-grid.justswap-search-page > .container,
.shop-grid.justswap-book-requests-page > .container,
.shop-grid.justswap-search-page .row,
.shop-grid.justswap-book-requests-page .row,
.shop-grid.justswap-search-page .justswap-search-filters-col,
.shop-grid.justswap-book-requests-page .justswap-search-filters-col {
  overflow: visible;
}

@media (min-width: 992px) {
  .shop-grid.justswap-search-page > .container > .row,
  .shop-grid.justswap-book-requests-page > .container > .row {
    align-items: flex-start;
  }

  .justswap-search-filters-col {
    align-self: stretch;
  }

  .justswap-sticky-filters {
    position: -webkit-sticky;
    position: sticky;
    top: var(--justswap-filter-top, 88px);
    z-index: 50;
    width: 100%;
    max-width: 100%;
    padding-bottom: 32px;
    box-sizing: border-box;
  }

  .justswap-sticky-filters .justswap-search-filters {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    max-height: var(--justswap-filter-max-height, calc(100vh - 112px));
    overflow: hidden;
    box-sizing: border-box;
  }

  .justswap-sticky-filters .justswap-search-filters__head {
    flex-shrink: 0;
  }

  .justswap-sticky-filters .justswap-search-filters__form {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .justswap-sticky-filters .justswap-search-filters__form.is-scrollable {
    scrollbar-gutter: stable;
  }
}

@media (max-width: 991.98px) {
  .justswap-sticky-filters {
    padding-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .shop-grid.justswap-search-page > .container > .row,
  .shop-grid.justswap-book-requests-page > .container > .row {
    row-gap: 30px;
  }

  .justswap-sticky-filters {
    margin-bottom: 0;
  }
}

.justswap-search-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef0f2;
}

.justswap-search-filters__title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.justswap-search-filters__clear {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #2d5a42;
  cursor: pointer;
}

.justswap-search-filters__clear:hover {
  color: #1a3329;
}

.justswap-search-filters__form {
  display: block;
}

.justswap-search-filters__section {
  padding: 14px 18px;
  border-bottom: 1px solid #eef0f2;
}

.justswap-search-filters__section--last {
  border-bottom: 0;
}

.justswap-search-filters__section-toggle,
.justswap-search-filters__section-title {
  margin: 0 0 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.justswap-search-filters__section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.justswap-search-filters__section-toggle svg {
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

.justswap-search-filters__section-toggle:not(.is-open) svg {
  transform: rotate(180deg);
}

.justswap-search-filters__section-toggle:not(.is-open) + .justswap-search-filters__section-body {
  display: none;
}

.justswap-search-filters__section-title {
  margin-bottom: 12px;
}

.justswap-search-filters__categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.justswap-search-filters__categories li {
  margin: 0 0 8px;
}

.justswap-search-filters__categories li:last-child {
  margin-bottom: 0;
}

.justswap-search-filters__category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  line-height: 1.3;
}

.justswap-search-filters__category:hover {
  color: #111827;
}

.justswap-search-filters__category-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.justswap-search-filters__category-icon--fiction {
  color: #e8754a;
  background: rgba(232, 117, 74, 0.12);
}

.justswap-search-filters__category-icon--self-help {
  color: #d4a017;
  background: rgba(212, 160, 23, 0.12);
}

.justswap-search-filters__category-icon--business {
  color: #2aa89a;
  background: rgba(42, 168, 154, 0.12);
}

.justswap-search-filters__category-icon--biography {
  color: #e05252;
  background: rgba(224, 82, 82, 0.12);
}

.justswap-search-filters__category-icon--science {
  color: #4a90d9;
  background: rgba(74, 144, 217, 0.12);
}

.justswap-search-filters__category-icon--romance {
  color: #e879a9;
  background: rgba(232, 121, 169, 0.12);
}

.justswap-search-filters__category-icon--children {
  color: #d4a017;
  background: rgba(212, 160, 23, 0.12);
}

.justswap-search-filters__category-icon--non-fiction {
  color: #3d8b5a;
  background: rgba(61, 139, 90, 0.12);
}

.justswap-search-filters__category-icon--textbooks {
  color: #4a7fd9;
  background: rgba(74, 127, 217, 0.12);
}

.justswap-search-filters__category-icon--history {
  color: #b8860b;
  background: rgba(184, 134, 11, 0.12);
}

.justswap-search-filters__category-icon--mystery {
  color: #7c5cbf;
  background: rgba(124, 92, 191, 0.12);
}

.justswap-search-filters__category-icon--poetry {
  color: #d96ba8;
  background: rgba(217, 107, 168, 0.12);
}

.justswap-search-filters__category-icon--comics {
  color: #e8754a;
  background: rgba(232, 117, 74, 0.12);
}

.justswap-search-filters__category-icon--travel {
  color: #2aa89a;
  background: rgba(42, 168, 154, 0.12);
}

.justswap-search-filters__category-icon--food {
  color: #e05252;
  background: rgba(224, 82, 82, 0.12);
}

.justswap-search-filters__categories:not(.is-expanded) .justswap-search-filters__category-extra {
  display: none;
}

.justswap-search-filters__category-name {
  flex: 1;
  min-width: 0;
}

.justswap-search-filters__category-count {
  flex-shrink: 0;
  font-size: 12px;
  color: #9ca3af;
}

.justswap-search-filters__view-all {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #2d5a42;
  text-decoration: none;
  cursor: pointer;
}

.justswap-search-filters__view-all:hover {
  color: #1a3329;
}

.justswap-search-filters__input,
.justswap-search-filters__select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.2s ease;
}

.justswap-search-filters__input {
  padding: 10px 12px;
  margin-bottom: 10px;
}

.justswap-search-filters__input::placeholder {
  color: #9ca3af;
}

.justswap-search-filters__input:focus,
.justswap-search-filters__select:focus {
  border-color: #2d5a42;
}

.justswap-search-filters__select-wrap {
  position: relative;
}

.justswap-search-filters__select {
  appearance: none;
  padding: 10px 40px 10px 12px;
  cursor: pointer;
}

.justswap-search-filters__select-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  color: #2d5a42;
  pointer-events: none;
}

.justswap-search-filters__checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.justswap-search-filters__checks li {
  margin: 0 0 8px;
}

.justswap-search-filters__checks li:last-child {
  margin-bottom: 0;
}

.justswap-filter-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.justswap-filter-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.justswap-filter-check__box {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background: #fff;
  position: relative;
}

.justswap-filter-check input:checked + .justswap-filter-check__box {
  background: #2d5a42;
  border-color: #2d5a42;
}

.justswap-filter-check input:checked + .justswap-filter-check__box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.justswap-filter-check__label {
  font-size: 13px;
  line-height: 1.35;
  color: #374151;
}

.justswap-filter-check__count {
  color: #9ca3af;
}

.justswap-search-filters__apply {
  display: block;
  width: calc(100% - 36px);
  margin: 16px 18px 18px;
  padding: 11px 16px;
  border: 1px solid #2d5a42;
  border-radius: 8px;
  background: #fff;
  color: #2d5a42;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.justswap-search-filters__apply:hover {
  background: #2d5a42;
  color: #fff;
}

/* Search Books — results grid */
.justswap-search-results-col {
  min-width: 0;
}

.justswap-search-results {
  padding-bottom: 0;
}

.justswap-search-results__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.justswap-search-results__count {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #6b7280;
}

.justswap-search-results__count strong {
  color: #374151;
  font-weight: 600;
}

.justswap-search-results__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.justswap-search-results__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.justswap-search-results__sort-label {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}

.justswap-search-results__sort-select {
  min-width: 150px;
  padding: 8px 32px 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
}

.justswap-search-results__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.justswap-book-card--search {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.justswap-book-card--search:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.justswap-search-results .justswap-book-card__cover {
  margin-bottom: 0;
  border-radius: 0;
}

.justswap-search-results .justswap-book-card__cover > a {
  padding-bottom: 130%;
}

.justswap-search-results .justswap-book-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 12px 14px;
  flex: 1;
}

.justswap-search-results .justswap-book-card__title {
  font-size: 14px !important;
  line-height: 1.35 !important;
  width: 100%;
  min-width: 0;
}

.justswap-search-results .justswap-book-card__title a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.justswap-search-results .justswap-book-card__author {
  font-size: 12px;
  color: #6b7280;
  width: 100%;
}

.justswap-search-results .justswap-book-card__isbn {
  margin: 0;
  width: 100%;
  font-size: 10px;
  line-height: 1.35;
  color: #9ca3af;
}

.justswap-search-results .justswap-book-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  width: 100%;
}

.justswap-book-card--search .justswap-book-card__seller {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.justswap-book-card--search .justswap-book-card__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f5ee;
  color: #2d5a42;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.justswap-book-card--search .justswap-book-card__seller-text {
  font-size: 11px;
  line-height: 1.35;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.justswap-book-card--search .justswap-book-card__seller-name {
  color: #374151;
  font-weight: 600;
}

.justswap-book-card--search .justswap-book-card__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.justswap-search-results .justswap-book-card__cover .justswap-book-card__badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  margin-top: 0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.justswap-book-card--search .justswap-book-card__badge--like-new {
  background: #dcfce7;
  color: #166534;
}

.justswap-book-card--search .justswap-book-card__badge--very-good {
  background: #e6f4ef;
  color: #2d5a42;
}

.justswap-book-card--search .justswap-book-card__badge--good {
  background: #fef3c7;
  color: #b45309;
}

.justswap-book-card--search .justswap-book-card__badge--requests {
  background: #e6f4ef;
  color: #2d5a42;
}

.justswap-search-results__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 32px;
  margin-bottom: 0;
}

/* Search Books — book request CTA */
.justswap-search-request-cta {
  margin-top: 40px;
}

.justswap-search-request-cta__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 28px;
  border-radius: 16px;
  background: #f3f4f6;
}

.justswap-search-request-cta__lead {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
}

.justswap-search-request-cta__visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
}

.justswap-search-request-cta__visual img {
  display: block;
  width: 120px;
  height: 96px;
  object-fit: contain;
}

.justswap-search-request-cta__content {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 520px;
}

.justswap-search-request-cta__title {
  margin: 0 0 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
}

.justswap-search-request-cta__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
  max-width: 520px;
}

.justswap-search-request-cta__actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.justswap-search-request-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: #2d5a42;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.justswap-search-request-cta__btn:hover {
  background: #1a3329;
  color: #fff;
}

.justswap-search-request-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #2d5a42;
  text-decoration: none;
  white-space: nowrap;
}

.justswap-search-request-cta__link:hover {
  color: #1a3329;
}

@media (max-width: 991.98px) {
  .justswap-search-request-cta__layout {
    flex-wrap: wrap;
    gap: 20px;
    padding: 22px 20px;
  }

  .justswap-search-request-cta__lead {
    flex: 1 1 calc(100% - 144px);
  }

  .justswap-search-request-cta__visual {
    width: 120px;
  }

  .justswap-search-request-cta__actions {
    width: 100%;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .justswap-search-request-cta__layout {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .justswap-search-request-cta__lead {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .justswap-search-request-cta__visual {
    width: 100%;
    justify-content: flex-start;
  }

  .justswap-search-request-cta__content {
    flex: none;
    width: 100%;
  }

  .justswap-search-request-cta__actions {
    width: 100%;
    align-items: stretch;
  }

  .justswap-search-request-cta__btn {
    width: 100%;
  }
}

.justswap-search-results__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.justswap-search-results__page:hover {
  background: #f3f4f6;
  color: #111827;
}

.justswap-search-results__page.is-active {
  background: #2d5a42;
  border-color: #2d5a42;
  color: #fff;
}

.justswap-search-results__page--arrow {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
}

.justswap-search-results__page-ellipsis {
  min-width: 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

@media (min-width: 768px) {
  .justswap-search-results__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .justswap-search-results__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .justswap-search-results__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .justswap-search-results__controls {
    justify-content: flex-start;
    width: 100%;
  }

  .justswap-search-results__sort {
    flex: 1;
    min-width: 0;
  }

  .justswap-search-results__sort-select {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 479.98px) {
  .justswap-search-results__grid {
    grid-template-columns: 1fr;
  }
}
/* Single book page — loaded via justswap.css append */

.justswap-single-book-page {
  --justswap-single-book-gap: 24px;
  --justswap-single-book-side-gap: 20px;
  background: #fff;
  padding-bottom: 50px;
}

.justswap-single-book-page.section-box {
  border: 0;
  box-shadow: none;
}

.justswap-single-book__breadcrumb {
  padding-top: 24px;
  margin-bottom: 20px;
}

.justswap-single-book__request-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid #dcefe4;
  border-radius: 10px;
  background: #ecf7f0;
}

.justswap-single-book__request-banner-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.justswap-single-book__request-banner-text {
  flex: 1;
  min-width: 0;
}

.justswap-single-book__request-banner-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #1f5a3e;
  line-height: 1.35;
}

.justswap-single-book__request-banner-desc {
  margin: 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.45;
}

.justswap-single-book__request-banner-back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.justswap-single-book__request-banner-back:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

@media (max-width: 767px) {
  .justswap-single-book__request-banner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .justswap-single-book__request-banner-back {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
}

.justswap-single-book__breadcrumb .breadcrumb {
  margin-bottom: 0;
  font-size: 13px;
}

.justswap-single-book__breadcrumb .breadcrumb a {
  color: #6b7280;
}

.justswap-single-book__breadcrumb .breadcrumb span {
  color: #374151;
}

.justswap-single-book__layout {
  display: flex;
  flex-direction: column;
  gap: var(--justswap-single-book-gap);
  min-width: 0;
}

.justswap-single-book__content {
  display: flex;
  flex-direction: column;
  gap: var(--justswap-single-book-gap);
  min-width: 0;
}

.justswap-single-book__section {
  margin: 0;
  min-width: 0;
}

.justswap-single-book__hero {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}

.justswap-single-book__hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.justswap-single-book__cover {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.justswap-single-book__cover-frame {
  position: relative;
  height: 0;
  padding-bottom: 145%;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.justswap-single-book__cover-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.justswap-single-book__cover-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.justswap-single-book__details {
  width: 100%;
  min-width: 0;
}

.justswap-single-book__category {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #e8f5ee;
  color: #2d5a42;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.justswap-single-book__category:hover {
  background: #d4eddf;
  color: #1f4332;
}

.justswap-single-book__title {
  margin: 0 0 6px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.justswap-single-book__author {
  margin: 0 0 12px;
  font-size: 15px;
  color: #374151;
}

.justswap-single-book__author a {
  color: #2563eb;
  text-decoration: underline;
}

.justswap-single-book__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.justswap-single-book__rating-score {
  font-weight: 600;
  color: #111827;
  font-size: 14px;
}

.justswap-single-book__rating-count {
  font-size: 13px;
  color: #6b7280;
}

.justswap-single-book__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #6b7280;
}

.justswap-single-book__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.justswap-single-book__isbn {
  margin: 0 0 8px;
  font-size: 13px;
  color: #9ca3af;
}

.justswap-single-book__about {
  margin-top: 0;
}

.justswap-single-book__about-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.justswap-single-book__about-text {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: #4b5563;
}

.justswap-single-book__about-text.is-collapsed p:not(:first-child) {
  display: none;
}

.justswap-single-book__about-text.is-collapsed p:first-child {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.justswap-single-book__read-more {
  padding: 0;
  border: 0;
  background: none;
  color: #2d5a42;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.justswap-single-book__read-more:hover {
  text-decoration: underline;
}

.justswap-single-book__swap-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #e8f5ee;
  color: #2d5a42;
  font-size: 13px;
}

.justswap-single-book__swap-note p {
  margin: 0;
}

.justswap-single-book__swap-note svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.justswap-single-book__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.justswap-single-book__section-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.justswap-single-book__section-head .justswap-single-book__section-title {
  margin-bottom: 0;
}

.justswap-single-book__section-count {
  font-weight: 500;
  color: #6b7280;
}

.justswap-single-book__section-link {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: #2d5a42;
  text-decoration: none;
}

.justswap-single-book__section-link:hover {
  text-decoration: underline;
}

.justswap-single-book__holders-panel {
  padding: 20px 22px 22px;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  background: #fff;
}

.justswap-single-book__holders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.justswap-single-book__holders-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.justswap-single-book__holders-icon {
  flex-shrink: 0;
  color: #2d5a42;
}

.justswap-single-book__holders-head .justswap-single-book__section-title {
  margin-bottom: 0;
  font-size: 17px;
}

.justswap-single-book__holders-carousel .justswap-single-book__carousel-viewport {
  margin: 0 24px;
  padding: 4px 0 2px;
}

.justswap-single-book__holders-carousel .justswap-single-book__carousel-nav {
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #9ca3af;
}

.justswap-single-book__holders-carousel .justswap-single-book__carousel-nav:hover {
  color: #2d5a42;
}

.justswap-single-book__holders-carousel .justswap-single-book__carousel-nav--prev {
  left: 0;
}

.justswap-single-book__holders-carousel .justswap-single-book__carousel-nav--next {
  right: 0;
}

.justswap-single-book__holders-carousel .justswap-single-book__holder-card {
  flex: 0 0 132px;
  min-width: 132px;
  padding: 14px 10px 12px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.justswap-single-book__holder-card--selectable {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.justswap-single-book__holder-card--selectable:hover,
.justswap-single-book__holder-card--selectable:focus-visible {
  border-color: #b8dcc8;
  box-shadow: 0 4px 14px rgba(45, 90, 66, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.justswap-single-book__holder-photo {
  display: none;
}

.justswap-single-book__member-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5ee, #d1e7dd);
  color: #2d5a42;
  box-shadow: 0 0 0 1px #dcefe4;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1;
  user-select: none;
}

.justswap-single-book__member-icon--sage {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  box-shadow: 0 0 0 1px #bbf7d0;
}

.justswap-single-book__member-icon--violet {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #5b21b6;
  box-shadow: 0 0 0 1px #ddd6fe;
}

.justswap-single-book__member-icon--amber {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  box-shadow: 0 0 0 1px #fde68a;
}

.justswap-single-book__member-icon--rose {
  background: linear-gradient(135deg, #ffe4e6, #fecdd3);
  color: #be123c;
  box-shadow: 0 0 0 1px #fecdd3;
}

.justswap-single-book__member-icon--sky {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
  box-shadow: 0 0 0 1px #bae6fd;
}

.justswap-single-book__member-icon--indigo {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #3730a3;
  box-shadow: 0 0 0 1px #c7d2fe;
}

.justswap-single-book__member-icon--sm {
  width: 56px;
  height: 56px;
  font-size: 15px;
}

.justswap-single-book__member-icon--lg {
  width: 52px;
  height: 52px;
  margin-bottom: 0;
  font-size: 16px;
}

.justswap-single-book__nearest-col .justswap-single-book__member-icon--lg {
  margin-left: auto;
  margin-right: auto;
}

.justswap-single-book__member-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #374151;
}

.justswap-single-book__nearest-name.justswap-single-book__member-name {
  font-size: 16px;
  color: #111827;
}

.justswap-single-book__holder-divider {
  height: 1px;
  margin: 10px 0 8px;
  background: #eef1f5;
}

.justswap-single-book__carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.justswap-single-book__carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.justswap-single-book__carousel-dot.is-active {
  width: 18px;
  background: #2d5a42;
}

.justswap-single-book__carousel {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.justswap-single-book__carousel-viewport {
  overflow: hidden;
  margin: 0 36px;
}

.justswap-single-book__carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
}

.justswap-single-book__carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #374151;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.justswap-single-book__carousel-nav:hover {
  border-color: #2d5a42;
  color: #2d5a42;
}

.justswap-single-book__carousel-nav--prev {
  left: 0;
}

.justswap-single-book__carousel-nav--next {
  right: 0;
}

.justswap-single-book__holder-card,
.justswap-single-book__request-card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: calc(33.333% - 11px);
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.justswap-single-book__holder-avatar,
.justswap-single-book__nearest-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d5a42, #4a8f6a);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.justswap-single-book__holder-card .justswap-single-book__holder-avatar {
  margin: 0 auto 10px;
}

.justswap-single-book__holder-name {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.justswap-single-book__request-user .justswap-single-book__holder-name {
  text-align: left;
}

.justswap-single-book__holder-location {
  margin: 0 0 4px;
  font-size: 11px;
  color: #6b7280;
  text-align: center;
}

.justswap-single-book__request-user .justswap-single-book__holder-location {
  text-align: left;
  margin-bottom: 0;
}

.justswap-single-book__holder-distance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: #4a9b6f;
}

.justswap-single-book__holder-distance svg {
  flex-shrink: 0;
  color: #4a9b6f;
}

.justswap-single-book__holder-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: #6b7280;
}

.justswap-single-book__holder-stats strong {
  font-weight: 700;
  color: #374151;
}

.justswap-single-book__request-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.justswap-single-book__request-user .justswap-single-book__holder-avatar {
  margin: 0;
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.justswap-single-book__request-quote {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
  font-style: normal;
}

.justswap-single-book__request-date {
  margin: 0;
  font-size: 11px;
  color: #9ca3af;
}

.justswap-single-book__similar-grid {
  row-gap: 20px;
}

.justswap-single-book__similar-card {
  height: 100%;
}

.justswap-single-book__similar-cover {
  position: relative;
  display: block;
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
}

.justswap-single-book__similar-cover-link {
  display: block;
}

.justswap-single-book__similar-cover-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.justswap-single-book__similar-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
}

.justswap-single-book__similar-title a {
  color: #111827;
  text-decoration: none;
}

.justswap-single-book__similar-title a:hover {
  color: #2d5a42;
}

.justswap-single-book__similar-author {
  margin: 0 0 6px;
  font-size: 12px;
  color: #6b7280;
}

.justswap-single-book__similar-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.justswap-single-book__similar-score {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.justswap-single-book__requesting-shelf .justswap-single-book__section-title {
  margin-bottom: 16px;
}

.justswap-single-book__requesting-carousel {
  margin-top: 0;
}

.justswap-single-book__side-sticky {
  display: flex;
  flex-direction: column;
  gap: var(--justswap-single-book-side-gap);
  min-width: 0;
}

@media (min-width: 992px) {
  .justswap-single-book-page {
    overflow-x: visible;
  }

  .justswap-single-book__layout {
    display: grid;
    grid-template-columns: minmax(0, 70%) minmax(0, 30%);
    grid-template-areas:
      "hero side"
      "content side";
    column-gap: 24px;
    row-gap: var(--justswap-single-book-gap);
    align-items: start;
  }

  .justswap-single-book__hero {
    grid-area: hero;
  }

  .justswap-single-book__content {
    grid-area: content;
    min-width: 0;
  }

  .justswap-single-book__side {
    grid-area: side;
    align-self: stretch;
    min-width: 0;
  }

  .justswap-single-book__side-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: var(--justswap-single-book-top, 88px);
    z-index: 5;
    width: 100%;
    max-width: 100%;
    padding-bottom: 32px;
    box-sizing: border-box;
  }

  .justswap-single-book__side-sticky > * {
    flex-shrink: 0;
  }

  .justswap-single-book__hero-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .justswap-single-book__cover {
    width: 220px;
    max-width: 220px;
    margin-left: 0;
    margin-right: 0;
    align-self: flex-start;
  }
}

.justswap-single-book__swap-card {
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.justswap-single-book__card-head {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 14px 18px;
  box-sizing: border-box;
}

.justswap-single-book__card-head-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.justswap-single-book__swap-card-head {
  background: #ecf7f0;
  border-bottom: 1px solid #dcefe4;
}

.justswap-single-book__swap-card-head .justswap-single-book__card-head-title {
  color: #1f5a3e;
}

.justswap-single-book__swap-card-body {
  padding: 18px 18px 16px;
}

.justswap-single-book__nearest {
  margin-bottom: 16px;
}

.justswap-single-book__nearest-label {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  white-space: nowrap;
}

.justswap-single-book__nearest-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.justswap-single-book__nearest-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.justswap-single-book__nearest-photo {
  display: none;
}

.justswap-single-book__nearest-info {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.justswap-single-book__nearest-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.justswap-single-book__nearest-name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  white-space: nowrap;
}

.justswap-single-book__nearest-votes {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  white-space: nowrap;
}

.justswap-single-book__vote {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.justswap-single-book__vote svg {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.justswap-single-book__vote--up {
  color: #16a34a;
}

.justswap-single-book__vote--down {
  color: #dc2626;
}

.justswap-single-book__nearest-location {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.justswap-single-book__nearest-distance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.2;
  color: #9ca3af;
  text-align: center;
  white-space: nowrap;
}

.justswap-single-book__nearest-distance svg {
  flex-shrink: 0;
}

.justswap-single-book__swap-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.justswap-single-book__swap-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 4px 14px 4px 0;
}

.justswap-single-book__swap-stat + .justswap-single-book__swap-stat {
  border-left: 1px solid #e5e7eb;
  padding-left: 14px;
  padding-right: 0;
}

.justswap-single-book__swap-stat-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.justswap-single-book__swap-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.justswap-single-book__swap-stat-icon--books {
  color: #2d5a42;
}

.justswap-single-book__swap-stat-icon--swaps {
  color: #f59e0b;
}

.justswap-single-book__swap-stat-num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #111827;
}

.justswap-single-book__swap-stat-label {
  display: block;
  width: 100%;
  font-size: 11px;
  line-height: 1.35;
  color: #6b7280;
  text-align: left;
}

.justswap-single-book__swap-btn,
a.justswap-single-book__swap-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: #45b57a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease;
}

.justswap-single-book__swap-btn:hover,
a.justswap-single-book__swap-btn:hover,
a.justswap-single-book__swap-btn:focus,
a.justswap-single-book__swap-btn:active,
a.justswap-single-book__swap-btn:visited {
  background: #3aa56d;
  color: #fff;
  text-decoration: none;
}

.justswap-single-book__swap-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 10px 18px 14px;
  border-top: 0;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

.justswap-single-book__swap-card-foot svg {
  flex-shrink: 0;
  color: #b0b8c4;
}

.justswap-single-book__how {
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
}

.justswap-single-book__alt {
  overflow: hidden;
  border: 1px solid #e8e0c8;
  border-radius: 12px;
  background: #fff;
}

.justswap-single-book__alt-head {
  background: #fdf8ed;
  border-bottom: 1px solid #f0e6cf;
}

.justswap-single-book__alt-head .justswap-single-book__card-head-title {
  color: #7a5c1e;
}

.justswap-single-book__alt-body {
  padding: 0;
}

.justswap-single-book__alt-item {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
}

.justswap-single-book__alt-divider {
  height: 1px;
  margin: 0 18px;
  background: #eef1f5;
}

.justswap-single-book__alt-content {
  flex: 1;
  min-width: 0;
}

.justswap-single-book__alt-item-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.justswap-single-book__alt-item-text {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}

.justswap-single-book__alt-link {
  font-size: 13px;
  font-weight: 600;
  color: #2d5a42;
  text-decoration: underline;
}

.justswap-single-book__alt-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f97316;
  color: #fff;
}

.justswap-single-book__share {
  position: relative;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.justswap-single-book__share-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.justswap-single-book__share-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  min-width: 0;
}

.justswap-single-book__share-social {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.justswap-single-book__share-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(45, 90, 66, 0.1);
  color: #2d5a42;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.justswap-single-book__share-social-link:hover {
  background: #2d5a42;
  color: #fff;
}

.justswap-single-book__share-head svg {
  flex-shrink: 0;
  color: #2d5a42;
}

.justswap-single-book__share-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.justswap-single-book__share-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.justswap-single-book__share-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #2d5a42;
  border-radius: 8px;
  background: #fff;
  color: #2d5a42;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.justswap-single-book__share-btn:hover {
  background: #2d5a42;
  color: #fff;
}

.justswap-single-book__how-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.justswap-single-book__how-steps {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.justswap-single-book__how-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
}

.justswap-single-book__how-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dbeafe;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
}

.justswap-single-book__how-note {
  margin: 0 0 10px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.justswap-single-book__how-link {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .justswap-single-book-page {
    overflow-x: clip;
  }

  .justswap-single-book-page .container {
    overflow-x: clip;
  }

  .justswap-single-book__layout {
    gap: var(--justswap-single-book-gap);
  }

  .justswap-single-book__side-sticky {
    display: contents;
  }

  .justswap-single-book__hero {
    order: 1;
  }

  .justswap-single-book__swap-card {
    order: 2;
  }

  .justswap-single-book__content {
    order: 3;
  }

  .justswap-single-book__how {
    order: 4;
  }

  .justswap-single-book__alt {
    order: 5;
  }

  .justswap-single-book__share {
    order: 6;
  }

  .justswap-single-book__side {
    display: contents;
  }

  .justswap-single-book__holder-card,
  .justswap-single-book__request-card {
    flex: 0 0 calc(50% - 8px);
    min-width: calc(50% - 8px);
  }
}

@media (max-width: 575.98px) {
  .justswap-single-book__hero {
    padding: 16px;
  }

  .justswap-single-book__carousel-viewport {
    margin: 0 28px;
  }

  .justswap-single-book__holder-card,
  .justswap-single-book__request-card {
    flex: 0 0 85%;
    min-width: 85%;
  }
}

.justswap-swap-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.justswap-swap-modal[hidden] {
  display: none;
}

.justswap-swap-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.justswap-swap-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.justswap-swap-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.justswap-swap-modal__close:hover {
  background: #f3f4f6;
  color: #111827;
}

.justswap-swap-modal__head {
  padding: 24px 24px 0;
}

.justswap-swap-modal__title {
  margin: 0 0 6px;
  padding-right: 28px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.justswap-swap-modal__subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.justswap-swap-modal__body {
  padding: 18px 24px 0;
}

.justswap-swap-modal__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.justswap-swap-modal__photo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
}

.justswap-swap-modal__member-icon {
  margin: 0;
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.justswap-swap-modal__photo {
  display: none;
}

.justswap-swap-modal__summary-text {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
  font-size: 13px;
  line-height: 1.4;
  color: #374151;
}

.justswap-swap-modal__summary-text p {
  margin: 0;
}

.justswap-swap-modal__book {
  margin-bottom: 4px !important;
  font-size: 14px;
  line-height: 1.35;
  color: #111827;
}

.justswap-swap-modal__holder {
  margin-bottom: 2px !important;
  color: #374151;
}

.justswap-swap-modal__location {
  font-size: 12px;
  color: #6b7280;
}

.justswap-swap-modal__notice {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #f5e6b8;
}

.justswap-swap-modal__notice-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #7a5c1e;
}

.justswap-swap-modal__notice p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
}

.justswap-swap-modal__list {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
}

.justswap-swap-modal__list li + li {
  margin-top: 4px;
}

.justswap-swap-modal__privacy {
  margin-bottom: 0 !important;
  font-size: 12px !important;
  color: #6b7280 !important;
}

.justswap-swap-modal__terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  line-height: 1.45;
  color: #374151;
  cursor: pointer;
}

.justswap-swap-modal__terms input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #2d5a42;
  cursor: pointer;
}

.justswap-swap-modal__terms a {
  color: #2d5a42;
  font-weight: 600;
  text-decoration: underline;
}

.justswap-swap-modal__foot {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 16px 24px 24px;
}

.justswap-swap-modal__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.justswap-swap-modal__btn:disabled:hover {
  background: #45b57a;
}

.justswap-swap-modal__btn {
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.justswap-swap-modal__btn--ghost {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.justswap-swap-modal__btn--ghost:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.justswap-swap-modal__btn--primary {
  border: 0;
  background: #45b57a;
  color: #fff;
}

.justswap-swap-modal__btn--primary:hover {
  background: #3aa56d;
}

.justswap-swap-modal__btn--block {
  display: block;
  width: 100%;
}

.justswap-swap-modal__success {
  padding: 32px 24px 24px;
  text-align: center;
}

.justswap-swap-modal__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #ecf7f0;
  color: #2d5a42;
}

.justswap-swap-modal__success-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
}

.justswap-swap-modal__success-note {
  margin: 0 0 20px;
  font-size: 13px;
  color: #6b7280;
}

body.is-swap-modal-open {
  overflow: hidden;
}

/* Book request single page */
.justswap-single-book-page--request .justswap-single-book__swap-note--request {
  background: #fff8eb;
  border-color: #fde68a;
}

.justswap-single-book__requesters-panel .justswap-single-book__request-card {
  cursor: default;
}

.justswap-single-book__requesters-panel .justswap-single-book__request-card:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* How It Works page — index-business layout (JustSwap theme) */
.justswap-hiw-biz-page {
  background: #fff;
}

/* —— Hero —— */
.justswap-hiw-biz-hero {
  padding: 56px 0 48px;
  background: #fff;
}

.justswap-hiw-biz-hero__flank {
  position: relative;
}

.justswap-hiw-biz-hero__flank img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-top: -24px;
}

.justswap-hiw-biz-hero__flank--right img {
  margin-left: auto;
}

.justswap-hiw-biz-hero__title {
  margin: 0 0 16px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #2d5a42;
}

.justswap-hiw-biz-hero__lead {
  margin: 0 auto 28px;
  max-width: 480px;
  font-size: 15px;
  line-height: 1.65;
  color: #6b7280;
}

.justswap-hiw-biz-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* —— Section titles —— */
.justswap-hiw-biz-section-title {
  margin: 0 0 12px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: #2d5a42;
}

.justswap-hiw-biz-section-sub {
  margin: 0 auto;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}

/* —— Top icon cards (advs-box-top-icon) —— */
.justswap-hiw-biz-icons {
  padding: 0 0 56px;
}

.justswap-hiw-biz-icon-card {
  height: 100%;
  padding: 32px 24px 28px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.justswap-hiw-biz-icon-card:hover {
  box-shadow: 0 8px 32px rgba(45, 90, 66, 0.12);
  transform: translateY(-2px);
}

.justswap-hiw-biz-icon-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #ecf7f0;
  color: #2d5a42;
}

.justswap-hiw-biz-icon-card__title {
  margin: 0 0 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.justswap-hiw-biz-icon-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #6b7280;
}

/* —— Split row + gallery —— */
.justswap-hiw-biz-band__bullets {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.justswap-hiw-biz-band__bullets li {
  position: relative;
  padding: 0 0 12px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.justswap-hiw-biz-band__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2d5a42;
}

.justswap-hiw-biz-band__bullets li:last-child {
  padding-bottom: 0;
}

.justswap-hiw-biz-band__bullets strong {
  color: #111827;
}

.justswap-hiw-biz-illus-compact {
  max-width: 280px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 90, 66, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.justswap-hiw-biz-illus-compact img {
  display: block;
  width: 100%;
  height: auto;
}

/* —— How-to guide cards —— */
.justswap-hiw-biz-guide {
  height: 100%;
  padding: 24px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.justswap-hiw-biz-guide--wide {
  padding: 28px 28px 24px;
}

.justswap-hiw-biz-guide__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #ecf7f0;
  color: #2d5a42;
}

.justswap-hiw-biz-guide__icon--violet {
  background: #f3e8ff;
  color: #5b21b6;
}

.justswap-hiw-biz-guide__title {
  margin: 0 0 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.justswap-hiw-biz-guide__intro {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
}

.justswap-hiw-biz-guide__intro strong {
  color: #1f5a3e;
}

.justswap-hiw-biz-guide__steps {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.justswap-hiw-biz-guide__steps li {
  margin-bottom: 6px;
}

.justswap-hiw-biz-guide__steps li:last-child {
  margin-bottom: 0;
}

.justswap-hiw-biz-guide__steps a {
  color: #2d5a42;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.justswap-hiw-biz-split__title {
  margin: 0 0 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.justswap-hiw-biz-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.justswap-hiw-biz-gallery {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.justswap-hiw-biz-gallery img {
  flex: 1 1 0;
  min-width: 0;
  max-width: 33%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

/* —— Tinted bands (section-bg-image) —— */
.justswap-hiw-biz-band {
  padding: 56px 0;
  background: linear-gradient(180deg, #f4f9f3 0%, #eef5ec 100%);
}

.justswap-hiw-biz-band--2 {
  background: linear-gradient(180deg, #eef5ec 0%, #f8faf9 100%);
}

.justswap-hiw-biz-band--3 {
  padding: 64px 0;
  background: linear-gradient(rgba(26, 51, 41, 0.04), rgba(26, 51, 41, 0.08)), url("../imgs/justswap/search-books-hero.jpg") center top / cover no-repeat;
}

.justswap-hiw-biz-band__split {
  margin-bottom: 48px;
}

.justswap-hiw-biz-band__title {
  margin: 0 0 14px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.justswap-hiw-biz-band__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #4b5563;
}

.justswap-hiw-biz-band__text em {
  font-style: normal;
  font-weight: 600;
  color: #1f5a3e;
}

.justswap-hiw-biz-band__center {
  margin-bottom: 40px;
}

.justswap-hiw-biz-link {
  font-size: 14px;
  font-weight: 600;
  color: #2d5a42;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 90, 66, 0.35);
}

.justswap-hiw-biz-link:hover {
  color: #1f5a3e;
  border-bottom-color: #1f5a3e;
}

/* —— Mock stack (slider left) —— */
.justswap-hiw-biz-mock-stack {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.justswap-hiw-biz-mock-stack > img:first-child {
  display: block;
  width: 100%;
  height: auto;
}

.justswap-hiw-biz-mock-stack__overlay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 38%;
  max-width: 140px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

/* —— Side-icon cards (advs-box-side-icon) —— */
.justswap-hiw-biz-side-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 100%;
  padding: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(45, 90, 66, 0.08);
}

.justswap-hiw-biz-side-card__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ecf7f0;
  color: #2d5a42;
}

.justswap-hiw-biz-side-card h3 {
  margin: 0 0 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.justswap-hiw-biz-side-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

/* —— Checklist (fa-ul) —— */
.justswap-hiw-biz-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.justswap-hiw-biz-checklist li {
  position: relative;
  padding: 0 0 14px 28px;
  font-size: 15px;
  line-height: 1.55;
  color: #374151;
}

.justswap-hiw-biz-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid #2d5a42;
  border-radius: 50%;
  background: #fff;
}

.justswap-hiw-biz-checklist li:last-child {
  padding-bottom: 0;
}

/* —— Showcase / phone-row cards —— */
.justswap-hiw-biz-showcase {
  height: 100%;
  padding: 24px 16px;
}

.justswap-hiw-biz-showcase__label {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2d5a42;
}

.justswap-hiw-biz-showcase__label--violet {
  color: #5b21b6;
}

.justswap-hiw-biz-showcase img {
  display: block;
  width: auto;
  max-width: 180px;
  height: auto;
  margin: 0 auto 16px;
}

.justswap-hiw-biz-showcase__title {
  margin: 0 0 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.justswap-hiw-biz-showcase__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

/* —— Flow steps section —— */
.justswap-hiw-biz-flow {
  display: none;
}

.justswap-hiw-biz-flow__heading {
  margin: 0 0 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

/* —— Inline tab switcher —— */
.justswap-hiw-tab-box {
  margin: 0 0 24px;
}

.justswap-hiw-tab-box__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.justswap-hiw-tab-box__nav--inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.justswap-hiw-tab-box__tab--inline {
  display: inline-block;
  margin: 0;
  padding: 10px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.justswap-hiw-tab-box--swap:has(#hiw-swap-want:checked) .justswap-hiw-tab-box__tab[for="hiw-swap-want"],
.justswap-hiw-tab-box--swap:has(#hiw-swap-have:checked) .justswap-hiw-tab-box__tab[for="hiw-swap-have"],
.justswap-hiw-tab-box--request:has(#hiw-request-want:checked) .justswap-hiw-tab-box__tab[for="hiw-request-want"],
.justswap-hiw-tab-box--request:has(#hiw-request-have:checked) .justswap-hiw-tab-box__tab[for="hiw-request-have"] {
  border-color: #2d5a42;
  background: #2d5a42;
  color: #fff;
}

.justswap-hiw-preview {
  pointer-events: none;
  user-select: none;
}

.justswap-hiw-preview__label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ca3af;
}

.justswap-hiw-preview__frame {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.justswap-hiw-preview .justswap-single-book__swap-btn {
  display: block;
  width: 100%;
  text-align: center;
  cursor: default;
}

.justswap-hiw-steps-wrap .justswap-how-works__steps {
  display: none;
}

.justswap-hiw-steps-wrap--swap:has(#hiw-swap-want:checked) .justswap-how-works__steps[data-role="want"],
.justswap-hiw-steps-wrap--swap:has(#hiw-swap-have:checked) .justswap-how-works__steps[data-role="have"],
.justswap-hiw-steps-wrap--request:has(#hiw-request-want:checked) .justswap-how-works__steps[data-role="want"],
.justswap-hiw-steps-wrap--request:has(#hiw-request-have:checked) .justswap-how-works__steps[data-role="have"] {
  display: flex;
}

.justswap-hiw-steps-wrap .justswap-how-works__step {
  max-width: 220px;
}

.justswap-hiw-steps-wrap .justswap-how-works__desc a {
  color: #2d5a42;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.justswap-hiw-steps__illus--white {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

/* —— Pricing (white section) —— */
.justswap-hiw-biz-pricing {
  padding: 56px 0;
  background: #fff;
  scroll-margin-top: 64px;
}

.justswap-hiw-biz-showcase--pricing {
  padding: 28px 24px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  text-align: center;
}

.justswap-hiw-biz-showcase--featured {
  border-color: #2d5a42;
  box-shadow: 0 12px 40px rgba(45, 90, 66, 0.14);
  transform: scale(1.02);
}

.justswap-hiw-biz-showcase__price {
  margin: 0 0 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: #111827;
}

.justswap-hiw-biz-showcase__price span {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.justswap-hiw-biz-showcase__list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.justswap-hiw-biz-showcase__list li {
  padding: 10px 0;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.justswap-hiw-biz-showcase__list li:last-child {
  border-bottom: 0;
}

/* —— CTA box (boxed-inverse shadow-1) —— */
.justswap-hiw-biz-cta__box {
  padding: 40px 36px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.12);
}

.justswap-hiw-biz-cta__title {
  margin: 0 0 20px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

.justswap-hiw-biz-cta__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.justswap-hiw-biz-cta__tags li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.justswap-hiw-biz-cta__tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: 2px solid #2d5a42;
  border-radius: 50%;
}

.justswap-hiw-biz-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.justswap-hiw-biz-cta__fine {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.justswap-hiw-biz-cta__fine a {
  color: #2d5a42;
  text-decoration: underline;
}

@media (max-width: 991px) {
  .justswap-hiw-biz-hero__flank img {
    margin-top: 0;
  }

  .justswap-hiw-biz-gallery {
    justify-content: center;
    margin-top: 8px;
  }

  .justswap-hiw-biz-showcase--featured {
    transform: none;
  }

  .justswap-hiw-preview {
    max-width: 360px;
    margin: 0 auto;
  }

  .justswap-hiw-steps-wrap .justswap-how-works__steps {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .justswap-hiw-biz-hero {
    padding: 40px 0 32px;
  }

  .justswap-hiw-biz-band {
    padding: 40px 0;
  }

  .justswap-hiw-biz-cta__box {
    padding: 28px 20px;
  }

  .justswap-hiw-tab-box__nav--inline {
    flex-direction: column;
    align-items: stretch;
  }

  .justswap-hiw-tab-box__tab--inline {
    text-align: center;
  }
}

/* User dashboard */
.justswap-user-dash {
  padding: 24px 0 48px;
  background: #f8faf9;
}

.justswap-user-dash.section-box,
.justswap-user-dash .section-box {
  background: #f8faf9 !important;
}

.justswap-user-dash__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.justswap-user-dash__sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.justswap-user-dash__sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
  border-bottom: 1px solid #f3f4f6;
}

.justswap-user-dash__sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #2d5a42;
  text-decoration: none;
}

.justswap-user-dash__sidebar-brand img {
  border-radius: 6px;
}

.justswap-user-dash__sidebar-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}

.justswap-user-dash__nav {
  padding: 12px 10px;
}

.justswap-user-dash__nav-label {
  margin: 12px 8px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.justswap-user-dash__nav-label:first-child {
  margin-top: 0;
}

.justswap-user-dash__nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.justswap-user-dash__nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.justswap-user-dash__nav-link:hover {
  background: #f4f9f3;
  color: #1f5a3e;
}

.justswap-user-dash__nav-link.is-active {
  background: #ecf7f0;
  color: #1f5a3e;
  font-weight: 600;
}

.justswap-user-dash__nav-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #6b7280;
}

.justswap-user-dash__nav-link.is-active .justswap-user-dash__nav-icon {
  color: #2d5a42;
}

.justswap-user-dash__logout-form {
  margin: 0;
}

.justswap-user-dash__nav-link--button {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.justswap-user-dash__nav-link--button:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.justswap-user-dash__nav-link--button:hover .justswap-user-dash__nav-icon {
  color: #b91c1c;
}

.justswap-user-dash__nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2d5a42;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.justswap-user-dash__sidebar-cta {
  margin: 8px 12px 12px;
  padding: 14px;
  border-radius: 10px;
  background: #f4f9f3;
  border: 1px solid #e8f0e6;
}

.justswap-user-dash__sidebar-cta-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.justswap-user-dash__sidebar-cta-text {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
}

.justswap-user-dash__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(15, 23, 42, 0.4);
}

.justswap-user-dash__main {
  min-width: 0;
}

.justswap-user-dash__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.justswap-user-dash__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  cursor: pointer;
}

.justswap-user-dash__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}

.justswap-user-dash__breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.justswap-user-dash__breadcrumb a:hover {
  color: #2d5a42;
}

.justswap-user-dash__toolbar-actions {
  margin-left: auto;
}

.justswap-user-dash__notif {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  text-decoration: none;
}

.justswap-user-dash__notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.justswap-user-dash__welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.justswap-user-dash__welcome-title {
  margin: 0 0 4px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: #111827;
}

.justswap-user-dash__welcome-sub {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.justswap-user-dash__location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  color: #374151;
}

.justswap-user-dash__location-edit {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #2d5a42;
  cursor: pointer;
  text-decoration: underline;
}

.justswap-user-dash__stat-card {
  height: 100%;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.justswap-user-dash__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 10px;
}

.justswap-user-dash__stat-icon--green { background: #ecf7f0; color: #2d5a42; }
.justswap-user-dash__stat-icon--blue { background: #eff6ff; color: #2563eb; }
.justswap-user-dash__stat-icon--amber { background: #fffbeb; color: #d97706; }
.justswap-user-dash__stat-icon--violet { background: #f5f3ff; color: #7c3aed; }

.justswap-user-dash__stat-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: #6b7280;
}

.justswap-user-dash__stat-value {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: #111827;
}

.justswap-user-dash__stat-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

.justswap-user-dash__panel {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.justswap-user-dash__panel--fill {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.justswap-user-dash__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.justswap-user-dash__panel-title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.justswap-user-dash__panel-link {
  font-size: 13px;
  font-weight: 600;
  color: #2d5a42;
  text-decoration: none;
}

.justswap-user-dash__panel-foot {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2d5a42;
  text-decoration: none;
}

.justswap-user-dash__portfolio-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.justswap-user-dash__book-card {
  flex: 0 0 140px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
  background: #fafafa;
  text-align: center;
}

.justswap-user-dash__book-card img {
  display: block;
  width: 100px;
  height: auto;
  margin: 0 auto 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.justswap-user-dash__book-card h3 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.justswap-user-dash__book-card p {
  margin: 0 0 8px;
  font-size: 11px;
  color: #6b7280;
}

.justswap-user-dash__book-date {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: #9ca3af;
}

.justswap-user-dash__book-card--add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-style: dashed;
  background: #fff;
}

.justswap-user-dash__book-add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #ecf7f0;
  color: #2d5a42;
  font-size: 22px;
  font-weight: 300;
}

.justswap-user-dash__badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.justswap-user-dash__badge--ready { background: #ecf7f0; color: #1f5a3e; }
.justswap-user-dash__badge--swap { background: #fffbeb; color: #b45309; }
.justswap-user-dash__badge--done { background: #f3f4f6; color: #6b7280; }

.justswap-user-dash__add-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f4f9f3;
  border: 1px dashed #c5dcc8;
}

.justswap-user-dash__add-banner-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.justswap-user-dash__add-banner-text {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.justswap-user-dash__inbox-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.justswap-user-dash__inbox-tab {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 5px 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
}

.justswap-user-dash__inbox-tab.is-active {
  border-color: #2d5a42;
  background: #2d5a42;
  color: #fff;
}

.justswap-user-dash__inbox-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.justswap-user-dash__inbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.justswap-user-dash__inbox-item:last-child {
  border-bottom: 0;
}

.justswap-user-dash__avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.justswap-user-dash__avatar--sage { background: #2d5a42; }
.justswap-user-dash__avatar--blue { background: #2563eb; }
.justswap-user-dash__avatar--violet { background: #7c3aed; }

.justswap-user-dash__inbox-body {
  flex: 1;
  min-width: 0;
}

.justswap-user-dash__inbox-name {
  margin: 0 0 2px;
  font-size: 13px;
  color: #374151;
  line-height: 1.35;
}

.justswap-user-dash__inbox-meta {
  margin: 0;
  font-size: 11px;
  color: #9ca3af;
}

.justswap-user-dash__swap-card {
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
  background: #fafafa;
}

.justswap-user-dash__swap-card:last-child {
  margin-bottom: 0;
}

.justswap-user-dash__swap-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.justswap-user-dash__swap-book {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #6b7280;
}

.justswap-user-dash__swap-book img {
  display: block;
  width: 56px;
  height: auto;
  margin: 0 auto 6px;
  border-radius: 4px;
}

.justswap-user-dash__swap-book strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #111827;
}

.justswap-user-dash__swap-book--empty .justswap-user-dash__swap-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 78px;
  margin: 0 auto 6px;
  border-radius: 4px;
  border: 2px dashed #d1d5db;
  background: #fff;
  font-size: 20px;
  color: #9ca3af;
}

.justswap-user-dash__swap-arrow {
  flex-shrink: 0;
  color: #2d5a42;
}

.justswap-user-dash__swap-meta {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
  text-align: center;
}

.justswap-user-dash__swap-pending-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  text-align: center;
}

.justswap-user-dash__activity {
  margin: 0;
  padding: 0;
  list-style: none;
}

.justswap-user-dash__activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.justswap-user-dash__activity-item:last-child {
  border-bottom: 0;
}

.justswap-user-dash__activity-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.justswap-user-dash__activity-icon--green { background: #ecf7f0; color: #2d5a42; }
.justswap-user-dash__activity-icon--blue { background: #eff6ff; color: #2563eb; }
.justswap-user-dash__activity-icon--violet { background: #f5f3ff; color: #7c3aed; }
.justswap-user-dash__activity-icon--amber { background: #fffbeb; color: #d97706; }

.justswap-user-dash__activity-item p {
  margin: 0 0 2px;
  font-size: 13px;
  line-height: 1.4;
  color: #374151;
}

.justswap-user-dash__activity-item time {
  font-size: 11px;
  color: #9ca3af;
}

.justswap-user-dash__tip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.justswap-user-dash__tip-icon {
  font-size: 24px;
  line-height: 1;
}

.justswap-user-dash__tip-body {
  flex: 1;
  min-width: 200px;
}

.justswap-user-dash__tip-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}

.justswap-user-dash__tip-text {
  margin: 0;
  font-size: 13px;
  color: #a16207;
}

@media (max-width: 991px) {
  .justswap-user-dash__layout {
    grid-template-columns: 1fr;
  }

  .justswap-user-dash__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: min(280px, 88vw);
    height: 100vh;
    overflow-y: auto;
    border-radius: 0;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
  }

  .justswap-user-dash.is-sidebar-open .justswap-user-dash__sidebar {
    transform: translateX(0);
  }

  .justswap-user-dash.is-sidebar-open .justswap-user-dash__backdrop {
    display: block !important;
  }
}

/* Submit book */
.justswap-submit-book__card {
  padding: 32px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.justswap-submit-book__title {
  margin: 0 0 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.justswap-submit-book__lead {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}

.justswap-submit-book__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.justswap-submit-book__optional {
  font-weight: 400;
  color: #9ca3af;
}

.justswap-submit-book__hint {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f4f9f3;
  border: 1px dashed #c5dcc8;
  font-size: 13px;
  color: #6b7280;
}

.justswap-submit-book__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* Member portfolio */
.justswap-portfolio-page {
  --justswap-single-book-gap: 24px;
  --justswap-single-book-side-gap: 20px;
  padding-top: 24px;
  padding-bottom: 48px;
  overflow-x: visible;
}

.justswap-portfolio__breadcrumb {
  margin-bottom: 20px;
}

.justswap-portfolio__breadcrumb .breadcrumb {
  margin: 0;
  background: transparent;
}

.justswap-portfolio__breadcrumb .breadcrumb a {
  color: #6b7280;
}

.justswap-portfolio__breadcrumb .breadcrumb span {
  color: #111827;
}

.justswap-portfolio__profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 24px 28px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.justswap-portfolio__profile-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  flex: 1;
  min-width: 0;
}

.justswap-portfolio__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.justswap-portfolio__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ecf7f0, #d1e7dd);
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1f5a3e;
}

.justswap-portfolio__verified {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2d5a42;
  color: #fff;
  border: 2px solid #fff;
}

.justswap-portfolio__profile-info {
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.justswap-portfolio__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.justswap-portfolio__name {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.justswap-portfolio__member-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecf7f0;
  font-size: 12px;
  font-weight: 600;
  color: #2d5a42;
}

.justswap-portfolio__location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  color: #6b7280;
}

.justswap-portfolio__location-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.justswap-portfolio__location-sep {
  color: #d1d5db;
}

.justswap-portfolio__distance {
  color: #9ca3af;
}

.justswap-portfolio__bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #374151;
}

.justswap-portfolio__bio--second {
  margin-top: 2px;
}

.justswap-portfolio__profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  align-items: flex-start;
  margin-left: auto;
}

.justswap-portfolio__profile-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 100px;
}

.justswap-portfolio__profile-stat-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.justswap-portfolio__profile-stat-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.justswap-portfolio__profile-stat-icon--books,
.justswap-portfolio__profile-stat-icon--swaps {
  color: #2d5a42;
}

.justswap-portfolio__profile-stat-icon--rating {
  color: #f59e0b;
}

.justswap-portfolio__profile-stat strong {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.justswap-portfolio__profile-stat-label {
  font-size: 13px;
  color: #6b7280;
  text-align: left;
}

.justswap-portfolio__profile-stat-reviews {
  font-size: 12px;
  color: #9ca3af;
}

.justswap-portfolio__profile-art {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.justswap-portfolio__profile-art img {
  max-width: 220px;
  height: auto;
}

.justswap-portfolio__layout {
  display: flex;
  flex-direction: column;
  gap: var(--justswap-single-book-gap);
  min-width: 0;
}

.justswap-portfolio__main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

@media (min-width: 992px) {
  .justswap-portfolio-page .justswap-single-book__layout {
    display: grid;
    grid-template-columns: minmax(0, 70%) minmax(0, 30%);
    grid-template-areas: "main side";
    column-gap: 24px;
    row-gap: var(--justswap-single-book-gap);
    align-items: start;
  }

  .justswap-portfolio-page .justswap-portfolio__main {
    grid-area: main;
  }

  .justswap-portfolio-page .justswap-single-book__side {
    grid-area: side;
    align-self: stretch;
    min-width: 0;
  }

  .justswap-portfolio-page .justswap-single-book__side-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: var(--justswap-single-book-top, 88px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: var(--justswap-single-book-side-gap);
    width: 100%;
    max-width: 100%;
    padding-bottom: 32px;
    box-sizing: border-box;
  }

  .justswap-portfolio-page .justswap-single-book__side-sticky > * {
    flex-shrink: 0;
  }
}

@media (max-width: 991.98px) {
  .justswap-portfolio-page .justswap-single-book__layout {
    display: flex;
    flex-direction: column;
    gap: var(--justswap-single-book-gap);
  }
}

.justswap-portfolio__books {
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.justswap-portfolio__books-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 20px;
  margin-bottom: 16px;
}

.justswap-portfolio__books-head {
  flex: 1;
  min-width: 220px;
}

.justswap-portfolio__books-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.justswap-portfolio__books-title svg {
  color: #2d5a42;
  flex-shrink: 0;
}

.justswap-portfolio__books-sub {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.justswap-portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.justswap-portfolio__search-wrap {
  position: relative;
  display: block;
  min-width: 200px;
}

.justswap-portfolio__search {
  height: 42px;
  padding-right: 40px;
  border-radius: 8px;
  border-color: #e5e7eb;
  font-size: 14px;
}

.justswap-portfolio__search-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.justswap-portfolio__select {
  width: auto;
  min-width: 130px;
  height: 42px;
  border-radius: 8px;
  border-color: #e5e7eb;
  font-size: 14px;
}

.justswap-portfolio__cta-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f4fbf6;
  border: 1px solid #c5dcc8;
}

.justswap-portfolio__cta-info {
  flex-shrink: 0;
  color: #2d5a42;
}

.justswap-portfolio__cta-link {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f5a3e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.justswap-portfolio__cta-link:hover {
  color: #14532d;
}

.justswap-portfolio__cta-text {
  font-size: 14px;
  color: #1f5a3e;
}

.justswap-single-book__swap-btn--link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.justswap-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 14px;
}

.justswap-portfolio__book {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #eef0f3;
  background: #fafafa;
  text-align: center;
}

.justswap-portfolio__book img {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.justswap-portfolio__book h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.justswap-portfolio__book p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
}

.justswap-portfolio__condition {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.justswap-portfolio__condition--good {
  background: #ecf7f0;
  color: #2d5a42;
}

.justswap-portfolio__condition--new {
  background: #e0f2fe;
  color: #0369a1;
}

.justswap-portfolio__book time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: #9ca3af;
}

.justswap-portfolio__book time svg {
  flex-shrink: 0;
}

.justswap-portfolio__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
}

.justswap-portfolio__page {
  min-width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.justswap-portfolio__page.is-active {
  background: #2d5a42;
  border-color: #2d5a42;
  color: #fff;
}

.justswap-portfolio__review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  margin-top: var(--justswap-single-book-gap);
  padding: 18px 22px;
  border-radius: 12px;
  background: #f4fbf6;
  border: 1px solid #c5dcc8;
}

.justswap-portfolio__review-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.justswap-portfolio__review-icon {
  display: inline-flex;
  color: #2d5a42;
}

.justswap-portfolio__review-body p {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

@media (max-width: 991px) {
  .justswap-portfolio__profile {
    flex-direction: column;
    align-items: flex-start;
  }

  .justswap-portfolio__profile-stats {
    margin-left: 0;
    width: 100%;
  }

  .justswap-portfolio__profile-art {
    display: none;
  }

  .justswap-portfolio__books-toolbar {
    flex-direction: column;
  }

  .justswap-portfolio__filters {
    width: 100%;
  }

  .justswap-portfolio__search-wrap {
    flex: 1;
    min-width: 0;
  }

  .justswap-portfolio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .justswap-portfolio__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .justswap-portfolio__grid {
    grid-template-columns: 1fr;
  }
}

/* Portfolio sidebar panels */
.justswap-portfolio-side__panel {
  padding: 20px;
  border-radius: 12px;
  box-sizing: border-box;
}

.justswap-portfolio-side__panel-title {
  margin: 0 0 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.justswap-portfolio-side__panel--viewing {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.justswap-portfolio-side__viewing-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.justswap-portfolio-side__viewing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
}

.justswap-portfolio-side__viewing-icon svg {
  display: block;
}

.justswap-portfolio-side__viewing-title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #047857;
  line-height: 1.3;
}

.justswap-portfolio-side__viewing-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
}

.justswap-portfolio-side__viewing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #059669;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.justswap-portfolio-side__viewing-btn:hover {
  background: #047857;
  color: #fff;
}

.justswap-portfolio-side__panel--why {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.justswap-portfolio-side__checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.justswap-portfolio-side__checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #374151;
}

.justswap-portfolio-side__check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
}

.justswap-portfolio-side__check-icon svg {
  display: block;
}

.justswap-portfolio-side__panel--guidelines {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.justswap-portfolio-side__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.justswap-portfolio-side__steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #374151;
}

.justswap-portfolio-side__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #93c5fd;
  color: #1e40af;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.justswap-portfolio-side__panel--tip {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.justswap-portfolio-side__tip-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.justswap-portfolio-side__tip-head .justswap-portfolio-side__panel-title {
  margin: 0;
}

.justswap-portfolio-side__tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffedd5;
  color: #ea580c;
}

.justswap-portfolio-side__tip-icon svg {
  display: block;
}

.justswap-portfolio-side__tip-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
}

.justswap-portfolio-side__browse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #fdba74;
  border-radius: 8px;
  background: #fff;
  color: #c2410c;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.justswap-portfolio-side__browse-btn:hover {
  background: #fff7ed;
  border-color: #fb923c;
  color: #c2410c;
}
