:root {
  --brand-purple: #6f2cf3;
  --brand-purple-dark: #5b21d1;
  --brand-purple-light: #8b5cf6;
  --brand-purple-cta: #7c45f5;
  --brand-purple-cta-dark: #6730df;
  --footer-purple: #2a0f4d;
  --zp-primary: var(--brand-purple, #6f2cf3);
  --subject-badge-bg: var(--zp-primary, var(--brand-purple, #6f2cf3));
  --subject-badge-border: var(--brand-purple-dark, var(--zp-primary, #5723c5));
  --surface-subtle: #f8f9fa;
  --bs-form-select-bg-img: none;

}

body {
  font-family: "Manrope", "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
}


.discussions-header-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(124, 69, 245, 0.22);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  padding: 1.1rem 1.2rem;
}

.discussions-header-card h1 {
  font-weight: 800;
}

.discussions-cta-btn {
  white-space: nowrap;
}

.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  border: 1px solid #e9ecef;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(92deg, rgba(124, 58, 237, 0.95) 0%, rgba(124, 58, 237, 0.93) 32%, rgba(124, 58, 237, 0.78) 52%, rgba(124, 58, 237, 0.4) 72%, rgba(124, 58, 237, 0.12) 86%, rgba(124, 58, 237, 0) 100%);
  clip-path: polygon(0% 14%, 18% 18%, 34% 20%, 48% 26%, 60% 33%, 71% 42%, 80% 51%, 88% 58%, 95% 63%, 100% 67%, 100% 100%, 0% 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.12) 30%, rgba(15, 23, 42, 0) 58%);
}


.hero-illustration {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(220px, 34vw, 460px);
  max-width: 31%;
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: #ffffff;
  max-width: 22ch;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.34);
}

.hero-description {
  color: #ffffff !important;
  max-width: 60ch;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.32);
}


.btn-brand-primary {
  background: var(--brand-purple, #6f2cf3);
  border-color: var(--brand-purple-dark, #5b21d1);
  color: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn-brand-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.18);
  background: var(--brand-purple-dark, #5b21d1);
  border-color: var(--brand-purple-dark, #5b21d1);
  color: #ffffff;
}

.btn-brand-primary:active {
  transform: scale(0.99);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.14);
}

.btn-brand-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.22rem rgba(111, 44, 243, 0.25), 0 10px 22px rgba(17, 24, 39, 0.16);
}


.btn-brand-purple {
  background: var(--brand-purple-cta, #7c45f5);
  border-color: var(--brand-purple-cta-dark, #6730df);
  color: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn-brand-purple:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.18);
  background: var(--brand-purple-cta-dark, #6730df);
  border-color: var(--brand-purple-cta-dark, #6730df);
  color: #ffffff;
}

.btn-brand-purple:active {
  transform: scale(0.99);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.14);
}

.btn-brand-purple:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.22rem rgba(124, 69, 245, 0.25), 0 10px 22px rgba(17, 24, 39, 0.16);
}

.lb-show-btn {
  background: #6d35e5;
  border-color: #622fd1;
  color: #ffffff;
}

.lb-show-btn:hover,
.lb-show-btn:focus,
.lb-show-btn:focus-visible {
  background: #7843ee;
  border-color: #6d35e5;
  color: #ffffff;
}


.btn-brand-outline {
  border: 1px solid var(--brand-purple, #6f2cf3);
  color: var(--brand-purple, #6f2cf3);
  background: transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-brand-outline:hover {
  background: var(--brand-purple, #6f2cf3);
  border-color: var(--brand-purple, #6f2cf3);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.btn-brand-outline:active {
  transform: scale(0.99);
}

.btn-brand-outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.22rem rgba(111, 44, 243, 0.25);
}

.link-brand,
.link-brand:visited {
  color: var(--brand-purple, #6f2cf3);
  text-decoration: none;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.link-brand:hover,
.link-brand:focus-visible {
  color: var(--brand-purple-dark, #5b21d1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-cta {
  transform-origin: center;
  transition: transform 0.18s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: scale(1.05);
}

.hero-cta-marketplace {
  background-color: #ffffff;
  color: #000000;
  border-color: transparent;
  box-shadow: 0 0.4rem 1rem rgba(15, 23, 42, 0.14);
}

.hero-cta-marketplace:hover,
.hero-cta-marketplace:focus-visible {
  background-color: #ffffff;
  color: #000000;
  border-color: transparent;
}

@media (max-width: 767.98px) {
  .hero-illustration {
    display: none;
  }

  .hero-section::before {
    clip-path: polygon(0% 24%, 20% 22%, 36% 26%, 52% 33%, 65% 41%, 77% 51%, 87% 60%, 95% 67%, 100% 71%, 100% 100%, 0% 100%);
  }

  .hero-section h1 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .hero-description {
    max-width: 40ch;
  }
}

.subject-tile {
  --c1: #2563eb;
  --c2: #60a5fa;
  min-height: 156px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  padding-right: 12rem;
  border-radius: 16px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  box-shadow: 0 0.65rem 1.2rem rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.subject-tile::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 160px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.12));
}

.subject-tile:hover,
.subject-tile:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0.9rem 1.6rem rgba(15, 23, 42, 0.2);
}

.subject-tile:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.subject-tile-content {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.subject-tile-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 160px;
  object-fit: contain;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.12));
}

.subject-tile-title {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.2;
}

@media (max-width: 992px) {
  .subject-tile {
    padding-right: 10rem;
  }

  .subject-tile-icon {
    width: 130px;
    height: 130px;
    right: 16px;
    opacity: 0.85;
  }
}

@media (max-width: 767.98px) {
  .subject-tile {
    min-height: 138px;
    padding: 1rem 1.05rem;
    padding-right: 8rem;
  }
}

@media (max-width: 576px) {
  .subject-tile-icon {
    display: none;
  }

  .subject-tile {
    padding-right: 1.05rem;
  }
}

.brand-logo {
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  color: #0f172a;
}

.brand-logo:hover,
.brand-logo:focus {
  color: #0f172a;
}

.brand-logo-mark {
  width: auto;
  height: 70px;
  display: block;
}

.brand-logo-text {
  line-height: 1;
}

@media (max-width: 576px) {
  .brand-logo-mark {
    height: 28px;
  }
}

.avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
}

.avatar-btn:hover,
.avatar-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.avatar-shell {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 1.5px;
  background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 45%, #c4b5fd 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  padding: 1.5px;
  overflow: hidden;
}

.nav-avatar,
.profile-avatar-lg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-avatar-lg {
  width: 110px;
  height: 110px;
  background: #fff;
}

.avatar-btn::after {
  display: none;
}

.profile-layout {
  max-width: 920px;
  margin: 0 auto;
}


.navbar-actions {
  gap: 0.35rem;
}

.navbar {
  position: relative;
  z-index: 1035;
  overflow: visible;
}

.navbar .container,
.navbar .navbar-collapse,
.navbar .dropdown {
  overflow: visible;
}

.navbar .dropdown-menu {
  z-index: 1040;
}

.nav-action-link {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #334155;
  border-radius: 0.5rem;
  padding: 0.62rem 0.9rem !important;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-action-link:hover,
.nav-action-link:focus {
  color: #0f172a;
  background-color: #eef2f7;
}

.subjects-dropdown-trigger {
  border: 0;
  color: #334155;
  background-color: transparent;
}

.subjects-dropdown-trigger:hover,
.subjects-dropdown-trigger:focus,
.subjects-dropdown-trigger:focus-visible,
.subjects-dropdown-trigger.show,
.subjects-dropdown-trigger:active {
  color: #0f172a;
  background-color: #eef2f7;
  border-color: transparent;
}

.subjects-dropdown-trigger:focus-visible {
  box-shadow: none;
  outline: none;
}

.account-nav-item {
  margin-left: 0.2rem;
}

.account-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.2rem 0.38rem 0.2rem 0.16rem;
}


.account-toggle {
  border: 1px solid rgba(196, 181, 253, 0.42);
  color: #ffffff !important;
  background-color: #6d35e5;
}

.account-toggle:hover,
.account-toggle:focus,
.account-toggle:focus-visible {
  color: #ffffff !important;
  background-color: #3f1771;
  border-color: rgba(196, 181, 253, 0.52);
}

.account-toggle.show,
.account-toggle:active {
  color: #ffffff !important;
  background-color: #3f1771;
  border-color: rgba(196, 181, 253, 0.52);
}

.show > .account-toggle.dropdown-toggle,
.account-toggle.dropdown-toggle,
.account-toggle.dropdown-toggle:hover,
.account-toggle.dropdown-toggle:focus,
.account-toggle.dropdown-toggle:active,
.account-toggle.dropdown-toggle.show {
  color: #ffffff !important;
}

.account-toggle.dropdown-toggle::after,
.show > .account-toggle.dropdown-toggle::after {
  color: #ffffff;
}

.account-toggle:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(111, 44, 243, 0.35);
}
.account-menu-label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff !important;
  max-width: 172px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



.subjects-themed-menu {
  background-color: var(--footer-purple, #2a0f4d);
  border: 1px solid rgba(196, 181, 253, 0.35);
  border-radius: 0.75rem;
  box-shadow: 0 0.7rem 1.4rem rgba(15, 23, 42, 0.2);
  padding: 0.4rem;
}

.subjects-themed-menu .dropdown-item {
  color: #f8f5ff;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.subjects-themed-menu .dropdown-item:hover,
.subjects-themed-menu .dropdown-item:focus,
.subjects-themed-menu .dropdown-item:focus-visible,
.subjects-themed-menu .dropdown-item.active,
.subjects-themed-menu .dropdown-item:active {
  background-color: rgba(196, 181, 253, 0.45);
  color: #ffffff;
}

.subjects-themed-menu .dropdown-item.disabled,
.subjects-themed-menu .dropdown-item:disabled {
  color: rgba(248, 245, 255, 0.7);
}

.subjects-themed-menu .dropdown-divider {
  border-top-color: rgba(196, 181, 253, 0.28);
}

.navbar .dropdown-menu.account-menu {
  min-width: 280px;
}

@media (min-width: 992px) {
  .navbar .dropdown-menu.account-menu {
    min-width: 320px;
  }
}

.nav-dd-icon {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.9;
}

@media (max-width: 399.98px) {
  .nav-action-link {
    font-size: 1rem;
    padding: 0.55rem 0.75rem !important;
  }

  .account-menu-toggle {
    padding: 0.3rem 0.45rem 0.3rem 0.2rem;
  }

  .account-menu-label {
    font-size: 0.98rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-actions {
    align-items: stretch;
    padding-top: 0.5rem;
  }

  .navbar-actions .nav-item {
    width: 100%;
  }

  .account-nav-item {
    margin-left: 0;
  }

  .account-menu-toggle {
    width: 100%;
    justify-content: flex-start;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .account-menu-label {
    max-width: calc(100vw - 9rem);
  }
}


.marketplace-subject-filter-wrap {
  position: relative;
}

.marketplace-subject-dropdown,
.marketplace-subject-trigger {
  width: 100%;
}

.marketplace-subject-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(1.5em + 0.75rem + 2px);
}

.navbar .subjects-dropdown-trigger:focus,
.navbar .subjects-dropdown-trigger:active,
.navbar .subjects-dropdown-trigger.show {
  box-shadow: none;
}

.marketplace-subject-dropdown .marketplace-subject-trigger:hover,
.marketplace-subject-dropdown .marketplace-subject-trigger:focus,
.marketplace-subject-dropdown .marketplace-subject-trigger:active,
.marketplace-subject-dropdown .marketplace-subject-trigger:focus-visible,
.marketplace-subject-dropdown .marketplace-subject-trigger.show {
  color: #111827;
  background-color: #f8fafc;
  border-color: #e5e7eb;
}

.marketplace-subject-dropdown .marketplace-subject-trigger:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(15, 23, 42, 0.12);
}

.subjects-themed-menu .dropdown-item:active {
  background-color: rgba(196, 181, 253, 0.45);
  color: #ffffff;
}

.marketplace-subject-dropdown .subjects-themed-menu {
  inset: auto auto auto 0 !important;
}

@media (max-width: 991.98px) {
  .marketplace-subject-dropdown .subjects-themed-menu {
    width: 100%;
  }
}

.listing-card-link {
  display: block;
}

.listing-card {
  border: 1px solid #e9ecef;
  border-radius: 14px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.listing-card-link:hover .listing-card,
.listing-card-link:focus-visible .listing-card {
  transform: translateY(-2px);
  box-shadow: 0 0.7rem 1.4rem rgba(15, 23, 42, 0.12);
  border-color: #d9dee5;
}

.listing-card-link:focus-visible {
  outline: none;
}

.listing-card-link:focus-visible .listing-card {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2), 0 0.7rem 1.4rem rgba(15, 23, 42, 0.12);
}

.listing-card-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.listing-card-left {
  min-width: 0;
}

.listing-card-avatar-wrap {
  width: 148px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f3f5;
  position: relative;
}

.listing-card-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.listing-card-avatar-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #495057;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.listing-card-avatar-placeholder.is-visible {
  display: flex;
}

.listing-card-middle {
  min-width: 0;
}

.listing-card-title {
  font-weight: 700;
  color: #212529;
}

.listing-card-description {
  color: #495057;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.listing-pill {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 0.43rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.listing-pill:hover,
.listing-pill:focus-visible,
.listing-card-link:hover .listing-pill,
.listing-card-link:focus-visible .listing-pill {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.12);
}

.subject-badge {
  color: #ffffff;
  background: var(--subject-badge-bg, #6f2cf3);
  border-color: var(--subject-badge-border, #5723c5);
}

.subject-badge--math {
  background: #0EA5E9;
  border-color: #0284C7;
}

.subject-badge--physics {
  background: #FF725E;
  border-color: #EA580C;
}

.subject-badge--chemistry {
  background: #7C3AED;
  border-color: #6D28D9;
}

.subject-badge--history {
  background: #EF4444;
  border-color: #DC2626;
}

.subject-badge--biology {
  background: #10B981;
  border-color: #059669;
}

.subject-badge--bulgarian {
  background: #FB923C;
  border-color: #F97316;
}

.subject-badge--literature {
  background: #BEEA00;
  border-color: #A3C700;
}

.subject-badge--it {
  background: #2563EB;
  border-color: #1D4ED8;
}

.subject-badge--other,
.subject-badge--default {
  background: #64748B;
  border-color: #475569;
}



.marketplace-detail-page .seller-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.marketplace-detail-page .seller-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.marketplace-detail-page .seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marketplace-detail-page .seller-level-badge {
  position: absolute;
  left: -4px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #6d28d9;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  line-height: 1;
}

.marketplace-detail-page .seller-meta {
  line-height: 1.2;
  min-width: 0;
}

.marketplace-detail-page .seller-name {
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  color: #111827;
}

.marketplace-detail-page .seller-subline {
  color: #6b7280;
  font-size: 14px;
  margin-top: 2px;
}

.marketplace-detail-page .seller-pills {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketplace-detail-image-frame {
  width: 100%;
  height: min(60vh, 520px);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  position: relative;
}

.marketplace-detail-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.marketplace-detail-page .marketplace-detail-gallery-card {
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.marketplace-detail-page .marketplace-detail-sidebar {
  top: 88px;
}

.marketplace-detail-page .marketplace-detail-sidebar-card {
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.marketplace-detail-page .marketplace-detail-price-label {
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.marketplace-detail-page .marketplace-detail-price {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1rem;
}

.marketplace-detail-page .contacts-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.marketplace-detail-page .contacts-cta-btn:hover,
.marketplace-detail-page .contacts-cta-btn:focus-visible,
.marketplace-detail-page .contacts-cta-btn:active {
  background: #212121;
  border-color: #212121;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.25);
  transform: translateY(-1px);
}

.marketplace-detail-page .contacts-cta-btn.revealed {
  gap: 0;
  font-weight: 800;
}

.marketplace-detail-page .call-cta-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  line-height: 1;
}

.marketplace-detail-page .call-cta-content .bi-telephone {
  font-size: 1rem;
}

.marketplace-detail-page .call-cta-number {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

@media (max-width: 575.98px) {
  .marketplace-detail-page .seller-avatar {
    width: 48px;
    height: 48px;
  }

  .marketplace-detail-page .seller-name {
    font-size: 18px;
  }

  .marketplace-detail-page .call-cta-content {
    gap: 0.5rem;
  }

  .marketplace-detail-page .call-cta-content .bi-telephone {
    font-size: 0.95rem;
  }

  .marketplace-detail-page .call-cta-number {
    font-size: 1rem;
  }
}

@media (max-width: 991.98px) {
  .marketplace-detail-page .marketplace-detail-sidebar {
    position: static !important;
  }
}

.listing-card-link:hover .subject-badge,
.listing-card-link:focus-visible .subject-badge,
.subject-badge:hover,
.subject-badge:focus-visible {
  filter: brightness(0.94);
  color: #ffffff;
}

.lesson-mode-badge {
  color: #ffffff;
}

.lesson-mode-badge--online-and-in-person {
  background: var(--brand-purple, #6f2cf3);
  border-color: var(--brand-purple-dark, #5723c5);
}

.lesson-mode-badge--online {
  background: #9465ff;
  border-color: #7f56d9;
}

.lesson-mode-badge--in-person {
  background: #5320b4;
  border-color: #451b95;
}

.listing-card-link:hover .lesson-mode-badge,
.listing-card-link:focus-visible .lesson-mode-badge,
.lesson-mode-badge:hover,
.lesson-mode-badge:focus-visible {
  filter: brightness(0.92);
  color: #ffffff;
}

.role-badge {
  color: #ffffff;
}

.role-badge--learner {
  background: #4caf78;
  border-color: #3f9465;
}

.role-badge--teacher {
  background: #2e7d58;
  border-color: #245f43;
}

.listing-card-link:hover .role-badge,
.listing-card-link:focus-visible .role-badge,
.role-badge:hover,
.role-badge:focus-visible {
  filter: brightness(0.93);
  color: #ffffff;
}

.listing-card-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.listing-card-price {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.listing-card-actions {
  border-top: 1px solid #eef1f4;
}


.listing-card .listing-card-actions--under-content {
  justify-content: flex-start;
  padding-left: calc(148px + 2rem) !important;
}

.my-discussion-card .listing-card-actions--under-content {
  justify-content: flex-start;
  padding-left: 1.55rem !important;
}

.my-listings-action-btn {
  min-height: 44px;
  padding: 0.56rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.my-listings-action-btn i {
  font-size: 1rem;
  line-height: 1;
}

.my-listings-action-btn.btn-brand-outline:hover,
.my-listings-action-btn.btn-brand-outline:focus,
.my-listings-action-btn.btn-brand-outline:focus-visible,
.my-listings-action-btn.btn-brand-outline:active {
  color: #ffffff;
}

.my-listings-action-btn:focus,
.my-listings-action-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.22rem rgba(111, 44, 243, 0.25);
}

.my-listings-action-btn--danger:focus,
.my-listings-action-btn--danger:focus-visible {
  border-color: #dc3545;
}

.my-listings-empty-state {
  border: 1px solid rgba(111, 44, 243, 0.16);
}

@media (max-width: 767.98px) {
  .listing-card-body {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.85rem;
  }

  .listing-card-avatar-wrap {
    width: 88px;
    height: 88px;
  }

  .listing-card-right {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding-top: 0.25rem;
    border-top: 1px solid #eef1f4;
    margin-top: 0.2rem;
  }

  .listing-card .listing-card-actions--under-content,
  .my-discussion-card .listing-card-actions--under-content {
    padding-left: 1rem !important;
  }
}


.home-headline-section-subjects {
  margin-top: clamp(3.3rem, 7.9vw, 6rem);
}

.home-headline-wrap {
  margin-bottom: clamp(2.65rem, 5.9vw, 4.2rem);
}

.home-headline-wrap-benefits {
  margin-top: clamp(3.2rem, 6.6vw, 5.3rem);
}
.home-section-title {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  line-height: 1.2;
}

.home-section-pill {
  margin-right: 0.65rem;
  background: var(--brand-purple, #6f2cf3);
  color: #ffffff;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  padding: 0.4em 0.7em;
  vertical-align: middle;
}

.subject-accent,
.brand-underline {
  position: relative;
  display: inline-block;
}

.subject-accent::after,
.brand-underline::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.08em;
  height: 0.13em;
  bottom: -0.15em;
  background: var(--brand-purple, #6f2cf3);
  border-radius: 999px;
  transform: rotate(-2deg) skewX(-12deg);
  transform-origin: center;
  z-index: -1;
  pointer-events: none;
}

.section-title-purple {
  color: var(--brand-purple, #6f2cf3);
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.benefit-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .09);
}

.benefit-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--brand-purple-dark), var(--brand-purple-light));
  color: #fff;
  font-size: 1.65rem;
}

.benefit-title { color: #111; }


.site-footer {
  background: var(--footer-purple, #2a0f4d);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.95);
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  text-decoration: none;
}

.site-footer-logo {
  max-height: 44px;
  width: auto;
  display: block;
}

.site-footer-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.site-footer-tagline {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer-heading {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.9rem;
}

.site-footer-list {
  display: grid;
  gap: 0.55rem;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.site-footer-bottom small {
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 575.98px) {
  .site-footer {
    text-align: left;
  }

  .site-footer .container.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.25rem !important;
  }

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

  .site-footer-title {
    font-size: 1.25rem;
  }

  .site-footer-bottom .container {
    padding-top: 0.9rem !important;
    padding-bottom: 1rem !important;
  }
}

.info-page-shell {
  margin-inline: -0.75rem;
}

.info-page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7f2ff 100%);
  border: 1px solid rgba(111, 44, 243, 0.15);
}

.info-page-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(520px, 72%);
  height: 5px;
  background: linear-gradient(90deg, rgba(111, 44, 243, 0.95) 0%, rgba(111, 44, 243, 0.35) 60%, rgba(111, 44, 243, 0) 100%);
}

.info-page-hero h1 {
  color: #2a0f4d;
}

.info-page-hero .lead {
  max-width: 64ch;
  color: #4b5563;
}

.info-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 1.25rem;
  line-height: 1.7;
}

.info-card h2 {
  margin-bottom: 0.75rem;
  color: #111827;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}

.info-card h3 {
  margin-bottom: 0.55rem;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-toc {
  background: #ffffff;
}

.info-toc a {
  color: #4b5563;
  text-decoration: none;
}

.info-toc a:hover,
.info-toc a:focus-visible {
  color: var(--brand-purple, #6f2cf3);
  text-decoration: underline;
}

@media (min-width: 992px) {
  .info-toc {
    position: sticky;
    top: 100px;
  }

  .info-card {
    padding: 1.4rem 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .info-page-shell {
    margin-inline: 0;
  }
}

.zp-pagination-olx {
  overflow-x: auto;
}

.zp-pagination-olx .pagination {
  gap: 0.2rem;
}

.zp-pagination-olx .page-item {
  display: inline-flex;
  align-items: center;
}

.zp-pagination-olx .page-link {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  min-width: auto;
  height: auto;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: opacity 0.15s ease;
}

.zp-pagination-olx .page-item.active .page-link {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid #111;
  border-radius: 50%;
  color: #111;
  background: transparent;
}

.zp-pagination-olx .page-item:not(.active):not(.disabled) .page-link:hover,
.zp-pagination-olx .page-item:not(.active):not(.disabled) .page-link:focus-visible {
  color: #111;
  background: transparent;
  opacity: 0.75;
  box-shadow: none;
  text-decoration: none;
}

.zp-pagination-olx .page-item.disabled .page-link {
  border: 0;
  background: transparent;
  color: #111;
  opacity: 1;
  padding-inline: 0.45rem;
}

/* Leaderboard */
.leaderboard-page {
  --leaderboard-soft-purple: rgba(126, 70, 245, 0.08);
  --leaderboard-soft-border: rgba(126, 70, 245, 0.2);
}

.leaderboard-header-card {
  border: 1px solid var(--leaderboard-soft-border);
  background: #fff;
}

.leaderboard-filter {
  min-width: min(100%, 420px);
}

.lb-hero {
  border: 1px solid var(--leaderboard-soft-border);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(126, 70, 245, 0.12), rgba(126, 70, 245, 0.04));
}

.lb-podium-card {
  border: 1px solid rgba(126, 70, 245, 0.16) !important;
  border-radius: 1.05rem !important;
  min-height: 162px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lb-lower {
  transform: translateY(8px);
}

.lb-first {
  border-color: rgba(111, 44, 243, 0.32) !important;
  box-shadow: 0 1rem 2rem rgba(111, 44, 243, 0.2) !important;
  transform: translateY(-12px);
}

.lb-rank-circle,
.leaderboard-rank-pill {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: #efe9ff;
  color: #5b21d1;
  border: 1px solid rgba(126, 70, 245, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}


.lb-user-block {
  min-width: 0;
  flex: 1 1 auto;
}

.lb-username-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.lb-username {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-points-block {
  flex: 0 0 auto;
}

.lb-points {
  font-size: 1.85rem;
  font-weight: 800;
  color: #1f1538;
  line-height: 1;
}

.leaderboard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(111, 44, 243, 0.12);
  border: 1px solid rgba(111, 44, 243, 0.24);
  color: var(--brand-purple, #6f2cf3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.leaderboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leaderboard-avatar--sm {
  width: 38px;
  height: 38px;
}

.lb-level-badge {
  background: rgba(111, 44, 243, 0.1);
  color: var(--brand-purple-dark, #5b21d1);
  border: 1px solid rgba(111, 44, 243, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  line-height: 1.1;
}

.leaderboard-table-card {
  border: 1px solid var(--leaderboard-soft-border) !important;
  border-radius: 1rem !important;
  background: #fff;
}

.leaderboard-table thead th {
  background: rgba(111, 44, 243, 0.05);
  color: #5f5f74;
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom-width: 1px;
  border-bottom-color: rgba(111, 44, 243, 0.16);
}

.leaderboard-table tbody td {
  border-color: rgba(111, 44, 243, 0.1);
}

.leaderboard-table tbody tr:hover {
  background: rgba(111, 44, 243, 0.05);
}

.leaderboard-table tbody tr:nth-child(even):not(.leaderboard-row-current) {
  background: rgba(245, 244, 255, 0.5);
}

.leaderboard-row-current {
  background: rgba(111, 44, 243, 0.1) !important;
}

.leaderboard-row-current td:first-child {
  border-left: 3px solid var(--brand-purple, #6f2cf3);
}

@media (max-width: 767.98px) {
  .lb-podium-card,
  .lb-first,
  .lb-lower {
    transform: none;
  }
}

.lb-filter-dd {
  min-width: 180px;
}

.lb-dd-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background-color: #ffffff;
  color: #111827;
}

.lb-dd-toggle:hover,
.lb-dd-toggle:focus,
.lb-dd-toggle:active,
.lb-dd-toggle.show {
  background-color: #ffffff;
  color: #111827;
}

.lb-filter-dd {
  --bs-focus-ring-color: rgba(126, 70, 245, 0.25);
}

.lb-filter-dd .lb-dd-toggle,
.lb-filter-dd .lb-dd-toggle:focus,
.lb-filter-dd .lb-dd-toggle:focus-visible,
.lb-filter-dd .lb-dd-toggle:active,
.lb-filter-dd .show > .lb-dd-toggle {
  outline: none !important;
}

.lb-filter-dd .lb-dd-toggle:focus,
.lb-filter-dd .lb-dd-toggle:focus-visible,
.lb-filter-dd .lb-dd-toggle:active,
.lb-filter-dd .show > .lb-dd-toggle {
  border-color: var(--zp-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(126, 70, 245, 0.25) !important;
}

.lb-dd-toggle:disabled,
.lb-dd-toggle.disabled {
  background-color: #f8f9fa;
}

.lb-dd-menu {
  min-width: 100%;
}

.lb-dd-menu .dropdown-item {
  color: #fff;
  background: transparent;
}

.lb-dd-menu .dropdown-item.active,
.lb-dd-menu .dropdown-item:active {
  background: transparent !important;
  color: #fff !important;
  font-weight: 600;
}

.lb-dd-menu .dropdown-item.active::after {
  content: " \2713";
  opacity: 0.9;
  margin-left: 6px;
}

.lb-dd-menu .dropdown-item:focus,
.lb-dd-menu .dropdown-item:focus-visible {
  background: transparent !important;
  color: #fff !important;
  outline: none;
  box-shadow: none;
}

.lb-dd-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.marketplace-publish-page {
  --publish-border: #e9eaf3;
}

.publish-section-card {
  background: #ffffff;
  border: 1px solid var(--publish-border);
}

.publish-input,
.publish-description {
  border-color: #d7d9e5;
  border-radius: 0.85rem;
}


.publish-field-wrap {
  position: relative;
}

.publish-valid-icon {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #1f9d55;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
}

.publish-valid-icon i {
  display: block;
  font-size: 0.92rem;
  line-height: 1;
}

.publish-field-wrap .publish-description + .publish-valid-icon {
  top: 1rem;
  transform: none;
}

.publish-field-wrap .publish-input.is-valid,
.publish-field-wrap .publish-description.is-valid {
  padding-right: 2.75rem;
}

.publish-field-wrap .publish-input.is-invalid,
.publish-field-wrap .publish-description.is-invalid {
  padding-right: 2.75rem;
}

.marketplace-publish-page .publish-field-wrap .publish-input.is-valid,
.marketplace-publish-page .publish-field-wrap .publish-input.is-invalid,
.marketplace-publish-page .publish-field-wrap .publish-description.is-valid,
.marketplace-publish-page .publish-field-wrap .publish-description.is-invalid {
  background-image: none;
}

.marketplace-publish-page .publish-field-wrap .publish-subject-select.is-valid,
.marketplace-publish-page .publish-field-wrap .publish-subject-select.is-invalid {
  --bs-form-select-bg-icon: none;
  background-image: var(--bs-form-select-bg-img);
  padding-right: 4.6rem;
}

.marketplace-publish-page .publish-field-wrap:has(.publish-subject-select) .publish-valid-icon {
  right: 2.4rem;
}

.marketplace-publish-page .publish-field-wrap:has(.publish-description) .publish-valid-icon {
  right: 0.95rem;
}

.marketplace-publish-page .publish-field-wrap .publish-description.is-valid,
.marketplace-publish-page .publish-field-wrap .publish-description.is-invalid {
  padding-right: 2.8rem;
}
.publish-input:focus,
.publish-description:focus,
.lesson-mode-btn:focus-visible,
.listing-image-tile:focus-visible {
  border-color: var(--brand-purple-cta, #7c45f5);
  box-shadow: 0 0 0 0.2rem rgba(124, 69, 245, 0.22);
  outline: none;
}

.lesson-mode-group {
  gap: 0.6rem;
}

.lesson-mode-btn {
  border: 1px solid var(--brand-purple-cta, #7c45f5);
  color: var(--brand-purple-cta, #7c45f5);
  background: #ffffff;
  border-radius: 0.8rem !important;
  padding: 0.58rem 1rem;
}

.lesson-mode-btn:hover {
  border-color: var(--brand-purple-cta, #7c45f5);
  color: var(--brand-purple-cta, #7c45f5);
  background: rgba(124, 69, 245, 0.08);
}

.btn-check:checked + .lesson-mode-btn,
.btn-check:active + .lesson-mode-btn {
  color: #ffffff;
  background: var(--brand-purple-cta, #7c45f5);
  border-color: var(--brand-purple-cta, #7c45f5);
}

.listing-image-tile {
  width: min(280px, 100%);
  aspect-ratio: 1 / 1;
  border: 1.5px dashed #c5c8da;
  border-radius: 1rem;
  background: #fbfbff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.listing-image-tile:hover {
  border-color: var(--brand-purple-cta, #7c45f5);
  background: #f6f1ff;
}

.listing-image-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #5f647b;
  font-weight: 600;
}

.listing-image-placeholder .bi {
  font-size: 1.5rem;
}

.listing-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-cover-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  letter-spacing: 0.04em;
}

.listing-remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  width: 1.65rem;
  height: 1.65rem;
  line-height: 1.5rem;
  text-align: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 1.2rem;
}

.image-info-icon {
  color: #6b6f85;
  cursor: pointer;
}

.olx-dark-tooltip .tooltip-inner {
  background-color: #111111;
  color: #ffffff;
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  max-width: 260px;
  text-align: left;
}

.olx-dark-tooltip.bs-tooltip-end .tooltip-arrow::before,
.olx-dark-tooltip.bs-tooltip-start .tooltip-arrow::before,
.olx-dark-tooltip.bs-tooltip-top .tooltip-arrow::before,
.olx-dark-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-right-color: #111111;
  border-left-color: #111111;
  border-top-color: #111111;
  border-bottom-color: #111111;
}

.publish-submit-btn:hover {
  background: var(--brand-purple-light, #8b5cf6);
  border-color: var(--brand-purple-light, #8b5cf6);
}

@media (max-width: 575.98px) {
  .publish-section-card {
    padding: 1.1rem !important;
  }

  .lesson-mode-btn {
    width: 100%;
  }

  .listing-image-tile {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }
}

/* Marketplace publish refinements */
.marketplace-publish-page .publish-main-card {
  background: #f8f7ff;
  border: 1px solid #ece8ff;
  border-radius: 1.2rem;
  padding: 1rem;
}

.publish-subject-select {
  background-color: #fff;
}

.publish-subject-select:focus {
  background-color: #fff;
}

.publish-subject-select option {
  background: var(--footer-purple, #2a0f4d);
  color: #fff;
  padding: 0.55rem 0.8rem;
}

.publish-subject-select option:checked {
  background: rgba(196, 181, 253, 0.35);
  color: #fff;
}

.publish-subject-select option:hover {
  background: rgba(196, 181, 253, 0.55);
}

.listing-images-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.listing-image-card {
  aspect-ratio: 1 / 1;
  border-radius: 0.9rem;
  border: 1px dashed #c7cbdf;
  background: #f8f9ff;
  position: relative;
  overflow: hidden;
}

.listing-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-image-add {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  color: #5f647b;
  font-weight: 600;
  border-style: dashed;
}

.listing-image-add .bi {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.listing-image-placeholder-tile {
  background: #fbfbff;
  border: 1px dashed #e0e2ef;
}

.listing-cover-action {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  border: 0;
  background: rgba(17, 17, 17, 0.75);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
}

.publish-image-tip {
  background: #111;
  color: #fff;
  border-radius: 0.8rem;
  padding: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Marketplace detail carousel */
.marketplace-carousel {
  position: relative;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 0;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  z-index: 3;
}

.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

.carousel-thumbs {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.carousel-thumb {
  border: 2px solid transparent;
  border-radius: 0.5rem;
  padding: 0;
  background: transparent;
}

.carousel-thumb img {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0.4rem;
  background: var(--surface-subtle, #f6f7fb);
}

.carousel-thumb.active {
  border-color: var(--brand-purple-cta, #7c45f5);
}


.listing-expand-btn {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.7);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.listing-expand-btn:hover,
.listing-expand-btn:focus-visible {
  background: rgba(17, 17, 17, 0.88);
}

.listing-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.listing-image-lightbox.is-open {
  display: flex;
}

body.listing-lightbox-open {
  overflow: hidden;
}

.listing-image-lightbox-dialog {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-image-lightbox-image {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.listing-image-lightbox-close,
.listing-image-lightbox-nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 17, 17, 0.74);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.listing-image-lightbox-close:hover,
.listing-image-lightbox-close:focus-visible,
.listing-image-lightbox-nav:hover,
.listing-image-lightbox-nav:focus-visible {
  background: rgba(17, 17, 17, 0.92);
}

.listing-image-lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
}

.listing-image-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.4rem;
}

.listing-image-lightbox-prev {
  left: 1rem;
}

.listing-image-lightbox-next {
  right: 1rem;
}

main#app-root,
.marketplace-detail-page,
.marketplace-detail-page .row,
.marketplace-detail-page .col-12 {
  overflow: visible;
}

@media (max-width: 991.98px) {
  .listing-images-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .marketplace-detail-image-frame {
    height: clamp(320px, 55vh, 380px);
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  .listing-images-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.auth-page-wrap {
  min-height: calc(100vh - 180px);
  align-items: flex-start;
  padding-top: clamp(0.75rem, 3vh, 1.8rem);
}

.auth-card {
  max-width: 460px;
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
}

.auth-title {
  font-size: clamp(2rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-input {
  border-radius: 0.8rem;
  border: 1px solid #d8dce7;
  padding: 0.72rem 0.95rem;
}

.auth-input:focus,
.auth-input:focus-visible,
.form-control:focus {
  border-color: var(--brand-purple, #6f2cf3);
  box-shadow: 0 0 0 0.22rem rgba(111, 44, 243, 0.18);
  outline: none;
}

.input-icon-wrap {
  position: relative;
}

.auth-input-icon-end {
  padding-right: 2.65rem;
}

.input-icon,
.icon-btn {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8696;
}

.icon-btn {
  border: 0;
  background: transparent;
  padding: 0.15rem;
  line-height: 1;
}

.icon-btn:focus-visible {
  border-radius: 0.4rem;
  outline: none;
  box-shadow: 0 0 0 0.18rem rgba(111, 44, 243, 0.2);
  color: var(--brand-purple, #6f2cf3);
}

.auth-submit-btn {
  border-radius: 0.8rem;
  padding: 0.72rem 1rem;
  font-weight: 700;
}

.field-error {
  color: #dc3545;
  font-size: 0.82rem;
}

.auth-input.is-invalid,
.was-validated .auth-input:invalid {
  border-color: #dc3545;
  background-image: none;
}

.auth-links-row {
  line-height: 1.4;
}

.auth-card .form-label {
  margin-bottom: 0.35rem;
}

@media (max-width: 575.98px) {
  .auth-page-wrap {
    padding-top: 0.5rem;
  }

  .auth-card .card-body {
    padding: 1.25rem !important;
  }
}


@keyframes alertPopHighlight {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.alert-pop-highlight {
  animation: alertPopHighlight 0.45s ease-out;
}

.profile-picture-section {
  border-top: 1px solid rgba(124, 69, 245, 0.14);
  border-bottom: 1px solid rgba(124, 69, 245, 0.14);
  padding: 1.2rem 0;
}

.profile-avatar-preview-wrap {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  padding: 4px;
  position: relative;
  background: linear-gradient(140deg, rgba(124, 69, 245, 0.3), rgba(124, 69, 245, 0.08));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.profile-avatar-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #fff;
}

.profile-avatar-camera-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-purple, #6f2cf3);
  color: #fff;
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.profile-avatar-camera-btn:hover,
.profile-avatar-camera-btn:focus-visible {
  background: var(--brand-purple-dark, #5b21d1);
  color: #fff;
}

.profile-upload-dropzone {
  border: 2px dashed rgba(124, 69, 245, 0.45);
  border-radius: 16px;
  background: rgba(124, 69, 245, 0.05);
  text-align: center;
  padding: 1.4rem 1rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.profile-upload-dropzone.is-dragover {
  border-color: var(--brand-purple, #6f2cf3);
  background: rgba(124, 69, 245, 0.12);
}

.profile-upload-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-purple, #6f2cf3);
  border: 1px solid rgba(124, 69, 245, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.register-role-select {
  background-color: #fff;
  color: var(--bs-body-color);
}

.register-role-select:hover,
.register-role-select:active {
  background-color: #fff;
  color: var(--bs-body-color);
}

.register-role-select:focus,
.register-role-select:focus-visible {
  background-color: #fff;
  color: var(--bs-body-color);
  border-color: var(--brand-purple-cta, #7c45f5);
  box-shadow: 0 0 0 0.2rem rgba(124, 69, 245, 0.22);
}

.register-role-select option {
  background: var(--footer-purple, #2a0f4d);
  color: #fff;
  padding: 0.55rem 0.8rem;
}

.register-role-select option:checked {
  background: rgba(196, 181, 253, 0.35);
  color: #fff;
}

.register-role-select option:hover {
  background: rgba(196, 181, 253, 0.55);
}
